/* あわたん（仮称）の紹介ページ。泡と、水の色。外部の通信はしない（書体は、システムのもの） */
:root {
  --bg1: #e6f7fc;
  --bg2: #f6fbfd;
  --ink: #12324a;
  --muted: #476679;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(31, 120, 155, 0.18);
  --accent: #0b7c9c;
  --accent-ink: #ffffff;
  --glow: rgba(70, 185, 220, 0.35);
  --ok: #1d8a5f;
  --wait: #b36b00;
  --todo: #5a6f7d;
  --shadow: 0 10px 30px rgba(32, 110, 145, 0.14);
  --font: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo UI", "Noto Sans JP", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg1: #0a2233;
    --bg2: #08151f;
    --ink: #e6f3f9;
    --muted: #a6c1cf;
    --card: rgba(255, 255, 255, 0.06);
    --line: rgba(150, 215, 240, 0.2);
    --accent: #7fd6ee;
    --accent-ink: #08202e;
    --glow: rgba(90, 200, 235, 0.3);
    --ok: #6fd6a6;
    --wait: #f0b45a;
    --todo: #a6b9c5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.9;
  background: linear-gradient(180deg, var(--bg1) 0, var(--bg2) 720px) var(--bg2);
  background-repeat: no-repeat;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--bg2); color: var(--ink); z-index: 20; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- 上の帯 ---------- */
.top { padding: 14px 0; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mark { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: 0.02em; }
.mark span { color: var(--accent); }
.mark small { font-size: 13px; font-weight: 500; margin-left: 4px; color: var(--muted); }
.back { font-size: 15px; }

/* ---------- はじめの画面 ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 64px; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.status { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.badge { display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
h1 { margin: 0; font-size: clamp(44px, 8vw, 76px); line-height: 1.15; letter-spacing: 0.04em; font-weight: 800; }
h1 small { font-size: 0.32em; font-weight: 500; margin-left: 6px; color: var(--muted); letter-spacing: 0; }
.catch { margin: 6px 0 18px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; line-height: 1.5; }
.catch::after { content: ""; display: block; width: 72px; height: 6px; margin-top: 10px; border-radius: 6px; background: linear-gradient(90deg, #46b9dc, #9ee3f5); }
.hero-text p { margin: 0 0 14px; }
.small { font-size: 14px; color: var(--muted); }
.hero-fig { margin: 0; justify-self: center; width: min(300px, 100%); }
.hero-fig img { border-radius: 26px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.hero-fig figcaption, figure figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* 飾りの泡（動きは、ゆっくり。動きを減らす設定のときは、止める） */
.floaters { position: absolute; inset: 0; pointer-events: none; }
.b { position: absolute; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 50% 55%, var(--glow), rgba(120, 210, 240, 0.12) 65%, rgba(255, 255, 255, 0.3));
  box-shadow: inset 0 -8px 16px rgba(60, 160, 200, 0.16), 0 8px 24px rgba(40, 140, 180, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  animation: rise 16s ease-in-out infinite;
}
.b::before, .bub::before { content: ""; position: absolute; left: 20%; top: 14%; width: 30%; height: 17%; border-radius: 50%; background: rgba(255, 255, 255, 0.85); transform: rotate(-32deg); }
.b1 { width: 64px; height: 64px; left: 4%; bottom: 8%; animation-delay: 0s; }
.b2 { width: 110px; height: 110px; left: 14%; bottom: 2%; animation-duration: 21s; animation-delay: 3s; }
.b3 { width: 40px; height: 40px; left: 44%; bottom: 10%; animation-duration: 14s; animation-delay: 6s; }
.b4 { width: 84px; height: 84px; right: 40%; bottom: 0; animation-duration: 19s; animation-delay: 9s; }
.b5 { width: 52px; height: 52px; right: 6%; bottom: 14%; animation-duration: 17s; animation-delay: 2s; }
.b6 { width: 96px; height: 96px; right: 16%; bottom: 0; animation-duration: 23s; animation-delay: 11s; }
@keyframes rise {
  0% { transform: translate(0, 40px) scale(0.85); opacity: 0; }
  12% { opacity: 0.7; }
  50% { transform: translate(14px, -160px) scale(1); }
  85% { opacity: 0.6; }
  100% { transform: translate(-6px, -340px) scale(1.04); opacity: 0; }
}

/* ---------- 章 ---------- */
.sec { padding: 40px 0; }
.sec.last { padding-bottom: 72px; }
h2 { margin: 0 0 20px; font-size: clamp(24px, 3.6vw, 32px); line-height: 1.4; font-weight: 800; display: flex; align-items: baseline; gap: 14px; }
h2 .no { font-size: 0.55em; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; padding: 0 12px; border-radius: 999px; border: 2px solid var(--accent); line-height: 1.7; }
h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.5; }
.lead { margin: 0 0 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 26px 30px; box-shadow: var(--shadow); }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

.trouble { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trouble li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 14px 28px; }
.trouble .dot { flex: none; width: 14px; height: 14px; margin-top: 0.7em; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #46b9dc); }

/* ---------- 動き方 ---------- */
.steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 22px 22px 24px; box-shadow: var(--shadow); }
.step p { margin: 0; font-size: 15px; line-height: 1.85; }
.n { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 15px; }
.demo { height: 150px; display: grid; place-items: center; margin-bottom: 8px; }
.bub { position: relative; display: grid; place-content: center; text-align: center; width: 124px; height: 124px; border-radius: 50%; color: #12324a; line-height: 1.35;
  background: radial-gradient(circle at 50% 55%, #bfeaf7, #8fd3ec 70%, #c9f0fa);
  box-shadow: inset 0 -10px 18px rgba(40, 140, 180, 0.2), 0 10px 22px rgba(40, 140, 180, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.bub b { font-size: 21px; }
.bub em { font-style: normal; font-size: 14px; }
.bub.fade { opacity: 0.55; }
.demo.up { align-items: start; }
.notes { margin: 0; padding-left: 1.3em; color: var(--muted); font-size: 15px; }
.notes li + li { margin-top: 6px; }

/* ---------- 画面のイメージ ---------- */
.warn { margin: 0 0 24px; padding: 16px 22px; border-radius: 20px; border: 2px dashed var(--accent); background: var(--card); font-size: 15px; line-height: 1.8; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
figure { margin: 0; }
.pair img, .seq img { border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.seq-h { margin: 34px 0 14px; }
.seq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.seq img { width: 100%; }

/* ---------- 状況 ---------- */
.status3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.status3 .card { padding: 22px 24px; border-radius: 24px; }
.status3 h3 { padding-left: 14px; border-left: 6px solid var(--todo); }
.status3 .ok h3 { border-color: var(--ok); }
.status3 .wait h3 { border-color: var(--wait); }
.status3 ul { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.8; }
.status3 li + li { margin-top: 4px; }
.status3 .small { margin-top: 12px; }

.safe { margin: 0; padding-left: 1.2em; }
.safe li + li { margin-top: 12px; }

/* ---------- 質問 ---------- */
.faq { display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 4px 24px; }
summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; position: relative; padding-right: 32px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { margin: 0 0 14px; font-size: 16px; color: var(--muted); }

.mail code { font-size: 18px; padding: 4px 12px; border-radius: 10px; background: rgba(70, 185, 220, 0.16); }

.foot { padding: 30px 0 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot p { margin: 0 0 6px; }

/* ---------- せまい画面 ---------- */
@media (max-width: 860px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps, .status3 { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .demo { height: 140px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .card { padding: 20px 20px; border-radius: 22px; }
  .trouble li { border-radius: 24px; padding: 14px 20px; }
  .seq { grid-template-columns: minmax(0, 1fr); max-width: 300px; margin-inline: auto; }
  h2 { flex-wrap: wrap; gap: 8px 12px; }
  details { padding: 2px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .b { animation: none; opacity: 0.5; }
  summary::after { transition: none; }
}
