/* =========================================================
   株式会社つむぐ
   世界観：一本の赤い糸がほどけ、絵巻のように想いの物語をたどる
   ========================================================= */

:root {
  --kinari: #f4ede0;
  --kinari-2: #ebe1cf;
  --kinari-l: #fbf6ec;
  --sumi: #2a2420;
  --sumi-2: #5d534a;
  --sumi-3: #7c7065;
  --shu: #b8432f;
  --shu-2: #de8f78;
  --ai: #1f2b40;
  --ai-2: #34466a;
  --cha: #2e2119;
  --cha-2: #4a3628;
  --anzu: #f1cfa6;
  --line: rgba(42, 36, 32, .18);

  --mincho: "Shippori Mincho B1", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --hand: "Klee One", "Shippori Mincho B1", serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(18px, 4.4vw, 64px);

  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --fiber: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .4  0 0 0 0 .3  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--kinari);
  color: var(--sumi);
  font-family: var(--mincho);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .08em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before { /* 和紙の繊維と粒子 */
  content: "";
  position: fixed; inset: 0; z-index: 700; pointer-events: none;
  background-image: var(--noise), var(--fiber);
  opacity: .32;
  mix-blend-mode: multiply;
}
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; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--shu); color: var(--kinari); }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vt { writing-mode: vertical-rl; text-orientation: mixed; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 糸（SVG） ---------- */
.ito { fill: none; stroke: var(--shu); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ito--draw { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ---------- 朱印 ---------- */
.seal {
  display: inline-grid; place-items: center;
  writing-mode: vertical-rl;
  background: var(--shu); color: var(--kinari-l);
  font-weight: 600; letter-spacing: .12em; line-height: 1;
  border-radius: 3px;
  filter: url(#ink);
}

/* ---------- 文字の立ち上がり ---------- */
[data-split] .ch {
  display: inline;
  opacity: 0; filter: blur(8px);
  transition: opacity 1.4s var(--ease), filter 1.4s var(--ease);
  transition-delay: calc(var(--i) * 70ms + var(--d, 0ms));
}
[data-split].is-in .ch { opacity: 1; filter: blur(0); }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); transition-delay: var(--d, 0ms); }
.vt[data-reveal], [data-reveal].vt { transform: translateY(-24px); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   読み込み：霞が晴れる
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 1000; overflow: hidden; background: var(--kinari); transition: background 1.2s; }
.no-loader .loader { display: none; }
.loader__kasumi { position: absolute; inset: -4vh -20vw; }
.kasumi {
  position: absolute; height: var(--h, 11vh);
  border-radius: 999px;
  background: var(--kinari-l);
  box-shadow: 0 0 0 1px rgba(184, 67, 47, .05), 0 4px 22px rgba(170, 110, 78, .28), inset 0 -6px 14px rgba(224, 180, 150, .18);
  transition: transform 2s var(--ease-io);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.loader__center {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  transition: opacity .8s var(--ease), transform 1s var(--ease);
}
.loader .seal { width: 76px; height: 108px; font-size: 26px; transform: scale(1.35); opacity: 0; transition: transform .7s cubic-bezier(.5, 0, .3, 1.4), opacity .3s; }
.loader.is-stamp .seal { transform: none; opacity: 1; }
.loader__ito { width: 220px; height: 30px; overflow: visible; }
.loader__ito path { stroke-dashoffset: calc(1 - var(--p, 0)); }
.loader__msg { font-size: 17px; letter-spacing: .32em; color: var(--sumi-2); }
.loader__count { font-size: 15px; letter-spacing: .3em; color: var(--sumi-3); min-height: 2em; }
.loader.is-done .loader__center { opacity: 0; transform: translateY(-14px); }
.loader.is-open { background: transparent; }
.loader.is-open .kasumi { transform: translateX(var(--to, -140vw)); }
.loader.is-open .kasumi:nth-child(even) { --to: 140vw; }

/* =========================================================
   上部：印と目次
   ========================================================= */
.site-mark {
  position: fixed; top: 22px; left: var(--gutter); z-index: 600;
  display: flex; align-items: center; gap: 14px;
  transition: color .6s, opacity .6s;
}
.site-mark .seal { width: 38px; height: 54px; font-size: 13px; }
.site-mark__name { font-size: 16px; letter-spacing: .3em; }
.mokuji-btn {
  position: fixed; top: 22px; right: var(--gutter); z-index: 650;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: color .6s;
}
.mokuji-btn__lines { display: flex; gap: 5px; height: 30px; }
.mokuji-btn__lines i { display: block; width: 1px; height: 100%; background: currentColor; transition: transform .7s var(--ease); transform-origin: top; }
.mokuji-btn__lines i:nth-child(2) { background: var(--shu); }
.mokuji-btn:hover .mokuji-btn__lines i:nth-child(1) { transform: scaleY(.6); }
.mokuji-btn:hover .mokuji-btn__lines i:nth-child(3) { transform: scaleY(.8); }
.mokuji-btn__label { writing-mode: vertical-rl; font-size: 17px; letter-spacing: .4em; }
.is-dark .site-mark, .is-dark .mokuji-btn { color: var(--kinari-l); }
.is-open-mokuji .mokuji-btn { color: var(--sumi); }
.is-open-mokuji .mokuji-btn__lines i { transform-origin: center; }
.is-open-mokuji .mokuji-btn__lines i:nth-child(1) { transform: translateX(6px) rotate(45deg); }
.is-open-mokuji .mokuji-btn__lines i:nth-child(2) { opacity: 0; }
.is-open-mokuji .mokuji-btn__lines i:nth-child(3) { transform: translateX(-6px) rotate(-45deg); }

/* 目次（縦書き・右から左） */
.mokuji {
  position: fixed; inset: 0; z-index: 640;
  background: var(--kinari) var(--noise);
  background-blend-mode: multiply;
  display: flex; align-items: center; justify-content: center;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.1s var(--ease-io);
  visibility: hidden;
}
.is-open-mokuji .mokuji { clip-path: inset(0 0 0 0); visibility: visible; }
.mokuji__inner { display: flex; flex-direction: row-reverse; gap: clamp(18px, 3.4vw, 54px); align-items: flex-start; max-width: 100%; padding: 0 var(--gutter); overflow-x: auto; }
.mokuji__title { writing-mode: vertical-rl; font-size: 16px; letter-spacing: .6em; color: var(--shu); padding-left: clamp(10px, 3vw, 40px); border-left: 1px solid var(--line); }
.mokuji a {
  writing-mode: vertical-rl; display: flex; gap: 14px; align-items: center;
  font-size: clamp(20px, 2.1vw, 28px); letter-spacing: .3em;
  opacity: 0; transform: translateY(-16px);
  transition: opacity .7s, transform 1s var(--ease), color .4s;
}
.is-open-mokuji .mokuji a { opacity: 1; transform: none; transition-delay: calc(.35s + var(--i) * 70ms); }
.mokuji a small { font-size: 12px; color: var(--sumi-3); letter-spacing: .3em; }
.mokuji a .num { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 16px; letter-spacing: 0; writing-mode: horizontal-tb; transition: background .4s, color .4s, border-color .4s; }
.mokuji a:hover { color: var(--shu); }
.mokuji a:hover .num { background: var(--shu); color: var(--kinari); border-color: var(--shu); }

/* しおり（右端の読書位置） */
.shiori {
  position: fixed; right: calc(var(--gutter) + 6px); top: 50%; z-index: 550;
  height: 38vh; transform: translateY(-40%);
  width: 20px; display: flex; justify-content: center;
  transition: color .6s, opacity .6s;
}
.shiori::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: currentColor; opacity: .25; }
.shiori__fill { position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background: var(--shu); transform-origin: top; transform: scaleY(var(--page, 0)); }
.shiori a { position: absolute; left: 50%; top: var(--at); width: 20px; height: 20px; margin: -10px 0 0 -10px; display: grid; place-items: center; }
.shiori a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; transition: transform .5s var(--ease), background .4s, opacity .4s; }
.shiori a.is-active::before { background: var(--shu); opacity: 1; transform: scale(1.8); }
.shiori a span { position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; font-size: 16px; letter-spacing: .2em; opacity: 0; transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.shiori a:hover span, .shiori a.is-active span { opacity: 1; transform: translate(0, -50%); }
.is-dark .shiori { color: var(--kinari-l); }
.shiori.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 1100px) { .shiori { display: none; } }

/* =========================================================
   章の見出し（縦）
   ========================================================= */
.shou { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 22px; }
.shou__num {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid currentColor; display: grid; place-items: center;
  font-size: 18px; letter-spacing: 0; flex: none; position: relative;
}
.shou__num::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--shu); opacity: .5; clip-path: inset(0 0 50% 0); }
.shou__ttl { writing-mode: vertical-rl; font-size: clamp(34px, 4.4vw, 60px); letter-spacing: .3em; line-height: 1; font-weight: 500; }
.shou__sub { writing-mode: vertical-rl; font-size: 18px; letter-spacing: .3em; color: var(--sumi-2); padding-top: .4em; }
.is-darkbg .shou__sub { color: rgba(251, 246, 236, .6); }

/* =========================================================
   序：夜明けの山並み
   ========================================================= */
.jo { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.jo__scene { position: absolute; inset: 0; }
.jo__scene svg { width: 100%; height: 100%; }
.jo__layer { will-change: transform; }
.jo__house-win { animation: tomoru 5s ease-in-out infinite; }
.jo__house-win--2 { animation-delay: -2.5s; }
@keyframes tomoru { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.jo__ito path { stroke-width: 1.8; }
.is-ready .jo__ito path { transition: stroke-dashoffset 4.2s var(--ease-io) .9s; stroke-dashoffset: 0; }

.jo__kasumi { position: absolute; inset: 0; pointer-events: none; }
.jo__kasumi .k-wrap { position: absolute; will-change: transform; }
.jo__kasumi .kasumi { position: relative; display: block; animation: tadayou var(--t, 14s) ease-in-out infinite alternate; transition: none; }
@keyframes tadayou { from { transform: translateX(-2.5vw); } to { transform: translateX(2.5vw); } }

.jo__copy {
  position: absolute; top: max(90px, 11vh); right: clamp(40px, 20vw, 340px); z-index: 1;
  writing-mode: vertical-rl;
  font-size: clamp(24px, min(3.6vw, 4.6vh), 52px); font-weight: 500;
  line-height: 1.9; letter-spacing: .26em;
  text-shadow: 0 0 24px rgba(251, 246, 236, .9);
}
.jo__copy > span { display: block; white-space: nowrap; }
.jo__copy > span:nth-child(2) { padding-top: 1.2em; }
.jo__copy > span:nth-child(3) { padding-top: 2.2em; color: var(--shu); }
.jo__copy::before { /* 文字の背後にうすい霞 */
  content: ""; position: absolute; inset: -10% -35%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(246, 236, 222, .9) 50%, rgba(246, 236, 222, 0) 100%);
}
.jo__name {
  position: absolute; left: var(--gutter); bottom: 36px;
  font-size: 16px; letter-spacing: .4em; color: var(--sumi-2);
  opacity: 0; transition: opacity 1.4s 2.4s;
}
.jo__hint { /* 「ひもとく」：巻物をひらく合図 */
  position: absolute; left: 50%; bottom: 0; z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--kinari-l);
  opacity: 0; transition: opacity 1.4s 2.6s;
}
.jo__hint svg { width: 34px; height: 22px; overflow: visible; }
.jo__hint svg path { fill: none; stroke: var(--shu-2); stroke-width: 1.6; stroke-linecap: round; }
.jo__hint span {
  writing-mode: vertical-rl;
  font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: .5em; line-height: 1;
  padding: 1.3em .6em .8em;
  background: var(--kinari-l); color: var(--sumi);
  box-shadow: 0 14px 30px -12px rgba(20, 26, 34, .55), inset 0 0 0 1px rgba(184, 67, 47, .25);
  position: relative;
  animation: hiraku 3.2s ease-in-out infinite;
  transition: letter-spacing .6s var(--ease), background .4s, color .4s;
}
.jo__hint span::before { /* 短冊の穴 */
  content: ""; position: absolute; top: .45em; left: 50%; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--shu);
}
@keyframes hiraku { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(5px) rotate(-1.5deg); } }
.jo__hint:hover span { letter-spacing: .6em; background: var(--shu); color: var(--kinari-l); }
.jo__hint:hover span::before { box-shadow: inset 0 0 0 1.5px var(--kinari-l); }
.jo__hint i { width: 1.5px; height: 70px; background: rgba(251, 246, 236, .35); position: relative; overflow: hidden; }
.jo__hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--shu-2); animation: shizuku 2.6s var(--ease-io) infinite; }
@keyframes shizuku { to { top: 100%; } }
.is-ready .jo__name, .is-ready .jo__hint { opacity: 1; }
@media (max-width: 768px) {
  .jo__copy { right: 26px; top: 90px; transform: none; font-size: clamp(22px, 6.4vw, 30px); }
  .jo__copy > span:nth-child(2) { padding-top: 1em; }
  .jo__copy > span:nth-child(3) { padding-top: 2em; }
}

/* =========================================================
   第一章：糸（使命・願い）
   ========================================================= */
.ito-sec { position: relative; height: 330vh; min-height: 2000px; }
.ito-sec__line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ito-sec__line path { stroke-width: 1.7; stroke-dashoffset: calc(1 - min(1, var(--draw, 0) * 1.15)); }
.ito-sec .shou { position: absolute; top: 14vh; right: calc(var(--gutter) + 50px); }
.kotoba {
  position: absolute;
  display: flex; flex-direction: row-reverse; gap: 30px; align-items: flex-start;
}
.kotoba__label { writing-mode: vertical-rl; font-size: 18px; letter-spacing: .5em; color: var(--shu); border-right: 1px solid var(--shu); padding-right: 12px; }
.kotoba__text { writing-mode: vertical-rl; font-size: clamp(26px, 3.4vw, 48px); line-height: 1.9; letter-spacing: .24em; font-weight: 500; }
.kotoba__text--s { font-size: clamp(19px, 2.2vw, 30px); line-height: 2.1; }
.kotoba__text > span { display: block; white-space: nowrap; }
.kotoba--mission { top: 58vh; right: 30vw; }
.kotoba--vision { top: 168vh; left: 18vw; }
.ito-sec__musubi { position: absolute; left: 50%; top: calc(100% - var(--musubi-space, 330px)); width: 200px; margin-left: -100px; text-align: center; }
.ito-sec__musubi svg { margin: 0 auto; }
.ito-sec__musubi p { writing-mode: vertical-rl; margin: 24px auto 0; font-size: 18px; letter-spacing: .6em; color: var(--sumi-2); }
@media (max-width: 768px) {
  .ito-sec { height: 300vh; }
  .ito-sec .shou { right: 24px; }
  .kotoba--mission { top: 50vh; right: 20px; }
  .kotoba--vision { top: 160vh; left: 20px; }
  .kotoba__text { font-size: 24px; }
  .kotoba__text--s { font-size: 18px; }
}

/* =========================================================
   第二章：想い（絵巻・右から左へ）
   ========================================================= */
.emaki { position: relative; background: var(--kinari-2); }
.emaki__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.emaki__track {
  position: absolute; top: 0; right: 0; height: 100%;
  display: flex; flex-direction: row-reverse; align-items: stretch;
  width: max-content; will-change: transform;
}
.emaki__ito { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; mix-blend-mode: multiply; }
.emaki__ito path { stroke-width: 1.7; stroke-dashoffset: calc(1 - var(--prog, 0)); }
.emaki__col {
  flex: none; height: 100%;
  writing-mode: vertical-rl;
  padding: 14vh clamp(28px, 4vw, 70px) 20vh;
  font-size: clamp(17px, min(1.35vw, 2.4vh), 20px);
  line-height: 2.5; letter-spacing: .18em;
  position: relative; z-index: 2;
}
.emaki__col p + p { margin-right: 1.4em; }
.emaki__col--head { writing-mode: horizontal-tb; padding-right: clamp(80px, 12vw, 200px); padding-left: clamp(40px, 6vw, 110px); display: flex; flex-direction: row-reverse; align-items: flex-start; gap: clamp(30px, 4vw, 60px); }
.emaki__lead { white-space: nowrap; font-size: clamp(17px, 1.5vw, 22px); line-height: 2.3; }
.emaki__hint { font-size: 17px; letter-spacing: .3em; color: var(--sumi-2); display: flex; align-items: center; gap: 14px; }
.emaki__hint i { display: block; width: 1px; height: 80px; background: var(--line); position: relative; overflow: hidden; writing-mode: horizontal-tb; }
.emaki__hint b { font-weight: 400; color: var(--shu); }
.emaki__col--title { white-space: nowrap; font-size: clamp(20px, min(3.4vw, 4.4vh), 50px); line-height: 1.9; letter-spacing: .24em; font-weight: 500; padding-left: clamp(40px, 7vw, 120px); padding-right: clamp(40px, 7vw, 120px); }
.emaki__col--title em { font-style: normal; color: var(--shu); }
.emaki__col--quote p { font-family: var(--hand); font-size: 1.12em; }
.emaki__col--quote p::before { content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--shu); margin: 0 auto 1em; opacity: .8; }
.emaki__col--big { white-space: nowrap; font-size: clamp(18px, min(2.4vw, 3.8vh), 34px); line-height: 2.1; font-weight: 500; letter-spacing: .2em; }
.emaki__col--big mark { background: none; color: var(--shu); }
.emaki__col--end { padding-left: clamp(80px, 20vw, 320px); }
.emaki__sign { margin-right: 3em !important; display: flex; align-items: center; gap: 18px; font-size: 1.1em; letter-spacing: .4em; }
.emaki__sign .seal { width: 44px; height: 62px; font-size: 14px; letter-spacing: .1em; }

@media (max-width: 600px) {
  .emaki__col--head { padding-right: 40px; padding-left: 24px; gap: 18px; }
  .emaki__col--head .shou { gap: 12px; }
  .emaki__col--head .shou__sub { display: none; }
  .emaki__lead { font-size: 16px; }
  .emaki__col--head .shou__ttl { font-size: 32px; }
}
.emaki__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; height: 1px; background: var(--line); z-index: 4; }
.emaki__progress i { position: absolute; inset: 0; background: var(--shu); transform-origin: right; transform: scaleX(var(--prog, 0)); }
.emaki__progress span { position: absolute; left: 0; bottom: 10px; font-size: 16px; letter-spacing: .3em; color: var(--sumi-2); }

/* 絵（場面） */
.e {
  flex: none; height: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden;
  margin: 0 1vw;
}
.e svg { width: 100%; height: 100%; }
.e--wide { aspect-ratio: 1.35 / 1; }
.e::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .45; mix-blend-mode: multiply; pointer-events: none; }
.e__cap { position: absolute; top: 6vh; right: 3vw; writing-mode: vertical-rl; font-size: 17px; letter-spacing: .4em; z-index: 2; }
.e--night .e__cap { color: rgba(251, 246, 236, .7); }
.fuwa { animation: fuwa var(--t, 7s) ease-in-out infinite; animation-delay: var(--dl, 0s); transform-box: fill-box; transform-origin: center; }
@keyframes fuwa { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.kieru { animation: kieru var(--t, 7s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes kieru { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.yuge path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: yuge 4.5s ease-in-out infinite; }
.yuge path:nth-child(2) { animation-delay: 1.5s; }
@keyframes yuge { 0% { stroke-dashoffset: 80; opacity: 0; } 30% { opacity: .9; } 100% { stroke-dashoffset: -80; opacity: 0; } }
.mado-hikari { animation: tomoru 4s ease-in-out infinite; }

/* 言えなかった言葉（場面２） */
.e--words { background: linear-gradient(180deg, #efe6d6, #e6d9c3); }
.e--words .w {
  position: absolute; writing-mode: vertical-rl;
  font-family: var(--hand); color: var(--sumi-2); letter-spacing: .3em;
  animation: kieru var(--t, 7s) ease-in-out infinite; animation-delay: var(--dl, 0s);
}

/* =========================================================
   第三章：灯（事業）
   ========================================================= */
.tomoshibi-intro { position: relative; padding: clamp(120px, 18vh, 220px) var(--gutter) clamp(80px, 12vh, 140px); display: flex; flex-direction: row-reverse; justify-content: center; gap: clamp(30px, 6vw, 110px); }
.tomoshibi-intro__lead { white-space: nowrap; writing-mode: vertical-rl; font-size: clamp(22px, 2.6vw, 36px); line-height: 2; letter-spacing: .22em; font-weight: 500; }
.tomoshibi-intro__text { writing-mode: vertical-rl; font-size: 18px; line-height: 2.5; letter-spacing: .18em; color: var(--sumi-2); max-height: 26em; }

.hi { position: relative; height: 230vh; }
.hi__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hi__dark { position: absolute; inset: 0; }
.hi--kotsugi .hi__dark { background: #15100c; }
.hi--todokeru .hi__dark { background: var(--kinari); }
.hi__scene {
  position: absolute; inset: 0;
  clip-path: circle(var(--r, 0%) at var(--cx, 50%) var(--cy, 30%));
}
.hi__scene svg { width: 100%; height: 100%; }
.hi__scene::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .45; mix-blend-mode: multiply; pointer-events: none; }
.hi__spark { /* 灯る前の小さな光 */
  position: absolute; left: var(--cx); top: var(--cy); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #ffd79a; box-shadow: 0 0 30px 10px rgba(255, 196, 120, .55);
  opacity: calc(1 - var(--k, 0) * 3);
  animation: tomoru 2.4s ease-in-out infinite;
}
.hi--todokeru .hi__spark { background: var(--shu); box-shadow: 0 0 30px 10px rgba(222, 143, 120, .45); }
.hi__body {
  position: absolute; top: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: row-reverse; align-items: center; gap: clamp(22px, 3vw, 44px);
  padding: 90px var(--gutter);
  opacity: var(--t, 0); transform: translateY(calc((1 - var(--t, 0)) * -20px));
}
.hi--kotsugi .hi__body { left: 0; color: var(--kinari-l); padding-left: clamp(30px, 8vw, 140px); padding-right: clamp(60px, 8vw, 140px); background: linear-gradient(90deg, rgba(26, 18, 13, .78) 0%, rgba(26, 18, 13, .6) 70%, rgba(26, 18, 13, 0) 100%); }
.hi--todokeru .hi__body { right: 0; padding-right: clamp(60px, 9vw, 160px); padding-left: clamp(60px, 8vw, 140px); background: linear-gradient(270deg, rgba(251, 240, 224, .88) 0%, rgba(251, 240, 224, .7) 70%, rgba(251, 240, 224, 0) 100%); }
.hi__num { writing-mode: vertical-rl; font-size: 18px; letter-spacing: .5em; opacity: .85; align-self: flex-start; padding-top: 8vh; }
.hi__name { writing-mode: vertical-rl; font-size: clamp(34px, min(4.6vw, 7vh), 66px); letter-spacing: .24em; line-height: 1.25; font-weight: 500; align-self: flex-start; padding-top: 8vh; }
.hi__name small { display: block; font-size: max(19px, .36em); letter-spacing: .24em; opacity: .9; margin-right: .6em; padding-top: .5em; }
.hi__desc { writing-mode: vertical-rl; font-size: clamp(17px, min(1.4vw, 2.3vh), 19px); line-height: 2.2; letter-spacing: .12em; max-height: 72vh; opacity: .95; }
.hi__desc p + p { margin-right: 1em; }

/* 短冊の扉ボタン */
.tanzaku {
  position: relative; align-self: flex-end; margin-bottom: 4vh;
  writing-mode: vertical-rl;
  padding: 44px 16px 26px;
  font-size: 16px; letter-spacing: .3em;
  background: var(--kinari-l); color: var(--sumi);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5);
  transform-origin: 50% -30px;
  transition: transform .9s cubic-bezier(.3, 1.6, .5, 1), background .4s, color .4s;
}
.tanzaku::before { /* 吊り糸 */
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 1.5px; height: 40px; background: var(--shu);
}
.tanzaku::after { content: ""; position: absolute; top: 16px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--kinari-2); box-shadow: inset 0 0 0 1.5px var(--shu); }
.tanzaku:hover { transform: rotate(-5deg); background: var(--shu); color: var(--kinari-l); }
.tanzaku__arrow { display: inline-block; margin-top: 14px; color: var(--shu); transition: color .4s; }
.tanzaku:hover .tanzaku__arrow { color: inherit; }
.hi--todokeru .tanzaku { background: #fffaf1; }
.hi--todokeru .tanzaku:hover { background: var(--shu); color: var(--kinari-l); }

@media (max-width: 900px) {
  .hi__body { left: 0 !important; right: 0 !important; padding: 80px 20px 40px !important; gap: 16px; background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%); }
  .hi--kotsugi .hi__body { background: rgba(21, 16, 12, .62); }
  .hi--todokeru .hi__body { background: rgba(251, 244, 232, .84); }
  .hi__name { font-size: 28px; padding-top: 0; }
  .hi__num { display: none; }
  .hi__desc { font-size: 15px; line-height: 1.9; letter-spacing: .06em; max-height: 64vh; }
  .hi__body { align-items: flex-start; }
  .hi__body { padding-bottom: 130px !important; }
  .hi__desc { max-height: calc(100svh - 80px - 140px - var(--name-h, 0px)); }
  .tanzaku {
    position: absolute; left: 20px; right: 20px; bottom: 32px; margin: 0;
    writing-mode: horizontal-tb; text-align: center;
    padding: 14px 20px 14px 40px; font-size: 15px; letter-spacing: .2em;
    transform-origin: 50% -20px;
  }
  .tanzaku::before { height: 18px; }
  .tanzaku::after { top: 50%; left: 20px; margin: -4px 0 0; }
  .tanzaku__arrow { display: block; margin-top: 2px; font-size: 14px; }
  .tanzaku:hover { transform: rotate(-2deg); }
  .hi--todokeru .tanzaku { left: 20px; }
}

/* =========================================================
   第四章：便り（お知らせ）
   ========================================================= */
.tayori { padding: clamp(120px, 16vh, 200px) var(--gutter); display: grid; grid-template-columns: 1fr auto; gap: clamp(30px, 6vw, 110px); max-width: 1320px; margin: 0 auto; }
.tayori__list { border-top: 1px solid var(--sumi); align-self: start; }
.tayori__item { border-bottom: 1px solid var(--line); }
.tayori__item button { width: 100%; display: grid; grid-template-columns: 112px 1fr 30px; gap: 26px; align-items: center; padding: 26px 0; text-align: left; }
.keshiin { /* 消印 */
  width: 104px; height: 104px; border-radius: 50%; border: 1.5px solid var(--shu); color: var(--shu);
  display: grid; place-items: center; text-align: center;
  font-size: 12px; line-height: 1.5; letter-spacing: .06em;
  position: relative; filter: url(#ink);
  transform: rotate(-8deg);
}
.keshiin::before, .keshiin::after { content: ""; position: absolute; left: -10px; right: -10px; height: 1.5px; background: var(--shu); }
.keshiin::before { top: 34%; } .keshiin::after { bottom: 34%; }
.keshiin b { font-weight: 600; font-size: 16px; display: block; background: var(--kinari); position: relative; z-index: 1; padding: 0 2px; }
.tayori__meta { display: block; font-size: 16px; letter-spacing: .24em; color: var(--sumi-3); margin-bottom: 6px; }
.tayori__ttl { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.9; }
.tayori__plus { width: 22px; height: 22px; position: relative; justify-self: end; }
.tayori__plus::before, .tayori__plus::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--sumi); transition: transform .6s var(--ease); }
.tayori__plus::after { transform: rotate(90deg); }
.tayori__item.is-open .tayori__plus::after { transform: rotate(0); }
.tayori__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.tayori__body > div { overflow: hidden; }
.tayori__body p { padding: 0 0 30px 138px; color: var(--sumi-2); line-height: 2.2; font-size: 17px; }
.tayori__item.is-open .tayori__body { grid-template-rows: 1fr; }
.tayori__item button:hover .tayori__ttl { color: var(--shu); }
@media (max-width: 768px) {
  .tayori { grid-template-columns: 1fr; }
  .tayori > .shou { order: -1; justify-self: end; }
  .tayori__item button { grid-template-columns: 86px 1fr 22px; gap: 14px; }
  .keshiin { width: 80px; height: 80px; font-size: 11px; }
  .keshiin b { font-size: 13px; }
  .tayori__body p { padding-left: 0; }
}

/* =========================================================
   第五章：奥付（会社概要）
   ========================================================= */
.okuzuke { padding: clamp(100px, 14vh, 180px) var(--gutter); display: flex; flex-direction: column; align-items: center; background: var(--kinari-2); position: relative; }
.okuzuke .shou { margin-bottom: 60px; }
.okuzuke__box {
  writing-mode: vertical-rl;
  border: 1px solid var(--sumi); outline: 1px solid var(--sumi); outline-offset: 6px;
  padding: 48px 40px; height: clamp(640px, 80vh, 760px);
  display: block; max-width: 100%; overflow-x: auto;
  background: var(--kinari-l);
  position: relative;
}
.okuzuke__row { display: block; padding: 0 10px; border-left: 1px solid var(--line); }
.okuzuke__row dt { margin-left: 10px; }
.okuzuke__row:last-of-type { border-left: 0; }
.okuzuke__row dt { font-size: 18px; letter-spacing: .5em; color: var(--shu); white-space: nowrap; }
.okuzuke__row dd { font-size: 18px; line-height: 2; letter-spacing: .1em; }
.okuzuke__row dd small { color: var(--sumi-2); font-size: 16px; }
.okuzuke__row--name dd { font-size: 28px; letter-spacing: .4em; font-weight: 500; }
.okuzuke__seal { margin-right: 26px; text-align: left; }
.okuzuke__seal .seal { writing-mode: vertical-rl; }
.okuzuke__seal .seal { width: 56px; height: 80px; font-size: 18px; }
.tbd { color: var(--sumi-3); }
@media (max-width: 1320px) {
  .okuzuke__box { writing-mode: horizontal-tb; height: auto; padding: clamp(28px, 5vw, 50px) clamp(22px, 5vw, 50px); width: 100%; max-width: 720px; }
  .okuzuke__row { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .okuzuke__row dt { margin: 0 0 4px; }
  .okuzuke__seal { margin: 20px 0 0; text-align: right; }
}

/* =========================================================
   第六章：文（お問い合わせ）
   ========================================================= */
.fumi { padding: clamp(120px, 16vh, 200px) var(--gutter); display: grid; grid-template-columns: minmax(0, 760px) auto; justify-content: center; gap: clamp(40px, 7vw, 120px); align-items: start; }
.fumi__intro { display: flex; flex-direction: row-reverse; gap: 36px; position: sticky; top: 120px; }
.fumi__lead { white-space: nowrap; writing-mode: vertical-rl; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: .24em; line-height: 2; font-weight: 500; }
.fumi__note { writing-mode: vertical-rl; font-size: 18px; color: var(--sumi-2); line-height: 2.4; letter-spacing: .14em; max-height: 24em; }
.binsen { /* 便箋 */
  background: var(--kinari-l);
  padding: clamp(32px, 4vw, 56px) clamp(22px, 4vw, 56px) clamp(32px, 4vw, 48px) clamp(40px, 5vw, 76px);
  box-shadow: 0 30px 60px -40px rgba(60, 40, 20, .5), 0 0 0 1px rgba(42, 36, 32, .06);
  position: relative;
}
.binsen::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(18px, 2.4vw, 36px); width: 1px; background: rgba(184, 67, 47, .3); }
.binsen__head { font-size: 16px; line-height: 2; color: var(--sumi-2); padding-bottom: 22px; margin-bottom: 34px; border-bottom: 1px dashed var(--line); }
.binsen__head > span { display: block; }
.binsen__head .hissu { margin-right: 6px; }
.f-item { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.f-label { display: flex; gap: 10px; align-items: center; padding: 0; margin-bottom: 10px; font-size: 17px; letter-spacing: .18em; }
.hissu { font-size: 12px; color: var(--shu); border: 1px solid var(--shu); border-radius: 2px; padding: 0 6px; letter-spacing: .1em; line-height: 1.8; }
.f-item input[type="text"], .f-item input[type="email"], .f-item textarea {
  display: block; width: 100%; font: inherit; font-family: var(--hand); font-size: 16px; letter-spacing: .06em; color: var(--sumi);
  background: #fffaf2; border: 1px solid rgba(42, 36, 32, .2); border-radius: 3px; padding: 12px 14px;
  transition: border-color .3s, box-shadow .3s;
}
.f-item input::placeholder, .f-item textarea::placeholder { color: #b4a898; }
.f-item textarea {
  min-height: 230px; resize: vertical; line-height: 32px; padding: 4px 14px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(184, 67, 47, .15) 31px 32px);
  background-position: 0 4px; background-attachment: local;
}
.f-item input:focus, .f-item textarea:focus { outline: none; border-color: var(--shu); box-shadow: 0 0 0 3px rgba(184, 67, 47, .12); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.yoken { display: flex; flex-wrap: wrap; gap: 10px; }
.yoken label { position: relative; }
.yoken input { position: absolute; opacity: 0; }
.yoken span { white-space: nowrap; display: inline-block; padding: 8px 18px; border: 1px solid rgba(42, 36, 32, .2); border-radius: 999px; font-size: 16px; cursor: pointer; transition: .3s; background: #fffaf2; }
.yoken span:hover { border-color: var(--shu); }
.yoken input:checked + span { background: var(--shu); color: var(--kinari-l); border-color: var(--shu); }
.yoken input:focus-visible + span { outline: 2px solid var(--shu); outline-offset: 2px; }
.f-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px dashed var(--line); }
.doui { display: flex; gap: 12px; align-items: center; font-size: 16px; cursor: pointer; }
.doui input { width: 18px; height: 18px; accent-color: var(--shu); }
.toukan { /* 投函ボタン */
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 40px; background: var(--shu); color: var(--kinari-l);
  font-size: 16px; letter-spacing: .5em; border-radius: 2px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: letter-spacing .6s var(--ease);
}
.toukan::before { content: ""; position: absolute; inset: 0; background: var(--sumi); transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.toukan:hover::before { transform: none; }
.toukan:hover { letter-spacing: .6em; }
.toukan svg { width: 26px; }
.toukan svg path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.binsen.is-sent > *:not(.todoita) { display: none; }
.todoita { display: none; text-align: center; padding: 40px 0; }
.binsen.is-sent .todoita { display: block; }
.todoita svg { width: 180px; margin: 0 auto 30px; overflow: visible; }
.todoita .fuutou { fill: var(--kinari-l); stroke: var(--sumi); stroke-width: 1.2; stroke-linejoin: round; }
.todoita .futa { transform-origin: 50% 0%; transform-box: fill-box; animation: futa 1s var(--ease) .3s both; }
.todoita .in { fill: var(--shu); transform-origin: center; transform-box: fill-box; animation: in .6s var(--ease) 1.2s both; }
.todoita .tobu { animation: tobu 1.8s var(--ease-io) 2.2s both; }
.todoita .ito--draw { animation: hiku 1.8s var(--ease-io) 2.2s forwards; }
@keyframes futa { from { transform: scaleY(-1); } to { transform: scaleY(1); } }
@keyframes in { from { transform: scale(0); } 60% { transform: scale(1.3); } to { transform: scale(1); } }
@keyframes tobu { 0% { transform: none; } 25% { transform: translate(-6px, 6px) rotate(-4deg); } 100% { transform: translate(280px, -180px) rotate(14deg) scale(.4); opacity: 0; } }
@keyframes hiku { to { stroke-dashoffset: 0; } }
.todoita h3 { font-size: 22px; font-weight: 500; letter-spacing: .24em; }
.todoita p { margin-top: 16px; color: var(--sumi-2); line-height: 2.2; }
@media (max-width: 1180px) {
  .fumi { grid-template-columns: minmax(0, 760px); }
  .fumi__intro { order: -1; position: static; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .f-grid { grid-template-columns: 1fr; }
  .f-foot { flex-direction: column; align-items: stretch; }
  .toukan { justify-content: center; }
}

/* =========================================================
   結び（フッター）
   ========================================================= */
.musubi { background: var(--cha); color: var(--kinari-l); padding: 110px var(--gutter) 40px; position: relative; overflow: hidden; }
.musubi::before { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .5; mix-blend-mode: soft-light; pointer-events: none; }
.musubi__inner { position: relative; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.musubi__main { display: flex; flex-direction: row-reverse; gap: 30px; align-items: flex-start; }
.musubi__main .seal { width: 56px; height: 80px; font-size: 18px; }
.musubi__copy { writing-mode: vertical-rl; font-size: 18px; letter-spacing: .3em; line-height: 2.2; }
.musubi__nav { display: flex; flex-direction: row-reverse; gap: 20px; }
.musubi__nav a { writing-mode: vertical-rl; font-size: 17px; letter-spacing: .3em; opacity: .9; transition: opacity .3s, color .3s; }
.musubi__nav a:hover { opacity: 1; color: var(--shu-2); }
.musubi__svc { display: flex; flex-direction: row-reverse; gap: 16px; }
.musubi__svc a { writing-mode: vertical-rl; font-size: 17px; letter-spacing: .3em; padding: 18px 10px; border: 1px solid rgba(251, 246, 236, .3); transition: background .4s, color .4s; }
.musubi__svc a:hover { background: var(--kinari-l); color: var(--cha); }
.musubi__ito { position: relative; margin-top: 70px; height: 60px; }
.musubi__ito svg { width: 100%; height: 100%; }
.musubi__ito path { vector-effect: non-scaling-stroke; }
.musubi__bottom { position: relative; display: flex; justify-content: space-between; margin-top: 20px; font-size: 14px; letter-spacing: .2em; opacity: .85; gap: 20px; flex-wrap: wrap; }
.musubi__bottom button { letter-spacing: .3em; }
@media (max-width: 768px) { .musubi__inner { flex-direction: column; align-items: flex-end; } }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-split] .ch, [data-reveal] { opacity: 1; transform: none; filter: none; }
  .ito--draw { stroke-dashoffset: 0 !important; }
}

.musubi__bottom small { font-size: inherit; }

/* 日本語の改行を自然に（句読点・小書き文字の行頭を避ける） */
body { line-break: strict; word-break: normal; }
.hi__name, .shou__ttl, .kotoba__text, .jo__copy { white-space: nowrap; }

/* =========================================================
   スマホ：上部バーと目次・はみ出し対策
   ========================================================= */
html { overflow-x: hidden; }
.topbar { display: none; }
@media (max-width: 768px) {
  .topbar {
    display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 590;
    height: calc(64px + env(safe-area-inset-top, 0px));
    background: rgba(244, 237, 224, .9);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 var(--line);
    transition: background .5s;
  }
  .is-dark .topbar { background: rgba(26, 20, 16, .82); box-shadow: 0 1px 0 rgba(251, 246, 236, .12); }
  .is-open-mokuji .topbar { background: transparent; box-shadow: none; }
  .site-mark { top: calc(10px + env(safe-area-inset-top, 0px)); left: 16px; gap: 10px; }
  .site-mark .seal { width: 30px; height: 44px; font-size: 11px; }
  .site-mark__name { font-size: 15px; letter-spacing: .2em; }
  .mokuji-btn {
    top: calc(12px + env(safe-area-inset-top, 0px)); right: 16px;
    flex-direction: row; gap: 10px; align-items: center;
    padding: 8px 14px; border: 1px solid currentColor; border-radius: 999px;
  }
  .mokuji-btn__lines { height: 18px; gap: 4px; }
  .mokuji-btn__label { writing-mode: horizontal-tb; font-size: 15px; letter-spacing: .3em; margin-right: -.3em; }

  /* 目次：スマホでは横書きの一覧に */
  .mokuji { align-items: flex-start; padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .mokuji__inner { flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding: 0 24px; overflow: visible; }
  .mokuji__title { writing-mode: horizontal-tb; border-left: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); letter-spacing: .4em; }
  .mokuji a { writing-mode: horizontal-tb; transform: translateX(-16px); font-size: 20px; letter-spacing: .2em; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 18px; }
  .mokuji a .num { width: 38px; height: 38px; font-size: 15px; flex: none; }

  /* 章の導入：縦書きが横に並びきらないので、折り返して右から詰める */
  .tomoshibi-intro, .fumi__intro { flex-wrap: wrap; justify-content: flex-start; row-gap: 40px; }
  .tomoshibi-intro { padding-top: 110px; }
  .tomoshibi-intro__text, .fumi__note { max-height: 21em; }
  .shou__ttl { font-size: 34px; }
}
/* =========================================================
   文節での改行・読みやすさの調整
   ========================================================= */
.tomoshibi-intro__text, .tayori__ttl, .tayori__body p, .okuzuke__row dd, .binsen__head, .doui span, .fumi__note, .todoita p {
  word-break: keep-all; overflow-wrap: anywhere;
}
.jigyo { counter-reset: jg; }
.jigyo li { counter-increment: jg; position: relative; padding-inline-start: 2.2em; }
.jigyo li + li { margin-block-start: .8em; }
.jigyo li::before { content: counter(jg, cjk-decimal) "、"; position: absolute; inset-inline-start: 0; inset-block-start: 0; }
.jigyo li > span { display: block; }
.jigyo li > small { display: block; }

/* 左下の社名：暗い山並みの上でも読めるように */
.jo__name { color: rgba(251, 246, 236, .85); }

/* 絵巻の進み具合：どの場面の上でも読めるよう、札にして糸より下へ */
.emaki__progress { bottom: 16px; left: calc(var(--gutter) + 9.5em); }
.emaki__progress span {
  left: -9.5em; bottom: -.95em; white-space: nowrap;
  padding: .15em .8em; border-radius: 999px;
  background: rgba(244, 237, 224, .92); color: var(--sumi);
}

@media (max-width: 768px) {
  .jo__name { display: none; }
  .e__cap { top: 84px; }
  .emaki__progress { left: calc(16px + 9.5em); right: 16px; }
}@media (max-width: 768px) {
  .jo__hint { bottom: 18px; gap: 0; }
  .jo__hint svg, .jo__hint i { display: none; }
  .jo__hint span { font-size: 21px; }
}
/* 「ひもとく」：赤い糸から短い紐で吊るす（位置は main.js が糸に合わせて計算） */
.jo__hint { gap: 0; }
.jo__hint svg, .jo__hint i { display: none; }
.jo__hint.is-hung { top: var(--hy); bottom: auto; }
.jo__hint span { font-size: clamp(19px, min(2vw, 2.9vh), 28px); overflow: visible; }
.jo__hint span::after { /* 吊り紐 */
  content: ""; position: absolute; left: 50%; bottom: calc(100% - .45em - 7px); width: 1.5px; height: calc(.45em + 7px + 16px);
  margin-left: -.75px; background: var(--shu);
}
/* 本文の最終行が数文字だけにならないように */
p, dd, li { text-wrap: pretty; }@media (max-width: 768px) {
  /* 背の低い画面でも、章見出しと「使命」の文が重ならないように */
  .kotoba--mission { top: max(50vh, calc(14vh + 310px)); }
}@media (max-width: 900px) {
  /* トドケル：ろうそくの灯りが文字の奥に透けて見えるよう、下地を少し薄く */
  .hi--todokeru .hi__body { background: linear-gradient(90deg, rgba(251, 244, 232, .62), rgba(251, 244, 232, .82) 55%); }
  .hi--todokeru .hi__body :is(.hi__name, .hi__desc) { text-shadow: 0 0 10px rgba(251, 244, 232, .95), 0 0 2px rgba(251, 244, 232, .9); }
}
/* =========================================================
   スマホ実機での調整（2026-09-27）
   ========================================================= */
/* 「ひもとく」：序の外に置き、スクロールで糸と一緒に下がりながら静かに消える */
.jo__hint { position: absolute; }
/* 絵巻の案内文：縦書きの1行として並べる */
.emaki__hint { display: block; white-space: nowrap; }
/* 会社概要の章見出しも、ほかの章と同じく右寄せに */
.okuzuke .shou { align-self: flex-end; }
/* 読み込み中はスクロールさせない */
html.is-loading, html.is-loading body { overflow: hidden !important; touch-action: none; overscroll-behavior: none; }
@media (max-width: 768px) {
  /* お問い合わせの案内文は、見出しの下に横書きで */
  .fumi__intro .fumi__note {
    writing-mode: horizontal-tb; max-height: none; flex-basis: 100%;
    font-size: 16px; line-height: 2; letter-spacing: .08em;
  }
}@media (max-width: 768px) {
  /* 説明文の書き出しを、フォーム内の案内文と同じ位置にそろえる */
  .fumi__intro .fumi__note { padding-left: clamp(40px, 5vw, 76px); padding-right: clamp(22px, 4vw, 56px); }
}
/* 事業紹介の説明文も、文節の切れ目で改行 */
.hi__desc p { word-break: keep-all; overflow-wrap: anywhere; }

