/* Stowlight の紹介ページ。最初の画面（地図の絵）は濃い紺、本文は明るい地（ダークの設定の端末では暗い地） */

:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --bg-alt: #eeede8;
  --surface: #ffffff;
  --text: #1c1c1a;
  --muted: #62615c;
  --border: #e1e0da;
  --accent: #2f6fdb;
  --accent-hover: #2560c4;
  --accent-text: #ffffff;
  --night: #060a14;
  --night-2: #111b36;
  --night-text: #dfe6f5;
  --night-muted: #9aa6c2;
  --cyan: #0a8fc4;
  --amber: #c97600;
  --red: #e23a52;
  --radius: 14px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111111;
    --bg-alt: #181817;
    --surface: #1f1f1e;
    --text: #ecebe7;
    --muted: #a3a29d;
    --border: #2f2f2d;
    --accent: #5b8ff0;
    --accent-hover: #6d9cf0;
    --accent-text: #0b1020;
    --cyan: #4cc9f0;
    --amber: #ffb547;
    --red: #ff5d73;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.4;
  margin: 0;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.wrap.narrow {
  width: min(780px, 100% - 32px);
}

.small {
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: rgb(223 230 245 / 0.35);
  color: var(--night-text);
}

.btn-ghost:hover {
  border-color: rgb(223 230 245 / 0.7);
}

.btn-small {
  padding: 7px 14px;
  font-size: 14px;
}

.btn-large {
  padding: 16px 30px;
  font-size: 17px;
}

.btn.wide {
  width: 100%;
}

/* ---------- 上の帯 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(6 10 20 / 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(120 150 210 / 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 30px;
  width: auto;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--night-muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
}

/* ---------- 最初の画面 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 45%, var(--night-2), var(--night) 70%);
  color: var(--night-text);
}

.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
  min-height: min(760px, calc(100vh - 64px));
  padding: 72px 0 80px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--night-muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 18px rgb(6 10 20 / 0.8);
}

.lead {
  max-width: 34em;
  margin: 22px 0 30px;
  font-size: 17px;
  color: #c9d3ea;
  text-shadow: 0 1px 10px rgb(6 10 20 / 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--night-muted);
}

/* 狭い画面で地図の絵を描く場所（広い画面では絵が右側の余白に出るので使わない） */
.hero-stage {
  display: none;
}

/* 会話の吹き出し（アプリの画面を模したもの） */
.hero-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: end;
  margin-bottom: 20px;
}

.bubble {
  max-width: 380px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.7;
  backdrop-filter: blur(6px);
}

.bubble.user {
  align-self: flex-end;
  background: rgb(91 143 240 / 0.88);
  color: #fff;
}

.bubble.ai {
  align-self: flex-start;
  border: 1px solid rgb(120 150 210 / 0.25);
  background: rgb(12 16 28 / 0.86);
  color: var(--night-text);
}

.ai-step {
  display: block;
  font-size: 12px;
  color: #4cc9f0;
}

.ai-step + .ai-step {
  margin-bottom: 6px;
}

/* ---------- 本文 ---------- */

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.section-title.left {
  text-align: left;
  margin-bottom: 18px;
}

.section-sub {
  margin: -24px auto 36px;
  max-width: 40em;
  text-align: center;
  color: var(--muted);
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature {
  position: relative;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature h3 {
  font-size: 20px;
  margin: 16px 0 8px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-icon.cyan {
  background: rgb(76 201 240 / 0.14);
  color: var(--cyan);
}

.feature-icon.amber {
  background: rgb(255 181 71 / 0.16);
  color: var(--amber);
}

.feature-icon.blue {
  background: rgb(91 143 240 / 0.14);
  color: var(--accent);
}

.feature-icon.red {
  background: rgb(255 93 115 / 0.13);
  color: var(--red);
}

.feature.option {
  border-color: rgb(226 58 82 / 0.35);
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 1px 10px;
  border-radius: 999px;
  background: rgb(226 58 82 / 0.12);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.feature .tag {
  position: absolute;
  top: 30px;
  right: 30px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checks li {
  position: relative;
  padding: 18px 20px 18px 54px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.2 3 3 6-6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.checks strong {
  display: block;
  font-size: 16px;
}

.checks span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 料金 ---------- */

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.plan {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan.main {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 40px rgb(47 111 219 / 0.12);
}

.plan h3 {
  font-size: 20px;
}

.plan .tag {
  margin-bottom: 8px;
}

.price {
  margin: 10px 0 18px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.price .yen,
.price .plus {
  font-size: 24px;
  margin-right: 2px;
}

.price .per {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan ul {
  margin: 0 0 24px;
  padding-left: 1.2em;
}

.plan li {
  margin: 6px 0;
}

.plan .small {
  color: var(--muted);
  margin: 0;
}

.pricing-notes {
  max-width: 900px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- 使い始める ---------- */

.steps {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps li {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps .num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
}

.steps h3 {
  font-size: 18px;
  margin: 14px 0 6px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.download {
  text-align: center;
}

.download .small {
  margin: 10px auto 0;
  max-width: 40em;
}

/* ---------- よくある質問 ---------- */

details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  position: relative;
  font-weight: 700;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* ---------- 最後のお誘い・下の帯 ---------- */

.cta {
  background: radial-gradient(ellipse at 50% 120%, var(--night-2), var(--night) 70%);
  color: var(--night-text);
  text-align: center;
  padding: 96px 0;
}

.cta h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: #fff;
}

.cta p {
  margin: 12px 0 28px;
  color: var(--night-muted);
}

.site-footer {
  background: var(--night);
  color: var(--night-muted);
  padding: 36px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.footer-logo {
  height: 24px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--night-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  margin: 0 0 0 auto;
}

/* ---------- 狭い画面 ---------- */

.pc {
  display: inline;
}

@media (max-width: 900px) {
  .hero-inner,
  .two-col,
  .plans {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 24px;
    min-height: 0;
  }

  .hero-stage {
    display: block;
    height: min(86vw, 420px);
  }

  .hero-chat {
    align-self: start;
    margin: 0;
  }

  .features,
  .cards.three,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .header-inner .btn-small {
    margin-left: auto;
  }

  .pc {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .hero-inner {
    padding: 48px 0 56px;
  }

  .copyright {
    margin-left: 0;
  }

  .feature .tag {
    position: static;
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

/* ---------- もしものときの備え ---------- */

.prepared {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.kicker {
  margin: 0 0 8px;
  text-align: center;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.prepared-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.prepared-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.prepared-card h3 {
  font-size: 21px;
  margin: 16px 0 10px;
}

.prepared-card > p {
  margin: 0 0 16px;
  color: var(--muted);
}

.prepared-card .note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.examples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.examples li {
  align-self: start;
  justify-self: start;
  padding: 8px 14px;
  border-radius: 12px 12px 12px 4px;
  background: rgb(91 143 240 / 0.12);
  color: var(--text);
  font-size: 15px;
}

.kinds {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kinds li {
  padding: 3px 12px;
  border: 1px solid rgb(226 58 82 / 0.35);
  border-radius: 999px;
  background: rgb(226 58 82 / 0.07);
  font-size: 13px;
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
  display: grid;
  gap: 10px;
}

.flow li {
  counter-increment: flow;
  position: relative;
  padding-left: 40px;
}

.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.flow strong {
  display: block;
}

.flow span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .prepared-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 実際の動き（デモ動画） ---------- */

.demo {
  background: var(--night);
  color: var(--night-text);
  padding-top: 72px;
}

.demo .section-title {
  color: #fff;
}

.video-frame {
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid rgb(120 150 210 / 0.25);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.03);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 692;
  background: #060a14;
}

.video-caption {
  max-width: 1040px;
  margin: 16px auto 0;
  color: var(--night-muted);
  font-size: 13px;
  text-align: center;
}

.section-title.with-sub {
  margin-bottom: 30px;
}

/* 見つからないページ（CSP でページの中の style を使わないため、ここで指定） */
.page-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

/* ---------- 規約・表記・お問い合わせのページ ---------- */

.header-cta {
  margin-left: auto;
}

.doc {
  padding: 56px 0 96px;
}

.doc h1 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 20px;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc ol,
.doc ul {
  padding-left: 1.4em;
}

.doc li {
  margin: 6px 0;
}

.doc-updated {
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.callout {
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--bg-alt);
}

.facts {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.facts th,
.facts td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.facts th {
  width: 28%;
  background: var(--bg-alt);
  font-weight: 700;
}

.contact-mail {
  font-size: 24px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .facts th,
  .facts td {
    display: block;
    width: auto;
  }

  .facts th {
    border-bottom: none;
  }
}
