/* aqlab.app 共通スタイル */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --fg: #1c1c1e;
  --muted: #6e6e73;
  --border: #e5e5e2;
  --accent: #2a7f9e;
  --accent-soft: #e6f2f6;
  --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113;
    --surface: #1c1c1f;
    --fg: #f2f2f4;
    --muted: #9a9aa0;
    --border: #2e2e33;
    --accent: #5fb3d1;
    --accent-soft: #16303a;
    --on-accent: #0b1a20;
  }
}

/* アプリごとの色 */
.app-hodoyoi {
  --accent: #b5652b;
  --accent-soft: #f6ebe1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-hodoyoi {
    --accent: #e39a62;
    --accent-soft: #3a2a1f;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

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

.logo { font-weight: 700; letter-spacing: 0.02em; color: var(--fg); text-decoration: none; }
.logo span { color: #2a7f9e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo span { color: #5fb3d1; }
}

/* ---------- トップ ---------- */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
}
.home h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.3; }
.home h1 span { color: var(--accent); }
.home .tagline { color: var(--muted); margin-top: 12px; font-size: 0.95rem; }

.app-list {
  list-style: none;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin-top: 40px;
  text-align: left;
}
.app-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--fg);
  text-decoration: none;
}
.app-list a:hover { border-color: var(--accent); }
.app-list strong { display: block; font-size: 1rem; }
.app-list small { display: block; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

.home-footer { margin-top: 48px; color: var(--muted); font-size: 0.8rem; }

/* ---------- アプリアイコン ---------- */
.app-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 22.5%;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ---------- アプリ・規約ページ共通 ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .inner,
.site-footer .inner,
main.page {
  max-width: 760px;
  margin: 0 auto;
}
.site-header .inner {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.breadcrumb .sep { color: var(--muted); }
.breadcrumb .current { font-weight: 600; color: var(--fg); text-decoration: none; }
.site-nav { display: flex; gap: 16px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

main.page { padding: 32px 16px 64px; }

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.site-footer .inner {
  padding: 20px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }

h1 { font-size: 26px; line-height: 1.4; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 1.5; margin: 0 0 12px; }
h3 { font-size: 16px; line-height: 1.6; margin: 18px 0 6px; }
p { margin: 0 0 12px; }
ol, ul { margin: 0 0 12px; padding-left: 1.5em; }
li { margin: 0 0 6px; }
section { margin: 0 0 40px; scroll-margin-top: 16px; }

/* ---------- アプリLP ---------- */
.hero {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 8px 0 40px;
}
.hero .app-icon { width: 96px; height: 96px; }
.hero h1 { margin: 0; }
.hero .subtitle { color: var(--muted); margin: 0 0 12px; }
@media (max-width: 480px) {
  .hero { flex-direction: column; align-items: flex-start; }
}

.store-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.app-hodoyoi .store-button { color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-hodoyoi .store-button { color: #111113; }
}
.store-button.disabled {
  background: var(--accent-soft);
  color: var(--accent);
  cursor: default;
}

.lead { font-size: 17px; margin: 0 0 40px; }

.features { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0;
}
.features strong { display: block; margin-bottom: 4px; }
.features p { color: var(--muted); font-size: 15px; margin: 0; }

.plan-table { display: grid; gap: 14px; }
@media (min-width: 640px) {
  .plan-table { grid-template-columns: 1fr 1fr; }
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.plan.premium { border-color: var(--accent); }
.plan h3 { margin-top: 0; }
.plan ul { margin-bottom: 0; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 18px;
  margin: 0 0 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style-position: outside;
}
.faq details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.faq details > *:last-child { margin-bottom: 14px; }

.contact {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 18px 20px;
}
.contact p:last-child { margin-bottom: 0; }

.small-note { color: var(--muted); font-size: 14px; }

.cards { display: grid; gap: 12px; }
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--fg);
  text-decoration: none;
}
.card:hover { border-color: var(--accent); }
.card strong { display: block; }
.card span { color: var(--muted); font-size: 14px; }

/* ---------- 規約ページ ---------- */
.meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal section { margin: 0 0 32px; }
.legal h2 {
  font-size: 19px;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.legal .lead { font-size: 16px; margin: 0 0 28px; }
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 36px;
  font-size: 15px;
}
.toc p { margin: 0 0 6px; font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc a { color: var(--fg); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0 0 24px;
}
.note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface);
}
th, td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--accent-soft); font-weight: 600; white-space: nowrap; }

.signature { text-align: right; margin-top: 40px; color: var(--muted); }
