/* =========================================================
   OHARi.JP — Story page（物語）
   ========================================================= */

/* 読了プログレス */
.st-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--red); z-index: 100; }

/* 章ナビ（左固定） */
.st-nav {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 4px; opacity: 0; visibility: hidden; transition: .4s;
}
.st-nav.is-show { opacity: 1; visibility: visible; }
.st-nav a {
  display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 14px; color: var(--muted);
  padding: 6px 0; transition: color .3s;
}
.st-nav a::before { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .3s; }
.st-nav a span { opacity: 0; transform: translateX(-6px); transition: .3s; font-size: 12px; white-space: nowrap; }
.st-nav a:hover span, .st-nav a.is-active span { opacity: 1; transform: none; }
.st-nav a.is-active { color: var(--red); }
.st-nav a.is-active::before { width: 34px; }
.st-nav.on-dark a { color: rgba(255,255,255,.55); }
.st-nav.on-dark a.is-active { color: #fff; }

/* ---------- HERO ---------- */
.st-hero { position: relative; min-height: min(calc(100vh - 84px), 860px); background: var(--washi-2); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.st-hero__text { padding: 90px 40px 90px max(24px, calc((100vw - var(--wrap)) / 2)); display: flex; gap: 60px; align-items: center; position: relative; z-index: 2; }
.st-hero__title {
  writing-mode: vertical-rl; font-family: var(--serif); font-size: clamp(44px, 5.4vw, 78px); font-weight: 600;
  letter-spacing: .22em; line-height: 1.5; height: 7.4em;
}
.st-hero__title em { font-style: normal; color: var(--red); }
.st-hero__body .sec-head__en { margin-bottom: 26px; }
.st-hero__body p { font-size: 15px; line-height: 2.2; max-width: 22em; }
.st-hero__scroll { margin-top: 50px; display: inline-flex; align-items: center; gap: 14px; font-family: var(--en); font-size: 13px; letter-spacing: .3em; }
.st-hero__scroll i { width: 1px; height: 60px; background: var(--line); position: relative; overflow: hidden; }
.st-hero__scroll i::after { content: ""; position: absolute; left: 0; top: -30px; width: 1px; height: 30px; background: var(--red); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { to { top: 60px; } }
.st-hero__visual { position: relative; }
.st-hero__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.st-hero__visual::before {
  content: ""; position: absolute; left: -90px; bottom: 80px; width: 180px; aspect-ratio: 1; border-radius: 50%;
  background: var(--red); z-index: 2; mix-blend-mode: multiply;
}
.st-hero__en {
  position: absolute; right: 24px; bottom: 20px; z-index: 2; font-family: var(--en); font-size: clamp(60px, 9vw, 140px);
  color: #fff; line-height: .8; letter-spacing: .02em; opacity: .9; pointer-events: none;
}

/* ---------- PROLOGUE ---------- */
.st-prologue { padding: 150px 0 120px; text-align: center; position: relative; }
.st-prologue .mark { font-family: var(--serif); font-size: 15px; letter-spacing: .5em; color: var(--red); }
.st-prologue blockquote {
  margin: 34px auto 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); line-height: 2; letter-spacing: .12em; max-width: 24em;
}
.st-prologue blockquote em { font-style: normal; background: linear-gradient(transparent 62%, var(--red-soft) 62%); }
.st-prologue p { margin: 30px auto 0; max-width: 34em; color: var(--ink-2); }

/* ---------- INDEX ---------- */
.st-index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.st-index a { background: var(--washi); padding: 36px 34px; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; transition: background .3s, color .3s; }
.st-index a:hover { background: var(--red); color: #fff; }
.st-index a:hover small { color: rgba(255,255,255,.75); }
.st-index b { font-family: var(--serif); font-size: 46px; font-weight: 600; color: var(--red); line-height: 1; transition: color .3s; }
.st-index a:hover b { color: #fff; }
.st-index span { font-family: var(--serif); font-size: 18px; display: block; }
.st-index small { font-size: 12px; color: var(--muted); letter-spacing: .1em; }

/* ---------- CHAPTER 共通 ---------- */
.ch { position: relative; padding: 150px 0; overflow: hidden; }
.ch--white { background: #fff; }
.ch--ink { background: #1d1a18; color: #fff; }
.ch--red { background: var(--red); color: #fff; }
.ch__head { display: flex; align-items: flex-start; gap: 28px; margin-bottom: 70px; }
.ch__num {
  font-family: var(--serif); font-size: 96px; line-height: .9; color: var(--red); font-weight: 600;
}
.ch--red .ch__num { color: #fff; }
.ch__label { padding-top: 8px; }
.ch__label small { font-family: var(--en); font-size: 13px; letter-spacing: .35em; color: var(--muted); display: block; text-transform: uppercase; }
.ch--ink .ch__label small, .ch--red .ch__label small { color: rgba(255,255,255,.6); }
.ch__label h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); letter-spacing: .12em; margin-top: 10px; line-height: 1.5; }
.ch__model { display: inline-block; margin-top: 14px; font-family: var(--en); font-size: 15px; letter-spacing: .3em; border: 1px solid currentColor; padding: 4px 14px; opacity: .8; }
.ch__bgword {
  position: absolute; font-family: var(--serif); font-size: clamp(220px, 30vw, 460px); line-height: 1; opacity: .05; pointer-events: none;
  right: -40px; top: 40px; will-change: transform;
}
.ch--ink .ch__bgword, .ch--red .ch__bgword { color: #fff; opacity: .06; }
.ch__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; position: relative; z-index: 1; }
.ch__grid--rev > :first-child { order: 2; }
.ch__lead { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.9; letter-spacing: .08em; margin-bottom: 26px; }
.ch__text p + p { margin-top: 18px; }
.ch--ink .ch__text p, .ch--red .ch__text p { color: rgba(255,255,255,.82); }

/* フレーム写真 */
.frame { position: relative; }
.frame__img { aspect-ratio: .72; overflow: hidden; position: relative; z-index: 1; }
.frame__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.frame:hover .frame__img img { transform: scale(1.04); }
.frame::after { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--red); z-index: 0; }
.ch--ink .frame::after { border-color: rgba(255,255,255,.3); }
.frame__cap { margin-top: 40px; font-family: var(--en); font-size: 13px; letter-spacing: .25em; color: var(--muted); }
.frame--circle .frame__img { aspect-ratio: 1; border-radius: 50%; background: #fff; }
.frame--circle .frame__img img { object-fit: contain; padding: 13%; box-sizing: border-box; transform: none; }
.frame--circle:hover .frame__img img { transform: scale(1.03); }
.frame--circle::after { border-radius: 50%; inset: 18px -18px -18px 18px; }

/* 特長リスト */
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 46px; border-top: 1px solid var(--line); }
.ch--ink .points, .ch--red .points { border-color: rgba(255,255,255,.18); }
.point { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.ch--ink .point, .ch--red .point { border-color: rgba(255,255,255,.18); }
.point:nth-child(odd) { border-right: 1px solid var(--line); }
.ch--ink .point:nth-child(odd), .ch--red .point:nth-child(odd) { border-right-color: rgba(255,255,255,.18); }
.point:nth-child(even) { padding-left: 20px; }
.point svg { width: 30px; flex: none; stroke: var(--red); fill: none; stroke-width: 1.4; margin-top: 4px; }
.ch--ink .point svg { stroke: #ff7a96; }
.ch--red .point svg { stroke: #fff; }
.point h3 { font-family: var(--serif); font-size: 16px; }
.point p { font-size: 13px; line-height: 1.8; margin-top: 4px; opacity: .8; }

/* 第一章：福 */
.fuku { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.fuku__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.fuku__ring::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: var(--red); }
.fuku__char { position: relative; font-family: var(--serif); font-size: clamp(150px, 18vw, 260px); color: #fff; line-height: 1; font-weight: 600; }
.fuku__label { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); font-family: var(--en); letter-spacing: .5em; font-size: 13px; color: var(--muted); white-space: nowrap; }
.fuku__vertical { position: absolute; right: -10px; top: 10%; writing-mode: vertical-rl; font-family: var(--serif); letter-spacing: .4em; font-size: 15px; color: var(--ink-2); }
.values4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 40px; }
.values4 div { text-align: center; padding: 22px 6px; border: 1px solid var(--line); }
.values4 b { display: block; font-family: var(--serif); font-size: 28px; color: var(--red); }
.values4 small { font-size: 11.5px; color: var(--muted); }

/* 第三章：180° 図 */
.recline { margin-top: 40px; display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; padding: 30px; background: #fff; border: 1px solid var(--line); }
.recline svg { width: 100%; overflow: visible; }
.recline .arc { stroke: var(--red); stroke-width: 3; fill: none; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 2s ease; }
.recline .seat { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; fill: none; transform-origin: 100px 100px; transform: rotate(0deg); transition: transform 2s ease; }
.recline.is-in .arc { stroke-dashoffset: 0; }
.recline.is-in .seat { transform: rotate(-90deg); }
.recline .recline__num { font-family: var(--en); font-size: 64px; color: var(--red); line-height: 1; }
.recline .recline__num small { font-size: .55em; margin-left: 2px; font-family: var(--serif); color: var(--red); vertical-align: top; position: relative; top: -.05em; }
.recline p { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }

/* 第四章：指圧 */
.shiatsu-def { margin-top: 40px; padding: 30px 34px; border: 1px solid rgba(255,255,255,.35); position: relative; }
.shiatsu-def dt { font-family: var(--serif); font-size: 22px; letter-spacing: .2em; }
.shiatsu-def dt small { font-family: var(--en); font-size: 13px; letter-spacing: .25em; margin-left: 12px; opacity: .7; }
.shiatsu-def dd { margin: 12px 0 0; font-size: 14px; color: rgba(255,255,255,.85); }
.ch--red .frame--circle .frame__img { background: #fff; }
.ch--red .frame::after { border-color: rgba(255,255,255,.45); }
.dots-bg { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1.5px, transparent 1.5px); background-size: 26px 26px; pointer-events: none; }

/* 第五章：横長ビジュアル */
.wide-visual { position: relative; margin-top: 90px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; align-items: stretch; }
.wide-visual__img { min-height: 520px; position: relative; overflow: hidden; }
.wide-visual__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wide-visual__body { background: var(--washi-2); padding: 60px 50px; display: flex; flex-direction: column; justify-content: center; }
.wide-visual__body .ch__lead { font-size: 22px; }

/* ---------- EPILOGUE ---------- */
.st-epilogue { padding: 150px 0; text-align: center; background: var(--washi-2); position: relative; overflow: hidden; }
.st-epilogue::before { content: ""; position: absolute; left: 50%; top: -260px; transform: translateX(-50%); width: 520px; aspect-ratio: 1; border-radius: 50%; background: var(--red); }
.st-epilogue .wrap { position: relative; }
.st-epilogue .mark { font-family: var(--serif); font-size: 15px; letter-spacing: .5em; color: #fff; display: inline-block; margin-bottom: 120px; }
.st-epilogue h2 { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 44px); letter-spacing: .14em; line-height: 1.7; }
.st-epilogue > .wrap > p { margin: 24px auto 60px; max-width: 32em; color: var(--ink-2); }
.st-epilogue .promises { text-align: center; }
.st-epilogue__btns { display: flex; gap: 14px; justify-content: center; margin-top: 50px; flex-wrap: wrap; }

/* ---------- 入場アニメーション ---------- */
.fade-l { opacity: 0; transform: translateX(-40px); transition: 1s ease; }
.fade-r { opacity: 0; transform: translateX(40px); transition: 1s ease; }
.fade-l.is-in, .fade-r.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .st-nav { display: none; }
  .st-index { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .st-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .st-hero__text { padding: 60px 24px; gap: 26px; min-width: 0; }
  .st-hero__title { font-size: 40px; }
  .st-hero__visual { min-height: 100vw; }
  .st-hero__body { min-width: 0; flex: 1; }
  .st-hero__body p { max-width: none; font-size: 14px; line-height: 2; }
  .st-hero__visual::before { left: auto; right: 20px; top: -50px; bottom: auto; width: 100px; }
  .st-prologue { padding: 90px 0 70px; }
  .st-index { grid-template-columns: 1fr; }
  .ch { padding: 90px 0; }
  .ch__head { margin-bottom: 40px; gap: 18px; }
  .ch__num { font-size: 64px; }
  .ch__grid, .wide-visual { grid-template-columns: 1fr; gap: 50px; }
  .ch__grid--rev > :first-child { order: 0; }
  .frame { margin-right: 24px; }
  .points { grid-template-columns: 1fr; }
  .point:nth-child(odd) { border-right: 0; }
  .point:nth-child(even) { padding-left: 0; }
  .values4 { grid-template-columns: repeat(2, 1fr); }
  .recline { grid-template-columns: 1fr; }
  .wide-visual__img { min-height: 70vw; }
  .wide-visual__body { padding: 40px 28px; }
  .st-epilogue::before { width: 320px; top: -170px; }
  .st-epilogue .mark { margin-bottom: 70px; }
}

/* 第三章：GIF（上下の文字部分を隠して映像部分のみ表示） */
.frame--gif .frame__img { aspect-ratio: 846 / 488; background: #e9eef0; }
.frame--gif .frame__img img {
  position: absolute; max-width: none; width: 124.11%; height: auto; left: -12.06%; top: -69.88%;
  object-fit: fill; transition: none;
}
.frame--gif:hover .frame__img img { transform: none; }
.frame--gif::after { display: none; }
.frame--gif .frame__img { box-shadow: 24px 24px 0 -1px var(--washi), 24px 24px 0 0 var(--red); overflow: hidden; }
.frame--gif .frame__cap { margin-top: 48px; }

/* ---------- 漆 日本の拠点（ショールーム写真モザイク） ---------- */
.jp-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; z-index: 1; }
.jp-mosaic figure { margin: 0; overflow: hidden; background: var(--washi-2); }
.jp-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.jp-mosaic figure:hover img { transform: scale(1.03); }
.jp-mosaic__a { grid-column: span 4; aspect-ratio: 16 / 10; }
.jp-mosaic__b { grid-column: span 2; }
.jp-mosaic__b img { object-position: 50% 35%; }
.jp-mosaic__c, .jp-mosaic__d { grid-column: span 3; aspect-ratio: 16 / 10; }
.jp-text { max-width: 40em; margin: 70px auto 0; text-align: center; position: relative; z-index: 1; }
.jp-text p:not(.ch__lead) { color: var(--ink-2); line-height: 2.1; }
.jp-note { margin-top: 22px; font-size: 12px; color: var(--muted) !important; }
@media (max-width: 860px) {
  .jp-mosaic { grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 -24px; }
  .jp-mosaic__a { grid-column: span 2; }
  .jp-mosaic__b { grid-column: span 2; aspect-ratio: 4 / 5; }
  .jp-mosaic__c, .jp-mosaic__d { grid-column: span 1; aspect-ratio: 1; }
  .jp-text { margin-top: 44px; text-align: left; }
}

/* 見出しは句読点・<wbr> の位置でのみ改行（語の途中で折り返さない） */
.ch__label h2, .st-prologue blockquote, .st-epilogue h2, .st-index span { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .st-index { grid-template-columns: repeat(2, 1fr); } }@media (max-width: 860px) { .st-index { grid-template-columns: 1fr; } }
