/*
 * ReTime の見た目。白とごく淡い青みのグレーの地に、濃紺の文字とボタン。
 * グラデーション・影・彩度の高い色は使わない。色は分類ごとの淡い面（--tint-*）と、
 * 要所のアクセント（--accent：見出しの小見出し・リンク・番号）だけに使う。
 */
:root {
  --paper: #f4f6f9;
  --sheet: #ffffff;
  --ink: #142033;
  --ink-soft: #4b5567;
  --ink-faint: #8790a0;
  --rule: #e1e6ed;
  --rule-strong: #c8d0db;
  --btn: #13284b;
  --btn-ink: #ffffff;
  --accent: #1f4f99;
  --accent-soft: #e9eff8;
  --band: #13284b;          /* LP の締めの帯 */
  --band-ink: #ffffff;
  --tint-paperwork: #e6edf7;
  --tint-maisoku: #e3edf0;
  --tint-spread: #e9eaf4;
  --tint-area: #e4eee9;
  --tint-decide: #ebeef2;
  --tint-training: #f2eae2;
  --dot-live: #2e7d55;
  --dot-running: #1f4f99;
  --dot-dev: #b5761f;
  --dot-proto: #8790a0;
  --radius: 14px;
  --pad: 20px;                          /* カードの内側 */
  --pad-panel: clamp(20px, 3vw, 32px);  /* 色付きの枠の内側 */
  --gap: 12px;                          /* カード同士の間隔 */
  --f-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-label: "Inter", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f141c; --sheet: #171e29; --ink: #eef2f7; --ink-soft: #a7b0bf; --ink-faint: #737d8e;
    --rule: #252e3b; --rule-strong: #364152; --btn: #eef2f7; --btn-ink: #0f141c;
    --accent: #8fb3ea; --accent-soft: #1c2738; --band: #1a2a45; --band-ink: #eef2f7;
    --tint-paperwork: #1b2433; --tint-maisoku: #182429; --tint-spread: #1e2030; --tint-area: #19251f; --tint-decide: #1d222a; --tint-training: #2b241e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f141c; --sheet: #171e29; --ink: #eef2f7; --ink-soft: #a7b0bf; --ink-faint: #737d8e;
  --rule: #252e3b; --rule-strong: #364152; --btn: #eef2f7; --btn-ink: #0f141c;
  --accent: #8fb3ea; --accent-soft: #1c2738; --band: #1a2a45; --band-ink: #eef2f7;
  --tint-paperwork: #1b2433; --tint-maisoku: #182429; --tint-spread: #1e2030; --tint-area: #19251f; --tint-decide: #1d222a; --tint-training: #2b241e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 14px; line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase; line-break: strict; overflow-wrap: anywhere;
}
h1, h2, h3 { text-wrap: pretty; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-family: var(--f-label); font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--accent); }
h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: -.01em; }
.sec-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 20px; }
.sec-title h2 { font-size: clamp(22px, 2.4vw, 28px); }
.sec-title p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.tint-paperwork { --tint: var(--tint-paperwork); }
.tint-maisoku { --tint: var(--tint-maisoku); }
.tint-spread { --tint: var(--tint-spread); }
.tint-area { --tint: var(--tint-area); }
.tint-decide { --tint: var(--tint-decide); }
.tint-training { --tint: var(--tint-training); }

/* header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .shell-head { display: flex; padding-inline: max(16px, env(safe-area-inset-left, 0px)) clamp(16px, 3vw, 40px); justify-content: space-between; align-items: center; height: 60px; gap: 12px; }
.site-head a { text-decoration: none; }
.brand { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.brand b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--btn); color: var(--btn-ink); font-family: var(--f-label); font-size: 14px; }
.brand .by { font-weight: 400; font-size: 12px; color: var(--ink-faint); }
.brand-mark { width: 28px; height: 28px; display: block; }
.wordmark { font-family: var(--f-label); font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.wordmark i { font-style: normal; color: var(--accent); }
.foot-mark { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.other b small { font-weight: 400; font-size: 11px; color: var(--ink-faint); margin-left: 4px; }
.pick-label { display: block; font-size: 11px; color: var(--ink-faint); }
.site-head nav { display: flex; gap: 22px; font-size: 13px; align-items: center; }
.site-head nav a { white-space: nowrap; color: var(--ink-soft); }
.site-head nav a:not(.btn):hover { color: var(--ink); }
.site-head nav .btn { padding: 7px 16px; font-size: 12px; color: var(--btn-ink); }

/* status: 色は小さな点だけ */
.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; line-height: 1;
  padding: 5px 9px 5px 8px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.status.live { --dot: var(--dot-live); }
.status.running { --dot: var(--dot-running); }
.status.dev { --dot: var(--dot-dev); }
.status.proto { --dot: var(--dot-proto); }
.status.demo { --dot: var(--dot-running); }
.tentative {
  display: inline-block; font-size: 10px; font-weight: 500; line-height: 1; padding: 3px 5px;
  margin-left: 6px; border-radius: 4px; border: 1px solid var(--rule-strong); color: var(--ink-soft); vertical-align: 2px;
}

/* app icon: 分類の淡い色の面に黒い文字 */
.icon {
  --size: 56px; width: var(--size); height: var(--size); flex: none; border-radius: 24%;
  display: grid; place-items: center; background: var(--tint, var(--paper)); color: var(--ink);
  font-weight: 700; font-size: calc(var(--size) * .27); overflow: hidden;
}
.icon img { width: 100%; height: 100%; object-fit: cover; }
/* 既存ロゴのうち背景の無いもの（記事作成のマーク）は、白地に少し余白をとって置く */
.icon img[src$="note.svg"] { object-fit: contain; padding: 14%; background: var(--sheet); }

/* screenshot frame */
.shot {
  aspect-ratio: 16 / 10; background: var(--tint, var(--paper)); display: grid; place-items: center;
  overflow: hidden; border-radius: 12px;
}
.shot span { font-family: var(--f-label); font-weight: 700; font-size: 11px; letter-spacing: .12em; color: var(--ink-faint); }
.shot { position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot-dummy {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px;
  background: repeating-linear-gradient(-45deg, rgb(20 32 51 / .05) 0 12px, transparent 12px 24px), rgb(244 246 249 / .55);
  color: #142033; font-size: 11px; text-align: center; pointer-events: none;
}
.shot-dummy b {
  font-family: var(--f-label); font-size: 13px; letter-spacing: .2em; padding: 4px 12px 4px 14px;
  border: 1.5px solid #142033; border-radius: 4px; background: rgb(255 255 255 / .9);
}
.shot-dummy small { padding: 2px 8px; border-radius: 4px; background: rgb(255 255 255 / .9); font-size: 11px; }


/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 22px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--btn); border-radius: 999px; transition: opacity .15s, background .15s;
}
.btn.primary { background: var(--btn); color: var(--btn-ink); }
.btn.primary:hover { opacity: .85; }
.btn.ghost { color: var(--ink); border-color: var(--rule-strong); background: var(--sheet); }
.btn.ghost:hover { border-color: var(--ink); }
.more { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule-strong); font-size: 13px; }
.more:hover { text-decoration-color: currentColor; }

/* ───────── 一覧 ───────── */
/* サイドバー + 本文 */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto;
  padding: 20px 12px 32px; border-right: 1px solid var(--rule); min-height: calc(100vh - 61px);
}
.side-search .search { width: 100%; height: 38px; }
.side-label { margin: 22px 10px 4px; font-size: 11px; color: var(--ink-faint); }
.side-group { display: grid; gap: 1px; }
.side-main { margin-top: 14px; }
.side-group a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px; font-size: 13px; text-decoration: none; color: var(--ink-soft);
}
.side-group a > span { display: flex; align-items: center; gap: 8px; }
.side-group a small { font-family: var(--f-label); font-size: 11px; color: var(--ink-faint); }
.side-group a:hover { color: var(--ink); background: color-mix(in srgb, var(--sheet) 60%, transparent); }
.side-group a[aria-current="true"] { background: var(--sheet); color: var(--ink); font-weight: 700; }
.sw { width: 10px; height: 10px; border-radius: 3px; background: var(--tint); }
.dot { width: 6px; height: 6px; margin-inline: 2px; border-radius: 50%; background: var(--dot); }
.dot.live { --dot: var(--dot-live); }
.dot.running { --dot: var(--dot-running); }
.dot.dev { --dot: var(--dot-dev); }
.dot.proto { --dot: var(--dot-proto); }
.content { padding-inline: clamp(16px, 3vw, 40px); }
.content > section, .content > #app { max-width: 1080px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: static; max-height: none; min-height: 0; border-right: 0; border-bottom: 1px solid var(--rule);
    padding: 12px 16px; display: grid; gap: 8px;
  }
  .sidebar .side-label, .sidebar .side-more, .sidebar .side-sub, .side-main a:not(:first-child) { display: none; }
  .side-main { margin-top: 0; }
  .side-group { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .side-group::-webkit-scrollbar { display: none; }
  .side-group a { flex: none; border: 1px solid var(--rule); background: var(--sheet); border-radius: 999px; padding: 5px 12px; }
  .side-group a[aria-current="true"] { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
  .side-group a[aria-current="true"] small { color: inherit; opacity: .6; }
}

.hero { padding-block: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 40px); display: grid; gap: 12px; justify-items: start; }
.hero h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.3; letter-spacing: -.03em; }
.hero .lead { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 42em; }
@media (min-width: 641px) { .hero .lead span { display: inline-block; } }

.points { padding-block: 0 clamp(48px, 7vw, 80px); }
.points-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--rule); }
.point { padding: 28px 28px 28px 0; display: grid; gap: 8px; align-content: start; }
.point + .point { padding-left: 28px; border-left: 1px solid var(--rule); }
.point .num { font-family: var(--f-label); font-weight: 700; color: var(--ink-faint); font-size: 12px; }
.point h3 { font-size: 17px; line-height: 1.5; }
.point p { margin: 0; color: var(--ink-soft); font-size: 13px; }
@media (max-width: 760px) {
  .points-grid { grid-template-columns: 1fr; }
  .point, .point + .point { padding: 20px 0; border-left: 0; }
  .point + .point { border-top: 1px solid var(--rule); }
}

.featured { padding-block: clamp(48px, 7vw, 80px); }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.slides::-webkit-scrollbar { display: none; }
.slide {
  scroll-snap-align: start; background: var(--tint); border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad-panel); padding: var(--pad-panel); align-items: center;
}
.slide > * { min-width: 0; }
.slide-head { display: flex; gap: 16px; align-items: center; }
.slide-head .icon { background: var(--sheet); }
.slide-head h3 { font-size: 22px; line-height: 1.4; }
.slide-head small { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.slide .info { display: grid; gap: 14px; }
.slide .info p { margin: 0; }
.slide ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--ink-soft); font-size: 13px; }
.slide ul li { padding-left: 14px; position: relative; }
.slide ul li::before { content: "–"; position: absolute; left: 0; color: var(--ink-faint); }
.slide .row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.slide .status { background: var(--sheet); }
.slide .price { font-weight: 700; font-size: 16px; }
.slide .shot { background: var(--sheet); }
@media (max-width: 760px) { .slide { grid-template-columns: minmax(0, 1fr); } }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: var(--rule-strong); font-size: 0; }
.dots button[aria-current="true"] { background: var(--ink); width: 22px; border-radius: 4px; }

.search {
  height: 40px; padding: 0 16px; font: inherit; color: var(--ink);
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 999px;
}
.search::placeholder { color: var(--ink-faint); }
.search:focus { outline: 2px solid var(--ink); outline-offset: -1px; }

/* やりたいことから探す */
.tasks { padding-bottom: clamp(48px, 7vw, 80px); }
.tasks { container-type: inline-size; }
.task-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
/* 狭いときは段を崩さず、横にスクロールする1列にする */
@container (max-width: 820px) {
  .task-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 180px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .task-grid::-webkit-scrollbar { display: none; }
  .task { scroll-snap-align: start; }
}
.task {
  display: grid; gap: 4px; align-content: start; padding: var(--pad); text-decoration: none; color: inherit;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; transition: border-color .15s;
}
.task:hover { border-color: var(--rule-strong); }
.task[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.task b { font-size: 15px; line-height: 1.5; word-break: keep-all; }
.task > span { font-size: 12px; color: var(--ink-soft); }
.task .task-apps { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.task .icon { --size: 26px; border-radius: 7px; font-size: 9px; }
.task-apps small { margin-left: 6px; font-size: 11px; color: var(--ink-faint); }

.catalog { padding-block: 0; }
.group { background: var(--tint); border-radius: var(--radius); padding: var(--pad-panel); }
.group + .group { margin-top: var(--gap); }
.group-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 18px; }
.group-head h2 { font-size: clamp(20px, 2.2vw, 26px); }
.group-head p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.app {
  background: var(--sheet); border-radius: 12px; text-decoration: none; color: inherit;
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; padding: 10px 10px var(--pad);
  border: 1px solid transparent; transition: border-color .15s;
}
.app { min-width: 0; }
.app:hover, .app:focus-visible { border-color: var(--rule-strong); }
.app > :not(.shot) { margin-inline: calc(var(--pad) - 10px); }
.app .shot { border-radius: 8px; margin-bottom: 4px; }
.app-head { display: flex; gap: 14px; align-items: center; }
.app-head h3 { font-size: 16px; line-height: 1.45; }
.app-head .sub { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.app-head .cat { font-size: 11px; color: var(--ink-faint); }
.app .catch-line { margin: 0 calc(var(--pad) - 10px); font-size: 13px; font-weight: 700; line-height: 1.7; color: var(--accent); }
.app .summary { margin: 0 calc(var(--pad) - 10px); font-size: 13px; line-height: 1.8; }
.app .points-mini { margin: 0 calc(var(--pad) - 10px); padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12px; color: var(--ink-soft); align-content: start; }
.app .points-mini li { padding-left: 14px; position: relative; }
.app .points-mini li::before { content: "–"; position: absolute; left: 0; color: var(--ink-faint); }
.app-spec { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.app-spec dt { color: var(--ink-faint); }
.app-spec dd { margin: 0; }
.app-spec .price { font-weight: 700; font-size: 14px; }
.empty { padding: 48px 0; text-align: center; color: var(--ink-soft); }

/* 料金一覧 */
.prices { padding-bottom: clamp(48px, 7vw, 80px); }
.price-table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--rule); }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 500; font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td .name { display: flex; gap: 10px; align-items: center; }
td:first-child { min-width: 230px; }
td .icon { --size: 28px; border-radius: 8px; font-size: 10px; }
td a { font-weight: 700; text-decoration: none; }
td a:hover { text-decoration: underline; }
td small { color: var(--ink-faint); }

/* 相談導線 */
.contact-band { border-top: 1px solid var(--rule); padding-block: clamp(48px, 7vw, 72px); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.contact-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--pad); display: grid; gap: 10px; align-content: start; justify-items: start; }
.contact-card .label { font-size: 12px; color: var(--ink-faint); }
.contact-card h3 { font-size: 18px; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: 13px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ───────── 詳細 ───────── */
.crumbs { font-size: 12px; color: var(--ink-faint); padding-top: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.detail-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; margin-block: 20px 48px;
  background: var(--tint); border-radius: var(--radius); padding: var(--pad-panel);
}
.detail-hero .info { display: grid; gap: 16px; }
.detail-hero .app-head .icon { --size: 72px; background: var(--sheet); }
.detail-hero .status { background: var(--sheet); }
.detail-hero .shot { background: var(--sheet); }
.detail-hero h1 { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.4; }
.detail-hero .problem { margin: 0; font-size: 17px; font-weight: 700; }
.detail-hero .lead { margin: 0; color: var(--ink-soft); }
.detail-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 13px; padding: 16px var(--pad); background: var(--sheet); border-radius: 12px; }
.facts dt { color: var(--ink-faint); }
.facts dd { margin: 0; }
#app { container-type: inline-size; }
@container (max-width: 520px) { .detail-hero .app-head { flex-direction: column; align-items: flex-start; gap: 12px; } }
@container (max-width: 1000px) { .detail-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; } .detail-hero > .shot { order: -1; } }

.sec { padding-block: 24px 48px; display: grid; grid-template-columns: 200px 1fr; gap: 12px 32px; border-top: 1px solid var(--rule); }
.sec > h2 { font-size: 18px; }
@media (max-width: 760px) { .sec { grid-template-columns: 1fr; } }

.features { list-style: none; margin: 0; padding: 0; counter-reset: f; display: grid; gap: var(--gap); }
.features li { counter-increment: f; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px var(--pad); background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; }
.features li::before { content: counter(f, decimal-leading-zero); font-family: var(--f-label); font-weight: 700; color: var(--ink-faint); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--gap); }
.plan { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: var(--pad); display: grid; gap: 4px; }
.plan .pname { font-size: 13px; color: var(--ink-soft); }
.plan .pprice { font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.plan .pprice small { font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-left: 2px; letter-spacing: 0; }
.plan .pnote { font-size: 12px; color: var(--ink-faint); }
.pricing-extra { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); }
.ask { background: var(--sheet); border: 1px dashed var(--rule-strong); border-radius: 12px; padding: var(--pad); color: var(--ink-soft); }

/* 導入の流れ: 番号の丸を縦の線でつなぎ、上から順に読ませる */
.flow { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.flow li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 16px; position: relative; padding-bottom: 20px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before {
  content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--btn); color: var(--btn-ink); font-family: var(--f-label); font-weight: 700; font-size: 13px; position: relative; z-index: 1;
}
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 32px; bottom: 0; width: 1px; background: var(--rule-strong); }
.flow b { display: block; line-height: 32px; }
.flow span { display: block; font-size: 13px; color: var(--ink-soft); }

/* 同じ分類のアプリ: 画像なしの横長の行 */
.minis { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; }
.mini {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px var(--pad); text-decoration: none; color: inherit;
}
.mini + .mini { border-top: 1px solid var(--rule); }
.mini:hover { background: color-mix(in srgb, var(--paper) 50%, transparent); }
.mini .icon { --size: 40px; font-size: 11px; }
.mini b { display: block; font-size: 14px; line-height: 1.5; }
.mini span { font-size: 12px; color: var(--ink-soft); }
.mini > div:nth-child(2) span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mini-meta { display: grid; justify-items: end; gap: 4px; }
.mini-meta .price { font-weight: 700; color: var(--ink); font-size: 13px; white-space: nowrap; }
@container (max-width: 520px) {
  .mini { grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; }
  .mini-meta { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
}

/* よくある質問: 1枚の枠に区切り線で並べる。Q の印と開閉の矢印 */
.faq { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; }
.faq details + details { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 24px 1fr 12px; gap: 0 8px; align-items: center;
  padding: 16px var(--pad); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--f-label); font-weight: 700; color: var(--ink-faint); }
.faq summary::after {
  content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-2px) rotate(45deg); transition: transform .15s; justify-self: end;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { background: color-mix(in srgb, var(--paper) 50%, transparent); }
.faq details:first-child summary { border-radius: 12px 12px 0 0; }
.faq details:last-child:not([open]) summary { border-radius: 0 0 12px 12px; }
.faq p { margin: 0; padding: 0 var(--pad) 18px calc(var(--pad) + 32px); color: var(--ink-soft); }

.cta { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--pad-panel); display: grid; gap: 14px; justify-items: start; margin-bottom: 56px; }
.cta h2 { font-size: clamp(20px, 2.4vw, 26px); }
.cta p { margin: 0; color: var(--ink-soft); }
.cta .btn { background: var(--btn); color: var(--btn-ink); }

/* ───────── お問い合わせ（ステップ式） ───────── */
.contact-page { max-width: 680px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) 16px 72px; }
.contact-head { display: grid; gap: 8px; margin-bottom: 28px; }
.contact-head h1 { font-size: clamp(26px, 3.4vw, 34px); }
.contact-head p { margin: 0; color: var(--ink-soft); }

.steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps li { display: grid; gap: 8px; font-size: 12px; color: var(--ink-faint); }
.steps li::before { content: ""; height: 4px; border-radius: 2px; background: var(--rule); }
.steps li.done { color: var(--ink-soft); }
.steps li.done::before, .steps li[aria-current]::before { background: var(--ink); }
.steps li[aria-current] { color: var(--ink); font-weight: 700; }

.form { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--pad-panel); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.step legend { font-size: 19px; font-weight: 700; padding: 0; margin-bottom: 18px; }
.field { display: grid; gap: 6px; }
.field-label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; }
.req, .opt { font-size: 10px; font-weight: 500; line-height: 1; padding: 3px 6px; border-radius: 4px; }
.req { background: var(--btn); color: var(--btn-ink); }
.opt { border: 1px solid var(--rule-strong); color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); width: 100%;
  border: 1px solid var(--rule); border-radius: 10px; padding: 11px 14px;
}
.field textarea { resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; background: var(--sheet); }
[aria-invalid] { border-color: var(--dot-dev) !important; }
.error { margin: 0; font-size: 12px; color: var(--dot-dev); }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choices.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; }
.choice input, .pick input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; text-align: center; padding: 12px 10px; border: 1px solid var(--rule); border-radius: 10px;
  cursor: pointer; font-size: 14px; background: var(--sheet);
}
.choice span:hover, .pick:hover { border-color: var(--rule-strong); }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }
.choice input[aria-invalid] + span { border-color: var(--dot-dev); }
.choice input:focus-visible + span, .pick:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.app-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; margin-top: -10px; }
.pick {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 10px; font-size: 12px; line-height: 1.4;
}
.pick .icon { --size: 28px; border-radius: 7px; font-size: 9px; }
.pick:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.review { margin: 0; display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.review dt, .review dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.review dt { color: var(--ink-faint); padding-right: 12px; }
.review dd { white-space: pre-wrap; }
.note { margin: 0; font-size: 12px; color: var(--ink-soft); }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.form-nav #next { margin-left: auto; min-width: 140px; }
.form-nav .btn:disabled { opacity: .5; cursor: progress; }

.sent { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--pad-panel); display: grid; gap: 12px; justify-items: start; }
.sent h2 { font-size: 22px; }
.sent p { margin: 0; color: var(--ink-soft); }
.contact-foot { padding-inline: 16px; text-align: center; }

@media (max-width: 480px) {
  .choices.compact { grid-template-columns: 1fr; }
  .review { grid-template-columns: 1fr; }
  .review dt { border-bottom: 0; padding-bottom: 0; }
  .review dd { padding-top: 4px; }
}

.site-foot { border-top: 1px solid var(--rule); margin-top: 0; padding-block: 24px 40px; font-size: 12px; color: var(--ink-faint); }

@media (max-width: 640px) {
  .site-head nav .hide-sm { display: none; }
  .app .app-head .icon { --size: 44px; }
  .app-head h3 { font-size: 15px; }
  .slide-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .slide-head .icon { --size: 48px; }
  .slide-head h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .app, .btn, .task, .faq summary::after { transition: none; } }


/* ───────── LP（lp.html） ───────── */
.lp-wrap { max-width: 1080px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) clamp(16px, 4vw, 40px); }
.lp-head { background: var(--sheet); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.lp-head .lp-wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.lp-head .brand { text-decoration: none; min-width: 0; }
.lp-head .brand .icon { --size: 30px; border-radius: 8px; font-size: 10px; background: var(--btn); color: var(--btn-ink); }
.lp-head .brand > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-head nav { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 13px; }
.lp-head nav a { text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.lp-head nav a:not(.btn):hover { color: var(--ink); }
.lp-head nav .btn { padding: 7px 16px; font-size: 12px; color: var(--btn-ink); }
@media (max-width: 760px) { .lp-head nav a:not(.btn) { display: none; } .lp-head .brand .by { display: none; } }

/* 最初の画面：左に文字、右に写真（左端を地の色に溶かす）。狭いときは写真が上 */
.lp-hero { position: relative; overflow: hidden; background: var(--paper); }
.lp-hero .hero-photo { position: relative; aspect-ratio: 16 / 9; }
.lp-hero .hero-photo .photo { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.lp-hero .hero-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to top, var(--paper), transparent); pointer-events: none; }
.lp-hero .hero-text { position: relative; padding-block: 8px 48px; display: grid; gap: 18px; justify-items: start; }
.lp-hero .catch { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 6px; }
.lp-hero h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.35; letter-spacing: -.02em; }
.lp-hero h1 span { display: block; }
.lp-hero .lead { margin: 0; color: var(--ink-soft); font-size: 15px; }
.lp-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.lp-hero .meta .status { background: var(--sheet); }
.lp-hero .meta b { color: var(--ink); }
@media (min-width: 1024px) {
  .lp-hero .hero-photo { position: absolute; inset: 0 0 0 auto; width: 60%; aspect-ratio: auto; }
  .lp-hero .hero-photo::after { inset: 0 auto 0 0; width: 55%; height: auto; background: linear-gradient(to right, var(--paper) 0%, color-mix(in srgb, var(--paper) 60%, transparent) 45%, transparent 100%); }
  .lp-hero .hero-text { padding-block: 88px 96px; max-width: 470px; }
}

/* 写真の枠。画像が無いときは「何の写真を置くか」を出す */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: var(--tint, var(--accent-soft)); aspect-ratio: 4 / 3; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .photo-todo { display: none; }
.photo.is-empty img { display: none; }
.photo.is-empty .photo-todo {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 16px; text-align: center;
  background: repeating-linear-gradient(-45deg, rgb(20 32 51 / .04) 0 12px, transparent 12px 24px), color-mix(in srgb, var(--tint, var(--accent-soft)) 85%, var(--sheet));
  color: var(--ink-soft); font-size: 12px; line-height: 1.6;
}
.photo-todo b { font-family: var(--f-label); font-size: 11px; letter-spacing: .16em; color: var(--ink); border: 1px solid var(--rule-strong); background: var(--sheet); border-radius: 4px; padding: 2px 10px; }
.photo-todo span { max-width: 26em; }
.photo-todo code { font-size: 10px; color: var(--ink-faint); }
.lp-hero .photo.is-empty .photo-todo { justify-items: end; text-align: right; padding-right: clamp(16px, 4vw, 48px); }
@media (max-width: 1023px) { .lp-hero .photo.is-empty .photo-todo { justify-items: center; text-align: center; padding-right: 16px; } }

.lp-sec { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--rule); }
.lp-sec.alt { background: var(--sheet); }
.lp-sec-head { display: grid; gap: 8px; margin-bottom: clamp(24px, 4vw, 40px); max-width: 40em; }
.lp-sec-head h2 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.4; }
.lp-sec-head p { margin: 0; color: var(--ink-soft); }

.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.pain { display: grid; gap: 12px; align-content: start; }
.pain h3 { font-size: 17px; line-height: 1.5; }
.pain p { margin: 0; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 860px) { .pains { grid-template-columns: minmax(0, 1fr); } .pain { grid-template-columns: 140px minmax(0, 1fr); column-gap: 16px; } .pain .photo { grid-row: span 2; } }
@media (max-width: 480px) { .pain { grid-template-columns: minmax(0, 1fr); } .pain .photo { grid-row: auto; } }

.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.feat-list { list-style: none; margin: 0; padding: 0; counter-reset: f; display: grid; }
.feat-list li { counter-increment: f; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; padding-block: 18px; border-top: 1px solid var(--rule); }
.feat-list li:first-child { border-top: 0; padding-top: 0; }
.feat-list li::before { content: counter(f, decimal-leading-zero); grid-row: span 2; font-family: var(--f-label); font-weight: 700; font-size: 13px; color: var(--accent); line-height: 1.9; }
.feat-list b { font-size: 16px; line-height: 1.6; }
.feat-list span { color: var(--ink-soft); font-size: 14px; }
.feat-visual { position: sticky; top: 84px; display: grid; gap: 10px; }
.feat-visual .shot { background: var(--sheet); border: 1px solid var(--rule); aspect-ratio: 16 / 11; }
.feat-visual figcaption { font-size: 12px; color: var(--ink-faint); }
.ba { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 8px; align-items: center; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 16px; }
.ba figure { margin: 0; display: grid; gap: 8px; justify-items: center; }
.ba img { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #fff; border-radius: 6px; }
.ba small { font-size: 11px; color: var(--ink-faint); font-family: var(--f-label); letter-spacing: .1em; }
.ba .arrow { text-align: center; color: var(--ink-faint); font-family: var(--f-label); }
@media (max-width: 860px) { .feat { grid-template-columns: minmax(0, 1fr); } .feat-visual { position: static; order: -1; } }

.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: var(--gap); }
.lp-steps li { counter-increment: s; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: var(--pad); display: grid; gap: 6px; align-content: start; }
.lp-sec.alt .lp-steps li { background: var(--paper); border-color: transparent; }
.lp-steps li::before { content: "STEP " counter(s); font-family: var(--f-label); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.lp-steps b { font-size: 15px; line-height: 1.5; }
.lp-steps span { font-size: 13px; color: var(--ink-soft); }

.lp-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.lp-price .plans { grid-template-columns: minmax(0, 1fr); }
.lp-price .plan { padding: var(--pad-panel); }
.lp-price .plan .pprice { font-size: 34px; }
.price-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.price-notes li { padding-left: 14px; position: relative; }
.price-notes li::before { content: "・"; position: absolute; left: 0; }
@media (max-width: 760px) { .lp-price { grid-template-columns: minmax(0, 1fr); } }

.lp-band { background: var(--band); color: var(--band-ink); padding-block: clamp(48px, 7vw, 80px); }
.lp-band .lp-wrap { display: grid; gap: 16px; justify-items: start; }
.lp-band h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.4; }
.lp-band p { margin: 0; opacity: .8; }
.lp-band .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.lp-band .btn.primary { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.lp-band .btn.ghost { background: transparent; color: var(--band-ink); border-color: color-mix(in srgb, var(--band-ink) 45%, transparent); }
.lp-band .btn.ghost:hover { border-color: var(--band-ink); }

.others { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.other { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 16px; text-decoration: none; color: inherit; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; transition: border-color .15s; }
.other:hover { border-color: var(--rule-strong); }
.other .icon { --size: 44px; font-size: 12px; grid-row: span 2; }
.other b { font-size: 14px; line-height: 1.5; }
.other span { font-size: 12px; color: var(--ink-soft); }

.lp-foot { border-top: 1px solid var(--rule); padding-block: 28px 44px; font-size: 12px; color: var(--ink-faint); }
.lp-foot .lp-wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.lp-foot a { color: var(--ink-soft); text-decoration: none; }
.lp-foot a:hover { color: var(--ink); }

/* 一覧のカード（画像なし） */
.app.no-shot { grid-template-rows: auto auto 1fr auto; padding: var(--pad); }
.app.no-shot > :not(.shot) { margin-inline: 0; }
.app.no-shot .catch-line, .app.no-shot .summary { margin-inline: 0; }
.photo.slide-photo { aspect-ratio: 16 / 10; border-radius: 12px; }
