/* 053 HAIRO ― 色はここだけ触れば差し替わる（区切りごとのテーマの色は HTML の data-theme とそろえる） */
:root {
  --c-white: #fafafa;
  --c-black: #111111;
  --c-gray: #d4d4d4;
  --c-graphite: #3f3f46;
  --c-accent-text: #111111;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-on-dark: #e5e5e5;
  --c-line: #d4d4d4;
  --font: "Zen Kaku Gothic New", sans-serif;
  --font-en: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* スクランブルの途中の文字（まだ揃っていない字）だけ等幅・灰色 */
.scr { font-family: var(--font-mono); font-weight: 500; opacity: .55; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--c-black); color: #fff; border: 2px solid var(--c-black); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; flex: none; transition: background-color .25s, color .25s; }
.btn:hover, .btn:focus-visible { background: transparent; color: var(--c-black); }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 17px; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px; background: rgba(250, 250, 250, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-en); font-weight: 700; font-size: 22px; letter-spacing: .12em; color: var(--c-black); text-decoration: none; white-space: nowrap; flex: none; }
.logo__mark { width: 18px; height: 18px; background: linear-gradient(90deg, var(--c-black) 50%, #8a8a8a 50%); }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 18px; }
@media (min-width: 1080px) {
  .header__inner { padding: 0 48px; height: 72px; }
  .gnav { display: flex; gap: 36px; margin-left: auto; }
  .gnav a { position: relative; display: flex; align-items: center; min-height: 44px; font-family: var(--font-en); font-weight: 500; font-size: 16px; text-decoration: none; color: var(--c-black); }
  .gnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s; }
  .gnav a:hover::after, .gnav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
  .header__btn { margin-left: 12px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--c-black); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-black); padding: 8px 20px 24px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: baseline; justify-content: space-between; min-height: 60px; padding-top: 14px; color: #fff; text-decoration: none; font-family: var(--font-en); font-weight: 700; font-size: 24px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.spmenu__nav small { font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--c-on-dark); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出③（G04）：行き先の色の幕 ===== */
.wipe { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; transform: translateY(100%); pointer-events: none; }
.wipe[hidden] { display: none; }
.wipe__label { font-family: var(--font-en); font-weight: 700; font-size: clamp(48px, 12vw, 180px); letter-spacing: .02em; }

/* ===== 演出①（E04）：メインビジュアル ===== */
.hero { overflow: hidden; min-height: 100svh; padding: 100px 20px 40px; display: flex; flex-direction: column; background: var(--c-white); }
.hero__meta { display: flex; justify-content: space-between; font-family: var(--font-en); font-weight: 500; font-size: 15px; color: var(--c-sub); border-bottom: 1px solid var(--c-black); padding-bottom: 12px; }
.hero__en { margin: 40px 0 0; font-family: var(--font-en); font-weight: 700; font-size: clamp(40px, 11vw, 176px); line-height: .98; letter-spacing: -.03em; color: var(--c-black); }
.hero__line { display: block; white-space: nowrap; }
@media (min-width: 768px) { .hero__line + .hero__line { padding-left: 8vw; } }
.hero__foot { display: grid; gap: 16px; margin-top: auto; padding-top: 48px; }
.hero__ja { font-weight: 900; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.5; color: var(--c-black); }
.hero__lead { max-width: 34em; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--c-black); }
.hero__stats li { padding: 14px 8px 0 0; }
.hero__stats b { display: block; font-family: var(--font-en); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; color: var(--c-black); }
.hero__stats span { font-size: 15px; color: var(--c-sub); }
@media (min-width: 1080px) {
  .hero { padding: 120px 48px 48px; }
  .hero__foot { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
}

/* ===== 区切りの共通 ===== */
.sec { padding: 96px 20px; }
.sec-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 48px; outline: none; }
.sec-title__en { font-family: var(--font-en); font-weight: 700; font-size: clamp(56px, 10vw, 140px); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.sec-title__ja { font-weight: 700; font-size: 17px; }
.sec-note { margin-top: 24px; font-size: 15px; }
@media (min-width: 1080px) { .sec { padding: 160px 48px; } }

/* ===== 演出②（G03）：実績（黒） ===== */
.works { background: var(--c-black); color: var(--c-on-dark); position: relative; }
.works .sec-title { color: #fff; }
.works .sec-note { color: #d4d4d4; }
.works__list { border-top: 1px solid rgba(255, 255, 255, .3); }
.row { display: grid; grid-template-columns: 2.4em 1fr; grid-template-areas: "thumb thumb" "no name" ". cat"; gap: 0 12px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .3); text-decoration: none; color: var(--c-on-dark); transition: opacity .3s, padding .4s cubic-bezier(.2, .7, .2, 1); }
.row__thumb { grid-area: thumb; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 16px; filter: grayscale(.4); }
.row__no { grid-area: no; font-family: var(--font-en); font-weight: 500; font-size: 15px; padding-top: 6px; }
.row__name { grid-area: name; font-weight: 700; font-size: clamp(22px, 3vw, 40px); line-height: 1.4; color: #fff; }
.row__cat { grid-area: cat; font-size: 15px; }
.row__year { display: none; }
@media (min-width: 768px) {
  .row { grid-template-columns: 3em 1fr 14em 4em; grid-template-areas: "no name cat year"; align-items: center; padding: 28px 0; }
  .row__thumb { display: none; }
  .row__year { display: block; grid-area: year; text-align: right; font-family: var(--font-en); font-size: 15px; }
}
/* ホバーのある端末（JSが has-hover を付ける）：写真は行の上に浮かべ、ほかの行は少し引っ込める */
.has-hover .works__list:hover .row, .has-hover .works__list:focus-within .row { opacity: .4; }
.has-hover .works__list .row:hover, .has-hover .works__list .row:focus-visible { opacity: 1; padding-left: 20px; }
@media (max-width: 767px) { .row__thumb { display: block; } }
.works__float { display: none; }
.has-hover .works__float { display: block; position: fixed; left: 0; top: 0; z-index: 30; width: 360px; aspect-ratio: 3 / 2; pointer-events: none; overflow: hidden; opacity: 0; transform: translate3d(-999px, -999px, 0); transition: opacity .25s; }
.has-hover .works__float.is-on { opacity: 1; }
.works__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .3s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.works__float img.is-on { opacity: 1; transform: none; }

/* ===== できること（灰） ===== */
.service { background: var(--c-gray); color: var(--c-text); }
.service .sec-title { color: var(--c-black); }
.service__list { display: grid; gap: 0; border-top: 1px solid var(--c-black); }
.service__list li { padding: 28px 0; border-bottom: 1px solid var(--c-black); }
.service__en { font-family: var(--font-en); font-weight: 700; font-size: 32px; line-height: 1.2; color: var(--c-black); white-space: nowrap; }
.service__list h3 { font-weight: 700; font-size: 18px; color: var(--c-black); margin: 8px 0; }
@media (min-width: 900px) {
  .service__list { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .service__list li { border-bottom: 0; border-left: 1px solid var(--c-black); padding: 8px 28px 8px; }
  .service__list li:first-child { border-left: 0; padding-left: 0; }
}

/* ===== スタジオ（黒灰） ===== */
.studio { background: var(--c-graphite); color: var(--c-on-dark); }
.studio .sec-title { color: #fff; }
.studio__inner { display: grid; gap: 32px; }
.studio__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.studio__lead { font-weight: 700; font-size: 19px; line-height: 1.8; color: #fff; }
.studio__team { margin-top: 24px; }
.studio__team div { display: grid; grid-template-columns: 7em 1fr; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.studio__team dt { font-family: var(--font-en); font-weight: 700; color: #fff; }
@media (min-width: 1080px) { .studio__inner { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; } }

/* ===== ご相談（白） ===== */
.contact { background: var(--c-white); }
.contact .sec-title { color: var(--c-black); }
.contact__big { font-family: var(--font-en); font-weight: 700; font-size: clamp(56px, 14vw, 220px); line-height: 1; letter-spacing: -.04em; color: var(--c-black); white-space: nowrap; }
.contact__text { max-width: 36em; margin: 32px 0; }

/* ===== フッター ===== */
.footer { background: var(--c-black); color: var(--c-on-dark); padding: 56px 20px 28px; font-size: 15px; }
.footer__logo { font-family: var(--font-en); font-weight: 700; font-size: 32px; letter-spacing: .12em; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 16px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { margin-top: 24px; text-align: center; }
@media (min-width: 1080px) { .footer { padding: 72px 48px 32px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
