/* 色はアプリ (tsumo の src/constants/colors.ts) と同じ。白地×緑、暗い画面は A 墨 */
:root {
  --color-background: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b66;
  --color-divider: #e3e3df;
  --color-rule: #efefec;
  --color-accent: #00752f;
  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #161615;
    --color-text: #ecece8;
    --color-text-muted: #9c9c95;
    --color-divider: #33332f;
    --color-rule: #282826;
    --color-accent: #2e9b57;
  }
}

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

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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

a:hover {
  text-decoration: none;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 見出しの行 (各ページの上) */
.site-header {
  display: flex;
  align-items: center;
  height: 64px;
  border-bottom: 1px solid var(--color-divider);
}

.site-header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}

.site-header img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

/* トップ */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 0 0 1px var(--color-divider);
}

.hero h1 {
  margin: 24px 0 0;
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.hero-subtitle {
  margin: 8px 0 0;
  color: var(--color-accent);
  font-weight: 700;
}

.hero-lead {
  max-width: 30em;
  margin: 24px auto 0;
  color: var(--color-text-muted);
}

/* Apple のバッジは画面の上で高さ 40px 以上にする決まり */
.hero-store {
  display: inline-block;
  margin-top: 32px;
}

.hero-store img {
  display: block;
  width: auto;
  height: 48px;
}

/* 規約・ポリシー・サポートの本文 */
.document {
  padding: 48px 0 64px;
}

.document h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.4;
}

.document-date {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.document h2 {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-divider);
  font-size: 20px;
  line-height: 1.5;
}

.document h3 {
  margin: 32px 0 0;
  font-size: 17px;
  line-height: 1.5;
}

.document p,
.document ul,
.document ol {
  margin: 12px 0 0;
}

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

.document li + li {
  margin-top: 4px;
}

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

/* 外部に送信する情報の一覧。狭い画面では横にスクロールせず、行ごとに縦に積む */
.transmission-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}

.transmission-table th,
.transmission-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-rule);
  text-align: left;
  vertical-align: top;
}

.transmission-table thead th {
  border-bottom-color: var(--color-divider);
  color: var(--color-text-muted);
  font-weight: 400;
  white-space: nowrap;
}

.transmission-table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .transmission-table thead {
    display: none;
  }

  .transmission-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-rule);
  }

  .transmission-table th,
  .transmission-table td {
    display: block;
    padding: 2px 0;
    border: 0;
  }

  .transmission-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--color-text-muted);
    font-size: 12px;
  }
}

.contact-email {
  display: inline-block;
  margin-top: 16px;
  font-size: 22px;
  font-weight: 700;
}

/* 下の行 (各ページ共通) */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  font-size: 14px;
}

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

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

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

.site-footer p {
  margin: 16px 0 0;
}
