/* =========================================================
   Luena Stay Official Site v2
   common.css
   ========================================================= */

:root {
    --navy: #0f2a3d;
    --navy-deep: #091c29;
    --gold: #c9a45a;
    --gold-soft: #d8bf86;
    --ivory: #f7f3eb;
    --sand: #ece3d4;
    --white: #ffffff;
    --text: #1f2c34;
    --muted: #6f7b82;
    --line: rgba(15, 42, 61, 0.14);

    --content-width: 1180px;
    --header-height: 84px;

    --font-en: "Times New Roman", Georgia, serif;
    --font-jp: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
        "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-jp);
    color: var(--text);
    background: var(--white);
    line-height: 1.85;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

::selection {
    background: var(--gold-soft);
    color: var(--navy-deep);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid transparent;
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.site-header.is-scrolled,
body:not(.home) .site-header {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 42, 61, 0.08);
    box-shadow: 0 8px 30px rgba(15, 42, 61, 0.06);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    width: min(calc(100% - 48px), 1380px);
    min-height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1002;
}

.site-brand__logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.08));
    transition:
        width 0.3s ease,
        height 0.3s ease,
        transform 0.3s ease;
}

.site-brand:hover .site-brand__logo {
    transform: translateY(-1px);
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-brand__text strong {
    font-family: var(--font-en);
    font-size: 23px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--white);
    transition: 0.3s ease;
}

.site-brand__text small {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 0.24em;
    color: rgba(255, 255, 255, 0.78);
    transition: 0.3s ease;
}

.site-header.is-scrolled .site-brand__text strong,
.site-header.is-scrolled .site-brand__text small,
body:not(.home) .site-brand__text strong,
body:not(.home) .site-brand__text small {
    color: var(--navy);
}

.global-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.global-nav a {
    position: relative;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.global-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.global-nav a:hover::after {
    width: 100%;
}

.site-header.is-scrolled .global-nav a,
body:not(.home) .global-nav a {
    color: var(--navy);
}

.global-nav .global-nav__contact {
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.48);
}

.site-header.is-scrolled .global-nav .global-nav__contact,
body:not(.home) .global-nav .global-nav__contact {
    border-color: rgba(15, 42, 61, 0.25);
}

.global-nav .global-nav__contact::after {
    display: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    position: relative;
    z-index: 1002;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 8px;
    width: 28px;
    height: 1px;
    background: var(--white);
    transition: 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 14px;
}

.menu-toggle span:nth-child(2) {
    top: 22px;
}

.menu-toggle span:nth-child(3) {
    top: 30px;
}

.site-header.is-scrolled .menu-toggle span,
body:not(.home) .menu-toggle span {
    background: var(--navy);
}

.menu-toggle.is-active span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

/* =========================================================
   Shared layout
   ========================================================= */

.section {
    padding: 120px 0;
}

.section__inner {
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
}

.section-heading {
    margin-bottom: 52px;
}

.section-heading--center {
    text-align: center;
}

.section-heading__en {
    margin: 0 0 10px;
    color: var(--gold);
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.28em;
}

.section-heading__title {
    margin: 0;
    font-family: var(--font-en);
    color: var(--navy);
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.text-link {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    color: var(--navy);
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.2em;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 4px;
}

.outline-button,
.contact-button,
.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 52px;
    padding: 14px 26px;
    border: 1px solid currentColor;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.outline-button {
    color: var(--navy);
}

.outline-button:hover {
    color: var(--white);
    border-color: var(--navy);
    background: var(--navy);
}

.section-button-wrap {
    margin-top: 54px;
    text-align: center;
}

.image-placeholder {
    min-height: 280px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 42, 61, 0.08), rgba(201, 164, 90, 0.12)),
        var(--ivory);
    color: rgba(15, 42, 61, 0.48);
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.2em;
}

.image-placeholder::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(15, 42, 61, 0.08);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    color: var(--white);
    background: var(--navy-deep);
}

.site-footer__visual {
    min-height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(8, 28, 42, 0.24), rgba(8, 28, 42, 0.5)),
        radial-gradient(circle at 65% 35%, rgba(201, 164, 90, 0.32), transparent 40%),
        linear-gradient(135deg, #35596b, #112f3e 62%, #0a1d2a);
    overflow: hidden;
}

.site-footer__visual::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -30px;
    height: 130px;
    border-radius: 50% 50% 0 0;
    background: rgba(247, 243, 235, 0.06);
}

.site-footer__visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 28, 41, 0.76), rgba(9, 28, 41, 0.12));
}

.site-footer__message {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
}

.site-footer__eyebrow {
    margin: 0 0 14px;
    color: var(--gold-soft);
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.28em;
}

.site-footer__message h2 {
    margin: 0;
    font-family: var(--font-en);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.03em;
}

.site-footer__main {
    padding: 76px 0 26px;
}

.site-footer__inner {
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

.site-footer__logo {
    margin: 0;
    font-family: var(--font-en);
    font-size: 42px;
    letter-spacing: 0.04em;
}

.site-footer__tagline {
    max-width: 440px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.site-footer__links-title {
    margin: 0 0 18px;
    color: var(--gold-soft);
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.site-footer__links a {
    display: block;
    width: fit-content;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.site-footer__links a:hover {
    color: var(--white);
}

.site-footer__bottom {
    width: min(calc(100% - 48px), var(--content-width));
    margin: 62px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    letter-spacing: 0.06em;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__legal {
    display: flex;
    gap: 24px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
    :root {
        --header-height: 72px;
    }

    .site-header__inner {
        width: min(calc(100% - 30px), 1380px);
    }

    .site-brand {
        gap: 11px;
    }

    .site-brand__logo {
        width: 50px;
        height: 50px;
    }

    .site-brand__text strong {
        font-size: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .global-nav {
        position: fixed;
        inset: 0;
        padding: 120px 30px 46px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(9, 28, 41, 0.98);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: 0.3s ease;
        overflow-y: auto;
    }

    .global-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .global-nav a,
    .site-header.is-scrolled .global-nav a,
    body:not(.home) .global-nav a {
        width: 100%;
        padding: 17px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        color: var(--white);
        font-family: var(--font-en);
        font-size: 19px;
        font-weight: 400;
        letter-spacing: 0.08em;
    }

    .global-nav a::after {
        display: none;
    }

    .global-nav .global-nav__contact,
    .site-header.is-scrolled .global-nav .global-nav__contact,
    body:not(.home) .global-nav .global-nav__contact {
        margin-top: 18px;
        padding: 16px 18px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        text-align: center;
    }

    .menu-toggle.is-active span {
        background: var(--white) !important;
    }

    .section {
        padding: 88px 0;
    }

    .section__inner {
        width: min(calc(100% - 32px), var(--content-width));
    }

    .site-footer__inner {
        width: min(calc(100% - 32px), var(--content-width));
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .site-footer__bottom {
        width: min(calc(100% - 32px), var(--content-width));
    }
}

@media (max-width: 640px) {
    .site-brand__logo {
        width: 46px;
        height: 46px;
    }

    .site-brand__text small {
        display: none;
    }

    .section {
        padding: 72px 0;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .section-heading__title {
        font-size: 31px;
    }

    .site-footer__visual {
        min-height: 340px;
    }

    .site-footer__message {
        width: calc(100% - 32px);
    }

    .site-footer__links {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 14px;
    }

    .site-footer__legal {
        flex-wrap: wrap;
    }
}
