/* くらしのBASE ページごとの見た目（トップ・一覧・取扱店・問い合わせ）。土台は kb-base.css */

/* ===== トップ：外観の格子＋暗い膜＋白の極太 ===== */
.hero { position: relative; color: var(--white); overflow: hidden; background: var(--ink); }
.hero-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,21,23,.88) 0%, rgba(26,21,23,.72) 48%, rgba(26,21,23,.45) 100%); }
.hero-in { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 120px var(--pad) 72px; min-height: min(86svh, 820px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; letter-spacing: .12em; margin-bottom: 24px; }
.hero-kicker b { display: inline-block; background: var(--red); padding: 4px 12px; font-family: var(--en); font-weight: 700; letter-spacing: .1em; }
.hero-title { font-size: clamp(44px, 7.2vw, 104px); font-weight: 900; line-height: 1.12; letter-spacing: -.01em; }
.hero-lead { margin-top: 24px; max-width: 34em; font-size: 17px; line-height: 1.9; color: rgba(255,255,255,.92); }
.hero-stats { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 12px; }
.stat { background: var(--red); border-radius: 12px; padding: 18px 20px; display: flex; align-items: baseline; gap: 8px; }
.stat b { font-family: var(--en); font-size: 48px; font-weight: 700; line-height: 1; }
.stat span { font-size: 14px; font-weight: 700; }
.hero-vertical { position: absolute; z-index: 2; right: 40px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-size: 15px; font-weight: 700; letter-spacing: .4em; color: rgba(255,255,255,.9); }

/* ===== トップ：テーマ ===== */
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.theme { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 28px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 32px; transition: background .25s, color .25s; }
.theme:hover { background: var(--ink); color: var(--white); }
.theme-no { font-family: var(--en); font-size: 56px; font-weight: 800; color: var(--red); line-height: 1; }
.theme-name { margin-top: 16px; font-size: 26px; font-weight: 900; line-height: 1.4; }
.theme-desc { margin-top: 10px; font-size: 15px; line-height: 1.8; opacity: .82; word-break: keep-all; overflow-wrap: anywhere; }
.theme-count { margin-top: 20px; display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 700; }
.theme-count b { font-family: var(--en); font-size: 28px; font-weight: 700; }
.theme-pics { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; }
.theme-pics img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* ===== トップ：プラン（黒い地） ===== */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }

/* ===== トップ：2列の一覧 ===== */
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.list-hd { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 16px; border-bottom: 3px solid var(--ink); }
.list-hd h3 { font-size: 24px; font-weight: 900; }
.list-hd a { font-size: 14px; font-weight: 700; }
.list-hd a:hover { color: var(--red); }
.row { display: grid; grid-template-columns: 40px 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.row-no { font-family: var(--en); font-size: 22px; font-weight: 800; color: var(--red); }
.row-img { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--gray); }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-ttl { font-size: 15px; font-weight: 700; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.row-date { margin-top: 4px; font-family: var(--en); font-size: 13px; color: var(--sub); }
.row:hover .row-ttl { color: var(--red); }

/* ===== キーワードと検索 ===== */
.tags { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tag { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 12px 18px; border-radius: 999px; background: var(--white); font-size: 15px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.tag small { font-family: var(--en); font-size: 13px; font-weight: 500; color: var(--sub); }
.tag:hover, .tag[aria-current="true"] { background: var(--ink); color: var(--white); }
.tag:hover small, .tag[aria-current="true"] small { color: rgba(255,255,255,.75); }
.search { display: flex; gap: 10px; margin-bottom: 24px; }
.search input { flex: 1; min-width: 0; height: 56px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font: inherit; font-size: 16px; }
.search input:focus { outline: none; border-color: var(--red); }
.search button { height: 56px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 16px; font-weight: 700; white-space: nowrap; }
.search button:hover { background: var(--red); }

/* ===== 一覧のページ（テーマ別・タグ） ===== */
.list-sec { padding: 64px 0 112px; }
.list-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.list-count { font-size: 15px; font-weight: 700; }
.list-count b { font-family: var(--en); font-size: 28px; margin-right: 4px; }
.empty { padding: 48px 0; font-size: 16px; color: var(--sub); text-align: center; }

/* ===== プラン一覧のページ ===== */
.plans-page .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.plans-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 72px 0 28px; padding-bottom: 16px; border-bottom: 3px solid var(--ink); }
.plans-head:first-of-type { margin-top: 0; }
.plans-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; }
.plans-head p { font-size: 14px; font-weight: 700; color: var(--sub); }
.plan-type { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--red); }
.plan-code { margin-top: 4px; font-size: 20px; font-weight: 900; }
.plan-card-spec { margin-top: 6px; font-size: 14px; line-height: 1.75; color: var(--sub); }
.plan-card-spec strong { font-family: var(--en); font-size: 18px; color: var(--ink); }
.note-box { margin-top: 72px; padding: 32px 40px; border-left: 8px solid var(--red); background: var(--gray); border-radius: 0 var(--radius) var(--radius) 0; }
.note-box h3 { font-size: 18px; font-weight: 900; }
.note-box li { margin-top: 8px; padding-left: 1.2em; text-indent: -1.2em; font-size: 15px; }
.note-box li::before { content: "■"; color: var(--red); margin-right: .4em; font-size: .8em; }

/* ===== 取扱店のページ ===== */
.area-nav { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin: 48px 0 8px; }
.area-nav a { display: block; text-align: center; padding: 12px 4px; border-radius: 12px; border: 2px solid var(--ink); font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
.area-nav a b { display: block; font-family: var(--en); font-size: 22px; line-height: 1.2; }
.area-nav a:hover { background: var(--ink); color: var(--white); }
.region { padding-top: 72px; scroll-margin-top: 96px; }
.region-hd { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.region-hd h2 { font-size: 28px; font-weight: 900; }
.region-hd span { font-size: 14px; font-weight: 700; color: var(--sub); }
.pref { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pref-name { font-size: 16px; font-weight: 900; padding-top: 18px; }
.pref-name::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--red); margin-right: 10px; vertical-align: 2px; }
.dealers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dl { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 12px; background: var(--gray); }
.dl-name { font-size: 16px; font-weight: 700; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.dl-addr { margin-top: 2px; font-size: 13px; color: var(--sub); }
.dl a { flex-shrink: 0; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--red); color: var(--red); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.dl a:hover { background: var(--red); color: var(--white); }

/* ===== 問い合わせのページ ===== */
.contact-wrap { max-width: 880px; margin: 0 auto; padding: 72px var(--pad) 112px; }
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-option { display: block; padding: 28px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); transition: background .2s, color .2s; }
a.contact-option:hover { background: var(--ink); color: var(--white); }
.contact-option-icon { font-size: 28px; line-height: 1; }
.contact-option h3 { margin-top: 12px; font-size: 18px; font-weight: 900; }
.contact-option p { margin-top: 6px; font-size: 15px; line-height: 1.8; }
.page-content h2 { margin: 56px 0 16px; padding-left: 16px; border-left: 8px solid var(--red); font-size: 24px; font-weight: 900; line-height: 1.4; }
.page-content > h2:first-child { margin-top: 0; }
.page-content p { font-size: 16px; line-height: 2; }
.page-content ul { margin-top: 12px; }
.page-content li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.85; }
.page-content li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 10px; height: 10px; background: var(--red); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 8px; }
.feature-item { background: var(--red); color: var(--white); border-radius: var(--radius); padding: 24px 20px; }
.feature-item-num { font-family: var(--en); font-size: 44px; font-weight: 800; line-height: 1; }
.feature-item-label { margin-top: 12px; font-size: 14px; font-weight: 700; line-height: 1.7; }
.form-section { margin-top: 72px; padding: 48px; background: var(--gray); border-radius: var(--radius); }
.form-section h2 { font-size: 28px; font-weight: 900; }
.form-lead { margin-top: 8px; font-size: 15px; color: var(--sub); }
.form-section form { margin-top: 28px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.required { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--red); color: var(--white); font-size: 13px; font-weight: 700; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); font: inherit; font-size: 16px; color: var(--ink); }
.form-group textarea { min-height: 180px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--ink); }
.form-submit { margin-top: 8px; }
.form-submit button { width: 100%; height: 64px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 17px; font-weight: 900; transition: background .2s; }
.form-submit button:hover { background: var(--red-deep); }
.form-submit button:disabled { background: var(--sub); }
.form-note { margin-top: 16px; font-size: 13px; color: var(--sub); line-height: 1.8; }
.business-link { margin-top: 40px; }
.business-link-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border: 2px solid var(--ink); border-radius: var(--radius); }
.business-link-inner p { font-size: 15px; font-weight: 700; }
.business-link-inner a { flex-shrink: 0; display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 15px; font-weight: 700; }
.business-link-inner a:hover { background: var(--red); }

/* ===== タブレット ===== */
@media (max-width: 1080px) {
  .hero-vertical { display: none; }
  .plan-grid, .plans-page .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-grid { grid-template-columns: minmax(0, 1fr); }
  .tags { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .area-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dealers { grid-template-columns: minmax(0, 1fr); }
}
/* ===== スマホ ===== */
@media (max-width: 720px) {
  .hero-in { padding: 88px var(--pad) 40px; min-height: 0; }
  .hero-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); }
  .hero::after { background: linear-gradient(180deg, rgba(26,21,23,.62) 0%, rgba(26,21,23,.82) 60%, rgba(26,21,23,.9) 100%); }
  .hero-kicker { font-size: 13px; letter-spacing: .06em; }
  .hero-lead { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 12px; }
  .stat b { font-size: 34px; }
  .stat span { font-size: 13px; }
  .theme { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .theme-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-no { font-size: 44px; }
  .theme-name { font-size: 22px; }
  .plan-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scrollbar-width: none; }
  .plan-grid::-webkit-scrollbar { display: none; }
  .plan-grid > .plan { flex: 0 0 80%; scroll-snap-align: start; }
  .plans-page .plan-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin: 0; padding: 0; overflow: visible; }
  .lists { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .row { grid-template-columns: 32px 96px minmax(0, 1fr); gap: 12px; }
  .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search button { padding: 0 20px; }
  .list-tools { flex-direction: column; align-items: flex-start; }
  .note-box { padding: 24px 20px; }
  .area-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .area-nav a { padding: 8px 2px; font-size: 13px; border-radius: 8px; }
  .area-nav a b { font-size: 18px; }
  .pref { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pref-name { padding-top: 0; }
  .dl { flex-direction: column; align-items: flex-start; }
  .contact-wrap { padding: 48px var(--pad) 72px; }
  .contact-options, .form-row, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .form-section { padding: 28px 20px; }
  .business-link-inner { flex-direction: column; align-items: stretch; }
  .business-link-inner a { justify-content: center; }
}
