/* =========================================================
   RECODE — 比較用プレビュー
   紙（paper）と墨（ink）、朱（accent）の三色で組む。
   ========================================================= */

:root {
  --paper: #f5f3ee;
  --paper-2: #ebe7de;
  --card: #fbfaf7;
  --ink: #16191d;
  --ink-2: #474c54;
  --ink-3: #5d6168;
  --line: #d5cfc3;
  --line-strong: #b9b2a4;
  --accent: #b5391f;
  --accent-soft: #f3dfd8;
  --night: #14171b;
  --night-2: #1e2227;
  --night-text: #eeebe4;
  --night-sub: #b9b6ae;
  --accent-night: #ec7a5f;

  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", "Noto Sans CJK JP", "IPAPGothic", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }

h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-weight: 700; line-height: 1.35; letter-spacing: .03em; font-feature-settings: "palt" 1; word-break: auto-phrase; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: normal; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }
.q { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 2px;
  font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn::after {
  content: ""; width: 14px; height: 10px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 5h12M8.5 1 12.5 5 8.5 9' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 5h12M8.5 1 12.5 5 8.5 9' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }
.btn[type="button"]::after, .btn[type="reset"]::after { display: none; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--accent); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--ink); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink-2); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  height: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 28px; height: 28px; color: var(--ink); }
.brand__name { font-weight: 800; font-size: 1.125rem; letter-spacing: .22em; }

.gnav { display: flex; align-items: center; gap: 28px; }
.gnav__list { display: flex; gap: 26px; }
.gnav__list a {
  position: relative; text-decoration: none; font-size: .875rem; font-weight: 600; color: var(--ink-2);
  padding: 6px 0;
}
.gnav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.gnav__list a:hover { color: var(--ink); }
.gnav__list a:hover::after, .gnav__list a[aria-current="true"]::after { transform: scaleX(1); }
.gnav__list a[aria-current="true"] { color: var(--ink); }
.gnav__cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-size: .875rem; font-weight: 700; letter-spacing: .1em; border-radius: 2px;
  transition: background-color .25s var(--ease);
}
.gnav__cta:hover { background: var(--accent); }

.menu-btn { display: none; }

@media (max-width: 959.98px) {
  .js .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px;
    background: none; border: 0; font-size: .875rem; font-weight: 700; letter-spacing: .1em;
  }
  .menu-btn__bars { position: relative; width: 22px; height: 10px; }
  .menu-btn__bars span { position: absolute; left: 0; right: 0; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
  .menu-btn__bars span:first-child { top: 0; }
  .menu-btn__bars span:last-child { top: 8px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars span:first-child { top: 4px; transform: rotate(35deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars span:last-child { top: 4px; transform: rotate(-35deg); }

  .js .gnav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px;
    padding: 32px var(--gutter) 48px; background: var(--paper);
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .gnav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .js .gnav__list { flex-direction: column; gap: 0; }
  .js .gnav__list a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.25rem; color: var(--ink); }
  .js .gnav__list a::after { display: none; }
  .js .gnav__cta { min-height: 56px; justify-content: center; font-size: 1rem; }
  html:not(.js) .site-header { position: static; height: auto; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .gnav { flex-wrap: wrap; gap: 12px; }
  html:not(.js) .gnav__list { flex-wrap: wrap; gap: 4px 18px; }
}
body.menu-open { overflow: hidden; }
/* backdrop-filter は固定配置の子要素の基準になるため、メニュー表示中は外す */
body.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); border-bottom-color: var(--line); }

/* ---------- section heads ---------- */
.section { padding-block: clamp(88px, 12vw, 160px); }
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head__no {
  display: flex; align-items: center; gap: 14px;
  font-size: .875rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-2);
  margin-bottom: 20px;
}
.sec-head__no span { font-family: var(--mono); color: var(--accent); letter-spacing: .04em; }
.sec-head__no::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }
.sec-head__title { font-size: clamp(1.75rem, 3.8vw, 2.875rem); line-height: 1.4; }
.sec-head__lead { margin-top: 22px; color: var(--ink-2); max-width: 40em; word-break: auto-phrase; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(72px, 9vw, 120px); }
.hero__grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) {
  .hero { min-height: min(100svh, 920px); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 1.08fr 1fr; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .875rem; font-weight: 700; letter-spacing: .16em; color: var(--accent);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.hero__title { font-size: clamp(2.375rem, 10.5vw, 4.25rem); line-height: 1.24; letter-spacing: .02em; font-feature-settings: "palt" 1; }
@media (min-width: 960px) { .hero__title { font-size: clamp(3rem, 4.8vw, 4.25rem); } }
.hero__title .line { display: block; }
.hero__title em, .manifesto__title em {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .09em;
  padding-bottom: .04em;
}
.js .hero__title em { background-size: 0 .09em; transition: background-size 1.1s var(--ease) .5s; }
.js .is-ready .hero__title em, .js.is-ready .hero__title em { background-size: 100% .09em; }
.hero__lead { margin-top: 22px; max-width: 30em; color: var(--ink-2); word-break: auto-phrase; }
.hero__pair { font-feature-settings: "palt" 1; margin-top: 30px; display: grid; gap: 4px; font-weight: 700; font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.7; }
.hero__pair li { display: flex; align-items: center; gap: 12px; }
.hero__pair li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }
.hero__pair li:last-child::before { background: transparent; border: 1.5px dashed var(--accent); width: 9px; height: 9px; }
.hero__means { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__means li { padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--ink-2); line-height: 1.7; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479.98px) { .hero__actions .btn { flex: 1 1 100%; } }

.hero__figure { position: relative; width: 100%; max-width: 560px; justify-self: center; }
.tangle {
  position: relative; aspect-ratio: 1 / 1;
  background-color: var(--card);
  background-image: radial-gradient(circle at 1px 1px, #cfc8ba 1px, transparent 1.4px);
  background-size: 20px 20px; background-position: 10px 10px;
  border: 1px solid var(--line);
}
.tangle::before, .tangle::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--ink);
}
.tangle::before { top: -6px; left: -6px; border-top-width: 1.5px; border-left-width: 1.5px; }
.tangle::after { bottom: -6px; right: -6px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.tangle__svg { width: 100%; height: 100%; overflow: visible; }
.tangle__edges path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.tangle__extra path { fill: none; stroke: #8f897d; stroke-width: 1.3; stroke-dasharray: 4 5; }
.tangle__flow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; opacity: 0; transition: opacity .6s var(--ease); }
.tangle[data-state="after"] .tangle__flow { opacity: 1; }
.tangle__node circle { fill: var(--card); stroke: var(--ink); stroke-width: 1.6; transition: fill .5s var(--ease); }
.tangle__node text { font-size: 16px; font-weight: 700; fill: var(--ink); text-anchor: middle; dominant-baseline: central; letter-spacing: 0; transition: fill .5s var(--ease); }
.tangle__node--hub.is-hub circle { fill: var(--ink); }
.tangle__node--hub.is-hub text { fill: var(--paper); }
.tangle__note rect { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1; }
.tangle__note text { font-size: 11.5px; fill: var(--ink-2); text-anchor: middle; dominant-baseline: central; letter-spacing: .05em; }

.hero__caption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin-top: 18px; font-size: .875rem; color: var(--ink-2);
}
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 2px; padding: 2px; }
.seg__btn {
  min-height: 36px; min-width: 72px; padding: 0 14px; border: 0; background: transparent;
  font-size: .875rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-2);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.seg__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg__btn:hover:not([aria-pressed="true"]) { color: var(--ink); }
html:not(.js) .seg { display: none; }

.hero__scroll { display: none; }
@media (min-width: 960px) {
  .hero__scroll {
    display: block; position: absolute; left: 50%; bottom: 28px; width: 44px; height: 44px; margin-left: -22px;
  }
  .hero__scroll span { position: absolute; left: 50%; top: 4px; width: 1px; height: 36px; background: var(--line-strong); overflow: hidden; }
  .hero__scroll span::after { content: ""; position: absolute; left: 0; top: -12px; width: 1px; height: 12px; background: var(--ink); animation: drip 2.4s var(--ease) infinite; }
}
@keyframes drip { to { transform: translateY(48px); } }

/* ---------- entry ---------- */
.entry { border-top: 1px solid var(--line); }
.doors { display: grid; gap: 20px; }
@media (min-width: 860px) { .doors { grid-template-columns: 1fr 1fr; gap: 28px; } }
.door {
  position: relative; padding: clamp(28px, 4vw, 48px);
  background: var(--card); border: 1.5px solid var(--ink);
}
.door--wish { border-style: dashed; border-color: var(--accent); background: transparent; }
.door__head { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.door__tag { font-size: .875rem; font-weight: 700; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 14px; }
.door__title { font-feature-settings: "palt" 1; font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.45; }
.door--wish .door__title .q { color: var(--accent); }
.door__label { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 10px; }
.door__list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px dotted var(--line-strong); color: var(--ink-2); line-height: 1.7; }
.door__list li:last-child { border-bottom: 0; }
.door__list li::before { content: ""; position: absolute; left: 0; top: 25px; width: 14px; height: 2px; background: var(--ink); }
.door--wish .door__list li::before { background: var(--accent); }
.entry__note {
  margin: clamp(40px, 5vw, 64px) auto 0; max-width: 46em; text-align: center;
  font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 2; word-break: auto-phrase;
}

/* ---------- view (lens) ---------- */
.view { background: var(--paper-2); }
.lens { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .lens { grid-template-columns: minmax(300px, 440px) 1fr; } }
.lens__diagram { width: 100%; max-width: 440px; justify-self: center; }
.lens__svg { width: 100%; height: auto; overflow: visible; }
.lens__lines line { stroke: var(--line-strong); stroke-width: 1.2; transition: stroke .4s var(--ease), stroke-width .4s var(--ease), opacity .4s var(--ease); opacity: .7; }
.lens__lines line.is-on { stroke: var(--accent); stroke-width: 2; opacity: 1; }
.lens__node { cursor: pointer; }
.lens__node circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; transition: fill .4s var(--ease); }
.lens__node text { font-size: 17px; font-weight: 700; fill: var(--ink); text-anchor: middle; dominant-baseline: central; letter-spacing: 0; transition: fill .4s var(--ease); }
.lens__node.is-on circle { fill: var(--ink); }
.lens__node.is-on text { fill: var(--paper); }
.lens__node .halo { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; transition: opacity .4s var(--ease); }
.lens__node.is-on .halo { opacity: 1; }

.lens__tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1.5px solid var(--ink); margin-bottom: 36px; }
.lens__tab {
  min-height: 60px; border: 0; border-left: 1px solid var(--ink); background: var(--paper);
  font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 700; letter-spacing: .06em;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lens__tab:first-child { border-left: 0; }
.lens__tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.lens__tab:hover:not([aria-selected="true"]) { background: var(--card); color: var(--accent); }
.lens__tab:focus-visible { outline-offset: -6px; outline-color: var(--accent); }
.lens__panel { min-height: 15em; }
.lens__panel:focus-visible { outline-offset: 8px; }
.lens__kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; color: var(--accent); margin-bottom: 8px; }
.lens__main { font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 700; line-height: 1.5; margin-bottom: 32px; word-break: auto-phrase; font-feature-settings: "palt" 1; }
.lens__sub { color: var(--ink-2); line-height: 2; word-break: auto-phrase; }
.js .lens__panel.is-entering { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- manifesto ---------- */
.manifesto { background: var(--night); color: var(--night-text); padding-block: clamp(100px, 14vw, 180px); position: relative; overflow: hidden; }
.manifesto :focus-visible { outline-color: var(--accent-night); }
.manifesto__no { display: flex; align-items: center; gap: 14px; font-size: .875rem; font-weight: 700; letter-spacing: .14em; color: var(--night-sub); margin-bottom: 28px; }
.manifesto__no span { font-family: var(--mono); color: var(--accent-night); letter-spacing: .04em; }
.manifesto__no::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }
.manifesto__title { font-size: clamp(1.75rem, 5.6vw, 4.5rem); line-height: 1.3; letter-spacing: .02em; font-feature-settings: "palt" 1; }
.manifesto__title .line { display: block; }
.manifesto__title em { background-image: linear-gradient(var(--accent-night), var(--accent-night)); }
.manifesto__lead { margin-top: 40px; max-width: 40em; color: var(--night-sub); font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 2.1; word-break: auto-phrase; }

.route { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 900px) { .route { grid-template-columns: 1fr 48px 1fr 48px 2.2fr; gap: 0; } }
.route__step { border: 1px solid #3a3f46; padding: 24px 26px; }
.route__k { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--night-sub); margin-bottom: 8px; }
.route__v { font-size: 1.125rem; font-weight: 700; word-break: auto-phrase; }
.route__step--means { border-color: var(--accent-night); }
.route__step--means .route__k { color: var(--accent-night); }
.route__arrow { position: relative; height: 28px; }
.route__arrow::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 4px; width: 1px; background: var(--night-sub); }
.route__arrow::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 8px; height: 8px; margin-left: -4px; border-right: 1px solid var(--night-sub); border-bottom: 1px solid var(--night-sub); transform: rotate(45deg); }
@media (min-width: 900px) {
  .route__arrow { height: auto; }
  .route__arrow::before { left: 8px; right: 8px; top: 50%; bottom: auto; width: auto; height: 1px; }
  .route__arrow::after { left: auto; right: 9px; top: 50%; bottom: auto; margin: -4px 0 0; transform: rotate(-45deg); }
}
.means { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.means li { padding: 6px 14px; border: 1px solid #555b63; border-radius: 999px; font-size: .875rem; font-weight: 600; line-height: 1.6; }
.means .means__keep { border-style: dashed; border-color: var(--accent-night); color: var(--accent-night); }
.manifesto__foot { margin-top: 28px; color: var(--night-sub); font-size: .9375rem; word-break: auto-phrase; }

/* ---------- honest ---------- */
.honest { background: var(--card); border-block: 1px solid var(--line); }
.honest__grid, .faq__grid { display: grid; gap: 8px; }
@media (min-width: 960px) {
  .honest__grid, .faq__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .sec-head--side { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
}
.checks { display: grid; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 600px) { .checks { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.check { position: relative; padding: 24px 0 24px 44px; border-bottom: 1px solid var(--line); }
.check::before {
  content: ""; position: absolute; left: 0; top: 30px; width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 2px;
}
.check::after {
  content: ""; position: absolute; left: 6px; top: 33px; width: 8px; height: 13px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(40deg) scale(1); transform-origin: center; transition: transform .4s var(--ease) .25s, opacity .3s var(--ease) .25s;
}
.js .check.reveal:not(.is-in)::after { transform: rotate(40deg) scale(.2); opacity: 0; }
.check__t { font-size: 1.125rem; margin-bottom: 4px; }
.check__d { color: var(--ink-2); font-size: .9375rem; line-height: 1.8; }

/* ---------- faq ---------- */
.faq { padding-top: 0; }
.qa { border-top: 1px solid var(--ink); }
.qa__item { border-bottom: 1px solid var(--line); }
.qa__q {
  position: relative; display: block; list-style: none; cursor: pointer;
  padding: 24px 48px 24px 0; font-weight: 700; font-size: 1.0625rem; line-height: 1.7; word-break: auto-phrase;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q::before, .qa__q::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease);
}
.qa__q::after { transform: rotate(90deg); }
.qa__item[open] .qa__q::after { transform: rotate(0deg); }
.qa__q:hover { color: var(--accent); }
.qa__q:focus-visible { outline-offset: -2px; }
.qa__a { padding: 0 48px 28px 0; color: var(--ink-2); line-height: 2; }
.qa__a p { word-break: auto-phrase; }

/* ---------- consult ---------- */
.consult { background: var(--paper-2); padding-block: clamp(88px, 12vw, 160px); border-top: 1px solid var(--line); }
.consult__grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 1000px) { .consult__grid { grid-template-columns: 1fr 1.05fr; } }
.consult__title { font-size: clamp(1.625rem, 4.2vw, 3.125rem); line-height: 1.4; }
.consult__status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 10px 16px;
  border: 1px solid var(--ink); font-weight: 700; font-size: .9375rem; background: var(--card);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(181, 57, 31, .45); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(181, 57, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(181, 57, 31, 0); } }
.consult__lead { margin-top: 24px; color: var(--ink-2); max-width: 30em; word-break: auto-phrase; }

.memo { background: var(--card); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 40px); }
.memo__title { font-size: 1.25rem; }
.memo__privacy { margin-top: 8px; font-size: .875rem; color: var(--ink-2); line-height: 1.8; padding-left: 20px; position: relative; }
.memo__privacy::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: 1.5px solid var(--ink-2); border-radius: 50%; }
.memo__set { border: 0; margin: 28px 0 0; min-width: 0; }
.memo__set legend, .memo__field label { display: block; padding: 0; font-size: .875rem; font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: .875rem; font-weight: 600; cursor: pointer; background: var(--paper);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  user-select: none;
}
.chip span::before { content: "+"; font-family: var(--mono); color: var(--ink-3); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:checked + span::before { content: "✓"; color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.memo__field { margin-top: 22px; }
.memo__field textarea {
  display: block; width: 100%; resize: vertical; min-height: 84px; padding: 12px 14px;
  background: var(--paper); border: 1px solid #857f73; border-radius: 2px; line-height: 1.7; font-size: 1rem;
}
.memo__field textarea::placeholder { color: #6e6963; }
.memo__field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
.memo__out { margin-top: 24px; }
.memo__out-label { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); margin-bottom: 8px; }
.memo__pre {
  margin: 0; min-height: 7em; max-height: 18em; overflow: auto; padding: 16px 18px; white-space: pre-wrap; word-break: break-word;
  font-family: var(--font); font-size: .875rem; line-height: 1.85; color: var(--ink);
  background: var(--paper); border-left: 3px solid var(--accent);
}
.memo__actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.memo__msg { font-size: .875rem; font-weight: 700; color: var(--accent); min-height: 1.5em; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-sub); padding-block: 56px 40px; }
.site-footer :focus-visible { outline-color: var(--accent-night); }
.site-footer__inner { display: grid; gap: 32px; }
@media (min-width: 860px) { .site-footer__inner { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer__brand { color: var(--night-text); font-weight: 800; letter-spacing: .22em; font-size: 1.25rem; }
.site-footer__tag { margin-top: 6px; font-size: .875rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .875rem; }
.site-footer__nav a { text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer__nav a:hover { color: var(--night-text); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid #2e3339; font-size: .8125rem; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__scroll span::after, .dot { animation: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .hero__scroll, .seg, .memo { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .manifesto, .site-footer { background: #fff; color: #000; }
}

/* flow animation (motion allowed only) */
@media (prefers-reduced-motion: no-preference) {
  .tangle[data-state="after"] .tangle__flow { animation: flow 1.4s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ---------- ideas (仕組みのイメージ) ---------- */
.ideas { border-top: 1px solid var(--line); padding-top: 0; }
.entry + .ideas { border-top: 0; }
.ideas__notice {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding: 6px 14px; border: 1px dashed var(--accent); color: var(--accent);
  font-size: .875rem; font-weight: 700; letter-spacing: .06em; line-height: 1.6;
}
.ideas__notice::before { content: "イメージ"; white-space: nowrap; flex: none; padding: 1px 8px; background: var(--accent); color: #fff; font-size: .8125rem; letter-spacing: .1em; }
.scenes { border-top: 1.5px solid var(--ink); }
.scene { display: grid; gap: 14px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.scene__from { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; }
.scene__icon { grid-row: 1 / span 2; width: 44px; height: 44px; color: var(--ink); }
.scene--wish .scene__icon { color: var(--accent); }
.scene__k { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-3); line-height: 1.6; }
.scene--wish .scene__from .scene__k, .scene__to .scene__k { color: var(--accent); }
.scene__t { font-size: 1.1875rem; font-weight: 700; line-height: 1.55; letter-spacing: .03em; font-feature-settings: "palt" 1; word-break: auto-phrase; }
.scene__to { padding-left: 66px; }
.scene__d { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; line-height: 1.85; word-break: auto-phrase; }
.scene__arrow { position: relative; height: 22px; margin-left: 21px; width: 2px; }
.scene__arrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 2px; width: 1.5px; background: var(--accent); transform-origin: top; transition: transform .6s var(--ease) .2s; }
.scene__arrow::after { content: ""; position: absolute; left: -3.5px; bottom: 1px; width: 7px; height: 7px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); }
.js .scene.reveal:not(.is-in) .scene__arrow::before { transform: scaleY(0); }
@media (min-width: 860px) {
  .scene { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1.25fr); align-items: center; gap: 0; padding: 32px 0; }
  .scene__to { padding-left: 0; }
  .scene__arrow { height: 2px; width: auto; margin: 0 20px; }
  .scene__arrow::before { left: 0; right: 2px; top: 0; bottom: auto; width: auto; height: 1.5px; transform-origin: left; }
  .scene__arrow::after { left: auto; right: 1px; top: -3px; bottom: auto; transform: rotate(-45deg); }
  .js .scene.reveal:not(.is-in) .scene__arrow::before { transform: scaleX(0); }
}
.ideas__foot { margin-top: 28px; max-width: 46em; color: var(--ink-2); font-size: .875rem; line-height: 1.9; word-break: auto-phrase; }

/* ---------- process: demo stepper ---------- */
.demo { border: 1.5px solid var(--ink); background: var(--card); }
.demo__case { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 20px clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.demo__tag { padding: 2px 10px; background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.demo__wish { font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.1875rem); font-feature-settings: "palt" 1; word-break: auto-phrase; }

.demo__tabs { display: none; }
.js .demo__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.demo__tab {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 64px; padding: 12px clamp(10px, 1.6vw, 20px); border: 0; border-left: 1px solid var(--line); background: transparent; text-align: left;
  color: var(--ink-3); transition: color .25s var(--ease), background-color .25s var(--ease);
}
.demo__tab:first-child { border-left: 0; }
.demo__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.demo__tab[aria-selected="true"] { color: var(--ink); background: var(--paper); }
.demo__tab[aria-selected="true"]::after { transform: scaleX(1); }
.demo__tab.is-done { color: var(--ink-2); }
.demo__tab:hover:not([aria-selected="true"]) { color: var(--ink); }
.demo__tab:focus-visible { outline-offset: -4px; }
.demo__tno { font-family: var(--mono); font-size: .8125rem; color: var(--accent); }
.demo__tname { font-size: clamp(.8125rem, 1.4vw, 1rem); font-weight: 700; line-height: 1.4; word-break: auto-phrase; }

.demo__panel { display: grid; gap: 24px; padding: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 40px); }
html:not(.js) .demo__panel + .demo__panel { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .demo__panel { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 48px; align-items: center; min-height: 360px; }
}
.js .demo__panel.is-entering { animation: panelIn .45s var(--ease); }
.demo__step { font-family: var(--mono); font-size: .875rem; color: var(--accent); }
.demo__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 6px 0 12px; }
.demo__desc { color: var(--ink-2); line-height: 1.95; word-break: auto-phrase; }

.demo__nav { display: none; }
.js .demo__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(20px, 3vw, 40px); border-top: 1px solid var(--line); }
.demo__btn {
  min-height: 44px; min-width: 96px; padding: 0 18px; border: 1.5px solid var(--ink); background: transparent; border-radius: 2px;
  font-size: .875rem; font-weight: 700; letter-spacing: .08em; transition: background-color .25s var(--ease), color .25s var(--ease);
}
.demo__next { background: var(--ink); color: var(--paper); }
.demo__btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo__btn:disabled { opacity: .35; cursor: default; }
.demo__count { font-family: var(--mono); font-size: .875rem; color: var(--ink-2); }
.process__note { margin-top: 18px; font-size: .875rem; color: var(--ink-2); }

/* step 1: voices */
.voices { display: grid; gap: 14px; }
.voice { position: relative; max-width: 30em; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 14px 14px 14px 2px; }
.voice--owner { justify-self: end; border-radius: 14px 14px 2px 14px; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.voice__who { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 4px; }
.voice--owner .voice__who { color: var(--night-sub); }
.voice__say { font-weight: 600; line-height: 1.8; word-break: auto-phrase; }
.voice__say::before { content: "「"; } .voice__say::after { content: "」"; }

/* step 2: flow */
.flow { display: grid; gap: 34px; counter-reset: f; }
.flow__node { position: relative; padding: 14px 18px; border: 1px solid var(--ink); background: var(--paper); font-weight: 700; text-align: center; }
.flow__node + .flow__node::before { content: ""; position: absolute; left: 50%; top: -34px; height: 34px; width: 1.5px; background: var(--ink-3); }
.flow__issue {
  position: absolute; left: calc(50% + 12px); top: -29px; padding: 1px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; line-height: 1.8; white-space: nowrap;
}
.flow__issue::after { content: "が発生"; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 600px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: stretch; }
  .flow__node { display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 12px 10px; font-size: .9375rem; line-height: 1.5; word-break: auto-phrase; }
  .flow__node + .flow__node::before { left: -28px; top: 50%; width: 28px; height: 1.5px; }
  .flow__issue { left: -28px; top: -14px; transform: translateX(-50%); }
}

/* step 3: options */
.options { display: grid; gap: 10px; }
.option { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 18px; border: 1px solid var(--line-strong); background: var(--paper); }
.option__k { font-family: var(--mono); font-size: .875rem; color: var(--ink-3); }
.option__t { font-weight: 700; }
.option--pick { border: 1.5px solid var(--accent); background: var(--card); }
.option--pick .option__k { color: var(--accent); }
.option__badge { margin-left: auto; padding: 1px 10px; border: 1px solid var(--accent); color: var(--accent); font-size: .8125rem; font-weight: 700; border-radius: 999px; white-space: nowrap; }
.criteria { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.criteria::before { content: "比べる観点"; font-size: .8125rem; font-weight: 700; color: var(--ink-3); letter-spacing: .1em; align-self: center; margin-right: 6px; }
.criteria li { padding: 2px 12px; border-radius: 999px; background: var(--paper-2); font-size: .875rem; font-weight: 600; }
.demo__agree { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: .875rem; color: var(--ink-2); line-height: 1.8; word-break: auto-phrase; }
.demo__stamp, .feeflow__stamp {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); font-weight: 800; font-size: .875rem; letter-spacing: .06em;
  transform: rotate(-8deg); box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 3px var(--accent); background: var(--card);
}

/* step 4: proto */
.proto { display: grid; gap: 12px; align-items: stretch; }
.proto__col { padding: 16px; border: 1px solid var(--line-strong); background: var(--paper); }
.proto__k { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.proto__speech { font-size: .875rem; line-height: 1.8; padding: 10px 12px; background: var(--card); border-radius: 10px 10px 10px 2px; border: 1px solid var(--line); word-break: auto-phrase; }
.proto__dl { margin: 0; display: grid; gap: 6px; }
.proto__dl div { display: grid; grid-template-columns: 4em 1fr; gap: 8px; padding-bottom: 6px; border-bottom: 1px dotted var(--line-strong); font-size: .875rem; }
.proto__dl dt { color: var(--ink-3); font-weight: 700; }
.proto__dl dd { margin: 0; font-weight: 700; }
.proto__people { display: grid; gap: 8px; }
.proto__people li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); font-size: .875rem; font-weight: 700; }
.proto__people li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.proto__arrow { position: relative; height: 18px; }
.proto__arrow::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 3px; width: 1.5px; background: var(--accent); }
.proto__arrow::after { content: ""; position: absolute; left: calc(50% - 3.5px); bottom: 2px; width: 7px; height: 7px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); }
@media (min-width: 640px) {
  .proto { grid-template-columns: minmax(0, 1.1fr) 28px minmax(0, 1.1fr) 28px minmax(0, .8fr); }
  .proto__arrow { height: auto; }
  .proto__arrow::before { left: 2px; right: 3px; top: 50%; bottom: auto; width: auto; height: 1.5px; }
  .proto__arrow::after { left: auto; right: 2px; top: calc(50% - 3px); bottom: auto; transform: rotate(-45deg); }
}
.js .proto .seq { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .proto.is-armed .seq-2, .js .proto.is-armed .seq-3 { opacity: .18; transform: translateY(6px); transition: none; }
.js .proto.is-armed.is-s2 .seq-2, .js .proto.is-armed.is-s3 .seq-3 { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
/* step 5: verify */
.verify { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.verify li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); font-weight: 700; }
.verify li::before { content: "?"; position: absolute; left: 0; top: 15px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .875rem; line-height: 24px; text-align: center; }
.decide { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.decide::before { content: "そのうえで"; font-size: .8125rem; font-weight: 700; color: var(--ink-3); letter-spacing: .1em; align-self: center; margin-right: 6px; }
.decide li { padding: 6px 18px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: .9375rem; }

@media (prefers-reduced-motion: reduce) {
  /* マイクの試作：位置は動かさず、ふわっと現れる（不透明度のみ）だけ残す */
  .js .proto .seq, .js .proto.is-armed .seq-2, .js .proto.is-armed .seq-3 { transform: none !important; }
  .js .proto .seq { transition: opacity .45s var(--ease) !important; }
  .proto__mic.is-rec svg { animation: none; }
}

/* ---------- fee ---------- */
.feeflow { display: grid; gap: 0; border-top: 1.5px solid var(--ink); counter-reset: none; }
.feeflow__step { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feeflow__no { font-family: var(--mono); font-size: .875rem; color: var(--accent); }
.feeflow__t { font-size: 1.125rem; font-weight: 700; }
.feeflow__step--agree .feeflow__stamp { order: 3; margin-left: auto; }
@media (min-width: 860px) {
  .feeflow { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .feeflow__step { flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px 24px 28px 0; border-bottom: 0; }
  .feeflow__step + .feeflow__step { padding-left: 24px; border-left: 1px solid var(--line); }
  .feeflow__step--agree .feeflow__stamp { position: absolute; right: 16px; top: 22px; margin: 0; }
}
.feenotes { margin-top: 28px; display: grid; gap: 10px; max-width: 46em; }
.feenotes li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: .9375rem; line-height: 1.9; word-break: auto-phrase; }
.feenotes li::before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 2px; background: var(--accent); }

/* ---------- about ---------- */
.about { border-top: 1px solid var(--line); }
.about__grid { display: grid; gap: 8px; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.profile { display: flex; align-items: center; gap: clamp(18px, 3vw, 28px); padding: clamp(18px, 3vw, 24px); border: 1px solid var(--line); background: var(--card); }
.profile__photo { flex: none; width: clamp(104px, 14vw, 136px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 0 0 6px var(--card), 0 0 0 7px var(--line); }
.profile__role { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
.profile__name { margin-top: 2px; font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: .12em; line-height: 1.4; }
.profile__roman { margin-top: 2px; font-size: .875rem; color: var(--ink-3); letter-spacing: .08em; }
.about__k { margin-top: 36px; margin-bottom: 4px; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.stance { border-top: 1px solid var(--ink); }
.stance li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.stance__t { font-size: 1.1875rem; margin-bottom: 4px; }
.stance__d { color: var(--ink-2); font-size: .9375rem; line-height: 1.85; word-break: auto-phrase; }
.demo__panel[hidden], .lens__panel[hidden] { display: none; }
@media (max-width: 400px) { .demo__tab { padding: 10px 6px; } .demo__tname { font-size: .8125rem; letter-spacing: 0; } }

/* ---------- v03: choice groups ---------- */
.choice { display: grid; gap: 16px; margin-top: 4px; }
@media (min-width: 640px) { .choice { grid-template-columns: 1.6fr 1fr; gap: 20px; } }
.choice__h { font-size: .875rem; font-weight: 700; letter-spacing: .1em; color: var(--night-text); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #3a3f46; }
.choice__group--keep .choice__h { color: var(--accent-night); border-bottom-color: rgba(236, 122, 95, .4); }
.choice .means { margin-top: 0; }

/* ---------- v03: demo details ---------- */
.options__h { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 10px; }
.proto__mic {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 6px; margin-bottom: 6px;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .875rem; font-weight: 700; letter-spacing: .06em;
  transition: background-color .25s var(--ease);
}
.proto__mic svg { flex: none; width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: rgba(255,255,255,.12); }
.proto__mic-label { white-space: nowrap; }
.proto__mic:hover { background: var(--accent); }
.proto__mic.is-rec { background: var(--accent); }
.proto__mic.is-rec svg { animation: rec 1s ease-in-out infinite; }
@keyframes rec { 50% { box-shadow: 0 0 0 6px rgba(255,255,255,.25); } }
.proto__hint { font-size: .8125rem; color: var(--ink-3); line-height: 1.6; margin-bottom: 10px; }
.proto__speech { min-height: 4.6em; }
.proto__speech.is-empty { color: var(--ink-3); font-weight: 400; }
.proto__speech.is-typing::after { content: "｜"; color: var(--accent); animation: blink .8s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- v03: memo how-to ---------- */
.memo__how { display: grid; gap: 6px; margin-top: 14px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); }
.memo__how li { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; line-height: 1.6; }
.memo__how span { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .8125rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- v05: about（はじめまして） ---------- */
.about { border-top: 0; background: var(--card); border-bottom: 1px solid var(--line); }
.about__text { margin-top: 24px; display: grid; gap: 14px; line-height: 2; }
.about__text p { word-break: auto-phrase; }
.about__text p:first-child { font-weight: 700; }
.about .profile { background: var(--paper); }

/* ---------- v05: 方法の選び方（一段だけに） ---------- */
.route--single { grid-template-columns: 1fr !important; max-width: 860px; }
.route--single .route__step--means { padding: 28px clamp(20px, 3vw, 36px); }

/* ---------- v07: ロゴ ---------- */
.brand__mark { width: 32px; height: 32px; object-fit: contain; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; }
.site-footer__mark { width: 36px; height: 36px; }

/* ---------- v07: JavaScriptが動かない表示（スマホのファイルプレビュー等）でも崩れないように ---------- */
.lens__name, .memo__nojs { display: none; }
html:not(.js) .lens { grid-template-columns: 1fr; }
html:not(.js) .lens__diagram, html:not(.js) .lens__tabs { display: none; }
html:not(.js) .lens__panel[hidden] { display: block; }
html:not(.js) .lens__panel { min-height: 0; padding: 20px 0; border-top: 1px solid var(--line-strong); }
html:not(.js) .lens__name { display: block; font-size: 1.375rem; font-weight: 700; margin-bottom: 10px; }
html:not(.js) .lens__main { margin-bottom: 16px; }
html:not(.js) .proto__mic, html:not(.js) .proto__hint { display: none; }
html:not(.js) .memo__how, html:not(.js) .memo__out, html:not(.js) .memo__actions { display: none; }
html:not(.js) .memo__nojs { display: block; margin-top: 22px; padding: 14px 16px; background: var(--paper); border-left: 3px solid var(--accent); font-size: .9375rem; line-height: 1.8; }

/* ---------- v11: 看板表記「RECODE Works」 ---------- */
.brand__sub { font-weight: 600; letter-spacing: .12em; color: var(--ink-2); }
.brand__name, .menu-btn__label { white-space: nowrap; }
@media (max-width: 380px) {
  .site-header__inner { gap: 12px; }
  .brand { gap: 8px; }
  .brand__mark { width: 28px; height: 28px; }
  .brand__name { font-size: .9375rem; letter-spacing: .12em; }
  .brand__sub { letter-spacing: .06em; }
  .js .menu-btn { gap: 8px; padding-left: 4px; }
}
.site-footer__org { margin-top: 4px; font-size: .875rem; color: var(--night-sub); letter-spacing: .06em; }

/* =========================================================
   v12: award-level refinement
   ========================================================= */

/* ---------- 紙の質感（ごく薄いノイズ） ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media print { body::after { display: none; } }

/* ---------- 読み進み線 ---------- */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
html:not(.js) .progress { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 100svh; padding: calc(var(--header-h) + 48px) 0 120px; overflow: hidden; isolation: isolate;
}
@media (min-width: 960px) { .hero { min-height: max(100svh, 760px); } }
.hero__stage { position: absolute; inset: 0; z-index: -1; }
.threads { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* 文字の背後は、線を薄くして読みやすく */
.hero__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 88%, transparent) 38%, color-mix(in srgb, var(--paper) 0%, transparent) 64%);
}
@media (max-width: 759.98px) {
  .hero__stage::after { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 52%, color-mix(in srgb, var(--paper) 0%, transparent) 66%); }
}
.threads__labels { position: absolute; top: 0; right: clamp(16px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.threads__labels li {
  position: absolute; right: 0; top: 0; margin-top: -0.95em; padding: 2px 10px; white-space: nowrap;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; color: var(--ink);
  background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; opacity: 0; will-change: transform, opacity;
}
.threads__labels li:nth-child(3) { color: #fff; background: var(--accent); border-color: var(--accent); }
.threads__fallback { display: none; }
html:not(.js) .threads__fallback { display: block; position: absolute; right: 0; top: 24%; width: 46%; height: 60%; }
html:not(.js) .threads__fallback path { stroke: var(--ink); stroke-width: 1.5; opacity: .6; vector-effect: non-scaling-stroke; }
html:not(.js) .threads__fallback .is-accent { stroke: var(--accent); stroke-width: 2.2; opacity: .9; }
html:not(.js) .threads__labels { display: none; }

.hero__inner { position: relative; }
.hero .eyebrow { margin-bottom: clamp(24px, 3vw, 36px); }
.hero__title {
  font-size: clamp(2.75rem, 11.5vw, 7.25rem); line-height: 1.12; letter-spacing: -.01em; font-weight: 800;
}
@media (min-width: 960px) { .hero__title { font-size: clamp(4.25rem, 7.4vw, 7.25rem); } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line__in { display: inline-block; }
.js .hero__title .line__in { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hero__title .line + .line .line__in { transition-delay: .12s; }
.js.is-ready .hero__title .line__in { transform: none; }
.hero__title em { background-position: 0 90%; background-size: 100% .08em; }
.js .hero__title em { transition-delay: 1s; }
.hero__pair { margin-top: clamp(28px, 3.5vw, 44px); font-size: clamp(1.125rem, 1.9vw, 1.5rem); }
.hero__lead { margin-top: 18px; max-width: 34em; }
.hero__actions { margin-top: clamp(28px, 3.5vw, 40px); }
.js .hero__pair, .js .hero__lead, .js .hero__actions, .js .hero .eyebrow { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero .eyebrow { transition-delay: .05s; }
.js .hero__pair { transition-delay: .5s; } .js .hero__lead { transition-delay: .62s; } .js .hero__actions { transition-delay: .74s; }
.js.is-ready .hero__pair, .js.is-ready .hero__lead, .js.is-ready .hero__actions, .js.is-ready .hero .eyebrow { opacity: 1; transform: none; }

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.hero__caption { font-size: .875rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); }
.hero__hint { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-3); letter-spacing: .04em; }
html:not(.js) .hero__hint { display: none; }
@media (max-width: 759.98px) {
  /* スマホ：線の帯は、文章の下に独立して置く */
  .hero { padding-bottom: 0; justify-content: flex-start; min-height: 0; }
  .hero__inner { order: 1; }
  .hero__stage { position: relative; order: 2; inset: auto; z-index: 0; height: clamp(250px, 74vw, 320px); margin-top: 28px; }
  .threads__labels li { font-size: .75rem; padding: 1px 8px; letter-spacing: .06em; }
  .hero__stage::after { display: none; }
  .hero__foot { order: 3; position: relative; bottom: auto; padding-top: 4px; padding-bottom: 28px; }
  .eyebrow__brand { display: none; }
  html:not(.js) .threads__fallback { top: 10%; width: 100%; height: 80%; }
}
.hero__scroll { display: none; }
@media (min-width: 960px) {
  .hero__scroll {
    display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; left: 50%; bottom: 26px; width: auto; height: auto; margin-left: -24px;
    text-decoration: none; font-family: var(--mono); font-size: .75rem; letter-spacing: .3em; color: var(--ink-3); text-transform: uppercase;
  }
  .hero__scroll-line { position: relative; width: 1px; height: 44px; background: var(--line-strong); overflow: hidden; }
  .hero__scroll-line::after { content: ""; position: absolute; left: 0; top: -14px; width: 1px; height: 14px; background: var(--ink); animation: drip 2.4s var(--ease) infinite; }
}
@media (prefers-reduced-motion: reduce) { .hero__scroll-line::after { animation: none; } }

/* ---------- 流れる帯（マーキー） ---------- */

/* ---------- 大きな番号 ---------- */
.section, .manifesto, .consult { position: relative; }
.sec-num {
  position: absolute; right: var(--gutter); top: clamp(40px, 6vw, 72px); z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font); font-weight: 800; font-size: clamp(5rem, 17vw, 14rem); line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong); opacity: .7;
}
.sec-num--night { -webkit-text-stroke-color: #3a3f46; }
.section > .wrap, .manifesto > .wrap, .consult > .wrap { position: relative; }
.sec-head, .lens, .doors, .scenes, .demo, .checks, .feeflow, .qa, .about__body, .memo, .route, .consult__intro { position: relative; z-index: 1; }
@media (max-width: 759.98px) { .sec-num { font-size: clamp(4.5rem, 26vw, 7rem); top: 28px; opacity: .55; } }

/* ---------- 見出しが下から現れる ---------- */
.js .sec-head.reveal .sec-head__title, .js .manifesto__title.reveal, .js .consult__intro.reveal .consult__title {
  clip-path: inset(0 0 100% 0); transform: translateY(.35em);
  transition: clip-path 1s var(--ease) .1s, transform 1s var(--ease) .1s;
}
.js .sec-head.reveal.is-in .sec-head__title, .js .manifesto__title.reveal.is-in, .js .consult__intro.reveal.is-in .consult__title {
  clip-path: inset(-10% -5% -15% -5%); transform: none;
}
.sec-head__title { font-size: clamp(1.875rem, 4.4vw, 3.5rem); letter-spacing: 0; font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .js .sec-head.reveal .sec-head__title, .js .manifesto__title.reveal, .js .consult__intro.reveal .consult__title { clip-path: none; transform: none; }
}

/* ---------- ボタン：塗りが流れる ---------- */
.btn { background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%; transition: background-size .45s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn--ink { background-color: var(--ink); background-image: linear-gradient(var(--accent), var(--accent)); }
.btn--ink:hover { background-color: var(--ink); background-size: 100% 100%; }
.btn--line { background-image: linear-gradient(var(--ink), var(--ink)); }
.btn--line:hover { background-color: transparent; background-size: 100% 100%; color: var(--paper); }
.btn--accent { background-color: var(--accent); background-image: linear-gradient(var(--ink), var(--ink)); }
.btn--accent:hover { background-color: var(--accent); background-size: 100% 100%; }

/* ---------- 仕組みの例：行にふれると、流れが伸びる ---------- */
@media (hover: hover) and (min-width: 860px) {
  .scene { transition: background-color .35s var(--ease), padding .35s var(--ease); }
  .scene:hover { background: var(--card); padding-left: 16px; padding-right: 16px; }
  .scene:hover .scene__arrow::before { background: var(--ink); }
  .scene:hover .scene__arrow::after { border-color: var(--ink); }
}

/* ---------- フッター：大きなロゴ（横幅ぴったり） ---------- */
.site-footer { overflow: hidden; }

/* ---------- 大きな番号：重ならない位置 ---------- */
@media (min-width: 960px) {
  .about .sec-num, .faq .sec-num, .consult .sec-num { right: auto; left: var(--gutter); top: auto; bottom: 0; }
  .honest .sec-num { top: auto; bottom: calc(-1 * clamp(88px, 12vw, 160px) + 12px); font-size: clamp(5rem, 9vw, 8.5rem); }
}
@media (max-width: 959.98px) {
  /* スマホ・タブレット：番号はセクション上の余白に置く */
  .sec-num { top: -74px; font-size: 4.25rem; opacity: .5; }
  .faq { padding-top: 88px; }
}

/* ---------- 大きな番号：スクロールで、ゆっくり動く（対応ブラウザのみ） ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec-num { animation: num-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes num-drift { from { translate: 0 48px; } to { translate: 0 -48px; } }
  }
}

/* ---------- v13: 中核メッセージ ---------- */
.hero__lead.hero__core { margin-top: 12px; font-weight: 700; color: var(--ink); }
