html {
    font-size: 100%;
}

body {
    font-size: 1rem;
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Yu gothic medium", "游ゴシック medium", "YuGothic", "游ゴシック体", "ヒラギノ角ゴ Pro W3", sans-serif;
    margin: 0;
    color: var(--text-color);
    z-index: 1;
}

:root {
    --text-color: #333;
    --background-color: #f0f0f0;
    --background-color2: #ffffff;
    --primary-color: #000000;
    --secondary-color: #9c9c9c;
    --tertiary-color: #816c4b;
}

a {
    text-decoration: none;
}

a:link {
    color: var(--text-color);
}

a:visited {
    color: var(--text-color);
}

a:hover {
    color: var(--tertiary-color);
}

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


header {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    display: flex;
    height: 100vh;
}

@media screen and (max-width: 600px) {
    header {
        display: block;
    }

}


/* top左側ヘッダー */
header .header-nav {
    flex: 1;
    border-right: 1px dashed var(--primary-color);
    opacity: 0;
    animation: fadein 0.5s 3s forwards ease-in-out;

}

@media screen and (max-width: 600px) {
    header .header-nav {
        border-right: none;
    }

}

@media screen and (max-width: 600px) {
    header .header-nav h1 {
        /* margin: 0;
        position: absolute;
        top: 1rem;
        left: 1rem; */
        display: none;
    }

}

header .header-nav h1 img {
    max-width: 60%;
    opacity: 0;
    animation: fadein 0.5s 3s forwards ease-in-out;

}

@media screen and (max-width: 600px) {
    header .header-nav h1 img {
        max-width: 50px;
    }

}

header .header-nav .sp-header {
    display: none;
}

/*ハンバーガーメニューここから↓↓↓*/

/* ハンバーガーメニューを最前面に */

.hamburger {
    position: relative;
    /* またはfixedでもOK */
    z-index: 9999;
}

/* ヘッダー全体はメニューより後ろ */
.header-nav,
.header-link {
    position: relative;
    z-index: 1;
}

/* iframe（Google Map）も下げる */
.access-container iframe {
    position: relative;
    z-index: 0;
}

/* ギャラリー画像なども競合しないように */
.space-gallery img,
.concept-img img,
.system-img img {
    position: relative;
    z-index: 0;
}

@media screen and (max-width: 600px) {
    header .header-nav .sp-header {
        display: block;
        position: fixed;
        width: 100%;
        height: 52px;
        margin-top: 0;
        z-index: 1000;
    }

    /* Nav items */
    .menu {
        list-style: none;
        position: absolute;
        width: 80%;
        max-width: 200px;
        height: auto;
        top: 0;
        left: 10px;
        margin-top: 52px;
        padding: 0 0 10px 0;
        border-radius: 20px;
        clear: both;
        background: var(--tertiary-color);
        transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
        transform: scale(0, 1);
        transform-origin: top;
        opacity: 1;
        z-index: 1000;
    }

    /* Hamburger menu button */
    .menu.active {
        transform: scale(1, 1);
        transform-origin: top;
        transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
    }

    /* Hamburger menbu text */
    .menu a {
        text-decoration: none;
        letter-spacing: 2px;
        font-size: 100%;
        text-transform: capitalize;
        color: var(--primary-color);
        opacity: 0;
        transition: 0.5s;
    }

    .menu li {
        padding: 15px 0;
        margin: 0 10%;
        opacity: 0;
        transition: 0.5s;
    }

    .menu li:not(:first-child) {
        border-top: 1px solid var(--secondary-color);
    }

    .menu.menu.active a,
    .menu.menu.active li {
        opacity: 1;
        transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
    }

    /*　メニューアイコン */
    .menu-icon {
        display: inline-block;
        position: relative;
        cursor: pointer;
        padding: 24px 14px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

    }


    .menu-icon {
        position: fixed;
        /* 固定表示 */
        top: 10px;
        /* 上からの距離 */
        left: 10px;
        /* 左からの距離 */
        z-index: 1000;
        /* 他要素より前面 */
        display: block;
        margin: 0;
        /* 余白リセット */
        padding: 12px;
        /* クリックしやすい余白 */
    }


    .navicon {
        background: var(--tertiary-color);
        display: block;
        height: 3px;
        width: 26px;
        position: relative;
        transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
    }

    .navicon:before,
    .navicon:after {
        content: "";
        display: block;
        height: 100%;
        width: 100%;
        position: absolute;
        background: var(--tertiary-color);
        transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
    }

    .navicon:before {
        top: 9px;
    }

    .navicon:after {
        bottom: 9px;
    }

    /* Hamburger Menu Animation Start */
    .navicon.active:before {
        transform: rotate(-45deg);
        top: 0;
    }

    .navicon.active::after {
        transform: rotate(45deg);
        bottom: 0;
    }


    .navicon.active {
        background: rgba(0, 0, 0, 0);
        transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
    }



}

/* Hamburger Menu Animation End */
/*ハンバーガーメニューここまで↑↑↑*/

@media screen and (max-width: 600px) {
    header .header-nav nav {
        display: none;
    }

}


header .header-nav nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

header .header-nav nav ul li {
    margin: 2rem 0;
    opacity: 0;
    animation: fadein 0.5s 3.5s forwards ease-in-out;
}

header .header-nav nav ul li a {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: bold;
}

header .header-nav nav ul li a:hover {
    color: var(--tertiary-color);
}



header .header-link {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* 下揃え */
    align-items: center;
    height: 10rem;
    /*高さはお好みで調整 */
    position: relative;
    opacity: 0;
    animation: fadein 0.5s 4s forwards ease-in-out;

}

@media screen and (max-width: 600px) {
    header .header-link {
        position: absolute;
        top: 90vh;
        left: 0vw;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        gap: 10%;
        align-items: center;
        justify-content: center;
    }
}

header .header-link img {
    width: 30%;
    height: auto;
}

@media screen and (max-width: 600px) {
    header .header-link img {
        width: 50px;
        height: auto;

    }

}



/* top右側の背景画像 */
header .top-bg {
    flex: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadein 3s forwards ease-in-out;

}

@media screen and (max-width: 600px) {
    header .top-bg {
        position: relative;
        top: 50vh;
        transform: translateY(-50%);

    }

}

header .top-bg img {
    width: 80%;
    height: auto;
}

#concept {
    background-color: var(--background-color2);
    /* border-top: 2px solid var(--primary-color); */
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
    background-image: url('image/smith_bg2-2.png');
    /* 画像パスを指定 */
    background-repeat: no-repeat;
    /* 繰り返しなし */
    background-position: 2rem 3rem;
    /* 左上に配置 */
    background-size: 70%;
    /* 元サイズ（必要に応じてcoverやcontainも可） */
    margin: 0 10%;
}

#concept h2 {
    text-align: center;
    padding: 2rem 5rem 1rem;
    color: var(--text-color);
    display: inline-block;
    /* 文字列だけ下線 */
    border-bottom: 0.5rem solid var(--text-color);
    /* 太めの下線 */
    font-size: 3rem;
}

@media screen and (max-width: 600px) {
    #concept h2 {
        font-size: 2rem;
        padding: 0rem 2rem 0.5rem;
        margin: 1rem 0;
        border-bottom: 0.3rem solid var(--text-color);
    }

}

#concept .concept-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-top: 2px solid var(--primary-color);
}

@media screen and (max-width: 600px) {
    #concept .concept-container {
        flex-direction: column;
        padding: 1rem 0;
    }

}

#concept .concept-container .concept-img {
    flex: 2;
    padding: 3rem 2rem;
    border-right: 2px solid var(--primary-color);
}

.scale-up-hover {
    transition: transform 0.3s ease;
}

.scale-up-hover:hover img {
    /* ホバー時の効果 */
    transform: scale(1.1);
}

@media screen and (max-width: 600px) {
    #concept .concept-container .concept-img {
        border-right: none;
        padding: 1rem 2rem;
    }

}

#concept .concept-container .concept-text {
    flex: 3;
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 600px) {
    #concept .concept-container .concept-text {
        padding: 1rem 2rem;
        text-align: center;
    }

}

#concept .concept-container .concept-text p {
    color: var(--text-color);
    max-width: 80%;
    text-align: left;
    font-size: 1.2rem;
}

@media screen and (max-width: 600px) {
    #concept .concept-container .concept-text p {
        max-width: 90%;
        font-size: 1rem;
    }

}

#space {
    /* background-color: var(--background-color); */
    background: linear-gradient(to right, white, var(--background-color));
    padding: 2rem 10%;
}

@media screen and (max-width: 600px) {
    #space {
        padding: 1rem 2rem;
    }

}

#space .space-header {
    text-align: right;
}

#space h2 {
    margin: 0;
    padding: 0rem 5rem 1rem;
    color: var(--text-color);
    display: inline-block;
    /* 文字列だけ下線 */
    border-bottom: 0.5rem solid var(--text-color);
    /* 太めの下線 */
    font-size: 3rem;
}

@media screen and (max-width: 600px) {
    #space h2 {
        font-size: 2rem;
        padding: 0rem 2rem 1rem;
        border-bottom: 0.3rem solid var(--text-color);
    }

}

#space .space-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

@media screen and (max-width: 600px) {
    #space .space-container {
        flex-direction: column;
        padding: 1rem 0;
    }

}

#space .space-container .space-text {
    flex: 1;
    padding: 3rem 2rem;
}

@media screen and (max-width: 600px) {
    #space .space-container .space-text {
        padding: 1rem 1rem;
        text-align: center;
    }

}

#space .space-container .space-text p {
    color: var(--text-color);
    max-width: 90%;
    text-align: left;
    font-size: 1.2rem;
}

@media screen and (max-width: 600px) {
    #space .space-container .space-text p {
        max-width: 100%;
        font-size: 1rem;
    }

}

#space .space-container .space-img {
    flex: 1;
    text-align: right;
}

@media screen and (max-width: 600px) {
    #space .space-container .space-img {
        text-align: center;
    }

}

#space .space-container .space-img img {
    width: 90%;
    height: auto;
}

#space .space-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

#space .space-gallery .gallery-item1 {
    flex: 2;
}

#space .space-gallery .gallery-item2 {
    flex: 1;
    padding: 0 1rem;
}

/* @media screen and (max-width: 600px) {
    #space .space-gallery {
        padding: 0.5rem 0;
    }
    
} */

#space .space-gallery .gallery-item2 img {
    width: 80%;
    height: auto;
    display: block;
    /* ブロック要素化 */
    margin-left: auto;
    /* 右寄せ */
    margin-bottom: 3rem;
    /* 下に余白 */
}

@media screen and (max-width: 600px) {
    #space .space-gallery .gallery-item2 img {
        width: 100%;
        height: auto;
        margin-left: 0;
        /* 左寄せ */
        margin-bottom: 1rem;
    }

}

#system {
    background-color: var(--background-color2);
    padding: 2rem 0 0;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background-image: url('image/smith_bg2-2.png');
    /* 画像パスを指定 */
    background-repeat: no-repeat;
    /* 繰り返しなし */
    background-position: calc(100% - 2rem) 3rem;
    background-size: 70%;
    margin: 0 10%;
}

#system h2 {
    margin: 0 0 0 2rem;
    padding: 0rem 5rem 1rem;
    color: var(--text-color);
    display: inline-block;
    /* 文字列だけ下線 */
    border-bottom: 0.5rem solid var(--text-color);
    /* 太めの下線 */
    font-size: 3rem;
}

@media screen and (max-width: 600px) {
    #system h2 {
        font-size: 2rem;
        padding: 0rem 2rem 1rem;
        border-bottom: 0.3rem solid var(--text-color);
    }

}

#system .system-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding: 0;
    border-top: 2px solid var(--primary-color);
}

@media screen and (max-width: 600px) {
    #system .system-container {
        flex-direction: column;
        padding: 1rem 0;
    }

}

#system .system-img {
    flex: 1;
    padding: 3rem 2rem;
    text-align: center;
    border-right: 2px solid var(--primary-color);
}

@media screen and (max-width: 600px) {
    #system .system-img {
        border-right: none;
        padding: 1rem 2rem;
    }

}

#system .system-img img {
    width: 80%;
    height: auto;
}

#system .system-text {
    flex: 1;
    padding: 3rem 2rem;
}

@media screen and (max-width: 600px) {
    #system .system-text {
        padding: 1rem 2rem;
        text-align: center;
    }

}

#system .system-text p {
    color: var(--text-color);
    max-width: 90%;
    text-align: left;
    font-size: 1.2rem;
}

@media screen and (max-width: 600px) {
    #system .system-text p {
        max-width: 100%;
        font-size: 1rem;
    }

}

#gallery {
    padding: 2rem 3rem;
    text-align: center;
    margin: 0 10%;
}

#gallery h2 {
    text-align: center;
    padding: 0rem 5rem 1rem;
    color: var(--text-color);
    display: inline-block;
    border-bottom: 0.5rem solid var(--text-color);
    font-size: 3rem;
}

@media screen and (max-width: 600px) {
    #gallery h2 {
        font-size: 2rem;
        padding: 0rem 2rem 1rem;
        border-bottom: 0.3rem solid var(--text-color);
    }

}

#gallery .galley-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCは3列 */
    gap: 2rem;
    justify-items: center;
    align-items: stretch;
    padding: 1rem 0;
}

@media screen and (max-width: 900px) {
    #gallery .galley-container {
        grid-template-columns: repeat(2, 1fr); /* タブレット・スマホは2列 */
        gap: 1.2rem;
    }
}

@media screen and (max-width: 600px) {
    #gallery .galley-container {
        grid-template-columns: repeat(2, 1fr); /* スマホも2列 */
        gap: 1rem;
    }
}

#contact {
    background: linear-gradient(to left, white, var(--background-color));
    padding: 2rem 10%;

}

@media screen and (max-width: 600px) {
    #contact {
        padding: 1rem 2rem;
    }

}

#contact .contact-header {
    text-align: right;
    margin-right: 2rem;
}

@media screen and (max-width: 600px) {
    #contact .contact-header {
        margin-right: 0;
    }

}

#contact h2 {
    margin: 0;
    padding: 0rem 5rem 1rem;
    color: var(--text-color);
    display: inline-block;
    /* 文字列だけ下線 */
    border-bottom: 0.5rem solid var(--text-color);
    /* 太めの下線 */
    font-size: 3rem;
}

@media screen and (max-width: 600px) {
    #contact h2 {
        font-size: 2rem;
        padding: 0rem 2rem 1rem;
        border-bottom: 0.3rem solid var(--text-color);
    }

}

#contact .contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

@media screen and (max-width: 600px) {
    #contact .contact-container {
        flex-direction: column;
        padding: 1rem 0;
    }

}

#contact .contact-container .contact-text {
    flex: 2;
    padding: 3rem 2rem;
    justify-items: center;
}

#contact .contact-container .contact-text p {
    color: var(--text-color);
    max-width: 90%;
    text-align: left;
    font-size: 1.2rem;
}

#contact .contact-container .contact-text p span {
    border-bottom: 0.1rem solid var(--text-color);
}

@media screen and (max-width: 600px) {
    #contact .contact-container .contact-text {
        padding: 1rem 1rem;
        text-align: center;
    }

    #contact .contact-container .contact-text p {
        max-width: 100%;
        font-size: 1rem;
    }

}

#contact .contact-container .contact-sns {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

#contact .contact-container .contact-sns img {
    width: 5rem;
    height: auto;
}

@media screen and (max-width: 600px) {
    #contact .contact-container .contact-sns img {
        width: 3rem;
        height: auto;
    }

}

#access {
    background-color: var(--background-color2);
    padding: 2rem 10%;
    background-image: url('image/smith_bg2-2.png');
    /* 画像パスを指定 */
    background-repeat: no-repeat;
    /* 繰り返しなし */
    background-position: 2rem 1rem;
    /* 左上に配置 */
    background-size: 70%;
    /* 元サイズ（必要に応じてcoverやcontainも可） */
    text-align: center;

}

#access h2 {
    margin: 0 0 2rem 0;
    padding: 0rem 5rem 1rem;
    color: var(--text-color);
    display: inline-block;
    /* 文字列だけ下線 */
    text-align: center;
    border-bottom: 0.5rem solid var(--text-color);
    /* 太めの下線 */
    font-size: 3rem;
}

@media screen and (max-width: 600px) {
    #access h2 {
        font-size: 2rem;
        padding: 0rem 2rem 1rem;
        border-bottom: 0.3rem solid var(--text-color);
    }

}

@media screen and (max-width: 600px) {
    #access .access-container iframe {
        width: 80vw;
        height: 60vh;
    }
}

footer {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 1rem 0 0;
}

footer .footer-nav {
    margin-left: 2rem;
}

@media screen and (max-width: 600px) {
    footer .footer-nav {
        display: none;
    }

}

footer .footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

footer .footer-nav ul li {
    margin: 0 1rem;
}

footer .footer-nav ul li a {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: bold;
}

footer .footer-nav ul li a:hover {
    color: var(--tertiary-color);
}


footer .footer-info p {
    margin: 0;
    padding: 1rem;
}