:root {
  /* 祥史さん指定の 3 色：背景＝深い赤、見本のボルドーの所＝白、線と矢印＝ゴールド */
  --bg: #3D0115; --ink: #F6F6F5; --gold: #CFB155; --soft: #D9CFCF; --line: #F6F6F540; --error: #F2DC8E;
  --header-h: 72px; --gutter: 24px;
  --sans: "Nimbus Sans", "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.8 var(--sans); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 4px; }
ul { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.section-invert :focus-visible { outline-color: var(--bg); }
main:focus { outline: none; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; padding-block: 64px 96px; }
.narrow h1 { margin-bottom: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 8px; }
.preview-banner { background: var(--gold); color: var(--bg); padding: 4px var(--gutter); font-size: .8125rem; line-height: 1.5; text-align: center; }
.arrow { flex: none; color: var(--gold); }

.display { font-size: min(15vw, 4rem); line-height: 1.02; letter-spacing: -.01em; font-weight: 700; margin: 0; overflow-wrap: break-word; }
.collab-title, .cta-title { font-size: min(11vw, 4rem); }
.project-head h1 { font-size: min(10.4vw, 4rem); }
.display2 { font-size: min(8.4vw, 2.7rem); line-height: 1.1; font-weight: 700; overflow-wrap: break-word; }
.label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; color: var(--soft); font-weight: 400; line-height: 1.5; }
.label-rule::before { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin-bottom: 14px; }
.sub { font-size: 1.125rem; margin: 20px 0 0; }
.note { font-size: .875rem; color: var(--soft); margin: 12px 0 0; }
.rule-top { border-top: 1px solid var(--line); padding-top: 28px; }

.hero-grid > *, .contact-grid > *, .idea > *, .cards > *, .about-grid > *, .collab-grid > *, .project-cta > * { min-width: 0; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: var(--header-h); position: relative; }
.header-row::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line); }
.logo { font-weight: 700; font-size: 1.375rem; line-height: 1; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.logo-sub { display: none; font-size: .75rem; color: var(--soft); text-transform: uppercase; }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 20px; }
.nav-desktop a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; text-decoration: none; font-size: 1rem; }
.nav-desktop a:hover { text-decoration: underline; }
html:not(.js) .nav-desktop { display: block; }
html:not(.js) .menu-button { display: none; }
html:not(.js) .header-row { flex-wrap: wrap; }
.lang { display: inline-flex; align-items: center; font-size: .875rem; }
.lang a, .lang-current { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 32px; padding-inline: 3px; }
.lang-current { font-weight: 700; }
.lang-sep { color: var(--soft); }
.header-row .lang { gap: 2px; margin-left: 12px; padding: 2px 2px 2px 30px; border: 1px solid #F6F6F566; position: relative; }
.header-row .lang::before { content: ""; position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c3 3 3 16 0 19M12 2.5c-3 3-3 16 0 19'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M2.5 12h19M12 2.5c3 3 3 16 0 19M12 2.5c-3 3-3 16 0 19'/%3E%3C/svg%3E") center / contain no-repeat; }
.header-row .lang-sep { display: none; }
.header-row .lang a, .header-row .lang-current { min-height: 40px; min-width: 40px; padding-inline: 10px; font-size: .8125rem; letter-spacing: .04em; text-decoration: none; }
.header-row .lang a { color: var(--ink); }
.header-row .lang-current { background: var(--gold); color: var(--bg); }
@media (max-width: 374px) {
  .header-row .lang { margin-left: 0; padding-left: 2px; }
  .header-row .lang::before { display: none; }
  .header-row .lang a, .header-row .lang-current { padding-inline: 7px; }
}
.menu-button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 44px; min-width: 44px; padding: 0 4px; background: none; color: inherit; border: 0; font: inherit; font-size: .75rem; line-height: 1; cursor: pointer; }
.bars { display: block; width: 32px; height: 7px; border-block: 1px solid currentColor; }
.mobile-menu { position: fixed; inset: 0; z-index: 30; background: var(--bg); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu-top { display: flex; align-items: center; min-height: var(--header-h); border-bottom: 1px solid var(--line); }
.mobile-menu-top .menu-button { flex-direction: row; gap: 8px; font-size: 1rem; }
.mobile-menu-top .menu-button::before { content: "×"; font-size: 1.5rem; line-height: 1; }
.mobile-menu nav li a { display: flex; align-items: center; justify-content: space-between; min-height: 112px; text-decoration: none; font-size: 2.125rem; line-height: 1.2; }
.mobile-menu small { display: block; font-size: .75rem; color: var(--soft); margin-bottom: 6px; }
.menu-ig a { display: inline-flex; align-items: center; min-height: 48px; }

/* ボタン */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 100%; min-height: 52px; padding: 10px 18px 10px 20px; background: var(--ink); color: var(--bg); border: 0; text-decoration: none; font: inherit; font-size: 1rem; cursor: pointer; }
.button .arrow { width: 20px; height: 20px; color: var(--bg); }
.button-wide { display: flex; width: 100%; min-height: 56px; }
.button[aria-disabled=true] { opacity: .7; cursor: progress; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.link-button { min-height: 44px; min-width: 44px; padding: 0 4px; background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* 画像の枠 */
.frame { overflow: hidden; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: contain; }
img[src*="/missing/"] { background: #F6F6F514; color: var(--ink); }

/* ヒーロー */
.hero { padding-block: 24px 56px; }
.hero-grid { display: grid; gap: 28px; }
.hero-activity { margin: 12px 0 0; color: var(--soft); }
.hero-media img { width: 100%; }
figcaption { display: flex; justify-content: space-between; font-size: .75rem; color: var(--soft); text-transform: uppercase; margin-top: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-actions .button { min-width: 200px; }

/* 区画 */
.section { padding-block: 64px; }
.section-head { margin-bottom: 32px; }
.section-note { margin: 16px 0 0; }
.card a { display: block; text-decoration: none; }
.card-text { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 14px; }
.card h3 { font-size: 1.25rem; line-height: 1.3; }
.card a:hover h3 { text-decoration: underline; }
.card-role { margin: 6px 0 0; font-size: .875rem; color: var(--soft); line-height: 1.6; }
.section-invert { background: var(--ink); color: var(--bg); --line: #3D011540; --soft: #6A3A47; }
.section-invert .label-rule::before { background: var(--gold); }
.about-grid { display: grid; gap: 32px; }
.about-media { order: -1; }
.about-media img { width: 100%; }
.about-lead { font-size: 1.25rem; line-height: 1.7; margin: 28px 0 0; }
.about-text .prose { margin-top: 24px; }
.prose { max-width: 36em; }
.prose h3 { margin: 28px 0 8px; font-size: 1.125rem; }
.disciplines { font-size: .75rem; color: var(--bg); border-top: 1px solid var(--line); padding-top: 16px; margin: 32px 0 0; }
.facts { margin: 16px 0 0; }
.facts > div { display: grid; grid-template-columns: minmax(6em, 1fr) 2fr; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.facts dd { margin: 0; }
.collab-grid { display: grid; gap: 28px; }
.collab-side .button { width: 100%; }
.collab-flow { color: var(--soft); font-size: .9375rem; }
.services { display: grid; gap: 20px; margin-top: 48px; }
.services li { border-top: 1px solid var(--line); padding-top: 14px; }
.services p { margin: 6px 0 0; }

/* 作品詳細 */
.project { padding-block: 16px 64px; }
.back a { display: inline-flex; align-items: center; min-height: 44px; }
.project-head { margin: 16px 0 28px; }
.project-meta { display: grid; gap: 14px; border-top: 1px solid var(--line); margin: 28px 0 0; padding-top: 18px; }
.project-meta dt { font-size: .75rem; color: var(--soft); text-transform: uppercase; }
.project-meta dd { margin: 2px 0 0; }
.media { margin: 0 0 28px; }
.media .frame { margin-inline: auto; max-height: 92vh; }
.media img, .media video { width: 100%; height: 100%; }
.media-error { padding-top: 12px; }
figcaption { justify-content: flex-start; }
.idea { display: grid; gap: 28px; margin-block: 56px; }
.credits { margin-top: 48px; }
.credits dl { margin: 0; }
.credits dl > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 16px; padding-block: 4px; }
.credits dt { color: var(--soft); }
.credits dd { margin: 0; }
.project-cta { display: grid; gap: 28px; margin-block: 64px; }
.related h2 { margin-bottom: 24px; }
.related > p { margin: 28px 0 0; }
.related > p a { display: inline-flex; align-items: center; min-height: 44px; }

/* 相談 */
.contact-grid { display: grid; gap: 40px; padding-block: 40px 72px; }
.contact-intro .sub { margin-bottom: 16px; }
.notice { border-left: 2px solid var(--gold); padding: 4px 0 4px 14px; font-size: .9375rem; }
.reference { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); padding: 10px 16px; margin-bottom: 28px; }
.reference[hidden] { display: none; }
.reference p { margin: 0; }
.reference .label { display: block; margin: 0; color: #6A3A47; }
.field { margin-bottom: 28px; }
.field label { display: block; margin-bottom: 8px; }
.req, .opt { font-size: .8125rem; margin-left: 8px; }
.req { color: var(--gold); }
.opt { color: var(--soft); }
.hint { font-size: .875rem; color: var(--soft); margin: 0 0 8px; }
input[type=text], input[type=email], textarea { display: block; width: 100%; min-height: 52px; padding: 12px 14px; background: transparent; color: var(--ink); border: 1px solid var(--ink); font: inherit; font-size: 1rem; }
textarea { min-height: 200px; max-height: 480px; overflow-y: auto; field-sizing: content; resize: vertical; }
[aria-invalid=true] { border: 2px solid var(--error); }
.field-error { color: var(--error); font-size: .9375rem; margin: 8px 0 0; }
.more { margin-bottom: 24px; }
.more summary { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; font-size: 1.25rem; line-height: 1; }
.more[open] summary::before { content: "−"; }
.more[open] summary { margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; }
.form-note a { display: inline-flex; align-items: center; min-height: 44px; }
.alert { border-left: 2px solid var(--error); padding: 4px 0 4px 14px; margin-bottom: 24px; }
.alert p { margin: 0 0 4px; }
.status { margin: 14px 0 0; border-left: 2px solid var(--gold); padding: 4px 0 4px 14px; }
.sent h2 { margin-bottom: 28px; }
.sent:focus { outline: none; }
.other-contact { margin-top: 36px; }
.other-contact a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.25rem; }
.email-address { font-size: 1.25rem; }
.email-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button-quiet { min-height: 52px; padding: 10px 18px; background: transparent; border: 1px solid var(--ink); color: inherit; font: inherit; cursor: pointer; }

/* フッター */
.site-footer { border-top: 1px solid #CFB15580; }
.foot-grid { padding-block: 40px 28px; }
.foot-brand { display: block; width: fit-content; font-size: 3.5rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--gold); -webkit-text-stroke: .018em var(--gold); text-decoration: none; }
.foot-id p { margin: 8px 0 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.foot-nav { margin-top: 24px; }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.0625rem; text-decoration: none; }
.foot-legal { padding-block: 10px 14px; border-top: 1px solid var(--line); font-size: .875rem; }
.foot-legal > span { display: flex; align-items: center; min-height: 36px; }
.foot-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.foot-legal-links > * { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: inherit; text-decoration: none; }
.site-footer .lang-sep { color: inherit; }
.site-footer .lang a, .site-footer .lang-current { min-width: 0; font-weight: 400; }
.foot-up { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (min-width: 768px) {
  .foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-block: 72px 56px; }
  .foot-brand { font-size: clamp(4rem, 5.6vw, 5.5rem); }
  .foot-id p { margin-top: 12px; font-size: 1.25rem; }
  .foot-nav { margin-top: 0; }
  .foot-nav ul { gap: 0 40px; }
  .foot-nav a { font-size: 1.25rem; }
  .foot-legal { display: flex; justify-content: space-between; align-items: center; padding-block: 12px 16px; font-size: 1rem; }
  .foot-legal-links { gap: 0 40px; }
}

@media (min-width: 768px) {
  :root { --gutter: 64px; --header-h: 84px; }
  .display { font-size: clamp(4rem, 8.4vw, 8rem); }
  .display2 { font-size: clamp(2.75rem, 4.4vw, 4rem); }
  body { font-size: 1.0625rem; }
  .logo { margin-right: 0; font-size: 1.625rem; }
  .logo-sub { display: inline; margin-left: 20px; margin-right: auto; }
  .nav-desktop { display: block; }
  .header-row > .menu-button { display: none; }
  .hero { padding-block: 48px 72px; }
  .hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 32px 48px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-media { grid-column: 2; grid-row: 1 / span 2; }
  .hero-actions { grid-column: 1; grid-row: 2; align-self: start; }
  .hero-text-only .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-text-only .hero-actions { grid-row: auto; }
  .section { padding-block: 120px; }
  .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
  .section-note { margin: 0 8% 8px 0; }
  .section-head > div:first-child { flex: none; max-width: 100%; }
  .about-grid { grid-template-columns: 3fr 2fr; gap: 64px; align-items: start; }
  .about-media { order: 0; }
  .collab-grid { grid-template-columns: 2fr 1fr; gap: 48px; align-items: center; }
  .project-meta { grid-template-columns: repeat(3, 1fr); }
  .idea { grid-template-columns: 1fr 1fr; gap: 48px; }
  .credits { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; }
  .credits h2 { margin: 0; }
  .project-cta { grid-template-columns: 3fr 2fr; align-items: end; gap: 48px; }
  .services { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 56px 96px; }
  .contact-intro .display { font-size: clamp(3.5rem, 6.2vw, 6rem); }
  .cta-title { font-size: clamp(3rem, 6vw, 6rem); }
  .collab-title { font-size: clamp(3.5rem, 6.6vw, 8rem); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .logo-sub { display: none; }
  .logo { margin-right: auto; }
  .nav-desktop ul { gap: 4px; }
  :root { --gutter: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-cta { grid-template-columns: 1fr; }
  .collab-grid { grid-template-columns: 1fr; }
  .idea { grid-template-columns: 1fr; gap: 20px; }
  .about-text .display2 { font-size: clamp(2rem, 4.6vw, 2.75rem); }
}
@media (max-width: 1023px) {
  .contact-grid { gap: 0; }
  .contact-intro { display: contents; }
  .contact-form { order: 1; margin-top: 32px; }
  .other-contact { order: 2; }
}
/* ---- 作品：先頭を大きく、以降は縦横に合わせて左右に振る ---- */
.cards { display: grid; gap: 56px; }
.card.pos-feature { width: 100%; }
.card-port { width: 76%; }
.card-port.pos-right { margin-left: auto; }
.card-land { width: 100%; }
.card .frame img { object-fit: cover; }
.cards-related { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 28px 16px; }
.cards-related .frame { border: 1px solid var(--line); }
.cards-related .card-text { gap: 8px; }
.video-badge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; background: var(--bg); color: var(--ink); font-size: .75rem; line-height: 1.5; }
.video-badge svg { flex: none; color: var(--gold); }
.card .frame { position: relative; }
@media (max-width: 359px) { .cards-related { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(12, 1fr); gap: 96px 24px; }
  .card { width: auto; }
  .card-land.pos-feature { grid-column: 1 / -1; }
  .card-port.pos-feature { grid-column: 4 / span 6; }
  .card-port.pos-left { grid-column: 1 / span 5; }
  .card-port.pos-right { grid-column: 8 / span 5; margin: 120px 0 0; }
  .card-land.pos-left { grid-column: 1 / span 8; }
  .card-land.pos-right { grid-column: 5 / span 8; }
}
@media (min-width: 1024px) {
  .card-port.pos-left { grid-column: 2 / span 4; }
  .card-port.pos-right { grid-column: 8 / span 4; }
  .card-port.pos-feature { grid-column: 4 / span 5; }
}

.view-all { margin: 56px 0 0; }
.all-projects { padding-block: 32px 72px; }
.all-projects .display { margin-bottom: 28px; }
.cards-all { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; align-items: start; }
.cards-all { grid-auto-flow: dense; }
.cards-all .card { width: 100%; }
@media (max-width: 767px) { .cards-all .card-land { grid-column: 1 / -1; } }
.cards-all .card-text { gap: 8px; }
.cards-all .card h3 { font-size: 1rem; }
@media (max-width: 359px) { .cards-all { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 768px) {
  .view-all { margin-top: 96px; display: flex; justify-content: center; }
  .view-all .button { min-width: 320px; }
  .all-projects { padding-block: 56px 120px; }
  .all-projects .display { margin-bottom: 48px; }
  .cards-all { gap: 56px 24px; }
  .cards-all .card h3 { font-size: 1.25rem; }
}
@media (min-width: 1024px) { .cards-all { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 32px; } }
.work-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
html:not(.js) .work-filter { display: none; }
.work-filter button { min-height: 44px; min-width: 64px; padding: 6px 16px; background: transparent; color: var(--ink); border: 1px solid var(--ink); font: inherit; font-size: 1rem; cursor: pointer; transition: background 200ms ease, color 200ms ease; }
.work-filter button[aria-pressed=true] { background: var(--ink); color: var(--bg); }
.gallery { display: grid; gap: 20px; margin-block: 0 56px; }
.gallery > * { min-width: 0; }
.gallery .media { margin: 0; }
.gallery-dense { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 96px; align-items: start; }
  .gallery-dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery .media .frame { max-height: none; }
}

/* ---- トップ：最初の 1 画面は JURYU だけ（幅いっぱい、上下の中央） ---- */
.hero-brand { width: 100%; color: var(--gold); }
.hero-brand svg { display: block; width: 100%; height: auto; max-height: calc(100svh - var(--header-h) - 48px); }
.brand-screen { display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.hero-brand .line > span { animation: lineUp 1000ms var(--ease) both; }

/* JURYU を止めたまま、スクロールに合わせて下の画面が浮かび上がる（.stage-on は site.js が付ける。無ければ普通に並ぶ） */
.stage-spacer { display: none; }
.stage-on .brand-screen { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); margin-bottom: calc(var(--header-h) - 100svh); opacity: var(--b, 1); }
.stage-on .brand-stage.is-gone .brand-screen { opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
.stage-on .brand-stage .hero { position: sticky; top: var(--header-h); z-index: 1; min-height: calc(100svh - var(--header-h)); background: var(--bg); opacity: 0; transform: translateY(40px); transition: opacity 900ms ease, transform 1100ms var(--ease); will-change: opacity, transform; }
.stage-on .brand-stage.is-up .hero { opacity: 1; transform: none; }
.stage-on .brand-stage .hero * { animation: none; }
.stage-on .brand-stage:not(.is-up) .hero { pointer-events: none; }
/* 下の画面は 1 画面に全部収める（写真の高さで調整。低い画面では少し伸びる） */
.stage-on .brand-stage .hero { padding-block: 20px; }
.stage-on .brand-stage .hero-grid { min-height: calc(100svh - var(--header-h) - 40px); grid-template-rows: auto minmax(170px, 1fr) auto; gap: 16px; }
.stage-on .brand-stage .hero-media { display: flex; flex-direction: column; min-height: 0; }
.stage-on .brand-stage .hero-frame { position: relative; flex: 1; min-height: 0; }
.stage-on .brand-stage .hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 768px) {
  .stage-on .brand-stage .hero-grid { grid-template-rows: auto 1fr; gap: 24px 48px; }
}
/* スマホは写真を切らず、元の縦横のまま大きく見せる（ボタンはスクロールすると現れる） */
@media (max-width: 767px) {
  .stage-on .brand-stage .hero-grid { grid-template-rows: auto auto auto; }
  .stage-on .brand-stage .hero-frame { flex: none; }
  .stage-on .brand-stage .hero-frame img { position: static; height: auto; }
}
.stage-on .stage-spacer { display: block; height: 183svh; }

/* ---- 表現の領域 ---- */
.expertise { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.expertise li { position: relative; display: flex; gap: 16px; }
.expertise li::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); transform-origin: left; }
.exp-num { flex: none; width: 2.2em; font-size: .75rem; color: var(--soft); padding-top: 32px; }
.exp-main { flex: 1; min-width: 0; }
.exp-head { position: relative; display: block; padding: 24px 40px 24px 0; cursor: pointer; list-style: none; }
.exp-head::-webkit-details-marker { display: none; }
.exp-name { margin: 0; font-size: clamp(1.75rem, 8.4vw, 4rem); font-weight: 700; line-height: 1.08; }
.exp-ja { display: block; margin-top: 10px; font-size: .9375rem; font-weight: 500; line-height: 1.4; }
.exp-title { margin: 14px 0 0; font-size: 1.25rem; line-height: 1.6; font-weight: 500; }
.exp-toggle { position: absolute; top: 30px; right: 4px; width: 20px; height: 20px; }
.exp-toggle::before, .exp-toggle::after { content: ""; position: absolute; top: 9px; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform 200ms ease; }
.exp-toggle::after { transform: rotate(90deg); }
details[open] > .exp-head .exp-toggle::after { transform: rotate(0deg); }
.exp-body { padding-bottom: 28px; }
.exp-text > p { margin: 0 0 18px; }
.exp-text .text-link { margin-top: 4px; }
.read-more > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.read-more > summary::before { content: "+"; font-size: 1.25em; line-height: 1; }
.read-more > summary::-webkit-details-marker { display: none; }
.read-more[open] > summary { display: none; }
.vision-grid { display: grid; gap: 24px; }
.vision-grid > * { min-width: 0; }
.vision-title { margin-top: 16px; }
@media (min-width: 768px) {
  .expertise li { gap: 24px; }
  .exp-num { width: 72px; padding-top: 42px; }
  .exp-head, .exp-body { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; }
  .exp-head { padding: 36px 56px 36px 0; align-items: start; }
  .exp-title { margin: 8px 0 0; }
  .exp-toggle { top: 50px; }
  .exp-body { padding: 0 56px 40px 0; }
  .exp-text { grid-column: 2; }
  .vision-grid { grid-template-columns: 5fr 6fr; gap: 48px; }
}

/* ---- 日本語の説明文を主役に近づける（英語の大見出しと釣り合う大きさ。色は薄くしない） ---- */
html[lang="ja"] .hero .sub, html[lang="ja"] .section-note, html[lang="ja"] .about-lead, html[lang="ja"] .collab-side > p, html[lang="ja"] .project-head .sub, html[lang="ja"] .contact-intro .sub { word-break: auto-phrase; text-wrap: balance; }
html[lang="ja"] .prose p, html[lang="ja"] .contact-intro > p { text-wrap: pretty; }
html[lang="ja"] .hero .sub { font-size: clamp(1.25rem, 2.1vw, 1.875rem); line-height: 1.5; font-weight: 500; margin-top: 24px; }
html[lang="ja"] .section-note { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.6; font-weight: 500; }
html[lang="ja"] .exp-title { font-size: clamp(1.25rem, 1.8vw, 1.5rem); word-break: auto-phrase; text-wrap: pretty; }
html[lang="ja"] .exp-text > p { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.9; text-wrap: pretty; }
html[lang="ja"] .about-lead { font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.6; font-weight: 500; }
html[lang="ja"] .prose, html[lang="ja"] .contact-intro > p:not(.label):not(.sub) { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.9; }
html[lang="ja"] .prose { max-width: 34em; }
html[lang="ja"] .collab-side > p:first-child { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.6; font-weight: 500; }
html[lang="ja"] .collab-flow { font-size: clamp(1rem, 1.2vw, 1.125rem); color: inherit; }
html[lang="ja"] .project-head .sub, html[lang="ja"] .contact-intro .sub { font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.6; font-weight: 500; }
html[lang="ja"] #projects .card-role { font-size: clamp(1rem, 1.2vw, 1.125rem); color: inherit; }

/* ---- 動き：軽いフェードと短い移動だけ。JS が無くても、動かなくても、最後は必ず見える ---- */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }
.scroll-mark { position: absolute; top: 0; height: 80px; width: 1px; pointer-events: none; }
.line, .line > span { display: block; }

/* 開いた瞬間に見える所は CSS だけで（時間差 70ms、全体で約 600ms 以内） */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero .label, .hero .display, .hero-frame, .hero .sub, .hero-activity, .hero-actions, .contact-intro > *, .project-head > * { animation: fadeUp 380ms var(--ease) both; }
.hero .display, .hero-frame, .contact-intro > h1, .project-head > h1 { animation-delay: 70ms; }
.hero .sub, .contact-intro > .sub, .project-head > .sub { animation-delay: 140ms; }
.hero-activity, .hero-actions, .contact-intro > p:last-of-type, .project-head > dl { animation-delay: 210ms; }
.swapped .contact-intro > * { animation: none; }

/* スクロールで一度だけ（.motion は site.js が付ける） */
[data-reveal] { --d: 0ms; }
.motion [data-reveal="fade"], .motion [data-reveal="lines"], .motion [data-reveal="img"], .motion [data-reveal="row"] { opacity: 0; transform: translateY(10px); transition: opacity 400ms var(--ease) var(--d), transform 400ms var(--ease) var(--d); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* 見出し：行ごとに下からせり上がる（レイアウトは変えない。g や y が切れないよう下に余白を持たせて相殺） */
.line { overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
.hero .display.lines-intro, .contact-intro > h1.lines-intro, .project-head > h1.lines-intro { animation: none; }
.lines-intro .line > span { animation: lineUp 900ms var(--ease) calc(var(--i, 0) * 90ms + 60ms) both; }
.swapped .contact-intro .line > span { animation: none; }
.motion [data-reveal="lines"] { opacity: 1; transform: none; transition: none; }
.motion [data-reveal="lines"] .line > span { transform: translateY(110%); transition: transform 900ms var(--ease) calc(var(--i, 0) * 90ms + var(--d)); }
.motion [data-reveal="lines"].is-in .line > span { transform: none; }

/* 写真：上から幕が開き、中の写真がわずかに落ち着く */
@keyframes curtain { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.hero-frame { animation: curtain 1100ms var(--ease) 80ms both; overflow: hidden; }
.hero-frame img { animation: settle 1500ms var(--ease) 80ms both; }
.motion [data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1000ms var(--ease) var(--d); }
.motion [data-reveal="img"].is-in { clip-path: inset(0); }
.motion [data-reveal="img"]:not(.is-in) img { transform: scale(1.06); }
.frame img { transition: transform 1200ms var(--ease); }

/* 文章はゆっくり短く */
.motion [data-reveal="fade"], .motion [data-reveal="row"] { transform: translateY(14px); transition: opacity 700ms var(--ease) var(--d), transform 700ms var(--ease) var(--d); }

/* 表現の領域：線が左から引かれる */
.motion [data-reveal="row"]::before { transform: scaleX(0); transition: transform 900ms var(--ease) var(--d), background 200ms ease; }
.motion [data-reveal="row"].is-in::before { transform: none; }

/* 開閉：高さと透明度をなめらかに（対応ブラウザだけ。未対応はそのまま開く） */
.exp-main, .read-more { interpolate-size: allow-keywords; }
.exp-main::details-content, .read-more::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size 420ms var(--ease), opacity 320ms ease, content-visibility 420ms allow-discrete; }
.exp-main[open]::details-content, .read-more[open]::details-content { block-size: auto; opacity: 1; }
.exp-toggle::before, .exp-toggle::after { transition: transform 320ms var(--ease); }

/* ボタン・リンク */
.button { transition: background 200ms ease, color 200ms ease, transform 120ms ease; }
.button:active { background: var(--gold); transform: translateY(1px); }
.button-quiet { transition: background 200ms ease, color 200ms ease; }
.button-quiet:active { background: var(--ink); color: var(--bg); }
.text-link, .nav-desktop a { position: relative; text-decoration: none; }
.text-link::after, .nav-desktop a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform-origin: left; transition: transform 200ms ease, background 200ms ease; }
.text-link:active::after { background: var(--gold); }
.nav-desktop a { padding-inline: 0; }
.nav-desktop ul { gap: 32px; }
.nav-desktop a::after { transform: scaleX(0); }
.nav-desktop a[aria-current]::after { transform: scaleX(1); background: var(--gold); }
.back a { text-decoration: none; }
.card-text .arrow, .button .arrow { transition: transform 320ms var(--ease); }
.card .frame img { transition: transform 1200ms var(--ease); }

/* ヘッダー：場所を動かさず、見た目だけ細く（本文がずれない） */
.site-header, .header-row > * { transition: transform 220ms ease; }
@media (min-width: 768px) {
  .site-header.is-compact { transform: translateY(-14px); }
  .site-header.is-compact .header-row > * { transform: translateY(7px); }
}

/* 触れる端末では出さない */
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--gold); }
  .button-quiet:hover { background: var(--ink); color: var(--bg); }
  .nav-desktop a:hover { text-decoration: none; }
  .nav-desktop a:hover::after { transform: scaleX(1); }
  .text-link:hover::after { background: var(--gold); }
  .card a:hover h3 { text-decoration: none; }
  .expertise li:hover::before { background: var(--gold); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:hover .arrow, .card a:hover .card-text .arrow { transform: translate(4px, -4px); }
  .card a:hover .frame img { transform: scale(1.03); }
}

/* スマホのメニュー */
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes menuOut { to { opacity: 0; transform: translateY(-8px); } }
.mobile-menu { animation: menuIn 220ms var(--ease) both; }
.mobile-menu.is-closing { animation: menuOut 200ms ease both; }

/* 相談フォーム */
input[type=text], input[type=email], textarea { transition: border-color 200ms ease; }
input[type=text]:focus, input[type=email]:focus, textarea:focus { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 0; }
.field-error:not([hidden]), .alert:not([hidden]) { animation: fadeUp 240ms var(--ease) both; }
.more { interpolate-size: allow-keywords; }
.more::details-content { block-size: 0; overflow: hidden; transition: block-size 240ms var(--ease), content-visibility 240ms allow-discrete; }
.more[open]::details-content { block-size: auto; }

/* 画面の切り替え：対応ブラウザだけ。作品の写真は次のページへ引き継ぐ */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 240ms; animation-timing-function: ease; }
::view-transition-group(*) { animation-duration: 300ms; animation-timing-function: var(--ease); }

/* スマホの詰め：作品詳細の文章の区画と相談フォーム。動画の周りは残す */
@media (max-width: 767px) {
  .label { margin-bottom: 12px; }
  html[lang="ja"] .project-head h1 { font-size: min(9vw, 4rem); line-break: strict; word-break: auto-phrase; }
  .project { padding-bottom: 52px; }
  .project-meta { margin-top: 22px; }
  .idea { gap: 16px; margin-block: 56px 44px; }
  .prose > :last-child { margin-bottom: 0; }
  .credits { margin-top: 0; padding-top: 24px; }
  .project-cta { gap: 20px; margin-block: 52px 48px; }
  .related { padding-top: 24px; }
  .related h2 { margin-bottom: 16px; }
  .related > p { margin-top: 20px; }
  .contact-grid { padding-block: 32px 56px; }
  .contact-form { margin-top: 24px; }
  .contact-intro p:last-of-type { margin-bottom: 0; }
  .field label, .hint { margin-bottom: 8px; }
  .more { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { transition: none !important; animation: none !important; }
  .button:active { transform: none; }
  @view-transition { navigation: none; }
}

/* 写真の下の年と名前（イベント設営など）：年を大きく、名前は読みやすく */
figcaption:has(.cap-year) { flex-direction: column; margin-top: 14px; }
.cap-year { display: block; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.1; letter-spacing: 0; color: var(--gold); text-transform: none; }
.cap-name { display: block; margin-top: 6px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 500; line-height: 1.4; letter-spacing: .02em; color: var(--ink); text-transform: none; }

/* 相談の受け取り先が決まるまで（公開版）：Instagram のメッセージへ案内 */
.dm-only p { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.9; margin-bottom: 24px; }
