
/* ===== CSS VARIABLES（共通デザイントークン） ===== */
:root {
  --white: #ffffff;
  --off-white: #f7f8f9;
  --blue-gray-light: #eef1f5;
  --blue-gray: #d4dbe6;
  --charcoal: #2c3340;
  --charcoal-mid: #4a5568;
  --charcoal-light: #6b7a90;
  --clear-blue: #2b7cd3;
  --sky-blue: #a8c8e8;
  --coral: #e07060;
  --apricot: #f0a878;
  --green: #4a8c70;
  --green-light: #6aaa88;
  --font-ja: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --font-en: 'Georgia', 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --max-width: 1160px;
  --header-height: 84px;
  --text-max: 740px;
  /* 研修ページ識別色（控えめなアプリコット／コーラル）*/
  --apricot-deep: #D9855C;
  --apricot-bg: #F6E8DE;
  --apricot-border: #e8c4a8;
  --sage-light: #EEF4F1;
  --sage-mid: #C9D9D1;
  --warm-bg: #FFF8F3;
  --border-warm: #DCE3DF;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ja);
  color: var(--charcoal);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #448167;
  color: white;
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: 4px;
  font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }
.sc-page-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  font-size: 1.125rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.18s, color 0.18s;
}
.sc-page-top:hover,
.sc-page-top:focus-visible {
  background: var(--green);
  color: var(--white);
}
@media (max-width: 767px) {
  .sc-page-top { right: 14px; bottom: 14px; }
}

/* ===== SR-ONLY ===== */
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blue-gray);
  z-index: 100;
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ===== HEADER NAV ===== */
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
}


/* Secondary nav */
.header-nav-secondary {
  display: flex;
  align-items: center;
  gap: 0;
}
.header-nav-secondary a,
.header-nav-secondary button,
.header-nav-secondary .header-contact-link {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  height: var(--header-height);
  font-size: 0.8125rem;
  color: var(--charcoal-mid);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-ja);
}
.header-nav-secondary a:hover,
.header-nav-secondary button:hover {
  color: var(--charcoal);
  border-bottom-color: var(--green);
}
.header-search-btn {
  padding: 0 0.875rem !important;
  width: auto;
  min-width: 44px;
  gap: 6px;
}
.header-search-btn-label {
  white-space: nowrap;
}

/* ===== お問い合わせ：正式URL確定までの非リンク状態 =====
   見た目はCTAのまま維持しつつ、実体はリンクを持たないspan要素にする。
   正式URL確定後は、この要素をa要素へ差し替えるだけで有効なリンクになる。 */
.header-contact-link.is-disabled,
.footer-contact-link.is-disabled,
.btn-outline.is-disabled {
  cursor: default;
  pointer-events: none;
}
.header-contact-link.is-disabled,
.footer-contact-link.is-disabled {
  color: var(--charcoal-light) !important;
  border-bottom-color: transparent !important;
}
.btn-outline.is-disabled {
  opacity: 0.55;
}

/* 現在地表示：色だけでなく下線・太字を併用 */
.header-nav-secondary a[aria-current="page"] {
  color: var(--charcoal);
  font-weight: 600;
  border-bottom-color: var(--green);
}

/* ===== 新着情報ナビ（PC）：シンプルなCTAボタン ===== */
.header-nav-secondary a.nav-news {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin: 0 12px 0 4px;
  padding: 0 16px;
  background: #326d5a;
  border: 1px solid #326d5a;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}
.header-nav-secondary a.nav-news .nav-news-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-nav-secondary a.nav-news:hover,
.header-nav-secondary a.nav-news:focus-visible {
  background: #285a4a;
  border-color: #285a4a;
  color: #ffffff;
}
.header-nav-secondary a.nav-news[aria-current="page"] {
  background: #326d5a;
  border-color: #326d5a;
  color: #ffffff;
}

/* ===== SP：ヘッダー右側のアクション群（新着ショートカット＋ハンバーガー） ===== */
.header-sp-actions {
  display: none;
  align-items: center;
  gap: 8px;
}
.header-news-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 0.9rem;
  background: #326d5a;
  border: 1px solid #326d5a;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.header-news-shortcut .nav-news-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-news-shortcut:hover,
.header-news-shortcut:focus-visible {
  background: #285a4a;
  border-color: #285a4a;
}
@media (max-width: 359px) {
  .news-shortcut-full { display: none; }
  .news-shortcut-short { display: inline; }
}
@media (min-width: 360px) {
  .news-shortcut-short { display: none; }
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
}
.hamburger__icon span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--green);
  transition: transform 0.25s;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--blue-gray);
  z-index: 99;
  padding: 0;
}
.mobile-nav.open { display: block; }
/* Secondary links in mobile nav: 編集的なサイト案内リスト */
.mobile-nav-guide-head {
  padding: 4px 4px 20px;
  border-bottom: 2px solid var(--green);
  margin-bottom: 4px;
}
.mobile-nav-guide-en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #326D5A;
  margin: 0 0 6px;
}
.mobile-nav-guide-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2C3340;
  margin: 0 0 10px;
  line-height: 1.4;
}
.mobile-nav-guide-desc {
  font-size: 0.8125rem;
  color: #4A5568;
  line-height: 1.7;
  margin: 0;
}
.mobile-nav-secondary {
  display: flex;
  flex-direction: column;
}
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 4px;
  border-bottom: 1px solid var(--blue-gray-light);
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.mobile-nav-item:last-of-type { border-bottom: none; }

.mobile-nav-item__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-item__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.4;
}
.mobile-nav-item__en {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5C6B82;
}
.mobile-nav-item__desc {
  font-size: 0.8125rem;
  color: var(--charcoal-mid);
  line-height: 1.5;
}
.mobile-nav-item__arrow {
  flex: 0 0 auto;
  font-size: 1.125rem;
  color: #5C6B82;
  transition: transform 0.18s, color 0.18s;
}
.mobile-nav-item:hover,
.mobile-nav-item:focus-visible {
  background: var(--off-white);
}
.mobile-nav-item:hover .mobile-nav-item__arrow,
.mobile-nav-item:focus-visible .mobile-nav-item__arrow {
  transform: translateX(3px);
  color: var(--green);
}
.mobile-nav-item[aria-current="page"] {
  background: var(--off-white);
}
.mobile-nav-item[aria-current="page"] .mobile-nav-item__title {
  color: #326D5A;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
}
.search-overlay.open { display: flex; }
.search-box {
  background: white;
  padding: var(--space-lg);
  width: min(560px, 90vw);
  border-radius: 6px;
}
.search-box label {
  display: block;
  font-size: 0.875rem;
  color: #5C6B82;
  margin-bottom: 0.5rem;
}
.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--blue-gray);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-ja);
}
.search-box input:focus-visible { border-color: var(--clear-blue); outline: 2px solid var(--green); outline-offset: 2px; }
.search-close {
  display: block;
  margin-top: var(--space-sm);
  color: #5C6B82;
  font-size: 0.875rem;
  background: none;
  border: none;
  padding: 0.5rem 0;
  cursor: pointer;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #F5F7F6;
  color: #4A5568;
  padding: 32px 0;
  border-top: 1px solid #D8E0DC;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 0;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.footer-dcnet {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #5C6B82;
}
.footer-dcnet-link {
  color: inherit;
  text-decoration: none;
}
.footer-dcnet-line {
  display: block;
}
.footer-dcnet-link:hover,
.footer-dcnet-link:focus-visible {
  color: #326D5A;
}
.footer-logo-link {
  display: inline-block;
  width: 100%;
  max-width: 220px;
}
.footer-logo-image {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  object-position: left top;
}
.footer-logo-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 2px;
}
.footer-nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2C3340;
  margin: 0 0 0.875rem;
  line-height: 1.4;
}
.footer-nav-group li { margin-bottom: 0.125rem; }
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 500;
  color: #4A5568;
  text-decoration: none;
  transition: color 0.18s;
}
a.footer-link:hover { color: #326D5A; }
a.footer-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}
.footer-link[aria-current="page"] {
  color: #2C3340;
  font-weight: 700;
}
.footer-link.is-pending {
  cursor: default;
  pointer-events: none;
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #D8E0DC;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-legal .footer-link {
  font-size: 0.9375rem;
  font-weight: 600;
}
.footer-copyright {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #326D5A;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .site-footer { padding: 52px 0; }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 36px;
  }
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .footer-legal {
    flex-direction: row;
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .footer-main {
    grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
    column-gap: 56px;
    row-gap: 0;
  }
}

/* ===== SHARED COMPONENTS ===== */
.section-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A15B30;
  font-family: var(--font-ui), sans-serif;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.rp-chapter-group--alt .section-label {
  color: #2D77B4;
}
.section-label::after {
  content: '';
  display: block;
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: #C8D2CC;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 0.9375rem;
  font-family: var(--font-ja);
  font-weight: 600;
  min-height: 44px;
  transition: background 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover { background: #326D5A; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--blue-gray);
  border-radius: 3px;
  font-size: 0.9375rem;
  font-family: var(--font-ja);
  min-height: 44px;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--clear-blue); color: var(--clear-blue); }
/* 追加修正：「認知症介護基礎研修eラーニング」CTAのみのデザイン強化。
   このリンク専用クラスとして新規追加し、.btn-outline本体・他のCTAへは影響させない。 */
.rp-elearning-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  min-height: 52px;
  background: #326D5A;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-ja);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.rp-elearning-cta-arrow {
  transition: transform 0.2s;
}
.rp-elearning-cta:hover {
  background: #285A4A;
}
.rp-elearning-cta:hover .rp-elearning-cta-arrow {
  transform: translateX(3px);
}
.rp-elearning-cta:focus-visible {
  outline: 3px solid #326D5A;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .rp-elearning-cta {
    width: 100%;
    justify-content: center;
  }
}
.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 0.9375rem;
  font-family: var(--font-ja);
  font-weight: 600;
  min-height: 44px;
  transition: background 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.btn-green:hover { background: #326D5A; }

/* ===========================
   TRAINING PAGE — PAGE-LEVEL STYLES
   =========================== */

/* === 3．ページイントロ — ヒーロー：写真×色面の非対称2カラム構成（プロトタイプ） === */
.rp-intro {
  background: transparent;
  border-bottom: none;
}
.rp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 620px);
  min-height: 460px;
  overflow: hidden;
}

.rp-hero-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}
.rp-intro-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .rp-intro-image {
    object-position: 58% center;
  }
}
/* 文字は写真の上ではなく色面（既存ブランドグリーン #326D5A）の上に置き、
   写真の明暗に依存せず常に十分なコントラストを確保する */
.rp-hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  background: #326D5A;
}
.rp-hero-panel-inner {
  width: 100%;
  padding: var(--space-xl) var(--space-lg) var(--space-xl) var(--space-md);
}
.rp-intro-label {
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #ffffff;
  font-family: var(--font-ui), sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.rp-intro-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}
.rp-intro h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
/* ページ固有の識別色（アプリコット）を細いルールとして一箇所だけ使用 */
.rp-hero-rule {
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--apricot-deep);
  margin-bottom: 1.5rem;
}
.rp-intro-copy {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  color: #ffffff;
  line-height: 1.7;
  font-weight: 500;
}


/* リード文・注記の補足領域（Heroの色面から静かに着地させるためsage-lightの淡色を敷く） */
.rp-intro-sub {
  background: var(--sage-light);
  border-bottom: 1px solid var(--blue-gray);
  padding: var(--space-md) 0;
}
.rp-intro-sub-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.rp-intro-lead {
  font-size: 0.9375rem;
  color: var(--charcoal-mid);
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 0.625rem;
  /* R8.9.11修正依頼P9：research.htmlの.rp-intro-leadにのみ左の縦ラインがあり、
     training/instructorには無く不統一との指摘。research.html本来の実装
     （padding-left:22px; border-left:3px solid <ページ固有色>）を基準として
     太さ・余白・役割を統一。色のみ、本ページで既に採用中のアクセント色
     var(--apricot-deep)（.rp-training-info-title等で既に3px使用中）に
     合わせており、新規の色は追加していない。 */
  padding-left: 22px;
  border-left: 3px solid var(--apricot-deep);
}
/* === パンくずリスト === */
.rp-breadcrumb-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--blue-gray-light);
  padding-top: var(--header-height);
}
.rp-breadcrumb {
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem var(--space-md);
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.8125rem;
  color: var(--charcoal-light);
  flex-wrap: wrap;
}
.rp-breadcrumb a {
  color: #1E6ABF;
  text-decoration: none;
  transition: color 0.18s;
}
.rp-breadcrumb a:hover { color: #1e6abf; }
.rp-breadcrumb-sep { color: var(--charcoal-light); }
.rp-breadcrumb > li + li::before {
  content: "›";
  margin: 0 0.5rem;
  color: var(--charcoal-light);
}
.rp-breadcrumb [aria-current="page"] { color: var(--charcoal); font-weight: 500; }

/* === 5．ページ内案内 === */
.rp-nav-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--blue-gray);
  padding: var(--space-md) 0;
}
.rp-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
/* R8.9.11-03修正：4ページ（sendai-center／research／training／instructor）共通のページ内ナビ
   デザイン統一。「このページの内容」見出しを、目立たない小さいラベルから、濃いベタ背景
   （#326D5A、既存ブランド色var(--text-brand)/var(--brand-strong)と同一）×白文字・太字の
   見出しバッジへ変更し「ここからページ内を選べる」ことを一目で示す。ページ固有のアプリコット
   系hover配色は、4ページ共通デザインルール統一のため本コンポーネントのみ廃止した。 */
.rp-nav-title {
  display: inline-block;
  background: #326D5A;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  padding: 0.625rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.rp-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
/* ページ内リンクは白背景＋濃い枠線・濃い文字色で「押せる」ことを明確化。
   hover/focus時は背景を見出しと同じ#326D5Aで塗りつぶし、白文字へ反転させることで、
   見出しバッジと視覚的に統一されたアクション表現にした。 */
.rp-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.125rem;
  background: var(--white);
  border: 2px solid #326D5A;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  min-height: 44px;
  white-space: nowrap;
}
.rp-nav-item:hover,
.rp-nav-item:focus-visible {
  border-color: #326D5A;
  color: #FFFFFF;
  background: #326D5A;
}
.rp-nav-item:focus-visible {
  outline: 2px solid #326D5A;
  outline-offset: 2px;
}
.rp-nav-item::after {
  content: '↓';
  font-size: 0.75rem;
  color: var(--charcoal);
  transition: color 0.18s;
}
.rp-nav-item:hover::after,
.rp-nav-item:focus-visible::after {
  color: #FFFFFF;
}

/* === 章バナー === */
.rp-chapter {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.rp-chapter-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  background: transparent;
  color: #2C3340;
}
/* 「01」等の連番は削除。番号背景に使われていたアクセントカラー（#2E7AB8）は
   小さなラベルにはせず、主要セクションの開始を示す明確な色面として再設計する。
   コンテンツ幅の約48%・高さのある矩形とし、単純な横長ボタンに見えないよう
   テキストは面の左下に寄せて配置する */
.rp-chapter-band {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 48%;
  min-height: 190px;
  padding: 32px 36px 26px;
  background: #2E7AB8;
  border-radius: 2px;
  box-sizing: border-box;
}
.rp-chapter-group--alt .rp-chapter-band {
  background: #2E7AB8;
}
.rp-chapter-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  line-height: 1.4;
}
.rp-chapter-group { background: var(--white); }
.rp-chapter-group--alt { background: #F6FAFE; }
.rp-chapter-group--sage { background: var(--sage-light); }
.rp-chapter-group .rp-section { background: inherit; }
@media (max-width: 767px) {
  .rp-chapter-banner {
    gap: 14px;
    padding: 0;
  }
  .rp-chapter-band {
    width: 100%;
    min-height: 148px;
    padding: 24px 26px 22px;
  }
  .rp-chapter-title {
    font-size: 1.5rem;
  }
  .rp-section-head {
    margin-bottom: 30px;
  }
}

/* === セクション共通 === */
.rp-section {
  padding: var(--space-xl) 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.rp-section:last-of-type { border-bottom: none; }
/* 章見出し直後のセクションは、十分な縦余白を確保する */
.rp-chapter + .rp-section {
  padding-top: 80px;
}
/* ===== FINAL: 章見出し上部の余白 ===== */
main > .rp-chapter-group {
  margin-top: 0;
  padding-top: 72px;
}
/* ページ内目次直後の最初の章 */
.rp-nav-wrap + .rp-chapter-group {
  padding-top: 56px;
}
@media (max-width: 767px) {
  main > .rp-chapter-group {
    padding-top: 48px;
  }
  .rp-nav-wrap + .rp-chapter-group {
    padding-top: 40px;
  }
  /* 青色面「研修を知る」の直後（見出しパネルまで）の縦余白をSPのみ詰める。
     ここは「.rp-chapter + .rp-section { padding-top: 80px }」より後ろに置くことで、
     同じ詳細度でも767px以下では確実にこちらが優先されるようにする */
  .rp-chapter + .rp-section {
    padding-top: 38px;
  }
}
.rp-section-head { margin-bottom: 40px; }
.rp-section-head h2 {
  position: relative;
  padding-left: 22px;
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  color: #1F2933;
  line-height: 1.4;
  margin-top: 10px;
}
.rp-section-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 6px;
  height: 1.4em;
  background: #E58C47;
  border-radius: 1px;
}
.rp-chapter-group--alt .rp-section-head h2::before {
  background: #2E7AB8;
}
.rp-section-lead {
  margin-top: 24px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #4A5568;
  line-height: 1.85;
  max-width: var(--text-max);
}

/* === プロトタイプ強化：最初の主要セクション見出し（#sec-what）のみを対象 ===
   他のセクション（#sec-shidousha-training 等）・直後の本文/写真には影響させない。
   色面（青）に対して見出しパネル（白地）を右下へずらして重ね、
   「研修を知る」→「仙台センターの研修とは」を1つの見出しコンポジションにする。
   強さは面積で作るため、h2の左線は太くせず既定の細さのまま、
   色はアプリコット（補助アクセント）に統一する */
#sec-what .rp-section-head {
  position: relative;
  margin-top: -132px;
  margin-left: 22%;
  background: var(--white);
  padding: 40px 0 0 40px;
}
#sec-what .rp-section-head h2 {
  font-size: clamp(2.125rem, 3.8vw, 2.625rem);
}
#sec-what .rp-section-head h2::before {
  background: var(--apricot-deep);
}
/* 「仙台センターの／研修とは」の改行はSPのみ意味のまとまりで強制する。PCでは無効化 */
#sec-what .rp-section-head h2 .sec-what-h2-break {
  display: none;
}
/* SPでは色面と見出しパネルを重ねず、色面→見出し→本文の順に素直に積む
   （このルールは上の無条件指定より後ろに置くことで、同じ詳細度でも
   767px以下では確実にこちらが優先されるようにする） */
@media (max-width: 767px) {
  #sec-what .rp-section-head {
    margin-top: 0;
    margin-left: 0;
    padding: 0;
    background: transparent;
  }
  #sec-what .rp-section-head h2 .sec-what-h2-break {
    display: inline;
  }
}

/* === 本文エリア === */
.rp-prose { max-width: var(--text-max); }
.rp-prose p {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--charcoal-mid);
  margin-bottom: 1.25rem;
}
.rp-prose p:last-child { margin-bottom: 0; }
.rp-prose h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 1.75rem 0 0.5rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--apricot-deep);
}
.rp-prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.rp-prose ul li {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--charcoal-mid);
  margin-bottom: 0.375rem;
}

/* 通常本文の幅を章見出し帯と同じ .section-wrap 内側幅へ揃える。
   .section-wrap の直下にある場合だけを対象にし、
   写真と並ぶ2カラム内（.training-visual-text 配下）の本文は対象外とする。 */
.section-wrap > .rp-prose,
.rp-section-head > .rp-section-lead {
  width: 100%;
  max-width: none;
}

/* === 研修プログラム説明（養成研修／フォローアップ研修／基礎研修）共通 === */
.rp-training-info {
  margin-top: var(--space-lg);
}
.rp-training-info-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--apricot-deep);
}
/* 情報階層の中で「対象者」だけを一段強い見出しプレートにする（対象：指導者養成研修／フォローアップ研修）。
   背景は白文字とのコントラストがWCAG AAを満たす#A15B30を使用する。
   apricot-deep（#D9855C）は白文字だと約2.8:1でAA基準（4.5:1）を満たさないため、
   同じオレンジ系ファミリー内でこのページ自身が既に使用している#A15B30
   （section-labelの文字色）を採用し、新しい色の追加は行っていない。
   角丸は最小限、影・ホバー演出なしでボタンに見えないようにする */
.rp-training-info-title--lead {
  display: inline-block;
  width: 188px;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.875rem;
  padding: 12px 20px;
  border-left: none;
  background: #A15B30;
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  border-radius: 2px;
}
@media (max-width: 767px) {
  .rp-training-info-title--lead {
    width: 160px;
    padding: 10px 16px;
    font-size: 1rem;
  }
}
/* 「対象地域」「実施期間・回数」「受講方法」「カリキュラムについて」は対象者より一段弱く、
   既存の左アクセント線を少し太くし、淡いオレンジ背景を添える程度に留める */
.rp-training-info-title--accent {
  border-left: 5px solid var(--apricot-deep);
  background: var(--apricot-bg);
  padding: 0.375rem 0.75rem 0.375rem 0.875rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
  border-radius: 0 2px 2px 0;
}
.rp-training-info-text {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--charcoal-mid);
}
/* R8.9.28追加修正：フォローアップ研修の「対象地域」「実施期間・回数」「受講方法」は養成研修と同様、
   という一文が通常本文に埋もれていたため、重要案内ボックスへ変更。新しい色は追加せず、このページで
   既に「重要なお知らせ」用に使用しているapricot系配色（--apricot-deep/--apricot-bg、
   .rp-training-info-title--accent等）をそのまま流用している。文字色は#5C3113とし、
   背景var(--apricot-bg)に対してコントラスト比約9.2:1（WCAG AA基準4.5:1を十分に満たす）。
   影・グラデーション・ホバー演出・点滅は付けず、ボタンには見せていない。 */
.rp-training-info-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  background: var(--apricot-bg);
  border-left: 5px solid var(--apricot-deep);
  border-radius: 0 4px 4px 0;
}
.rp-training-info-highlight-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.15em;
  color: var(--apricot-deep);
}
.rp-training-info-highlight-text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #5C3113;
  line-height: 1.8;
}
@media (max-width: 767px) {
  .rp-training-info-highlight {
    padding: 0.875rem 1rem;
    gap: 0.5rem;
  }
  .rp-training-info-highlight-text {
    font-size: 0.875rem;
  }
}
.rp-region-list p {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--charcoal-mid);
  margin-bottom: 0.5rem;
}
.rp-region-list p:last-child { margin-bottom: 0; }
.rp-region-list strong {
  color: var(--charcoal);
  font-weight: 700;
  margin-right: 0.25em;
}
/* R8.9.11修正依頼P12/P13：「対象地域」のテキスト一覧を、添付の地図画像に差し替え。
   画像は加工（再描画・色変更等）せず原本のまま使用し、object-fit:containで
   トリミングなく全体を表示する。幅は本文と同じ--text-maxで揃える。 */
.rp-region-map {
  margin: 0;
  max-width: var(--text-max);
}
.rp-region-map img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border-warm);
  border-radius: 4px;
}
/* R8.9.11修正依頼P12：指導者紹介動画。ネイティブ<video>、controls必須、autoplay/強制muted
   なし、再エンコードなし。16:9を維持しつつレスポンシブに縮小する。 */
.rp-instructor-video-wrap {
  margin: 1.75rem 0 0;
  max-width: var(--text-max);
}
.rp-instructor-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #000;
}
.rp-training-target-list {
  list-style: none;
  counter-reset: target-item;
  padding: 0;
  margin: 0;
}
.rp-training-target-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--charcoal-mid);
  margin-bottom: 0.625rem;
}
.rp-training-target-list li:last-child { margin-bottom: 0; }
/* === 対象者リスト（①〜⑤／②配下（ア）（イ）（ウ）） === */
.rp-target-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rp-target-list > li {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--charcoal-mid);
  margin-bottom: 0.875rem;
}
.rp-target-list > li:last-child { margin-bottom: 0; }
.rp-target-sublist {
  list-style: none;
  padding: 0;
  margin: 0.625rem 0 0;
}
.rp-target-sublist li {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--charcoal-mid);
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}
.rp-target-sublist li:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .rp-target-sublist li {
    padding-left: 1.25rem;
  }
}
.rp-training-target-list li::before {
  counter-increment: target-item;
  content: counter(target-item);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--sage-light);
  color: #326D5A;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rp-training-note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--charcoal-light);
  padding: 0.875rem var(--space-md);
  background: var(--off-white);
  border-left: 3px solid var(--blue-gray);
  border-radius: 2px;
  max-width: var(--text-max);
}

/* === カリキュラム表（開閉UI） === */
.rp-curriculum-details {
  margin-top: var(--space-md);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  background: var(--white);
}
.rp-curriculum-details + .rp-curriculum-details { margin-top: var(--space-sm); }
.rp-curriculum-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.875rem var(--space-md);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FFFFFF;
  background: #326D5A;
  border: 1px solid #326D5A;
  border-radius: 3px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.rp-curriculum-details[open] .rp-curriculum-summary { border-radius: 3px 3px 0 0; }
.rp-curriculum-summary:hover {
  background: #285a4a;
  border-color: #285a4a;
}
.rp-curriculum-summary::-webkit-details-marker { display: none; }
.rp-curriculum-summary::before {
  content: '▸';
  display: inline-block;
  font-size: 0.8em;
  color: #FFFFFF;
  transition: transform 0.18s;
}
.rp-curriculum-details[open] .rp-curriculum-summary::before {
  transform: rotate(90deg);
}
/* R8-0829-11：塗り背景CTA化に伴い、フォーカスリングは緑地の内側(旧: outline-offset:-2px)
   ではコントラスト比が約1.5:1まで低下し視認困難になるため、外側に描画するサイト共通の
   :focus-visible（outline:2px solid var(--green); outline-offset:3px）にそのまま委ね、
   個別指定は削除した（白背景に対しては約4:1を確保）。 */
.rp-curriculum-body {
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid var(--border-warm);
  padding-top: var(--space-md);
}
.rp-curriculum-note {
  font-size: 0.8125rem;
  color: #5C6B82;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}
.rp-table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-md);
}
.rp-table-scroll:last-child { margin-bottom: 0; }
.rp-table-scroll:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.rp-curriculum-table {
  width: 100%;
  min-width: 960px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.rp-curriculum-table caption {
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.625rem;
  caption-side: top;
}
.rp-curriculum-col-day { width: 12%; }
.rp-curriculum-col-time { width: 12%; }
.rp-curriculum-col-subject { width: 30%; }
.rp-curriculum-col-summary { width: 46%; }
.rp-curriculum-table th,
.rp-curriculum-table td {
  /* R8.9.11修正依頼P10：罫線がvar(--border-warm)（#DCE3DF）で白背景とのコントラスト比が
     約1.15:1しかなく「枠線・罫線のカラーコントラスト比足りていません」との指摘（対象は
     このページ内の全カリキュラム表：養成研修1〜2週目／9週目／職場実習受講日／
     フォローアップ研修ブレンド型／オンライン型の計5表。いずれも本クラスを共有しているため
     この1箇所の変更で全表に反映される）。当初var(--charcoal-light)（#6b7a90）へ変更したが、
     実測すると白背景で約4.36:1・見出しセルの off-white 背景で約4.10:1と、いずれも
     4.5:1をわずかに下回っており、R8.9.11-02でクライアントより再度「枠線のカラー
     コントラスト比足りていません」との指摘があったため、本文文字と同じ
     var(--charcoal-mid)（白背景で約7.53:1、off-white背景で約7.08:1）へさらに強化した。
     新規の色は追加していない。 */
  border: 1px solid var(--charcoal-mid);
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  color: var(--charcoal-mid);
  line-height: 1.7;
  word-break: normal;
  overflow-wrap: anywhere;
}
.rp-curriculum-table thead th {
  background: var(--off-white);
  color: var(--charcoal);
  font-weight: 700;
}
.rp-curriculum-day,
.rp-curriculum-time {
  text-align: center;
  vertical-align: top;
}
.rp-curriculum-day span {
  display: block;
}
.rp-curriculum-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rp-curriculum-table tbody + tbody tr:first-child > * {
  border-top-width: 2px;
  /* R8.9.11修正依頼P10と合わせて調整：日をまたぐ区切り線も同様にコントラスト不足
     （#b9c8c0は白背景で約1.75:1）のため、より濃いvar(--charcoal-mid)へ変更していたが、
     R8.9.11-02でさらに強化し、通常罫線（--charcoal-mid）よりも明確に濃い
     var(--charcoal)（白背景で約12.69:1）へ変更し、日またぎの強調区切りとして
     通常罫線と視覚的に区別できるようにした。 */
  border-top-color: var(--charcoal);
}
@media (max-width: 767px) {
  .rp-curriculum-summary { font-size: 0.875rem; padding: 0.75rem var(--space-sm); }
  .rp-curriculum-body { padding: var(--space-sm); padding-top: var(--space-sm); }
  .rp-curriculum-table th,
  .rp-curriculum-table td { padding: 12px 14px; }
}

/* === 写真・イラスト用メディア枠（差し替え前提のプレースホルダー） === */
.training-visual-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: var(--space-lg);
  align-items: start;
}
@media (min-width: 1024px) {
  .training-visual-row {
    grid-template-columns: 52% 1fr;
    gap: 44px;
  }
}
.training-visual {
  margin: 0;
}
.training-visual-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #F1F4F2;
  border: 1px solid var(--blue-gray-light);
  border-top: 3px solid var(--green);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}
@media (max-width: 1023px) {
  .training-visual-frame {
    aspect-ratio: 16 / 10;
  }
}
.training-visual-placeholder-text {
  font-size: 0.8125rem;
  color: var(--charcoal-light);
  text-align: center;
  line-height: 1.6;
}
.training-visual-frame--photo {
  padding: 0;
  background: #ffffff;
  border: 0;
}
.training-visual-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.training-visual--overview .training-visual-image {
  object-position: 66% center;
}
.training-visual--instructor .training-visual-image {
  object-position: 72% center;
}

/* === プレースホルダー共通（編集用・公開前に削除） === */
.rp-placeholder {
  border: 1px dashed #c4ced8;
  border-radius: 3px;
  padding: 0.875rem var(--space-md);
  background: #f8fafb;
  text-align: left;
}
.rp-placeholder-label {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--charcoal-light);
  background: #dde3ec;
  padding: 0.2em 0.55em;
  border-radius: 2px;
  margin-bottom: 0.625rem;
  font-family: var(--font-ui), sans-serif;
}
.rp-placeholder-text {
  font-size: 0.875rem;
  color: #566273;
  line-height: 1.7;
}
.rp-placeholder-text strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--charcoal-mid);
  margin-bottom: 0.375rem;
  font-weight: 600;
}

/* === 仮テキスト表示 === */
.rp-draft-note {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: #eef1f5;
  border: 1px solid #b8c4d4;
  border-radius: 3px;
  font-size: 0.75rem;
  color: var(--charcoal-light);
  font-weight: 500;
  font-family: var(--font-ui), sans-serif;
}
/* === 共通注釈（「掲載内容は現在調整中です」用に統一） === */
.rp-content-note {
  display: block;
  width: 100%;
  margin: 24px 0 0;
  padding: 20px 24px;
  background: #F5F7F9;
  border: 0;
  border-left: 5px solid #D6E0EA;
  border-radius: 0;
  color: #66758A;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.8;
  text-align: left;
}
@media (max-width: 767px) {
  .rp-content-note {
    margin-top: 20px;
    padding: 16px 18px;
    border-left-width: 4px;
    font-size: 0.875rem;
    line-height: 1.75;
  }
}

/* === 指導者の活動紹介（4項目・単独グリッド）=== */
.rp-role-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.rp-role-list--standalone {
  margin-top: var(--space-lg);
}
.rp-role-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--space-sm);
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
}
.rp-role-item-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--apricot-deep);
  margin-top: 0.125rem;
}
.rp-role-item-body { flex: 1; }
.rp-role-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

/* === 17．関連ページ導線 === */
.rp-related { background: var(--off-white); padding: var(--space-xl) 0; }
.rp-related-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
.rp-related h2 { font-size: 1.125rem; font-weight: 600; color: var(--charcoal); margin-bottom: var(--space-lg); }
.rp-related-links { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
/* CTA強調：ページ内で既に使用しているオレンジ系#A15B30（section-label等）をベタ塗りで採用し、
   白文字4.5:1以上のコントラストを確保。hoverは同系色の#834723へ濃色化。
   focus-visibleはサイト共通の:focus-visibleルール（outline: var(--green)）で担保済みのため追加定義なし。 */
.rp-related-links .btn-outline {
  background: #A15B30;
  border-color: #A15B30;
  color: #FFFFFF;
  padding: 0.875rem 1.75rem;
}
.rp-related-links .btn-outline:hover {
  background: #834723;
  border-color: #834723;
  color: #FFFFFF;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  :root { --space-xl: 2.5rem; --space-2xl: 4rem; }
  .site-logo img { height: 32px; }
  .header-nav { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  /* ヒーロー：スマートフォン（単純縮小ではなく色面→写真の順に再構成） */
  .rp-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .rp-hero-panel {
    order: 1;
  }
  .rp-hero-panel-inner {
    padding: 1.75rem var(--space-md);
  }
  .rp-hero-media {
    order: 2;
    aspect-ratio: 16 / 7;
    min-height: 150px;
  }
  .rp-intro-image {
    object-position: 62% center;
  }

  .rp-nav-grid { gap: 0.375rem; }
  .rp-nav-item { font-size: 0.8125rem; padding: 0.5rem 0.75rem; }

  .rp-role-list { grid-template-columns: 1fr; }

  .rp-related-links { flex-direction: column; }
  .rp-related-links .btn-outline { text-align: center; justify-content: center; }
}

/* ===== PC HEADER ADJUSTMENT (min-width: 1220px) ===== */
@media (min-width: 1220px) {
  :root {
    --pc-header-height: 88px;
    --pc-header-max-width: 1380px;
    --pc-header-logo-height: 56px;
    --pc-header-side-padding: 24px;
    --pc-header-nav-font-size: 15px;
    --pc-header-nav-font-weight: 600;
    --pc-header-nav-padding-x: 9px;
    /* ヘッダー高を88pxに統一（固定ヘッダー追従要素はこれを参照）*/
    --header-height: 88px;
  }
  .site-header {
    height: var(--pc-header-height);
  }
  .header-inner {
    max-width: var(--pc-header-max-width);
    padding-left: var(--pc-header-side-padding);
    padding-right: var(--pc-header-side-padding);
    gap: 0;
  }
  .site-logo img {
    height: var(--pc-header-logo-height);
    max-width: 340px;
  }
  /* PC ナビ：二次リンク */
  .header-nav-secondary a,
  .header-nav-secondary button,
  .header-nav-secondary .header-contact-link {
    height: var(--pc-header-height);
    padding-left: var(--pc-header-nav-padding-x);
    padding-right: var(--pc-header-nav-padding-x);
    font-size: var(--pc-header-nav-font-size);
    font-weight: var(--pc-header-nav-font-weight);
    line-height: 1;
  }
  /* 検索ボタン：可視テキスト付きのため幅は可変、タップ領域は44px以上を確保 */
  .header-search-btn {
    width: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
}

/* 1220px〜1279px：少し縮小 */
@media (min-width: 1220px) and (max-width: 1279px) {
  :root {
    --pc-header-logo-height: 52px;
    --pc-header-nav-font-size: 14px;
    --pc-header-nav-padding-x: 7px;
    --pc-header-side-padding: 16px;
  }
}

/* ===== PC HEADER NAV GAPS ===== */
/* 1280px以上：ナビ項目間24px */
@media (min-width: 1280px) {
  .header-nav-secondary {
    gap: 24px;
  }
  .header-nav-secondary a,
  .header-nav-secondary button,
  .header-nav-secondary .header-contact-link {
    padding-left: 0;
    padding-right: 0;
  }
  .header-search-btn {
    width: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
}

/* 1220px〜1279px：ナビ項目間14px */
@media (min-width: 1220px) and (max-width: 1279px) {
  .header-nav-secondary {
    gap: 14px;
  }
  .header-nav-secondary a,
  .header-nav-secondary button,
  .header-nav-secondary .header-contact-link {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===== SP HEADER & MOBILE NAV (max-width: 1219px) ===== */
@media (max-width: 1219px) {

  /* ロゴ：40px */
  .site-logo img {
    height: 40px;
  }

  /* --- フルスクリーンモバイルナビ --- */
  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    background: #ffffff;
    z-index: 99;
    overflow-y: auto;
    border-bottom: none;
    padding: 0;
    /* 閉じているときは非表示 */
    display: none;
  }
  .mobile-nav.open {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* ナビコンテンツの内側ラッパー */
  .mobile-nav-inner {
    width: min(calc(100% - 48px), 560px);
    margin: auto;
    padding-top: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
  }


  /* --- 検索導線（6項目とは分離） --- */
  .mobile-nav-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    padding: 0 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2C3340;
    background: transparent;
    border: 1.5px solid #748BAE;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-ja);
    transition: color 0.18s, border-color 0.18s;
  }
  .mobile-nav-search:hover {
    color: #326D5A;
    border-color: #326D5A;
  }
  .mobile-nav-search:focus-visible {
    outline: 2px solid #3F876F;
    outline-offset: 2px;
    border-radius: 2px;
  }
  .mobile-nav-search-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #566273;
  }

  /* bodyスクロール制御 */
  body.mobile-nav-open {
    overflow: hidden;
  }

  /* 560px以下：ロゴ幅を制限し、新ハンバーガーの表示幅を優先確保 */
  @media (max-width: 560px) {
    .header-inner {
      gap: 0.5rem;
    }
    .site-logo {
      flex-shrink: 1;
      min-width: 0;
      overflow: hidden;
    }
    .site-logo img {
      max-width: 180px;
      width: auto;
    }
    .header-news-shortcut {
      display: none;
    }
  }

  /* 340px以下：さらに狭い端末向けにハンバーガー表示をコンパクト化 */
  @media (max-width: 340px) {
    .site-logo img {
      max-width: 140px;
    }
    .hamburger__label-sub {
      display: none;
    }
  }
}

/* ===== HAMBURGER × ANIMATION ===== */
.hamburger {
  position: relative;
  display: none; /* SP: display:flex は max-width:1219px で設定 */
  align-items: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 5px 10px 5px 8px;
  background: #F5F9F7;
  border: 1px solid #DCE8E1;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s, border-color 0.18s;
}
.hamburger:hover,
.hamburger:focus-visible {
  background: #EAF2EE;
  border-color: #B9D2C4;
}
.hamburger__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.hamburger__icon span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--green);
  transform-origin: center;
  transition:
    transform 220ms ease,
    opacity 180ms ease,
    background-color 0.18s;
}
.hamburger__icon span:nth-child(1) { transform: translate(-50%, -6px); }
.hamburger__icon span:nth-child(2) { transform: translate(-50%, 0); }
.hamburger__icon span:nth-child(3) { transform: translate(-50%, 6px); }
.hamburger[aria-expanded="true"] .hamburger__icon span:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__icon span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, 0) scaleX(0.6);
}
.hamburger[aria-expanded="true"] .hamburger__icon span:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
}
.hamburger__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  text-align: left;
}
.hamburger__label-closed {
  display: flex;
  flex-direction: column;
}
.hamburger__label-open {
  display: none;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2C3340;
}
.hamburger[aria-expanded="true"] .hamburger__label-closed { display: none; }
.hamburger[aria-expanded="true"] .hamburger__label-open { display: block; }
.hamburger__label-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2C3340;
  white-space: nowrap;
}
.hamburger__label-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #4A5568;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .hamburger,
  .hamburger__icon span {
    transition: none;
  }
}

/* ===== PC 二次ナビ文字色 #2C3340 ===== */
@media (min-width: 1220px) {
  .header-nav-secondary a,
  .header-nav-secondary button,
  .header-nav-secondary .header-contact-link {
    color: #2C3340;
  }
  .header-nav-secondary a:hover,
  .header-nav-secondary a:focus-visible,
  .header-nav-secondary button:hover,
  .header-nav-secondary button:focus-visible {
    color: #326D5A;
    border-bottom-color: var(--green);
  }
  .header-search-btn {
    color: #2C3340;
  }
  .header-search-btn svg {
    stroke: currentColor;
  }
}

/* ===== HAMBURGER VISIBILITY CONTROL ===== */
/* 1220px以上：PCナビ表示、ハンバーガー非表示 */
@media (min-width: 1220px) {
  .header-nav {
    display: flex;
  }
  .header-sp-actions {
    display: none;
  }
  .hamburger {
    display: none;
  }
  .mobile-nav {
    display: none !important; /* リサイズ時に開いた状態が残らないよう */
  }
}
/* 1219px以下：PCナビ非表示、ハンバーガー表示 */
@media (max-width: 1219px) {
  .header-inner {
    width: 100%;
  }
  .site-logo {
    flex-shrink: 0;
  }
  .header-nav {
    display: none;
  }
  .header-sp-actions {
    display: flex;
    margin-left: auto;
    flex: 0 0 auto;
  }
  .hamburger {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
  }
}

/* ===== SCROLL REVEAL ===== */
[data-reveal].is-reveal-ready {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="fade"].is-reveal-ready {
  transform: none;
}
[data-reveal].is-reveal-ready.is-revealed {
  opacity: 1;
  transform: none;
}
@media (max-width: 767px) {
  [data-reveal].is-reveal-ready {
    transform: translate3d(0, 10px, 0);
    transition-duration: 500ms;
  }
  [data-reveal="fade"].is-reveal-ready {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].is-reveal-ready,
  [data-reveal].is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== COPYRIGHT STYLE ===== */
.copyright,
.top-copyright {
  color: #326D5A;
  font-weight: 700;
}
