.contact-body {
    --contact-navy: #071a34;
    --contact-navy-deep: #041226;
    --contact-navy-soft: #0d294d;
    --contact-cyan: #30b9c4;
    --contact-text: rgba(247, 251, 255, 0.92);
    --contact-muted: rgba(247, 251, 255, 0.72);
    --contact-faint: rgba(247, 251, 255, 0.48);
    --contact-line: rgba(247, 251, 255, 0.18);
    color: var(--contact-text);
    background: var(--contact-navy);
    overflow-x: clip;
}

.contact-page {
    position: relative;
    z-index: 0;
    background: var(--contact-navy);
    overflow-x: clip;
}

.contact-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 12%, rgba(45, 90, 160, 0.1), transparent 40%),
        radial-gradient(circle at 92% 88%, rgba(48, 185, 196, 0.05), transparent 40%);
}

.contact-page section { padding: 0; }
.contact-page section[id] { scroll-margin-top: 96px; }

.contact-meeting,
.contact-form {
    background-color: transparent;
}

.contact-page a:focus-visible,
.contact-page button:focus-visible {
    outline: 2px solid rgba(247, 251, 255, 0.82);
    outline-offset: 5px;
}

.contact-shell {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding-inline: clamp(24px, 6vw, 88px);
}

.contact-eyebrow,
.contact-hero__eyebrow,
.contact-hero__scroll {
    font-family: 'Inter', sans-serif;
}

.contact-eyebrow {
    margin-bottom: 24px;
    color: var(--contact-faint);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.24em;
}

.contact-section-title { display: inline-block; max-width: 100%; }
.contact-section-title__mask { overflow: hidden; }

.contact-section-title h2 {
    color: var(--contact-text);
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.contact-section-title__line {
    display: block;
    height: 1px;
    margin-top: 18px;
    background: rgba(48, 185, 196, 0.55);
    transform-origin: left;
}

/* 共通ヘッダーのダーク配色は style-<hash>.css 側。このページは濃めの値に差し替える */
.contact-body {
    --header-shade: linear-gradient(180deg, rgba(4, 14, 30, 0.78), rgba(4, 14, 30, 0.28) 64%, transparent);
    --header-link: rgba(247, 251, 255, 0.9);
}

/* Hero */
.contact-hero {
    --hero-progress: 0;
    --hero-image-scale: 1;
    --hero-visual-opacity: 1;
    --hero-scroll-opacity: 1;
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: visible;
}

.contact-hero__media,
.contact-hero__media picture,
.contact-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.contact-hero__media {
    z-index: -3;
    opacity: var(--hero-visual-opacity);
    transform: translate3d(0, calc(var(--hero-progress) * 26svh), 0) scale(var(--hero-image-scale));
    transform-origin: center center;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

.contact-hero__media picture { display: block; }

.contact-hero__media img {
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.76) brightness(0.96) contrast(0.94);
}

/* 左のコピー側は最初から暗さを確保し、人物のいる右側は明るさを残す */
.contact-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(2, 10, 23, 0.88) 0%, rgba(3, 13, 29, 0.7) 36%, rgba(3, 13, 29, 0.24) 70%, rgba(3, 13, 29, 0.34) 100%),
        linear-gradient(180deg, rgba(2, 8, 18, 0.14), rgba(2, 8, 18, 0.46));
    transform: translate3d(0, calc(var(--hero-progress) * 26svh), 0);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

.contact-hero__shade::after {
    content: '';
    position: absolute;
    inset: 0;
    /* 終端色をページ背景の navy に合わせ、完全被覆(opacity 1)まで上げることで
       媒体フェードと打ち消し合わず単調に「沈む」(明るさが途中で戻らない) */
    background: linear-gradient(180deg, var(--contact-navy-deep), var(--contact-navy));
    opacity: clamp(0, calc(var(--hero-progress) * 1.25), 1);
}

.contact-hero__content {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: clamp(130px, 16vh, 190px) clamp(32px, 6vw, 104px) clamp(90px, 11vh, 132px);
}

.contact-hero__eyebrow {
    margin-bottom: 22px;
    color: rgba(247, 251, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.24em;
}

.contact-hero h1 {
    max-width: 900px;
    color: var(--contact-text);
    font-size: clamp(2.5rem, 4.5vw, 5rem);
    line-height: 1.18;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.contact-hero__lead {
    max-width: 660px;
    margin-top: clamp(28px, 4vh, 46px);
    color: rgba(247, 251, 255, 0.84);
    font-size: clamp(0.96rem, 1.25vw, 1.12rem);
    line-height: 2;
}

.contact-hero__lead span { display: block; }

.contact-hero__scroll {
    position: absolute;
    left: clamp(18px, 2.4vw, 38px);
    bottom: clamp(30px, 5vh, 56px);
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(247, 251, 255, 0.48);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    opacity: var(--hero-scroll-opacity);
}

.contact-hero__scroll::after {
    content: '';
    width: 1px;
    height: 62px;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.42), transparent);
    transform-origin: top;
    animation: page-scroll-line 2.8s var(--ease-expo) infinite;
}

/* Sections */
.contact-meeting {
    padding-block: clamp(220px, 26vw, 350px) clamp(140px, 18vw, 230px) !important;
}

.contact-form {
    padding-block: clamp(140px, 18vw, 230px) clamp(180px, 22vw, 300px) !important;
}

.contact-meeting__heading,
.contact-form__heading { margin-bottom: clamp(72px, 10vw, 124px); }

.contact-meeting__body,
.contact-form__body {
    max-width: 980px;
    margin-left: auto;
}

.contact-meeting__lead,
.contact-form__lead {
    margin-bottom: clamp(42px, 6vw, 66px);
    color: var(--contact-muted);
    font-size: clamp(0.96rem, 1.15vw, 1.04rem);
    line-height: 2.1;
}

/* Google カレンダーの予約枠。角丸なしの薄い枠線でダーク背景に馴染ませる */
.contact-meeting__frame {
    border: 1px solid rgba(247, 251, 255, 0.2);
    background: #ffffff;
}

.contact-meeting__frame iframe {
    display: block;
    width: 100%;
    height: 600px;
    border: 0;
    background: #ffffff;
}

.contact-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-form__button {
    position: relative;
    min-width: 300px;
    min-height: 58px;
    padding: 16px 22px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    border: 1px solid rgba(247, 251, 255, 0.9);
    color: var(--contact-navy);
    background: rgba(247, 251, 255, 0.94);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.7s var(--ease-expo), background-color 0.7s var(--ease-expo), border-color 0.7s var(--ease-expo);
}

.contact-form__button:hover { border-color: var(--contact-cyan); color: var(--contact-navy); background: var(--contact-cyan); }

.contact-form__button .material-symbols-rounded {
    font-size: 1.15rem;
    transition: transform 0.7s var(--ease-expo);
}

.contact-form__button:hover .material-symbols-rounded { transform: translateX(5px); }

.contact-form__note {
    margin-top: 22px;
    color: var(--contact-faint);
    font-size: 0.78rem;
    line-height: 1.9;
}

/* Footer */
.contact-body footer {
    position: relative;
    overflow: hidden;
    padding: 120px 0 40px;
    color: #fff;
    background: var(--contact-navy);
    font-size: 15px;
    line-height: 1.75;
}

.contact-body footer .footer-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: row;
    gap: 80px;
}

.contact-body footer .footer-links,
.contact-body footer .footer-links:first-child { flex: 0 0 auto; margin-right: 0; }

.contact-body footer .footer-links h3 {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 700;
}

.contact-body footer .footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.contact-body footer .footer-links li { margin-bottom: 0; }

.contact-body footer .footer-links a {
    padding-bottom: 2px;
    color: #fff;
    font-size: 0.875rem;
    background-image: linear-gradient(#fff, #fff);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-body footer .footer-links a:hover { color: #fff; background-size: 100% 1px; }

.contact-body footer .copyright {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 80px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-align: left;
}

/* Motion: opt-in only */
.contact-motion-ready .contact-hero__media picture {
    animation: contact-hero-image-in 1.6s var(--ease-expo) both;
}

.contact-motion-ready .contact-hero__eyebrow,
.contact-motion-ready .contact-hero h1,
.contact-motion-ready .contact-hero__lead,
.contact-motion-ready .contact-hero__scroll {
    animation: contact-hero-copy-in 1.6s var(--ease-expo) both;
}

.contact-motion-ready .contact-hero__eyebrow { animation-delay: 0.28s; --hero-enter-y: 15px; }
.contact-motion-ready .contact-hero h1 { animation-delay: 0.46s; --hero-enter-y: 25px; }
.contact-motion-ready .contact-hero__lead { animation-delay: 0.72s; --hero-enter-y: 20px; }
.contact-motion-ready .contact-hero__scroll { animation: contact-hero-fade-in 1.2s var(--ease-expo) 1.05s both; }

@keyframes contact-hero-image-in {
    from { opacity: 0.6; transform: scale(1.035); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes contact-hero-copy-in {
    from { opacity: 0; transform: translateY(var(--hero-enter-y)); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes contact-hero-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 901px) {
    .contact-motion-ready [data-contact-section] { --section-progress: 0; }

    .contact-motion-ready .contact-meeting__lead,
    .contact-motion-ready .contact-meeting__frame,
    .contact-motion-ready .contact-form__lead,
    .contact-motion-ready .contact-form__actions,
    .contact-motion-ready .contact-form__note {
        --reveal-progress: clamp(0, calc((var(--section-progress) - var(--reveal-delay, 0)) * 2.35), 1);
        opacity: var(--reveal-progress);
        transform: translate3d(0, calc((1 - var(--reveal-progress)) * var(--reveal-offset, 24px)), 0);
    }

    .contact-motion-ready .contact-meeting__lead { --reveal-delay: 0.12; }
    .contact-motion-ready .contact-meeting__frame { --reveal-delay: 0.24; --reveal-offset: 34px; }
    .contact-motion-ready .contact-form__lead { --reveal-delay: 0.12; }
    .contact-motion-ready .contact-form__actions { --reveal-delay: 0.26; }
    .contact-motion-ready .contact-form__note { --reveal-delay: 0.34; }

    .contact-motion-ready .contact-section-title h2 {
        --title-progress: clamp(0, calc((var(--section-progress) - 0.08) * 2.1), 1);
        transform: translate3d(0, calc((1 - var(--title-progress)) * 102%), 0);
    }

    .contact-motion-ready .contact-section-title__line {
        --line-progress: clamp(0, calc((var(--section-progress) - 0.28) * 2.5), 1);
        transform: scaleX(var(--line-progress));
    }
}

@media (max-width: 900px) {
    .contact-hero { min-height: 100svh; }

    .contact-hero__content {
        padding: 126px clamp(20px, 6vw, 48px) 108px;
    }

    .contact-hero__lead { max-width: 670px; }
    .contact-hero__scroll { display: none; }

    .contact-meeting__body,
    .contact-form__body { margin-left: 0; }

    .contact-motion-ready [data-contact-section] .contact-section-title h2 {
        transform: translateY(102%);
        transition: transform 1.6s var(--ease-slow);
    }

    .contact-motion-ready [data-contact-section] .contact-section-title__line {
        transform: scaleX(0);
        transition: transform 1.8s var(--ease-slow) 0.5s;
    }

    .contact-motion-ready [data-contact-section].is-visible .contact-section-title h2,
    .contact-motion-ready [data-contact-section].is-visible .contact-section-title__line { transform: none; }

    .contact-motion-ready [data-contact-section] .contact-meeting__lead,
    .contact-motion-ready [data-contact-section] .contact-meeting__frame,
    .contact-motion-ready [data-contact-section] .contact-form__lead,
    .contact-motion-ready [data-contact-section] .contact-form__actions,
    .contact-motion-ready [data-contact-section] .contact-form__note {
        opacity: 0;
        transform: translateY(26px);
        transition: opacity 1.35s var(--ease-slow), transform 1.55s var(--ease-slow);
    }

    .contact-motion-ready [data-contact-section].is-visible .contact-meeting__lead,
    .contact-motion-ready [data-contact-section].is-visible .contact-meeting__frame,
    .contact-motion-ready [data-contact-section].is-visible .contact-form__lead,
    .contact-motion-ready [data-contact-section].is-visible .contact-form__actions,
    .contact-motion-ready [data-contact-section].is-visible .contact-form__note {
        opacity: 1;
        transform: translateY(0);
    }

    .contact-motion-ready [data-contact-section] .contact-meeting__frame,
    .contact-motion-ready [data-contact-section] .contact-form__actions { transition-delay: 0.25s; }
    .contact-motion-ready [data-contact-section] .contact-form__note { transition-delay: 0.35s; }
}

@media (max-width: 768px) {
    .contact-body footer { padding: 80px 0 32px; }
    .contact-body footer .footer-container { flex-direction: column; gap: 48px; }
    .contact-body .menu-overlay { z-index: 999; }
}

@media (max-width: 600px) {
    .contact-shell { padding-inline: 20px; }
    .contact-hero { min-height: 92svh; }
    .contact-hero__media img { object-position: 62% center; }

    .contact-hero__shade {
        background:
            linear-gradient(90deg, rgba(2, 10, 23, 0.86), rgba(3, 13, 29, 0.38) 86%),
            linear-gradient(180deg, rgba(2, 8, 18, 0.14), rgba(2, 8, 18, 0.56));
    }

    .contact-hero__content { padding-top: 112px; padding-bottom: 64px; }
    .contact-hero__eyebrow { margin-bottom: 16px; }
    .contact-hero h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); line-height: 1.22; }
    .contact-hero__lead { font-size: 0.94rem; line-height: 1.95; }
    .contact-hero__lead span { display: inline; }
    .contact-meeting__frame iframe { height: 660px; }
    .contact-form__actions { flex-direction: column; }
    .contact-form__button { width: 100%; min-width: 0; }
}
