/*!
Theme Name: Sakamoto-No
Theme URI: https://hirosakamoto.cloudfree.jp/
Author: Sakamoto
Author URI: https://hirosakamoto.cloudfree.jp/
Description: ポートフォリオサイト用にカスタマイズした、軽量でシンプルなWordPressテーマです。
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sakamoto-no
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Sakamoto-No is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    height: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
    display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
    font-size: clamp(26px, 4vw, 36px);
    margin: 60px 0 60px;
    letter-spacing: 0.1em;
}

h1.page-title,
h1.work-title {
    font-size: clamp(24px, 4vw, 28px);
    letter-spacing: 0.1em;
    position: relative;
}

h1.page-title {
    margin: 0 0 60px;
}

h1.work-title {
    margin: 0 0 5px;
}


h1.page-title::before {
    content: "";
    position: absolute;
    background: #aaa;
    width: 300px;
    height: 1px;
    left: -320px;
    top: 21px;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
    border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
    display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
    display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
:root {
    --font-base: "Noto Sans JP", sans-serif;
    --primary-color: #bbc100;
    --text-color: #606060;
}

body,
button,
input,
select,
optgroup,
textarea {
    font-size: 1rem;
    line-height: 1.5;
    font-family: var(--font-base);
    font-weight: 100;
    background-color: #fff;
    color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
    font-weight: 100;
    font-family: var(--font-base);
    color: var(--text-color);
}

/* 欧文だけにLatoを適用する箇所 */
p {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.8;
    margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
    font-style: italic;
}

blockquote {
    margin: 0 1.5em;
}

address {
    margin: 0 0 1.5em;
}

pre {
    background: #eee;
    font-family: "Courier 10 Pitch", courier, monospace;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

code,
kbd,
tt,
var {
    font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

mark,
ins {
    background: #fff9c0;
    text-decoration: none;
}

big {
    font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
    background: #fff;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}

ul,
ol {
    margin: 0 0 1.5em 3em;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li>ul,
li>ol {
    margin-bottom: 0;
    margin-left: 1.5em;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

img {
    height: auto;
    max-width: 100%;
}

figure {
    margin: 1em 0;
}

table {
    margin: 0 0 1.5em;
    width: 100%;
}

/* Links
--------------------------------------------- */
a {
    color: #4169e1;
}

a:visited {
    color: #800080;
}

a:hover,
a:focus,
a:active {
    color: #191970;
}

a:focus {
    outline: thin dotted;
}

a:hover,
a:active {
    outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: 1px solid;
    border-color: #ccc #ccc #bbb;
    border-radius: 3px;
    background: #e6e6e6;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1;
    padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
    border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: #666;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    color: #111;
}

select {
    border: 1px solid #ccc;
}

textarea {
    width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/
#page.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1 0 auto;
}

.site,
.contents {
    position: static;
    z-index: auto;
}

.contents {
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 3%;
}

@media (min-width: 1200px) {
    .contents {
        max-width: 1200px;
        padding: 0;
    }
}

/* ---- ノイズ背景 ---- */
.site,
.contents {
    position: relative;
    z-index: 1;
}

.noise-layer {
    position: fixed;
    inset: -100px;
    width: calc(100vw + 200px);
    height: calc(100vh + 200px);

    background: url('https://hirosakamoto.cloudfree.jp/wp-content/uploads/2025/09/noise.png') repeat;
    pointer-events: none;
    z-index: 0;

    animation: noiseMove 8s steps(8) infinite;
    will-change: transform;
}

@keyframes noiseMove {
    0% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-120px, 80px);
    }

    40% {
        transform: translate(150px, -100px);
    }

    60% {
        transform: translate(-180px, 60px);
    }

    80% {
        transform: translate(100px, 140px);
    }

    100% {
        transform: translate(0, 0);
    }
}


/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    letter-spacing: 1px;
}

.main-navigation li {
    margin: 0;
    position: static;
    white-space: nowrap;
    font-size: clamp(14px, 1.2vw, 16px);
}

.main-navigation a {
    display: block;
    text-decoration: none;
    color: #404040;
}

button#burger-trg {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    position: absolute;
    right: 4%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.burger-ic::before,
.burger-ic::after {
    content: "";
    display: block;
    width: 24px;
    height: 1px;
    background-color: #000;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all .3s ease;
}

.burger-ic::before {
    top: 2px;
}

.burger-ic::after {
    bottom: 2px;
}

#burger-trg.act .burger-ic::before {
    top: 17px;
    transform: translateX(-50%) rotate(45deg);
}

#burger-trg.act .burger-ic::after {
    top: 17px;
    transform: translateX(-50%) rotate(-45deg);
}

#site-navigation ul {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f8f8f8;
    z-index: 999;
}

nav#site-navigation.toggled {
    position: fixed;
    right: 4%;
}

#site-navigation.toggled ul {
    display: flex;
}

#site-navigation ul li {
    padding: 0;
}

#site-navigation ul a {
    display: inline-block;
    font-size: clamp(18px, 4.5vw, 24px);
    letter-spacing: .04em;
    text-decoration: none;
    color: #404040;
}

body.nav-open {
    overflow: hidden;
}

@media (min-width: 1000px) {
    button#burger-trg {
        display: none;
        position: relative;
        right: auto;
    }

    nav#site-navigation {
        position: static;
    }

    #site-navigation ul {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 35px;
        width: auto;
        height: auto;
        background: transparent;
    }

    #site-navigation ul li {
        padding: 0;
    }

    #site-navigation ul a {
        display: block;
        font-size: inherit;
        letter-spacing: 1px;
    }

    body.nav-open {
        overflow: auto;
    }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
    margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: end;
    flex: 1 0 50%;
}

header#masthead .site-branding.hidden {
    display: none;
}

.site-branding {
    position: relative;
    top: 0;
    width: 100%;
}


/* Posts and pages
--------------------------------------------- */
.sticky {
    display: block;
}

.post,
.page {
    margin: 0 0 1.5em;
}

.updated:not(.published) {
    display: none;
}

.page-content,
.entry-content,
.entry-summary {
    margin: 1.5em 0 0;
}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
    margin: 0 0 1.5em;
}

.widget select {
    max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
    display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.wp-caption-text {
    text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
    margin-bottom: 1.5em;
    display: grid;
    grid-gap: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
    display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
    display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
    outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

    /*rtl:ignore*/
    float: left;

    /*rtl:ignore*/
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {

    /*rtl:ignore*/
    float: right;

    /*rtl:ignore*/
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* header
--------------------------------------------- */
h1.site-title,
p.site-title {
    font-size: clamp(16px, 1.6vw, 19px);
    margin: 0;
    font-weight: normal;
    letter-spacing: 0.1em;
}

h1.site-title a,
p.site-title a {
    color: #404040;
    text-decoration: none;
}

header#masthead {
    width: 100%;
    position: relative;
    z-index: 1000;
    border: none;
    margin: 0;
    min-height: 80px;
}

#masthead .siteHeadContainer {
    max-width: 1200px;
    width: min(96%, 1100px);
    min-height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    margin-top: 14px;
}

.site-branding img {
    width: 200px;
}

p.site-title {
    white-space: nowrap;
}

.main-navigation li {
    border-bottom: 1px solid #ccc;
    width: 87%;
}

@media screen and (min-width: 601px) {
    header#masthead {
        margin: 0;
        min-height: 180px;
    }

    #masthead .siteHeadContainer {
        align-items: center;
        min-height: 180px;
    }

    .site-branding {
        margin-top: 0;
    }

    .site-branding img {
        width: 300px;
    }

    .main-navigation li {
        border-bottom: none;
        width: auto;
    }
}


/* メインビジュアル 
--------------------------------------------- */
.smh-img-wrapper {
    position: relative;
}

.smh-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

.main-visual-text {
    font-family: 'Zen Kurenaido', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

img.smh-main-visual-pc {
    display: none;
}

img.smh-main-visual-sp {
    display: block;
}

@media screen and (min-width: 761px) {
    img.smh-main-visual-pc {
        display: block;
    }

    img.smh-main-visual-sp {
        display: none;
    }
}


/* front-page
--------------------------------------------- */

h2.smh-works__title,
h2.smh-about__title {
    font-size: clamp(22px, 3.6vw, 26px);
    letter-spacing: 0.06em;
    margin: 60px 0 60px;
    position: relative;
}

h2.smh-works__title::before,
h2.smh-about__title::before {
    content: "";
    position: absolute;
    background: #aaa;
    width: 300px;
    height: 1px;
    left: -320px;
    top: 21px;
}

.front-message {
    text-align: center;
    padding: 40px 20px 0;
    max-width: 800px;
    margin: 60px auto 0;
}

.front-message p {
    font-size: clamp(16px, 2.8vw, 20px);
    line-height: 2;
    letter-spacing: 2px;
}

.smh-works,
.smh-about {
    width: min(96%, 1100px);
    margin: 150px auto;
}

.smh-more-works,
.smh-more-about {
    text-align: center;
    margin-top: 40px;
}

.smh-more-works a,
.smh-more-about a {
    color: var(--text-color);
    letter-spacing: 0.05em;
}

.smh-more-works__link,
.smh-more-about__link {
    display: inline-block;
    padding: 0.6em 1.4em;
    border: 1px solid #aaa;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: background 0.3s ease;
}

.smh-more-works__link:hover,
.smh-more-about__link:hover {
    background: #aaa;
    color: #fff;
}

.smh-main-visual {
    display: grid;
    place-items: center;
    min-height: 48vh;
}

.smh-main-visual__inner {
    width: min(80vw, 720px);
    text-align: center;
    padding: 6vw 0;
}

.smh-logo-svg {
    display: block;
    width: clamp(260px, 40vw, 720px);
    height: auto;
    margin: 0 auto;
    max-width: 100%;
    opacity: 0.8;
}


/* 線描画 */
.smh-logo-svg .smh-logo-stroke {
    fill: #333;
    stroke: #333;
    stroke-width: .1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: smh-logo-draw 3s ease forwards 0.1s;
}

/* 塗りフェード */
.smh-logo-svg .smh-logo-fill {
    opacity: 0;
    transition: opacity .4s ease .9s;
}

.smh-logo-svg.smh-drawn .smh-logo-fill {
    opacity: 1;
}

@keyframes smh-logo-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .smh-logo-svg .smh-logo-stroke,
    .smh-logo-svg .smh-logo-fill {
        animation: none !important;
        transition: none !important;
        stroke-dasharray: initial;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}


/* footer
--------------------------------------------- */
.site-info p {
    font-size: clamp(11px, 1vw, 13px);
    text-align: center;
}

.site-info a {
    text-decoration: none;
    color: #404040;
}

.site-info .logo-h {
    font-size: 0.82em;
    line-height: 1;
    position: relative;
    top: -0.02em;
}


/* work page
--------------------------------------------- */
.works-wrapper {
    margin: 0 auto;
}

.page-no {
    font-size: clamp(20px, 3.4vw, 30px);
}

/* about page
--------------------------------------------- */
.profile-wrapper {
    width: 90%;
    margin: 0 auto;
}

@media screen and (min-width: 601px) {
    .profile-wrapper {
        width: min(96%, 1100px);
    }
}


/* category page
--------------------------------------------- */
.category-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}


/* 404 page
--------------------------------------------- */
.not-found {
    max-width: 1000px;
    margin: 50px auto;
}


/* post page
--------------------------------------------- */
.site-main-wrapper {
    max-width: 1000px;
    width: 94%;
    margin: 30px 3% 40px;
    padding: 0;
}

h1.entry-title {
    font-size: clamp(24px, 4vw, 28px);
    padding: 0;
    margin: 0 0 5px;
    letter-spacing: 0.1em;
    position: relative;
}

.entry-content p {
    font-size: clamp(13px, 1.2vw, 14px);
    line-height: 1.9;
    text-align: justify;
    margin: 0 0 35px 0;
}

.single header.entry-header {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.single .entry-content {
    width: 96%;
    max-width: 1100px;
    margin: 0 auto;
}

.single .entry-content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.single .wp-block-image {
    margin: 0 0 25px 0;
}

.wp-block-image .aligncenter {
    width: 100%;
}

.site-main .post-navigation {
    width: 100%;
    max-width: 1000px;
    margin: 50px auto 30px;
}

.nav-next a,
.nav-previous a {
    text-decoration: none;
    color: #666;
    font-size: clamp(13px, 1.3vw, 14px);
}

.device-switch {
    max-width: 1200px;
    margin: 80px auto 30px;
    font: inherit;
    text-align: center;
}

.device-switch__desc {
    position: relative;
    width: fit-content;
    padding: 8px 12px;
    font-size: clamp(12px, 1.25vw, 13px);
    color: var(--text-color);
    margin: 0 auto 31px;
}

.device-switch__desc::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #ddd;
    translate: -50%;
}

.device-switch__desc::after {
    content: "";
    position: absolute;
    top: calc(100% + 8px);
    left: 46%;
    width: 30px;
    height: 1px;
    box-sizing: border-box;
    background-color: #ddd;
    box-shadow: 0 1px 0 #ffffff, 0 -1px 0 #ffffff;
    rotate: 50deg;
    translate: -50%;
}

.device-switch__title {
    color: var(--text-color);
    padding: 12px 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(12px, 1.3vw, 13px);
    white-space: nowrap;
}

.device-switch__title::before,
.device-switch__title::after {
    content: "";
    border-top: 1px dotted var(--text-color);
    width: 100%;
}

.device-switch__title::before {
    margin-right: 1rem;
}

.device-switch__title::after {
    margin-left: 1rem;
}

.device-switch-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    margin-bottom: 25px;
}

.device-switch .tab {
    cursor: pointer;
    border: 1px solid #ddd;
    background: transparent;
    color: var(--text-color);
    padding: 10px 14px;
    user-select: none;
    border-radius: 2px;
    width: 150px;
    text-align: center;
}

.device-preview {
    border: 1px solid #ddd;
    background-color: #0000001c;
    border-radius: 2px;
    height: 83vh;
    overflow: hidden;
}

.device-switch .pane {
    display: none;
    height: 100%;
    overflow: auto;
}

.device-switch .pane img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-width: none;
}

.device-switch .pane.mobile {
    display: none;
    gap: 13px;
    justify-content: center;
    align-items: flex-start;
}

.device-switch .pane.mobile img {
    width: min(420px, 44%);
    height: auto;
}

/* 2枚目 */
.device-switch .pane.mobile img:nth-of-type(2) {
    margin-top: 40px;
}

/* 3枚目 */
.device-switch .pane.mobile img:nth-of-type(3) {
    margin-top: 80px;
}


#device-switch-01-desktop:checked~.device-switch-tabs label[for="device-switch-01-desktop"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

#device-switch-01-mobile:checked~.device-switch-tabs label[for="device-switch-01-mobile"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

#device-switch-01-desktop:checked~.device-preview .desktop {
    display: block;
}

#device-switch-01-mobile:checked~.device-preview .mobile {
    display: flex;
}

.device-switch .pane::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.device-switch .pane::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 8px;
}

.device-switch .pane::-webkit-scrollbar-track {
    background: #111;
    border-radius: 8px;
}

.device-preview,
.device-preview .pane {
    overflow-y: auto;
    overflow-x: hidden;

    /* Firefox 用 */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color);
}

/* ▼ Chrome/Edge/Safari 用（WebKit系） */
.device-preview::-webkit-scrollbar,
.device-preview .pane::-webkit-scrollbar {
    width: 8px;
}

.device-preview::-webkit-scrollbar-track,
.device-preview .pane::-webkit-scrollbar-track {
    background: #f0f3f5;
}

.device-preview::-webkit-scrollbar-thumb,
.device-preview .pane::-webkit-scrollbar-thumb {
    background: #4caf50;
    border-radius: 8px;
    border: 2px solid #f0f3f5;
}

.device-preview::-webkit-scrollbar-thumb:hover,
.device-preview .pane::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.work-meta__wrapper {
    text-align: center;
    position: relative;
    margin: 50px auto;
}

a.work-meta__cta {
    color: var(--text-color);
    display: inline-block;
    padding: 0.6em 1.4em;
    border: 1px solid #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: background 0.3s ease;
}

.work-meta__icon {
    position: relative;
    bottom: -3px;
    color: var(--text-color);
}

@media (min-width: 769px) {
    .site-main-wrapper {
        width: min(96%, 1100px);
        max-width: none;
        margin: 30px auto;
        padding: 0;
    }

    .single .entry-content {
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
    }

    .device-switch .pane.mobile {
        gap: 36px;
    }

    .device-switch .pane.mobile img {
        width: 45%;
        max-width: 480px;
        height: auto;
        margin: 0;
    }
}

@media (min-width: 1101px) {
    .site-main-wrapper {
        width: 90%;
        margin: 30px auto;
        padding: 0 20px;
    }
}


/* カテゴリータイトル
--------------------------------------------- */
.post-category-title {
    background-color: #e2e2e2;
    color: #000;
    text-align: center;
    padding: 15px;
    font-size: 2em;
    margin-bottom: 5px;
    width: 100%;
}

.posted-on {
    font-size: 12px;
    font-weight: bold;
}

.post_time_icon {
    margin-right: 3px;
}

@media (min-width: 769px) {
    .posted-on {
        font-size: clamp(12px, 1.2vw, 13px);
    }
}


/* サイドバー
--------------------------------------------- */
.widget-area {
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

@media (min-width: 769px) {
    .widget-area {
        padding: 15px;
    }
}



/* パンくず
--------------------------------------------- */
/* .breadcrumbs_content {
    border-bottom: 1px solid #ddd;
    padding: 1px 0 6px;
} */

.breadcrumbs_wrap {
    max-width: 1000px;
    width: 90%;
    margin: 0 30px;
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    font-size: clamp(11px, 1vw, 13px);
}

.breadcrumb li {
    margin-right: 10px;
}

.breadcrumb li a {
    text-decoration: none;
    color: #0073aa;
}

.breadcrumb li:after {
    content: ">";
    margin-left: 10px;
    color: #333;
}

.breadcrumb li:last-child:after {
    content: "";
}

@media (min-width: 1101px) {
    .breadcrumbs_wrap {
        width: 100%;
        margin: 0 auto;
    }
}


/* ブログ ページャー
--------------------------------------------- */
ul.page-numbers {
    margin: 20px auto;
    width: max-content;
    padding: 0;
}

ul.page-numbers li {
    margin: 0;
    list-style: none;
    display: block;
    overflow: hidden;
    float: left
}

ul.page-numbers li:first-child {
    background: none;
}

ul.page-numbers li:first-child a {
    border: none;
}

ul.page-numbers li:first-child a:hover {
    background: none;
}

ul.page-numbers li:last-child {
    background: none;
}

ul.page-numbers li:last-child a {
    border: none;
}

ul.page-numbers li:last-child a:hover {
    background: none;
}

ul.page-numbers li a,
ul.page-numbers li span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #ddd;
    margin: 0 4px;
    box-sizing: border-box;
    line-height: 1;
    font-size: clamp(14px, 1.2vw, 16px);
    text-decoration: none;
    color: var(--text-color);
}

ul.page-numbers li span.page-numbers.current,
.page-link dl .post-page-numbers.current {
    color: #fff;
    background-color: var(--primary-color);
}

ul.page-numbers .is-disabled {
    visibility: hidden;
    pointer-events: none;
}

nav.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    min-height: 50px;
    clear: both;
}

.pagination li.prev>.page-numbers i,
.pagination li.next>.page-numbers i {
    display: none;
}

.pagination li.prev>a.page-numbers::before,
.pagination li.prev>span.page-numbers::before,
.pagination li.next>a.page-numbers::after,
.pagination li.next>span.page-numbers::after {
    font-weight: 400;
    line-height: 1;
    color: #a7a7a7;
    font-size: clamp(22px, 1.6vw, 26px);
    line-height: 1;
    position: relative;
    top: -3px;
}

.pagination li.prev>a.page-numbers::before,
.pagination li.prev>span.page-numbers::before {
    content: "‹";
}

.pagination li.next>a.page-numbers::after,
.pagination li.next>span.page-numbers::after {
    content: "›";
}

/* サイドバー
--------------------------------------------- */
h2.wp-block-heading {
    font-size: clamp(15px, 1.6vw, 18px);
}

.wp-block-group ul {
    margin: 0 0 1em 1em;
    padding: 0;
}

.wp-block-group ul li {
    font-size: clamp(13px, 1.4vw, 15px);
    list-style: none;
}

.wp-element-button {
    white-space: nowrap;
    font-size: clamp(13px, 1.3vw, 14px);
}

label.wp-block-search__label {
    display: none;
}


/* scroll reveal
--------------------------------------------- */
[data-reveal],
.data-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
}

.is-revealed {
    opacity: 1;
    transform: none;
}

[data-reveal="fade-left"] {
    transform: translateX(24px);
}

[data-reveal="fade-right"] {
    transform: translateX(-24px);
}

[data-reveal="blur-up"] {
    filter: blur(6px);
}

[data-reveal="blur-up"].is-revealed {
    filter: blur(0);
    transition: opacity .6s ease, transform .6s ease, filter .6s ease;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        transition: none;
    }
}


/* oneline_post
--------------------------------------------- */
.oneline_post_container {
    width: 100%;
    margin: 0 auto 70px;
}

.oneline_post_container a {
    text-decoration: none;
}

.oneline_post_wrapper {
    display: block;
    height: auto;
    margin: 0 auto;
    border-bottom: 1px solid #ccc;
    padding: 0 0 40px;
    box-sizing: content-box;
    color: #000;
    width: 100%;
}

.oneline_post_box_pc {
    display: none;
}

.oneline_post_box_sp {
    display: block;
}

.oneline_title_inner {
    display: flex;
    align-items: center;
}

.oneline_title_outer {
    width: 100%;
}

p.oneline_post_time {
    font-size: 11px;
    margin: 0 0 2px 0;
    padding: 0;
    width: 100%;
    text-align: left;
}

h2.oneline_post_title {
    font-size: 18px;
    font-weight: bold;
    border: none;
    margin: 0;
    padding: 0;
    height: auto;
    width: 100%;
    text-align: left;
}

.oneline_post_text {
    width: 100%;
    height: 42px;
    overflow: hidden;
    padding: 0;
}

.oneline_post_text.noimg_width {
    width: 100%;
    height: 42px;
    overflow: hidden;
    padding: 0;
}

.oneline_post_text p {
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 19px;
    white-space: normal;
    margin: 5px 0 10px 0;
}

.oneline_post_new {
    background: #FF4A40;
    color: #fff;
    padding: 2px 4px 0;
    font-weight: bold;
    height: 20px;
    margin: 0 5px 0 0;
    font-size: clamp(10px, 1.2vw, 12px);
    text-align: left;
    width: max-content;
}

.oneline_post_img {
    margin: 0;
    position: static;
}

.oneline_post_img img {
    width: 100%;
    position: static;
}

.oneline_post_img.noimg {
    display: none;
}

.oneline_nopost_wrapper {
    width: max-content;
    margin: 40px auto 30px;
}

@media (min-width: 601px) {
    .oneline_post_container {
        width: 100%;
        margin: 30px auto 70px;
    }

    .oneline_post_wrapper {
        display: flex;
        align-items: center;
    }

    .oneline_post_box_pc {
        align-self: center;
        margin-right: 20px;
        display: block;
    }

    .oneline_post_box_sp {
        display: none;
    }

    .oneline_title_outer {
        flex: 1 1 auto;
        width: auto;
    }

    .oneline_post_wrapper .oneline_title_outer {
        flex: 1 1 auto;
        width: auto;
    }

    .oneline_post_wrapper .oneline_post_img:not(.noimg)~.oneline_title_outer {
        width: 65%;
    }

    p.oneline_post_time {
        font-size: 12px;
        margin: 0;
        padding: 0 0 0 10px;
        width: 110px;
        text-align: left;
    }

    h2.oneline_post_title {
        font-size: clamp(18px, 2.6vw, 22px);
        width: auto;
    }

    .oneline_post_text {
        width: calc(100% - 13px);
        height: auto;
    }

    .oneline_post_text.noimg_width {
        width: 100%;
        height: auto;
    }

    .oneline_post_text p {
        text-overflow: ellipsis;
        white-space: nowrap;
        -webkit-line-clamp: 1;
        overflow: hidden;
        margin: 5px 0 10px 0;
        display: block;
        line-height: normal;
    }

    .oneline_post_new {
        padding: 2px 5px 0;
        height: 23px;
        margin: 2px 5px 0 0;
        font-size: clamp(12px, 1.2vw, 14px);
    }

    .oneline_post_img {
        min-width: 100px;
        margin: 0 20px 0 0;
        position: relative;
    }

    .oneline_post_img img {
        width: auto;
    }
}

@media (min-width: 1001px) {
    .oneline_post_wrapper .oneline_title_outer {
        width: 80%;
    }

    .oneline_post_wrapper .oneline_post_img:not(.noimg)~.oneline_title_outer {
        width: 65%;
    }
}

@media (min-width: 1301px) {
    .oneline_post_container {
        width: 1000px;
    }
}


/* onerow_post
--------------------------------------------- */
.onerow_post_container {
    width: 90%;
    margin: 0 auto 70px;
}

.onerow_post_container a {
    text-decoration: none;
}

.onerow_post_continuation:hover {
    text-decoration: underline;
}

.onerow_post_wrapper {
    display: block;
    height: auto;
    margin: 10px auto;
    border-bottom: 1px solid #6c757d;
    padding: 5px 0 19px;
    box-sizing: content-box;
    color: #000;
    width: 100%;
}

p.onerow_post_time {
    font-size: clamp(11px, 1.1vw, 12px);
    margin: 0;
    padding: 0;
}

.onerow_title_inner {
    display: flex;
    margin-bottom: 2px;
}

h2.onerow_post_title {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.4;
    font-weight: bold;
    border: none;
    margin: 0;
    padding: 0;
    height: auto;
    width: 100%;
}

.onerow_post_text {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 0;
}

.onerow_post_text.noimg_width {
    width: 100%;
}

.onerow_post_text p {
    -webkit-line-clamp: 2;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 21px;
    margin: 6px 0 26px 0;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

span.onerow_post_new {
    background: #FF4A40;
    color: #fff;
    padding: 1px 5px 0;
    font-weight: bold;
    height: 20px;
    margin: 3px 5px 0 0;
    font-size: clamp(12px, 1.2vw, 14px);
}

.onerow_post_img {
    width: 100%;
    min-width: auto;
    height: auto;
    margin: 7px 0 10px 0;
}

.onerow_post_img img {
    width: 100%;
}

.onerow_post_img.noimg {
    display: none;
}

.onerow_title_outer {
    width: 100%;
}

.onerow_nopost_wrapper {
    width: max-content;
    margin: 40px auto 30px;
}

.onerow_post_continuation {
    font-size: clamp(12px, 1.3vw, 13px);
    position: absolute;
    right: 0;
    bottom: 0;
}

.onerow_post_continuation a:hover {
    text-decoration: underline;
}

.onerow_post_continuation.noimg_width {
    width: 100%;
}

.onerow_post_continuation.noimg_position {
    right: 0;
}

.oneline_post_container:hover .onerow_post_continuation {
    text-decoration: underline;
}

.onerow_title_box,
.onerow_title_box.noimg_height {
    position: relative;
    height: auto;
}

@media (min-width: 601px) {

    .onerow_post_container {
        width: 90%;
        margin: 0 auto 70px;
    }

    .onerow_post_wrapper {
        display: flex;
    }

    p.onerow_post_time {
        font-size: 12px;
    }

    h2.onerow_post_title {
        font-size: clamp(18px, 2.6vw, 22px);
        line-height: normal;
    }

    .onerow_post_text {
        width: calc(100% - 4px);
        height: 67px;
    }

    .onerow_post_text.noimg_width {
        width: calc(100% - -160px);
    }

    .onerow_post_text p {
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-height: 23px;
        margin: 0;
    }

    span.onerow_post_new {
        padding: 2px 5px 0;
        height: 23px;
        margin: 2px 5px 0 0;
        font-size: 14px;
    }

    .onerow_post_img {
        width: 160px;
        min-width: auto;
        height: auto;
        margin: 0 20px 0 0;
    }

    .onerow_post_img img {
        width: 100%;
    }

    .onerow_title_outer {
        width: calc(100% - 168px);
    }

    .onerow_post_continuation {
        font-size: 13px;
    }

    .onerow_post_continuation.noimg_width {
        width: calc(100% - -160px);
    }

    .onerow_post_continuation.noimg_position {
        right: -160px;
    }

    .onerow_title_box {
        height: 169px;
    }

    .onerow_title_box.noimg_height {
        height: 133px;
    }
}

@media (min-width: 601px) and (max-width: 767px) {
    .onerow_post_img {
        width: 50vw;
        min-width: 30vw;
        height: auto;
        margin: 0 20px 0 0;
    }

    .onerow_title_box {
        height: 148px;
    }

    .onerow_title_box.noimg_height {
        height: 123px;
    }
}

@media (min-width: 1201px) {
    .onerow_post_container {
        width: 1000px;
    }
}


/* ========== Works Archive Template ========== */
.smh-works-archive {
    width: min(96%, 1100px);
    margin: 0 auto 80px;
}

.smh-works-archive__title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 600;
    text-align: center;
    margin: 40px 0;
}

.smh-works-archive__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 50px;
}

.smh-workcard {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .3s ease, opacity .3s ease;
}

.smh-workcard:hover {
    transform: translateY(-4px);
    opacity: .9;
}

.smh-workcard__img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fafafa;
}

.smh-workcard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.smh-workcard__img--ph {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    background: #eee;
    border-radius: 8px;
}

.smh-workcard__body {
    margin-top: 5px;
}

.smh-workcard__title {
    font-size: clamp(15px, 1.8vw, 18px);
    margin: 5px 0;
}

.smh-workcard__skills {
    color: #777;
    font-size: clamp(12px, 1.2vw, 14px);
}

@media (min-width: 768px) {
    .smh-works-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================
   posts-grid-square.php
========================= */
.smh-works-square__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .smh-works-square__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.smh-works-square__item {
    display: block;
}

.smh-works-square__img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.smh-works-square__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================
   Works Archive : Hero
========================= */
.smh-works-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .smh-works-hero__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

.smh-works-hero__item {
    display: block;
    text-decoration: none;
}

.smh-works-hero__img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.smh-works-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.smh-works-hero__body {
    margin-top: 12px;
}

.smh-works-hero__title {
    font-size: 1.6rem;
}

.smh-works-hero__skills {
    font-size: 1.2rem;
    opacity: 0.7;
}