/* ===== 01. 共通 ===== */
:root {
    --paper: #f6f6f4;
    --ink: #376772;
    --text: #333;
    --teal: #168e90;
    --hero-distance: 550svh;
    --works-distance: 370svh;
    --room-distance: 570svh;
    --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}
* {
    box-sizing: border-box
}
html {
    scroll-behavior: auto;
    scrollbar-gutter: stable
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    -webkit-font-smoothing: antialiased
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('/images/bg-texture.png');
    background-size: 180px;
    opacity: .18;
    pointer-events: none;
    z-index: 20;
    mix-blend-mode: multiply
}
img, video {
    display: block;
    max-width: 100%;
    height: auto
}
img {
    font-family: var(--sans);
    font-size: 12px
}
button, a {
    -webkit-tap-highlight-color: transparent
}
button {
    font: inherit;
    color: inherit;
    cursor: pointer
}
a {
    color: inherit;
    text-decoration: none
}
button {
    border: 0
}
h1, h2, h3, p, figure {
    margin: 0
}
button:focus-visible, a:focus-visible {
    outline: 3px solid #1c9597;
    outline-offset: 6px
}
::selection {
    background: #cde0bf
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}
.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    padding: 12px 18px;
    background: white;
    z-index: 100;
    transform: translateY(-150%)
}
.skip-link:focus {
    transform: none
}
.pin {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 500px;
    overflow: clip
}
.leaf-mark {
    display: inline-block;
    width: 17px;
    height: 30px;
    /*background: currentColor;*/
    border-radius: 100% 0 100% 0;
    /*transform: rotate(16deg);*/
    flex-shrink: 0
}
.eyebrow {
    font: 10px/1.6 var(--sans);
    letter-spacing: .16em
}
.pill {
    display: inline-block;
    padding: 5px 24px;
    border-radius: 30px;
    background: var(--ink);
    color: #fff;
    font: 12px/1.5 var(--sans);
    letter-spacing: .12em
}
/* ===== 02. 固定背景の葉っぱ ===== */
.leaves {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden
}
.leaf {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    mix-blend-mode: multiply;
    will-change: transform
}
.leaf img {
    width: 100%;
    opacity: var(--opacity, .85);
    animation: float-leaf var(--duration, 11s) ease-in-out var(--delay, -3s) infinite alternate;
    transform: translate(-50%, -50%) rotate(var(--rotate, 0deg))
}
.leaf--soft img {
    filter: blur(5px)
}
@keyframes float-leaf {
    from {
        transform: translate(-50%, -50%) rotate(var(--rotate, 0deg))
    }
    to {
        transform: translate(calc(-50% + 14px), calc(-50% - 22px)) rotate(calc(var(--rotate, 0deg) + 9deg))
    }
}
/* ===== 03. 追従ナビゲーション ===== */
.side-brand {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  background: var(--ink);
  color: #fff;
  width: clamp(180px, 13vw, 200px);
  padding: 30px 42px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: opacity .55s, transform .55s, visibility .55s;
}
.side-brand strong {
    display: block;
    font-size: clamp(17px, 2vw, 26px);
    font-weight: 400;
    line-height: 1.45
}
.side-brand small {
    font-size: 9px;
    display: block;
    margin-top: 12px;
    letter-spacing: .1em
}
.quick-nav {
    position: fixed;
    right: 24px;
    top: 30px;
    display: grid;
    gap: 7px;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    transition: opacity .5s, transform .5s, visibility .5s
}
.quick-nav a {
    background: linear-gradient(105deg, var(--ink), var(--teal));
    color: white;
    font: 13px/1.5 var(--sans);
    padding: 13px 18px;
    min-width: 168px;
    display: flex;
    gap: 28px;
    justify-content: space-between
}
body.nav-visible .side-brand, body.nav-visible .quick-nav {
    opacity: 1;
    visibility: visible;
    transform: none
}
body.in-cv .quick-nav, body.in-cv .side-brand {
    opacity: 0;
    visibility: hidden
}
.motion-toggle {
    position: fixed;
    right: 20px;
    bottom: 16px;
    z-index: 40;
    background: rgba(246, 246, 244, .92);
    border: 1px solid #b4cacb;
    border-radius: 24px;
    padding: 9px 13px;
    font: 10px/1 var(--sans);
    letter-spacing: .05em;
    backdrop-filter: blur(8px)
}
/* ===== 04. ヒーロー / ロゴ固定 + 7つの写真・動画 ===== */
main {
    position: relative;
    z-index: 1
}
.hero {
    height: var(--hero-distance);
    position: relative
}
.hero .pin {
    isolation: isolate
}
.hero-logo {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 200;
    pointer-events: none;
    mix-blend-mode: multiply
}
.hero-logo__inner {
    width: clamp(240px, 29vw, 330px);
    animation: none; /* 登場は末尾のLOGO_INTROで制御 */
}
.hero-logo img {
    width: 100%;
    aspect-ratio: 390/425
}
@keyframes logo-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.7);
        filter: blur(4px)
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0)
    }
}
.hero-media {
    position: absolute;
    left: var(--left);
    top: 0;
    width: var(--width);
    z-index: 3;
    transform: translate3d(0, 110svh, 0);
    will-change: transform, opacity;
    aspect-ratio: var(--ratio, 1);
    overflow: hidden
}
.hero-media img, .hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover
}
.hero-media:nth-of-type(3n) {
    z-index: 1
}
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    transform: translateX(-50%);
    font: 10px var(--sans);
    letter-spacing: .24em;
    text-align: center
}
.hero-scroll::after {
    content: "";
    display: block;
    width: 1px;
    height: 46px;
    margin: 14px auto 0;
    background: var(--ink);
    transform-origin: top;
    animation: scroll-line 2s ease-in-out infinite
}
@keyframes scroll-line {
    0%, 100% {
        transform: scaleY(.5);
        opacity: .4
    }
    50% {
        transform: scaleY(1);
        opacity: 1
    }
}
.hero-media video {
    visibility: hidden;
    background: transparent
}
/* ===== 05. メッセージ ===== */
.message {
    position: relative;
    max-width: 1450px;
    min-height: 110svh;
    margin: auto;
    padding: 20% 13% 180px 15%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 8%;
    align-items: center
}
.message h2 {
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.7;
    letter-spacing: .12em;
    font-weight: 600;
    margin-bottom: 48px
}
.message p {
    font-size: clamp(12px, 1.30vw, 20px);
    line-height: 2.9;
    color: var(--text);
    letter-spacing: .05em;
    margin: 0 0 18px;
    font-weight: 600;
}
.message .message__closing {
    font-size: clamp(22px, 2.3vw, 28px);
    line-height: 1.9;
    color: #262e28;
    margin-top: 44px
}
.message-portraits {
    position: relative;
    padding-bottom: 28%;
    align-self: center
}
.message-portraits figure:first-child {
    width: 78%
}
.message-portraits figure:last-child {
    position: absolute;
    width: 50%;
    right: -10%;
    bottom: 0;
}
.message-portraits img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover
}
[data-reveal] {
    transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--delay, 0s)
}
.motion-ready [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(54px)
}
/* ===== 06. 働き方 / 背景を残して白いパネルを重ねる ===== */
.works {
    position: relative;
    height: var(--works-distance)
}
.works .pin {
    background: #cad8b9;
    isolation: isolate
}
.works-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.94);
    z-index: -2;
    will-change: transform
}
.works .pin::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(222, 235, 202, .96), rgba(225, 235, 201, .42) 38%, rgba(69, 87, 64, .14))
}
.works-heading {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 16%;
    text-align: center
}
.works-heading h2 {
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 500;
    letter-spacing: .07em;
    line-height: 1.7;
    color: #333
}
.works-heading p {
    font: 15px/2 var(--sans);
    letter-spacing: .08em;
    margin-top: 14px;
    color: #425440
}
.works-heading .leaf-mark {
    width: 30px;
    height: 43px;
    margin-left: 20px;
    color: var(--ink);
    vertical-align: middle
}
.work-card {
    position: absolute;
    top: 50px;
    left: 8%;
    width: 84%;
    height: 68svh;
    min-height: 460px;
    background: white;
    border-radius: 9px 9px 0 0;
    /*box-shadow: 0 -6px 24px #334f3310;*/
    padding: 0 6%;
    transform: translateY(110svh);
    will-change: transform
}
.work-card__bar {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #dfe7e6;
    font: 12px var(--sans);
    letter-spacing: .04em
}
.work-card__bar span:first-child {
    color: #9aafb2
}
.work-card__body {
    display: grid;
    grid-template-columns: .92fr 1.1fr;
    gap: 8%;
    align-items: center;
    padding-top: 28px
}
.work-card__body h3 {
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .08em;
    margin: 9px 0 18px
}
.work-card__body p {
    font-size: 0.9rem;
    line-height: 2;
    color: #333
}
.work-card__body .kicker {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2rem;
    color: var(--ink)
}
.video-button {
    position: relative;
    background: #eff1ec;
    overflow: hidden;
    width: 100%;
    padding: 0;
    aspect-ratio: 4/3;
    cursor: pointer
}
.video-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s, filter .8s;
    filter: brightness(.9)
}
.video-button:hover img {
    transform: scale(1.04);
    filter: brightness(.75)
}
.play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font: 23px var(--sans)
}
.play::after {
    content: "動画を見る";
    position: absolute;
    top: calc(100% + 12px);
    font: 11px var(--sans);
    white-space: nowrap;
    letter-spacing: .12em
}
/* ===== 07. Home Room 導入 ===== */
.room-intro {
    text-align: center;
    width: 100%;
    max-width: none;
    margin: auto;
    padding: 180px 7.8% 130px
}
.room-intro h2 {
    font-family: Georgia, serif;
    font-size: clamp(46px, 5.5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.04em;
    margin: 25px 0 14px
}
.room-intro h2 small {
    display: block;
    font: 500 22px/1.6 var(--serif);
    letter-spacing: .12em;
    margin-top: 8px
}
.room-intro p {
    font-size: 0.93rem;
    line-height: 2.6;
    letter-spacing: .03em;
    margin-top: 36px;
    color: #333
}
.room-topics {
    margin-top: 54px;
    padding: 76px 7%;
    background: rgba(255, 255, 255, .9);
    border-radius: 10px;
    text-align: left;
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(390px, 1.28fr);
    grid-template-rows: auto auto;
    column-gap: clamp(58px, 7vw, 92px);
    align-items: start
}
.room-topics__title {
    display: flex;
    align-items: center;
    gap: 12px;
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 26px;
    font: 600 16px/1.6 var(--sans);
    color: var(--ink)
}
.room-topics__title::before {
    content: "";
    display: block;
    width: 32px;
    height: 30px;
    flex: 0 0 32px;
    background: url("images/icon01.png") center / contain no-repeat
}
.room-topics__body {
    display: contents
}
.room-topics__visual {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    aspect-ratio: 10 / 7;
    overflow: hidden;
    background: #edf2ef
}
.room-topics__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity .55s ease, transform .75s ease
}
.room-topics__image.is-active {
    opacity: 1;
    transform: scale(1)
}
.room-topics__list {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    display: grid;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0
}
.room-topics__item {
    display: grid;
    grid-template-columns: 27px 1fr;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 4px 0;
    background: transparent;
    text-align: left;
    font: 400 14px/1.7 var(--sans);
    color: #333;
    transition: color .25s ease, font-weight .25s ease
}
.room-topics__number {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 2px;
    background: var(--ink);
    color: #fff;
    font: 600 12px/1 var(--sans)
}
.room-topics__item:is(:hover, :focus-visible, .is-active) {
    color: #247965;
    font-weight: 700
}
.room-topics__item:is(:hover, :focus-visible, .is-active) .room-topics__label {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px
}
/* ===== 08. Home Room 1〜3 / 見出し固定 ===== */
.room {
    height: var(--room-distance);
    position: relative
}
.room .pin {
    padding: 4svh 3vw;
    isolation: isolate
}
.room-photo-stack {
    position: absolute;
    left: 3%;
    top: 4svh;
    width: 44%;
    height: 88svh;
    overflow: hidden
}
.room-photo {
    position: absolute;
    inset: 0;
    clip-path: inset(100% 0 0 0);
    will-change: clip-path
}
.room-photo:first-child {
    clip-path: inset(0)
}
.room-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform
}
.room-fixed-heading {
    position: absolute;
    left: 57%;
    right: 5%;
    top: 14.6svh;
    text-align: center;
    font: 16px/1.8 var(--sans);
    letter-spacing: .12em;
    z-index: 5
}
.room-fixed-heading span {
    display: inline-block;
    padding-bottom: 15px;
    border-bottom: 1px solid #9aa9a3
}
.room-counter {
    position: absolute;
    left: 50%;
    top: 5svh;
    font: 14px var(--sans);
    z-index: 5;
    width: 45px;
    height: 48px
}
.room-counter::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 1px;
    background: #9eafb0;
    transform: rotate(-47deg);
    top: 25px;
    left: -2px
}
.room-counter span {
    position: absolute;
    top: 0;
    left: 0
}
.room-counter small {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 13px
}
.room-copy-stack {
    position: absolute;
    left: 56%;
    right: 5%;
    top: 22svh;
    height: 58svh
}
.room-copy {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-direction: row-reverse;
    opacity: 0;
    will-change: transform, opacity;
    visibility: hidden
}
.room-copy:first-child {
    opacity: 1;
    visibility: visible
}
.room-copy p {
    writing-mode: vertical-rl;
    font-size: 15px;
    letter-spacing: .18em;
    line-height: 1.8
}
.room-copy h3 {
    writing-mode: vertical-rl;
    font-size: clamp(26px, 3.1vw, 43px);
    letter-spacing: .08em;
    font-weight: 600;
    line-height: 1.5
}
.room-dots {
    position: absolute;
    right: 4%;
    bottom: 5svh;
    display: flex;
    gap: 10px;
    z-index: 5
}
.room-dots a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font: 11px var(--sans);
    border: 1px solid #bdccca;
    border-radius: 50%;
    transition: background .3s, color .3s
}
.room-dots a[aria-current=true] {
    background: var(--ink);
    color: white;
    border-color: var(--ink)
}
.room-gap {
    height: 20svh
}
/* ===== 09. CV / 下からエリア全体がせり上がる ===== */
.cv-reveal {
    height: 150svh;
    position: relative
}
.cv-reveal .pin {
    min-height: 600px
}
.cv {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #b4cdd0;
    transform: translateY(35%);
    will-change: transform;
    box-shadow: 0 -20px 70px #284d4d08
}
.cv-contact {
    padding: 10svh 13% 10svh;
    display: flex;
    flex-direction: column;
    justify-content: center
}
.cv-buttons {
    display: grid;
    gap: 14px
}
.cv-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(105deg, #376773, #138f90);
    color: white;
    min-height: 92px;
    padding: 20px 22px;
    font: 600 16px/2 var(--sans);
    letter-spacing: .1em;
    transition: filter .3s, transform .3s;
    border-radius: 4px;
}
.cv-button:hover {
    filter: brightness(1.1);
    transform: translateY(-3px)
}
.cv-button small {
    position: absolute;
    bottom: 12px;
    right: 18px;
    font: 9px var(--sans);
    letter-spacing: .15em
}
.cv-button .leaf-mark {
    color: #d6eabc;
    width: 15px;
    height: 25px
}
.cv-phone {
    margin-top: 64px;
    font-family: var(--sans)
}
.cv-phone p {
    font-size: 14px;
    letter-spacing: .13em;
        font-weight:500;
}
.cv-phone a {
    display: block;
    font-family: "Manrope", sans-serif;
    font-size: clamp(28px, 3.2vw, 48px);
    font-weight: 700;
    letter-spacing: .015em;
    margin: 3px 0 20px
}
.cv-operator {
    border-top: 1px solid #819ea3;
    padding-top: 25px;
    font: 15px/1.9 var(--sans);
    letter-spacing: .04em;
        font-weight:500;
}
.cv-operator small {
    display: block;
    font-size: 14px;
    letter-spacing: .15em
}
.cv-visual {
    position: relative;
    overflow: hidden
}
.cv-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}
.cv-backtop {
    display: inline-block;
    margin-top: 40px;
    font: 10px var(--sans);
    letter-spacing: .1em;
    align-self: flex-start;
    border-bottom: 1px solid currentColor;
    padding-bottom: 6px
}
/* ===== 10. 動画・未設定URLのダイアログ ===== */
dialog {
    border: 0;
    padding: 0;
    background: #f6f6f4;
    color: var(--ink);
    width: min(900px, 92vw);
    max-height: 90svh;
    overflow: auto;
    box-shadow: 0 20px 100px #102e3240
}
dialog::backdrop {
    background: #183c43b8;
    backdrop-filter: blur(7px)
}
.dialog-inner {
    position: relative;
    padding: 54px 30px 30px
}
.dialog-close {
    position: absolute;
    right: 16px;
    top: 12px;
    background: transparent;
    padding: 8px 12px;
    font: 14px var(--sans)
}
dialog h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px
}
dialog p {
    font: 14px/2 var(--sans)
}
dialog iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #15373b
}
dialog iframe[hidden], dialog p:empty {
    display: none
}
.mobile-break {
    display: none
}
/* ===== 11. スマートフォン ===== */
@media(max-width:760px) {
    body::after {
        display: none
    }
    .leaf img {
        animation: none
    }
    .leaf--soft {
        display: none
    }
    .works-bg {
        transform: none !important
    }
    .room-photo img {
        transform: none !important
    }
    .mobile-break {
        display: block
    }
    :root {
        --hero-distance: 500svh;
        --works-distance: 400svh;
        --room-distance: 540svh
    }
    .pin {
        min-height: 420px
    }
    .leaf {
        width: calc(var(--size) * .65)
    }
    .side-brand {
        display: none
    }
    .quick-nav {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        grid-template-columns: 1fr 1fr;
        gap: 0
    }
    .quick-nav a {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
        font-size: 14px;
        gap: 12px;
        align-items: center
    }
    .motion-toggle {
        right: 10px;
        bottom: 14px;
        font-size: 12px;
        padding: 10px
    }
    .hero-logo__inner {
        width: clamp(220px, 57vw, 310px)
    }
    .hero-media {
        left: var(--mobile-left, var(--left));
        width: var(--mobile-width, var(--width))
    }
    .hero-scroll {
        bottom: 26px
    }
    .message {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 90px 6% 110px;
        min-height: 0;
        overflow-x: clip
    }
    .message h2 {
        font-size: clamp(32px, 9.5vw, 38px);
        letter-spacing: .08em;
        white-space: nowrap;
        margin-bottom: 34px
    }
    .message p {
        font-size: clamp(13px, 3.6vw, 15px);
        line-height: 2.9;
        letter-spacing: .02em;
        white-space: nowrap
    }
    .message .message__closing {
        font-size: clamp(20px, 6.2vw, 24px)
    }
    .message-portraits {
        width: 82%;
        margin-left: auto
    }
    .works-heading {
        top: 5%;
        left: 5%;
        right: 5%
    }
    .works-heading h2 {
        font-size: 27px;
        line-height: 1.65
    }
    .works-heading p {
        font-size: 13px;
        line-height: 1.8
    }
    .works-heading .leaf-mark {
        display: none
    }
    .work-card {
        left: 5%;
        width: 90%;
        padding: 0 6%;
        height: 72svh;
        min-height: 440px
    }
    .work-card__bar {
        height: 44px;
        font-size: 13px
    }
    .work-card__body {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 18px
    }
    .video-button {
        aspect-ratio: 16/9;
        max-height: 27svh
    }
    .work-card__body h3 {
        font-size: 31px;
        margin: 4px 0 8px
    }
    .work-card__body p {
        font-size: 14px;
        line-height: 1.8
    }
    .work-card__body .kicker {
        font-size: 14px
    }
    .work-card[data-work="2"] .work-card__body > div {
        transform: translateY(-18px)
    }
    .work-copy-break {
        display: none
    }
    .work-copy-nowrap {
        white-space: nowrap
    }
    .play {
        width: 50px;
        height: 50px;
        font-size: 23px
    }
    .play::after {
        font-size: 12px;
        top: calc(100% + 7px)
    }
    .room-intro {
        padding: 110px 5% 90px
    }
    .room-intro h2 {
        font-size: 66px
    }
    .room-intro h2 small {
        font-size: 23px
    }
    .room-intro p {
        font-size: 14px;
        line-height: 2.4
    }
    .room-topics {
        margin-top: 38px;
        padding: 34px 7%;
        display: block
    }
    .room-topics__title {
        margin-bottom: 24px;
        gap: 8px;
        font-size: clamp(14px, 4.1vw, 16px);
        white-space: nowrap
    }
    .room-topics__body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 26px
    }
    .room-topics__visual,
    .room-topics__list {
        grid-column: 1;
        grid-row: auto
    }
    .room-topics__list {
        gap: 14px
    }
    .room-topics__item {
        font-size: 16px
    }
    .pill {
        font-size: 13px
    }
    .room-photo-stack {
        left: 5%;
        top: 14svh;
        width: 51%;
        height: 66svh
    }
    .room-fixed-heading {
        left: 5%;
        right: 5%;
        top: 5svh;
        text-align: center;
        font-size: 15px;
        letter-spacing: .07em
    }
    .room-fixed-heading span {
        padding-bottom: 9px
    }
    .room-counter {
        left: 60%;
        top: 16svh;
        font-size: 16px;
        width: 36px;
        height: 37px
    }
    .room-counter::before {
        width: 40px;
        top: 19px
    }
    .room-counter small {
        font-size: 14px
    }
    .room-copy-stack {
        left: 57%;
        right: 2%;
        top: 26svh;
        height: 50svh
    }
    .room-copy {
        gap: 9px
    }
    .room-copy p {
        font-size: 13px;
        letter-spacing: .12em
    }
    .room-copy h3 {
        font-size: 30px;
        letter-spacing: .12em
    }
    .room-dots {
        right: 7%;
        bottom: 10svh;
        gap: 8px
    }
    .room-dots a {
        width: 30px;
        height: 30px;
        font-size: 13px
    }
    .room-gap {
        height: 10svh
    }
    .cv-reveal {
        height: 145svh
    }
    .cv-reveal .pin {
        min-height: 580px
    }
    .cv {
        grid-template-columns: 1fr;
        grid-template-rows: 58% 42%
    }
    .cv-contact {
        padding: 28px 9% 22px;
        display: grid;
        grid-template-columns: 1fr;
        align-content: center
    }
    .cv-buttons {
        gap: 9px
    }
    .cv-button {
        min-height: 65px;
        font-size: 14px;
        padding: 14px 17px 24px
    }
    .cv-button small {
        font-size: 10px;
        bottom: 8px
    }
    .cv-phone {
        margin-top: 22px
    }
    .cv-phone a {
        font-size: 36px;
        margin: 5px 0 12px
    }
    .cv-phone p {
        font-size: 12px
    }
    .cv-operator {
        font-size: 12px;
        padding-top: 12px
    }
    .cv-backtop {
        margin-top: 12px;
        font-size: 12px
    }
    .cv-visual img {
        object-fit: cover;
        object-position: center 44%
    }
    .dialog-inner {
        padding: 52px 22px 24px
    }
    dialog h2 {
        font-size: 26px
    }
}
@media(max-width:370px) {
    .quick-nav a {
        padding: 14px 8px calc(14px + env(safe-area-inset-bottom));
        font-size: 13px;
        gap: 7px
    }
    .room-copy h3 {
        font-size: 26px
    }
    .room-copy p {
        font-size: 12px
    }
}
/* ===== 12. JSなし／動きを止める設定：全内容を通常レイアウトで表示 ===== */
html:not(.motion-ready) .hero, html.motion-off .hero,
html:not(.motion-ready) .works, html.motion-off .works,
html:not(.motion-ready) .room, html.motion-off .room,
html:not(.motion-ready) .cv-reveal, html.motion-off .cv-reveal {
    height: auto
}
html:not(.motion-ready) .pin, html.motion-off .pin {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible
}
html:not(.motion-ready) .hero .pin, html.motion-off .hero .pin {
    padding: 100px 6%
}
html:not(.motion-ready) .hero-logo, html.motion-off .hero-logo {
    position: relative;
    min-height: 50svh
}
html:not(.motion-ready) .hero-media, html.motion-off .hero-media {
    position: relative;
    left: auto;
    top: auto;
    display: inline-block;
    vertical-align: middle;
    width: 43%;
    margin: 3%;
    transform: none !important;
    opacity: 1 !important
}
html:not(.motion-ready) .hero-scroll, html.motion-off .hero-scroll {
    display: none
}
html:not(.motion-ready) .works .pin, html.motion-off .works .pin {
    padding: 60px 5%;
    overflow: hidden
}
html:not(.motion-ready) .works-heading, html.motion-off .works-heading {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin-bottom: 40px
}
html:not(.motion-ready) .work-card, html.motion-off .work-card {
    position: relative;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 20px;
    padding: 0 6% 36px;
    transform: none !important
}
html:not(.motion-ready) .room .pin, html.motion-off .room .pin {
    display: grid;
    grid-template-columns: 48% 48%;
    gap: 4%;
    padding: 70px 5%
}
html:not(.motion-ready) .room-photo-stack, html.motion-off .room-photo-stack {
    position: static;
    width: auto;
    height: auto;
    display: grid;
    gap: 40px
}
html:not(.motion-ready) .room-photo, html.motion-off .room-photo {
    position: relative;
    height: 65svh;
    clip-path: none !important
}
html:not(.motion-ready) .room-photo img, html.motion-off .room-photo img {
    transform: none !important
}
html:not(.motion-ready) .room-copy-stack, html.motion-off .room-copy-stack {
    position: static;
    height: auto;
    display: grid;
    gap: 40px
}
html:not(.motion-ready) .room-copy, html.motion-off .room-copy {
    position: relative;
    height: 65svh;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important
}
html:not(.motion-ready) .room-fixed-heading, html.motion-off .room-fixed-heading {
    top: 12px;
    left: 5%;
    right: 5%
}
html:not(.motion-ready) .room-counter, html.motion-off .room-counter, html:not(.motion-ready) .room-dots, html.motion-off .room-dots {
    display: none
}
html:not(.motion-ready) .cv, html.motion-off .cv {
    position: relative;
    min-height: 100svh;
    transform: none !important
}
.motion-off [data-reveal] {
    opacity: 1 !important;
    transform: none !important
}
.motion-off .leaf img, .motion-off .hero-logo__inner, .motion-off .hero-scroll::after {
    animation: none !important
}
.motion-off * {
    transition-duration: 0s !important
}
.motion-off .leaf {
    transform: none !important
}
@media(prefers-reduced-motion:reduce) {
    .leaf img, .hero-logo__inner, .hero-scroll::after {
        animation: none
    }
    * {
        scroll-behavior: auto !important
    }
}
/* ロゴ登場：同じSVGを小さな表示領域に分割して集合（画像加工・追加ライブラリなし）。
   終了時は分割DOMを削除し、元のimg一枚に戻します。 */
.hero-logo__inner { position: relative; }
.hero-logo__assembly {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}
.hero-logo__piece {
    position: absolute;
    overflow: hidden;
    will-change: transform, opacity;
    backface-visibility: hidden;
}
.hero-logo .hero-logo__piece img {
    position: absolute;
    display: block;
    max-width: none;
    aspect-ratio: auto;
    margin: 0;
}
.motion-off .hero-logo__assembly { display: none; }
.motion-off .hero-logo__inner > img { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) {
    .hero-logo__assembly { display: none; }
    .hero-logo__inner > img { opacity: 1 !important; }
}

/* 動きの切り替えボタンは表示しない（既存JSの参照は維持）。 */
.motion-toggle[hidden] { display: none !important; }
