/*
 * ポスとる ウェブサイト共通スタイル
 * 色はアプリ（src/constants/theme.ts）と同じ「ポストの赤」と「封筒・はがきの紙」。
 * ライト／ダークは端末の設定（prefers-color-scheme）に合わせて切り替わります。
 */

:root {
  color-scheme: light dark;
  --bg: #fffcfa;
  --bg-elevated: #ffffff;
  --surface: #f5f1ef;
  --surface-strong: #eae3e0;
  --border: #e6deda;
  --border-strong: #cfc4c0;
  --text: #1e1a19;
  --text-2: #645b58;
  --text-3: #7a706d;
  --accent: #d52b1e;
  --accent-strong: #b32217;
  --accent-soft: #fbe8e6;
  --accent-fill: #d52b1e;
  --accent-fill-pressed: #b32217;
  --on-accent: #ffffff;
  --link: #1f5ba6;
  --postmark: #c2392f;
  --success: #2a7449;
  --success-soft: #e4f2e9;
  --danger: #c62828;
  --danger-soft: #fdeaea;
  --bezel: #1c1817;
  --bezel-edge: rgba(0, 0, 0, 0.06);
  --shadow-rgb: 43 23 20;

  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1080px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141111;
    --bg-elevated: #1d1918;
    --surface: #1f1a19;
    --surface-strong: #302a29;
    --border: #352e2d;
    --border-strong: #4a4140;
    --text: #f6f1ef;
    --text-2: #c2b8b5;
    --text-3: #a09592;
    --accent: #f26356;
    --accent-strong: #f04a3c;
    --accent-soft: #3b1d1a;
    --accent-fill: #d63b2e;
    --accent-fill-pressed: #bc3125;
    --link: #8dbaf3;
    --postmark: #f0776b;
    --success: #6fcb95;
    --success-soft: #17291f;
    --danger: #f58080;
    --danger-soft: #3a1a1a;
    --bezel: #2a2423;
    --bezel-edge: rgba(255, 255, 255, 0.1);
    --shadow-rgb: 0 0 0;
  }
}

@media (min-width: 600px) {
  :root {
    --gutter: 24px;
  }
}

/* ---------- 基本 ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

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

h1,
h2,
h3 {
  line-height: 1.45;
  letter-spacing: 0.03em;
  word-break: auto-phrase;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

/* 句のまとまりで改行させる（見出しなど） */
.ib {
  display: inline-block;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- エアメールの縁（飾り） ---------- */

.airmail {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent-fill) 0 10px,
    transparent 10px 16px,
    var(--link) 16px 26px,
    transparent 26px 32px
  );
}

/* ---------- ヘッダー ---------- */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 380px) {
  .site-nav a {
    padding-inline: 9px;
  }
}

/* ---------- ボタン・ストアのバッジ ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

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

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

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

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/*
 * ストアのバッジ（公開前の仮表示）。
 * 公開したら index.html の「ストアのバッジ」のコメントに従って、公式のバッジ画像とリンクに差し替えます。
 */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-badges > li {
  flex: 1 1 0;
  min-width: 148px;
  max-width: 190px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 12px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #1e1a19;
  color: #ffffff;
  line-height: 1.25;
  text-decoration: none;
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-badge small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.store-badge strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.store-badge[aria-disabled="true"] {
  cursor: default;
}

/* 公開後の公式バッジ（画像）用 */
.store-badge-link {
  display: inline-block;
  border-radius: 10px;
}

.store-badge-link img {
  display: block;
  height: 54px;
  width: auto;
}

/* ---------- スマートフォンの枠（画面のイメージ） ---------- */

.phone {
  --w: 240px;
  position: relative;
  width: var(--w);
  flex: none;
  margin: 0;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.16);
  background: var(--bezel);
  box-shadow:
    0 0 0 1px var(--bezel-edge),
    0 28px 56px -22px rgb(var(--shadow-rgb) / 0.45),
    0 10px 20px -12px rgb(var(--shadow-rgb) / 0.3);
}

.phone img {
  display: block;
  width: 100%;
  aspect-ratio: 374 / 812;
  border-radius: calc(var(--w) * 0.13);
  background: var(--surface);
}

/* ---------- 消印のスタンプ（飾り） ---------- */

.stamp {
  color: var(--postmark);
}

.stamp-paper {
  fill: var(--bg-elevated);
  fill-opacity: 0.94;
}

.stamp text {
  fill: currentColor;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- セクション共通 ---------- */

.section {
  padding: 56px 0;
}

.section-tight {
  padding: 40px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 34px);
}

.section-head p {
  margin: 0;
  color: var(--text-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* ---------- トップ：ヒーロー ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 48px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 30%, var(--accent-soft), transparent 70%),
    var(--bg);
}

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 8.8vw, 58px);
  line-height: 1.32;
  letter-spacing: 0.02em;
}

.hero-copy h1 .accent {
  color: var(--accent);
}

.hero-lead {
  max-width: 34em;
  color: var(--text-2);
  font-size: 17px;
}

.hero-copy .store-badges {
  margin-top: 24px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-facts svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.hero-visual {
  container-type: inline-size;
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 5 / 6;
  margin-inline: auto;
}

.hero-visual .phone {
  position: absolute;
}

.hero-visual .phone-front {
  --w: 56cqw;
  left: 8cqw;
  top: 0;
  z-index: 2;
}

.hero-visual .phone-back {
  --w: 47cqw;
  right: 0;
  top: 13cqw;
  z-index: 1;
  transform: rotate(6deg);
}

.hero-visual .stamp {
  position: absolute;
  left: 0;
  top: 78cqw;
  z-index: 3;
  width: 27cqw;
  transform: rotate(-14deg);
  filter: drop-shadow(0 2px 0 var(--bg));
}

@media (min-width: 900px) {
  .hero {
    padding: 64px 0 72px;
  }

  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

/* ---------- トップ：できること ---------- */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 24px 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.feature .tag {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.feature h3 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
}

.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
}

.feature .peek {
  display: flex;
  justify-content: center;
  height: 324px;
  margin-top: auto;
  padding-top: 24px;
  overflow: hidden;
}

.feature .phone {
  --w: 230px;
}

.screens-note {
  margin: 20px 0 0;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- トップ：ポスト図鑑 ---------- */

.zukan-band {
  background: var(--surface);
}

.zukan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .zukan-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.zukan-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.zukan-card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.zukan-card .icon svg {
  width: 28px;
  height: 28px;
}

.zukan-card .no {
  margin-top: 6px;
  color: var(--postmark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.zukan-card h3 {
  margin: 0;
  font-size: 16px;
}

.zukan-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- トップ：安心のために ---------- */

.points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .points {
    grid-template-columns: repeat(3, 1fr);
  }
}

.point {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.point .ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.point .ic svg {
  width: 22px;
  height: 22px;
}

.point h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.point p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

/* ---------- トップ：ダウンロード ---------- */

/* エアメールの封筒のような縁どり */
.cta {
  padding: 7px;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(
    -45deg,
    #d52b1e 0 10px,
    #ffffff 10px 16px,
    #1f5ba6 16px 26px,
    #ffffff 26px 32px
  );
}

.cta-inner {
  position: relative;
  overflow: hidden;
  padding: 36px 22px;
  border-radius: calc(var(--radius-lg) - 7px);
  background: var(--accent-fill);
  color: var(--on-accent);
  text-align: center;
}

.cta h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 5.6vw, 32px);
}

.cta p {
  margin: 0 auto;
  max-width: 32em;
  opacity: 0.92;
}

.cta .store-badges {
  justify-content: center;
  margin-top: 24px;
}

.cta .stamp {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 120px;
  color: rgba(255, 255, 255, 0.32);
  transform: rotate(-12deg);
}

/* ---------- 文書ページ（規約・ポリシーなど） ---------- */

.doc {
  width: 100%;
  max-width: calc(780px + var(--gutter) * 2);
  margin-inline: auto;
  padding: 32px var(--gutter) 24px;
}

.doc-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.doc h1 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(27px, 7vw, 40px);
  line-height: 1.35;
}

.doc .lead {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

.doc .meta {
  margin: 12px 0 0;
  color: var(--text-3);
  font-size: 13px;
}

.doc h2 {
  margin: 48px 0 14px;
  font-size: clamp(19px, 4.8vw, 22px);
  scroll-margin-top: 16px;
}

.doc h2 .num {
  margin-right: 0.4em;
  color: var(--accent);
}

.doc h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  scroll-margin-top: 16px;
}

.doc ul,
.doc ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.doc li {
  padding-left: 0.2em;
}

.doc li + li {
  margin-top: 6px;
}

.doc li > ul,
.doc li > ol {
  margin-top: 6px;
  margin-bottom: 0;
}

.doc ol.paren {
  list-style: none;
  padding-left: 0;
  counter-reset: paren;
}

.doc ol.paren > li {
  position: relative;
  padding-left: 2.2em;
  counter-increment: paren;
}

.doc ol.paren > li::before {
  content: "(" counter(paren) ")";
  position: absolute;
  left: 0;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.doc dl {
  margin: 0 0 1em;
}

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

.summary-box {
  margin: 0 0 8px;
  padding: 20px 20px 8px;
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-box h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.summary-box ul {
  padding-left: 1.3em;
}

.summary-box li::marker {
  color: var(--accent);
}

.toc {
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.toc ol {
  margin: 0;
  padding-left: 1.6em;
  font-size: 15px;
  line-height: 1.7;
}

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

.toc a {
  color: var(--text);
  text-decoration-color: var(--border-strong);
}

.callout {
  margin: 16px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  background: var(--accent-soft);
}

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

.callout strong {
  color: var(--text);
}

.info-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 0 1em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px 16px;
}

.info-list > div + div {
  border-top: 1px solid var(--border);
}

.info-list dt {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}

.info-list dd {
  margin: 0;
}

@media (min-width: 640px) {
  .info-list > div {
    grid-template-columns: 9em 1fr;
    gap: 16px;
  }

  .info-list dt {
    font-size: 14px;
    line-height: 1.8;
  }
}

/* 表（狭い画面では 1 行ずつのカードにする） */
.table-wrap {
  margin: 0 0 1em;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}

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

.table-wrap th {
  background: var(--surface);
  font-size: 14px;
  white-space: nowrap;
}

.table-wrap td:first-child {
  font-weight: 700;
}

@media (min-width: 720px) {
  .table-wrap td:first-child {
    width: 23%;
  }
}

@media (max-width: 719px) {
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
  }

  .table-wrap tr {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .table-wrap td {
    border: 0;
    padding: 4px 16px;
  }

  .table-wrap td:first-child {
    padding: 12px 16px 8px;
    background: var(--surface);
  }

  .table-wrap td:last-child {
    padding-bottom: 14px;
  }

  .table-wrap td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-top: 6px;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 700;
  }
}

.doc-end {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
}

/* 手順 */
.steps {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.doc .steps > li {
  position: relative;
  min-height: 32px;
  margin: 0;
  padding: 2px 0 14px 46px;
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 700;
}

.steps > li::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 2px;
  width: 2px;
  background: var(--border);
}

.steps > li:last-child::after {
  display: none;
}

.ui-label {
  display: inline-block;
  padding: 0 0.45em;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg-elevated);
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

/* ページ内の目次（チップ） */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chips a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.chips a:hover {
  background: var(--surface);
}

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

.faq-group {
  margin-top: 32px;
}

.faq-group h3 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  padding: 16px 40px 16px 0;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq summary:hover {
  color: var(--accent);
}

.faq .answer {
  padding: 0 0 18px;
  color: var(--text);
}

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

/* ---------- フォーム ---------- */

.form {
  display: grid;
  gap: 22px;
  margin: 20px 0 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

@media (min-width: 600px) {
  .form {
    padding: 28px;
  }
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}

.field > legend {
  margin-bottom: 6px;
}

.badge-req,
.badge-opt {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: 0.1em;
}

.badge-req {
  background: var(--accent-fill);
  color: var(--on-accent);
}

.badge-opt {
  background: var(--surface-strong);
  color: var(--text-2);
}

.hint {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.form textarea {
  min-height: 180px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--link);
  outline: 2px solid var(--link);
  outline-offset: 0;
}

.form [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.field-error:empty {
  display: none;
}

.counter {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.counter.is-near {
  color: var(--danger);
  font-weight: 700;
}

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.choice:has(input[aria-invalid="true"]) {
  border-color: var(--danger);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.choice input,
.check input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--accent-fill);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
}

.check input {
  margin-top: 2px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.form-status:empty {
  display: none;
}

.form-status:focus {
  outline: none;
}

.form-status.is-success {
  background: var(--success-soft);
  color: var(--success);
}

.form-status.is-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.form-status.is-info {
  background: var(--surface);
  color: var(--text-2);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.form-actions .btn {
  min-width: 200px;
}

.form-privacy {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}

.noscript-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 600;
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 56px var(--gutter) 40px;
  text-align: center;
}

.notfound .stamp {
  width: 168px;
  transform: rotate(-10deg);
}

.notfound h1 {
  margin: 16px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(24px, 6.4vw, 34px);
}

.notfound p {
  max-width: 30em;
  color: var(--text-2);
}

.notfound .btn-row {
  justify-content: center;
  margin-top: 8px;
}

/* ---------- フッター ---------- */

.site-footer {
  margin-top: 56px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  gap: 28px;
  padding-block: 36px 28px;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
  }
}

.footer-about .brand {
  font-size: 18px;
}

.footer-about .brand svg {
  width: 28px;
  height: 28px;
}

.footer-about p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.75;
}

.footer-nav h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li + li {
  margin-top: 2px;
}

.footer-nav a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text-2);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-bottom {
  padding-block: 16px 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}
