/* ============================================================
   commut-lp — 共通ベーススタイル
   全拠点共通のレイアウト・タイポ・CTA。
   拠点固有の調整は sites/<拠点>/theme.css で行うこと。
   ★このファイルを拠点都合で書き換えない（全拠点に波及する）
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--jp);
  font-size: 15px;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-ink);
  background: var(--c-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* --- セクション --------------------------------------------- */
.sec {
  padding: var(--sec-pad-sp) var(--gutter);
}
.sec__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
/* 背景を交互に切り替えて区切る。罫線では区切らない */
.sec--cream { background: var(--c-cream); }
.sec--pale  { background: var(--c-pale); }

/* --- 英字ラベル（日本語大見出しの上に小さく置く） ------------- */
.label {
  font-family: var(--en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mid);
  margin: 0 0 10px;
}

/* --- 見出し -------------------------------------------------- */
h1, h2, h3 { margin: 0 0 14px; }

h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: var(--ls-head);
  line-height: 1.5;
}
h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: var(--ls-head);
  line-height: 1.5;
}
h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 16px; }
.note {
  font-size: 12px;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-sub);
}
.em { color: var(--c-deep); font-weight: 700; }

/* --- CTA（ページ内に5回置く。CVは1種類のみ） ------------------ */
.cta { margin: 2.5rem 0 0; text-align: center; }

.cta__btn {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  padding: 18px 24px;
  background: var(--c-main);
  color: var(--c-white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 999px;
  transition: opacity .2s ease;
}
.cta__btn:hover { opacity: .85; }
.cta__sub {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: var(--ls-body);
  color: var(--c-sub);
}

/* --- 追従CTA（画面下に固定） --------------------------------- */
.cta-fixed {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px var(--gutter);
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--c-pale);
  text-align: center;
  z-index: 50;
}
.cta-fixed .cta__btn { padding: 14px 20px; font-size: 15px; }
/* 追従CTAを置いた拠点だけ、その分の余白を確保する */
body:has(.cta-fixed) { padding-bottom: 84px; }

/* --- カード・リスト ------------------------------------------ */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--c-white);
  border-radius: 12px;
  padding: 20px;
}
.sec--cream .card, .sec--pale .card { background: var(--c-white); }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--c-pale);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-main);
}

/* --- FAQ ----------------------------------------------------- */
.faq details {
  border-bottom: 1px solid var(--c-pale);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.08em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .faq__a { margin-top: 10px; color: var(--c-sub); }

/* --- PC ------------------------------------------------------ */
@media (min-width: 768px) {
  body, body:has(.cta-fixed) { font-size: 16px; padding-bottom: 0; }
  .sec { padding: var(--sec-pad) var(--gutter); }
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  .lead { font-size: 17px; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cards--2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cta-fixed { display: none; } /* PCでは追従CTAを出さない */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
