@charset "utf-8";
/* =========================================================================
   灰桜（はいざくら）— 架空のネイルサロン
   『サイトのミカタ』制作デモ / 生成りの紙に、灰桜と金の細線
   ---------------------------------------------------------------------
   色は 生成り・灰桜・金 の3値＋墨文字。面は紙の濃淡だけで作り、
   囲みは「外殻＋内核」の二重枠（.frame）で厚みを出す。
   ビジュアルは実写（assets/*.webp）。トーン宣言と出所は ASSETS.md。
   写真の補正は --grade の ±5% のみ。全面ヴェールは使わず、
   スクリムは必ず「文字が乗る側」だけに方向を持たせる。
   ========================================================================= */

/* ---------- 1. reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; overflow-x: clip; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
h1, h2, h3, h4, h5, h6, b, strong, th { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 1px solid var(--kin); outline-offset: 3px; }

/* ---------- 2. tokens ---------- */
:root {
  /* 紙（生成り）— 3段 */
  --kinu:     #f7f3ec;
  --kinu-2:   #f0e8dc;
  --kinu-3:   #e7dbc9;
  /* 灰桜 */
  --hai:      #e4ccc8;
  --hai-pale: #f3e5e2;
  --hai-ink:  #a4796f;
  /* 金 */
  --kin:      #a98551;
  --kin-2:    #c9ac7c;
  /* 墨（黒でなく暖かい焦茶） */
  --ink:      #2e2723;
  --ink-2:    #6b6058;
  --ink-3:    #94887c;

  --line:      rgba(169, 133, 81, .26);
  --line-soft: rgba(169, 133, 81, .14);

  --f-min: "Shippori Mincho", "Yu Mincho", YuMincho, "Hiragino Mincho ProN",
           "Hiragino Mincho Pro", "Noto Serif JP", serif;
  --f-got: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
           "Yu Gothic Medium", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
  --f-lat: "Fraunces", "Shippori Mincho", Georgia, serif;

  --pad: clamp(20px, 5vw, 56px);
  --gap-sec: clamp(108px, 13vw, 190px);
  --shell: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-2: cubic-bezier(.32, .72, 0, 1);

  /* 写真の補正。±5%だけ。「加工した」と気づかれたら負け */
  --grade: saturate(.97) contrast(1.02) brightness(1.03);
}

/* ---------- 3. base ---------- */
body {
  font-family: var(--f-min);
  font-size: 15.5px;
  line-height: 2.02;
  color: var(--ink);
  background: var(--kinu);
  letter-spacing: .035em;
  font-feature-settings: "palt" 1;
  font-synthesis: none;
  word-break: auto-phrase;
  line-break: strict;
}
@media (min-width: 768px) { body { font-size: 16px; } }

/* ---------- 4. 環境レイヤー（紙の濃淡＋粒子） ---------- */
.amb,
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.amb {
  inset: -14vmax;
  background:
    radial-gradient(46vmax 34vmax at 10% 4%,  rgba(228, 204, 200, .46), transparent 62%),
    radial-gradient(38vmax 30vmax at 92% 26%, rgba(201, 172, 124, .17), transparent 64%),
    radial-gradient(50vmax 36vmax at 70% 98%, rgba(228, 204, 200, .34), transparent 66%);
  animation: drift 52s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2.2%, 1.6%, 0) scale(1.07); }
}
.grain {
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.page { position: relative; z-index: 1; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--ink); color: var(--kinu); padding: 12px 20px; border-radius: 999px;
}
.skip:focus { left: 14px; top: 14px; }
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 5. 型（タイポ） ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: calc(var(--gap-sec) / 2); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-got);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--kin);
  line-height: 1;
  padding: 7px 14px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
}
.eyebrow::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--hai-ink); flex: none;
}

.display, .h2, .h3 { font-family: var(--f-min); font-weight: 500; letter-spacing: .02em; }
.display {
  font-size: clamp(30px, 5.4vw, 50px);
  line-height: 1.42;
}
.h2 {
  font-size: clamp(23px, 3.3vw, 35px);
  line-height: 1.52;
}
.h3 { font-size: clamp(17px, 2vw, 20px); line-height: 1.66; }
.lat { font-family: var(--f-lat); font-weight: 400; letter-spacing: .01em; }

.lead { font-size: clamp(15px, 1.55vw, 17.5px); line-height: 2.14; color: var(--ink-2); }
.small { font-size: 14px; line-height: 2.02; color: var(--ink-2); }
.tiny {
  font-family: var(--f-got);
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); line-height: 1.7;
}
.stack { display: grid; gap: 26px; align-content: start; justify-items: start; }
.stack--sm { gap: 17px; }
.mt-l { margin-top: clamp(38px, 5vw, 62px); }

.sechead { display: grid; gap: 26px; margin-bottom: clamp(44px, 5.4vw, 76px); }
@media (min-width: 900px) {
  .sechead--split {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .82fr);
    gap: clamp(36px, 5vw, 78px);
    align-items: end;
  }
}

/* 行で立ち上がる見出し（改行は必ず文節の切れ目で手で入れる） */
.ln { display: block; }
.js .ln { overflow: hidden; }
.js .ln > i { display: block; font-style: inherit; transform: translateY(104%); }

.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal-line { transform: scaleX(0); transform-origin: left center; }
.js .cycle__fill { transform: scaleX(0); transform-origin: left center; }

/* 冒頭だけは JS を待たずに CSS で立ち上げる（CDNが遅くても本文が読める） */
@keyframes heroLn { from { transform: translateY(104%); } to { transform: translateY(0); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js [data-hero] .ln > i { animation: heroLn .94s var(--ease) both; }
.js [data-hero] .ln:nth-child(1) > i { animation-delay: .06s; }
.js [data-hero] .ln:nth-child(2) > i { animation-delay: .15s; }
.js [data-hero] .ln:nth-child(3) > i { animation-delay: .24s; }
.js [data-hero] .reveal { animation: heroRise .82s var(--ease) both; }
.js [data-hero] .reveal:nth-child(1) { animation-delay: .18s; }
.js [data-hero] .reveal:nth-child(2) { animation-delay: .26s; }
.js [data-hero] .reveal:nth-child(3) { animation-delay: .34s; }
.js [data-hero] .reveal:nth-child(4) { animation-delay: .42s; }
.js [data-hero] .reveal:nth-child(5) { animation-delay: .50s; }
.js [data-hero] .reveal:nth-child(n + 6) { animation-delay: .58s; }

/* ---------- 6. ボタン（島の中の島） ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--f-got); font-size: 13px; letter-spacing: .1em;
  padding: 11px 11px 11px 26px;
  border-radius: 999px;
  background: var(--ink); color: var(--kinu);
  border: 1px solid var(--ink);
  transition: background .6s var(--ease-2), color .6s var(--ease-2),
              transform .5s var(--ease-2), border-color .6s var(--ease-2);
  will-change: transform;
}
.btn__ic {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(247, 243, 236, .16);
  transition: transform .6s var(--ease-2), background .6s var(--ease-2);
}
.btn__ic svg { width: 15px; height: 15px; }
.btn__ic svg line, .btn__ic svg path { stroke: currentColor; stroke-width: 1.1; fill: none; }
.btn:hover { background: var(--kin); border-color: var(--kin); }
.btn:hover .btn__ic { transform: translate(3px, -1px) scale(1.06); background: rgba(247, 243, 236, .24); }
.btn:active { transform: scale(.985); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost .btn__ic { background: rgba(169, 133, 81, .1); }
.btn--ghost:hover { background: var(--kinu-2); color: var(--ink); border-color: var(--kin-2); }
.btn--ghost:hover .btn__ic { background: rgba(169, 133, 81, .16); }

.tlink {
  display: inline-flex; align-items: center; gap: 13px;
  font-family: var(--f-got); font-size: 13px; letter-spacing: .09em;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  transition: border-color .5s var(--ease-2), color .5s var(--ease-2);
}
.tlink svg { width: 22px; height: 6px; overflow: visible; transition: transform .55s var(--ease-2); }
.tlink svg line, .tlink svg path { stroke: currentColor; stroke-width: 1; fill: none; }
.tlink:hover { color: var(--kin); border-color: var(--kin-2); }
.tlink:hover svg { transform: translateX(5px); }

/* ---------- 7. 二重枠（外殻＋内核）と、つやのひとすじ ---------- */
.frame {
  position: relative;
  padding: 7px;
  border-radius: 26px;
  background: linear-gradient(150deg, var(--kinu-2), rgba(247, 243, 236, .55));
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px -34px rgba(87, 66, 44, .34);
}
.frame__in {
  position: relative;
  border-radius: 19px;              /* 26 - 7 = 同心 */
  overflow: hidden;
  background: var(--kinu-3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5);
}
.frame__in img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }

/* トップコートのつや。写真の上を一度だけ斜めに通る */
.gloss::after {
  content: "";
  position: absolute; inset: -20% -60%;
  background: linear-gradient(104deg,
    transparent 38%, rgba(255, 255, 255, .34) 48%,
    rgba(255, 255, 255, .5) 51%, transparent 62%);
  transform: translateX(-62%);
  pointer-events: none;
  opacity: 0;
}
.js .gloss.is-lit::after { animation: sweep 1.5s var(--ease) .25s both; }
.gloss:hover::after { animation: sweep 1.15s var(--ease) both; }
@keyframes sweep {
  0%   { transform: translateX(-62%); opacity: 0; }
  22%  { opacity: 1; }
  100% { transform: translateX(62%); opacity: 0; }
}

/* 写真：下からマスクが開く。JS が無くても開いた状態が既定 */
.ph { position: relative; overflow: hidden; background: var(--kinu-3); }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.js .phr { clip-path: inset(0 0 100% 0); }
.js .phr > img,
.js .phr .frame__in > img { transform: scale(1.08); }

.ph--sq { aspect-ratio: 1 / 1; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--cine { aspect-ratio: 16 / 7; }

.phcap {
  margin-top: 13px;
  font-family: var(--f-got); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---------- 8. ヘッダー（浮かぶ島） ---------- */
.head {
  position: sticky; top: 0; z-index: 40;
  padding: 18px var(--pad) 0;
  pointer-events: none;
}
.head__in {
  pointer-events: auto;
  max-width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; gap: 20px;
  padding: 9px 9px 9px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .7s var(--ease-2), border-color .7s var(--ease-2),
              box-shadow .7s var(--ease-2);
}
.head.is-stuck .head__in {
  background: rgba(247, 243, 236, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  border-color: var(--line-soft);
  box-shadow: 0 18px 40px -30px rgba(87, 66, 44, .5);
}
.mark { display: flex; align-items: baseline; gap: 11px; flex: none; }
.mark__lat {
  font-family: var(--f-lat); font-size: 19px; letter-spacing: .12em; color: var(--ink);
}
.mark__jp { font-size: 11px; letter-spacing: .22em; color: var(--ink-3); }

.nav { display: none; margin-inline-start: auto; gap: 30px; }
.nav a {
  font-family: var(--f-got); font-size: 12.5px; letter-spacing: .09em; color: var(--ink-2);
  position: relative; padding-bottom: 3px;
  transition: color .5s var(--ease-2);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--kin-2); transform: scaleX(0); transform-origin: right center;
  transition: transform .6s var(--ease-2);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }
.nav a[aria-current="page"] { color: var(--ink); }
.head__cta { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .head__cta { display: inline-flex; }
}

.burger {
  margin-inline-start: auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-content: center; gap: 6px;
  background: rgba(255, 255, 255, .4);
}
.burger span {
  display: block; width: 17px; height: 1px; background: var(--ink);
  transition: transform .6s var(--ease-2), opacity .3s var(--ease-2);
}
html.is-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
html.is-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }

/* ---------- 9. 開いたメニュー ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 39;
  background: rgba(247, 243, 236, .93);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  padding: calc(var(--pad) + 78px) var(--pad) var(--pad);
  display: grid; align-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease-2), visibility .6s var(--ease-2);
}
html.is-open .drawer { opacity: 1; visibility: visible; }
html.is-open, html.is-open body { overflow: hidden; }
.drawer ol { display: grid; gap: 6px; }
.drawer li { overflow: hidden; }
.drawer a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 21px;
  transform: translateY(46px); opacity: 0;
  transition: transform .8s var(--ease), opacity .8s var(--ease);
}
.drawer a span { font-family: var(--f-got); font-size: 10px; letter-spacing: .22em; color: var(--ink-3); }
html.is-open .drawer a { transform: none; opacity: 1; }
html.is-open .drawer li:nth-child(1) a { transition-delay: .1s; }
html.is-open .drawer li:nth-child(2) a { transition-delay: .16s; }
html.is-open .drawer li:nth-child(3) a { transition-delay: .22s; }
html.is-open .drawer li:nth-child(4) a { transition-delay: .28s; }
.drawer__foot { display: grid; gap: 3px; padding-top: 30px; }

/* ---------- 10. ヒーロー（紙の左に文字／右に額装した写真） ---------- */
.hero { padding-block: clamp(46px, 7vw, 92px) clamp(70px, 9vw, 128px); position: relative; }
.hero__in { display: grid; gap: clamp(46px, 6vw, 74px); }
@media (min-width: 900px) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr) clamp(310px, 34vw, 452px);
    gap: clamp(42px, 5.4vw, 86px);
    align-items: center;
  }
}
.hero__body { display: grid; gap: 28px; justify-items: start; max-width: 620px; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 13px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-family: var(--f-got); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
  padding-top: 6px;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta span + span::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--kin-2);
}

/* 額装した縦の一枚＋左下に重ねる小さな一枚 */
.hero__art { position: relative; }
.hero__art .frame__in { aspect-ratio: 4 / 5; }
.hero__chip {
  position: absolute; left: -34px; bottom: -38px; width: 40%; max-width: 168px;
  display: none;
}
.hero__chip .frame { padding: 5px; border-radius: 19px; }
.hero__chip .frame__in { border-radius: 14px; aspect-ratio: 1 / 1; }
@media (min-width: 760px) { .hero__chip { display: block; } }

.hero__cue {
  display: none;
  position: absolute; left: var(--pad); bottom: 26px;
  align-items: center; gap: 13px;
  font-family: var(--f-got); font-size: 9.5px; letter-spacing: .28em; color: var(--ink-3);
}
.hero__cue-line { display: block; width: 46px; height: 1px; background: var(--line); overflow: hidden; }
.hero__cue-line::after {
  content: ""; display: block; width: 16px; height: 1px; background: var(--kin);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateX(-16px); } 60%, 100% { transform: translateX(46px); } }
@media (min-width: 900px) { .hero__cue { display: flex; } }

/* ---------- 11. 帯（引きの一枚） ---------- */
.band { position: relative; }
.band .ph { border-radius: 0; }
.band__cap {
  position: absolute; left: var(--pad); bottom: 20px; z-index: 2;
  font-family: var(--f-got); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 3px rgba(46, 39, 35, .92), 0 1px 20px rgba(46, 39, 35, .6);
}
/* スクリムは「文字が乗る側＝左下」だけに方向を持たせる。全面ヴェールにはしない */
.band::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background:
    linear-gradient(to top, rgba(46, 39, 35, .5), rgba(46, 39, 35, 0) 100%),
    linear-gradient(105deg, rgba(46, 39, 35, .34) 0%, rgba(46, 39, 35, 0) 46%);
  pointer-events: none;
}

/* ---------- 12. 色見本（伝統色のチップ） ---------- */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
@media (min-width: 560px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chips--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .chips--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .chips--wide { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.chip { display: grid; gap: 11px; }
.chip__c {
  aspect-ratio: 1 / 1; border-radius: 50%;
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .7), 0 12px 26px -18px rgba(87, 66, 44, .5);
  transition: transform .7s var(--ease-2);
}
.chip:hover .chip__c { transform: translateY(-4px) scale(1.03); }
.chip__n { font-size: 14.5px; line-height: 1.5; }
.chip__r { font-family: var(--f-got); font-size: 10px; letter-spacing: .16em; color: var(--ink-3); }

/* ---------- 13. 爪の形（情報図） ---------- */
.shapes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
@media (min-width: 620px) { .shapes { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.shape { display: grid; gap: 13px; justify-items: center; text-align: center; }
.shape svg { width: 100%; max-width: 88px; height: auto; }
.shape svg path { fill: var(--hai-pale); stroke: var(--kin); stroke-width: 1.1; }
.shape__n { font-size: 14px; }
.shape__d { font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }

/* ---------- 14. 持ちの周期 ---------- */
.cycle { display: grid; gap: 22px; }
.cycle__rail {
  position: relative; height: 3px; border-radius: 999px; background: var(--kinu-3);
  overflow: hidden;
}
.cycle__fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--hai), var(--kin-2));
  border-radius: 999px;
}
.cycle__weeks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
@media (min-width: 720px) { .cycle__weeks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.week { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.week__w { font-family: var(--f-lat); font-size: 26px; color: var(--kin); line-height: 1; }
.week__t { font-size: 14.5px; }
.week__d { font-size: 12.5px; line-height: 1.86; color: var(--ink-2); }

/* ---------- 15. 料金の行 ---------- */
.prices { border-top: 1px solid var(--line); }
.prow {
  display: grid; gap: 8px 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 760px) {
  .prow {
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr) minmax(0, 176px);
    align-items: start;
  }
}
.prow__h { display: grid; gap: 5px; }
.prow__n { font-size: 17px; }
.prow__l { font-family: var(--f-got); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.prow__d { font-size: 13.5px; line-height: 1.94; color: var(--ink-2); }
.prow__p { display: grid; gap: 3px; }
@media (min-width: 760px) { .prow__p { justify-items: end; text-align: right; } }
.prow__y { font-family: var(--f-lat); font-size: 22px; color: var(--ink); line-height: 1.2; }
.prow__m { font-family: var(--f-got); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); }
.pnotes { display: grid; gap: 9px; margin-top: 30px; }
.pnotes li { font-size: 12.5px; line-height: 1.94; color: var(--ink-2); padding-left: 17px; position: relative; }
.pnotes li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 1px; background: var(--kin-2);
}

/* ---------- 16. 作品（不揃いのベント） ----------
   スマホは1列＝縦4:5で揃える。760px 以上は「列の幅」と「行の数」で不揃いを作り、
   高さは行のマス目で揃える（＝写真の下端とキャプションが必ず一直線に並ぶ）。 */
.bento { display: grid; gap: 15px; }
.work { display: grid; gap: 13px; }
.work .frame { height: 100%; }
.work .frame__in { aspect-ratio: 4 / 5; }
.work__m { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.work__n { font-size: 14.5px; }
.work__c { font-family: var(--f-got); font-size: 10px; letter-spacing: .16em; color: var(--ink-3); flex: none; }

@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: clamp(214px, 22.5vw, 300px);
  }
  .work { grid-template-rows: minmax(0, 1fr) auto; }
  .work .frame__in { height: 100%; aspect-ratio: auto; }
  .work--a { grid-column: span 2; grid-row: span 2; }
  .work--b { grid-column: span 4; }
  .work--c { grid-column: span 2; }
  .work--d { grid-column: span 2; }
  .work--e { grid-column: span 3; }
  .work--f { grid-column: span 3; }
}

/* 写真でなく言葉を置くマス（ギャラリーの続きへ誘導する） */
.note {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(150deg, var(--kinu-2), rgba(247, 243, 236, .5));
  padding: clamp(24px, 3vw, 40px);
  display: grid; gap: 15px; align-content: center; justify-items: start;
}
.note .h3 { line-height: 1.72; }

/* ---------- 17. 重なる紙（店のこと） ---------- */
.overlap { display: grid; gap: 30px; }
@media (min-width: 900px) {
  .overlap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0; }
  .overlap__ph { grid-column: 1; grid-row: 1; }
  .overlap__card {
    grid-column: 2; grid-row: 1;
    margin-inline-start: -13%;
    z-index: 2;
  }
  .overlap--rev .overlap__ph { grid-column: 2; }
  .overlap--rev .overlap__card { grid-column: 1; margin-inline: 0 -13%; }
}
.overlap__card {
  background: rgba(247, 243, 236, .96);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 30px 70px -46px rgba(87, 66, 44, .6);
  display: grid; gap: 20px; justify-items: start;
}
.overlap__ph .frame__in { aspect-ratio: 3 / 4; }

/* ---------- 18. 数字 ---------- */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
@media (min-width: 760px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figure { display: grid; gap: 9px; padding-top: 22px; border-top: 1px solid var(--line); }
.figure b { font-family: var(--f-lat); font-size: clamp(38px, 5vw, 54px); line-height: 1; color: var(--ink); }
.figure b i { font-family: var(--f-min); font-size: 15px; font-style: normal; margin-left: 7px; color: var(--ink-2); }
.figure span { font-size: 13px; line-height: 1.8; color: var(--ink-2); }

/* ---------- 19. 問いと答え ---------- */
.qa { border-top: 1px solid var(--line); }
.qa__item {
  display: grid; gap: 10px 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 760px) { .qa__item { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); } }
.qa__q { font-size: 16px; line-height: 1.76; display: flex; gap: 13px; }
.qa__q::before {
  content: "Q"; font-family: var(--f-lat); font-size: 15px; color: var(--kin); flex: none; line-height: 1.86;
}
.qa__a { font-size: 14px; line-height: 2.02; color: var(--ink-2); }

/* ---------- 20. 情報の行 ---------- */
.info { display: grid; gap: 0; border-top: 1px solid var(--line); width: 100%; }
.info__row { display: grid; gap: 4px 24px; padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 560px) { .info__row { grid-template-columns: 108px minmax(0, 1fr); align-items: baseline; } }
.info__k { font-family: var(--f-got); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.info__v { font-size: 14.5px; line-height: 1.92; }
.info__v small { display: block; font-size: 12px; color: var(--ink-3); }

/* ---------- 21. 手順 ---------- */
.steps { display: grid; gap: 2px; counter-reset: st; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; } }
.step { display: grid; gap: 11px; padding-top: 22px; border-top: 1px solid var(--line); counter-increment: st; }
.step::before {
  content: "0" counter(st);
  font-family: var(--f-lat); font-size: 15px; letter-spacing: .1em; color: var(--kin);
}
.step__t { font-size: 15.5px; }
.step__d { font-size: 13px; line-height: 1.92; color: var(--ink-2); }

/* ---------- 22. 二枚組（写真＋文字） ---------- */
.duo { display: grid; gap: clamp(32px, 4.6vw, 62px); }
@media (min-width: 900px) {
  .duo { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); align-items: center; }
  .duo--rev .duo__ph { order: 2; }
}
.duo__text { display: grid; gap: 22px; justify-items: start; }

/* ---------- 23. 略図（情報図） ---------- */
.map { width: 100%; height: auto; }
.map .bg { fill: var(--kinu-2); }
.map .rd { stroke: var(--kinu-3); stroke-width: 9; fill: none; stroke-linecap: round; }
.map .rl { stroke: var(--kin-2); stroke-width: 1.4; fill: none; stroke-dasharray: 7 5; }
.map .bd { fill: #fff; stroke: var(--line); stroke-width: 1; }
.map .me { fill: var(--hai); stroke: var(--kin); stroke-width: 1.2; }
.map .tx { font-family: var(--f-got); font-size: 11px; fill: var(--ink-2); letter-spacing: .06em; }
.map .tx--m { fill: var(--ink); }

/* ---------- 24. 最後の誘い ---------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(84px, 11vw, 148px); }
.cta__ph { position: absolute; inset: 0; z-index: 0; }
.cta__ph img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(247, 243, 236, .975) 0%,
              rgba(247, 243, 236, .93) 42%, rgba(247, 243, 236, 0) 96%);
}
@media (max-width: 700px) {
  .cta::before {
    background: linear-gradient(to top, rgba(247, 243, 236, .975) 0%,
                rgba(247, 243, 236, .94) 54%, rgba(247, 243, 236, .12) 100%);
  }
}
.cta__in { position: relative; z-index: 2; display: grid; gap: 32px; justify-items: start; }
.cta__in .h2, .cta__in .small { text-shadow: 0 1px 22px rgba(247, 243, 236, .85); }

/* ---------- 25. ページ頭（下層） ---------- */
/* 縦組みになるスマホは、写真が出る帯を先に確保してから文字を置く
   （器が低いと、スクリムだけが見えて写真が消える） */
.phead { position: relative; overflow: hidden; padding-block: clamp(150px, 17vw, 200px) clamp(56px, 7vw, 92px); }
.phead__ph { position: absolute; inset: 0; z-index: 0; }
.phead__ph img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
/* スクリムは文字が乗る左側だけ。右 1/4 は素の写真のまま見せる（薄ヴェールを敷かない） */
.phead::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(247, 243, 236, .985) 0%,
              rgba(247, 243, 236, .955) 58%, rgba(247, 243, 236, .24) 78%,
              rgba(247, 243, 236, 0) 92%);
}
@media (max-width: 700px) {
  .phead::before {
    background: linear-gradient(to top, rgba(247, 243, 236, .985) 0%,
                rgba(247, 243, 236, .955) 54%, rgba(247, 243, 236, .26) 76%,
                rgba(247, 243, 236, 0) 90%);
  }
}
.phead__in { position: relative; z-index: 2; display: grid; gap: 26px; justify-items: start; max-width: 660px; }
.phead__in .display, .phead__in .lead { text-shadow: 0 1px 22px rgba(247, 243, 236, .82); }
.crumb {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--f-got); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
}
.crumb a { transition: color .4s var(--ease-2); }
.crumb a:hover { color: var(--kin); }

/* ---------- 26. 引用 ---------- */
.quote { display: grid; gap: 26px; justify-items: start; max-width: 760px; }
.quote blockquote { font-family: var(--f-min); font-size: clamp(19px, 2.5vw, 27px); line-height: 1.78; }
.quote figcaption { display: grid; gap: 5px; }
.quote figcaption b { font-size: 14.5px; }
.rule { height: 1px; background: var(--line); width: 100%; }

/* ---------- 27. 足元 ---------- */
.foot { border-top: 1px solid var(--line); padding-block: clamp(52px, 6vw, 82px) 34px; position: relative; z-index: 1; }
.foot__in { display: grid; gap: 44px; }
.foot__top { display: grid; gap: 36px; }
@media (min-width: 820px) {
  .foot__top { grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr) minmax(0, .68fr); gap: 40px; }
}
.foot dl { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 9px 16px; align-items: baseline; }
.foot dt { font-family: var(--f-got); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.foot dd { font-size: 13.5px; line-height: 1.8; }
.foot__nav { display: grid; gap: 11px; align-content: start; }
.foot__nav a { font-size: 13.5px; transition: color .4s var(--ease-2); }
.foot__nav a:hover { color: var(--kin); }
.foot__bar { display: grid; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.foot__note { font-size: 11.5px; line-height: 1.94; color: var(--ink-3); }
.foot__copy { font-family: var(--f-got); font-size: 10px; letter-spacing: .18em; color: var(--ink-3); }

/* ---------- 28. 動きを控える設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .amb { animation: none !important; transform: none !important; }
  .js .ln { overflow: visible; }
  .js .ln > i { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-line { transform: none; }
  .js .cycle__fill { transform: none; }
  .js [data-hero] .ln > i,
  .js [data-hero] .reveal { animation: none !important; }
  .js .phr { clip-path: none; }
  .js .phr > img,
  .js .phr .frame__in > img { transform: none; }
  .gloss::after { display: none; }
  .hero__cue-line::after { animation: none; transform: translateX(46px); }
}
html.reduced .amb { animation: none !important; transform: none !important; }
html.reduced .ln { overflow: visible; }
html.reduced .ln > i { transform: none; }
html.reduced .reveal { opacity: 1; transform: none; }
html.reduced .reveal-line { transform: none; }
html.reduced .cycle__fill { transform: none; }
html.reduced [data-hero] .ln > i,
html.reduced [data-hero] .reveal { animation: none !important; }
html.reduced .phr { clip-path: none; }
html.reduced .phr > img,
html.reduced .phr .frame__in > img { transform: none; }
html.reduced .gloss::after { display: none; }
html.reduced .hero__cue-line::after { animation: none; transform: translateX(46px); }
