/* jp.tsm.tokyo — TSM Partner. CLAUDE.md §9: a calm, precise software product.
   Warm paper, graphite ink, one plum accent, status colours only for calendar and board states.
   Tokens first (light, then dark), then components. No web fonts, no inline styles. Infrastructure (R11). */

/* --- Yu Gothic medium alias (as on www and startup) ------------------- */
@font-face {
  font-family: "YuGothicM";
  font-weight: normal;
  src: local("YuGothic-Medium"), local("Yu Gothic Medium"), local("YuGothic-Regular");
}
@font-face {
  font-family: "YuGothicM";
  font-weight: bold;
  src: local("YuGothic-Bold"), local("Yu Gothic");
}

/* --- Tokens: light ---------------------------------------------------- */
:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --sunken: #efece6;
  --line: #e3dfd8;
  --line-strong: #8a848e;
  --ink: #1d1b1f;
  --text: #2a282c;
  --text-2: #5c5860;
  --accent: #6b2d5c;
  --accent-text: #6b2d5c;
  --accent-soft: #f3e8f0;
  --btn: #1d1b1f;           /* primary actions: ink (palette B, Yu 3 Dec 2026); plum only for details */
  --btn-hover: #3b373e;
  --on-btn: #ffffff;
  --band-bg: #1d1b1f;       /* final call-to-action band */
  --band-ink: #ffffff;
  --band-text: #cfc9d1;
  --band-btn: #f7f5f1;
  --band-btn-hover: #ffffff;
  --band-on-btn: #1d1b1f;
  --band-link: #f7f5f1;
  --band-line: #1d1b1f;
  --ok-text: #2f6f3e;
  --ok-soft: #e5f0e7;
  --due-text: #8a5a00;
  --due-soft: #f7ecd5;
  --late-text: #b3261e;
  --late-soft: #fae4e1;
  --focus: #6b2d5c;
  --glass: rgba(247, 245, 241, 0.8);
  --dot: rgba(29, 27, 31, 0.10);
  --shadow-1: 0 1px 2px rgba(29, 27, 31, 0.05);
  --shadow-2: 0 1px 2px rgba(29, 27, 31, 0.05), 0 18px 40px -18px rgba(29, 27, 31, 0.22);
  --shadow-3: 0 2px 4px rgba(29, 27, 31, 0.05), 0 30px 60px -24px rgba(29, 27, 31, 0.30);
  --wash: radial-gradient(900px 600px at 90% 0%, rgba(107, 45, 92, 0.07), transparent 60%),
          linear-gradient(180deg, #faf8f5, #f7f5f1);

  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "YuGothicM", YuGothic, "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 16px;
  --wrap: 1180px;
  --gutter: 24px;
  --header-h: 64px;
  --measure: 68ch;
  --lh: 1.7;
}

/* --- Tokens: dark ----------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141215;
    --surface: #1d1a1e;
    --sunken: #18161a;
    --line: #2e2a30;
    --line-strong: #7b7480;
    --ink: #efeaf0;
    --text: #efeaf0;
    --text-2: #b9b2bb;
    --accent: #c77db5;
    --accent-text: #e0a8d2;
    --accent-soft: #2a1f28;
    --btn: #efeaf0;
    --btn-hover: #ffffff;
    --on-btn: #141215;
    --band-bg: #1d1a1e;
    --band-ink: #efeaf0;
    --band-text: #b9b2bb;
    --band-btn: #efeaf0;
    --band-btn-hover: #ffffff;
    --band-on-btn: #141215;
    --band-link: #e0a8d2;
    --band-line: #2e2a30;
    --ok-text: #7fd18f;
    --ok-soft: #17271b;
    --due-text: #f0b44c;
    --due-soft: #2b2213;
    --late-text: #ff8a80;
    --late-soft: #301917;
    --focus: #e0a8d2;
    --glass: rgba(20, 18, 21, 0.78);
    --dot: rgba(239, 234, 240, 0.08);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --shadow-3: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 60px -24px rgba(0, 0, 0, 0.8);
    --wash: radial-gradient(900px 600px at 90% 0%, rgba(199, 125, 181, 0.08), transparent 60%),
            linear-gradient(180deg, #161417, #141215);
  }
}

/* --- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg) var(--wash) no-repeat;
  background-size: 100% 1200px;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
.lang-ja { --lh: 1.85; --measure: 40em; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.25; font-weight: 700; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: var(--radius-s); background: var(--btn); color: var(--on-btn); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 10px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic--lg { width: 24px; height: 24px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0.04em; color: var(--accent-text); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.lang-ja .eyebrow { letter-spacing: 0.02em; }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .ic { width: 18px; height: 18px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14.5px; border-radius: 9px; }
.btn--lg { min-height: 52px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn--primary { background: var(--btn); color: var(--on-btn); }
.btn--primary:hover { background: var(--btn-hover); text-decoration: none; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--accent-text); }
.btn--ghost:hover { background: var(--accent-soft); text-decoration: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.more .ic { width: 18px; height: 18px; transition: transform .15s ease; }
.more:hover .ic { transform: translateX(3px); }

/* --- Header (the only translucent surface) ---------------------------- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--glass); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr__in { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand__mark { width: 24px; height: 24px; }
.brand__a { fill: var(--accent); }
.brand__b { fill: none; stroke: var(--ink); stroke-width: 1.75; }
.brand__word { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand__ed { font-size: 12.5px; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); background: var(--surface); padding: 2px 8px; border-radius: 999px; line-height: 1.5; }
.nav { flex: 1; min-width: 0; }
.nav__list { display: flex; gap: 22px; }
.nav__list a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; padding-block: 6px; }
.nav__list a:hover { color: var(--ink); }
.nav__list a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.langs { display: flex; gap: 2px; font-size: 13.5px; }
.langs a { color: var(--text-2); text-decoration: none; padding: 4px 7px; border-radius: 6px; }
.langs a:hover { color: var(--ink); background: var(--sunken); }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.langs__short { display: none; }
.hdr__cta { flex: none; }

/* --- Hero ------------------------------------------------------------- */
.hero { padding: 72px 0 88px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__h1 { font-size: 56px; line-height: 64px; letter-spacing: -0.028em; font-weight: 700; }
.lang-ja .hero__h1 { letter-spacing: -0.01em; }
.hero__lead { margin-top: 22px; font-size: 19px; line-height: 1.65; color: var(--text-2); max-width: 34em; }
.lang-ja .hero__lead { font-size: 17.5px; line-height: 1.9; }
.proofs { margin-top: 22px; display: grid; gap: 8px; }
.proofs li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 16px; }
.proofs .ic { color: var(--accent-text); width: 18px; height: 18px; stroke-width: 2; }
.hero__scope { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--sunken); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.7; color: var(--text); }
.hero__scope .ic { color: var(--text-2); margin-top: 2px; width: 18px; height: 18px; }
.hero__ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin-top: 16px; font-size: 14px; color: var(--text-2); }

/* --- Product shot (drawn in HTML/CSS) ---------------------------------- */
.shot { position: relative; padding: 0 0 32px 0; }
.shot::before { content: ""; position: absolute; inset: -28px -28px 20px 28px; border-radius: 24px; border: 1px solid var(--line);
  background-color: var(--sunken); background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 16px 16px; z-index: -1; }
.shot__main { width: 88%; position: relative; }
.shot__side { position: relative; width: 66%; margin: -58px 0 0 auto; }
.shot__side .app { box-shadow: var(--shadow-3); }
.shot__cap { position: absolute; left: 4px; bottom: 0; font-size: 12.5px; color: var(--text-2); }

.app { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); overflow: hidden; font-size: 14px; line-height: 1.5; }
.app__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.app__tabs { display: flex; gap: 16px; height: 100%; }
.app__tab { display: flex; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.app__tab.is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.sample-badge { font-size: 11.5px; font-weight: 600; color: var(--text-2); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 1px 8px; letter-spacing: 0.02em; }
.app__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 14px 16px 8px; }
.app__title { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); font-size: 14.5px; }
.app__title .ic { width: 18px; height: 18px; color: var(--accent-text); }
.app__sub { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }

.cal__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.cal__day { font-size: 19px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.cal__txt { display: grid; min-width: 0; }
.cal__item { color: var(--ink); font-weight: 500; }
.cal__owner { font-size: 12.5px; color: var(--text-2); }
.cal__more { padding: 10px 16px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }

.board__row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.board__main { display: grid; min-width: 0; }
.board__item { color: var(--ink); font-weight: 500; }
.board__party, .board__next { font-size: 12.5px; color: var(--text-2); }

.morning__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 16px; border-top: 1px solid var(--line); }
.morning__txt { color: var(--text); font-size: 13.5px; line-height: 1.7; }
.morning__party { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }

.report { padding: 4px 16px 16px; display: grid; gap: 14px; }
.report__headline { font-size: 17px; font-weight: 650; color: var(--ink); }
.report__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report__kpi { background: var(--sunken); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column-reverse; }
.report__kpi dd { margin: 0; font-size: 24px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.2; }
.report__kpi dt { font-size: 12px; color: var(--text-2); }
.report__stuck { font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.report__prio { counter-reset: p; display: grid; gap: 6px; }
.report__prio li { counter-increment: p; display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink); }
.report__prio li::before { content: counter(p); width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Status pills: status colours only here, always with a text label */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--sunken); color: var(--text-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--done, .pill--closed { background: var(--ok-soft); color: var(--ok-text); }
.pill--due { background: var(--due-soft); color: var(--due-text); }
.pill--late { background: var(--late-soft); color: var(--late-text); }
.pill--decide { background: var(--accent-soft); color: var(--accent-text); }
.pill--waiting, .pill--open { background: var(--sunken); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }

/* --- Trust strip ------------------------------------------------------ */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 18px; }
.trust__list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.trust__list .ic { width: 18px; height: 18px; color: var(--text-2); }

/* --- Sections --------------------------------------------------------- */
.sec { padding-block: 96px; }
.sec--tight { padding-block: 72px; }
.sec--sunken { background: var(--sunken); border-block: 1px solid var(--line); }
.sec__head { max-width: 46em; margin-bottom: 40px; }
.sec__head h2, .feature__copy h2, .kb h2 { font-size: 36px; line-height: 44px; letter-spacing: -0.02em; }
.lang-ja .sec__head h2, .lang-ja .feature__copy h2, .lang-ja .kb h2 { letter-spacing: 0; font-size: 32px; line-height: 44px; }
.sec__sub { margin-top: 14px; font-size: 17.5px; color: var(--text-2); }
.sec__more { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.sec__note { font-size: 14.5px; color: var(--text-2); }
.tile-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tile-ic .ic { width: 22px; height: 22px; }

/* Who it's for */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.door { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-1); }
.door .tile-ic { margin-bottom: 8px; }
.door__kicker { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.door__title { font-size: 21px; line-height: 1.35; letter-spacing: -0.01em; }
.door p { color: var(--text-2); }
.door__who { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.door__who span { font-weight: 600; color: var(--ink); }

/* Steps: three-step horizontal timeline */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 16px; left: 16px; right: 16px; height: 1px; background: var(--line-strong); opacity: .5; }
.step { position: relative; }
.step__n { position: relative; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent-text); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; margin-bottom: 20px; }
.step:last-child .step__n { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.step .step__when { font-size: 13px; font-weight: 600; color: var(--accent-text); margin-bottom: 4px; }
.step__title { font-size: 20px; line-height: 1.35; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 16px; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-1); min-height: 190px; }
.tile .tile-ic { margin-bottom: 8px; }
.tile__title { font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
.tile__text { color: var(--text-2); font-size: 15.5px; line-height: 1.65; }
.lang-ja .tile__text { line-height: 1.8; }
.tile--calendar { grid-column: 1 / span 2; }
.tile--board { grid-column: 3; grid-row: 1 / span 2; }
.tile--record { grid-column: 2 / span 2; }
.viz-year { margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.viz-year__m { height: 58px; border-radius: 8px; background: var(--sunken); border: 1px solid var(--line); padding: 6px; display: flex; flex-wrap: wrap; align-content: space-between; gap: 3px; }
.viz-year__m b { width: 100%; font-size: 10.5px; font-weight: 600; color: var(--text-2); line-height: 1; }
.viz-year__m i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); opacity: .55; }
.viz-year__m.is-past i { background: var(--ok-text); opacity: .8; }
.viz-year__m.is-now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.viz-year__m.is-now i { background: var(--accent); opacity: 1; }
.viz-board { flex: 1; margin-top: 8px; padding-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.viz-board span { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; background: var(--sunken); border: 1px solid var(--line); min-height: 150px; }
.viz-board i { height: 26px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.viz-board span:last-child i { border-left: 3px solid var(--ok-text); }
.viz-log { margin-top: 12px; display: grid; gap: 8px; }
.viz-log span { position: relative; height: 10px; border-radius: 5px; background: var(--sunken); margin-left: 18px; }
.viz-log span::before { content: ""; position: absolute; left: -18px; top: 1px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); }
.viz-log span:nth-child(1) { width: 82%; } .viz-log span:nth-child(2) { width: 64%; } .viz-log span:nth-child(3) { width: 74%; }

/* Why TSM */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.why__item h3 { margin: 16px 0 8px; font-size: 19px; line-height: 1.4; }
.why__item p { color: var(--text-2); font-size: 16px; }

/* Scope table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-1); }
.scope-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.scope-table th, .scope-table td { text-align: left; padding: 14px 20px; vertical-align: top; }
.scope-table thead th { font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--sunken); border-bottom: 1px solid var(--line); }
.scope-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.scope-table tbody th { color: var(--ink); font-weight: 600; width: 32%; }
.scope-table td { color: var(--text-2); }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-1); }
.case .tile-ic { width: 36px; height: 36px; margin-bottom: 6px; }
.case__label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.case h3 { font-size: 17px; line-height: 1.4; }
.case p:last-child { font-size: 14.5px; line-height: 1.65; color: var(--text-2); }

/* Knowledge base (Japanese edition) */
.kb { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.kb__copy { max-width: 44em; }
.kb__copy p:last-child { margin-top: 12px; color: var(--text-2); }

/* FAQ (details, no script) */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ic { color: var(--text-2); transition: transform .2s ease; }
.faq__item[open] .faq__ic { transform: rotate(45deg); color: var(--accent-text); }
.faq__a { padding: 0 40px 22px 0; color: var(--text-2); }

/* Final call to action */
.final { padding-block: 96px; background: var(--band-bg); border-block: 1px solid var(--band-line); position: relative; overflow: hidden; }
.final__in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: 40px; line-height: 48px; letter-spacing: -0.02em; max-width: 18em; color: var(--band-ink); }
.lang-ja .final h2 { font-size: 34px; line-height: 48px; letter-spacing: 0; }
.final p { margin-top: 14px; color: var(--band-text); max-width: 36em; font-size: 17.5px; }
.final .btn--primary { background: var(--band-btn); color: var(--band-on-btn); }
.final .btn--primary:hover { background: var(--band-btn-hover); }
.final .btn--ghost { color: var(--band-link); }
.final .btn--ghost:hover { background: rgba(127, 127, 127, 0.16); }
.final :focus-visible { outline-color: var(--band-link); }
.final__ctas { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* --- Brief band and footer -------------------------------------------- */
.brief-band { border-top: 1px solid var(--line); background: var(--surface); }
.brief-band__in { display: flex; align-items: center; gap: 24px; padding-block: 32px; }
.brief-band__doc { width: 46px; height: 60px; flex: none; border: 1px solid var(--line-strong); border-radius: 4px; padding: 8px 7px; display: grid; align-content: start; gap: 5px; background: var(--bg); }
.brief-band__doc span { height: 3px; border-radius: 2px; background: var(--line); }
.brief-band__doc span:first-child { background: var(--accent); width: 60%; height: 4px; }
.brief-band__copy { flex: 1; }
.brief-band__title { font-size: 17px; }
.brief-band__copy p { font-size: 15px; color: var(--text-2); margin-top: 2px; }
.ftr { background: var(--sunken); border-top: 1px solid var(--line); padding-top: 56px; font-size: 14.5px; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; }
.ftr__name { font-weight: 700; color: var(--ink); font-size: 16px; }
.ftr__cat { color: var(--text-2); }
.ftr__note { margin-top: 14px; color: var(--text-2); max-width: 32em; }
.ftr__h { font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 12px; }
.ftr__nav ul { display: grid; gap: 8px; }
.ftr__nav a { color: var(--text); text-decoration: none; }
.ftr__nav a:hover { color: var(--accent-text); text-decoration: underline; }
.ftr__base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; color: var(--text-2); font-size: 13.5px; }
.ftr__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.ftr__base a { color: var(--text-2); }

/* --- Product pages ---------------------------------------------------- */
.phead { padding: 64px 0 24px; }
.phead__in { max-width: 46em; }
.phead__h1 { font-size: 48px; line-height: 56px; letter-spacing: -0.025em; }
.lang-ja .phead__h1 { font-size: 40px; line-height: 54px; letter-spacing: 0; }
.phead__lead { margin-top: 18px; font-size: 18.5px; color: var(--text-2); max-width: 40em; }
.sample-note { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13.5px; font-weight: 600; }
.sample-note .ic { width: 16px; height: 16px; }
.feature { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.feature--flip .feature__copy { order: 2; }
.feature__copy p:not(.eyebrow) { margin-top: 16px; color: var(--text-2); }
.legend { margin-top: 22px; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); }
.legend .pill { min-width: 86px; justify-content: flex-start; }

/* --- Articles --------------------------------------------------------- */
.art__head { padding: 56px 0 8px; }
.art__headin { max-width: var(--measure); }
.style-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 600; }
.art__h1 { margin-top: 16px; font-size: 40px; line-height: 50px; letter-spacing: -0.02em; }
.lang-ja .art__h1 { font-size: 34px; line-height: 50px; letter-spacing: 0; }
.art__lead { margin-top: 16px; font-size: 18px; color: var(--text-2); }
.art__meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--text-2); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.art__grid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(260px, 300px); gap: 64px; align-items: start; padding-top: 32px; padding-bottom: 88px; }
.art__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: 26px; line-height: 1.4; letter-spacing: -0.01em; }
.lang-ja .prose h2 { font-size: 24px; line-height: 1.5; letter-spacing: 0; padding-left: 14px; border-left: 3px solid var(--accent); }
.prose h3 { margin-top: 1.8em; font-size: 20px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--text-2); }
.prose strong { color: var(--ink); }

.mail { margin-block: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.mail__bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.mail__bar::before { content: ""; width: 16px; height: 12px; border: 1.5px solid var(--text-2); border-radius: 2px; }
.mail__lang { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.mail__subject { display: flex; gap: 12px; align-items: baseline; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.mail__k { flex: none; font-size: 12.5px; color: var(--text-2); min-width: 3.5em; }
.mail__v { font-weight: 600; color: var(--ink); }
.mail__body { padding: 16px 18px 6px; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.mail__body p { margin: 0 0 .9em; }

.www-box a { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--sunken); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.www-box a:hover { border-color: var(--accent); }
.www-box .ic { color: var(--accent-text); margin-top: 3px; width: 18px; height: 18px; }
.www-box__k { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.sources { margin-top: 3em; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; }
.sources h2 { font-size: 15px; margin: 0 0 10px; padding: 0; border: 0; }
.sources ol { list-style: decimal; padding-left: 1.3em; }
.sources__host { color: var(--text-2); font-size: 13px; }

.cta-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; box-shadow: var(--shadow-2); display: grid; gap: 10px; }
.cta-card__kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.cta-card__kicker .ic { width: 18px; height: 18px; }
.cta-card__title { font-size: 18px; font-weight: 650; color: var(--ink); line-height: 1.45; }
.cta-card__text { font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.cta-card .btn { margin-top: 6px; width: 100%; }
.cta-card__foot { font-size: 12.5px; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }

/* --- Forms ------------------------------------------------------------ */
.formpage { padding: 64px 0 96px; }
.formpage__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.formpage__h { margin-top: 36px; font-size: 16px; color: var(--ink); }
.asklist { margin-top: 14px; counter-reset: q; display: grid; gap: 12px; }
.asklist li { counter-increment: q; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; color: var(--text); font-size: 16px; }
.asklist li::before { content: counter(q); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.formpage__note { margin-top: 28px; display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.formpage__note .ic { width: 18px; height: 18px; margin-top: 3px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-2); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--text-2); font-size: 13px; margin-left: 4px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; min-height: 46px; line-height: 1.4;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.field--choice { border: 0; padding: 0; margin: 0; }
.field--choice legend { padding: 0; margin-bottom: 6px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; color: var(--text); cursor: pointer; }
.choice + .choice { margin-top: 8px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.choice input, .field--check input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check label { font-weight: 400; color: var(--text); font-size: 14.5px; line-height: 1.6; }
.field--check input { margin-top: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__pending { padding: 12px 14px; border-radius: 10px; background: var(--due-soft); color: var(--due-text); font-size: 14px; font-weight: 500; }
.form__submit { width: 100%; }
.form__after { font-size: 13.5px; color: var(--text-2); text-align: center; }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav__list { gap: 16px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .hero__shot { max-width: 640px; }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .art__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .art__aside { position: static; max-width: 560px; }
  .feature, .formpage__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature--flip .feature__copy { order: 0; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; --header-h: 96px; }
  .hdr__in { height: auto; flex-wrap: wrap; gap: 0 12px; padding-block: 10px 0; }
  .brand { order: 1; gap: 8px; }
  .brand__word { font-size: 16px; }
  .brand__ed { font-size: 12px; padding: 1px 7px; }
  .hdr__cta { order: 2; margin-left: auto; min-height: 34px; padding: 0 12px; font-size: 14px; }
  .nav { order: 3; flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-top: 6px; }
  .langs { order: 4; margin-top: 6px; align-self: center; }
  .langs__long { display: none; }
  .langs__short { display: inline; }
  .nav::-webkit-scrollbar { display: none; }
  .nav__list { gap: 20px; padding-block: 6px 8px; }
  .hero { padding: 40px 0 64px; }
  .hero__h1 { font-size: 36px; line-height: 44px; }
  .hero__lead { font-size: 17.5px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .shot { padding-bottom: 32px; }
  .shot::before { inset: -14px -12px 16px 12px; }
  .shot__main { width: 100%; }
  .shot__side { width: 94%; margin: 14px 0 0 auto; }
  .trust__list { justify-content: flex-start; }
  .sec { padding-block: 64px; }
  .sec--tight { padding-block: 52px; }
  .sec__head { margin-bottom: 28px; }
  .sec__head h2, .feature__copy h2, .kb h2, .lang-ja .sec__head h2, .lang-ja .feature__copy h2, .lang-ja .kb h2 { font-size: 27px; line-height: 36px; }
  .doors, .why, .cases { grid-template-columns: minmax(0, 1fr); }
  .why { gap: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps::before { top: 16px; bottom: 16px; left: 16px; right: auto; width: 1px; height: auto; }
  .step { padding-left: 52px; }
  .step__n { position: absolute; left: 0; top: 0; margin: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--calendar, .tile--board, .tile--record { grid-column: auto; grid-row: auto; }
  .tile { min-height: 0; }
  .viz-year { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .viz-year__m { height: 48px; }
  .viz-board span { min-height: 110px; }
  .kb { flex-direction: column; align-items: flex-start; }
  .final { padding-block: 64px; }
  .final h2, .lang-ja .final h2 { font-size: 28px; line-height: 38px; }
  .final__ctas .btn { flex: 1 1 100%; }
  .brief-band__in { flex-wrap: wrap; }
  .brief-band__in .btn { flex: 1 1 100%; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ftr__brand { grid-column: 1 / -1; }
  .phead { padding: 40px 0 16px; }
  .phead__h1, .lang-ja .phead__h1 { font-size: 32px; line-height: 42px; }
  .art__head { padding-top: 36px; }
  .art__h1, .lang-ja .art__h1 { font-size: 28px; line-height: 40px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .board__row { grid-template-columns: minmax(0, 1fr) auto; }
  .board__next { grid-column: 1 / -1; grid-row: 2; }
  .faq__a { padding-right: 0; }
}
@media (max-width: 359px) {
  .brand__ed { display: none; }
}

/* --- Motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
