/* ========== Base tokens ========== */
:root {
  --c-bg: #fff;
  --c-bg-alt: #f9fafb;
  --c-fg: #222;
  --c-muted: #555;
  --c-border: #e5e7eb;
  --acc: #2f855a;
  --acc-press: #276749;
  --focus: 0 0 0 3px rgba(47,133,90,.25);
  --radius: 10px;
  --shadow: 0 10px 20px rgba(0,0,0,.06);
}

/* 自動ダークモード */
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0f1215;
    --c-bg-alt: #151a1f;
    --c-fg: #e8eaee;
    --c-muted: #b7bec8;
    --c-border: #222831;
    --acc: #58c08a;
    --acc-press: #3ea071;
    --focus: 0 0 0 3px rgba(88,192,138,.35);
    --shadow: 0 10px 20px rgba(0,0,0,.35);
  }
}

/* ========== Reset-ish ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
}
body {
  font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  color: var(--c-fg);
  background: var(--c-bg);
  margin: 0;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* モーション配慮 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ========== Header ========== */
.site-header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  background: linear-gradient(to bottom, var(--c-bg-alt), var(--c-bg));
}
.site-header h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 .5rem;
}
.site-header p {
  margin: 0;
  color: var(--c-muted);
}

/* ========== Layout & Typography ========== */
section {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

h2 {
  font-size: 1.7rem;
  line-height: 1.35;
  color: var(--acc);
  border-left: 6px solid var(--acc);
  padding-left: .6rem;
  margin: 0 0 1.25rem;
}

h3 { font-size: 1.25rem; margin: 2rem 0 1rem; }

p { margin: 1rem 0; color: var(--c-fg); }
p.lead { font-size: 1.05rem; color: var(--c-muted); }

ul, ol { padding-left: 1.2rem; margin: 1rem 0; }
li { margin: .4rem 0; }

/* 引用 */
blockquote {
  margin: 1rem 0;
  padding: .6rem 1rem;
  border-left: 4px solid var(--acc);
  background: var(--c-bg-alt);
  border-radius: var(--radius);
}

/* ========== Tables (FIXED) ========== */
/* ラッパーで横スクロールを担保し、枠もラッパー側に */
.table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
  margin: 2rem 0;           /* 余白はラッパーに持たせる */
}

/* テーブルは display:table のまま。角丸は separate + spacing:0 */
.compare-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;                /* ラッパーに合わせる */
  font-size: .95rem;
  background: transparent;  /* 枠はラッパーが持つ */
  border: 0;
}

.compare-table th,
.compare-table td{
  border-bottom: 1px solid var(--c-border);
  padding: .85rem .9rem;
  text-align: left;
  white-space: normal;      /* 自然に改行させて横伸び防止 */
}

.compare-table th{
  background: var(--c-bg-alt);
  font-weight: 700;
  color: var(--c-fg);
}

.compare-table tr:last-child td{ border-bottom: none; }

/* 角丸を自然に */
.compare-table thead th:first-child{ border-top-left-radius: var(--radius); }
.compare-table thead th:last-child { border-top-right-radius: var(--radius); }
.compare-table tbody tr:last-child td:first-child{ border-bottom-left-radius: var(--radius); }
.compare-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }

/* 狭幅時の最小幅（列数に応じて調整） */
@media (max-width: 560px){
  .compare-table{
    min-width: 100%;
    width: 100%;
  }
}

/* ========== CTA ========== */
.cta { text-align: center; margin: 3rem auto; }
.cta a{
  display: inline-block;
  background: var(--acc);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow);
  outline: none;
}
.cta a:hover { background: var(--acc-press); transform: translateY(-1px); }
.cta a:active { transform: translateY(0); }
.cta a:focus-visible { box-shadow: var(--focus); }

.cta a[aria-disabled="true"], .cta a.is-disabled{
  pointer-events: none;
  opacity: .6;
  filter: grayscale(.15);
}
.cta-note{ margin-top: 1rem; font-size: .9rem; color: var(--c-muted); }

/* ========== Footer ========== */
.site-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
}

.site-footer .footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* ここから変更ポイント */
.site-footer .links {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;                 /* 横並び */
  flex-wrap: wrap;               /* 幅が足りなければ折り返し */
  justify-content: center;       /* 中央寄せ */
  gap: 0.5rem 1.5rem;            /* 横・縦の間隔 */
}

.site-footer .links li {
  margin: 0;                     /* 縦並び用の margin をリセット */
}

.site-footer .links a {
  color: var(--c-fg);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-footer .links a:hover {
  color: var(--acc);
}

.site-footer .copyright {
  font-size: 0.85rem;
  color: var(--c-muted);
}




/* ========== Utility ========== */
.container{ max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.m-0{ margin: 0 !important; }
.mt-0{ margin-top: 0 !important; }
.mb-0{ margin-bottom: 0 !important; }

/* ========== Sections ========== */
.voice{ background: var(--c-bg-alt); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.reasons ol{ padding-left: 1.2rem; }
.reasons li::marker{ color: var(--acc); font-weight: 700; }

/* ========== Responsive ========== */
@media (max-width: 900px){
  .site-header h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 600px){
  section { padding: 2.5rem 1rem; }
  .site-header h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; border-left-width: 5px; }
  .compare-table th, .compare-table td { font-size: .9rem; }
}

/* ===============================
   Hero セクション（PC）
=============================== */
section.hero{
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
}

section.hero img{
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy{
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 2;
  max-width: min(90%, 1000px);
  padding: 0 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.hero-copy h1{
  font-size: clamp(2.1rem, 4vw, 3rem);  /* 画面が狭くなるほど少しずつ小さく */
  font-weight: 800;
  margin: 0 0 .45em;
}

.hero-copy p{
  font-size: clamp(1rem, 2.2vw, 1.4rem); /* 同じく可変 */
  line-height: 1.6;
  color: #ffffff;
}


/* ===============================
   タブレット大（901〜1024px）
   文字を少し小さく＆上に寄せる
=============================== */
@media (min-width: 901px) and (max-width: 1024px) {
  .hero-copy {
    top: 20%;
    max-width: 80%;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .hero-copy p {
    font-size: 1.1rem;
  }
}

/* ===============================
   タブレット小〜スマホ直前（769〜900px）
   さらに幅を絞って折り返し対策
=============================== */
@media (min-width: 769px) and (max-width: 900px){
  .hero-copy{
    top: 22%;
    max-width: 60%;
  }

  .hero-copy h1{
    font-size: 2.1rem;
  }

  .hero-copy p{
    font-size: 1rem;
  }
}

/* ===============================
   モバイルでは画像なし＋テキストだけ
=============================== */
@media (max-width: 768px){
  .hero-img {
    display: none !important;
  }

  section.hero{
    position: relative;
    padding: 2.5rem 1.5rem;
    background: var(--c-bg);
  }

  .hero-copy{
    position: static;
    transform: none;
    max-width: 100%;
    text-shadow: none;
    color: var(--c-fg);
    text-align: center;
  }

  .hero-copy h1{
    font-size: 1.6rem;
  }

  .hero-copy p{
    font-size: 1rem;
    color: var(--c-muted);
  }
}

.demo-top {
  text-align: center;
  margin: 1.8rem 4rem;
}
.demo-compare,
.demo-reasons,
.demo-before-cta {
  text-align: center;
  margin-bottom: 4rem;
}

/* ボタンデザイン */
.demo-btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background: var(--acc);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.demo-btn:hover {
  opacity: 0.85;
}

.demo-cta {
  text-align: center;
}

/* ======================================
   利用規約（要点まとめ）ボックス
====================================== */
.terms-mini {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}

/* 見出し（h2） */
.terms-mini h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: var(--c-fg);
  border-left: 4px solid var(--acc);
  padding-left: 0.6rem;
}

/* 説明文 */
.terms-mini p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--c-fg);
}

/* リスト */
.terms-mini-list {
  margin: 0 0 1.2rem 1.2rem;
  padding: 0;
  line-height: 1.7;
}

.terms-mini-list li {
  margin-bottom: 0.5rem;
}

/* 規約ページリンク */
.terms-mini-link {
  font-size: 0.92rem;
}

.terms-mini-link a {
  color: var(--acc);
  text-decoration: underline;
}

/* スマホ最適化（余白少し広げる） */
@media (max-width: 600px) {
  .terms-mini {
    padding: 1.4rem 1.2rem;
  }
}
