/* TimeDrop LP — 全ページ共通スタイル。
   デザイン規約の土台は .specs/lp.spec.md §7（Apple 純正寄り・システムフォント・白地中心）。

   コンセプトは「重力」。期日の決まっていないタスクは宙に浮いていて（ヒーローのピルの揺れ、
   課題提起の漂うタスク列）、カレンダーという地面に落ちた瞬間に予定になる。
   ⚠ オレンジ（--landed）は「着地した＝予定になった」ものにだけ使う。ボタンや装飾に流用すると、
   ページ全体で一貫させている「色が変わった＝落ちた」の読み方が崩れる。

   Web フォントは使わない（§7）。プライバシーを売りにするページが Google Fonts 等へ
   リクエストを飛ばすのは主張と矛盾する。表示用の顔は SF / ヒラギノの太さと字送りだけで作る。 */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --sunk: #eef2f8;
  --ink: #0d1626;
  --ink-2: #4c586b;
  --line: #dbe2ec;
  --grid: rgba(13, 22, 38, 0.06);
  --blue: #2a7bf4;
  --link: #1a5fd0;
  --focus: #2a7bf4;
  --landed: #ff7a1a;
  --today: #ff3b30;
  /* 小さな赤文字（祝日名・曜日）用。--c-red / --today のままだと白地で 4.5:1 に届かない */
  --red-text: #c4292f;
  --night: #0b1322;
  --night-2: #121d31;

  --c-blue: #2a7bf4;
  --c-purple: #8e5be8;
  --c-green: #25a55a;
  --c-teal: #129cb0;
  --c-red: #e5484d;

  --shadow-app:
    0 0 0 1px rgba(13, 22, 38, 0.06),
    0 2px 4px rgba(13, 22, 38, 0.04),
    0 24px 48px -12px rgba(13, 22, 38, 0.18),
    0 80px 120px -48px rgba(13, 22, 38, 0.32);
  --shadow-lift: 0 1px 2px rgba(13, 22, 38, 0.08), 0 18px 30px -10px rgba(13, 22, 38, 0.35);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-land: cubic-bezier(0.3, 1.35, 0.5, 1);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f19;
    --surface: #111a29;
    --sunk: #0d1422;
    --ink: #e9eef7;
    --ink-2: #9ba7bb;
    --line: #223049;
    --grid: rgba(233, 238, 247, 0.055);
    --blue: #4c93ff;
    --link: #82b4ff;
    --focus: #6aa6ff;
    --landed: #ff8b3d;
    --today: #ff544a;
    --red-text: #ff6369;
    --night: #060b14;
    --night-2: #0e1729;

    --c-blue: #4c93ff;
    --c-purple: #a780f5;
    --c-green: #3cc274;
    --c-teal: #2fbcd0;
    --c-red: #ff6369;

    --shadow-app:
      0 0 0 1px rgba(233, 238, 247, 0.08),
      0 24px 48px -12px rgba(0, 0, 0, 0.6),
      0 80px 120px -48px rgba(0, 0, 0, 0.8);
    --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 30px -10px rgba(0, 0, 0, 0.75);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 0;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
/* 文中のリンクは色だけだと周囲の本文と 3:1 の差が取れないので、下線でも区別する */
:is(p, li) a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

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

[id] { scroll-margin-top: 5rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---- レイアウト ---- */

.wrap {
  max-width: 66rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap.wrap-wide { max-width: 84rem; }
.wrap.wrap-narrow { max-width: 46rem; }

section { padding-block: clamp(5rem, 12vw, 10rem); }

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
.split-head h2 { margin-bottom: 0; }
@media (min-width: 72rem) {
  .split-head { position: sticky; top: 6rem; }
}
@media (max-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* ---- ヘッダー ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
/* ロゴは favicon と同じ雫。記事ページの HTML を触らずに全ページへ出すため CSS 側で描く */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  background: url("/assets/favicon.svg") center / contain no-repeat;
}
.brand:hover { text-decoration: none; opacity: 0.75; }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.6vw, 1.75rem);
  font-size: 0.875rem;
}
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.lang-switch {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.2rem 0.85rem;
}
.lang-switch:hover { border-color: var(--ink-2); }

/* ---- フッター ---- */

.site-footer {
  --ink: #e9eef7;
  --ink-2: #93a0b5;
  --focus: #82b4ff;
  background: var(--night);
  color: var(--ink-2);
  padding-block: 2.75rem;
  font-size: 0.8125rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  align-items: center;
}
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); text-decoration: none; }
.site-footer .copyright { margin-inline-start: auto; }

/* ---- タイポグラフィ ---- */

h1, h2, h3 { font-weight: 700; margin: 0; }

h1 {
  font-size: clamp(2.9rem, 8.6vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.1875rem;
  line-height: 1.4;
  letter-spacing: -0.014em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* 和文は欧文ほど詰められない（詰めると濁点と句読点が潰れる）。
   改行位置は見出しの <br> で決めてあるので balance は切る——和文の語境界を見ずに割り直すため */
html[lang="ja"] h1 {
  font-size: clamp(1.75rem, 8.4vw, 5.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
html[lang="ja"] h2 {
  font-size: clamp(1.75rem, 4.2vw, 3.3rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
}
html[lang="ja"] h1,
html[lang="ja"] h2 { text-wrap: normal; }
/* 文節で折る（対応ブラウザのみ。未対応でも従来どおり字単位で折れるだけ） */
html[lang="ja"] :is(h1, h2, h3, summary) { word-break: auto-phrase; }
html[lang="en"] h1,
html[lang="en"] h2 { text-wrap: balance; }

.lead {
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.6;
  letter-spacing: -0.008em;
  color: var(--ink-2);
  max-width: 32em;
  margin: 0 0 1rem;
}
.muted { color: var(--ink-2); }

/* ---- ボタン ---- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 14px;
  padding: 0.75rem 1.6rem 0.8rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s;
}
.badge:hover { text-decoration: none; transform: translateY(-2px); }
.badge:active { transform: translateY(0); }
.badge-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 10px 24px -12px rgba(13, 22, 38, 0.55);
}
.badge-primary:hover { box-shadow: 0 16px 30px -12px rgba(13, 22, 38, 0.6); }
.badge-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.badge small {
  display: block;
  font-weight: 450;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ---- ヒーロー ---- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 9vw, 8rem);
  overflow-x: clip;
}
/* 背景はページ幅を 7 等分した縦罫＝曜日の列。上から降りて中腹で消える */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / 7) 100%, 100% 8.5rem;
  background-position: -1px 0, 0 -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 10%, transparent 70%);
}
/* 見出しは全幅で一息に読ませ、説明とボタンは右半分へ退ける */
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 4vw, 4rem);
}
.hero-title { margin: 0; grid-column: 1 / -1; }
.hero-aside { grid-column: 2; }
.hero-aside .store-badges { margin-top: 1.75rem; }
@media (max-width: 60rem) {
  .hero-head { grid-template-columns: minmax(0, 1fr); }
  .hero-aside { grid-column: 1; }
}

/* 見出しの文字が上から落ちてくる。JS が 1 文字ずつ span に割る（main.js の splitDropText）。
   JS が走らなかったときに見出しが消えたままにならないよう、最後に必ず見える状態へ倒す */
.js [data-drop-text]:not(.is-split) { animation: drop-fallback 0s 1.2s both; }
@keyframes drop-fallback { from { visibility: hidden; } to { visibility: visible; } }
.drop-ch {
  display: inline-block;
  animation: ch-fall 0.9s var(--ease-land) both;
  animation-delay: calc(var(--i) * 32ms + 80ms);
}
@keyframes ch-fall {
  from { transform: translateY(-0.7em); opacity: 0; }
  40% { opacity: 1; }
  to { transform: none; opacity: 1; }
}

/* ---- 触れるデモ（アプリ画面） ---- */

.stage {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  perspective: 1800px;
}
.app {
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-app);
  overflow: hidden;
  font-size: clamp(0.625rem, 1.02vw, 0.875rem);
  line-height: 1.35;
  transform-origin: 50% 0;
}
.js .app { animation: app-rise 1.3s var(--ease-out) 0.35s both; }
@keyframes app-rise {
  from { transform: rotateX(14deg) translateY(3rem); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.app-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.85em 1.1em;
  background: var(--sunk);
  border-bottom: 1px solid var(--line);
}
.lights { display: flex; gap: 0.5em; }
.lights i {
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  background: #ff5f57;
}
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.app-title { font-weight: 700; font-size: 1.1em; letter-spacing: -0.01em; }
.seg {
  justify-self: end;
  display: flex;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 0.55em;
  padding: 0.15em;
  font-size: 0.9em;
  color: var(--ink-2);
}
.seg > * { padding: 0.15em 0.85em; border-radius: 0.42em; font-weight: 500; }
.seg b { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }

.app-body { display: flex; }
.app-side {
  flex: none;
  width: 27%;
  padding: 1.3em 1em;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--sunk) 60%, var(--surface));
}
.side-title {
  margin: 0 0 0.9em;
  font-weight: 750;
  font-size: 1.35em;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.side-count {
  font-size: 0.7em;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6em;
}
.tasks li { min-width: 0; transition: margin 0.35s var(--ease-out), opacity 0.25s; }
.task {
  --c: var(--c-blue);
  appearance: none;
  font: inherit;
  color: var(--ink);
  width: 100%;
  text-align: left;
  display: block;
  padding: 0.65em 0.85em;
  border: 1px solid var(--line);
  border-radius: 0.7em;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(13, 22, 38, 0.05);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ボタンを flex にすると text-overflow の省略記号が効かないので、印は inline-block で並べる */
.task::before {
  content: "";
  display: inline-block;
  vertical-align: -0.12em;
  margin-right: 0.6em;
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  border: 1.5px solid var(--c);
}
.task[data-color="purple"] { --c: var(--c-purple); }
.task[data-color="green"] { --c: var(--c-green); }
.task[data-color="teal"] { --c: var(--c-teal); }
.task[data-color="landed"] { --c: var(--landed); }

/* 期日の無いタスクは宙に浮いている。つかめることの手がかりも兼ねる */
.js .task {
  cursor: grab;
  touch-action: none;
  animation: bob 4.6s ease-in-out infinite;
  animation-delay: calc(var(--n, 0) * -0.9s);
}
.tasks li:nth-child(2) .task { --n: 1; }
.tasks li:nth-child(3) .task { --n: 2; }
.tasks li:nth-child(4) .task { --n: 3; }
.tasks li:nth-child(5) .task { --n: 4; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.is-dragging,
.is-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.task:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.task.is-lifted {
  animation: none;
  opacity: 0.35;
  border-style: dashed;
  box-shadow: none;
}
.tasks li.is-gone { opacity: 0; }

.side-done {
  margin: 0.4em 0 0;
  color: var(--ink-2);
  font-size: 0.95em;
}
.side-reset {
  appearance: none;
  font: inherit;
  font-weight: 650;
  color: var(--link);
  background: none;
  border: 0;
  padding: 0 0 0 0.4em;
  cursor: pointer;
}

.app-cal { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  color: var(--ink-2);
  font-size: 0.82em;
  font-weight: 600;
  padding: 0.6em 0;
  text-align: right;
}
.dow span { padding-right: 0.8em; }
.month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.day {
  position: relative;
  min-height: 6.6em;
  padding: 0.35em 0.4em 0.4em;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.22em;
  min-width: 0;
  transition: background-color 0.15s;
}
.day:nth-child(7n) { border-right: 0; }
.day:nth-last-child(-n + 7) { border-bottom: 0; }
.num {
  align-self: flex-end;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  font-size: 0.95em;
  min-width: 1.75em;
  height: 1.75em;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.day.out .num { color: color-mix(in srgb, var(--ink-2) 55%, transparent); }
.day.today .num { background: var(--today); color: #fff; font-weight: 700; }
.day.hol .num { color: var(--red-text); }
.hol-name {
  font-style: normal;
  font-size: 0.72em;
  color: var(--red-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day.is-over {
  background: color-mix(in srgb, var(--landed) 11%, transparent);
  box-shadow: inset 0 0 0 2px var(--landed);
}

/* カレンダー上の予定。純正カレンダーと同じ「淡い面＋左の色帯」 */
.chip {
  --c: var(--c-blue);
  display: block;
  font-style: normal;
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1.5;
  padding: 0 0.45em;
  border-radius: 0.3em;
  border-left: 2px solid var(--c);
  background: color-mix(in srgb, var(--c) 15%, var(--surface));
  color: color-mix(in srgb, var(--c) 62%, var(--ink));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c-purple { --c: var(--c-purple); }
.c-green { --c: var(--c-green); }
.c-teal { --c: var(--c-teal); }
.c-red { --c: var(--c-red); }
.c-landed { --c: var(--landed); }
.chip.is-new { animation: chip-land 0.7s var(--ease-land) both; }
@keyframes chip-land {
  from { transform: translateY(-0.8em) scale(1.15); opacity: 0; box-shadow: 0 0 0 0 color-mix(in srgb, var(--landed) 60%, transparent); }
  55% { opacity: 1; }
  to { transform: none; opacity: 1; box-shadow: 0 0 0 0.6em transparent; }
}

/* ドラッグ中に指先へ付いてくる複製。位置は main.js が transform で動かす */
.drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  pointer-events: none;
  margin: 0;
  animation: none !important;
  transform-origin: 20% 50%;
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--c) 50%, var(--line));
}
.drag-ghost.is-hint { opacity: 0.85; }

.stage-hint {
  display: none;
  margin: 1.4rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.js .stage-hint { display: block; }
.stage-hint::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--landed);
  vertical-align: 0.1em;
  animation: pulse 1.8s ease-in-out infinite;
}
.stage-hint.is-quiet::before { animation: none; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--landed) 55%, transparent); }
  60% { box-shadow: 0 0 0 0.55em transparent; }
}

@media (max-width: 40rem) {
  .app { font-size: 0.6875rem; }
  .app-side { width: 38%; padding: 1em 0.6em; }
  .seg { display: none; }
  .app-bar { grid-template-columns: auto 1fr; gap: 1em; }
  .dow { font-size: 0.75em; text-align: center; }
  .dow span { padding: 0; }
  .day { min-height: 4.6em; padding: 0.2em; }
  .num { align-self: center; font-size: 0.9em; }
  /* 狭いセルに文字を詰めると全部「…」になる。帯だけ残して密度を見せる */
  .month .chip, .hol-name { font-size: 0; height: 0.32rem; padding: 0; border-left-width: 0; background: var(--c); }
  .hol-name { background: none; }
}

/* ---- 課題提起 ---- */

.problem {
  --ink: #e9eef7;
  --ink-2: #9aa7bc;
  --line: rgba(233, 238, 247, 0.14);
  --link: #82b4ff;
  --focus: #82b4ff;
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  padding-top: 0;
}
/* 決まらないまま流れ続けるタスク。期日が無いので、どこにも着地しない */
.drift {
  display: grid;
  gap: 0.85rem;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}
.drift-row {
  display: flex;
  gap: 0.85rem;
  width: max-content;
  animation: drift 90s linear infinite;
}
.drift-row.drift-rev { animation-direction: reverse; animation-duration: 110s; margin-left: -12rem; }
.drift-row:nth-child(3) { animation-duration: 130s; margin-left: -5rem; }
.drift-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid rgba(233, 238, 247, 0.12);
  border-radius: 0.8rem;
  color: rgba(233, 238, 247, 0.5);
  font-size: 0.9375rem;
  white-space: nowrap;
}
.drift-row span::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 1.5px solid rgba(233, 238, 247, 0.32);
}
@keyframes drift { to { transform: translateX(-50%); } }
@media (max-width: 40rem) {
  .drift-row span { font-size: 0.8125rem; padding: 0.45rem 0.85rem; }
}

.problem-body h2 { max-width: 16em; }
.problem-points {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(1.75rem, 4vw, 4rem);
}
.problem-points li { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.problem-points h3 { font-size: clamp(1.1875rem, 2vw, 1.4375rem); margin-bottom: 0.75rem; }
.problem-points p { margin: 0; color: var(--ink-2); max-width: 30em; }

/* ---- コア体験（スクロールで進む 3 段） ---- */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.steps {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 0 1.5rem 3.25rem;
  border-top: 1px solid var(--line);
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.step h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); transition: color 0.3s; }
.step p { margin: 0; color: var(--ink-2); max-width: 28em; }

.how-stage { position: relative; }
.mini {
  --fx: 4.5%;
  --fy: 24%;
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-app);
  overflow: hidden;
  display: flex;
  font-size: clamp(0.75rem, 1.15vw, 0.9375rem);
  line-height: 1.35;
}
.mini-side {
  width: 36%;
  flex: none;
  padding: 1.4em 0.9em;
  background: color-mix(in srgb, var(--sunk) 60%, var(--surface));
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.mini-title { font-weight: 750; font-size: 1.25em; letter-spacing: -0.02em; margin-bottom: 0.3em; }
.mini-task,
.mini-flyer {
  display: block;
  padding: 0.6em 0.75em;
  border: 1px solid var(--line);
  border-radius: 0.7em;
  background: var(--surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-task::before,
.mini-flyer::before {
  content: "";
  display: inline-block;
  vertical-align: -0.12em;
  margin-right: 0.5em;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  border: 1.5px solid var(--c-blue);
}
.mini-slot {
  display: block;
  border-radius: 0.7em;
  outline: 1.5px dashed var(--line);
  outline-offset: -1.5px;
}
.m-ghost { visibility: hidden; }
.mini-week {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mini-day {
  position: relative;
  padding: 1.1em 0.4em;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  min-width: 0;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.mini-day:last-child { border-right: 0; }
.mini-day b { font-size: 1.6em; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.mini-day em { font-style: normal; color: var(--ink-2); font-size: 0.85em; margin-bottom: 0.6em; }
.mini-day .chip { font-size: 0.82em; padding-block: 0.15em; }

.mini-flyer {
  position: absolute;
  left: var(--fx);
  top: var(--fy);
  width: 27%;
  margin: 0;
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--landed) 45%, var(--line));
  transform: rotate(-3deg) scale(1.06);
  transition:
    left 0.75s var(--ease-out),
    top 0.75s var(--ease-out),
    transform 0.5s var(--ease-out),
    opacity 0.3s,
    box-shadow 0.4s;
}
.mini-flyer::before { border-color: var(--landed); }
.mini-landed { opacity: 0; transform: translateY(-0.5em); transition: opacity 0.3s, transform 0.5s var(--ease-land); }
.mini-keys {
  position: absolute;
  right: 1em;
  bottom: 1em;
  display: flex;
  gap: 0.35em;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
kbd {
  font: inherit;
  font-weight: 600;
  min-width: 2.2em;
  height: 2.2em;
  display: inline-grid;
  place-items: center;
  padding: 0 0.5em;
  border-radius: 0.45em;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 0 var(--line);
}

/* 状態 2＝着地。flyer が日付へ移り、到着後に消えて予定（.mini-landed）が現れる */
[data-state="2"] .mini { --fx: 66%; --fy: 31%; }
[data-state="2"] .mini-flyer {
  transform: none;
  opacity: 0;
  box-shadow: none;
  transition-delay: 0s, 0s, 0.55s, 0.7s, 0.55s;
}
[data-state="2"] .mini-target { background: color-mix(in srgb, var(--landed) 8%, transparent); }
[data-state="2"] .mini-landed { opacity: 1; transform: none; transition-delay: 0.7s; }
/* 状態 3＝戻した。flyer がタスクとしてサイドバーの元の位置に収まる */
[data-state="3"] .mini-flyer { transform: none; box-shadow: none; border-color: var(--line); }
[data-state="3"] .mini-flyer::before { border-color: var(--c-blue); }
[data-state="3"] .mini-slot { outline-color: transparent; }
[data-state="3"] .mini-keys { opacity: 1; transform: none; transition-delay: 0.6s; }

/* いま見ていない手順は見出しの色だけ落とす。全体を opacity で薄めると本文が 4.5:1 を割る */
.js .step:not(.is-active) h3 { color: var(--ink-2); }
.step.is-active::before { background: var(--ink); color: var(--bg); border-color: var(--ink); }

@media (min-width: 60.0625rem) {
  .how-stage { position: sticky; top: calc(50vh - 14rem); }
  .js .step { min-height: 48vh; }
  .js .step:last-child { min-height: 30vh; }
}
@media (max-width: 60rem) {
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  /* 狭い画面では画面を上に貼り付け、その下を手順が流れる */
  .how-stage { position: sticky; top: 4rem; z-index: 2; order: -1; }
  .how-text { order: 0; }
  .js .step { min-height: 42vh; }
  .how-grid > .how-text h2 { margin-top: 0; }
  .how-grid { gap: 1.5rem; }
}

/* ---- 機能 ---- */

.features { background: var(--sunk); }
.features-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.features-head h2 { margin: 0; }
.features-head .lead { margin: 0; }
@media (max-width: 60rem) {
  .features-head { grid-template-columns: minmax(0, 1fr); }
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.feat-copy p { margin: 0; color: var(--ink-2); font-size: 0.9688rem; line-height: 1.7; max-width: 30em; }
.feat-views { grid-column: span 7; grid-row: span 2; }
.feat-sync { grid-column: span 5; }
.feat-undo { grid-column: span 5; flex-direction: row; align-items: center; }
.feat-cal { grid-column: span 6; flex-direction: row; align-items: center; }
.feat-widget { grid-column: span 6; flex-direction: row; align-items: center; }
.feat-undo .feat-copy,
.feat-cal .feat-copy,
.feat-widget .feat-copy { flex: 1; }
@media (max-width: 64rem) {
  .feat-views, .feat-sync, .feat-undo, .feat-cal, .feat-widget { grid-column: span 12; grid-row: auto; }
}
@media (max-width: 34rem) {
  .feat-undo, .feat-cal, .feat-widget { flex-direction: column; align-items: flex-start; }
}

/* 月・週・日・年 の切り替え。タブは純正のセグメントと同じ形 */
.views { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.views-tabs {
  align-self: flex-start;
  display: flex;
  padding: 0.2rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.views-tabs button {
  appearance: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  background: none;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.3rem 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.views-tabs [aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.views-panel {
  flex: 1;
  min-height: 15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.views-panel:not([hidden]) { animation: panel-in 0.45s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: scale(0.985); } }
.views-panel .d,
.views-panel i { --c: var(--c-blue); }
.views-panel .d2 { --c: var(--c-purple); }
.views-panel .d3 { --c: var(--landed); }

.vm-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(5, 1fr);
}
.vm-grid i {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.vm-grid i:nth-child(7n) { border-right: 0; }
.vm-grid i:nth-last-child(-n + 7) { border-bottom: 0; }
.vm-grid .d::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 22%;
  height: 18%;
  border-radius: 3px;
  background: color-mix(in srgb, var(--c) 22%, var(--surface));
  border-left: 2px solid var(--c);
}

.vw-cols {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% 14.28%;
}
.vw-cols span { position: relative; border-right: 1px solid var(--line); }
.vw-cols span:last-child { border-right: 0; }
.vw-cols i,
.vd-lines i {
  position: absolute;
  border-radius: 4px;
  background: color-mix(in srgb, var(--c) 18%, var(--surface));
  border-left: 3px solid var(--c);
}
.vw-cols i { left: 8%; right: 8%; top: calc(var(--t) * 14.28% + 2px); height: calc(var(--h) * 14.28% - 4px); }

.vd-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
}
.vd-lines span {
  border-bottom: 1px solid var(--line);
  font-size: 0.6875rem;
  color: var(--ink-2);
  padding: 0.2rem 0.6rem;
  font-variant-numeric: tabular-nums;
}
.vd-lines i {
  left: 4.25rem;
  right: 1rem;
  top: calc(var(--t) * 100% / 6 + 2px);
  height: calc(var(--h) * 100% / 6 - 4px);
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  color: color-mix(in srgb, var(--c) 62%, var(--ink));
}

.vy-grid {
  position: absolute;
  inset: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.75rem 1rem;
}
.vy-grid span {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink-2) 45%, transparent) 1.2px, transparent 1.6px);
  background-size: calc(100% / 7) 20%;
  border-radius: 6px;
}
.vy-grid .now {
  background-color: color-mix(in srgb, var(--landed) 12%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--landed) 60%, transparent);
}

/* 同じ予定が 3 台に同時に載る */
.sync {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0 0;
  min-height: 9.5rem;
}
.dev {
  position: relative;
  border: 2px solid color-mix(in srgb, var(--ink) 75%, transparent);
  background: var(--bg);
  padding: 0.6rem 0.45rem;
  display: flex;
  align-items: flex-start;
  font-size: 0.6875rem;
}
.dev .chip { width: 100%; }
.dev-mac { width: 9.5rem; height: 6.2rem; border-radius: 8px 8px 2px 2px; }
.dev-mac::after {
  content: "";
  position: absolute;
  left: -1.3rem;
  right: -1.3rem;
  bottom: -0.75rem;
  height: 0.55rem;
  border-radius: 0 0 0.6rem 0.6rem;
  background: color-mix(in srgb, var(--ink) 75%, transparent);
}
.dev-pad { width: 5.6rem; height: 7.4rem; border-radius: 10px; }
.dev-phone { width: 3.6rem; height: 7rem; border-radius: 12px; padding-top: 1rem; }

/* ⌘Z の鍵盤。押すと沈む（クリックで遊べるだけで、何かを取り消すわけではない） */
.keys { flex: none; }
.keys-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.keys-btn kbd {
  font-size: 1.75rem;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 0.9rem;
  border-width: 1px;
  box-shadow: 0 5px 0 var(--line), 0 10px 18px -8px rgba(13, 22, 38, 0.3);
  transition: transform 0.12s, box-shadow 0.12s;
}
.keys-btn:active kbd,
.keys-btn.is-pressed kbd {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--line), 0 4px 8px -6px rgba(13, 22, 38, 0.3);
}

.daycell {
  flex: none;
  width: 9.5rem;
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.daycell-num {
  font-size: 2.6rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--red-text);
  font-variant-numeric: tabular-nums;
}
.daycell-hol { color: var(--red-text); font-size: 0.8125rem; font-weight: 600; margin-top: 0.3rem; }
.daycell-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-2);
}

.widget {
  flex: none;
  width: 10.5rem;
  aspect-ratio: 1;
  border-radius: 1.6rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 18px 34px -16px rgba(13, 22, 38, 0.35);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.6875rem;
  line-height: 1.3;
}
.widget-date { display: flex; align-items: baseline; gap: 0.4rem; color: var(--red-text); font-weight: 650; margin-bottom: 0.2rem; }
.widget-date b { font-size: 1.9rem; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.widget-row {
  --c: var(--c-blue);
  padding-left: 0.45rem;
  border-left: 2.5px solid var(--c);
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.r-landed { --c: var(--landed); }
.r-purple { --c: var(--c-purple); }

/* ---- 純正との関係（3 層の図） ---- */

.native-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.native-text p:not(.lead) { color: var(--ink-2); max-width: 32em; margin: 0; }
.native-text .lead { color: var(--ink); }
@media (max-width: 60rem) {
  .native-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 斜めから見た 3 枚の板。最上段の TimeDrop だけが透明＝自前のデータを持たない窓 */
.layers {
  margin: 0;
  position: relative;
  display: grid;
  gap: 0;
  padding-block: 2rem;
}
.layer {
  position: relative;
  height: clamp(5.5rem, 10vw, 7.5rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 0;
  transition: transform 0.6s var(--ease-out);
}
.layer::before {
  content: "";
  position: absolute;
  left: 0;
  width: 52%;
  top: 0;
  aspect-ratio: 1.6;
  border-radius: 18px;
  transform: rotateX(58deg) rotateZ(-38deg);
  transform-origin: 50% 0;
}
.layer span,
.layer small { position: relative; z-index: 5; }
.layer span { font-weight: 700; font-size: clamp(0.9375rem, 1.5vw, 1.0625rem); letter-spacing: -0.01em; }
.layer small { color: var(--ink-2); font-size: 0.8125rem; }
.layer-top { z-index: 3; }
.layer-top::before {
  border: 1.5px solid color-mix(in srgb, var(--blue) 70%, transparent);
  background: color-mix(in srgb, var(--blue) 6%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.layer-mid { z-index: 2; }
.layer-mid::before {
  background:
    linear-gradient(to right, transparent 0 8%, color-mix(in srgb, var(--landed) 70%, var(--surface)) 8% 40%, transparent 40%) 0 22% / 100% 9% no-repeat,
    linear-gradient(to right, transparent 0 8%, color-mix(in srgb, var(--c-blue) 60%, var(--surface)) 8% 55%, transparent 55%) 0 44% / 100% 9% no-repeat,
    linear-gradient(to right, transparent 0 8%, color-mix(in srgb, var(--c-purple) 55%, var(--surface)) 8% 30%, transparent 30%) 0 66% / 100% 9% no-repeat,
    var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 30px 40px -20px rgba(13, 22, 38, 0.3);
}
.layer-base { z-index: 1; }
.layer-base::before {
  background: linear-gradient(135deg, #3d8dfa, #1f62d6);
  box-shadow: 0 40px 60px -24px rgba(31, 98, 214, 0.55);
}
@media (max-width: 40rem) {
  .layer::before { width: 44%; }
}
.layers:hover .layer-top { transform: translateY(-1.25rem); }
.layers:hover .layer-base { transform: translateY(1rem); }

/* ---- プライバシー ---- */

.privacy { background: var(--surface); }
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.privacy-text .lead { color: var(--ink); }
.privacy-text .muted { max-width: 32em; margin: 0; }
@media (max-width: 60rem) {
  .privacy-grid { grid-template-columns: minmax(0, 1fr); }
}
.nothing-label { margin: 0 0 1rem; color: var(--ink-2); font-size: 0.9375rem; font-weight: 600; }
.nothing-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nothing-list li {
  border-bottom: 1px solid var(--line);
  padding-block: 0.7rem;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
/* 打ち消し線は「無い」の宣言。線を後から引くのは JS があるときだけ（無ければ最初から引いてある） */
.nothing-list s {
  text-decoration: none;
  position: relative;
  color: var(--ink-2);
}
.nothing-list s::after {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  top: 54%;
  height: 0.08em;
  min-height: 2px;
  background: var(--ink);
  transform-origin: left center;
}
.js .nothing-list s::after { transform: scaleX(0); transition: transform 0.6s var(--ease-out); }
.js .nothing-list s { color: var(--ink); transition: color 0.6s; }
.js .nothing-list.is-in s { color: var(--ink-2); }
.js .nothing-list.is-in s::after { transform: none; }
.nothing-list li:nth-child(2) s, .nothing-list li:nth-child(2) s::after { transition-delay: 0.12s; }
.nothing-list li:nth-child(3) s, .nothing-list li:nth-child(3) s::after { transition-delay: 0.24s; }
.nothing-list li:nth-child(4) s, .nothing-list li:nth-child(4) s::after { transition-delay: 0.36s; }
.nothing-list li:nth-child(5) s, .nothing-list li:nth-child(5) s::after { transition-delay: 0.48s; }

/* ---- FAQ ---- */

.faq-sec .link-more { display: inline-block; margin-top: 1.5rem; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  padding-block: 1.15rem;
  padding-inline-end: 2.25rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: -0.4rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--ink-2);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--link); }
.faq details p { margin: 0 0 1.25rem; color: var(--ink-2); max-width: 44em; }

/* ---- 締め ---- */

.outro {
  --ink: #e9eef7;
  --ink-2: #9aa7bc;
  --line: rgba(233, 238, 247, 0.16);
  --surface: #17233a;
  --bg: #0b1322;
  --focus: #82b4ff;
  position: relative;
  isolation: isolate;
  background: var(--night-2);
  color: var(--ink);
  overflow: hidden;
}
.outro-title { margin: 0 0 2.5rem; }
html[lang="ja"] .outro-title { font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.16; }
html[lang="en"] .outro-title { font-size: clamp(2.6rem, 7.6vw, 6.5rem); line-height: 1; }
.outro .badge-primary { background: #e9eef7; color: #0b1322; }
.outro { padding-bottom: 0; }
.outro-week {
  margin-top: clamp(4rem, 9vw, 7rem);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  font-size: clamp(0.6875rem, 1vw, 0.875rem);
}
.outro-week > span {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  min-width: 0;
  min-height: clamp(9rem, 16vw, 13rem);
  padding: 0.8em 0.5em;
  border-right: 1px solid var(--line);
}
.outro-week > span:last-child { border-right: 0; }
.outro-week b { color: var(--ink-2); font-weight: 600; margin-bottom: 0.4em; }
.outro-week .chip { padding-block: 0.25em; }
/* 見えた瞬間に 1 度だけ、左の曜日から順に降りてくる */
.js .outro-week .chip { opacity: 0; }
.js .outro-week.is-in .chip { animation: chip-land 0.8s var(--ease-land) both; animation-delay: calc(var(--k, 0) * 70ms); }
@media (max-width: 40rem) {
  .outro-week .chip { font-size: 0; height: 0.4rem; padding: 0; border-left-width: 0; background: var(--c); }
}

/* ---- 記事系ページ（法務・サポート・更新履歴） ---- */

.doc { padding-block: clamp(3rem, 7vw, 5rem) clamp(4rem, 9vw, 6rem); }
.doc h1,
html[lang="ja"] .doc h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
/* ⚠ `html[lang="ja"] h2` (0,1,2) は `.doc h2` (0,1,1) に勝つ。和文側も並べて書かないと
   記事ページで h2 が h1 より大きくなる */
.doc h2,
html[lang="ja"] .doc h2 {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.015em;
  margin: 3rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.doc time { color: var(--ink-2); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.doc ul { padding-inline-start: 1.3rem; }
.doc li { margin-block: 0.35rem; }
.doc p { max-width: 44em; }

@media (max-width: 40rem) {
  .site-nav .nav-sec { display: none; }
  .store-badges { flex-direction: column; }
  .badge { align-items: center; }
  .site-footer .copyright { margin-inline-start: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .drift-row { animation: none !important; }
}
