/* =============================================
   神奈川斎場ガイド ポータルサイト CSS
   ============================================= */

:root {
  --primary: #0b66c3;
  --primary-dark: #004b9b;
  --accent: #f7b500;
  --border: #d8e0ea;
  --bg: #f3f6f9;
  --text: #263238;
  --muted: #607080;
  --white: #ffffff;
  --rank1: #d4a017;
  --rank2: #9e9e9e;
  --rank3: #a0522d;
  --font: "Meiryo", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 13px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =============================================
   ラッパー
   ============================================= */
.wrapper {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--bg);
}

/* =============================================
   最上部バー
   ============================================= */
.top-bar {
  background: #1a3a5c;
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  padding: 3px 0;
}
.top-bar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.top-bar__inner a { color: rgba(255,255,255,0.8); }
.top-bar__inner a:hover { color: #fff; text-decoration: none; }

/* =============================================
   ヘッダー
   ============================================= */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  padding: 8px 10px;
}
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-logo { flex-shrink: 0; }
.site-logo__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: block;
  line-height: 1.2;
}
.site-logo__sub {
  font-size: 11px;
  color: var(--muted);
}
.site-search {
  flex: 1;
  display: flex;
  gap: 6px;
}
.site-search__input {
  flex: 1;
  border: 2px solid var(--primary);
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}
.site-search__input:focus { border-color: var(--primary-dark); }
.site-search__btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 3px;
  white-space: nowrap;
}
.site-search__btn:hover { background: var(--primary-dark); }

/* =============================================
   グローバルナビ
   ============================================= */
.global-nav {
  background: var(--primary);
  border-bottom: 1px solid var(--primary-dark);
}
.global-nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}
.global-nav__list { display: flex; flex-wrap: wrap; }
.global-nav__list li a {
  display: block;
  color: var(--white);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: background 0.15s;
}
.global-nav__list li a:hover,
.global-nav__list li a.active {
  background: var(--primary-dark);
  text-decoration: none;
}
.global-nav__list li:first-child a { border-left: 1px solid rgba(255,255,255,0.2); }

/* メガメニュー */
.global-nav__list li.has-megamenu { position: relative; }
.global-nav__list li.has-megamenu > a::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.8;
}
.nav-megamenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 640px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
  z-index: 300;
  padding: 16px 20px;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
}
.global-nav__list li.has-megamenu:hover .nav-megamenu { display: grid; }
.megamenu-region__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 5px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.nav-megamenu ul { list-style: none; padding: 0; margin: 0; }
.nav-megamenu ul li a {
  display: block;
  color: var(--text) !important;
  background: transparent !important;
  padding: 4px 0 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  border: none !important;
  white-space: nowrap;
  transition: color 0.12s;
}
.nav-megamenu ul li a:hover { color: var(--primary) !important; text-decoration: none !important; }
.nav-megamenu ul li a.active { color: var(--primary) !important; font-weight: 700 !important; }

/* 条件メガメニュー */
.nav-megamenu--cond {
  width: 480px;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 12px;
}
.megamenu-cond-link {
  display: block;
  color: var(--text) !important;
  background: transparent !important;
  padding: 6px 8px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.megamenu-cond-link:hover {
  color: var(--primary) !important;
  background: var(--bg) !important;
  border-color: var(--primary) !important;
  text-decoration: none !important;
}

/* =============================================
   3カラムグリッド
   ============================================= */
.page-body {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  grid-template-areas: "left center right";
  gap: 0;
  background: var(--bg);
}

/* =============================================
   左カラム
   ============================================= */
.col-left {
  grid-area: left;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 0;
}

.side-block {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.side-block__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  padding: 5px 10px;
  margin-bottom: 4px;
}
.side-cat-list { padding: 2px 0; }
.side-cat-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text);
  border-bottom: 1px solid #f0f4f8;
  transition: background 0.1s;
}
.side-cat-list li a:hover { background: #eaf2fb; text-decoration: none; }
.side-cat-list li a .icon {
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.side-cat-list li a .label { flex: 1; line-height: 1.3; }
.side-cat-list li a .count {
  font-size: 10px;
  color: var(--muted);
  background: #f0f4f8;
  padding: 1px 4px;
  border-radius: 2px;
}

.side-cond-list { padding: 4px 8px; }
.side-cond-list li {
  margin-bottom: 3px;
}
.side-cond-list li a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text);
  padding: 4px 4px;
  border-radius: 2px;
  transition: background 0.1s;
}
.side-cond-list li a:hover { background: #eaf2fb; text-decoration: none; }
.side-cond-list li a::before {
  content: "▶";
  font-size: 9px;
  color: var(--primary);
}

/* =============================================
   中央カラム
   ============================================= */
.col-center {
  grid-area: center;
  padding: 10px;
  min-width: 0;
}

/* 案内ボックス */
.info-banner {
  background: linear-gradient(135deg, #0b66c3 0%, #004b9b 100%);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 3px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.info-banner__text h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}
.info-banner__text p {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.5;
}
.info-banner__btn {
  background: var(--accent);
  color: #222;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}
.info-banner__btn:hover { background: #e5a800; text-decoration: none; color: #222; }

/* セクション共通 */
.section-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}
.section-block__head {
  background: #f0f5fa;
  border-bottom: 2px solid var(--primary);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-block__head h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
}
.section-block__more {
  font-size: 11px;
  color: var(--primary);
}

/* 新着情報リスト */
.news-list { padding: 4px 0; }
.news-list li {
  border-bottom: 1px solid #f0f4f8;
}
.news-list li:last-child { border-bottom: none; }
.news-list li a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text);
}
.news-list li a:hover { background: #f5f9ff; text-decoration: none; }
.news-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.news-tag {
  font-size: 10px;
  color: var(--white);
  background: var(--primary);
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-tag--update { background: #e65c00; }

/* 斎場カードグリッド */
.saijo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
.saijo-card {
  background: var(--white);
  padding: 10px;
}
.saijo-card__img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: center center;
  border: 1px solid var(--border);
  margin-bottom: 6px;
}
.saijo-card__name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
  line-height: 1.3;
}
.saijo-card__area {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.saijo-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 5px;
}
.tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.tag--public { background: var(--primary); color: var(--white); border-color: var(--primary); }
.tag--feature { border-color: #e65c00; color: #e65c00; }
.saijo-card__desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 7px;
}
.saijo-card__btn {
  display: inline-block;
  font-size: 11px;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 3px 10px;
  border-radius: 2px;
  transition: all 0.15s;
}
.saijo-card__btn:hover { background: var(--primary); color: var(--white); text-decoration: none; }

/* 記事一覧 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
.article-card {
  background: var(--white);
  padding: 10px;
  display: flex;
  gap: 8px;
}
.article-card__img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.article-card__body { min-width: 0; }
.article-card__cat {
  font-size: 10px;
  color: var(--white);
  background: #607080;
  padding: 1px 5px;
  border-radius: 2px;
  margin-bottom: 3px;
  display: inline-block;
}
.article-card__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
}
.article-card__title:hover { color: var(--primary); }
.article-card__date { font-size: 10px; color: var(--muted); }

/* =============================================
   右カラム
   ============================================= */
.col-right {
  grid-area: right;
  background: var(--white);
  border-left: 1px solid var(--border);
  padding: 0;
}

/* 広告枠 */
.ad-block {
  background: linear-gradient(135deg, #1a3a5c, #0b66c3);
  color: var(--white);
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.ad-block__label {
  font-size: 10px;
  opacity: 0.7;
  margin-bottom: 4px;
}
.ad-block__title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.ad-block__btn {
  display: inline-block;
  background: var(--accent);
  color: #222;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 2px;
}
.ad-block__btn:hover { background: #e5a800; text-decoration: none; color: #222; }

.ad-small {
  background: #f8f9fa;
  border: 1px solid var(--border);
  padding: 10px 12px;
  margin: 0 8px 8px;
  border-radius: 2px;
  text-align: center;
}
.ad-small__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.ad-small__btn {
  display: inline-block;
  font-size: 11px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 2px;
  margin-top: 4px;
}
.ad-small__btn:hover { background: var(--primary-dark); text-decoration: none; color: var(--white); }

/* 右カラムブロック */
.right-block {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.right-block__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  padding: 5px 10px;
}

/* ランキング */
.ranking-list { padding: 6px 0; }
.ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid #f0f4f8;
}
.ranking-item:last-child { border-bottom: none; }
.rank-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-num.r1 { background: var(--rank1); }
.rank-num.r2 { background: var(--rank2); }
.rank-num.r3 { background: var(--rank3); }
.rank-info { min-width: 0; }
.rank-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  display: block;
}
.rank-name:hover { text-decoration: underline; }
.rank-area { font-size: 10px; color: var(--muted); }
.rank-tag { font-size: 10px; color: var(--primary); background: #e8f1fb; padding: 1px 4px; border-radius: 2px; margin-left: 4px; }

/* よく見られている記事 */
.viewed-list { padding: 4px 0; }
.viewed-item {
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid #f0f4f8;
  align-items: flex-start;
}
.viewed-item:last-child { border-bottom: none; }
.viewed-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  width: 16px;
}
.viewed-title {
  font-size: 11px;
  color: var(--text);
  line-height: 1.4;
}
.viewed-title:hover { color: var(--primary); text-decoration: underline; }

/* =============================================
   フッター
   ============================================= */
.site-footer {
  background: #f7f9fc;
  border-top: 3px solid var(--primary);
  margin-top: 0;
}
.footer-links {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px 32px;
  border-bottom: 1px solid var(--border);
}
.footer-col__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.footer-col__list { }
.footer-col__list li {
  margin-bottom: 7px;
}
.footer-col__list li a {
  font-size: 12.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: normal;
}
.footer-col__list li a::before {
  content: "›";
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
}
.footer-col__list li a:hover { color: var(--primary); text-decoration: none; }

.footer-col--wide {
  grid-column: span 2;
}
.footer-col--wide .footer-col__list {
  column-count: 2;
  column-gap: 20px;
}
.footer-col--wide .footer-col__list li {
  break-inside: avoid;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom__links a { font-size: 11.5px; color: var(--muted); }
.footer-bottom__links a:hover { color: var(--primary); text-decoration: none; }

@media (min-width: 769px) {
  .footer-col__list li a {
    white-space: nowrap;
  }
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 768px) {
  html { font-size: 13px; }

  .top-bar { display: none; }

  .site-header { padding: 6px 10px; }
  .site-header__inner { flex-wrap: wrap; gap: 6px; }
  .site-logo { width: 100%; }
  .site-logo__name { font-size: 19px; }
  .site-search { width: 100%; }
  .site-search__input { font-size: 14px; }

  /* ナビ：横スクロール対応 */
  .global-nav__inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .global-nav__inner::-webkit-scrollbar { display: none; }
  .global-nav__list { flex-wrap: nowrap; width: max-content; }
  .global-nav__list li a { padding: 10px 14px; font-size: 13px; white-space: nowrap; }

  /* モバイル メガメニュー：タップで fixed パネルとして展開 */
  .has-megamenu.is-open .nav-megamenu {
    display: grid !important;
    position: fixed;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px;
    gap: 14px 20px;
    grid-template-columns: repeat(2, 1fr) !important;
    z-index: 500;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  }
  .has-megamenu.is-open .nav-megamenu--cond {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px 10px;
  }

  .page-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "left"
      "right";
  }

  .col-left { border-right: none; border-top: 3px solid var(--primary); }
  .col-right { border-left: none; border-top: 3px solid var(--primary); }

  .info-banner { flex-direction: column; text-align: center; }
  .info-banner__btn { width: 100%; text-align: center; }

  .saijo-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }

  /* フッター：アコーディオンレイアウト */
  .footer-links {
    grid-template-columns: 1fr;
    padding: 0 0 4px;
    gap: 0;
    border-bottom: none;
  }
  .footer-col {
    border-bottom: 1px solid var(--border);
  }
  .footer-col__title {
    font-size: 13.5px;
    border-bottom: none;
    padding: 13px 14px;
    margin-bottom: 0;
    margin-top: 0 !important;
  }
  .footer-col > .footer-col__title:not(:first-child) {
    border-top: 1px solid var(--border);
  }
  .footer-col__title--toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }
  .footer-col__title--toggle:active { background: rgba(11,102,195,0.06); }
  .footer-accordion-icon {
    font-size: 20px;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    line-height: 1;
    margin-left: 8px;
  }
  .footer-col__list {
    padding: 0 14px 12px;
  }
  .footer-col__list li {
    margin-bottom: 0;
  }
  .footer-col__list li a {
    padding: 9px 0;
    font-size: 13px;
    border-bottom: 1px solid #eef1f5;
    white-space: normal;
  }
  .footer-col__list li:last-child a {
    border-bottom: none;
  }
  .footer-col--wide { grid-column: span 1; }
  .footer-col--wide .footer-col__list { column-count: 1; }

  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 12px 14px; }
}

@media (max-width: 480px) {
  .global-nav__list li a { padding: 10px 12px; font-size: 12.5px; }
}

/* =============================================
   配下ページ共通：2カラムレイアウト
   ============================================= */
.sub-page-body {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  padding: 14px 10px;
  align-items: start;
}

/* パンくずリスト */
.breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--muted); font-size: 11px; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb__list li + li::before {
  content: "›";
  color: var(--muted);
  font-size: 11px;
  margin-right: 2px;
}

/* メインコンテンツ */
.article-main {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 20px 22px;
}

/* 記事タイトル */
.article-main h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

/* 記事メタ */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.article-meta__item { display: flex; align-items: center; gap: 4px; }
.article-meta__cat {
  background: var(--primary);
  color: var(--white);
  padding: 1px 7px;
  border-radius: 2px;
  font-size: 11px;
}

/* アイキャッチ・メイン画像 */
.article-eyecatch {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  border-radius: 2px;
}

/* リード文 */
.article-lead {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
  padding: 12px 14px;
  background: #f0f5fb;
  border-left: 3px solid var(--primary);
  border-radius: 0 2px 2px 0;
}

/* 目次 */
.toc {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 16px;
  margin-bottom: 22px;
}
.toc__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}
.toc__list { padding-left: 4px; }
.toc__list li {
  margin-bottom: 4px;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.toc__list li::before {
  content: "▶";
  font-size: 8px;
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}
.toc__list li a {
  font-size: 12.5px;
  color: var(--primary);
  line-height: 1.5;
}
.toc__num {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
  width: 18px;
}

/* 本文見出し */
.article-main h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  padding: 7px 12px;
  margin: 24px 0 12px;
  border-radius: 2px;
}
.article-main h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  border-left: 3px solid var(--primary);
  padding: 4px 10px;
  margin: 16px 0 8px;
  background: #f5f9ff;
}
.article-main p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 12px;
}

/* 基本情報テーブル */
.info-table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
  -webkit-overflow-scrolling: touch;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 400px;
}
.info-table th, .info-table td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.info-table th {
  background: #f0f5fb;
  color: var(--primary-dark);
  font-weight: 700;
  white-space: nowrap;
  width: 130px;
}
.info-table td { background: var(--white); }

/* 比較表 */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 18px;
}
.compare-table th {
  background: var(--primary);
  color: var(--white);
  padding: 8px 12px;
  text-align: center;
  font-weight: 700;
}
.compare-table td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  vertical-align: top;
}
.compare-table tr:nth-child(even) td { background: #f8fafc; }
.compare-table__label {
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

/* ボックス装飾 */
.box-note {
  background: #fff8e1;
  border: 1px solid #ffc107;
  border-left: 4px solid #ffc107;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 0 2px 2px 0;
  font-size: 13px;
}
.box-note__title {
  font-weight: 700;
  color: #e65100;
  margin-bottom: 5px;
  font-size: 13px;
}
.box-point {
  background: #e8f5e9;
  border: 1px solid #66bb6a;
  border-left: 4px solid #43a047;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 0 2px 2px 0;
  font-size: 13px;
}
.box-point__title {
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 5px;
  font-size: 13px;
}
.box-link {
  background: #e3f0ff;
  border: 1px solid var(--border);
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 2px;
  font-size: 13px;
}
.box-link__title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
  font-size: 13px;
}
.box-link ul { padding-left: 4px; }
.box-link ul li {
  list-style: none;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.box-link ul li::before { content: "›"; color: var(--primary); font-size: 15px; }

/* 図解カード（葬儀形式など） */
.choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.choice-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  padding: 12px;
  border-radius: 2px;
  text-align: center;
}
.choice-card__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 5px;
}
.choice-card__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* FAQ */
.faq-list { margin-bottom: 18px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  background: #f0f5fb;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.faq-q::before {
  content: "Q";
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.faq-a {
  padding: 10px 14px 10px 42px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  background: var(--white);
  position: relative;
}
.faq-a::before {
  content: "A";
  background: #e65c00;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 14px;
  top: 10px;
}

/* SNS共有ボタン */
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.share-btn:hover { opacity: 0.85; text-decoration: none; color: var(--white); }
.share-btn--x { background: #000; }
.share-btn--line { background: #06c755; }
.share-btn--hatena { background: #00a4de; }
.share-btn--fb { background: #1877f2; }
.share-btn--copy { background: #6b7280; border: none; cursor: pointer; font-family: inherit; }

/* 公式サイトリンク */
.official-site-box { margin: 1.2rem 0 1.6rem; text-align: center; }
.btn-official {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-official:hover { background: var(--primary-dark); color: var(--white); text-decoration: none; }

/* 下部関連記事グリッド */
.related-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--primary);
}
.related-section__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.related-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.15s;
}
.related-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.related-card__img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  object-position: center center;
}
.related-card__body { padding: 8px 10px; }
.related-card__cat {
  font-size: 10px;
  color: var(--white);
  background: var(--muted);
  padding: 1px 6px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 4px;
}
.related-card__title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
  display: block;
}
.related-card__title:hover { color: var(--primary); }
.related-card__desc { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* =============================================
   配下ページ：サイドバー
   ============================================= */
.article-sidebar { min-width: 0; }

.sb-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 14px;
  overflow: hidden;
}
.sb-block__title {
  background: var(--primary);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 10px;
}

/* サイドバー検索 */
.sb-search {
  padding: 10px;
  display: flex;
  gap: 5px;
}
.sb-search input {
  flex: 1;
  border: 1px solid var(--border);
  padding: 6px 8px;
  font-size: 12px;
  font-family: var(--font);
  border-radius: 2px;
  outline: none;
}
.sb-search input:focus { border-color: var(--primary); }
.sb-search button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.sb-search button:hover { background: var(--primary-dark); }

/* サイドバーランキング */
.sb-ranking-list { padding: 4px 0; }
.sb-ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #f0f4f8;
}
.sb-ranking-item:last-child { border-bottom: none; }
.sb-rank-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sb-rank-num.r1 { background: var(--rank1); }
.sb-rank-num.r2 { background: var(--rank2); }
.sb-rank-num.r3 { background: var(--rank3); }
.sb-rank-info { min-width: 0; }
.sb-rank-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1.3;
}
.sb-rank-area { font-size: 10px; color: var(--muted); }

/* サイドバーよく見られる記事 */
.sb-viewed-list { padding: 4px 0; }
.sb-viewed-item {
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid #f0f4f8;
}
.sb-viewed-item:last-child { border-bottom: none; }
.sb-viewed-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  width: 16px;
}
.sb-viewed-title {
  font-size: 11.5px;
  color: var(--text);
  line-height: 1.45;
}
.sb-viewed-title:hover { color: var(--primary); text-decoration: underline; }

/* サイドバーエリアリンク */
.sb-area-list { padding: 6px 10px 8px; }
.sb-area-list li {
  margin-bottom: 4px;
  list-style: none;
}
.sb-area-list li a {
  font-size: 12.5px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.sb-area-list li a::before { content: "›"; font-size: 14px; color: var(--muted); }
.sb-area-list li a:hover { text-decoration: underline; }

/* サイドバー広告・バナー */
.sb-ad {
  background: linear-gradient(135deg, #1a3a5c, #0b66c3);
  color: var(--white);
  padding: 14px 12px;
  text-align: center;
  margin-bottom: 14px;
  border-radius: 2px;
}
.sb-ad__title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.4;
}
.sb-ad__sub { font-size: 11px; opacity: 0.8; margin-bottom: 8px; line-height: 1.4; }
.sb-ad__btn {
  display: inline-block;
  background: var(--accent);
  color: #222;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 2px;
}
.sb-ad__btn:hover { background: #e5a800; text-decoration: none; color: #222; }

.sb-banner {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 2px;
  text-align: center;
}
.sb-banner:last-child { margin-bottom: 14px; }
.sb-banner__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}
.sb-banner__btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 2px;
}
.sb-banner__btn:hover { background: var(--primary-dark); text-decoration: none; color: var(--white); }

/* エリア一覧ページ：斎場カード */
.area-saijo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.area-saijo-card {
  display: flex;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  padding: 12px;
  transition: box-shadow 0.15s;
}
.area-saijo-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.area-saijo-card__img {
  width: 140px;
  height: 95px;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 1px;
}
.area-saijo-card__body { flex: 1; min-width: 0; }
.area-saijo-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.area-saijo-card__addr {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.area-saijo-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.area-saijo-card__desc {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 8px;
}
.area-saijo-card__btn {
  display: inline-block;
  font-size: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 2px;
}
.area-saijo-card__btn:hover { background: var(--primary-dark); text-decoration: none; color: var(--white); }

/* =============================================
   配下ページ レスポンシブ
   ============================================= */
@media (max-width: 768px) {
  .sub-page-body {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 12px;
  }
  .article-main { padding: 14px 12px; }
  .article-main h1 { font-size: 17px; }
  .article-main h2 { font-size: 14px; }
  .article-eyecatch { height: 160px; }
  .choice-cards { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .area-saijo-card { flex-direction: column; }
  .area-saijo-card__img { width: 100%; height: 160px; }
  .share-buttons { gap: 6px; }
  .share-btn { font-size: 11px; padding: 6px 10px; }
  .info-table-wrap { overflow-x: auto; }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
  .choice-cards { grid-template-columns: 1fr; }
}

/* =============================================
   シングルカラムページ（はじめての方へ・掲載・お問い合わせ）
   ============================================= */
.page-body--single {
  max-width: 860px;
  margin: 0 auto;
  display: block;
  background: var(--bg);
  padding: 24px 16px 48px;
}
.page-body--single .main-col {
  background: #fff;
  border-radius: 8px;
  padding: 32px 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  margin-bottom: 28px;
}
.page-lead {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.content-section {
  margin-bottom: 32px;
}
.content-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.content-list {
  padding-left: 20px;
  line-height: 1.9;
  font-size: 14px;
  color: var(--text);
}
.content-list li { margin-bottom: 6px; }
.content-dl dt {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark);
  margin-top: 14px;
  margin-bottom: 4px;
}
.content-dl dd {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  margin-left: 12px;
}

/* お問い合わせフォーム */
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 20px; }
.form-group--privacy { display: flex; align-items: center; gap: 8px; }
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.required {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,102,195,0.12);
}
.form-textarea { resize: vertical; }
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  cursor: pointer;
}
.form-checkbox input { width: 16px; height: 16px; }
.form-submit { margin-top: 28px; }
.form-submit__btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 48px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.form-submit__btn:hover { background: var(--primary-dark); }
.form-submit__btn:disabled { background: #bdbdbd; cursor: not-allowed; }

/* フォームバリデーション状態 */
.form-input--error,
.form-select--error,
.form-textarea--error {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.12) !important;
  background: #fff8f8;
}
.form-error-msg {
  color: #e53935;
  font-size: 12px;
  margin-top: 5px;
  display: none;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.5;
}
.form-error-msg.is-visible { display: flex; }
.form-error-msg::before { content: "!"; flex-shrink: 0; font-weight: 700; }
.form-alert {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 13.5px;
  border-left: 4px solid;
  line-height: 1.8;
}
.form-alert--error { background: #fff3f3; border-color: #e53935; color: #b71c1c; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

@media (max-width: 768px) {
  .page-body--single .main-col { padding: 20px 16px; }
  .page-title { font-size: 18px; }
  .contact-form { max-width: 100%; }
}

/* =============================================
   条件タグ（施設ページ・条件ページ共通）
   ============================================= */

/* 施設ページ内タグ列 */
.condition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 18px;
}
.cond-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: #eef4fd;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.cond-tag:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* 条件ページ フィルターバー */
.cond-filter-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px 12px;
  margin-bottom: 24px;
}
.cond-filter-bar__label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.cond-filter-bar__tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.cond-filter-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s;
  white-space: nowrap;
}
.cond-filter-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}
.cond-filter-tag--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}
.cond-filter-tag--active:hover { color: #fff; }

/* 条件ページ 施設カード（新デザイン） */
.cond-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cond-saijo-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 20px 16px;
  transition: box-shadow 0.18s;
  overflow: hidden;
}
.cond-saijo-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

/* 右上バッジ */
.cond-card__feat-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #eef4fd;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 10px 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 12px;
}

/* 内部2カラム */
.cond-card__inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.cond-card__body { flex: 1; min-width: 0; }

/* タイトル行 */
.cond-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  margin-top: 4px;
}
.cond-card__rank {
  flex-shrink: 0;
  background: var(--primary-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.cond-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cond-card__name:hover { color: var(--primary); }

/* 星評価 */
.cond-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 13px;
}
.cond-card__star { color: #ccc; font-size: 16px; }
.cond-card__star.filled { color: var(--accent); }
.cond-card__rating-note { font-size: 11px; color: var(--muted); }

/* 住所・駅 */
.cond-card__addr,
.cond-card__station {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 5px;
}

/* 料金テーブル */
.cond-card__price-wrap { margin: 12px 0 10px; }
.cond-card__price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  max-width: 480px;
}
.cond-card__price-table thead th {
  background: var(--primary);
  color: #fff;
  padding: 6px 10px;
  text-align: center;
  font-weight: 600;
}
.cond-card__price-table tbody td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* タグ */
.cond-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

/* 右カラム：写真 */
.cond-card__photo {
  flex-shrink: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cond-card__photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
  display: block;
}
.cond-card__photo-btn {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.15s;
}
.cond-card__photo-btn:hover { background: var(--primary-dark); text-decoration: none; }

@media (max-width: 700px) {
  .cond-card__inner { flex-direction: column; }
  .cond-card__photo { width: 100%; }
  .cond-card__photo img { height: 180px; }
}

/* =============================================
   条件から探す ページ フィルターUI
   ============================================= */
.cond-filter-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px 14px;
  margin-bottom: 20px;
}
.cond-filter-section__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.cond-filter-section__desc {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 10px;
}
.cond-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.cond-btn {
  display: inline-block;
  padding: 7px 16px;
  border: 2px solid var(--border);
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.cond-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.cond-btn--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.cond-btn--active:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.cond-reset-btn {
  display: inline-block;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.cond-reset-btn:hover { color: var(--text); }

.cond-count {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
@keyframes cond-count-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.5); color: var(--accent); }
  65%  { transform: scale(0.95); }
  100% { transform: scale(1); color: var(--primary); }
}
.cond-count--pop {
  animation: cond-count-pop 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.cond-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =============================================
   コラム一覧ページ
   ============================================= */

/* カードリスト */
.col-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 1枚のカード */
.col-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.18s;
}
.col-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  transform: translateY(-2px);
  text-decoration: none;
}

/* サムネイル */
.col-card__img-wrap {
  flex: 0 0 200px;
  width: 200px;
  overflow: hidden;
}
.col-card__img {
  width: 100%;
  height: 100%;
  min-height: 155px;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.22s;
}
.col-card:hover .col-card__img { transform: scale(1.03); }

/* テキスト本体 */
.col-card__body {
  flex: 1;
  padding: 16px 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* カテゴリ + タグ行 */
.col-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.col-card__cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  background: var(--muted);
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.col-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.col-card__tag {
  font-size: 10px;
  color: var(--primary);
  background: #e3f0ff;
  border: 1px solid #b8d4f5;
  padding: 1px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

/* タイトル */
.col-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.5;
  margin: 0;
}

/* 抜粋 */
.col-card__excerpt {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 「詳しく見る」 */
.col-card__more {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  padding-top: 4px;
  display: inline-block;
}

/* SP：縦積みに切り替え */
@media (max-width: 768px) {
  .col-card {
    flex-direction: column;
  }
  .col-card__img-wrap {
    width: 100%;
    height: 180px;
    flex: none;
  }
  .col-card__img {
    height: 180px;
    min-height: 0;
  }
  .col-card__body {
    padding: 14px 16px;
    gap: 6px;
  }
  .col-card__title {
    font-size: 14px;
  }
}
