/* アクア暮らし 公開サイト 共通スタイル */

:root {
  color-scheme: light dark;
  --bg: #f5f9fa;
  --surface: #ffffff;
  --text: #1b2629;
  --muted: #5b6c71;
  --line: #d6e1e4;
  --accent: #0a6f7f;
  --accent-soft: #e2f2f4;
  --radius: 12px;
  --width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1618;
    --surface: #162124;
    --text: #e3ebed;
    --muted: #98a9ae;
    --line: #29393d;
    --accent: #6cc9d6;
    --accent-soft: #15333a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ヘッダー */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .inner {
  max-width: var(--width);
  margin: 0 auto;
  padding: 12px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 22.5%;
}

/* 本文 */

main {
  max-width: var(--width);
  margin: 0 auto;
  padding: 32px 16px 48px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.4;
}

h2 {
  margin: 2.4em 0 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line);
  font-size: 1.2rem;
  line-height: 1.5;
}

h3 {
  margin: 2em 0 0.4em;
  font-size: 1.05rem;
  line-height: 1.6;
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.5em;
}

li + li {
  margin-top: 0.3em;
}

li > ul,
li > ol {
  margin-top: 0.3em;
  margin-bottom: 0;
}

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

.dates {
  margin-top: 2.4em;
  color: var(--muted);
  font-size: 0.9rem;
}

.dates p {
  margin: 0;
}

.box {
  margin: 1.5em 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.box > :last-child {
  margin-bottom: 0;
}

.box h2 {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

/* 用語と説明の組（端末内のデータの一覧など） */

.items dt {
  margin-top: 1em;
  font-weight: 700;
}

.items dt:first-child {
  margin-top: 0;
}

.items dd {
  margin: 0.2em 0 0;
  padding-left: 1em;
  border-left: 3px solid var(--accent-soft);
}

/* 目次 */

.toc {
  margin: 1.5em 0 2em;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.toc p {
  margin: 0 0 0.4em;
  font-weight: 700;
}

.toc ul {
  margin: 0;
}

.toc .toc-extra {
  margin: 0.8em 0 0;
}

/* 問い合わせ先 */

.contact {
  font-size: 1.1rem;
  font-weight: 700;
}

/* トップページ */

.hero {
  padding-top: 24px;
  text-align: center;
}

.hero .app-icon {
  width: 128px;
  height: 128px;
  border-radius: 22.5%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  margin-top: 20px;
  font-size: 2rem;
}

.hero .description {
  max-width: 34em;
  margin: 0 auto 0.8em;
  text-align: left;
}

.hero .facts {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero .facts span {
  white-space: nowrap;
}

.links {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
}

.links li + li {
  margin-top: 0;
}

.links a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.links a:hover {
  border-color: var(--accent);
}

/* フッター */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .inner {
  max-width: var(--width);
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-footer small {
  font-size: inherit;
}

@media (min-width: 600px) {
  .site-header .inner,
  main,
  .site-footer .inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  main {
    padding-top: 40px;
  }
}
