/*
Theme Name: Radio PRESS
Theme URI: https://radio-press.com/
Author: Radio PRESS
Description: 企業のニュースをラジオ局につなぐメディアプラットフォーム「Radio PRESS」の専用テーマ。ネイビー×ホワイトのコーポレートデザイン。
Version: 0.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: radio-press
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --rp-navy-900: #06132b;
  --rp-navy-800: #0a1d3a;
  --rp-navy-700: #16305a;
  --rp-navy-600: #244a7d;
  --rp-blue-500: #2f5fa8;
  --rp-blue-400: #4f7bc0;
  --rp-ink: #1b2430;
  --rp-text: #33404f;
  --rp-muted: #6b7686;
  --rp-line: #e3e7ee;
  --rp-line-2: #eef1f6;
  --rp-bg: #ffffff;
  --rp-bg-soft: #f4f6fa;
  --rp-bg-navy-soft: #f2f5fb;
  --rp-white: #ffffff;
  --rp-radius: 0px;
  --rp-radius-lg: 0px;
  --rp-shadow-sm: 0 1px 3px rgba(15, 32, 56, .06), 0 1px 2px rgba(15, 32, 56, .04);
  --rp-shadow: 0 6px 20px rgba(15, 32, 56, .08);
  --rp-container: 1240px;
  --rp-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --rp-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--rp-sans);
  color: var(--rp-text);
  background: var(--rp-bg);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rp-blue-500); text-decoration: none; transition: color .15s ease, opacity .15s ease; }
a:hover { color: var(--rp-navy-700); }
h1, h2, h3, h4 { color: var(--rp-ink); line-height: 1.4; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.rp-container { width: min(100% - 40px, var(--rp-container)); margin-inline: auto; }
.rp-br-sp { display: none; }
.rp-br-pc { display: inline; }
.rp-section { padding: 60px 0; }
.rp-section--soft { background: var(--rp-bg-soft); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.rp-btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative; gap: .6em;
  padding: 14px 38px; border-radius: 4px; font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.rp-btn--primary { background: var(--rp-navy-800); color: #fff; }
.rp-btn--primary:hover { background: var(--rp-navy-700); color: #fff; }
.rp-btn--outline { background: #fff; color: var(--rp-navy-800); border-color: var(--rp-navy-800); }
.rp-btn--outline:hover { background: var(--rp-navy-800); color: #fff; }
.rp-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.rp-btn--ghost:hover { background: #fff; color: var(--rp-navy-800); }
.rp-btn--blue { background: var(--rp-blue-500); color: #fff; border-color: var(--rp-blue-500); }
.rp-btn--blue:hover { background: var(--rp-blue-400); border-color: var(--rp-blue-400); color: #fff; }
.rp-btn--white { background: #fff; color: var(--rp-navy-800); border-color: #fff; }
.rp-btn--white:hover { background: rgba(255,255,255,.88); color: var(--rp-navy-800); }
.rp-btn__arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Header
   ========================================================================== */
.rp-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rp-line);
}
.rp-header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.rp-logo { display: flex; align-items: center; gap: 12px; }
.rp-logo__img { height: 52px; width: auto; display: block; }
.rp-footer .rp-logo__img { height: 48px; }
.rp-logo__mark {
  width: 42px; height: 42px; border-radius: 5px; background: var(--rp-navy-800);
  color: #fff; display: grid; place-items: center; font-family: var(--rp-serif);
  font-weight: 700; font-size: 24px; line-height: 1;
}
.rp-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.rp-logo__name { font-family: var(--rp-serif); font-size: 20px; font-weight: 700; color: var(--rp-ink); letter-spacing: .02em; }
.rp-logo__tag { font-size: 10px; color: var(--rp-muted); letter-spacing: .04em; }
.rp-nav { display: flex; align-items: center; gap: 26px; }
.rp-nav ul, .rp-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.rp-nav a { color: var(--rp-ink); font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.rp-nav a:hover { color: var(--rp-blue-500); }
.rp-nav__cta { }
.rp-navtoggle { display: none; background: none; border: 0; cursor: pointer; }

/* ==========================================================================
   Hero
   ========================================================================== */
.rp-hero { padding: 66px 0 54px; overflow: hidden; }
.rp-hero__grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 40px; align-items: center; }
.rp-hero__title { font-family: var(--rp-serif); font-weight: 700; font-size: clamp(27px, 3.1vw, 42px); color: var(--rp-navy-800); line-height: 1.5; letter-spacing: .02em; margin-bottom: .5em; }
.rp-hero__line { display: block; white-space: nowrap; }
@media (max-width: 720px) { .rp-hero__title { font-size: min(calc((100vw - 32px) / 13), 32px); letter-spacing: 0; } .rp-hero__line { white-space: normal; } }
.rp-hero__lead { color: var(--rp-text); font-size: 15px; max-width: 36em; }
.rp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.rp-hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }
.rp-hero__map { display: block; width: 108%; max-width: none; height: auto; }

/* ==========================================================================
   Feature cards (2 up)
   ========================================================================== */
.rp-features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
.rp-feature {
  display: flex; align-items: center; gap: 22px; padding: 28px 32px;
  border: 1px solid var(--rp-line); border-radius: var(--rp-radius-lg); background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}
.rp-feature:hover { box-shadow: var(--rp-shadow); transform: translateY(-2px); }
.rp-feature__icon { flex: none; width: 48px; color: var(--rp-navy-700); display: grid; place-items: center; }
.rp-feature__icon svg { width: 42px; height: 42px; }
.rp-feature__body h3 { margin: 0 0 5px; font-size: 20px; font-family: var(--rp-serif); font-weight: 700; }
.rp-feature__body p { margin: 0; font-size: 13px; color: var(--rp-muted); }
.rp-feature__arrow { margin-left: auto; color: var(--rp-navy-700); font-size: 34px; line-height: 1; }

/* Thumbnail fallback (no featured image available) */
.rp-thumb-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rp-navy-700), var(--rp-navy-900));
  color: rgba(255,255,255,.85); font-family: var(--rp-serif); font-size: 1.8em;
}

/* ==========================================================================
   Section headings
   ========================================================================== */
.rp-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.rp-heading__title { font-size: 22px; position: relative; padding-left: 14px; font-family: var(--rp-serif); font-weight: 700; }
.rp-heading__title::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 2px; background: var(--rp-navy-800); }
.rp-heading__more { font-size: 13px; color: var(--rp-muted); font-weight: 500; }
.rp-heading__more:hover { color: var(--rp-blue-500); }

/* ==========================================================================
   Main layout (content + sidebar)
   ========================================================================== */
.rp-main-grid { display: grid; grid-template-columns: 1fr 348px; gap: 44px; }

/* Tags */
.rp-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--rp-navy-700); padding: 3px 10px; border-radius: 3px; }
.rp-tag--alt { background: var(--rp-blue-500); }
.rp-date { font-size: 12px; color: var(--rp-muted); }

/* Content section panel (大枠) */
.rp-panel { border: 1px solid var(--rp-line); background: #fff; padding: 26px 28px; margin-bottom: 26px; }
.rp-panel:last-child { margin-bottom: 0; }
.rp-panel > .rp-heading { margin-bottom: 18px; }

/* News list — 2 columns x 3 rows. Cards stack the thumb above the text so the
   title still has room to breathe at half width. */
.rp-newslist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
/* The thumb stretches to the row height so its bottom edge lines up with the
   last line of the title instead of floating above it. */
.rp-newsitem { display: grid; grid-template-columns: 124px 1fr; gap: 14px; align-items: stretch; }
.rp-newsitem__thumb { position: relative; display: block; height: 100%; min-height: 78px; border-radius: var(--rp-radius); overflow: hidden; background: var(--rp-bg-soft); }
/* Absolute so a tall/square source image can't push the row height out — the
   text column decides how tall the row is, the thumb just fills it. */
.rp-newsitem__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.rp-newsitem:hover .rp-newsitem__thumb img { transform: scale(1.04); }
.rp-newsitem__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rp-newsitem__meta .rp-tag { font-size: 9.5px; padding: 1px 6px; }
.rp-newsitem__meta .rp-date { font-size: 10.5px; }
.rp-newsitem__title { font-size: 13px; margin: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rp-newsitem__title a { color: var(--rp-ink); }
.rp-newsitem__title a:hover { color: var(--rp-blue-500); }
/* Half-width rows have no room for a summary — the title carries the item. */
.rp-newsitem__excerpt { display: none; }

/* Card grid (3 up) */
.rp-cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rp-card { border: 1px solid var(--rp-line); border-radius: var(--rp-radius-lg); overflow: hidden; background: #fff; transition: box-shadow .18s ease, transform .18s ease; }
.rp-card:hover { box-shadow: var(--rp-shadow); transform: translateY(-2px); }
.rp-card__thumb { aspect-ratio: 16 / 10; background: var(--rp-bg-soft); overflow: hidden; }
.rp-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-card__body { padding: 14px 16px 18px; }
.rp-card__title { font-size: 14.5px; margin: 8px 0 8px; line-height: 1.6; }
.rp-card__title a { color: var(--rp-ink); }
.rp-card__date { font-size: 11.5px; color: var(--rp-muted); }

/* Work list (ラジオ局の取り組み) — horizontal mini-cards, 3 up */
.rp-worklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rp-work { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: start; }
.rp-work__thumb { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--rp-bg-soft); }
.rp-work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-work__body .rp-tag { font-size: 10px; padding: 2px 8px; }
.rp-work__title { font-size: 13px; line-height: 1.55; margin: 7px 0 5px; }
.rp-work__title a { color: var(--rp-ink); }
.rp-work__title a:hover { color: var(--rp-blue-500); }
.rp-work__meta { font-size: 11px; color: var(--rp-muted); }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.rp-side { display: grid; gap: 24px; align-content: start; }
.rp-side .rp-panel { padding: 20px 22px; margin-bottom: 0; }
.rp-side .rp-panel .rp-catbox { border: none; padding: 0; }
.rp-side__title { font-size: 18px; margin-bottom: 14px; font-family: var(--rp-serif); font-weight: 700; }
.rp-featured { display: grid; gap: 14px; }
.rp-featured__item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.rp-featured__thumb { aspect-ratio: 1/1; border-radius: 6px; overflow: hidden; background: var(--rp-bg-soft); }
.rp-featured__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-featured__title { font-size: 13px; line-height: 1.55; margin: 0 0 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-featured__title a { color: var(--rp-ink); }
.rp-featured__date { font-size: 11px; color: var(--rp-muted); }

/* Ranking */
.rp-rank { display: grid; gap: 16px; }
.rp-rank__item { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.rp-rank__medal { width: 28px; }
.rp-rank__medal svg { width: 26px; height: 26px; }
.rp-rank__item:nth-child(1) .rp-rank__medal { color: #d4af37; }
.rp-rank__item:nth-child(2) .rp-rank__medal { color: #a8b0ba; }
.rp-rank__item:nth-child(3) .rp-rank__medal { color: #c08552; }
.rp-rank__title { font-size: 13.5px; line-height: 1.55; margin: 0 0 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp-rank__title a { color: var(--rp-ink); }
.rp-rank__date { font-size: 11px; color: var(--rp-muted); }

/* Category list */
.rp-catbox { border: 1px solid var(--rp-line); border-radius: var(--rp-radius-lg); padding: 20px; }
.rp-catlist { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.rp-catlist a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--rp-line-2); color: var(--rp-ink); font-size: 13.5px; }
.rp-catlist a span { color: var(--rp-muted); font-size: 12px; }
.rp-catlist__all { display: block; text-align: right; margin-top: 12px; font-size: 12.5px; color: var(--rp-muted); }
.rp-catlist__all:hover { color: var(--rp-blue-500); }

/* About box */
.rp-about { background: var(--rp-navy-800); color: #fff; border-radius: var(--rp-radius-lg); padding: 26px; }
.rp-about h3 { color: #fff; font-size: 17px; }
.rp-about p { color: rgba(255,255,255,.82); font-size: 13px; }
.rp-about .rp-btn { width: 100%; justify-content: center; margin-top: 8px; }
.rp-about .rp-btn__arrow { font-size: 1.5em; line-height: 1; }

/* ==========================================================================
   Program band + Stats
   ========================================================================== */
.rp-program { position: relative; overflow: hidden; background: linear-gradient(180deg, #f5f9fe 0%, #fefefe 100%); padding: 36px 40px; display: grid; grid-template-columns: 1fr 250px; gap: 30px; align-items: center; }
.rp-program__cta .rp-btn { white-space: nowrap; }
.rp-program__cta .rp-btn__arrow { font-size: 1.5em; line-height: 1; }
.rp-program__content, .rp-program__cta { position: relative; z-index: 1; }
.rp-program__cta { text-align: center; align-self: end; }
.rp-program__skyline { position: absolute; right: 0; bottom: 0; width: 56%; max-width: 700px; height: auto; opacity: 1; z-index: 0; pointer-events: none; }
.rp-program__features { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.rp-program__feature { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.45; color: var(--rp-ink); background: #fff; border: 1px solid var(--rp-line); padding: 14px 20px; }
.rp-ficon { flex: none; display: grid; place-items: center; }
.rp-ficon svg { width: 28px; height: 28px; color: var(--rp-navy-700); }

.rp-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.rp-stat { display: flex; align-items: center; gap: 12px; padding: 6px 22px; border-left: 1px solid var(--rp-line); }
.rp-stat:first-child { border-left: none; padding-left: 0; }
.rp-stat__icon { color: var(--rp-navy-700); flex: none; }
.rp-stat__icon svg { width: 42px; height: 42px; stroke-width: 1.6; }
.rp-stat__label { font-size: 11.5px; color: var(--rp-muted); }
.rp-stat__num { font-family: var(--rp-sans); font-size: 24px; color: var(--rp-navy-800); font-weight: 700; line-height: 1.15; letter-spacing: 0; }
.rp-stat__num small { font-size: 12px; font-weight: 700; margin-left: 1px; }
.rp-stat__note { font-size: 10px; color: var(--rp-muted); margin-top: 1px; }

/* Plain (no accent bar) heading — used for centered section titles */
.rp-heading__title--plain { padding-left: 0; }
.rp-heading__title--plain::before { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.rp-cta-band { background: var(--rp-navy-800); color: #fff; padding: 40px 0; }
.rp-cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rp-cta-band__title { color: #fff; font-family: var(--rp-serif); font-weight: 700; font-size: 27px; margin: 0; letter-spacing: .02em; }
.rp-cta-band__lead { color: rgba(255,255,255,.8); font-size: 13px; margin: 6px 0 0; }
.rp-cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.rp-cta-band__actions .rp-btn { min-width: 235px; }
.rp-cta-band__actions .rp-btn__arrow { font-size: 1.5em; line-height: 1; }

.rp-footer { background: #fff; color: var(--rp-text); padding: 54px 0 26px; border-top: 1px solid var(--rp-line); }
.rp-footer a { color: var(--rp-text); }
.rp-footer a:hover { color: var(--rp-blue-500); }
.rp-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; padding-bottom: 34px; border-bottom: 1px solid var(--rp-line); }
.rp-footer__brandname { font-family: var(--rp-serif); color: var(--rp-ink); font-size: 18px; margin: 12px 0 8px; }
.rp-footer__brand p { font-size: 12px; color: var(--rp-muted); }
.rp-footer__col h4 { color: var(--rp-ink); font-size: 13px; margin-bottom: 12px; }
.rp-footer__col li { margin-bottom: 8px; font-size: 13px; }
.rp-footer__social { display: flex; gap: 12px; margin-top: 16px; }
.rp-footer__social a { width: 34px; height: 34px; border-radius: 50%; background: var(--rp-navy-800); color: #fff; display: grid; place-items: center; }
.rp-footer__social a:hover { background: var(--rp-navy-700); }
.rp-footer__social svg { width: 16px; height: 16px; }
.rp-footer__copy { text-align: center; font-size: 12px; padding-top: 22px; color: var(--rp-muted); }

/* ==========================================================================
   Article (single / page)
   ========================================================================== */
.rp-article { max-width: 760px; margin-inline: auto; padding: 50px 0; }
.rp-article__head { margin-bottom: 30px; }
.rp-article__title { font-size: clamp(24px, 3vw, 32px); font-family: var(--rp-serif); line-height: 1.5; }
.rp-article__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.rp-article__body { font-size: 16px; line-height: 2; }
.rp-article__body h2 { font-size: 24px; margin: 1.6em 0 .7em; padding-left: 14px; border-left: 4px solid var(--rp-navy-800); }
.rp-article__body h3 { font-size: 19px; margin: 1.4em 0 .6em; }
.rp-article__body img { border-radius: var(--rp-radius); margin: 1em 0; }
.rp-article__body a { text-decoration: underline; }
.rp-breadcrumb { font-size: 12px; color: var(--rp-muted); padding: 16px 0; }
.rp-breadcrumb a { color: var(--rp-muted); }

/* Archive header */
.rp-archive-head { background: var(--rp-bg-soft); padding: 40px 0; margin-bottom: 40px; }
.rp-archive-head h1 { font-family: var(--rp-serif); font-size: 28px; margin: 0; }

/* Pagination */
.rp-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.rp-pagination a, .rp-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--rp-line); border-radius: 6px; color: var(--rp-ink); font-size: 14px; }
.rp-pagination .current { background: var(--rp-navy-800); color: #fff; border-color: var(--rp-navy-800); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .rp-hero__grid { grid-template-columns: 1fr; }
  .rp-hero__visual { max-width: 360px; margin-inline: auto; }
  .rp-main-grid { grid-template-columns: 1fr; }
  .rp-program { grid-template-columns: 1fr; }
  .rp-program__cta { text-align: left; align-self: start; margin-top: 18px; }
  .rp-program__skyline { width: 74%; opacity: .5; }
  .rp-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .rp-stat { border-left: none; padding: 6px 4px; }
  .rp-stat:first-child { padding-left: 4px; }
  .rp-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 24px; }
  .rp-footer__brand { grid-column: 1 / -1; margin-bottom: 4px; }
  /* Tablet & below: collapse the horizontal nav into the hamburger.
     The inline nav needs ~842px to clear the logo, so it must switch here
     (not at 720px) to avoid the nav overlapping the logo on tablets. */
  .rp-navtoggle { display: inline-flex; }
  .rp-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--rp-line); border-bottom: 1px solid var(--rp-line); box-shadow: var(--rp-shadow); padding: 6px 20px 14px; }
  .rp-nav.is-open { display: flex; }
  .rp-nav ul, .rp-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .rp-nav a { padding: 13px 2px; border-bottom: 1px solid var(--rp-line-2); }
}
@media (max-width: 720px) {
  .rp-br-sp { display: inline; }
  .rp-br-pc { display: none; }
  .rp-container { width: min(100% - 30px, var(--rp-container)); }
  .rp-hero__lead { font-size: 14px; line-height: 1.85; }
  .rp-features { grid-template-columns: 1fr; }
  .rp-feature { padding: 20px 22px; }
  .rp-cardgrid { grid-template-columns: 1fr; }
  .rp-worklist { grid-template-columns: 1fr; }
  .rp-newslist { grid-template-columns: 1fr; gap: 22px; }
  .rp-panel { padding: 18px 16px; }
  .rp-side .rp-panel { padding: 16px; }
  .rp-program { padding: 28px 22px 40px; }
  .rp-program__skyline { display: block; left: 0; right: auto; width: 170%; max-width: none; bottom: 0; opacity: .5; }
  .rp-catlist { grid-template-columns: 1fr 1fr; }
  .rp-stats { grid-template-columns: 1fr 1fr; gap: 20px 10px; }
  .rp-stat { flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 10px 4px; }
  .rp-stat:last-child { grid-column: 1 / -1; justify-self: center; }
  .rp-stat__num { font-size: 19px; }
  .rp-cta-band__inner { flex-direction: column; text-align: center; align-items: stretch; }
  .rp-cta-band__actions { justify-content: center; }
  .rp-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   旧テーマ（SWELL）で書かれた本文装飾の受け皿
   --------------------------------------------------------------------------
   130件の既存記事は SWELL のエディタ機能でマーカーや文字サイズが付けられており、
   その指定はクラス名として本文に残っている。テーマを入れ替えるとCSSだけが失われ、
   文章はそのままに装飾だけが消える状態になるため、必要な分をここで引き継ぐ。
   値は切替前の本番表示から実測して写したもの（推測値ではない）。
   ========================================================================== */

/* マーカー（蛍光ペン）。下から36%だけを塗る、SWELLと同じ掛かり方にしている。 */
.swl-marker { display: inline; padding: 2px; }
.swl-marker.mark_orange { background-image: linear-gradient(transparent 64%, #ffddbc 0); }
.swl-marker.mark_blue   { background-image: linear-gradient(transparent 64%, #b7e3ff 0); }
.swl-marker.mark_yellow { background-image: linear-gradient(transparent 64%, #fcf69f 0); }
.swl-marker.mark_green  { background-image: linear-gradient(transparent 64%, #bdf9c3 0); }

/* 文字サイズ。em指定なので本文の基準サイズが変わっても比率を保つ。 */
.fs_xs, .has-xs-font-size, .u-fz-xs { font-size: .75em; }
.fs_s, .has-s-font-size, .has-small-font-size, .u-fz-s { font-size: .9em; }
.has-medium-font-size, .u-fz-m { font-size: 1.1em; }
.fs_l, .has-l-font-size, .has-large-font-size, .u-fz-l { font-size: 1.25em; }
.fs_xl, .has-huge-font-size, .has-xl-font-size, .u-fz-xl { font-size: 1.6em; }
.u-fz-10 { font-size: 10px; }
.u-fz-11 { font-size: 11px; }
.u-fz-12 { font-size: 12px; }
.u-fz-13 { font-size: 13px; }
.u-fz-14 { font-size: 14px; }
.u-fz-15 { font-size: 15px; }
.u-fz-16 { font-size: 16px; }
.u-fz-18 { font-size: 18px; }

/* 画像リンクのホバー。旧テーマでは全記事のサムネイルに付いていた。 */
.hov-flash-up { transition: box-shadow .25s; }
.hov-flash-up:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

/* 文字色指定（インライン）。リンク色の上書きを打ち消す挙動を引き継ぐ。 */
.swl-inline-color { --color_link: currentcolor; }

/* ==========================================================================
   記事末のCTA
   --------------------------------------------------------------------------
   旧テーマでは「ブログパーツ」機能で全記事の本文内にバナーを差し込んでいたが、
   これはSWELL固有の機能のため入れ替えで表示されなくなる。同じ役割のものを
   テーマ側で用意し、配色は新デザインに合わせた。リンク先は現行の営業サイト。
   ========================================================================== */
.rp-postcta {
  margin: 44px 0 8px;
  padding: 30px 34px;
  border-radius: var(--rp-radius);
  background: var(--rp-navy-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.rp-postcta__title {
  margin: 0 0 6px;
  font-family: var(--rp-serif);
  font-size: 21px;
  line-height: 1.5;
  color: #fff;
}
.rp-postcta__lead {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .82);
}
.rp-postcta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 767px) {
  .rp-postcta { padding: 24px 20px; flex-direction: column; align-items: stretch; }
  .rp-postcta__title { font-size: 18px; }
  .rp-postcta__actions { justify-content: stretch; }
  .rp-postcta__actions .rp-btn { flex: 1; justify-content: center; }
}
