/* ============================
   AT HEARTH — DESIGN V2
   Masters Edition
   ============================ */

/* ============================
   RESET & VARIABLES
   ============================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --bg: #F5F0EB;
    --bg2: #E8E0D8;
    --bg3: #F0EAE3;
    --dark: #2C2826;
    --txt: #2C2826;
    --txt2: #6B635C;
    --txt3: #9B9490;
    --acc: #B8956A;
    --acc2: #8B7355;
    --white: #FEFCFA;
    --serif-jp: 'Noto Serif JP', serif;
    --sans-jp: 'Noto Sans JP', sans-serif;
    --serif-en: 'Cormorant Garamond', serif;
    --sans-en: 'Inter', sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    cursor: none
}

body {
    background: var(--bg);
    color: var(--txt);
    font-family: var(--sans-jp);
    font-weight: 300;
    line-height: 1.9;
    overflow-x: hidden;
    cursor: none
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 1;
    /* 9998 → 1：全要素の最背面へ（pointer-events:noneで操作に影響なし） */
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    /* 128px → 200px：タイル数削減 */
    will-change: auto;
}

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

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

button {
    border: none;
    background: none;
    cursor: none;
    font-family: inherit
}

/* ============================
   CUSTOM CURSOR (B1 — Harris)
   ============================ */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width .3s, height .3s, opacity .3s, border .3s, margin .3s;
    mix-blend-mode: difference;
    will-change: transform;
    /* transformはJSが制御するのでwill-changeのみ */
    transform: translate(0, 0)
        /* 初期値（JSで上書き） */
}

.cursor.on-photo {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1.5px solid var(--acc);
    mix-blend-mode: normal
}

.cursor.on-link {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1.5px solid var(--acc);
    mix-blend-mode: normal
}

@media (pointer: coarse) {

    html,
    body,
    a,
    button {
        cursor: auto
    }

    .cursor {
        display: none
    }
}

/* ============================
   SCROLL PROGRESS (A5 — Harris)
   ============================ */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, var(--acc), var(--acc2));
    z-index: 200;
    transition: height .1s linear
}

body:not(.home) .scroll-progress {
    display: none
}

/* ============================
   LAYOUT — unified padding
   ============================ */
.sp {
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden
}

@media(min-width:768px) {
    .sp {
        padding: 10rem 4rem
    }
}

@media(min-width:1024px) {
    .sp {
        padding: 12rem 6rem
    }
}

.cn {
    max-width: 840px;
    margin: 0 auto
}

.cw {
    max-width: 960px;
    margin: 0 auto
}

/* ============================
   SECTION MOTIFS
   ============================ */
.section-motif {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 0
}

.motif-circle {
    width: 45vw;
    max-width: 360px;
    top: 50%;
    right: 5%;
    transform: translateY(-50%)
}

.motif-flow {
    width: 80%;
    top: 50%;
    left: 10%;
    transform: translateY(-50%)
}

.motif-blocks {
    width: 100px;
    bottom: 10%;
    right: 8%
}

.motif-laurel {
    width: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

@media(min-width:768px) {
    .motif-circle {
        width: 30vw;
        max-width: 500px;
        right: 10%
    }

    .motif-blocks {
        width: 160px;
        right: 12%
    }

    .motif-laurel {
        width: 320px
    }
}

/* ============================
   SECTION PEEK TRANSITION (A9 — Boom)
   ============================ */
.section-peek {
    height: 6px;
    margin-top: -1px;
    position: relative;
    z-index: 1
}

/* ============================
   ANIMATIONS
   ============================ */
.rv {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s cubic-bezier(.23, 1, .32, 1), transform .7s cubic-bezier(.23, 1, .32, 1)
}

.rv.v {
    opacity: 1;
    transform: translateY(0)
}

.rl {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s cubic-bezier(.23, 1, .32, 1), transform .6s cubic-bezier(.23, 1, .32, 1)
}

.rl.v {
    opacity: 1;
    transform: translateY(0)
}

/* Stagger for nav items (A3 — Fukasawa) */
.nav-inner a {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity .4s ease, transform .4s ease, color .3s
}

.nav.open .nav-inner a {
    opacity: 1;
    transform: translateX(0)
}

.nav.open .nav-inner a:nth-child(1) {
    transition-delay: .08s
}

.nav.open .nav-inner a:nth-child(2) {
    transition-delay: .14s
}

.nav.open .nav-inner a:nth-child(3) {
    transition-delay: .20s
}

.nav.open .nav-inner a:nth-child(4) {
    transition-delay: .26s
}

.nav.open .nav-inner a:nth-child(5) {
    transition-delay: .32s
}

.nav.open .nav-inner a:nth-child(6) {
    transition-delay: .38s
}

.nav.open .nav-inner a:nth-child(7) {
    transition-delay: .44s
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: .3;
        transform: scaleY(.6)
    }

    50% {
        opacity: 1;
        transform: scaleY(1)
    }
}

@keyframes heroZoom {
    from {
        transform: scale(1.04)
    }

    to {
        transform: scale(1)
    }
}

@keyframes heroTextReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(4px)
    }

    60% {
        filter: blur(0)
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

@keyframes underlineReveal {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

/* ============================
   HEADER (A4 — Fukasawa shrink)
   ============================ */
.hdr {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: calc(1.2rem + env(safe-area-inset-top, 0px)) 1.5rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background .4s, backdrop-filter .4s, padding .5s cubic-bezier(.23, 1, .32, 1)
}

.hdr.scrolled {
    background: rgba(245, 240, 235, .94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: calc(.7rem + env(safe-area-inset-top, 0px));
    padding-bottom: .7rem;
    box-shadow: 0 1px 0 rgba(184, 149, 106, .15)
}

.hdr-left {
    display: flex;
    align-items: center;
    gap: .8rem
}

.hdr-logo {
    height: 28px;
    width: auto;
    transition: height .5s cubic-bezier(.23, 1, .32, 1)
}

/* スクロール前：ロゴを白に */
.hdr:not(.scrolled) .hdr-logo {
    filter: brightness(0) invert(1);
    transition: filter .4s, height .5s cubic-bezier(.23, 1, .32, 1)
}

/* スクロール後：ロゴを元色に */
.hdr.scrolled .hdr-logo {
    filter: none;
    height: 22px
}

.hdr-desc {
    font-size: .6rem;
    color: rgba(255, 255, 255, 0.85);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    letter-spacing: .08em;
    padding-left: .8rem;
    line-height: 1.4;
    white-space: nowrap;
    transition: color .4s, border-color .4s, opacity .4s
}

.hdr.scrolled .hdr-desc {
    color: var(--txt2);
    border-left-color: var(--bg2);
    opacity: .6
}

@media(min-width:768px) {
    .hdr {
        padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 3rem 1.5rem
    }

    .hdr.scrolled {
        padding-top: calc(.8rem + env(safe-area-inset-top, 0px));
        padding-bottom: .8rem
    }

    .hdr-logo {
        height: 34px
    }

    .hdr.scrolled .hdr-logo {
        height: 26px
    }

    .hdr-desc {
        font-size: .65rem
    }
}

.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 200
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.9);
    transition: all .4s, background .4s;
    transform-origin: center
}

.hdr.scrolled .menu-btn span {
    background: var(--txt)
}

.menu-btn.active span:first-child {
    transform: translateY(7.5px) rotate(45deg)
}

.menu-btn.active span:nth-child(2) {
    opacity: 0
}

.menu-btn.active span:last-child {
    transform: translateY(-7.5px) rotate(-45deg)
}

/* ============================
   NAV OVERLAY (A3 — Fukasawa stagger)
   ============================ */
.nav {
    position: fixed;
    top: calc(1rem + env(safe-area-inset-top, 0px));
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 150;
    background: rgba(254, 252, 250, .97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    -webkit-border-radius: 24px;
    border-radius: 24px;
    border: 1px solid rgba(184, 149, 106, .14);
    box-shadow: 0 8px 48px rgba(44, 40, 38, .14);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: 4rem 1.5rem 2rem;
    overflow: hidden;
    /* overflow-y:auto → hidden（角丸維持のため） */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* Safari border-radius強制 */
    mask-image: radial-gradient(white, black);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-transform: scale(.96) translateY(6px) translateZ(0);
    transform: scale(.96) translateY(6px) translateZ(0);
    /* translateZ(0)でGPUレイヤー強制 */
    transition: opacity .35s cubic-bezier(.23, 1, .32, 1), transform .35s cubic-bezier(.23, 1, .32, 1), visibility 0s .35s
}

.nav-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    overflow-y: auto;
    /* スクロールを内部要素に移管 */
    max-height: 100%;
    /* 親のpaddingを考慮して収まるように */
    width: 100%;
    -webkit-overflow-scrolling: touch;
    /* iOS慣性スクロール */
}

@media(min-height:700px) {

    .nav,
    .nav-inner {
        gap: 1.6rem
    }
}

.nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    -webkit-transform: scale(1) translateY(0) translateZ(0);
    transform: scale(1) translateY(0) translateZ(0);
    transition: opacity .35s cubic-bezier(.23, 1, .32, 1), transform .35s cubic-bezier(.23, 1, .32, 1), visibility 0s
}

/* デスクトップはニュートラル（カードスタイル不要） */
@media(min-width:768px) {
    .nav {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 0;
        -webkit-border-radius: 0;
        border: none;
        box-shadow: none;
        background: var(--bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        -webkit-mask-image: none;
        mask-image: none;
        transform: translateY(-8px);
    }

    .nav.open {
        transform: translateY(0)
    }
}

.nav-inner a {
    font-family: var(--serif-en);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: .15em;
    color: var(--txt);
    position: relative
}

.nav-inner a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--acc);
    transition: width .4s cubic-bezier(.23, 1, .32, 1)
}

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

.nav-inner a:hover {
    color: var(--acc2)
}

.nav .ns {
    font-family: var(--sans-jp);
    font-size: .65rem;
    color: var(--txt3);
    display: inline;
    margin-left: .8em;
    letter-spacing: .1em
}

.nav-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 210;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center
}

.nav-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--txt);
    stroke-width: 1.5
}

.nav-div {
    width: 40px;
    height: 1px;
    background: var(--bg2)
}

.nav-info {
    text-align: center;
    font-size: .7rem;
    color: var(--txt2);
    line-height: 1.8
}

.nav-info a {
    font-family: var(--serif-en);
    font-size: .95rem;
    letter-spacing: .1em
}

/* ============================
   HERO — cinematic
   ============================ */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 0
}

.hero-slide.active {
    opacity: 1;
    z-index: 1
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    /* 非アクティブはズーム済み状態で待機 */
}

.hero-slide.active img {
    animation: heroZoom 18s ease-out forwards
}

/* ドットナビゲーション */
.hero-dots {
    position: absolute;
    bottom: 4rem;
    right: 1.5rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    opacity: 0;
    animation: fadeIn .8s 2.5s forwards
}

.hero-dot {
    width: 4px;
    height: 20px;
    background: rgba(255, 255, 255, .3);
    border-radius: 2px;
    transition: background .4s, height .4s cubic-bezier(.23, 1, .32, 1);
    padding: 0
}

.hero-dot.active {
    background: var(--acc);
    height: 32px
}

@media(min-width:768px) {
    .hero-dots {
        bottom: 5rem;
        right: 3rem
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
            rgba(44, 40, 38, .8) 0%,
            rgba(44, 40, 38, .35) 35%,
            rgba(44, 40, 38, .08) 65%,
            rgba(44, 40, 38, .15) 100%)
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 0 1.5rem 5rem;
    color: var(--white);
    max-width: 640px
}

.hero-tag {
    font-family: var(--sans-en);
    font-size: .6rem;
    letter-spacing: .25em;
    color: var(--acc);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn .8s .5s forwards;
    text-transform: uppercase
}

.hero-main {
    font-family: var(--serif-jp);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: .12em;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: heroTextReveal 1.2s .8s cubic-bezier(.23, 1, .32, 1) forwards
}

.hero-sub {
    font-family: var(--serif-jp);
    font-size: .85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, .65);
    letter-spacing: .15em;
    opacity: 0;
    animation: fadeIn .8s 1.8s forwards
}

.hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    opacity: 0;
    animation: fadeIn .8s 2.2s forwards;
    overflow: hidden
}

.hero-scroll span {
    font-family: var(--sans-en);
    font-size: .55rem;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .4)
}

.hero-scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, var(--acc));
    animation: scrollPulse 2s ease-in-out infinite
}

@media(min-width:768px) {
    .hero-content {
        padding: 0 4rem 6rem
    }

    .hero-main {
        font-size: 2.6rem
    }

    .hero-sub {
        font-size: 1rem
    }
}

/* ============================
   PHOTO BREAK — PARALLAX (A2 — Harris)
   ============================ */
.photo-break {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    position: relative;
    border-top: 1.5px solid var(--acc);
    border-bottom: 1.5px solid var(--acc)
}

.photo-break img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
    left: 0;
    will-change: transform
}

@media(min-width:768px) {
    .photo-break {
        height: 60vh
    }
}

/* ============================
   SECTION COMMON
   ============================ */
.sh {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1
}

.sn {
    font-family: var(--serif-en);
    font-size: .75rem;
    font-weight: 300;
    letter-spacing: .2em;
    color: var(--acc);
    display: block;
    margin-bottom: .6rem
}

.ste {
    font-family: var(--serif-en);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: .1em;
    color: var(--txt);
    margin-bottom: .4rem
}

.stj {
    font-family: var(--sans-jp);
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: .15em;
    color: var(--txt2)
}

@media(min-width:768px) {
    .ste {
        font-size: 2.6rem
    }
}

/* ============================
   PHILOSOPHY (B2 — Sagmeister stagger + B4 — Hara asymmetric)
   ============================ */
.phi {
    background: linear-gradient(180deg, var(--white) 0%, #F8F4EF 100%)
}

.phi::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    /* 300px → 400px：タイル数削減 */
    opacity: 0.55;
    -webkit-mask:
        radial-gradient(ellipse 60% 60% at 0% 0%, black 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 100% 100%, black 0%, transparent 70%);
    -webkit-mask-composite: source-over;
    mask:
        radial-gradient(ellipse 60% 60% at 0% 0%, black 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 100% 100%, black 0%, transparent 70%);
    mask-composite: add
}

.phi .cn {
    position: relative;
    z-index: 1
}

.phi-h {
    font-family: var(--serif-jp);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: .1em;
    margin-bottom: 2.5rem
}

.phi-b {
    position: relative;
    z-index: 1
}

.phi-b p {
    margin-bottom: 1.5rem;
    font-size: .9rem;
    color: var(--txt2);
    line-height: 2.4
}

/* Keyword color transition (B2 — Sagmeister) */
.phi-b .keyword {
    color: var(--txt);
    font-weight: 400;
    transition: color 1s ease
}

.phi-b .keyword.lit {
    color: var(--acc)
}

.phi-en {
    font-family: var(--serif-en);
    font-size: .85rem;
    font-weight: 300;
    color: var(--acc);
    letter-spacing: .2em;
    margin-top: 3.5rem;
    opacity: .6
}

@media(min-width:768px) {
    .phi-h {
        font-size: 1.5rem
    }

    /* Asymmetric layout (B4 — Hara) */
    .phi .cn {
        max-width: 1080px;
        padding-left: 12%
    }
}

/* ============================
   PROCESS — Scroll-telling
   ============================ */
.prc {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg3) 100%);
    overflow: visible !important;
    /* sticky が効くよう .sp の overflow:hidden を確実に上書き */
}

.prc-intro {
    font-family: var(--serif-jp);
    font-size: .95rem;
    line-height: 2;
    color: var(--txt2);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

/* --- Scroll Container (left/right split on PC) --- */
.prc-scroll-container {
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 768px) {
    .prc-scroll-container {
        flex-direction: row;
        gap: 4rem;
        padding: 0 max(2rem, calc((100% - 1080px) / 2 + 2rem));
        align-items: flex-start;
        /* sticky が正しく動くよう上揃えに */
    }
}

/* --- Sticky 画像カラム --- */
.prc-sticky-col {
    position: sticky;
    top: 20vh;
    z-index: 2;
    height: fit-content;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

/* デスクトップ用ヘッダー（モバイルでは非表示） */
.prc-hdr-desk {
    display: none;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {

    /* モバイル用ヘッダーをデスクトップでは非表示 */
    .prc-hdr-mob {
        display: none;
    }

    /* デスクトップ用ヘッダーを表示 */
    .prc-hdr-desk {
        display: block;
    }

    .prc-sticky-col {
        flex: 0 0 45%;
        top: 5vh;
        align-self: flex-start;
        margin-bottom: 0;
        padding: 0;
    }
}

/* Process: スマホ用レイアウト調整 */
@media (max-width: 767px) {
    .prc-sticky-col {
        top: 80px
    }

    /* スマホでも画像の自然な比率に合わせる */
}

/* --- 画像ラッパー（画像の自然な比率に対応） --- */
.prc-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(44, 40, 38, .06);
    /* aspect-ratio を固定しない。高さは .prc-img-base が決める */
}

/* --- 個別の画像（クロスフェード） --- */
/* 最初の画像（base）がラッパーの高さを決める */
.prc-img-base {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .8s cubic-bezier(.23, 1, .32, 1),
        transform 1.2s cubic-bezier(.23, 1, .32, 1);
    pointer-events: none;
    visibility: hidden;
    /* スペース確保のみ。描画は絶対配置側に任せる */
}

.prc-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .8s cubic-bezier(.23, 1, .32, 1),
        transform 1.2s cubic-bezier(.23, 1, .32, 1);
}

.prc-img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* --- テキストカラム --- */
.prc-text-col {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 0 1.5rem;
    /* モバイル: テキストが全部スクロールアウトしてから画像が動くよう余白を確保 */
    padding-bottom: 50vh;
}

@media (min-width: 768px) {
    .prc-text-col {
        padding: 0;
    }
}

/* --- 各ステップ（テキストブロック） --- */
.prc-step {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    opacity: 0.25;
    transition: opacity .6s cubic-bezier(.23, 1, .32, 1);
}

.prc-step.active {
    opacity: 1;
}

@media (min-width: 768px) {
    .prc-step {
        min-height: 80vh;
        padding: 4rem 0;
    }
}

/* --- テキスト要素のスタイリング --- */
.prc-num {
    font-family: var(--serif-en);
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(184, 149, 106, .15);
    margin-bottom: .5rem;
    display: block;
}

.prc-title-jp {
    font-family: var(--serif-jp);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--txt);
    margin-bottom: .3rem;
}

.prc-title-en {
    font-family: var(--serif-en);
    font-size: .8rem;
    font-weight: 300;
    letter-spacing: .2em;
    color: var(--acc);
    margin-bottom: 1.2rem;
}

.prc-text {
    font-size: .9rem;
    color: var(--txt2);
    line-height: 2.2;
    max-width: 400px;
}

@media (min-width: 768px) {
    .prc-title-jp {
        font-size: 1.5rem;
    }

    .prc-text {
        font-size: .95rem;
    }
}

/* ============================
   QUALITY (A8 — Sagmeister underline)
   ============================ */
.qlty {
    background: var(--dark);
    color: var(--white);
    overflow: visible !important;
    /* sticky左カラムのために .sp の overflow:hidden を上書き */
}

.qlty::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    /* 300px → 400px：タイル数削減 */
    opacity: 0.45;
    -webkit-mask:
        radial-gradient(ellipse 60% 60% at 0% 0%, black 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 100% 100%, black 0%, transparent 70%);
    -webkit-mask-composite: source-over;
    mask:
        radial-gradient(ellipse 60% 60% at 0% 0%, black 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 100% 100%, black 0%, transparent 70%);
    mask-composite: add
}

.qlty .sn {
    color: var(--acc)
}

.qlty .ste {
    color: var(--white)
}

.qlty .stj {
    color: rgba(255, 255, 255, .5)
}

.qlty-body {
    font-size: .9rem;
    line-height: 2.4;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1
}

.qlty-promises {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1
}

.qlty-promises h3 {
    font-family: var(--sans-jp);
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: .2em;
    color: var(--acc);
    margin-bottom: 1.5rem
}

.pm {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1.2rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .8);
    line-height: 1.8
}

/* Scroll-linked underline (A8 — Sagmeister) */
.pm span {
    position: relative;
    display: inline
}

.pm span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--acc);
    transition: width .8s cubic-bezier(.23, 1, .32, 1)
}

.pm.underlined span::after {
    width: 100%
}

.pm-ck {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid var(--acc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .3rem;
    transition: background .4s
}

.pm.underlined .pm-ck {
    background: rgba(184, 149, 106, .2)
}

.pm-ck svg {
    width: 10px;
    height: 10px;
    stroke: var(--acc);
    fill: none;
    stroke-width: 2
}

.qlty-cap {
    font-family: var(--serif-jp);
    font-size: .8rem;
    font-style: italic;
    color: rgba(255, 255, 255, .35);
    line-height: 1.8;
    margin-top: 2rem;
    position: relative;
    z-index: 1
}

/* --- Quality 2-column grid --- */
@media(min-width:768px) {
    .qlty-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start
    }

    .qlty-left {
        position: sticky;
        top: 30vh;
    }

    .qlty-left .sh {
        margin-bottom: 0
    }
}

/* ============================
   CTA INLINE (Fukasawa — breathing line)
   ============================ */
.cta-i {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 2rem;
    border: 1px solid var(--acc);
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: .1em;
    color: var(--acc);
    transition: all .5s cubic-bezier(.23, 1, .32, 1);
    margin-top: 2rem;
    position: relative;
    z-index: 1
}

.cta-i:hover {
    background: var(--acc);
    color: var(--white);
    padding-right: 2.5rem
}

.cta-i svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    transition: transform .4s cubic-bezier(.23, 1, .32, 1)
}

.cta-i:hover svg {
    transform: translateX(6px)
}

/* ============================
   PARTNERS
   ============================ */
.ptn {
    background: linear-gradient(180deg, var(--white) 0%, #F8F4EF 100%)
}

.ptn-intro {
    font-size: .9rem;
    color: var(--txt2);
    line-height: 2.2;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1
}

.ptn-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1
}

.ptn-card.ptn-slash {
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .5s cubic-bezier(.23, 1, .32, 1), box-shadow .5s;
    border: 1px solid rgba(184, 149, 106, .06);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 120px
}

.ptn-card.ptn-slash:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(44, 40, 38, .06)
}

.ptn-divider {
    display: none
}

.ptn-photo {
    width: 120px;
    height: auto;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    margin-left: -1px
}

.ptn-photo img {
    width: 110%;
    height: 100%;
    margin-left: -5%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.23, 1, .32, 1);
    filter: saturate(.85)
}

.ptn-card.ptn-slash:hover .ptn-photo img {
    transform: scale(1.04);
    filter: saturate(1)
}

.ptn-body {
    flex: 1;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.ptn-name {
    font-family: var(--serif-en);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: .08em;
    margin-bottom: .3rem
}

.ptn-creds {
    font-size: .7rem;
    color: var(--acc2);
    letter-spacing: .05em;
    margin-bottom: 1rem
}

.ptn-quote {
    font-family: var(--serif-jp);
    font-size: .85rem;
    color: var(--txt2);
    line-height: 2;
    padding-left: 1rem;
    border-left: 2px solid rgba(184, 149, 106, .3)
}

@media(min-width:768px) {
    .ptn-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem
    }

    .ptn-card.ptn-slash {
        min-height: 140px
    }

    .ptn-body {
        padding: 1.5rem 1.8rem
    }

    .ptn-photo {
        width: 160px
    }
}

/* --- Partner 折りたたみ/展開 --- */
.ptn-hidden {
    display: none;
    opacity: 0;
    transform: translateY(16px);
}

.ptn-list.expanded .ptn-hidden {
    display: flex;
    animation: ptnReveal .5s cubic-bezier(.23, 1, .32, 1) forwards;
}

@keyframes ptnReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ptn-hidden:nth-child(2) {
    animation-delay: 0s;
}

.ptn-hidden:nth-child(3) {
    animation-delay: .08s;
}

.ptn-hidden:nth-child(4) {
    animation-delay: .16s;
}

.ptn-hidden:nth-child(5) {
    animation-delay: .24s;
}

.ptn-more-wrap {
    text-align: center;
    margin-top: 2rem;
}

.ptn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: 1px solid var(--acc);
    color: var(--acc);
    font-family: var(--sans-jp);
    font-size: .85rem;
    letter-spacing: .1em;
    padding: .7rem 2rem;
    border-radius: 100px;
    cursor: pointer;
    transition: background .25s, color .25s;
}

.ptn-more-btn:hover {
    background: var(--acc);
    color: var(--white);
}

.ptn-more-btn svg {
    transition: transform .3s;
}

.ptn-more-wrap.hidden {
    display: none;
}

/* ============================
   COLLECTION — 施工事例 (A7 — Harris mouse shadow, B3 — Boom texture)
   ============================ */
.col {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg3) 100%)
}

.col::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    /* 300px → 400px：タイル数削減 */
    opacity: 0.55;
    -webkit-mask:
        radial-gradient(ellipse 60% 60% at 0% 0%, black 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 100% 100%, black 0%, transparent 70%);
    -webkit-mask-composite: source-over;
    mask:
        radial-gradient(ellipse 60% 60% at 0% 0%, black 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 100% 100%, black 0%, transparent 70%);
    mask-composite: add
}

.col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 1
}

@media(min-width:768px) {
    .col-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem
    }
}

@media(min-width:1024px) {
    .col-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

.col-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    transition: transform .5s cubic-bezier(.23, 1, .32, 1);
    cursor: pointer;
    position: relative
}

a.col-card {
    display: block;
    text-decoration: none;
    color: inherit
}

/* Mouse-following shadow (A7 — Harris) — applied via JS */
.col-card:hover {
    transform: translateY(-6px)
}

.col-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden
}

.col-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.23, 1, .32, 1)
}

.col-card:hover .col-img img {
    transform: scale(1.06)
}

.col-info {
    padding: 1.3rem 1.5rem;
}

.col-year {
    font-family: var(--serif-en);
    font-size: .7rem;
    letter-spacing: .15em;
    color: var(--acc);
    margin-bottom: .3rem
}

.col-name {
    font-family: var(--serif-jp);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: .4rem
}

.col-desc {
    font-size: .8rem;
    color: var(--txt2);
    line-height: 1.8
}

.col-badge {
    display: inline-block;
    font-size: .6rem;
    letter-spacing: .08em;
    color: var(--acc2);
    border: 1px solid rgba(184, 149, 106, .25);
    border-radius: 3px;
    padding: .15rem .5rem;
    margin-top: .6rem
}

/* ============================
   AWARDS
   ============================ */
.awd {
    background: linear-gradient(180deg, var(--white) 0%, #F8F4EF 100%)
}

.awd-intro {
    font-size: .9rem;
    color: var(--txt2);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1
}

.awd-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1
}

.awd-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg2);
    transition: transform .3s
}

.awd-item:hover {
    transform: translateX(4px)
}

.awd-item:last-child {
    border-bottom: none
}

.awd-yr {
    font-family: var(--serif-en);
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(184, 149, 106, .35);
    flex-shrink: 0;
    min-width: 70px;
    transition: color .4s
}

.awd-item:hover .awd-yr {
    color: var(--acc)
}

.awd-name {
    font-family: var(--serif-jp);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: .4rem
}

.awd-desc {
    font-size: .8rem;
    color: var(--txt2);
    line-height: 1.9
}

.awd-badge {
    font-size: .65rem;
    color: var(--acc);
    letter-spacing: .1em;
    margin-bottom: .3rem
}

/* ============================
   INSTAGRAM
   ============================ */
.ig {
    background: var(--bg)
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    position: relative;
    z-index: 1
}

@media(min-width:768px) {
    .ig-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px
    }
}

.ig-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px
}

.ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.23, 1, .32, 1), filter .4s;
    filter: saturate(.85)
}

.ig-item:hover img {
    transform: scale(1.1);
    filter: saturate(1)
}

.ig-follow {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    z-index: 1
}

.ig-follow a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--txt2);
    letter-spacing: .08em;
    transition: color .3s
}

.ig-follow a:hover {
    color: var(--acc2)
}

/* ============================
   CTA SECTION
   ============================ */
.cta-s {
    background: var(--bg2);
    text-align: center
}

.cta-h {
    font-family: var(--serif-jp);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: .1em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1
}

.cta-sub {
    font-size: .85rem;
    color: var(--txt2);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1
}

.cta-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 1
}

.cta-p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    max-width: 320px;
    padding: 1rem 2rem;
    background: var(--acc2);
    color: var(--white);
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 400;
    letter-spacing: .08em;
    transition: all .5s cubic-bezier(.23, 1, .32, 1)
}

.cta-p:hover {
    background: var(--txt);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(44, 40, 38, .15)
}

.cta-sc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    max-width: 320px;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--txt);
    border: 1px solid var(--txt2);
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 400;
    letter-spacing: .08em;
    transition: all .5s cubic-bezier(.23, 1, .32, 1)
}

.cta-sc:hover {
    border-color: var(--acc2);
    color: var(--acc2);
    transform: translateY(-2px)
}

/* ============================
   FOOTER — "奥付" (A10 — Boom)
   ============================ */
.ftr {
    background: var(--dark);
    color: rgba(255, 255, 255, .45);
    padding: 6rem 1.5rem 3rem;
    text-align: center
}

.ftr-logo {
    font-family: var(--serif-en);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center
}

.ftr-logo img {
    height: 30px;
    width: auto;
    opacity: .6;
    filter: brightness(0) invert(1)
}

.ftr-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 3rem
}

.ftr-links a {
    font-size: .7rem;
    letter-spacing: .12em;
    transition: color .3s;
    text-transform: uppercase;
    font-family: var(--sans-en)
}

.ftr-links a:hover {
    color: var(--acc)
}

.ftr-contact {
    font-size: .75rem;
    line-height: 2;
    margin-bottom: 3rem
}

.ftr-tel {
    font-family: var(--serif-en);
    font-size: 1.05rem;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .55);
    transition: color .3s
}

.ftr-tel:hover {
    color: var(--acc)
}

.ftr-copy {
    font-size: .6rem;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .2);
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, .05);
    font-family: var(--sans-en)
}

/* ============================
   SCROLL CTA (mobile)
   ============================ */
.scta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(245, 240, 235, .95);
    backdrop-filter: blur(12px);
    padding: .8rem 1.5rem;
    display: flex;
    justify-content: center;
    gap: .8rem;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.23, 1, .32, 1);
    border-top: 1px solid rgba(184, 149, 106, .15)
}

.scta.show {
    transform: translateY(0)
}

.scta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 1.5rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .08em;
    transition: all .3s
}

.scta-btn.p {
    background: var(--acc2);
    color: var(--white)
}

.scta-btn.s {
    background: transparent;
    border: 1px solid var(--txt2);
    color: var(--txt)
}

@media(min-width:768px) {
    .scta {
        display: none
    }
}

/* ============================================================
   SUBPAGES — COMMON
   ============================================================ */

/* Sub Hero */
.sub-hero {
    position: relative;
    height: 45vh;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden
}

.sub-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0
}

.sub-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.7) brightness(.85)
}

.sub-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(44, 40, 38, .15) 0%, rgba(44, 40, 38, .6) 100%);
    z-index: 1
}

.sub-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
    padding-bottom: 3rem
}

.sub-hero-title {
    font-family: var(--serif-en);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 300;
    letter-spacing: .06em;
    color: var(--white);
    margin-bottom: .5rem
}

.sub-hero-sub {
    font-family: var(--serif-jp);
    font-size: .9rem;
    color: rgba(255, 255, 255, .75);
    letter-spacing: .08em
}

/* Breadcrumb */
.breadcrumb {
    font-family: var(--sans-en);
    font-size: .7rem;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 1rem
}

.breadcrumb a {
    color: rgba(255, 255, 255, .6);
    transition: color .3s
}

.breadcrumb a:hover {
    color: var(--white)
}

.bc-sep {
    margin: 0 .5rem;
    opacity: .4
}

/* ============================================================
   WORKS — SCROLL STACK
   ============================================================ */

/* Scroll hint */
.wk-scroll-hint {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto
}

.wk-scroll-hint-text {
    font-family: var(--sans-en);
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--acc);
    flex-shrink: 0
}

.wk-scroll-hint-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--acc), transparent);
    opacity: .3;
    position: relative
}

.wk-scroll-hint-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--acc);
    animation: hintPulse 2s ease-in-out infinite
}

@keyframes hintPulse {

    0%,
    100% {
        opacity: .3;
        transform: translateX(0)
    }

    50% {
        opacity: 1;
        transform: translateX(30px)
    }
}

/* Stack container */
.wk-stack {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 5% 4rem
}

/* Each slide */
.wk-slide {
    position: sticky;
    top: 80px;
    height: 420px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: none
}

.wk-slide-inner {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    color: var(--white);
    text-decoration: none
}

/* Background image */
.wk-slide-img {
    position: absolute;
    inset: 0;
    z-index: 0
}

.wk-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    will-change: transform;
    filter: saturate(.8)
}

.wk-slide:hover .wk-slide-img img {
    filter: saturate(1)
}

/* Overlay gradient */
.wk-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(44, 40, 38, .1) 0%, rgba(44, 40, 38, .15) 40%, rgba(44, 40, 38, .55) 75%, rgba(44, 40, 38, .75) 100%),
        linear-gradient(90deg, rgba(44, 40, 38, .3) 0%, transparent 50%)
}

/* Content */
.wk-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.5rem 2rem 2rem;
    will-change: transform, opacity
}

.wk-slide-counter {
    font-family: var(--sans-en);
    font-size: .65rem;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .45);
    display: block;
    margin-bottom: 1rem
}

.wk-slide-year {
    font-family: var(--sans-en);
    font-size: .7rem;
    letter-spacing: .15em;
    color: var(--acc);
    display: block;
    margin-bottom: .5rem
}

.wk-slide-name {
    font-family: var(--serif-jp);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 400;
    letter-spacing: .08em;
    margin-bottom: .5rem;
    line-height: 1.3
}

.wk-slide-desc {
    font-family: var(--serif-jp);
    font-size: .9rem;
    line-height: 2;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 1.2rem
}

.wk-slide-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap
}

.wk-slide-badge {
    font-family: var(--sans-en);
    font-size: .6rem;
    letter-spacing: .1em;
    color: var(--acc);
    border: 1px solid rgba(184, 149, 106, .4);
    padding: .2rem .8rem;
    border-radius: 100px
}

.wk-slide-link {
    font-family: var(--sans-en);
    font-size: .7rem;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .6);
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: color .3s
}

.wk-slide:hover .wk-slide-link {
    color: var(--white)
}

.wk-slide-link svg {
    transition: transform .4s cubic-bezier(.23, 1, .32, 1)
}

.wk-slide:hover .wk-slide-link svg {
    transform: translateX(4px)
}

/* Desktop refinements */
@media(min-width:768px) {
    .wk-slide {
        height: 480px;
        top: 90px
    }

    .wk-slide-content {
        padding: 2rem 3rem 2.5rem;
        max-width: 600px
    }

    .wk-slide-desc {
        font-size: .95rem
    }
}

/* ============================================================
   WORKS — TOOLBAR & VIEW TOGGLE
   ============================================================ */
.wk-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 5% .5rem
}

.wk-toolbar .wk-scroll-hint {
    flex: 1;
    padding: 0;
    margin: 0;
    max-width: none
}

.wk-view-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: 1px solid rgba(184, 149, 106, .25);
    padding: .45rem 1rem;
    border-radius: 100px;
    cursor: pointer;
    color: var(--txt2);
    transition: all .3s;
    flex-shrink: 0;
    font-size: .7rem;
    font-family: var(--sans-jp);
    letter-spacing: .06em
}

.wk-view-toggle:hover {
    border-color: var(--acc);
    color: var(--acc);
    background: rgba(184, 149, 106, .05)
}

/* ============================================================
   WORKS — GRID VIEW
   ============================================================ */
.wk-grid-view {
    padding: 2rem 0 4rem
}

.wk-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem
}

.wk-gcard {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg);
    transition: transform .5s cubic-bezier(.23, 1, .32, 1), box-shadow .5s;
    border: 1px solid rgba(184, 149, 106, .08)
}

.wk-gcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(44, 40, 38, .08)
}

.wk-gcard-img {
    overflow: hidden;
    aspect-ratio: 1/1
}

.wk-gcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.23, 1, .32, 1);
    filter: saturate(.85)
}

.wk-gcard:hover .wk-gcard-img img {
    transform: scale(1.04);
    filter: saturate(1)
}

.wk-gcard-info {
    padding: 1rem 1.2rem
}

.wk-gcard-year {
    font-family: var(--sans-en);
    font-size: .6rem;
    letter-spacing: .15em;
    color: var(--acc);
    display: block;
    margin-bottom: .25rem
}

.wk-gcard-name {
    font-family: var(--serif-jp);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: .08em;
    margin-bottom: .4rem
}

.wk-gcard-badge {
    display: inline-block;
    font-size: .55rem;
    font-family: var(--sans-en);
    letter-spacing: .1em;
    color: var(--acc);
    border: 1px solid rgba(184, 149, 106, .25);
    padding: .12rem .5rem;
    border-radius: 100px
}

@media(min-width:600px) {
    .wk-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:960px) {
    .wk-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem
    }

    .wk-gcard-img {
        height: 240px
    }

    .wk-gcard-name {
        font-size: 1.1rem
    }
}

/* ============================================================
   WORKS DETAIL — INDIVIDUAL PROJECT PAGES
   ============================================================ */

/* ---------- Hero (full-screen) ---------- */
.wd-hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: flex-end
}

.wd-hero-img {
    position: absolute;
    inset: 0;
    z-index: 0
}

.wd-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 14s ease-out forwards
}

.wd-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(44, 40, 38, .12) 0%, rgba(44, 40, 38, .2) 40%, rgba(44, 40, 38, .6) 75%, rgba(44, 40, 38, .82) 100%),
        linear-gradient(90deg, rgba(44, 40, 38, .35) 0%, transparent 60%)
}

.wd-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem 4rem;
    color: var(--white);
    max-width: 640px
}

.wd-hero-year {
    font-family: var(--sans-en);
    font-size: .7rem;
    letter-spacing: .2em;
    color: var(--acc);
    display: block;
    margin-bottom: .6rem;
    opacity: 0;
    animation: fadeIn .8s .6s forwards
}

.wd-hero-name {
    font-family: var(--serif-jp);
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    font-weight: 400;
    letter-spacing: .1em;
    line-height: 1.4;
    margin-bottom: .8rem;
    opacity: 0;
    animation: heroTextReveal 1.2s .8s cubic-bezier(.23, 1, .32, 1) forwards
}

.wd-hero-desc {
    font-family: var(--serif-jp);
    font-size: .9rem;
    color: rgba(255, 255, 255, .7);
    letter-spacing: .06em;
    line-height: 2;
    opacity: 0;
    animation: fadeIn .8s 1.6s forwards
}

.wd-hero-badge {
    display: inline-block;
    font-family: var(--sans-en);
    font-size: .6rem;
    letter-spacing: .12em;
    color: var(--acc);
    border: 1px solid rgba(184, 149, 106, .4);
    padding: .25rem .9rem;
    border-radius: 100px;
    margin-top: 1.2rem;
    opacity: 0;
    animation: fadeIn .8s 1.8s forwards
}

.wd-hero .breadcrumb {
    opacity: 0;
    animation: fadeIn .8s .4s forwards
}



/* スマホ: 画像の固有サイズで表示（100vh を解除） */
@media(max-width:767px) {
    .wd-hero {
        height: auto;
        min-height: 0;
        display: block;
        /* flex を解除 */
        position: relative
    }

    .wd-hero-img {
        position: relative;
        inset: auto
    }

    .wd-hero-img img {
        width: 100%;
        height: auto;
        display: block
    }

    .wd-hero-overlay {
        position: absolute;
        inset: 0
    }

    .wd-hero-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0 1.5rem 2.5rem
    }
}

@media(min-width:768px) {
    .wd-hero-content {
        padding: 0 4rem 5rem
    }

    .wd-hero-desc {
        font-size: 1rem
    }
}

/* ---------- Intro ---------- */
.wd-intro {
    padding: 5rem 1.5rem;
    background: var(--white)
}

.wd-intro-inner {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem
}

.wd-intro-label {
    font-family: var(--sans-en);
    font-size: .65rem;
    letter-spacing: .2em;
    color: var(--acc);
    text-transform: uppercase;
    margin-bottom: .8rem
}

.wd-intro-text {
    font-family: var(--serif-jp);
    font-size: 1rem;
    font-weight: 400;
    line-height: 2.4;
    color: var(--txt);
    letter-spacing: .04em
}

.wd-intro-meta {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg2)
}

.wd-intro-meta-item {
    display: flex;
    gap: 1rem;
    font-size: .8rem;
    color: var(--txt2)
}

.wd-intro-meta-item dt {
    font-family: var(--sans-en);
    font-size: .65rem;
    letter-spacing: .1em;
    color: var(--acc);
    min-width: 80px;
    flex-shrink: 0;
    text-transform: uppercase
}

@media(min-width:768px) {
    .wd-intro {
        padding: 8rem 4rem
    }

    .wd-intro-inner {
        grid-template-columns: 1fr 280px;
        gap: 4rem
    }

    .wd-intro-text {
        font-size: 1.05rem
    }
}

/* ---------- Gallery ---------- */
.wd-gallery {
    padding: 2rem 0
}

.wd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px
}

.wd-gallery-item {
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 1 / 1
}

.wd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.23, 1, .32, 1);
    cursor: zoom-in
}

.wd-gallery-item:hover img {
    transform: scale(1.03)
}

/* デスクトップ: 均一グリッド */
@media(min-width:768px) {
    .wd-gallery {
        padding: 3rem 4rem;
        max-width: 1200px;
        margin: 0 auto
    }

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

@media(min-width:1200px) {
    .wd-gallery-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

/* もっと見るボタン */
.wd-gallery-more {
    display: none
}

@media(max-width:767px) {
    .wd-gallery-more {
        display: block;
        width: 100%;
        padding: 1rem;
        font-family: var(--sans-jp);
        font-size: .85rem;
        color: var(--txt2);
        background: transparent;
        border: 1px solid var(--bg2);
        border-radius: 4px;
        margin-top: .5rem;
        transition: color .3s, border-color .3s
    }

    .wd-gallery-more:hover {
        color: var(--acc);
        border-color: var(--acc)
    }

    .wd-gallery-more.hidden {
        display: none
    }
}

/* ---------- Gallery Lightbox ---------- */
.wd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(20, 18, 16, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s cubic-bezier(.23, 1, .32, 1)
}

.wd-lightbox.open {
    opacity: 1;
    pointer-events: auto
}

.wd-lb-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(.95);
    transition: transform .45s cubic-bezier(.23, 1, .32, 1)
}

.wd-lightbox.open .wd-lb-img {
    transform: scale(1)
}

.wd-lb-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .6);
    transition: color .3s
}

.wd-lb-close:hover {
    color: var(--acc)
}

.wd-lb-close svg {
    width: 22px;
    height: 22px
}

.wd-lb-prev,
.wd-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .5);
    transition: color .3s
}

.wd-lb-prev {
    left: 1rem
}

.wd-lb-next {
    right: 1rem
}

.wd-lb-prev:hover,
.wd-lb-next:hover {
    color: var(--acc)
}

.wd-lb-prev svg,
.wd-lb-next svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none
}

/* クリック可能なギャラリー画像 */
.wd-gallery-row.full img,
.wd-gallery-row.split .wd-gallery-cell img {
    cursor: zoom-in
}

@media(min-width:768px) {
    .wd-lb-prev {
        left: 2.5rem
    }

    .wd-lb-next {
        right: 2.5rem
    }
}


.wd-points {
    padding: 5rem 1.5rem;
    background: var(--bg)
}

.wd-points-inner {
    max-width: 960px;
    margin: 0 auto
}

.wd-points-title {
    font-family: var(--serif-en);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: .08em;
    color: var(--txt);
    margin-bottom: .4rem
}

.wd-points-sub {
    font-family: var(--sans-jp);
    font-size: .7rem;
    color: var(--txt2);
    letter-spacing: .1em;
    margin-bottom: 2.5rem
}

.wd-points-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem
}

.wd-point-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(184, 149, 106, .08);
    transition: transform .5s cubic-bezier(.23, 1, .32, 1), box-shadow .5s;
    overflow: hidden
}

.wd-point-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(44, 40, 38, .06)
}

.wd-point-num {
    font-family: var(--serif-en);
    font-size: .7rem;
    letter-spacing: .15em;
    color: var(--acc);
    display: block;
    margin-bottom: .8rem
}

.wd-point-heading {
    font-family: var(--serif-jp);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: .06em;
    margin-bottom: .6rem
}

.wd-point-text {
    font-size: .85rem;
    color: var(--txt2);
    line-height: 1.9;
    word-break: break-word;
    overflow-wrap: break-word
}

@media(min-width:768px) {
    .wd-points {
        padding: 8rem 4rem
    }

    .wd-points-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem
    }
}

/* ---------- Prev / Next Nav ---------- */
.wd-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--bg2)
}

.wd-nav-link {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    transition: background .3s;
    position: relative;
    overflow: hidden
}

.wd-nav-link:hover {
    background: rgba(184, 149, 106, .04)
}

.wd-nav-link.next {
    text-align: right;
    align-items: flex-end;
    border-left: 1px solid var(--bg2)
}

.wd-nav-dir {
    font-family: var(--sans-en);
    font-size: .6rem;
    letter-spacing: .2em;
    color: var(--acc);
    text-transform: uppercase;
    margin-bottom: .4rem;
    display: flex;
    align-items: center;
    gap: .4rem
}

.wd-nav-dir svg {
    width: 14px;
    height: 14px;
    stroke: var(--acc);
    stroke-width: 1.5;
    fill: none;
    transition: transform .4s cubic-bezier(.23, 1, .32, 1)
}

.wd-nav-link:hover .wd-nav-dir svg {
    transform: translateX(4px)
}

.wd-nav-link.prev:hover .wd-nav-dir svg {
    transform: translateX(-4px)
}

.wd-nav-name {
    font-family: var(--serif-jp);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: .06em;
    color: var(--txt)
}

@media(min-width:768px) {
    .wd-nav-link {
        padding: 3rem 4rem
    }

    .wd-nav-name {
        font-size: 1.2rem
    }
}

/* ============================================
   CONCEPT BOOK PAGE
   ============================================ */
.cb-hero {
    position: relative;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end
}

.cb-hero-bg {
    position: absolute;
    inset: 0
}

.cb-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 40, 38, .7) 0%, rgba(44, 40, 38, .2) 60%, transparent 100%)
}

.cb-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 6vw 4rem;
    max-width: 700px
}

.cb-hero-title {
    font-family: var(--serif-en);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: #fff;
    letter-spacing: .08em;
    margin: .5rem 0 1rem
}

.cb-hero-sub {
    font-family: var(--sans-jp);
    font-size: clamp(.9rem, 1.6vw, 1.1rem);
    color: rgba(255, 255, 255, .85);
    line-height: 1.9;
    font-weight: 300
}

/* ABOUT SECTION */
.cb-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center
}

@media (min-width: 768px) {
    .cb-about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem
    }
}

.cb-about-img {
    border-radius: 12px;
    overflow: hidden
}

.cb-about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3
}

.cb-about-label {
    font-family: var(--serif-en);
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: .5rem
}

.cb-about-heading {
    font-family: var(--serif-jp);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 1.2rem
}

.cb-about-desc {
    font-family: var(--sans-jp);
    font-size: .95rem;
    line-height: 2;
    color: var(--txt2);
    margin-bottom: 2rem
}

.cb-about-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.cb-about-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--sans-jp);
    font-size: .9rem;
    color: var(--dark);
    padding: .6rem 0;
    border-bottom: 1px solid var(--bg2)
}

.cb-about-list li svg {
    flex-shrink: 0;
    color: var(--acc)
}

/* FORM SECTION */
.cb-form-section {
    background: var(--bg3)
}

.cb-form-header {
    text-align: center;
    margin-bottom: 3rem
}

.cb-form-title {
    font-family: var(--serif-jp);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--dark);
    margin-bottom: .8rem
}

.cb-form-sub {
    font-family: var(--sans-jp);
    font-size: .9rem;
    color: var(--txt2);
    line-height: 1.8
}

.cb-form {
    max-width: 640px;
    margin: 0 auto
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem
}

@media (min-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem
    }

    .form-group.full {
        grid-column: 1 / -1
    }
}

.form-label {
    display: block;
    font-family: var(--sans-jp);
    font-size: .85rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: .4rem
}

.form-req {
    font-size: .7rem;
    color: #c0392b;
    background: rgba(192, 57, 43, .08);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: .3rem;
    font-weight: 400
}

.form-input,
.form-textarea {
    width: 100%;
    padding: .85rem 1rem;
    font-family: var(--sans-jp);
    font-size: .95rem;
    color: var(--dark);
    background: var(--white);
    border: 1.5px solid var(--bg2);
    border-radius: 8px;
    outline: none;
    transition: border-color .3s, box-shadow .3s
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--acc);
    box-shadow: 0 0 0 3px rgba(160, 149, 133, .15)
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #bbb
}

.form-input--short {
    max-width: 200px
}

.form-textarea {
    resize: vertical;
    min-height: 100px
}

/* Radio buttons */
.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem
}

.form-radio {
    display: flex;
    align-items: center;
    gap: .3rem;
    cursor: pointer
}

.form-radio input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--bg2);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: border-color .2s
}

.form-radio input[type="radio"]:checked {
    border-color: var(--acc)
}

.form-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: var(--acc);
    border-radius: 50%
}

.form-radio span {
    font-family: var(--sans-jp);
    font-size: .85rem;
    color: var(--dark)
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--bg2);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: border-color .2s, background .2s;
    flex-shrink: 0
}

.form-checkbox input[type="checkbox"]:checked {
    border-color: var(--acc);
    background: var(--acc)
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg)
}

.form-checkbox span {
    font-family: var(--sans-jp);
    font-size: .85rem;
    color: var(--mid)
}

.form-checkbox a {
    color: var(--acc);
    text-decoration: underline;
    text-underline-offset: 2px
}

.form-privacy {
    margin-top: 1.5rem;
    text-align: center
}

/* Submit button */
.form-submit {
    margin-top: 2rem;
    text-align: center
}

.form-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 2.5rem;
    font-family: var(--sans-jp);
    font-size: .95rem;
    font-weight: 500;
    color: var(--white);
    background: var(--dark);
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: background .3s, transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden
}

.form-btn:hover {
    background: var(--acc);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 149, 133, .3)
}

.form-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none
}

.form-btn-arrow {
    transition: transform .3s
}

.form-btn:hover .form-btn-arrow {
    transform: translateX(4px)
}

/* Success message */
.form-success {
    text-align: center;
    padding: 3rem 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s, transform .5s
}

.form-success.show {
    opacity: 1;
    transform: translateY(0)
}

.form-success svg {
    margin-bottom: 1.2rem
}

.form-success h3 {
    font-family: var(--serif-jp);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: .6rem
}

.form-success p {
    font-family: var(--sans-jp);
    font-size: .9rem;
    color: var(--txt2);
    line-height: 1.8
}

/* FAQ SECTION */
.cb-faq-title {
    font-family: var(--serif-jp);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--dark);
    text-align: center;
    margin-bottom: 2.5rem
}

.cb-faq-list {
    max-width: 640px;
    margin: 0 auto
}

.cb-faq-item {
    border-bottom: 1px solid var(--bg2);
    padding: 0
}

.cb-faq-item summary {
    font-family: var(--sans-jp);
    font-size: .95rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    padding: 1.2rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem
}

.cb-faq-item summary::after {
    content: '+';
    font-family: var(--serif-en);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--acc);
    flex-shrink: 0;
    transition: transform .3s
}

.cb-faq-item[open] summary::after {
    content: '−'
}

.cb-faq-item summary::-webkit-details-marker {
    display: none
}

.cb-faq-item p {
    font-family: var(--sans-jp);
    font-size: .9rem;
    color: var(--txt2);
    line-height: 1.8;
    padding: 0 0 1.2rem;
    margin: 0
}

/* RESPONSIVE — CONCEPT BOOK */
@media (max-width: 767px) {
    .cb-hero {
        height: 50vh;
        min-height: 320px
    }

    .cb-hero-content {
        padding: 2rem 5vw 3rem
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.ct-hero {
    position: relative;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end
}

.ct-hero-bg {
    position: absolute;
    inset: 0
}

.ct-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.ct-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 40, 38, .7) 0%, rgba(44, 40, 38, .2) 60%, transparent 100%)
}

.ct-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 6vw 4rem;
    max-width: 700px
}

.ct-hero-title {
    font-family: var(--serif-jp);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    color: #fff;
    letter-spacing: .05em;
    margin: .5rem 0 1rem
}

.ct-hero-sub {
    font-family: var(--sans-jp);
    font-size: clamp(.9rem, 1.6vw, 1.1rem);
    color: rgba(255, 255, 255, .85);
    line-height: 1.9;
    font-weight: 300
}

/* FEATURES */
.ct-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center
}

@media (min-width: 768px) {
    .ct-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem
    }
}

.ct-feature {
    padding: 2rem 1.5rem
}

.ct-feature-icon {
    color: var(--acc);
    margin-bottom: 1rem
}

.ct-feature h3 {
    font-family: var(--sans-jp);
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: .6rem
}

.ct-feature p {
    font-family: var(--sans-jp);
    font-size: .85rem;
    color: var(--txt2);
    line-height: 1.8
}

/* FORM INPUT MID WIDTH */
.form-input--mid {
    max-width: 360px
}

/* ACCESS SECTION */
.ct-access-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem
}

@media (min-width: 768px) {
    .ct-access-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 3rem;
        align-items: start
    }
}

.ct-access-title {
    font-family: var(--serif-jp);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 1.5rem
}

.ct-access-list {
    margin: 0;
    padding: 0
}

.ct-access-item {
    display: flex;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--bg2)
}

.ct-access-item dt {
    font-family: var(--sans-jp);
    font-size: .85rem;
    font-weight: 500;
    color: var(--dark);
    min-width: 80px;
    flex-shrink: 0
}

.ct-access-item dd {
    font-family: var(--sans-jp);
    font-size: .85rem;
    color: var(--txt2);
    margin: 0;
    line-height: 1.6
}

.ct-access-item dd a {
    color: var(--acc);
    text-decoration: none
}

.ct-access-map iframe {
    display: block
}

/* RESPONSIVE — CONTACT */
@media (max-width: 767px) {
    .ct-hero {
        height: 50vh;
        min-height: 320px
    }

    .ct-hero-content {
        padding: 2rem 5vw 3rem
    }
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--bg2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acc2);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s, transform .4s, background .3s, color .3s;
    z-index: 90;
    transform: translateY(10px);
    box-shadow: 0 2px 12px rgba(44, 40, 38, .08);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--acc);
    color: var(--white);
    border-color: var(--acc);
}

@media(max-width:767px) {
    .back-to-top {
        bottom: 5rem;
        right: 1rem;
    }
}

/* ============================
   WORKS DETAIL — DRAWINGS
   ============================ */
.wd-drawings {
    padding: 4rem 1.5rem;
    background: var(--white)
}

.wd-drawings-inner {
    max-width: 100%;
    margin: 0 auto;
    text-align: center
}

.wd-drawings-title {
    font-family: var(--serif-en);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: .15em;
    color: var(--txt);
    margin-bottom: .4rem
}

.wd-drawings-sub {
    font-size: .75rem;
    color: var(--txt3);
    letter-spacing: .15em;
    margin-bottom: 3rem
}

.wd-drawings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem
}

.wd-drawing-item {
    text-align: center
}

.wd-drawing-label {
    font-family: var(--serif-en);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: .12em;
    color: var(--txt);
    margin-bottom: 1rem
}

.wd-drawing-label span {
    display: block;
    font-family: var(--sans-jp);
    font-size: .7rem;
    color: var(--txt3);
    letter-spacing: .1em;
    margin-top: .2rem
}

.wd-drawing-img {
    border-radius: 0;
    padding: 0
}

.wd-drawing-img img {
    width: 100%;
    height: auto;
    display: block
}

@media(min-width:768px) {
    .wd-drawings {
        padding: 6rem 4rem
    }

    .wd-drawings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem
    }

    .wd-drawings-title {
        font-size: 2.2rem
    }
}

@media(min-width:1024px) {
    .wd-drawings {
        padding: 8rem 6rem
    }
}

/* ============================
   HERO SLIT TRANSITION
   （重複定義削除: L3808以降の定義を使用）
   ============================ */


/* ============================
   SITE LOADER
   ============================ */
.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity .6s ease, visibility .6s ease
}

.site-loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.site-loader-logo {
    width: 120px;
    opacity: 0;
    transform: translateY(20px);
    animation: loaderLogoIn 1s .3s ease-out forwards
}

@keyframes loaderLogoIn {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.site-loader.done .site-loader-logo {
    animation: loaderLogoOut .5s ease-in forwards
}

@keyframes loaderLogoOut {
    to {
        opacity: 0;
        transform: translateY(-30px)
    }
}

/* ============================
   HERO SLIT TRANSITION
   ============================ */
.hero-slits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 2;
    pointer-events: none;
    overflow: hidden
}

/* スリットデフォルト：画像を覆った状態。JSがインラインスタイルでtransformを制御する。 */
.hero-slit {
    flex: 1;
    height: 100%;
    background: var(--dark, #2c2826)
}

/* ============================
   DRAWING LIGHTBOX
   ============================ */
.wd-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(0, 0, 0, .92);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease
}

.wd-lb.open {
    display: flex;
    opacity: 1
}

.wd-lb-inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center
}

.wd-lb-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, .6)
}

.wd-lb-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background .2s
}

.wd-lb-close:hover {
    background: rgba(255, 255, 255, .25)
}

/* 図面画像にズームカーソルとホバー効果 */
.wd-lb-trigger {
    cursor: zoom-in;
    transition: opacity .2s
}

.wd-lb-trigger:hover {
    opacity: .7;
}

/* ============================
   CONCEPT BOOK DISABLED STATE
   ============================ */
.cta-disabled {
    opacity: .45;
    pointer-events: none;
    cursor: default;
}

.nav-disabled {
    font-family: var(--serif-en);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: .15em;
    color: var(--txt3);
    opacity: .5;
    cursor: default;
}

.nav-disabled .ns {
    font-family: var(--sans-jp);
    font-size: .65rem;
    color: var(--txt3);
    display: inline;
    margin-left: .8em;
    letter-spacing: .1em;
}

.ftr-disabled {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-family: var(--sans-en);
    color: var(--txt3);
    opacity: .5;
    cursor: default;
}

/* ナビアニメーション: spanにも適用 */
.nav-inner .nav-disabled {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity .4s ease, transform .4s ease;
}

.nav.open .nav-inner .nav-disabled {
    opacity: .5;
    transform: translateX(0);
    transition-delay: .44s;
}