@charset "UTF-8";

/* =========================================================
   restartlife.jp — サイト共通スタイル（サービス／コラム／FAQ／運営者情報）
   生成元: scripts/build-site.mjs（ページ HTML は生成物。手で編集しない）
   配色は lp/omatome/style.css と揃える（広告 LP から遷移したときの一貫性）。
   ========================================================= */

:root {
  --navy:        #12365f;
  --navy-deep:   #0b2340;
  --cyan:        #1a9fd4;
  --cyan-pale:   #eaf4fa;
  --orange:      #ff7a00;
  --line-green:  #06c755;
  --line-green-d:#05a848;
  --base:        #ffffff;
  --soft:        #f2f7fb;
  --cream:       #fdf6ec;
  --text:        #23303f;
  --text-mute:   #5d6b7d;
  --border:      #d9e2ec;
  --radius:      10px;
  --shadow:      0 4px 16px rgba(15, 44, 82, 0.10);
  --col-max:     760px;
  --pad:         20px;
  --sticky-h:    76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  padding-bottom: var(--sticky-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--col-max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--col-max); margin: 0 auto; padding: 10px var(--pad);
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); line-height: 1.25; white-space: nowrap; min-width: 0; }
.brand__name { font-size: 15px; font-weight: 700; }
.brand__tag  { display: none; font-size: 11px; color: var(--text-mute); }
/* ナビは幅に余裕があるときだけ（折り返すと 3 行になり読めない） */
.site-nav { display: none; gap: 14px; font-size: 13px; }
.site-nav a { text-decoration: none; color: var(--text); white-space: nowrap; }
.site-nav a:hover { color: var(--cyan); }
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px;
  background: var(--line-green); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
@media (min-width: 720px) {
  .header-cta { font-size: 14px; padding: 9px 14px; }
}
@media (min-width: 1024px) {
  .site-header__inner { max-width: 1040px; }
  .site-nav { display: flex; }
}
/* タグラインは本番 1366px 幅でナビと重なった（2026-09-28 実測）ため、ヘッダーでは出さない */

/* ---------- パンくず ---------- */
.breadcrumb { font-size: 12px; color: var(--text-mute); padding: 12px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "›"; margin: 0 6px; color: var(--border); }
.breadcrumb a { color: var(--text-mute); }

/* ---------- ヒーロー ---------- */
.hero { padding: 28px 0 24px; }
.hero__eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--cyan); letter-spacing: .08em; margin-bottom: 8px; }
.hero h1 { font-size: 26px; line-height: 1.45; color: var(--navy); font-weight: 700; }
.hero__lead { margin-top: 14px; font-size: 15.5px; color: var(--text); }
.hero__note { margin-top: 10px; font-size: 12.5px; color: var(--text-mute); }
.hero--photo { position: relative; overflow: hidden; border-radius: var(--radius); }
.hero__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-top: 18px; }
@media (min-width: 720px) {
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 34px; }
  .hero__lead { font-size: 17px; }
}

/* ---------- セクション ---------- */
.section { padding: 32px 0; }
.section--soft { background: var(--soft); }
.section--cream { background: var(--cream); }
.section__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--cyan); }
.section h2 { font-size: 22px; line-height: 1.45; color: var(--navy); margin-top: 6px; }
.section h3 { font-size: 17px; color: var(--navy); margin-top: 22px; }
.section p { margin-top: 12px; }
.section p + p { margin-top: 10px; }
.section ul.bullets { margin-top: 12px; padding-left: 1.3em; list-style: disc; }
.section ul.bullets li { margin: 6px 0; }
.section ol.numbered { margin-top: 12px; padding-left: 1.5em; list-style: decimal; }
.section ol.numbered li { margin: 6px 0; }
@media (min-width: 720px) {
  .section { padding: 44px 0; }
  .section h2 { font-size: 26px; }
}

/* チェックリスト */
.checklist { margin-top: 16px; display: grid; gap: 8px; }
.checklist li {
  position: relative; padding: 12px 14px 12px 44px;
  background: var(--base); border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px;
}
.checklist li::before {
  content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px;
  border: 2px solid var(--cyan); border-radius: 4px; background: #fff;
}
.checklist li::after {
  content: ""; position: absolute; left: 20px; top: 17px; width: 5px; height: 10px;
  border: solid var(--cyan); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* カード */
.cards { margin-top: 16px; display: grid; gap: 12px; }
.card { background: var(--base); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card__num { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--orange); border-radius: 999px; padding: 2px 10px; }
.card h3 { margin-top: 8px; font-size: 16.5px; }
.card p { font-size: 14.5px; }
@media (min-width: 720px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } }

/* ステップ */
.steps { margin-top: 16px; display: grid; gap: 10px; counter-reset: step; }
.steps li {
  position: relative; padding: 14px 16px 14px 56px;
  background: var(--base); border: 1px solid var(--border); border-radius: var(--radius);
}
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 14px; top: 14px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.steps h3 { margin: 0; font-size: 16px; }
.steps p { margin-top: 4px; font-size: 14.5px; }

/* 比較表 */
.table-wrap { margin-top: 14px; overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--base); }
table.cmp th, table.cmp td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
table.cmp th { background: var(--soft); color: var(--navy); white-space: nowrap; }

/* 注意書き */
.note {
  margin-top: 16px; padding: 14px 16px;
  border-left: 4px solid var(--orange); background: #fff8ef; border-radius: 6px;
  font-size: 13.5px; color: #4a3a2a;
}
.note strong { color: #b35400; }
.note ul { margin-top: 6px; padding-left: 1.2em; list-style: disc; }
.note li { margin: 3px 0; }

/* ご相談イメージ */
.story { margin-top: 16px; padding: 18px; background: var(--base); border: 1px dashed var(--border); border-radius: var(--radius); }
.story__label { font-size: 12px; color: var(--text-mute); }
.story dl { margin-top: 10px; display: grid; gap: 8px; }
.story dt { font-size: 13px; font-weight: 700; color: var(--cyan); }
.story dd { font-size: 14.5px; }

/* FAQ */
.faq { margin-top: 16px; display: grid; gap: 8px; }
.faq details { background: var(--base); border: 1px solid var(--border); border-radius: 8px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 15.5px; color: var(--navy); list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 20px; color: var(--cyan); }
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 0 14px; font-size: 14.5px; }

/* CTA ブロック */
.cta-block { margin: 28px 0 0; padding: 24px 18px; background: var(--navy); color: #fff; border-radius: var(--radius); text-align: center; }
.cta-block h2 { color: #fff; font-size: 20px; }
.cta-block p { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.88); }
.line-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 480px; min-height: 60px; margin-top: 16px;
  padding: 12px 18px; border-radius: 8px;
  background: var(--line-green); color: #fff; text-decoration: none;
  font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.line-cta:hover { background: var(--line-green-d); }
.line-cta__icon {
  flex: 0 0 auto; padding: 4px 9px; border-radius: 7px;
  background: #fff; color: var(--line-green); font-size: 13px; font-weight: 800; line-height: 1.2;
}
.cta-block__sub { margin-top: 10px !important; font-size: 12.5px !important; }

/* 追従 CTA（画面下） */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15,44,82,.10);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .line-cta { margin: 0 auto; min-height: 52px; font-size: 16px; }
@media (min-width: 720px) { .sticky-cta .line-cta { max-width: 420px; } }

/* 関連リンク */
.related { margin-top: 16px; display: grid; gap: 8px; }
.related a { display: block; padding: 12px 14px; background: var(--base); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; font-size: 14.5px; }
.related a:hover { border-color: var(--cyan); }
.related small { display: block; color: var(--text-mute); font-size: 12px; }

/* コラム */
.post-list { margin-top: 16px; display: grid; gap: 12px; }
.post-list a { display: block; padding: 16px; background: var(--base); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; }
.post-list a:hover { border-color: var(--cyan); }
.post-list h3 { margin: 0; font-size: 16.5px; color: var(--navy); }
.post-list p { margin-top: 6px; font-size: 13.5px; color: var(--text-mute); }
.post-meta { font-size: 12.5px; color: var(--text-mute); margin-top: 8px; }
.article { padding: 8px 0 32px; }
.article h2 { font-size: 21px; color: var(--navy); margin-top: 32px; padding-left: 12px; border-left: 4px solid var(--cyan); line-height: 1.5; }
.article h3 { font-size: 17px; color: var(--navy); margin-top: 22px; }
.article p { margin-top: 12px; }
.article ul { margin-top: 10px; padding-left: 1.3em; list-style: disc; }
.article ol { margin-top: 10px; padding-left: 1.5em; list-style: decimal; }
.article li { margin: 5px 0; }
.article .note { margin-top: 18px; }
.disclaimer { margin-top: 24px; font-size: 12.5px; color: var(--text-mute); border-top: 1px solid var(--border); padding-top: 12px; }

/* 運営者情報 */
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; background: var(--base); }
.info-table th, .info-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.info-table th { background: var(--soft); width: 32%; white-space: nowrap; }
@media (max-width: 480px) { .info-table th { width: 40%; white-space: normal; } }

/* ---------- フッター ---------- */
.site-footer { margin-top: 40px; background: var(--navy-deep); color: rgba(255,255,255,.92); }
.site-footer__inner { max-width: var(--col-max); margin: 0 auto; padding: 28px var(--pad) 32px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-bottom: 18px; }
.site-footer__nav a { color: inherit; font-size: 13px; text-decoration: underline; }
.site-footer__entity { font-size: 12.5px; text-align: center; line-height: 1.8; }
.site-footer__disclaimer { margin-top: 14px; font-size: 11.5px; line-height: 1.85; color: rgba(255,255,255,.78); }
.site-footer__copyright { margin-top: 14px; font-size: 11.5px; text-align: center; color: rgba(255,255,255,.7); }

@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
