:root {
    --color-gold: #d4af37;
    --color-gold-light: rgba(212, 175, 55, 0.2);
    --color-bg-header-bottom: #09090b;
    --color-bg-body: #131314;
    --color-bg-body-number: rgba(19, 19, 20, 0.8);
    --color-bg-main-nav: #101013;
    --color-bg-footer: #101013;
    --color-text-light: #ddd;
    --color-text-dark: #000000;
    --color-shadow: rgba(0, 0, 0, 0.2);
    --bottom-bar-height: 80px;
    --transition-fast: 0.3s ease;
    --transition-normal: 0.4s ease;
    --z-header: 9999;
    --z-main-nav: 9998;
    --z-overlay: 9997;
    --z-sticky: 9996;
    --z-fixed-box: 9995;
    --z-top: 9994;
    --font-en: 'Playfair Display';
    --font-jp-heading: 'Shippori Mincho';
    --font-jp-body: 'Shippori Mincho B1', 'Zen Old Mincho', 'Noto Serif JP', 'Hiragino Mincho ProN';

}

button,
input,
select,
textarea {
    font-family: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    padding-top: 8rem;
    min-height: 100vh;
    background-color: var(--color-bg-body);
    color: var(--color-text-light);
    font-family: var(--font-jp-body), var(--font-en), serif;
    font-size: 1.6rem;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.8;
}

:target {
    scroll-margin-top: 85px;
}

header {
    position: fixed;
    top: 0;
    z-index: var(--z-header);
    background-color: var(--color-bg-header-bottom);
    box-shadow: 0 4px 10px var(--color-shadow);
    width: 100vw;
    box-sizing: border-box;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.6rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: auto;
    height: 4rem;
    margin: 0.4rem 0;
    display: block;
}

.scroll-top {
    position: fixed;
    right: 2.4rem;
    bottom: 10rem;
    z-index: var(--z-top);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 50%;
    background-color: var(--color-gold);
    color: var(--color-text-dark);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast), bottom 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

body:has(.fixed-box.is-open) .scroll-top {
    bottom: 40rem;
}

.scroll-top::before {
    content: "";
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    margin-bottom: 0.4rem;
    border-top: 2px solid var(--color-text-dark);
    border-right: 2px solid var(--color-text-dark);
    transform: rotate(-45deg);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}

footer {
    margin-top: 4.8rem;
    padding: 4rem 2.4rem 2.4rem;
    background-color: var(--color-bg-footer);
    color: var(--color-text-light);
    text-align: center;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
}

.footer-sns {
    display: flex;
    justify-content: center;
    gap: 2.4rem;
    margin-bottom: 3.2rem;
}

.sns-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
}

.sns-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-tel {
    margin-bottom: 3.2rem;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
}

.footer-tel a {
    padding: 0.8rem;
    color: var(--color-text-light);
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem 2.4rem;
    margin: 0 0 3.2rem 0;
    padding: 0;
    list-style: none;
}

.footer-nav a {
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    padding: 0.8rem;
}

.footer-copy {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

@media screen and (max-width: 1024px) {
    body {
        padding-bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom));
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: var(--z-overlay);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: -32rem;
        z-index: var(--z-main-nav);
        width: 75vw;
        max-width: 32rem;
        height: 100vh;
        padding: 8rem 2.4rem;
        background-color: var(--color-bg-main-nav);
        box-shadow: 0 1rem var(--color-shadow);
        transition: right var(--transition-normal);
    }

    #main-nav.active {
        right: 0;
    }

    #main-nav ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #main-nav ul li {
        margin: 0;
        border-bottom: 0.1rem solid var(--color-gold-light);
    }

    #main-nav ul li a {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        color: var(--color-gold);
        padding: 0.8rem 0;
    }

    .nav-label-group {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

    .nav-en {
        font-size: 1.8rem;
        letter-spacing: 0.05em;
    }

    .nav-jp {
        font-size: 1.2rem;
        color: var(--color-text-light);
        opacity: 0.7;
        white-space: nowrap;
    }

    .menu-trigger {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;

        gap: 0.8rem;
        padding: 0.8rem;
        border: none;
        background: none;
        color: var(--color-gold);
        cursor: pointer;
    }

    .hamburger-menu-text {
        font-size: 1.4rem;
        font-weight: bold;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 2.4rem;
        height: 18px;
    }

    .menu-icon span {
        display: block;
        width: 100%;
        height: 0.2rem;
        background-color: var(--color-gold);
        transition: transform var(--transition-fast), opacity var(--transition-fast);
        transform-origin: center;
    }

    .menu-trigger.is-open .menu-icon span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-trigger.is-open .menu-icon span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .menu-trigger.is-open .menu-icon span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .bottom-sticky-bar {
        position: fixed;
        bottom: -10rem;
        left: 0;
        z-index: var(--z-sticky);
        display: flex;
        width: 100vw;
        height: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom));
        padding: 0 1.6rem env(safe-area-inset-bottom);
        background-color: var(--color-bg-header-bottom);
        color: var(--color-gold);
        box-shadow: 0 -2px 10px var(--color-shadow);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-fast);
    }

    .bottom-sticky-bar.is-visible {
        bottom: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        background: none;
        border: none;
        padding: 0;
        font: inherit;
        color: inherit;
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3.2rem;
        height: 3.2rem;
    }

    .nav-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .nav-icon svg {
        width: 3.2rem;
        height: 3.2rem;
        fill: var(--color-gold);
    }


    .nav-text {
        margin: 0.4rem 0;
        font-size: 1.2rem;
    }

    .material-symbols-outlined {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 3.2rem;
        height: 3.2rem;
        color: var(--color-gold);
        font-size: 3.2rem !important;
        line-height: 1;
        font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 40;
    }

    .fixed-box {
        position: fixed;
        bottom: -48rem;
        right: 1.2rem;
        width: 8rem;
        height: 30rem;
        background-color: var(--color-bg-header-bottom);
        border: 1px solid var(--color-gold-light);
        box-sizing: border-box;
        border-radius: 9999rem;
        z-index: var(--z-fixed-box);
        transition: bottom 0.8s cubic-bezier(0.25, 1, 0.5, 1);
        display: flex;
        flex-direction: column;
    }

    .fixed-box.is-open {
        bottom: 8.8rem;
    }

    .box-item {
        width: 8rem;
        height: 6rem;
        box-sizing: border-box;
        padding: 2rem 2rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .box-item-bottom {
        width: 8rem;
        height: 6rem;
        box-sizing: border-box;
        padding: 0 2rem 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .box-item img {
        width: 4rem;
        height: 4rem;
        object-fit: cover;
        display: block;
    }

    .arrow-down {
        width: 1.6rem;
        height: 1.6rem;
        border-top: 2px solid var(--color-text-light);
        border-right: 2px solid var(--color-text-light);
        transform: rotate(135deg);
    }
}

@media screen and (min-width: 1025px) {
    .menu-trigger {
        display: none;
    }

    .bottom-sticky-bar {
        display: none;
    }

    .fixed-box {
        display: none;
    }

    #main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 8rem;
        z-index: var(--z-header);
        box-sizing: border-box;
    }

    #main-nav .nav-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        height: 100%;
        list-style: none;
        margin: 0;
        padding: 1.6rem;
        gap: 1.6rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    #main-nav .nav-list::-webkit-scrollbar {
        display: none;
    }

    #main-nav .nav-list {
        scrollbar-width: none;
    }

    #main-nav .nav-list li a {
        color: var(--color-gold);
        text-decoration: none;
        font-size: 1.6rem;
        padding: 0.4rem;
    }

    #main-nav .nav-jp {
        display: none;
    }
}