/* 切り抜きガード 共通スタイル */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --text: #1f2430;
  --text-soft: #5a6372;
  --border: #dde3ea;
  --accent: #0f6fde;
  --accent-soft: #e8f1fd;
  --warn-bg: #fff7e6;
  --warn-border: #f0d9a8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171d;
    --bg-soft: #1c2129;
    --text: #e6e9ee;
    --text-soft: #9aa4b2;
    --border: #313947;
    --accent: #5ea3f2;
    --accent-soft: #1d2c40;
    --warn-bg: #2b2515;
    --warn-border: #55471f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
}
.container { max-width: 800px; margin: 0 auto; padding: 0 1.1rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { opacity: .85; }

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .4rem .9rem; padding-top: .8rem; padding-bottom: .8rem;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .88rem; }
.site-header nav a { color: var(--text-soft); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }

main.container { padding-top: 1.8rem; padding-bottom: 3rem; }

/* 見出し */
h1 { font-size: 1.5rem; line-height: 1.5; margin: .2rem 0 .8rem; }
h2 { font-size: 1.22rem; line-height: 1.5; margin: 2.4rem 0 .8rem; padding-bottom: .35rem; border-bottom: 2px solid var(--border); }
h3 { font-size: 1.05rem; margin: 1.8rem 0 .6rem; }

/* 記事メタ・注記 */
.meta { color: var(--text-soft); font-size: .85rem; margin-bottom: 1.2rem; }
.note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: .9rem 1.1rem;
  margin: 1.2rem 0;
  font-size: .95rem;
}
.note p { margin: .4rem 0; }
.caution {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 8px;
  padding: .8rem 1.1rem;
  margin: 1.2rem 0;
  font-size: .93rem;
}

/* 表 */
.table-scroll { overflow-x: auto; margin: 1rem 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; line-height: 1.6; }
.table-scroll table { min-width: 640px; }
th, td { border: 1px solid var(--border); padding: .5rem .6rem; text-align: left; vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; white-space: nowrap; }
caption { caption-side: bottom; font-size: .8rem; color: var(--text-soft); padding-top: .4rem; text-align: left; }

/* リスト・引用 */
ul, ol { padding-left: 1.5rem; }
li { margin: .3rem 0; }
blockquote { margin: 1rem 0; padding: .1rem 1rem; border-left: 4px solid var(--border); color: var(--text-soft); }

/* カード(トップページ) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.cards li { margin: 0; }
.card {
  display: block; height: 100%;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1rem 1.1rem;
  text-decoration: none; color: var(--text);
  background: var(--bg-soft);
}
.card:hover { border-color: var(--accent); }
.card strong { color: var(--accent); display: block; margin-bottom: .3rem; }
.card span { font-size: .87rem; color: var(--text-soft); }

/* ボタン・LP用(W3追加) */
.nav-cta { color: var(--accent) !important; font-weight: 600; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
}
.btn:hover { opacity: .88; }
@media (prefers-color-scheme: dark) {
  .btn { color: #0d1117; }
}
.price-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .9rem;
  margin: 1.2rem 0 .5rem;
}
.price-col {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: var(--bg-soft);
}
.price-col--main {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
}
.price-label { margin: 0 0 .2rem; font-size: .85rem; color: var(--text-soft); font-weight: 600; }
.price-value { margin: 0 0 .4rem; font-size: 1.5rem; font-weight: 700; line-height: 1.4; }
.price-tax { font-size: .85rem; font-weight: 600; color: var(--text-soft); }
.price-note { margin: 0; font-size: .85rem; color: var(--text-soft); }
.fine { font-size: .8rem; color: var(--text-soft); }
.faq dt { font-weight: 600; margin-top: 1rem; }
.faq dd { margin: .3rem 0 0 0; padding-left: 1rem; border-left: 3px solid var(--border); color: var(--text-soft); }

/* 事前登録CTA(W3でLPリンクに差し替え) */
.cta {
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  margin: 2.2rem 0;
  background: var(--accent-soft);
}
.cta h2, .cta h3 { margin-top: 0; border: none; padding: 0; }
.cta p { margin: .4rem 0; font-size: .95rem; }

/* ヒーロー(トップ) */
.hero { padding: 1.4rem 0 .6rem; }
.hero h1 { font-size: 1.7rem; }
.hero p.lead { font-size: 1.02rem; color: var(--text-soft); }

/* フッター */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  background: var(--bg-soft);
}
.site-footer .container { padding-top: 1.2rem; padding-bottom: 1.6rem; }
.disclaimer { font-size: .8rem; color: var(--text-soft); }
.copyright { font-size: .8rem; color: var(--text-soft); margin-top: .6rem; }

/* 目次 */
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: .8rem 1.2rem; font-size: .9rem; }
.toc ul { margin: .3rem 0; }

@media (max-width: 540px) {
  body { font-size: 15.5px; }
  h1 { font-size: 1.32rem; }
  .hero h1 { font-size: 1.45rem; }
}
