/* 送らないAI のページ：夜の紺の壁に、あかりのついた窓がひとつ。ほかは静かに。
   外部のWebフォントは読み込まない（「外に送らない」ページなので、表示だけで外へ通信しないように） */
:root {
  --night: #1b2a4a;
  --night-2: #2e4370;
  --lamp: #f2a541;
  --lamp-soft: #fde7bf;
  --frame: #fbf1de;
  --mist: #f3f5f9;
  --surface: #ffffff;
  --ink: #1e2433;
  --muted: #5b6478;
  --line: #dde2ec;
  --link: #2e4370;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mist: #121827;
    --surface: #1a2236;
    --ink: #e9ecf3;
    --muted: #a3acc0;
    --line: #2c3650;
    --link: #f5bd67;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
a { color: var(--link); text-underline-offset: 0.22em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.4; letter-spacing: 0.05em; text-wrap: balance; word-break: auto-phrase; }
p { word-break: auto-phrase; }
.wrap { max-width: 62rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.col { max-width: 40rem; }

/* ===== 夜の帯（冒頭） ===== */
.night {
  background:
    radial-gradient(60rem 30rem at 78% 55%, rgba(242, 165, 65, 0.16), transparent 60%),
    linear-gradient(180deg, var(--night-2) 0%, var(--night) 70%);
  color: var(--frame);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.home { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--frame); text-decoration: none; font-weight: 700; letter-spacing: 0.06em; }
.home img { width: 32px; height: 32px; border-radius: 8px; }
.topnav { display: flex; gap: 18px; font-size: 14px; }
.topnav a { color: rgba(251, 241, 222, 0.82); text-decoration: none; white-space: nowrap; }
.topnav .short { display: none; }
.topnav a:hover { color: var(--frame); text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; padding-block: 40px 72px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); margin: 0 0 18px; font-weight: 800; }
.hero .lead { margin: 0; font-size: 1.05rem; color: rgba(251, 241, 222, 0.86); max-width: 30rem; }
.hero .name { margin: 22px 0 0; font-size: 0.9rem; color: rgba(251, 241, 222, 0.7); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; }
.storeBtn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--lamp); color: var(--night) !important; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(242, 165, 65, 0.35); transition: transform .15s, box-shadow .15s; }
.storeBtn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(242, 165, 65, 0.5); }
.ctaNote { font-size: 0.85rem; color: rgba(251, 241, 222, 0.7); }
.close .cta { margin-top: 18px; }

/* あかりのついた窓（この画面でいちばん目立たせるもの） */
.window { justify-self: center; width: min(100%, 22rem); }
.window svg { display: block; width: 100%; height: auto; overflow: visible; }
.window .glow { filter: drop-shadow(0 0 28px rgba(242, 165, 65, 0.55)); }
@media (prefers-reduced-motion: no-preference) {
  .window .light { animation: lampOn 1.6s ease-out 0.3s both; }
}
@keyframes lampOn {
  0% { opacity: 0; }
  35% { opacity: 0.55; }
  45% { opacity: 0.25; }
  100% { opacity: 1; }
}

/* ===== 本文 ===== */
main section { padding-block: 64px 0; }
main section:last-of-type { padding-bottom: 80px; }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); margin: 0 0 20px; font-weight: 800; }
h3 { font-size: 1.12rem; margin: 0 0 6px; font-weight: 700; }
main p { margin: 0 0 14px; }

/* 手紙（「AIって、なんだか怖い」と思っている方へ） */
.letter { border-left: 4px solid var(--lamp); padding-left: 22px; }
.letter p:last-child { margin-bottom: 0; }

/* 3つの約束：同じ形の箱を並べず、縦の線で区切った3段 */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); margin: 8px 0 0; padding: 0; list-style: none; }
.promises li { padding: 4px 24px 4px 0; }
.promises li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.promises .mark { display: block; width: 34px; height: 34px; margin-bottom: 12px; }
.promises p { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.8; }

/* 外に送らないしくみ（CSP） */
.csp { display: grid; gap: 22px; }
.csp p { margin: 0; }
.cspFig { margin: 4px 0; max-width: 44rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 14px; }
.cspFig svg { display: block; width: 100%; height: auto; }
.figLabel { font: 700 15px var(--font); fill: var(--ink); letter-spacing: 0.04em; }
.figHouse { fill: var(--night); }
@media (prefers-color-scheme: dark) { .figHouse { fill: #4a64a0; } }
.cspPoints { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.cspPoints li { position: relative; padding-left: 1.1em; color: var(--muted); }
.cspPoints li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--lamp); }
.cspPoints b { color: var(--ink); }
.cspDetail summary { cursor: pointer; font-weight: 700; color: var(--link); }
.cspDetail pre { margin: 12px 0; padding: 14px 16px; background: var(--night); color: var(--frame); border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.7; }
.cspDetail p { margin: 0 0 10px; color: var(--muted); }

/* できること：スクリーンショットと説明を交互に */
.feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; margin-top: 44px; }
.feature:nth-of-type(even) .shot { order: -1; }
.feature p { color: var(--muted); }
.shot { margin: 0; }
.shot a { display: block; border-radius: 14px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(27, 42, 74, 0.45); }
.more { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
.more li { position: relative; padding-left: 1.1em; }
.more li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--lamp); }

/* 正直にお伝えしておきたいこと */
.honest { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; }
.honest ul { margin: 0 0 14px; padding-left: 1.2em; }
.honest li { margin-bottom: 4px; }
.honest p:last-child { margin-bottom: 0; }

/* 動かすのに必要なもの */
.req { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.req th, .req td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 0.97rem; }
.req tr:first-child th, .req tr:first-child td { border-top: 0; }
.req th { width: 11rem; font-weight: 700; white-space: nowrap; }
.note { color: var(--muted); font-size: 0.93rem; }

/* よくある質問 */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* 最後の案内 */
.close { background: var(--night); color: var(--frame); border-radius: 22px; padding: 40px 36px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.close img { width: 88px; height: 88px; border-radius: 20px; }
.close h2 { margin: 0 0 8px; }
.close p { margin: 0; color: rgba(251, 241, 222, 0.82); }
.close .links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 14px; }
.close a { color: var(--lamp); }

footer { color: var(--muted); font-size: 13px; }
footer .wrap { padding-block: 24px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid var(--line); }

/* ===== プライバシーポリシー ===== */
.policyHead { padding-block: 24px 48px; }
.policyHead h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 10px; font-weight: 800; }
.policyHead .meta { margin: 0 0 18px; font-size: 0.9rem; color: rgba(251, 241, 222, 0.7); }
.policyHead .meta a { color: var(--lamp); }
.policyHead .summary { margin: 0; max-width: 38rem; color: rgba(251, 241, 222, 0.88); }
.policy section { padding-block: 40px 0; }
.policy h2 { display: flex; gap: 14px; align-items: baseline; font-size: 1.3rem; margin-bottom: 14px; }
.policy h2 .no { font-size: 0.95rem; color: var(--lamp); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.policy ul { margin: 0 0 14px; padding-left: 1.2em; }
.policy li { margin-bottom: 4px; }
.dtable { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 0.95rem; line-height: 1.75; }
.dtable th, .dtable td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--line); }
.dtable tr:first-child th, .dtable tr:first-child td { border-top: 0; }
.dtable thead th { background: var(--mist); font-weight: 700; font-size: 0.88rem; color: var(--muted); }
.dtable tbody th { font-weight: 700; width: 11rem; }
.tablewrap { overflow-x: auto; border-radius: 14px; }
.policy .en { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); font-size: 0.97rem; }
.policy .en h2 { letter-spacing: 0.01em; }

/* ===== スマートフォンなど狭い画面 ===== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topnav { gap: 12px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding-block: 16px 52px; gap: 20px; }
  .window { order: -1; width: min(70%, 15rem); }
  .promises { grid-template-columns: 1fr; gap: 24px; }
  .promises li, .promises li + li { border-left: 0; padding: 0; }
  .promises li + li { border-top: 1px solid var(--line); padding-top: 24px; }
  .feature { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .more { grid-template-columns: 1fr; }
  .honest { padding: 22px 20px; }
  .req th { width: auto; white-space: normal; display: block; padding-bottom: 0; }
  .req td { display: block; border-top: 0; padding-top: 4px; }
  .close { grid-template-columns: 1fr; padding: 30px 22px; gap: 16px; }
  .close img { width: 64px; height: 64px; }
  .cspFig { padding: 14px 12px 8px; }
  .figLabel { font-size: 24px; }
  .dtable thead { display: none; }
  .dtable tbody th, .dtable tbody td { display: block; width: auto; }
  .dtable tbody th { padding-bottom: 0; }
  .dtable tbody td { border-top: 0; padding-top: 4px; }
}
@media (max-width: 520px) {
  .topnav a.hideNarrow { display: none; }
  .topnav .long { display: none; }
  .topnav .short { display: inline; }
}
