/* 有限会社CSプランニング
   コーポレートのページとして始まり、05 代表紹介だけが一冊の白い本 YOHAKU になる
   書体は2つだけ：日本語は Noto Serif JP、英字と数字は EB Garamond（本の表紙の右下の印だけ Inter Tight）
   本のページの大きさ・余白はページの寸法（design px）で決め、本ごと画面に合わせて拡大する */

:root {
  --table: #edece8; /* 本を置いた机。最後の海の空と同じ色（main.js の SKY） */
  --paper: #fbfaf6;
  --jacket: #fdfdfb;
  --end: #e7e5df; /* 見返し */
  --night: #131414; /* 廣濱語録の黒い紙 */
  --ink: #1e1e1c;
  --ink-2: #565550;
  --ink-3: #8e8c86;
  --line: #dedcd5;
  --night-ink: #e8e6e0;
  --night-ink-2: #8d8b85;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --latin: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper) url(../images/paper.png) 0 0 / 256px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
/* 画面の端まで敷く地（.sec--tone）が横にはみ出してスクロールを生まないよう、main の外を切る（sticky は効いたまま） */
main { overflow-x: clip; }
/* 画面全体にうすいフィルムの粒子 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background: url(../images/grain.png) 0 0 / 200px;
  opacity: .32;
}
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ink-2); outline-offset: 3px; }

.link {
  display: inline-block;
  padding: 0 0 .3em;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
}
.link:hover { opacity: .55; }

/* ヘッダー：左にロゴ、PC は右にメニューを並べ、狭い画面は Menu で開く */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
  pointer-events: none;
  color: var(--ink);
  transition: opacity .5s;
}
.header > * { pointer-events: auto; }
/* 紙の上を読み進めるあいだは、ヘッダーに紙の地を敷く（本の中と最後の波では敷かない） */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 250, 246, .9);
  box-shadow: 0 1px 0 rgba(40, 34, 26, .06);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.is-solid:not(.in-book):not(.on-hero) .header::before { opacity: 1; background: rgba(var(--hdr-bg, 251, 250, 246), .92); box-shadow: none; }
/* 波の上と灰色の部屋の上：白い文字。灰色の部屋では地も灰色に */
.on-dark .header { color: #fff; }
.logo { font: 500 12px/1 var(--latin); letter-spacing: .26em; text-decoration: none; }
.gnav { display: flex; gap: 2.4em; font-size: 12.5px; letter-spacing: .18em; }
.gnav a { position: relative; padding: 8px 0; text-decoration: none; }
.gnav a::after { content: ''; position: absolute; left: 0; right: .18em; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.gnav a:hover::after { transform: scaleX(1); }
.menu-btn {
  display: none;
  padding: 8px 0;
  border: 0;
  background: none;
  font: italic 400 15px/1 var(--latin);
  letter-spacing: .02em;
  cursor: pointer;
}
@media (max-width: 1039px) {
  .gnav { display: none; }
  .menu-btn { display: block; }
}

/* 目次（ヘッダーから開く） */
.nav {
  position: fixed;
  inset: 0;
  z-index: 35;
  overflow-y: auto;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s, visibility 0s .45s;
}
.nav.is-open { opacity: 1; visibility: visible; transition: opacity .45s; }
.menu-open .header { opacity: 1; }
.menu-open .header > * { pointer-events: auto; }
.nav__in { max-width: 520px; margin: 0 auto; padding: 132px 28px 72px; }
.nav__label { margin-bottom: 30px; font: italic 400 15px/1 var(--latin); color: var(--ink-3); }
.nav .toc { font-size: 16px; }
.nav .toc a::after { content: none; }
.nav .toc li + li { margin-top: 1.3em; }
body.menu-open { overflow: hidden; }

/* 目次：番号・題・点線・ページ */
.toc li + li { margin-top: .95em; }
.toc a { display: flex; align-items: baseline; text-decoration: none; }
.toc i { flex: 0 0 2.4em; font: 400 .92em/1 var(--latin); font-style: normal; color: var(--ink-3); font-variant-numeric: lining-nums; }
.toc span { letter-spacing: .14em; }
.toc small { margin-left: .9em; font: italic 400 .92em/1 var(--latin); letter-spacing: .01em; color: var(--ink-3); }
.toc a::after { content: ''; order: 3; flex: 1 1 auto; min-width: 1.5em; margin: 0 .8em; border-bottom: 1px dotted #b9b7b0; transform: translateY(-.28em); }
.toc b { order: 4; font: 400 1em/1 var(--latin); font-variant-numeric: lining-nums; }
.toc a:hover span { color: var(--ink-2); }

/* ───────── コーポレートのページ ───────── */

/* 最初の画面：荒波が立ち上がり、中央に CS PLANNING。下の端は企業理念の灰色へ溶ける */
:root { --sea-grey: #4a4d4f; } /* 波の手前の色（企業理念とフッターの地） */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--table);
  color: #fff;
}
.hero__sea, .hero__still { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero__still { display: none; }
.hero__still img { display: block; width: 100%; height: 100%; object-fit: cover; }
html:not(.js) .hero__still, .no-sea .hero__still { display: block; }
html:not(.js) .hero__sea, .no-sea .hero__sea { display: none; }
/* 文字の後ろだけ少し沈め、下の端は企業理念の灰色へ溶かす（ほかの境目はくっきり切り替えるが、ここだけはフェード） */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 30% at 50% 52%, rgba(18, 20, 22, .36), rgba(18, 20, 22, 0) 72%),
    linear-gradient(rgba(74, 77, 79, 0) 72%, var(--sea-grey) 100%);
}
.hero__center { position: absolute; left: 0; right: 0; top: 52%; z-index: 1; text-align: center; transform: translateY(-50%); text-shadow: 0 0 24px rgba(0, 0, 0, .36), 0 0 2px rgba(0, 0, 0, .2); }
.hero__title { font: 500 clamp(36px, 5.7vw, 92px)/1 var(--latin); letter-spacing: .3em; padding-left: .3em; } /* 字間の右の空きを左にも足して、見た目の中央に */
.hero__motto { margin-top: 1.3em; font: italic 400 clamp(17px, 1.6vw, 24px)/1.4 var(--latin); letter-spacing: .02em; color: rgba(255, 255, 255, .9); }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font: italic 400 14px/1 var(--latin);
  color: rgba(255, 255, 255, .85);
  transform: translateX(-50%);
}
.hero__scroll::after { content: ''; width: 1px; height: 30px; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); transform-origin: top; animation: hint-line 2.4s ease-in-out infinite; }
/* 開いたとき：波が立ち上がってから、文字が静かに浮かぶ */
.js .hero__title, .js .hero__motto, .js .hero__scroll { opacity: 0; animation: rise 1.8s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero__title { animation-delay: 1.5s; }
.js .hero__motto { animation-delay: 1.9s; }
.js .hero__scroll { animation-delay: 2.8s; animation-name: fade-in-x; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in-x { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero__title, .js .hero__motto, .js .hero__scroll { opacity: 1; animation: none; }
}

/* 各部屋：左に名札（番号・日本語・英字）、右に中身 */
.sec {
  display: grid;
  grid-template-columns: minmax(180px, 24%) minmax(0, 1fr);
  column-gap: 6vw;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(120px, 17vh, 190px) 7vw;
  border-top: 1px solid var(--line);
}
.sec:first-of-type, .hero + .sec { border-top: 0; }
.sec__head { align-self: start; position: sticky; top: 120px; }
.sec__no { font: 400 54px/1 var(--latin); font-variant-numeric: lining-nums; color: #c6c3bb; }
.sec__ja { margin-top: .9em; font: 500 15px/1.4 var(--serif); letter-spacing: .36em; }
.sec__en { margin-top: .5em; font: italic 400 17px/1.3 var(--latin); color: var(--ink-3); }
.sec__body { max-width: 760px; font-size: 16px; line-height: 2; letter-spacing: .05em; }
.sec__body p { text-wrap: pretty; }

/* 灰色の部屋（企業理念）：最初の画面の波の手前の色から続く。地は画面の端まで */
/* 01〜05：下へ進むほど少しずつ明るくなる地。境目はぼかさず、くっきり切り替える。地は画面の端まで */
.sec--tone { position: relative; color: var(--ink); background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); border-top: 0; }
.sec--t1 { --bg: rgb(74, 77, 79); }
.sec--t2 { --bg: rgb(112, 115, 117); }
.sec--t3 { --bg: rgb(156, 158, 158); }
.sec--t4 { --bg: rgb(199, 200, 198); }
.sec--t1, .sec--t2 { --ink: #efeee9; --ink-2: rgba(255, 255, 255, .8); --ink-3: rgba(255, 255, 255, .58); --line: rgba(255, 255, 255, .17); }
.sec--t3 { --ink: #161615; --ink-2: #2d2e2d; --ink-3: #4a4c4b; --line: rgba(20, 20, 18, .2); }
.sec--t4 { --ink: #1a1a19; --ink-2: #393a38; --ink-3: #5a5b59; --line: rgba(20, 20, 18, .15); }
.sec--t1 .sec__no, .sec--t2 .sec__no { color: rgba(255, 255, 255, .32); }
.sec--t3 .sec__no { color: rgba(20, 20, 18, .34); }
.sec--t4 .sec__no { color: rgba(20, 20, 18, .28); }
.sec--tone + .sec { border-top: 0; }

/* 01 企業理念：縦組みで、右から読む */
.concept { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: clamp(48px, 6vw, 96px); padding-top: 6px; }
.concept__title { writing-mode: vertical-rl; font: 500 clamp(26px, 2.4vw, 34px)/2 var(--serif); letter-spacing: .26em; font-feature-settings: 'palt'; }
.concept__text { writing-mode: vertical-rl; font-size: clamp(15px, 1.15vw, 17px); line-height: 2.35; letter-spacing: .14em; }
.concept__text p { margin-block: 0 1.4em; }
/* 行は <br> で決めてあるので、途中で折り返さない。Safari（WebKit）は縦書きの列の長さを短く見積もって「景色に／向き合う。」のように折り返し、
   列が増えて左へはみ出していた（11/7 iPhone）。.sec__body p の text-wrap に負けないよう、2つ重ねて強くする */
.concept .concept__title, .concept .concept__text p { white-space: nowrap; text-wrap: nowrap; }

/* 02 事業内容 */
.lead { font: 500 clamp(24px, 2.2vw, 32px)/1.8 var(--serif); letter-spacing: .1em; font-feature-settings: 'palt'; }
.sec__body .lead--one { white-space: nowrap; text-wrap: nowrap; } /* 02 の見出しは1行で（狭い画面では字を小さくして収める。.sec__body p の text-wrap に負けないよう2つ重ねる） */
.lead__en { margin-top: .9em; font: italic 400 18px/1.4 var(--latin); color: var(--ink-3); }
/* 事業：写真の展示。2列で、右の列を下げて互い違いに（下げた分は下の余白で受ける） */
.biz { --drop: clamp(72px, 9vw, 150px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(64px, 7vw, 104px) clamp(28px, 3.6vw, 56px); margin-top: 88px; padding-bottom: var(--drop); }
.biz li { display: grid; grid-template-columns: 2.6em 1fr; align-content: start; }
.biz li:nth-child(even) { transform: translateY(var(--drop)); }
.biz__ph { grid-column: 1 / -1; margin: 0 0 22px; aspect-ratio: 4 / 5; overflow: hidden; background: rgba(0, 0, 0, .14); }
.biz__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.biz i { font: 400 14px/1.9 var(--latin); font-style: normal; font-variant-numeric: lining-nums; color: var(--ink-3); }
.biz h3 { font: 500 16px/1.75 var(--serif); letter-spacing: .14em; }
.biz .nw { white-space: nowrap; }
.biz p { grid-column: 2; margin-top: .2em; font: italic 400 15px/1.4 var(--latin); color: var(--ink-3); }
.sub { margin: 104px 0 30px; font: italic 400 19px/1.3 var(--latin); color: var(--ink-3); }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.nums li { padding: 1.3em 0 1.9em; border-top: 1px solid var(--line); }
.nums b { display: block; font: 400 clamp(40px, 3.6vw, 54px)/1 var(--latin); font-variant-numeric: lining-nums; white-space: nowrap; }
.nums b small { margin: 0 .22em; font: 400 13px/1 var(--serif); letter-spacing: .1em; }
.nums li > span { display: block; margin-top: 1em; font-size: 13.5px; line-height: 1.85; letter-spacing: .06em; color: var(--ink-2); }
.nums .nw { white-space: nowrap; }

/* 03 年間契約 */
.spec { margin-top: 48px; }
.spec div { display: grid; grid-template-columns: 8em 1fr; align-items: baseline; padding: 1.15em 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font-size: 14px; letter-spacing: .26em; color: var(--ink-3); }
.spec dd { font-size: 15px; letter-spacing: .12em; }
.spec b { margin-right: .22em; font: 400 clamp(36px, 3vw, 46px)/1 var(--latin); font-variant-numeric: lining-nums; }
.spec em { margin: 0 .8em; font-style: normal; color: var(--ink-3); }
.note { margin-top: 40px; font-size: 14px; line-height: 2.1; letter-spacing: .06em; color: var(--ink-2); }

/* 04 会社概要 */
.info { font-size: 15px; line-height: 1.95; letter-spacing: .06em; }
.info div { display: grid; grid-template-columns: 8em 1fr; padding: 1em 0; border-top: 1px solid var(--line); }
.info div:first-child { border-top: 0; padding-top: 0; }
.info div:last-child { border-bottom: 1px solid var(--line); }
.info dt { letter-spacing: .24em; white-space: nowrap; color: var(--ink-3); }
.info .en { font: 400 13.5px/1.6 var(--latin); letter-spacing: .12em; color: var(--ink-3); }
.info .addr { display: block; }
.info .addr + .addr { margin-top: .3em; }
.info a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* 05 代表紹介：机の色の部屋に、本が置かれている */
.rep-sec { background: var(--table); }
.sec__head--rep { position: static; max-width: 1280px; margin: 0 auto; padding: clamp(120px, 17vh, 190px) 7vw 0; }

/* 代表：本の2〜3ページ（写真と名前）を、画面いっぱいの見開きとして置く（左に写真、右に名前。真ん中にのど） */
.rep-spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  margin: clamp(56px, 8vh, 96px) 0 0;
  background: var(--paper) url(../images/paper.png) 0 0 / 256px;
}
/* のど：真ん中へ沈む影と、そのすぐ外のふくらみの光 */
.rep-spread::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 24%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(40, 34, 26, 0) 30%, rgba(40, 34, 26, .14) 49.6%, rgba(40, 34, 26, .2) 50%, rgba(40, 34, 26, .1) 50.4%, rgba(40, 34, 26, 0) 70%),
    linear-gradient(90deg, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, .3) 76%, rgba(255, 255, 255, 0) 92%);
}
.rep-spread__photo { position: relative; margin: 0; overflow: hidden; background: #cfcdc8; }
.rep-spread__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; }
.rep-spread__photo figcaption { position: absolute; left: clamp(28px, 4vw, 56px); bottom: clamp(24px, 4vh, 48px); font: italic 400 15px/1 var(--latin); color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .3); }
.rep-spread__page { display: flex; align-items: center; padding: 8% 11% 8% 14%; }
.rep__pos { font-size: 13px; letter-spacing: .16em; color: var(--ink-2); }
.rep__name { margin: .9em 0 .35em; font: 500 clamp(30px, 2.8vw, 40px)/1.3 var(--serif); letter-spacing: .3em; font-feature-settings: 'palt'; }
.rep__en { font: italic 400 18px/1.4 var(--latin); color: var(--ink-3); }
.rep__role { margin-top: 2.6em; font-size: 14px; letter-spacing: .12em; }
.rep__go { margin-top: .6em; font-size: 14px; line-height: 2; letter-spacing: .08em; color: var(--ink-2); }

/* 廣濱語録：グレージュの部屋。流れる帯と、縦書きの言葉が一文字ずつ浮かび上がる */
.goroku {
  --navy: #cec7bc; /* 薄いグレージュ（名前は以前の紺のまま） */
  --ink: #1d1b18;
  --ink-2: #3c3832;
  --ink-3: #5d574d;
  --line: rgba(29, 27, 24, .16);
  --line-strong: rgba(29, 27, 24, .34);
  --ease: cubic-bezier(.2, .7, .2, 1);
  position: relative;
  background: var(--navy);
  color: var(--ink);
}
.marquee { overflow: hidden; padding-block: clamp(14px, 1.6vw, 22px); white-space: nowrap; border-bottom: 1px solid var(--line); }
.marquee--rev { border-top: 1px solid var(--line); border-bottom: 0; }
.marquee__track { display: inline-flex; align-items: center; gap: clamp(28px, 3.4vw, 56px); padding-right: clamp(28px, 3.4vw, 56px); will-change: transform; }
.marquee__track span { font-size: clamp(12px, 1.1vw, 15px); letter-spacing: .3em; color: var(--ink-3); }
.marquee__track .en-i { font: italic 400 clamp(14px, 1.25vw, 17px)/1 var(--latin); letter-spacing: .04em; }
.marquee__track i { flex: none; width: 24px; height: 1px; background: var(--line-strong); }
.marquee__track.is-running { animation: marquee var(--dur, 90s) linear infinite; }
.marquee--rev .marquee__track.is-running { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.goroku__main { display: flex; flex-direction: column; justify-content: center; min-height: min(100vh, 860px); padding: clamp(48px, 6vw, 88px) 7vw; }
.goroku__label { font-size: 13px; letter-spacing: .36em; line-height: 1; color: var(--ink-2); }
.goroku__label b { margin-left: 1.1em; font: italic 400 16px/1 var(--latin); letter-spacing: .02em; color: var(--ink-3); }
.goroku__list { margin-top: 40px; }
.goroku__list li + li { margin-top: 32px; }
.goroku__t { font-size: 11px; letter-spacing: .3em; color: var(--ink-3); }
.goroku__q { margin-top: 8px; line-height: 2.2; letter-spacing: .16em; }
.js .goroku__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not(.js) .goroku__stage, html:not(.js) .goroku__ctrl { display: none; }
.goroku__stage { display: flex; align-items: center; justify-content: center; height: clamp(420px, 37vw, 540px); margin-top: 24px; }
.goroku__vert { max-height: 100%; writing-mode: vertical-rl; }
.goroku__title, .goroku__by { font-size: 11.5px; letter-spacing: .42em; color: var(--ink-3); opacity: 0; transition: opacity 1.2s var(--ease); }
.goroku__title { margin-block-end: 3.4em; }
.goroku__by { margin-block-start: 3.4em; text-align: end; }
.goroku__quote { font-size: clamp(18px, 1.6vw, 23px); line-height: 2.5; letter-spacing: .28em; font-feature-settings: 'palt'; }
.goroku__quote span { opacity: 0; filter: blur(8px); transition: opacity 1.6s var(--ease), filter 1.6s var(--ease); transition-delay: var(--d, 0s); }
.goroku__stage.is-in .goroku__quote span { opacity: 1; filter: blur(0); }
.goroku__stage.is-in .goroku__title { opacity: 1; }
.goroku__stage.is-in .goroku__by { opacity: 1; transition-delay: 1.4s; }
.goroku__stage.is-out .goroku__quote span,
.goroku__stage.is-out .goroku__title,
.goroku__stage.is-out .goroku__by { opacity: 0; filter: blur(4px); transition-duration: .7s; transition-delay: 0s; }
.goroku__ctrl { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; font: 400 14px/1 var(--latin); letter-spacing: .12em; font-variant-numeric: lining-nums; color: var(--ink-3); }
.goroku__count { display: flex; gap: .6em; line-height: 1; }
.goroku__now { font-weight: 400; color: var(--ink); }
.goroku__bar { position: relative; width: 96px; height: 1px; overflow: hidden; background: var(--line); }
.goroku__bar span { position: absolute; inset: 0; background: var(--ink-2); transform: scaleX(0); transform-origin: left; }
.goroku__btn { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-3); font: 400 16px/1 var(--latin); cursor: pointer; transition: color .4s; }
.goroku__btn:hover { color: var(--ink); }
@media (max-width: 899px) {
  /* スマホ・タブレット縦：写真が上、名前が下。2つ合わせてちょうど1画面 */
  .rep-spread { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; min-height: 600px; margin-top: 48px; }
  .rep-spread::after { content: none; }
  .rep-spread__page { padding: 36px 28px 44px; }
  .rep__name { font-size: 30px; }
  /* 肩書きの並びは1行に。狭い画面では字を小さくし、字間も少し詰めて収める */
  .rep__pos { font-size: min(13px, calc((100vw - 56px) / 19.6)); letter-spacing: .12em; }
  .rep__role { font-size: min(13.5px, calc((100vw - 56px) / 23)); letter-spacing: .06em; }
  .goroku__main { min-height: 0; padding: 40px 24px 28px; }
  .goroku__stage { height: 380px; margin-top: 12px; }
  .goroku__quote { font-size: 16px; letter-spacing: .24em; }
  .goroku__title { margin-block-end: 2.6em; }
  .goroku__by { margin-block-start: 2.6em; }
  .goroku__ctrl { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track.is-running { animation: none; }
  .goroku__quote span, .goroku__title, .goroku__by { opacity: 1 !important; filter: none !important; transition: none !important; }
}

/* 06 お問い合わせ */
/* 06 お問い合わせ：最後の1画面を静かな水面にする。雫が落ちて波紋が広がり、文字は波紋が通ったところから浮かぶ */
/* 高さは「いちばん大きい画面」（lvh）に合わせる。iPhone の Safari は下へ進むとアドレスバーが縮んで画面が伸びるので、
   小さい画面（svh）に合わせると、止めたときに下のフッターのグレーがのぞいていた（11/7） */
#contact { position: relative; min-height: 100vh; min-height: 100lvh; align-content: center; }
#contact .ripple { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; height: 100%; transform: translateX(-50%); pointer-events: none; }
#contact > .sec__head { position: relative; top: auto; z-index: 1; } /* 1画面だけなので、ほかの部屋のような追従はしない */
#contact > .sec__body { position: relative; z-index: 1; }
.ripple-wait #contact > .sec__head, .ripple-wait #contact > .sec__body {
  --rx: 50%; --ry: 50%; --rr: 0px; --rf: 120px; --rb: 2.4px;
  -webkit-mask-image: radial-gradient(circle at var(--rx) var(--ry), #000 calc(var(--rr) - var(--rf)), transparent var(--rr));
  mask-image: radial-gradient(circle at var(--rx) var(--ry), #000 calc(var(--rr) - var(--rf)), transparent var(--rr));
  filter: blur(var(--rb));
}
/* 波紋の前の詩：縦書きの筆文字を、1字ずつ上から書くように出し、まとまりごとにふわっと消す */
#contact .poem, #contact .poem__skip { display: none; }
/* 詩と Skip は、いま見えている画面（dvh）に合わせて置く。詩のあいだはお問い合わせの上端で止めているので、上から 100dvh が見えている範囲 */
.poem-play #contact .poem { position: absolute; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 2; display: block; pointer-events: none; }
.poem__st {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  writing-mode: vertical-rl;
  font: 400 clamp(17px, 1.3vw, 21px)/2.6 'Yuji Syuku', var(--serif);
  letter-spacing: .34em;
  color: var(--ink-2);
  white-space: nowrap;
  visibility: hidden;
}
.poem__st p { margin: 0; }
.poem__st .ch {
  display: inline-block;
  opacity: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 33.3%, transparent 66.6%);
  mask-image: linear-gradient(to bottom, #000 33.3%, transparent 66.6%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 100%; mask-position: 0 100%;
}
.poem__st.is-on { visibility: visible; }
.poem__st.is-on .ch { animation: poem-write .7s cubic-bezier(.3, .1, .3, 1) var(--d, 0s) forwards; }
.poem__st.is-out { animation: poem-out 1.3s ease-in-out forwards; }
.poem__st.is-out.is-fast { animation-duration: .6s; }
@keyframes poem-write {
  0% { opacity: .1; filter: blur(1.6px); -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  60% { opacity: .9; }
  100% { opacity: 1; filter: blur(0); -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes poem-out { to { opacity: 0; filter: blur(4px); transform: translate(-50%, calc(-50% - 12px)); } }
.poem-play #contact .poem__skip {
  position: absolute; right: clamp(20px, 3vw, 44px); z-index: 3;
  top: calc(100vh - 44px - clamp(20px, 4vh, 40px)); top: calc(100dvh - 44px - clamp(20px, 4dvh, 40px));
  display: block; min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; background: none;
  font: italic 400 14px/44px var(--latin); letter-spacing: .06em; color: var(--ink-3); cursor: pointer;
}
.poem-play #contact .poem__skip:hover { color: var(--ink); }
.poem-play #contact { cursor: pointer; } /* 詩のあいだは、どこを押しても飛ばせる */
.ripple-wait #contact > .sec__body { pointer-events: none; } /* 見えていないリンクを押せないように */
.contact__note { font-size: 15px; letter-spacing: .08em; color: var(--ink-2); }
.contact__note .nw { white-space: nowrap; } /* 狭い画面では「ご紹介のある方に｜限らせて…」の句の切れ目で折り返す */
.contact__label { margin-top: 56px; font: italic 400 18px/1 var(--latin); color: var(--ink-3); }
.contact__id { display: inline-block; margin-top: .3em; font: 400 clamp(48px, 5.2vw, 76px)/1.1 var(--latin); text-decoration: none; }
.contact__id:hover { opacity: .55; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1em 2.2em; margin-top: 2em; font-size: 14px; }

@media (max-width: 899px) {
  .sec { grid-template-columns: 1fr; padding: 96px 24px 104px; }
  .sec__head { position: static; display: flex; align-items: baseline; gap: 1em; margin-bottom: 48px; }
  .sec__no { font-size: 30px; }
  .sec__ja { margin: 0; font-size: 14px; }
  .sec__en { margin: 0; font-size: 15px; }
  .sec__head--rep { padding: 96px 24px 0; margin-bottom: 0; }
  .sec__body { font-size: 15px; }
  .sec__body .lead--one { font-size: min(24px, calc((100vw - 48px) / 19.6)); }
  /* 01：題と文を上下2段に分けず、PC と同じく右から横に並べる。幅に収まるよう、字と間を画面の幅に合わせて小さくする（390px 以上は同じ大きさ） */
  .concept { flex-wrap: nowrap; gap: 0 min(40px, calc((100vw - 48px) * .117)); }
  .concept__title, .concept__text { flex: none; }
  .concept__title { font-size: min(22px, calc((100vw - 48px) * .0643)); line-height: 1.9; }
  .concept__text { font-size: min(13.5px, calc((100vw - 48px) * .0395)); line-height: 1.9; }
  .concept__text p { margin-block: 0 1.1em; }
  .concept__text p:last-child { margin-block-end: 0; }
  .sec__body { min-width: 0; }
  .biz { --drop: 48px; gap: 44px 14px; margin-top: 56px; }
  .biz li { grid-template-columns: 1fr; }
  .biz__ph { margin-bottom: 14px; }
  .biz i { font-size: 12.5px; line-height: 1.6; }
  .biz h3 { font-size: 13.5px; letter-spacing: .04em; }
  .biz p { grid-column: 1; font-size: 13px; }
  .sub { margin-top: 72px; }
  /* 02 Numbers・03 年間契約・04 会社概要：スマホでは字を一回り小さく */
  .nums { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .nums b { font-size: 34px; }
  .nums b small { font-size: 12px; }
  .nums li > span { font-size: 12.5px; }
  #contract .lead { font-size: 21px; }
  .spec { margin-top: 40px; }
  .spec div, .info div { grid-template-columns: 6.6em 1fr; }
  .spec dt { font-size: 12.5px; letter-spacing: .2em; }
  .spec dd { font-size: 13.5px; }
  .spec b { font-size: 31px; }
  #contract .note { margin-top: 32px; font-size: 12.5px; line-height: 2; }
  .info { font-size: 12.5px; }
  .info .en { font-size: 11.5px; }
  .info dt { letter-spacing: .14em; }
  .hero__title { font-size: clamp(26px, 8.1vw, 40px); letter-spacing: .22em; padding-left: .22em; }
  .hero__motto { font-size: 16px; }
}
/* 04 会社概要：スマホは項目名を上に小さく置き、中身は幅いっぱいに。どの行も1行に収まるよう、字の大きさを画面の幅に合わせる（いちばん長いのは銀座の住所で約24字分） */
@media (max-width: 599px) {
  .info div { grid-template-columns: 1fr; padding: 1.15em 0 1.05em; }
  .info dt { margin-bottom: .35em; font-size: 11px; line-height: 1.6; letter-spacing: .24em; }
  .info dd { font-size: min(13px, calc((100vw - 48px) / 24)); letter-spacing: .02em; }
  .info .en { font-size: .9em; letter-spacing: .08em; }
}
/* 01 企業理念：タブレットの縦（600〜899px）は幅に余裕があるので、字を一回り大きく */
@media (min-width: 600px) and (max-width: 899px) {
  .concept { gap: 0 56px; }
  .concept__title { font-size: 24px; }
  .concept__text { font-size: 14.5px; }
}
@media (max-width: 374px) { .biz .nw { white-space: normal; } }
@media (max-width: 359px) {
  .nums { gap: 0 16px; }
  .nums b { font-size: 30px; }
}

/* ───────── 本 ───────── */

.book-scroll { position: relative; }
.stage { position: relative; }
.book {
  counter-reset: folio;
  /* スマホの版（JS が無いときの並べ方もこの大きさ） */
  --pw: 330px;
  --ph: 560px;
  --mt: 58px; /* 天 */
  --mb: 62px; /* 地 */
  --mo: 30px; /* 小口 */
  --mi: 28px; /* のど */
  --fs: 11px; /* 本文 */
  --fs-s: 9.5px; /* 小さな本文 */
  --fs-l: 9px; /* ラベル */
  --fs-h: 14px; /* 見出し */
  --fs-d: 20px; /* 大きな見出し */
  --fs-n: 30px; /* 大きな数字 */
}
.book.ed-pc {
  --pw: 540px;
  --ph: 700px;
  --mt: 76px;
  --mb: 80px;
  --mo: 72px;
  --mi: 60px;
  --fs: 12px;
  --fs-s: 10.4px;
  --fs-l: 9.8px;
  --fs-h: 16px;
  --fs-d: 25px;
  --fs-n: 40px;
}

/* 1ページ */
.pg {
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--pw);
  height: var(--ph);
  padding: var(--mt) var(--mo) var(--mb) var(--mi);
  overflow: hidden;
  container-type: size;
  background: var(--paper) url(../images/paper.png) 0 0 / 256px;
  color: var(--ink);
  font-size: var(--fs);
  line-height: 1.95;
  letter-spacing: .04em;
  font-kerning: normal;
  text-spacing-trim: trim-start;
  scroll-margin-top: 90px;
}
.pg.is-verso { padding: var(--mt) var(--mi) var(--mb) var(--mo); }
.pg--num { counter-increment: folio; }
.pg p { text-wrap: pretty; hanging-punctuation: allow-end; }
/* 紙の光：のど（綴じ側）へ沈みこむ深い影、そのすぐ外で紙がふくらんで受ける光、小口へ向けてわずかに落ちる明るさ */
.pg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(40, 34, 26, .16) 0, rgba(40, 34, 26, .06) 1.6%, rgba(40, 34, 26, 0) 5%),
    linear-gradient(90deg, rgba(40, 34, 26, .05) 0, rgba(40, 34, 26, 0) 14%),
    linear-gradient(90deg, rgba(255, 255, 255, 0) 6%, rgba(255, 255, 255, .32) 11%, rgba(255, 255, 255, 0) 22%),
    linear-gradient(270deg, rgba(40, 34, 26, .035), rgba(40, 34, 26, 0) 9%);
}
.pg.is-verso::before {
  background:
    linear-gradient(270deg, rgba(40, 34, 26, .16) 0, rgba(40, 34, 26, .06) 1.6%, rgba(40, 34, 26, 0) 5%),
    linear-gradient(270deg, rgba(40, 34, 26, .05) 0, rgba(40, 34, 26, 0) 14%),
    linear-gradient(270deg, rgba(255, 255, 255, 0) 6%, rgba(255, 255, 255, .32) 11%, rgba(255, 255, 255, 0) 22%),
    linear-gradient(90deg, rgba(40, 34, 26, .035), rgba(40, 34, 26, 0) 9%);
}
/* 柱とノンブル：ページの下、小口側にまとめる */
.pg--num::after {
  content: counter(folio);
  position: absolute;
  right: var(--mo);
  bottom: calc(var(--mb) * .44);
  font: 400 calc(var(--fs-l) + 1.5px)/1 var(--latin);
  letter-spacing: .04em;
  font-variant-numeric: lining-nums;
  color: var(--ink-2);
}
/* main.js が入れたページ番号があればそれを使う（めくるときの写しも同じ番号になる） */
.pg[data-folio]::after { content: attr(data-folio); }
.pg.is-verso::after { right: auto; left: var(--mo); }
.pg__run {
  position: absolute;
  right: calc(var(--mo) + 2.6em);
  bottom: calc(var(--mb) * .44);
  font: 400 var(--fs-l)/1 var(--serif);
  letter-spacing: .18em;
  color: var(--ink-3);
}
.pg.is-verso .pg__run { right: auto; left: calc(var(--mo) + 2.6em); }
.pg--title::after, .pg--plate::after, .pg--photo::after, .pg--rest::after { content: none !important; }
/* PC の見開きだけに入る白い紙。スマホの版と JS が無いときは出さない */
.book > .pg--pc { display: none; }

/* 表紙：白いカバーと帯 */
.pg--cover { display: block; padding: 0; background: var(--jacket) url(../images/paper.png) 0 0 / 256px; box-shadow: inset -1px 0 0 rgba(40, 34, 26, .06), inset 0 -1px 0 rgba(40, 34, 26, .06); }
/* カバーの綴じ側の溝と、光の当たり方（文字の下に敷く） */
.pg--cover::before {
  z-index: auto;
  background:
    linear-gradient(90deg, rgba(40, 34, 26, .07) 0, rgba(40, 34, 26, .02) 2.4%, rgba(255, 255, 255, .6) 3.6%, rgba(40, 34, 26, 0) 6%),
    radial-gradient(140% 110% at 18% 0%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, rgba(40, 34, 26, 0) 55%, rgba(40, 34, 26, .035));
}
.cover__kanji {
  position: absolute;
  left: -7.2cqw;
  top: 9.5cqh;
  writing-mode: vertical-rl;
  font: 600 26.5cqw/1 var(--serif);
  letter-spacing: 0;
  color: #141413;
}
/* 今の表紙では大きな「余白」は出さない（11/5 中川さん）。表紙の案 A〜D では使う */
.book:not([data-cover]) .cover__kanji { display: none; }
.cover__spine {
  position: absolute;
  left: 2.8cqw;
  top: calc(9.5cqh + 55cqw);
  writing-mode: vertical-rl;
  font: 400 1.75cqw/1 var(--serif);
  letter-spacing: .42em;
  color: #74736e;
}
.cover__title {
  position: absolute;
  left: 56cqw;
  top: 36.5cqh;
  font: 400 5cqw/1 var(--latin);
  letter-spacing: .3em;
  color: #191918;
}
.cover__author {
  position: absolute;
  left: 56cqw;
  top: 45.5cqh;
  font: 400 4.3cqw/1 var(--latin);
  letter-spacing: .02em;
  color: #191918;
}
.cover__obi {
  position: absolute;
  top: 66cqh;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4.6cqh 7.6cqw 0;
  background: #fafaf7;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 -.8cqw 2.4cqw rgba(0, 0, 0, .045);
}
.cover__by { margin-bottom: 1.3cqh; font: 500 3.3cqw/1.2 var(--latin); letter-spacing: .02em; color: #191918; }
.cover__by span { letter-spacing: .08em; }
.cover__blurb {
  font: 400 2.3cqw/1.58 var(--latin);
  letter-spacing: .004em;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  color: #2a2a28;
}
.cover__mark { position: absolute; right: 7.6cqw; bottom: 4.4cqh; font: 700 1.85cqw/1 var(--sans); letter-spacing: .01em; color: #191918; }

/* 見返し（前は何も刷らない紙、後ろは裏表紙の内側） */
.pg--end { background: var(--end) url(../images/paper.png) 0 0 / 256px; }
.pg--end::after { content: none; }
.pg--end .pg__run { display: none; }

/* 本の中：横書きで、1行ずつ中央にそろえ、ページの真ん中に置く。1行だけのページ（.line）だけ縦書き */
.pg--c { justify-content: center; align-items: center; }
.v { text-align: center; font-size: var(--fs-s); line-height: 2.45; letter-spacing: .12em; color: var(--ink-2); }
.pg .v p, .pg .v li, .pg .v h3 { white-space: nowrap; text-wrap: nowrap; }
.v p + p { margin-block-start: 2em; }
.v__by { margin-block-start: 3em !important; font-size: var(--fs-l); letter-spacing: .32em; color: var(--ink-3); }
/* 扉 */
.title__main { font: 500 var(--fs-h)/1.4 var(--serif); letter-spacing: .6em; padding-left: .6em; color: var(--ink); }
.title__name { margin-block-start: 3.4em; font-size: var(--fs-s); letter-spacing: .5em; padding-left: .5em; color: var(--ink-2); }


.concept { margin-top: calc(var(--fs) * .6); }
.ed-pc .concept { margin-right: 5%; }

/* 05 代表紹介 */
.pg.pg--plate { padding: 0; background: #cfcdc8; }
.pg--plate::before { z-index: 1; }
.pg--plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 写真を1枚だけ置くページ（字は刷らない）。小さく下に置くもの、横長を上寄りに置くもの */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; }
.photo--tall { width: 44%; }
.photo--wide { width: 76%; }
/* 一文だけのページ：縦に1行、ページの真ん中に */
.pg .line { writing-mode: vertical-rl; font: 500 var(--fs)/1.6 var(--serif); letter-spacing: .5em; color: var(--ink); }
/* 結びのページの右下に「余白」の朱印 */
.seal { position: absolute; right: calc(var(--mo) * .9); bottom: calc(var(--mb) * .9); width: calc(var(--pw) * .085); height: auto; transform: rotate(-3deg); mix-blend-mode: multiply; opacity: .93; }
.seal text { font-family: var(--serif); paint-order: stroke; stroke: #fbfaf7; stroke-width: .6px; }
.plate__cap {
  position: absolute;
  left: var(--mo);
  bottom: calc(var(--mb) * .44);
  font: italic 400 calc(var(--fs) + 1.5px)/1 var(--latin);
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .3);
}
/* 保有資格・著書：小さな見出しの列のあとに1行ずつ */
.v__h { margin-block-end: 2.4em; font-weight: 400; font-size: var(--fs-l); letter-spacing: .5em; padding-left: .5em; color: var(--ink-3); }
.v__list { line-height: 2.2; }
.v__books li + li { margin-block-start: 2em; }
.v__books a { text-decoration: none; color: var(--ink); }
.v__books a:hover { color: var(--ink-3); }
.v small { display: block; font-size: var(--fs-l); color: var(--ink-3); }
/* 経歴：1件を「年と会社」「役と仕事」の行に */
.cv { line-height: 2.2; color: var(--ink); }
.cv li + li { margin-block-start: 2.2em; }
.cv__y { margin-inline-end: 1.4em; font: 400 calc(var(--fs-s) + .5px)/1 var(--latin); font-variant-numeric: lining-nums; letter-spacing: .08em; color: var(--ink-3); }
/* スマホの版（ページが小さい）は、行の間を少し詰めて収める */
.book:not(.ed-pc) .v { line-height: 2.3; }
.book:not(.ed-pc) .v__list { line-height: 1.95; }

/* 紹介と協業（語録のあと、お問い合わせの前）：左に AI RADIO MAN、右に Collaboration */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6vw; max-width: 1280px; margin: 0 auto; padding: clamp(120px, 17vh, 190px) 7vw; }
.note { display: flex; flex-direction: column; align-items: flex-start; }
.note__label { margin-bottom: 36px; font: italic 400 19px/1.3 var(--latin); color: var(--ink-3); }
.ep__thumb { position: relative; align-self: stretch; aspect-ratio: 16 / 9; margin-bottom: 1.8em; overflow: hidden; background: #e8e6e0; }
.ep__thumb:not(.has-video)::before {
  content: 'AI RADIO MAN';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 15px/1 var(--latin);
  letter-spacing: .3em;
  color: var(--ink-3);
}
.ep__thumb iframe { display: block; width: 100%; height: 100%; border: 0; }
.ep__play { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.ep__play img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s; }
.ep__play:hover img { filter: none; }
.ep__play::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: -11px 0 0 -7px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.ep__h { margin-bottom: 1em; font: 500 17px/1.6 var(--serif); letter-spacing: .08em; } /* 11/8 動画が公開されたので Coming soon を外し、その分の間をここで取る */
.ep__text { margin-bottom: 1.8em; font-size: 14px; line-height: 2; letter-spacing: .06em; color: var(--ink-2); }
.ep__text .nw { white-space: nowrap; } /* 狭い画面では「深夜の放送局が、｜廣濱成一の…」の句の切れ目で折り返す（「ます。」だけが落ちないように） */
.note .link { font-size: 13.5px; }
.pair { display: flex; align-items: flex-end; gap: 1.2em; margin-bottom: 2.4em; font-size: 17px; letter-spacing: .2em; }
.pair small { display: block; margin-bottom: .6em; font: italic 400 15px/1 var(--latin); letter-spacing: .01em; color: var(--ink-3); }
.pair em { font-style: normal; font-family: var(--latin); color: var(--ink-3); }
.pair__big { margin-bottom: 1.9em; font: 500 clamp(19px, 1.6vw, 23px)/2.05 var(--serif); letter-spacing: .1em; font-feature-settings: 'palt'; }
.pair__text { margin-bottom: 2em; font-size: 14px; line-height: 2.1; letter-spacing: .08em; color: var(--ink-2); }
@media (max-width: 899px) {
  .notes { grid-template-columns: 1fr; gap: 88px; padding: 96px 24px 104px; }
}

/* 裏表紙：白いカバーと帯。表紙と同じ高さに帯をかける */
.pg--back { display: block; padding: 0; background: var(--jacket) url(../images/paper.png) 0 0 / 256px; box-shadow: inset 1px 0 0 rgba(40, 34, 26, .06), inset 0 -1px 0 rgba(40, 34, 26, .06); }
.pg--back::before { z-index: auto; background: linear-gradient(270deg, rgba(40, 34, 26, .07) 0, rgba(40, 34, 26, .02) 2.4%, rgba(255, 255, 255, .6) 3.6%, rgba(40, 34, 26, 0) 6%), radial-gradient(140% 110% at 30% 0%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 60%); }
.back__title { position: absolute; left: 0; right: 0; top: 30cqh; text-align: center; font: 400 3.6cqw/1 var(--latin); letter-spacing: .4em; padding-left: .4em; color: #2a2a28; }
.back__obi { position: absolute; top: 66cqh; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqh; background: #fafaf7; box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 -.8cqw 2.4cqw rgba(0, 0, 0, .045); }
.back__line { font: 400 2.8cqw/1 var(--serif); letter-spacing: .5em; padding-left: .5em; color: #2a2a28; }
.back__mark { font: 700 1.7cqw/1 var(--sans); letter-spacing: .02em; color: #2a2a28; }

/* ── 表紙の案（見比べ用。URL に ?cover=a〜d を付けると切り替わる。決まったら1つだけ残す） ── */
/* 案A 型押し：白い紙に「余白」を白のまま大きく押す。字は下に小さく。帯なし */
.book[data-cover="a"] .cover__obi, .book[data-cover="a"] .cover__spine { display: none; }
.book[data-cover="a"] .cover__kanji {
  left: 50%; top: 13cqh; transform: translateX(-50%);
  font: 500 30cqw/1 var(--serif); color: #f6f6f2;
  text-shadow: -.18cqw -.18cqw 0 rgba(255, 255, 255, .95), .2cqw .24cqw .3cqw rgba(40, 34, 26, .16);
}
.book[data-cover="a"] .cover__title { left: 0; right: 0; top: auto; bottom: 13.5cqh; text-align: center; font-size: 2.7cqw; letter-spacing: .6em; padding-left: .6em; color: #2a2a28; }
.book[data-cover="a"] .cover__author { left: 0; right: 0; top: auto; bottom: 9.2cqh; text-align: center; font: italic 400 2.5cqw/1 var(--latin); color: #6c6b66; }

/* 案B 縦組み：右上から「余白」を縦に、その左に副題と名前。英字は左下に小さく。帯なし */
.book[data-cover="b"] .cover__obi { display: none; }
.book[data-cover="b"] .cover__kanji { left: auto; right: 13cqw; top: 13cqh; font: 500 9.4cqw/1 var(--serif); letter-spacing: .5em; color: #161615; }
.book[data-cover="b"] .cover__spine { left: auto; right: 27cqw; top: 14cqh; font-size: 2.4cqw; letter-spacing: .5em; color: #4a4945; }
.book[data-cover="b"] .cover__title { left: 11cqw; top: auto; bottom: 14cqh; font-size: 2.4cqw; letter-spacing: .5em; color: #2a2a28; }
.book[data-cover="b"] .cover__author { left: 11cqw; top: auto; bottom: 10cqh; font: italic 400 2.4cqw/1 var(--latin); color: #6c6b66; }

/* 案C 墨のクロス：黒に近い布の表紙に、銀の箔で小さく。裏表紙も同じ布 */
.book[data-cover="c"] .pg--cover, .book[data-cover="c"] .pg--back { background: #2b2c2d url(../images/paper.png) 0 0 / 256px; background-blend-mode: soft-light; }
.book[data-cover="c"] .pg--cover::before, .book[data-cover="c"] .pg--back::before { opacity: .25; }
.book[data-cover="c"] .cover__obi, .book[data-cover="c"] .cover__spine { display: none; }
.book[data-cover="c"] .cover__kanji, .book[data-cover="c"] .cover__title, .book[data-cover="c"] .cover__author {
  background: linear-gradient(115deg, #8f8e89 10%, #e6e5e0 45%, #a3a29d 60%, #d4d3ce 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.book[data-cover="c"] .cover__kanji { left: 50%; top: 30cqh; transform: translateX(-50%); font: 500 5.6cqw/1 var(--serif); letter-spacing: .6em; }
.book[data-cover="c"] .cover__title { left: 0; right: 0; top: auto; bottom: 16cqh; text-align: center; font-size: 2.6cqw; letter-spacing: .6em; padding-left: .6em; }
.book[data-cover="c"] .cover__author { left: 0; right: 0; top: auto; bottom: 12cqh; text-align: center; font: italic 400 2.4cqw/1 var(--latin); }
.book[data-cover="c"] .back__obi { display: none; }
.book[data-cover="c"] .back__title { top: auto; bottom: 16cqh; font-size: 2.6cqw; color: #bdbcb7; }

/* 案D 水平線：白い紙に細い線を1本（最初の画面の水平線）。線の上に「余白」、下に英字 */
.book[data-cover="d"] .cover__obi, .book[data-cover="d"] .cover__spine { display: none; }
.book[data-cover="d"] .pg--cover::after { content: ''; position: absolute; left: 0; right: 0; top: 61cqh; height: 1px; background: #8e8d88; }
.book[data-cover="d"] .cover__kanji { left: auto; right: 10cqw; top: auto; bottom: calc(39cqh + 3.2cqh); writing-mode: horizontal-tb; font: 500 4.4cqw/1 var(--serif); letter-spacing: .5em; color: #161615; }
.book[data-cover="d"] .cover__title { left: 10cqw; top: calc(61cqh + 4cqh); font-size: 2.5cqw; letter-spacing: .5em; color: #2a2a28; }
.book[data-cover="d"] .cover__author { left: 10cqw; top: calc(61cqh + 8.4cqh); font: italic 400 2.4cqw/1 var(--latin); color: #6c6b66; }

/* JS が無いとき・動きを減らす設定のとき：ページを縦に並べる */
html:not(.book-on) .book { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; padding: 92px 12px 48px; }
html:not(.book-on) .pg { box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .22); }
html:not(.book-on) .hint, html:not(.book-on) .pager { display: none; }
html:not(.book-on) .header { background: rgba(237, 236, 232, .94); }
@media (max-width: 352px) { html:not(.book-on) .pg { zoom: .92; } }

/* スクロールでめくる本（main.js が html に .book-on を付ける） */
.book-on .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* 机の光：左上から柔らかく */
.book-on .stage::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 32% 22%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%),
    radial-gradient(90% 80% at 70% 100%, rgba(40, 34, 26, .07), rgba(40, 34, 26, 0) 70%);
  /* 上の端で机の色に溶かす（本が下から入ってくるとき、光の箱の線が見えないように） */
  -webkit-mask-image: linear-gradient(transparent, #000 24%);
  mask-image: linear-gradient(transparent, #000 24%);
}
/* 本に寄るほど周りが沈み、紙だけが明るく残る */
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, rgba(30, 26, 20, 0) 58%, rgba(30, 26, 20, .22));
  opacity: var(--in, 0);
}
.book-on .cam { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.book-on .book {
  position: absolute;
  left: calc(var(--pw) * -1);
  top: calc(var(--ph) / -2);
  width: calc(var(--pw) * 2);
  height: var(--ph);
  animation: book-in 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes book-in { from { opacity: 0; transform: translateY(26px); } }
.book__shadow {
  position: absolute;
  top: 0;
  height: var(--ph);
  background: var(--paper);
  box-shadow:
    0 0 0 .5px rgba(40, 34, 26, .08),
    0 1px 1.5px rgba(40, 34, 26, .14),
    0 6px 14px -6px rgba(40, 34, 26, .16),
    10px 22px 40px -14px rgba(40, 34, 26, .2),
    34px 60px 110px -40px rgba(40, 34, 26, .22);
}
/* 開いた本の小口：残りのページの厚み。めくるほど右が薄く、左が厚くなる */
.book__edge {
  position: absolute;
  top: 1.5px;
  bottom: 1.5px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, #f6f4ef 0 .9px, #d6d3cb .9px 1.4px);
  box-shadow: 0 1px 2px rgba(40, 34, 26, .12);
}
.book__edge--r { left: calc(var(--pw) * 2); border-radius: 0 1px 1px 0; }
.book__edge--l { right: calc(var(--pw) * 2); border-radius: 1px 0 0 1px; }
/* 本全体にかかる光（左上から） */
.book__light {
  position: absolute;
  top: 0;
  height: var(--ph);
  z-index: 120;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 55%),
    linear-gradient(165deg, rgba(40, 34, 26, 0) 50%, rgba(40, 34, 26, .045));
}
.leaf { position: absolute; left: var(--pw); top: 0; width: var(--pw); height: var(--ph); transform-origin: 0 50%; }
.face { position: absolute; inset: 0; pointer-events: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face--back { transform: rotateY(180deg); }
.face.is-live { pointer-events: auto; cursor: pointer; }
.face > .pg { position: absolute; inset: 0; }
.face::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(28, 24, 18, .08), rgba(28, 24, 18, .3));
  opacity: 0;
}
.face--back::after { background: linear-gradient(270deg, rgba(28, 24, 18, .08), rgba(28, 24, 18, .3)); }
.leaf.is-turning { transform-style: preserve-3d; }
.leaf.is-turning .face--front::after { opacity: var(--sf, 0); }
.leaf.is-turning .face--back::after { opacity: var(--sb, 0); }
.leaf.is-right .face--back, .leaf.is-left .face--front { opacity: 0; }
.leaf.is-left .face--front { transform: rotateY(180deg); }
.leaf.is-left .face--back { transform: none; }
.leaf.is-curling { opacity: 0; }
/* スマホの紙の裏：表の印刷がうっすら透ける */
.pg--thru > *, .pg--thru::after { opacity: .055; }
.pg--thru { pointer-events: none; }

/* めくっている紙：縦の細い帯をつないで、紙を湾曲させる（main.js が作る） */
.curl { position: absolute; left: var(--pw); top: 0; width: var(--pw); height: var(--ph); z-index: 200; transform-origin: 0 50%; transform-style: preserve-3d; pointer-events: none; }
.curl__strip { position: absolute; top: 0; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; }
.curl__slice { position: absolute; inset: 0 -1px 0 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.curl__slice--b { transform: rotateY(180deg); }
.curl__slice > .pg { position: absolute; top: 0; }
.curl__slice::after { content: ''; position: absolute; inset: 0; z-index: 3; background: var(--shade, none); }
/* 下のページに落ちる影 */
.cast { position: absolute; top: 0; height: 100%; z-index: 150; pointer-events: none; opacity: 0; }

.hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font: 400 11px/1 var(--serif);
  letter-spacing: .24em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: opacity .5s;
  animation: fade-in 1s 1.2s both;
}
.hint span { font: italic 400 14px/1 var(--latin); letter-spacing: .02em; color: var(--ink-3); }
.hint::after { content: ''; width: 1px; height: 28px; background: linear-gradient(var(--ink-3), transparent); transform-origin: top; animation: hint-line 2.4s ease-in-out infinite; }
@keyframes hint-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.stage:not(.is-cover) .hint { opacity: 0; }
.pager {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  font: 400 13px/1 var(--latin);
  letter-spacing: .06em;
  font-variant-numeric: lining-nums;
  color: var(--ink-2);
  transform: translateX(-50%);
  transition: opacity .5s;
}
.pager__bar { width: 84px; height: 1px; background: rgba(0, 0, 0, .12); }
.pager__bar span { display: block; height: 100%; background: var(--ink-2); transform-origin: left; transform: scaleX(0); }
.stage.is-cover .pager { opacity: 0; }
/* 黒い紙を開いているときは、ヘッダーとページ番号を白く */
.on-night .header { color: var(--night-ink); }
.on-night .pager { color: #b9b6af; }
.on-night .pager__bar { background: rgba(255, 255, 255, .16); }
.on-night .pager__bar span { background: #d9d6cf; }

/* フッター：最初の画面の波と同じ灰色で閉じる */
.footer { color: #ecebe6; background: var(--sea-grey); }
.footer__in { display: grid; grid-template-columns: 1fr auto; gap: 28px 6vw; max-width: 1280px; margin: 0 auto; padding: 96px 7vw 40px; }
.footer__logo { font: 500 22px/1 var(--latin); letter-spacing: .3em; }
.footer__name { grid-column: 1; margin-top: -12px; font-size: 13px; letter-spacing: .24em; opacity: .8; }
.footer__info { grid-column: 1; font-size: 12.5px; line-height: 2.1; letter-spacing: .1em; opacity: .75; }
.footer__info a { text-decoration: none; }
.footer__links { grid-column: 2; grid-row: 1; align-self: start; font-size: 13px; }
.footer__copy { grid-column: 1 / -1; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font: 400 12px/1 var(--latin); letter-spacing: .12em; opacity: .55; }

@media (max-width: 599px) {
  .header { padding: 16px 18px; }
  .pager { bottom: 14px; }
  .pager__bar { width: 56px; }
  .hint { bottom: 20px; }
  .footer__in { grid-template-columns: 1fr; padding: 72px 24px 32px; }
  .footer__links { grid-column: 1; grid-row: auto; }
}
