/* Insight Desk ホームページ v2 — 実物を載せる。配色はアプリの実測値のみ（marketing/design-brief.md） */
:root {
  --navy: #0f2a5c; --navy-strong: #0a1e44; --navy-soft: #e6ebf5;
  --ink: #222831; --muted: #5f6b78; --faint: #8f98a3;
  --line: #e1e4e9; --line-strong: #c6ccd5; --surface: #f6f7f9; --surface-muted: #eef0f3;
  --warn: #a35a00; --warn-soft: #fbf0dc; --danger: #b3261e; --danger-soft: #fbe9e7; --success: #1f7a3a; --success-soft: #e3f3e7;
  --info: #2d4f8e; --info-soft: #e7edf8; --side-text: #c9d3e6; --marker: #f5e663;
  --head: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", sans-serif;
  --body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; line-height: 1.85; font-feature-settings: "palt"; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.4; letter-spacing: 0.01em; margin: 0; word-break: auto-phrase; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
mark { background: none; box-shadow: inset 0 -0.45em 0 var(--marker); color: inherit; padding: 0 2px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 節: 左に縦書きのラベル */
.sec { padding: 96px 0; }
.sec.alt { background: var(--surface); }
.sec > .wrap { display: grid; grid-template-columns: 56px 1fr; gap: 32px; align-items: start; }
.sec > .wrap > * { min-width: 0; }
.open .wrap > * { min-width: 0; }
.rail { writing-mode: vertical-rl; font-family: var(--head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.25em; color: var(--navy); border-left: 2px solid var(--navy); padding: 4px 0 4px 12px; margin-top: 6px; white-space: nowrap; }
.sec h2 { font-size: 1.85rem; margin-bottom: 14px; }
.sec .lead { color: var(--muted); max-width: 44em; margin-bottom: 40px; }

/* ボタン */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 26px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--navy); line-height: 1.3; font-size: 0.95rem; background: #fff; color: var(--navy); }
.btn:hover { background: var(--navy-soft); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-strong); }

/* ヘッダー */
header.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
header.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1.05rem; white-space: nowrap; }
.brand .mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 0.95rem; }
.brand small { display: block; font-family: var(--body); font-size: 0.68rem; font-weight: 400; color: var(--muted); line-height: 1.2; }
header.nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 0.9rem; white-space: nowrap; }
header.nav nav a { text-decoration: none; color: var(--muted); }
header.nav nav a:hover { color: var(--navy); }
header.nav nav a.login { border: 1.5px solid var(--navy); color: var(--navy); border-radius: 999px; padding: 7px 16px; font-weight: 700; }

/* 冒頭: 見出し＋今日のタスクの実物 */
.open { padding: 72px 0 88px; border-bottom: 1px solid var(--line); }
.open .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.open h1 { font-size: 2.35rem; line-height: 1.45; }
.open .sub { color: var(--muted); margin: 22px 0 28px; max-width: 30em; }
.open .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.open .terms { margin-top: 34px; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.open .terms dt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.open .terms dd { margin: 0; }

/* アプリ画面の再現（今日のタスク） */
.app { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 16px 40px rgba(15, 42, 92, 0.1); font-size: 0.86rem; }
.app .bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.app .bar b { font-family: var(--head); color: var(--navy); }
.app .bar span { color: var(--faint); font-size: 0.72rem; }
.app .bar em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 0.72rem; }
.app .body { padding: 14px; background: #fff; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid; padding: 5px 12px; font-weight: 700; font-size: 0.8rem; }
.pill.danger { color: var(--danger); background: var(--danger-soft); border-color: rgba(179, 38, 30, 0.3); }
.pill.warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(163, 90, 0, 0.3); }
.pill.info { color: var(--info); background: var(--info-soft); border-color: rgba(45, 79, 142, 0.3); }
.card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.card > header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.card > header a { font-size: 0.75rem; font-weight: 400; text-decoration: none; }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); background: #fff; }
.tasks li:first-child { border-top: 0; }
.tasks .no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--danger); color: #fff; font-weight: 700; font-size: 0.72rem; margin-top: 2px; }
.tasks .t { font-weight: 700; }
.tasks .t span { font-weight: 400; margin-left: 6px; }
.tasks .why { font-size: 0.78rem; color: var(--danger); font-weight: 700; }
.tasks .why span { color: var(--muted); font-weight: 400; margin-left: 8px; white-space: nowrap; }
.tasks .mine { display: inline-block; margin-left: 8px; font-size: 0.68rem; font-weight: 700; color: var(--info); background: var(--info-soft); border: 1px solid rgba(45, 79, 142, 0.3); border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
.ann { position: relative; }
.ann .dot { position: absolute; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.7rem; font-weight: 700; box-shadow: 0 0 0 3px #fff; }
.notes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.88rem; color: var(--muted); }
.notes li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.notes li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.7rem; }
.notes li strong { color: var(--ink); }

/* 1日の使い方: 時刻で語る */
.day { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.day .row { display: grid; grid-template-columns: 110px 1fr 380px; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: center; }
.day .time { font-family: var(--head); font-size: 1.5rem; color: var(--navy); line-height: 1.2; }
.day .time small { display: block; font-family: var(--body); font-size: 0.75rem; color: var(--muted); font-weight: 400; letter-spacing: 0.05em; }
.day h3 { font-size: 1.1rem; margin-bottom: 6px; }
.day p { color: var(--muted); font-size: 0.95rem; }
.day .where { font-size: 0.75rem; color: var(--faint); margin-top: 6px; }
.crop { aspect-ratio: var(--ar, 16 / 9); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; position: relative; }
.crop img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 0 0); transform: scale(var(--zoom, 1.5)); transform-origin: var(--pos, 0 0); }
.crop .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.8rem; color: var(--faint); }

/* AI が書いたもの（実物） */
.samples { display: grid; gap: 28px; }
.sample { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.sample:last-child { border-bottom: 1px solid var(--line); }
.sample .what h3 { font-size: 1.05rem; margin-bottom: 6px; }
.sample .what p { font-size: 0.85rem; color: var(--muted); }
.sample .what .where { margin-top: 10px; font-size: 0.75rem; color: var(--faint); }
.out { background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 16px 18px; font-size: 0.92rem; }
.out.bare { background: none; border: 0; padding: 0; }
.out .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.out .meta b { color: var(--ink); }
.out .kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 0; }
.out .kv dt { font-size: 0.78rem; font-weight: 700; color: var(--muted); padding-top: 3px; }
.out .kv dd { margin: 0; }
.out .kv dd .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 1px 9px; margin-right: 6px; border: 1px solid; }
.tag.danger { color: var(--danger); background: var(--danger-soft); border-color: rgba(179, 38, 30, 0.3); }
.tag.warn { color: var(--warn); background: var(--warn-soft); border-color: rgba(163, 90, 0, 0.3); }
.tag.neutral { color: var(--muted); background: var(--surface-muted); border-color: var(--line-strong); }
.out .reason { color: var(--muted); font-size: 0.85rem; }
.insight { background: rgba(230, 235, 245, 0.6); border: 1px solid rgba(15, 42, 92, 0.2); border-radius: 10px; padding: 14px 18px; font-size: 0.92rem; }
.out .meta .model { color: var(--faint); }
.insight .h { font-size: 0.75rem; font-weight: 700; color: var(--navy); display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.insight .rec { margin-top: 8px; }
.insight .rec b { display: inline-block; background: var(--navy); color: #fff; font-size: 0.68rem; border-radius: 4px; padding: 1px 6px; margin-right: 6px; vertical-align: middle; }
.qa { display: grid; gap: 8px; }
.qa .q { font-weight: 700; }
.qa .a { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.qa .a small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.qa .todo { color: var(--warn); }
.mail { display: grid; gap: 6px; }
.mail .line { border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; background: #fff; }
.mail .line.body { min-height: 60px; white-space: pre-wrap; }

/* 画面: 横スクロールの帯 */
.strip-bleed { margin-right: calc(-50vw + 50% + 24px); }
.strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 16px 4px; margin: 0 -4px; scrollbar-width: thin; }
.strip figure { flex: 0 0 min(680px, 86vw); margin: 0; scroll-snap-align: start; }
.strip .shot-img { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: #fff; }
.strip figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.strip figcaption strong { display: block; color: var(--ink); }
.strip figcaption .tags { margin-top: 4px; display: flex; gap: 6px; }
.tag { display: inline-flex; align-items: center; font-size: 0.7rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); background: #fff; white-space: nowrap; }
.tag.ai { border-color: var(--navy); color: var(--navy); background: var(--navy-soft); }
.strip-hint { font-size: 0.78rem; color: var(--faint); }
.mk { display: none; }

/* 機能一覧 */
table.features { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.features th, table.features td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.features th { font-size: 0.76rem; color: var(--muted); background: var(--surface-muted); }
table.features tr.group td { background: var(--navy-soft); color: var(--navy); font-weight: 700; padding: 7px 12px; font-size: 0.82rem; }
table.features td.name { font-weight: 700; width: 220px; white-space: nowrap; }
table.features td.ai { width: 110px; white-space: nowrap; }
table.features td.ai .none { color: var(--muted); }
table.features td.desc { color: var(--muted); }

/* 料金表: 印刷物の価格表 */
.price { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.price th, .price td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price thead th { font-size: 0.76rem; color: var(--muted); background: var(--surface-muted); border-bottom: 1px solid var(--line-strong); }
.price td.amt { white-space: nowrap; font-family: var(--head); font-size: 1.5rem; color: var(--navy); line-height: 1.2; }
.price td.amt small { display: block; font-family: var(--body); font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.price td.name { font-weight: 700; white-space: nowrap; }
.price td.sub { white-space: nowrap; width: 150px; }
.price td.name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.price ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.88rem; }
.price .sub { font-size: 0.85rem; color: var(--muted); }
.price-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

/* 導入の流れ */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.steps li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li .who { font-size: 0.78rem; font-weight: 700; color: var(--navy); padding-top: 4px; }
.steps li strong { display: block; }
.steps li p { color: var(--muted); font-size: 0.9rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--navy); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* お問い合わせ・会社 */
.two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.two > * { min-width: 0; }
#company h2 { overflow-wrap: anywhere; }
.contact-box { border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; padding: 12px; min-height: 320px; }
.contact-box .fallback { font-size: 0.9rem; color: var(--muted); padding: 120px 16px; text-align: center; line-height: 1.8; }
.contact-box.loaded .fallback { display: none; }
.contact-note { font-size: 0.85rem; color: var(--muted); margin-top: 18px; padding: 14px 16px; background: var(--surface); border-radius: 8px; }
.kv-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.kv-table th, .kv-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv-table th { width: 130px; color: var(--muted); font-weight: 700; font-size: 0.85rem; }

footer { background: var(--navy); color: var(--side-text); padding: 44px 0 36px; font-size: 0.85rem; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
footer strong { color: #fff; font-size: 1rem; font-family: var(--head); }
footer a { color: #fff; text-decoration: none; }
footer a + a { margin-left: 20px; }
footer .copy { grid-column: 1 / -1; color: #8fa2c9; margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 14px; }

/* 規約ページ */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: 1.7rem; margin-bottom: 8px; }
.doc h2 { font-size: 1.1rem; margin-top: 36px; margin-bottom: 8px; }
.doc p { margin: 0 0 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.doc td, .doc th { border-bottom: 1px solid var(--line); padding: 12px 8px; vertical-align: top; text-align: left; }
.doc th { width: 200px; color: var(--muted); font-size: 0.85rem; }
.small { font-size: 0.85rem; }

@media (max-width: 900px) {
  .sec { padding: 56px 0; }
  .sec > .wrap { grid-template-columns: 1fr; gap: 12px; }
  .rail { writing-mode: horizontal-tb; border-left: 0; border-top: 2px solid var(--navy); padding: 8px 0 0; display: inline-block; margin: 0; }
  .sec h2 { font-size: 1.45rem; }
  .open { padding: 40px 0 56px; }
  .open .wrap, .sample, .two { grid-template-columns: 1fr; gap: 24px; }
  .open h1 { font-size: 1.7rem; }
  .day .row { grid-template-columns: 1fr; gap: 12px; }
  .strip-bleed { margin-right: 0; }
  .day .time { font-size: 1.2rem; }
  header.nav .wrap { gap: 12px; }
  header.nav nav { gap: 12px; font-size: 0.85rem; }
  header.nav nav a:not(.login):not(.keep) { display: none; }
  header.nav nav a.login { padding: 6px 12px; }
  .brand { font-size: 1rem; }
  .brand small { display: none; }
  table.features thead { display: none; }
  table.features tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.features tr.group { padding: 0; }
  table.features td { display: block; padding: 0; border: 0; }
  table.features tr.group td { padding: 8px 12px; }
  table.features td.name { white-space: normal; width: auto; display: inline; margin-right: 8px; }
  table.features td.ai { display: inline; width: auto; }
  table.features td.ai .none { display: none; }
  table.features td.desc { margin-top: 4px; font-size: 0.88rem; }
  .price thead { display: none; }
  .price tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .price td { display: block; padding: 4px 0; border: 0; }
  .steps li { grid-template-columns: 1fr; gap: 4px; }
  .strip { margin: 0; padding: 4px 0 16px; }
  #company h2 { font-size: 1.3rem; }
  .kv-table { table-layout: fixed; }
  .kv-table th { width: 92px; }
  .kv-table td { word-break: break-all; }
  .app .bar { gap: 8px; }
  .app .bar b { white-space: nowrap; }
  .app .bar span { display: none; }
  .app .bar em { white-space: nowrap; }
  footer .wrap { grid-template-columns: 1fr; }
  footer a, footer a + a { margin: 0 16px 0 0; }
}
