/* =============================================
  協会けんぽ新制度 お知らせ記事用スタイル
  news 単一記事（single-news.php）でのみ読み込まれる。
  読み込みは functions.php の my_wp_enqueue_scripts()（is_singular('news')）で制御。
============================================= */
.kk-news {
  /* サイトのトーンに合わせた配色。微調整はここだけ */
  --kk-red: #b93a2b;        /* 朱色(価格・強調・CTA) */
  --kk-gold: #b98a2e;       /* 金茶(バッジ・アクセント) */
  --kk-ink: #3c332c;        /* 本文の焦げ茶 */
  --kk-cream: #faf6ee;      /* 薄い生成り(背景) */
  --kk-line: #e5dcc9;       /* 罫線 */

  color: var(--kk-ink);
  line-height: 2;
}
.kk-news *, .kk-news *::before, .kk-news *::after { box-sizing: border-box; }

/* ---- リード ---- */
.kk-news .kk-lead {
  background: var(--kk-cream);
  border-left: 3px solid var(--kk-gold);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.kk-news .kk-lead { margin-top: 40px; }
.kk-news .kk-lead p { margin: 0; }
.kk-news .kk-lead strong { color: var(--kk-red); }

/* ---- 対象者 ---- */
.kk-news .kk-target {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 4px;
}
.kk-news .kk-badge {
  background: var(--kk-gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 16px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.08em;
}
.kk-news .kk-target span:not(.kk-badge) { font-weight: 700; }
.kk-news .kk-note-inline {
  font-size: 13px;
  color: #7d7469;
  display: block;
  margin-bottom: 24px;
}

/* ---- 料金図解 ---- */
.kk-news .kk-price {
  background: #fff;
  border: 1px solid var(--kk-line);
  margin: 28px 0 32px;
  text-align: center;
}
.kk-news .kk-price-head {
  background: var(--kk-red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 16px;
  letter-spacing: 0.12em;
}
.kk-news .kk-price-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.kk-news .kk-price-cell {
  flex: 1;
  padding: 24px 8px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kk-news .kk-price-cell .kk-cap {
  font-size: 12.5px;
  color: #7d7469;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.kk-news .kk-price-cell .kk-yen {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}
.kk-news .kk-price-cell .kk-yen small { font-size: 14px; }
.kk-news .kk-price-cell.kk-strike .kk-yen {
  text-decoration: line-through;
  color: #a99f92;
}
.kk-news .kk-price-cell.kk-minus .kk-yen { color: var(--kk-gold); }
.kk-news .kk-price-cell.kk-result { background: #fbf1ef; }
.kk-news .kk-price-cell.kk-result .kk-yen {
  color: var(--kk-red);
  font-size: 34px;
}
.kk-news .kk-price-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: var(--kk-gold);
  font-size: 20px;
  padding: 0 2px;
}
.kk-news .kk-price-foot {
  font-size: 13px;
  color: #7d7469;
  padding: 0 16px 16px;
}

/* ---- リスト・表 ---- */
.kk-news ul.kk-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
}
.kk-news ul.kk-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.kk-news ul.kk-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.85em;
  width: 7px;
  height: 7px;
  background: var(--kk-gold);
  transform: rotate(45deg);
}
.kk-news .kk-option-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 1.5em;
  font-size: 15px;
}
.kk-news .kk-option-table td {
  border: 1px solid var(--kk-line);
  padding: 10px 16px;
  background: #fff;
}
.kk-news .kk-option-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

/* ---- 注意ボックス ---- */
.kk-news .kk-caution {
  border: 1px solid var(--kk-red);
  background: #fff;
  padding: 20px 24px;
  margin: 30px 0;
}
.kk-news .kk-caution-title {
  font-weight: 700;
  color: var(--kk-red);
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.kk-news .kk-caution ul { margin: 0; padding-left: 1.4em; }
.kk-news .kk-caution li { margin-bottom: 8px; font-size: 15px; }
.kk-news .kk-caution li:last-child { margin-bottom: 0; }
.kk-news .kk-caution strong { color: var(--kk-red); }

/* ---- 制度2・3カード ---- */
.kk-news .kk-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 8px;
}
.kk-news .kk-subcard {
  border: 1px solid var(--kk-line);
  background: #fff;
  padding: 22px 24px;
}
.kk-news .kk-subtitle {
  font-weight: 700;
  color: var(--kk-red);
  font-size: 16px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--kk-line);
  line-height: 1.7;
}
.kk-news .kk-subcard dl { margin: 0; font-size: 14.5px; line-height: 1.8; }
.kk-news .kk-subcard dt {
  font-weight: 700;
  color: var(--kk-gold);
  font-size: 13px;
  margin-top: 12px;
  letter-spacing: 0.08em;
}
.kk-news .kk-subcard dd { margin: 0; }
.kk-news .kk-yen-s { color: var(--kk-red); font-weight: 700; }

/* ---- 予約 ---- */
.kk-news .kk-reserve {
  background: var(--kk-cream);
  padding: 32px 28px;
  margin-top: 48px;
  text-align: center;
}
.kk-news .kk-reserve-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.1em;
}
.kk-news .kk-btn {
  display: inline-block;
  background: var(--kk-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none !important;
  padding: 14px 44px;
  border-radius: 999px;
  margin: 16px 0 4px;
  letter-spacing: 0.1em;
  transition: opacity 0.2s;
}
.kk-news .kk-btn:hover { opacity: 0.85; }
.kk-news .kk-btn-sub { font-size: 13px; color: #7d7469; margin: 0 0 22px; }
.kk-news .kk-facilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}
.kk-news .kk-facility {
  background: #fff;
  border: 1px solid var(--kk-line);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.8;
}
.kk-news .kk-fname {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}
.kk-news .kk-facility a {
  color: var(--kk-red);
  font-weight: 700;
  text-decoration: none;
}

/* ---- スマホ ---- */
@media (max-width: 600px) {
  .kk-news .kk-price-flow { flex-direction: column; }
  .kk-news .kk-price-arrow {
    justify-content: center;
    transform: rotate(90deg);
    height: 22px;
    padding: 0;
  }
  .kk-news .kk-price-cell { padding: 14px 8px; }
  .kk-news .kk-subgrid { grid-template-columns: 1fr; }
  .kk-news .kk-facilities { grid-template-columns: 1fr; }
}

/* ---- サイドバーなし・本文全幅（single-news.php で .kk-no-sidebar 付与時のみ）---- */
body.single-news .kk-no-sidebar .content-width { gap: 0; }
body.single-news .kk-no-sidebar .content-width #entry-article { max-width: none; }
