/*
Theme Name:  モバイル節約至高
Theme URI:   https://your-domain.jp
Description: スマホ料金比較サイト「モバイル節約至高」専用テーマ。日本の4大キャリア・主要格安スマホ対応。
Version:     1.0.0
Author:      モバイル節約至高
Text Domain: setsuyaku-shikou
*/

/* ============================================================
   CSS変数 — バンビシャスレッドベースの和の赤
============================================================ */
:root {
  --red:        #A82020;
  --red-lt:     #F9EAEA;
  --red-mid:    #C8272D;
  --red-dk:     #7A1515;
  --gold:       #C49030;
  --gold-lt:    #FBF3E2;
  --bg:         #FAF8F5;
  --surface:    #FFFFFF;
  --surface2:   #F3F0EB;
  --border:     #E2DDD7;
  --border-md:  #C8C2BA;
  --g500:       #857E76;
  --g700:       #4A453F;
  --g900:       #231F1A;
  --ok:         #276342;
  --ok-lt:      #E5F3EC;
  --ng-lt:      #FCEAEA;
  --font:       'Noto Sans JP', sans-serif;
  --font-min:   'Shippori Mincho', serif;
  --font-num:   'Outfit', sans-serif;
  --r:          14px;
  --rs:         8px;
}

/* ============================================================
   ベースリセット
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--g900);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   レイアウト
============================================================ */
.site-wrap   { min-height: 100vh; display: flex; flex-direction: column; }
.site-main   { flex: 1; }
.container   { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ============================================================
   ヘッダー / ナビゲーション
============================================================ */
.site-header {
  background: var(--red-dk);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.018) 0px,
    rgba(255,255,255,.018) 1px,
    transparent 1px,
    transparent 8px
  );
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 52px;
  gap: 16px;
  padding: 0 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.site-logo {
  font-family: var(--font-min);
  font-size: 18px;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: .06em;
  white-space: nowrap;
  text-decoration: none !important;
  flex-shrink: 0;
}
.site-logo span {
  font-size: 10px;
  opacity: .5;
  font-weight: 400;
  margin-left: 6px;
  font-family: var(--font);
  letter-spacing: .1em;
}
.site-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  font-size: 12px;
  color: rgba(255,255,255,.65) !important;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all .15s;
}
.site-nav a:hover,
.site-nav a.current { background: rgba(255,255,255,.15); color: #fff !important; }

/* ============================================================
   ヒーローセクション
============================================================ */
.hero {
  background: var(--red-dk);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.02) 0px,
    rgba(255,255,255,.02) 1px,
    transparent 1px,
    transparent 8px
  );
  padding: 44px 20px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-kana {
  font-size: 11px;
  letter-spacing: .22em;
  opacity: .45;
  margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--font-min);
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 13px; opacity: .7; margin-bottom: 24px; line-height: 1.7; }
.hero-search {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 6px 6px 6px 18px;
  gap: 8px;
  align-items: center;
}
.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: var(--font);
  min-width: 0;
}
.hero-search input::placeholder { color: rgba(255,255,255,.38); }
.hero-search-btn {
  background: var(--gold);
  color: var(--g900);
  border: none;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s;
  white-space: nowrap;
}
.hero-search-btn:hover { background: #B07F20; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 22px;
}
.h-stat { text-align: center; }
.h-stat-num {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 3px;
}
.h-stat-lbl { font-size: 11px; opacity: .55; }

/* ============================================================
   フィルター / ソート
============================================================ */
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  position: sticky;
  top: 52px;
  z-index: 100;
}
.fbtn {
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--g500);
  cursor: pointer;
  font-family: var(--font);
  min-height: 34px;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.fbtn.active {
  background: var(--red-lt);
  border-color: var(--red-mid);
  color: var(--red-dk);
  font-weight: 700;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
}
.section-title {
  font-family: var(--font-min);
  font-size: 20px;
  font-weight: 700;
  color: var(--g900);
  letter-spacing: .04em;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--red);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
}
.sort-wrap { display: flex; gap: 5px; }
.sort-btn {
  padding: 5px 12px;
  border-radius: var(--rs);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  font-weight: 500;
  color: var(--g500);
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s;
}
.sort-btn.active { background: var(--g900); border-color: var(--g900); color: #fff; }
.result-count {
  font-size: 12px;
  color: var(--g500);
  margin-bottom: 14px;
  padding: 0 16px;
}
.result-count strong { color: var(--g900); }

/* ============================================================
   プランカード — スマホ: カルーセル / PC: グリッド
============================================================ */

/* スマホ: 1枚スワイプ */
.carousel-outer { margin: 0 -4px; overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 12px;
  padding: 4px 20px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:active { cursor: grabbing; }
.carousel-track .pn-card {
  flex: 0 0 calc(100% - 48px);
  max-width: 340px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ドットナビ */
.carousel-dots { display: flex; justify-content: center; gap: 5px; margin-top: 4px; }
.c-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-md);
  transition: all .2s; cursor: pointer; border: none; padding: 0;
}
.c-dot.active { width: 18px; border-radius: 3px; background: var(--red); }
.carousel-prog {
  text-align: center; font-size: 11px; color: var(--g500); margin-top: 6px;
}
.carousel-prog strong { color: var(--g900); font-weight: 700; }

/* PC: グリッド */
@media (min-width: 768px) {
  .carousel-outer { margin: 0; overflow: visible; }
  .carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
    cursor: default;
  }
  .carousel-track .pn-card {
    flex: none; width: auto; max-width: none; scroll-snap-align: none;
  }
  .carousel-dots, .carousel-prog { display: none; }
}
@media (min-width: 1100px) {
  .carousel-track { grid-template-columns: repeat(4, 1fr); }
}

/* カード本体 */
.pn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
@media (min-width: 768px) {
  .pn-card:hover {
    box-shadow: 0 4px 20px rgba(168,32,32,.12);
    border-color: var(--red-mid);
  }
}
.pn-card.featured { border: 2px solid var(--red); }

/* アクセントバー */
.pn-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: var(--r) var(--r) 0 0; }
.pn-accent.major  { background: var(--red); }
.pn-accent.sub    { background: var(--gold); }
.pn-accent.mvno   { background: var(--border-md); }

/* バッジ */
.pn-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pn-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 100px; font-family: var(--font); line-height: 1.4;
}
.pn-badge.major { background: var(--red-lt);   color: var(--red-dk); }
.pn-badge.sub   { background: var(--gold-lt);  color: #7A5A10; }
.pn-badge.mvno  { background: var(--surface2); color: var(--g700); }
.pn-feat-lbl {
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; letter-spacing: .04em;
}

.pn-carrier-sub { font-size: 11px; color: var(--g500); margin-bottom: 2px; }
.pn-plan-name { font-size: 14px; font-weight: 700; color: var(--g900); line-height: 1.4; margin-bottom: 12px; }

/* 料金 */
.pn-price-row { display: flex; align-items: baseline; gap: 2px; margin-bottom: 4px; }
.pn-price-yen { font-family: var(--font-num); font-size: 14px; font-weight: 800; color: var(--red); }
.pn-price-num { font-family: var(--font-num); font-size: 34px; font-weight: 800; color: var(--red); line-height: 1; }
.pn-price-unit { font-size: 12px; color: var(--g500); }
.pn-data { font-size: 13px; color: var(--g500); margin-bottom: 12px; }
.pn-data strong { font-family: var(--font-num); font-size: 15px; font-weight: 700; color: var(--g900); }

.pn-divider { border: none; border-top: 1px solid var(--border); margin: 10px 0; }

/* スペックリスト */
.pn-specs { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pn-specs li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--g900); line-height: 1.4; }
.pn-spec-dot {
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 9px; font-weight: 700; font-style: normal;
}
.spec-ok .pn-spec-dot { background: var(--ok-lt);  color: var(--ok); }
.spec-ng .pn-spec-dot { background: var(--ng-lt);  color: var(--red); }
.spec-na .pn-spec-dot { background: var(--surface2); color: var(--g500); }

/* タグ */
.pn-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.pn-tag { font-size: 10px; padding: 3px 9px; border-radius: 100px; background: var(--surface2); color: var(--g700); font-weight: 500; }

/* CTAボタン */
.pn-cta {
  display: block; text-align: center;
  padding: 13px 16px; min-height: 44px;
  border-radius: var(--rs); font-size: 13px; font-weight: 700;
  text-decoration: none !important; border: none; margin-top: auto;
  letter-spacing: .03em; font-family: var(--font);
  transition: background .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.pn-cta:active { opacity: .85; }
.pn-cta.primary { background: var(--red); color: #fff !important; }
.pn-cta.primary:hover { background: var(--red-dk); color: #fff !important; }
.pn-cta.outline { background: var(--red-lt); color: var(--red-dk) !important; border: 1.5px solid var(--red-mid); }
.pn-cta.outline:hover { background: var(--red); color: #fff !important; }

.pn-disclosure { font-size: 10px; color: var(--g500); text-align: center; margin-top: 7px; line-height: 1.5; }

/* ── アクションエリア（申し込みボタン＋コラムリンク） ── */
.pn-action-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.pn-action-row .pn-cta {
  margin-top: 0;
}

/* 関連コラムリンク */
.pn-col-link {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--red-dk) !important;
  text-decoration: none !important;
  padding: 8px 12px;
  border-radius: var(--rs);
  border: 1px solid var(--red-mid);
  background: transparent;
  transition: background .15s, color .15s;
  letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent;
}
.pn-col-link:hover {
  background: var(--red-lt);
  color: var(--red-dk) !important;
}
.pn-col-link:active { opacity: .8; }

/* ============================================================
   コラム記事一覧
============================================================ */
.column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px 16px 40px;
}
@media (min-width: 600px)  { .column-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px)  { .column-grid { grid-template-columns: repeat(3,1fr); } }

.column-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
  text-decoration: none !important;
  color: inherit;
  display: block;
}
.column-card:hover { box-shadow: 0 4px 16px rgba(168,32,32,.1); border-color: var(--red-mid); }
.column-card-img { height: 140px; background: linear-gradient(135deg, var(--red-lt), var(--surface2)); display: flex; align-items: center; justify-content: center; }
.column-card-body { padding: 14px 16px; }
.column-cat { font-size: 10px; font-weight: 700; color: var(--red); background: var(--red-lt); padding: 2px 8px; border-radius: 100px; display: inline-block; margin-bottom: 7px; }
.column-title { font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--g900); margin-bottom: 7px; }
.column-date { font-size: 11px; color: var(--g500); }

/* ============================================================
   フッター
============================================================ */
.site-footer {
  background: var(--g900);
  color: rgba(255,255,255,.5);
  padding: 32px 20px;
  font-size: 12px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
}
.footer-logo { font-family: var(--font-min); font-size: 16px; font-weight: 700; color: #fff; letter-spacing: .06em; margin-bottom: 5px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-link { color: rgba(255,255,255,.45); cursor: pointer; transition: color .15s; }
.footer-link:hover { color: #fff; }
.footer-copy { margin-top: 20px; text-align: center; opacity: .35; font-size: 11px; }

/* ── 自然言語検索 結果バッジ ── */
.srch-badge {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--rs);
  margin: 0 0 12px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.srch-badge:empty { display: none; }
.srch-hit  { background: #EAF3DE; color: #276342; border: 1px solid #b6dcab; }
.srch-empty{ background: #FCEBEB; color: #791F1F; border: 1px solid #f5baba; }
.srch-badge strong { font-weight: 700; }
.srch-reset {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
}
.srch-reset:hover { opacity: .75; }

/* プレースホルダー文字を少し小さく（ヒントが長いため） */
#hero-search-input::placeholder { font-size: 12px; opacity: .75; }
@media (min-width: 480px) {
  #hero-search-input::placeholder { font-size: 13px; }
}

/* ================================================================
   ライフスタイルフィルター
================================================================ */
.lf-filter {
  margin: 0 0 16px;
  border: 1.5px solid var(--gold-lt, #e8d8a0);
  border-radius: var(--rs);
  overflow: hidden;
  background: #fffef8;
}

/* トグルボタン */
.lf-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #fdf8ec 0%, #faf4df 100%);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--red-dk, #7a1515);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.lf-toggle:hover { background: #f5edcc; }
.lf-toggle-icon { font-size: 11px; color: var(--gold, #c49030); }
.lf-toggle-label { flex: 1; }
.lf-active-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--red, #a82020);
  color: #fff;
  padding: 2px 8px;
  border-radius: 100px;
}

/* 本体 */
.lf-body {
  padding: 16px;
  border-top: 1px solid var(--gold-lt, #e8d8a0);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lf-body[hidden] { display: none; }

/* 各セクション */
.lf-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--g500, #777);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 8px;
}
.lf-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 選択ボタン */
.lf-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--rs);
  border: 1.5px solid var(--g200, #ddd);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  font-family: var(--font);
  line-height: 1.3;
  transition: border-color .15s, background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.lf-btn small {
  font-size: 10px;
  font-weight: 400;
  color: var(--g500, #777);
  margin-top: 2px;
}
.lf-btn:hover {
  border-color: var(--red-mid, #c04040);
  background: var(--red-lt, #fdf0f0);
}
.lf-btn.active {
  border-color: var(--red, #a82020);
  background: var(--red, #a82020);
  color: #fff;
}
.lf-btn.active small { color: rgba(255,255,255,.75); }
.lf-btn:active { opacity: .85; }

/* フッター */
.lf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--g100, #eee);
}
.lf-result-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--red-dk, #7a1515);
}
.lf-reset {
  font-size: 12px;
  color: var(--g500, #777);
  background: transparent;
  border: 1px solid var(--g200, #ddd);
  border-radius: 100px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: var(--font);
}
.lf-reset:hover { background: var(--g100, #eee); }

/* 割引バッジ・定価表示 */
.pn-disc-badge {
  font-size: 10px;
  font-weight: 700;
  background: #276342;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.pn-base-price {
  font-size: 11px;
  color: var(--g500, #777);
  text-align: center;
  margin: -4px 0 4px;
  text-decoration: line-through;
}

/* モバイル調整 */
@media (max-width: 480px) {
  .lf-btn { font-size: 12px; padding: 8px 10px; }
  .lf-body { padding: 12px; gap: 14px; }
}

/* ── ライフスタイルフィルター v2 追加スタイル ── */
.lf-hint {
  font-size: 10px;
  font-weight: 400;
  color: var(--g500, #888);
  margin-left: 5px;
  letter-spacing: 0;
}
/* ラジオ型ボタン（家族構成）：選択中に枠線を強調 */
.lf-btn.lf-radio.active {
  border-color: var(--red, #a82020);
  background: var(--red, #a82020);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(168,32,32,.25);
}

/* ================================================================
   データ量スライダー（gbSlider）
================================================================ */
.gb-slider-wrap {
  margin: 0 0 12px;
  background: #fff;
  border: 1.5px solid var(--g200, #ddd);
  border-radius: var(--rs);
  padding: 14px 16px 16px;
}
.gb-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.gb-slider-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #1a1a1a);
}
.gb-slider-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--red, #a82020);
  background: var(--red-lt, #fdf0f0);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--red-mid, #c04040);
  white-space: nowrap;
}
.gb-track-wrap {
  position: relative;
  padding: 0;
}
.gb-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right,
    var(--red, #a82020) 0%,
    var(--red, #a82020) var(--pct, 100%),
    var(--g200, #ddd) var(--pct, 100%),
    var(--g200, #ddd) 100%
  );
  outline: none;
  cursor: pointer;
  margin: 0;
}
.gb-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red, #a82020);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  cursor: pointer;
}
.gb-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red, #a82020);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  cursor: pointer;
}
.gb-ticks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 6px;
}
.gb-ticks span {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--g500, #777);
  line-height: 1.4;
  text-align: center;
  padding: 4px 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.gb-ticks span.active {
  color: var(--red, #a82020);
  font-weight: 700;
  background: var(--red-lt, #fdf0f0);
}
.gb-ticks small {
  font-size: 10px;
  color: inherit;
}

/* lf-group-label */
.lf-group-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink, #1a1a1a);
  margin: 16px 0 10px;
  padding: 10px 12px;
  background: var(--g100, #f5f5f5);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lf-group-label.lf-group-first { margin-top: 0; }
.lf-group-note {
  font-size: 10px;
  font-weight: 400;
  color: var(--g500, #888);
}

/* ── 2パネル対応追加スタイル ── */
/* パネル間の余白 */
#lf-filter-a { margin-bottom: 8px; }

/* トグルボタンのサブテキスト */
.lf-toggle-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--g500, #888);
  margin-left: 4px;
  flex: 1;
}
/* ラベルとサブテキストを縦並びに */
.lf-toggle {
  flex-wrap: wrap;
  row-gap: 2px;
}
.lf-toggle-label { flex-basis: auto; }
.lf-toggle-sub   { flex-basis: 100%; margin-left: 20px; }

/* ── 初年度割引 折りたたみ欄 ── */
.pn-fy-detail {
  margin: 8px 0 4px;
  border: 1px dashed var(--gold, #c49030);
  border-radius: 6px;
  overflow: hidden;
}
.pn-fy-summary {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red-dk, #7a1515);
  background: #fffbf0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pn-fy-summary::-webkit-details-marker { display: none; }
.pn-fy-summary::after {
  content: '▼';
  font-size: 9px;
  margin-left: auto;
  color: var(--gold, #c49030);
}
details[open] .pn-fy-summary::after { content: '▲'; }
.pn-fy-cond {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--g600, #555);
  line-height: 1.6;
  background: #fff;
  margin: 0;
}
