
/* ===== 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;
  /* ===== デザインシステム改訂トークン（PHASE 2） ===== */
  --text-primary: #2C3340;
  --text-secondary: #4A5568;
  --text-muted: #5C6B82;
  --text-brand: #326D5A;
  --text-link: #1E6ABF;
  --text-on-dark: #FFFFFF;
  --brand: #4A8C70;
  --brand-strong: #326D5A;
  --accent-warm: #A15B30;
  --surface: #FFFFFF;
  --surface-muted: #F7F8F9;
  --surface-brand-tint: #EEF4F1;
  --border: #D4DBE6;
  --border-interactive: #748BAE;
  --focus-ring: #326D5A;
  --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;
}

/* ===== 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(--focus-ring);
  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: var(--text-muted);
  margin-bottom: 0.5rem;
}
.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-interactive);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-ja);
}
.search-box input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--border-interactive); }
.search-close {
  display: block;
  margin-top: var(--space-sm);
  color: var(--text-muted);
  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: #235D8C;
  font-family: var(--font-ui), sans-serif;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.rp-chapter-group:has(#sec-projects) .section-label {
  color: #A15B30;
}
.section-label::after {
  content: '';
  display: block;
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: #C8D2CC;
}
.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(--border-interactive);
  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(--text-link); color: var(--text-link); }
.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--brand-strong);
  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: #274a3d; }

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

/* === 共通 page-intro（研究ページ用） === */
/* === 3．ページイントロ — ヒーロー写真領域 === */
.rp-intro {
  padding-top: 0;
  background: transparent;
  border-bottom: none;
}

/* ヒーロー：写真＋白地＋青の色面＋大きな「研究」タイポグラフィ。
   研修ページ（写真＋濃いグリーン面）とは異なる、
   「知る・整理する」印象を持つ非対称・構造的な構成。
   暗いオーバーレイには依存しない。 */
.rp-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 460px;
  background: var(--surface);
}

/* 青の色面（識別カラー＋ドットのグリッド質感）。SPでは上部の帯として先頭に表示。 */
.rp-hero-mark {
  order: 1;
  min-height: 10px;
  background-color: #2E7AB8;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
}

/* タイトル・コピー（白地＋淡い罫線のグリッド質感） */
.rp-hero-copy {
  order: 2;
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--space-lg) var(--space-md);
  background-color: var(--surface);
  background-image:
    repeating-linear-gradient(0deg, rgba(46, 122, 184, 0.08) 0, rgba(46, 122, 184, 0.08) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(90deg, rgba(46, 122, 184, 0.08) 0, rgba(46, 122, 184, 0.08) 1px, transparent 1px, transparent 44px);
}
.rp-hero-text {
  max-width: 600px;
}

/* 写真領域 */
.rp-hero-media {
  order: 3;
  position: relative;
  min-height: 200px;
  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: 60% center;
  }
}

/* PC：青の色面（左）／文字（中央）／写真（右）の非対称3カラム */
@media (min-width: 1024px) {
  .rp-hero {
    grid-template-columns: minmax(64px, 84px) minmax(0, 1fr) minmax(0, 38%);
    min-height: 460px;
  }
  .rp-hero-mark {
    min-height: 100%;
  }
  .rp-hero-copy {
    padding: var(--space-xl) clamp(28px, 3.4vw, 56px);
  }
  .rp-hero-media {
    min-height: 100%;
  }
  /* 新しいHero画像は人物が左側・右側に余白がある構図のため、
     centerのままだと左端の人物が窮屈に切れる／右側の余白が目立つ。
     やや左寄り（30%）にすることで人物・資料・指し示す手を主役にする。 */
  .rp-intro-image {
    object-position: 30% center;
  }
}

.rp-intro-label {
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #2E7AB8;
  font-weight: 700;
  font-family: var(--font-ui), sans-serif;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.rp-intro-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: #2E7AB8;
}
.rp-intro h1 {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.125rem;
}
.rp-hero-rule {
  display: block;
  width: 56px;
  height: 4px;
  background: #2E7AB8;
  margin-bottom: 1.125rem;
}
.rp-intro-copy {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 500;
}



/* リード文・注記の補足領域 */
.rp-intro-sub {
  background: var(--white);
  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: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.85;
  max-width: 620px;
  margin-bottom: 0.625rem;
  padding-left: 22px;
  border-left: 3px solid #2E7AB8;
}

/* === 共通注釈（「掲載内容は現在調整中です」用に統一。training.htmlと同一実装） === */
.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;
  }
}

/* === パンくずリスト === */
.rp-breadcrumb-wrap {
  padding-top: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--blue-gray-light);
}
.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(--text-muted);
  flex-wrap: wrap;
}
.rp-breadcrumb a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.18s;
}
.rp-breadcrumb a:hover { color: #17529a; }
.rp-breadcrumb-sep { color: var(--text-muted); }
.rp-breadcrumb > li + li::before {
  content: "›";
  margin: 0 0.5rem;
  color: var(--text-muted);
}
.rp-breadcrumb [aria-current="page"] { color: var(--charcoal); font-weight: 500; }

/* === 章グループ・章見出し（色面として再構成。01/02/03の連番は廃止） ===
   クライアント指示：番号は削除するが、番号に使っていた青／オレンジは
   「大きな色面」として章見出しへ再利用する。小さな縦線だけには置き換えない。
   （章1・3＝ブルー／章2＝オレンジ、既存の :has(#sec-projects) 切り替えを踏襲） */
.rp-chapter-group {
  background: var(--white);
}
.rp-chapter-group--alt {
  background: #F7F9F8;
}
.rp-chapter {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.rp-chapter-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-height: 128px;
  padding: 28px clamp(20px, 4vw, 40px);
  background: #2E7AB8;
  border-radius: 2px;
}
.rp-chapter-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
  font-family: var(--font-ui), sans-serif;
}
.rp-chapter-title {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  line-height: 1.4;
}
/* ページ内の編集色：章ごとに主役色／補助色を切り替える（HTML変更なし、section IDで判定） */
.rp-chapter-group:has(#sec-projects) .rp-chapter-banner {
  background: #E58C47;
}
.rp-chapter-group:has(#sec-projects) .rp-chapter-kicker {
  color: #2C3340;
}
.rp-chapter-group:has(#sec-projects) .rp-chapter-title {
  color: #2C3340;
}
/* R8-0829-07（PROJECTS帯を青帯と完全共通のレイアウトへ統一）：PROJECTS帯専用に
   追加していたレイアウト調整（padding-block/gap拡大→撤去済み、その後のPC専用
   min-height:170px、後続.rp-section-headのmargin-top:-80px）は一度すべて撤去し、
   .rp-chapter-banner／後続.rp-section-headとも青帯と完全共通のルールのみにした。 */
/* 白地セクションを帯の下端へわずかに重ね、章の開始点を強調する。
   （帯の高さに関わらず確実に重なるよう、帯側ではなく後続の section-head 側に
   負のmargin-topを付けている） */
.rp-chapter + .rp-section .rp-section-head {
  position: relative;
  z-index: 1;
  margin-top: -112px;
}
/* R8-0829-08：R8-0829-07でCSSを完全共通化した結果、DOM上の帯の高さ（128px）は
   青帯・オレンジ帯で一致したが、「画面上で見えている帯の高さ」は一致しなかった。
   原因はPROJECTS側の調整ではなく、青帯（RESEARCH／#sec-what）だけに存在する
   構造差：#sec-whatはPCで研究サイクル図と2カラムgrid（align-items:center）を
   組んでおり、後続.rp-section-headが図の高さに引っ張られて帯からかなり下へ
   離れるため、共通のmargin-top:-112pxを適用しても帯への重なりが発生しない
   （重なり0px）。一方 #sec-projects にはこのgrid構造がなく、見出しブロックが
   帯直後に単純配置されるため、同じ-112pxがそのまま効いてしまい、「主な研究・
   事業」の見出しブロックが帯下端へ約32px食い込み、見た目の帯の高さが青帯より
   32px低く見えていた。
   青帯（RESEARCH側の構造）・研究サイクル図・共通の-112pxルールはいずれも変更
   禁止のため、PROJECTS側の見た目の重なりだけを打ち消す最小限の個別調整として、
   後続.rp-section-headのmargin-topをPCに限り-80pxへ戻す（section本体の
   padding-top:80pxとちょうど相殺し、重なり0pxになる値）。これによりPROJECTS帯の
   「画面上で見えている高さ」が青帯と同じ128pxになる。背景色・文字色以外で
   PROJECTS側に残る唯一の個別指定。SP（767px以下）は共通ルールのままで青帯との
   重なり量の差が実測1px未満のため変更していない。 */
@media (min-width: 768px) {
  .rp-chapter-group:has(#sec-projects) .rp-section-head {
    margin-top: -80px;
  }
}
/* NOTE: 以下のSP専用調整は、このファイル末尾の
   @media (max-width: 767px) ブロック（無条件ルールより後）に配置している。
   同じセレクタに対する無条件ルールがこのブロックより後に来ると、
   デスクトップ・モバイル問わずそちらが優先されてしまうため（研修ページ制作時に
   発見した既知の不具合パターン）、意図的にファイル末尾へ配置する。 */

/* === セクション共通 === */
.rp-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--blue-gray-light);
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.rp-section:last-of-type { border-bottom: none; }
/* 章見出し直後のセクションは、十分な縦余白を確保する */
.rp-chapter + .rp-section {
  padding-top: 80px;
}
.rp-section--alt { background: var(--off-white); }
.rp-section--blue-light { background: #f0f4f8; }

.rp-section-head {
  margin-bottom: 40px;
  padding: 30px 34px 34px;
  background: #F8FBFE;
  border-radius: 4px;
}
.rp-chapter-group:has(#sec-projects) .rp-section-head {
  background: #FFF1E7;
}
.rp-section-head h2 {
  position: relative;
  padding-left: 22px;
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-top: 10px;
}
.rp-section-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.08em;
  width: 6px;
  height: 1.45em;
  background: #2E7AB8;
  border-radius: 1px;
}
.rp-chapter-group:has(#sec-projects) .rp-section-head h2::before {
  background: #E58C47;
}
.rp-section-lead {
  margin-top: 24px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.85;
  max-width: var(--text-max);
}
/* 「仙台センターの研究とは」のリード文のみ、緑の章見出し帯と同じコンテンツ幅に揃える */
#sec-what .rp-section-lead {
  width: 100%;
  max-width: none;
}

/* === 本文エリア === */
.rp-prose {
  max-width: var(--text-max);
}
.rp-prose p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--charcoal);
  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(--clear-blue);
}
.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);
  margin-bottom: 0.375rem;
}

/* === 4．ページ内案内 === */
.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)と同一）×白文字・太字の
   見出しバッジへ変更し「ここからページ内を選べる」ことを一目で示す。 */
.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;
}

/* === 5．仙台センターの研究とは ===
   クライアント指示：PCでは説明文を主役にし、研究サイクル図は右側の補助ビジュアルとして
   全体の30〜35%程度に縮小。外周・4領域・中央円・領域同士の境界は、
   背景色の違いだけでなく実際の線で明確に示す。図中テキストは縮小しない。
   R8-0829-01：情報量に対して図が大きすぎる／本文との重心がずれて見える、との指摘を受け、
   図の最大幅を縮小し、本文ブロックと図を縦方向中央で揃える（上端固定オフセットを廃止）。
   R8-0829-01（再調整2）：右下「アカデミアや企業との連携」を2行で収めるため、
   320px→372px（約16%拡大）。本文とのバランス・65/35列比率・4分割比率は維持。
   R8-0829-01（そのまま再現）：PDF修正案の実測比率に合わせ再拡大。372px→400px。
   400pxではPC左右比65/35のままだと図側カラム幅が図の最大幅より狭くなり縮小されて
   しまうため、比率を62/38へ広げて図が実寸で収まるようにした（本文側は約3%縮小）。 */
.rp-research-cycle {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: var(--space-lg) 0 0;
}
/* STEP01：PCでは説明文（左）と研究サイクル図（右）の非対称2カラムへ。
   R8-0829-01（そのまま再現）：図を400pxで実寸表示するため65/35→62/38に調整。 */
@media (min-width: 1024px) {
  #sec-what .section-wrap {
    display: grid;
    grid-template-columns: minmax(0, 62%) minmax(0, 38%);
    column-gap: 48px;
    align-items: center;
  }
  #sec-what .rp-section-head {
    grid-column: 1;
  }
  #sec-what .rp-research-cycle {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    max-width: 400px;
    justify-self: end;
  }
}
.rp-research-cycle-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #3E1E0A;
  border: 4px solid #3E1E0A;
  box-shadow: 0 2px 10px rgba(59, 27, 13, 0.12);
}
/* R8-0829-01（そのまま再現）：PDF実測では4分割線・外周線とも濃色の実線ではなく、
   白い隙間（本CSSのgap:4px／背景white）のみで区分されている（実測でRGB(254,254,254)の
   純白帯を確認）。「見た目の一致を最優先」の今回指示に基づき、従来の濃色border/inset
   実線（#1B2129）は撤去し、白い隙間のみによる区分＋ごく薄い外周ドロップシャドウ
   （立体感の補助程度）へ変更した。4象限は色相・彩度が段階的に異なるオレンジ系のため、
   白い区切りだけでも境界は視認できる（開示事項：従来の「濃色の実線で境界を明確化」
   というアクセシビリティ配慮より、今回はPDF再現度を優先）。
   R8.9.11修正依頼P6：上記の判断についてクライアントより「円の色のカラーコントラスト比が
   足りない。区別できる濃い色で枠取りをしてほしい」と明示の差し戻しがあったため、
   白い隙間のみの区分をやめ、4象限アイコン・文字と同じ濃茶色（#3E1E0A、本コンポーネント
   内で既に使用中の色）を隙間の背景色（＝十字の区切り線）および円全体の外周border両方に
   適用し、各象限と円の外側（白背景）の両方に対して濃色の枠取りを行った。新規の色は
   導入せず、コンポーネント内で実績のある色を再利用している。 */
/* .rp-research-cycle-itemはposition指定なし（static）のまま維持する。
   .cycle-contentの絶対位置決めは.rp-research-cycle-grid（円全体、
   position:relative）を基準にするため、各象限セル自体を positioning
   context にしてはならない（誤ってrelativeを付けると象限セル単位の
   25%/75%になり、円全体基準の座標とズレる）。 */
/* R8-0829-01（象限中心からの均等な中央寄せ）：各象限を
     .cycle-content（content group）
       .cycle-icon-box（共通アイコン枠）
       .cycle-label（2行ラベル）
   という共通構造に統一。.cycle-contentは.rp-research-cycle-grid（円全体、
   position:relativeを付与）を基準にposition:absoluteで配置する。
   前回ラウンドでは各象限の数学的中心（25%/75%）へ正確に一致させたが、
   右下グループが円弧の内側マスクに接触し文字が欠ける結果となった。
   今回は「右下だけ個別に大きく補正する」対症療法ではなく、4象限すべてに
   同一ルール・同一量の補正を適用する方針へ変更：各content groupを
   象限の数学的中心（25%/75%）から円全体の中心（50%,50%）方向へ、
   4象限とも均等に約7ポイント寄せる（31.5%〜68.5%）。これにより
   4グループが中央を囲むような一体感のある配置になり、かつ円弧との
   クリアランスが全象限で均等に確保される（右下だけの個別transform
   補正は撤去し、4象限とも同一のtranslate(-50%,-50%)のみとした）。 */
.cycle-content {
  position: absolute;
  width: max-content;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #3E1E0A;
}
.rp-research-cycle-item--1 .cycle-content { left: 31.5%; top: 31.5%; }
.rp-research-cycle-item--2 .cycle-content { left: 68.5%; top: 31.5%; }
.rp-research-cycle-item--3 .cycle-content { left: 31.5%; top: 68.5%; }
.rp-research-cycle-item--4 .cycle-content { left: 68.5%; top: 68.5%; }
/* 共通アイコン枠：4象限とも同じ大きさの箱を用意し、その中にSVGを中央配置する。
   箱のサイズはアイコン形状ごとの実測「塗り面積（インク量）」を揃えた値
  （後述のmodifier classで個別に指定するSVGサイズ）が収まる最大値。 */
.cycle-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  margin-bottom: 0.5rem;
}
/* R8-0829-01（レイアウト作り直し）：SVGのwidth/height数値を揃えるだけでは
   視覚的な大きさが揃わなかったため（クリップボード・メガホンは実際の線画が
   viewBox内で余白が少なく大きく見え、複合アイコンは3要素を含み密度が高いため
   同サイズでも重く見える）、4アイコンの実際の「インク面積（線画が占める面積）」を
   Playwrightで実測し、平方根面積が揃うよう個別にサイズを算出した：
     クリップボード   fill比 58.3%×75.0% → 66px
     データ＋書類     fill比 75.0%×70.8% → 60px
     メガホン         fill比 73.7%×58.3% → 66px
     卒業帽+建物+握手 fill比 87.5%×81.3% → 52px
   共通のcycle-icon-box（66px）内でflex中央配置することで、
   サイズが異なっても視覚的な重心は各象限の中心に揃う。 */
.rp-research-cycle-icon {
  flex-shrink: 0;
}
.rp-cycle-icon--clipboard { width: 66px; height: 66px; }
.rp-cycle-icon--database  { width: 60px; height: 60px; }
.rp-cycle-icon--megaphone { width: 66px; height: 66px; }
.rp-cycle-icon--partnership { width: 52px; height: 52px; }
.cycle-label {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* R8-0829-01（レイアウト作り直し）：PDF修正案は文字がアイコンより主張しすぎない
   バランスのため、17px/700 → 16px/600へ調整（アイコンとの視覚的な競合を緩和）。
   .cycle-label自身とその子.rp-cycle-lineだけに適用し、.cycle-icon-box等の
   他のspanへは影響しない。 */
.cycle-label,
.rp-cycle-line {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #3E1E0A;
  text-align: center;
}
/* R8-0829-01（そのまま再現・第2弾）：改行位置をCSSの自動折返しに任せず、
   1行＝1つのblock spanとしてHTML側で固定するための行要素。
   4項目とも同一のfont-size/font-weight/line-heightを継承し、右下だけを
   縮小しない。 */
.rp-cycle-line {
  display: block;
}
/* R8-0829-01（そのまま再現・第2弾）：PDFから実測した4段階の暖色（ピーチ〜オレンジ）に
   差し替え。文字・アイコン色は全区分共通の濃茶色（#3E1E0A、PDF文字インクの実測値に近似）
   に統一し、4背景いずれに対しても7.7:1〜12.5:1のコントラスト比を確保
   （WCAG AA基準4.5:1を満たす）。青・薄青・オレンジの旧配色は使用していない。 */
.rp-research-cycle-item--1 { background: #FCE2CA; }
.rp-research-cycle-item--2 { background: #FCD3AE; }
.rp-research-cycle-item--3 { background: #F9C69B; }
.rp-research-cycle-item--4 { background: #F5A662; }
/* R8-0829-01（象限中心からの均等な中央寄せ）：象限ごとのpadding差・アイテム個別の
   transform補正はすべて撤去。4象限とも.cycle-contentの座標指定（31.5%/68.5%）＋
   translate(-50%,-50%)のみで、円中心方向への寄せ量を統一する。 */
/* 中央円：PDF画像をピクセル実測したところ、中央円の縁には柔らかいぼかし（グロー）が
   かかっており、厳密な閾値で「純白のコア部分」だけを測ると約9〜10%だが、
   人の目に「白円」として認識される見た目上の範囲（ぼかしを含む）は約19〜21%だった
   （850px幅クロップでの直接グリッド計測）。今回は実際の見た目の比較を優先し、
   視覚的な円のサイズとして約20%を維持する（前回の20%から変更なし。詳細な
   ピクセル計測を行ったが、視覚一致を優先し数値はほぼ据え置きと判断）。 */
.rp-research-cycle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 19%;
  aspect-ratio: 1 / 1;
  min-width: 46px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* R8.9.11修正依頼P6：中央のリフレッシュアイコンがオレンジ(#EA8C35)×白背景で
     コントラスト比2.6:1程度しかなく、client指摘の「カラーコントラスト比足りて
     ません」に該当。4象限のアイコン・文字と同じ濃茶色（#3E1E0A）に変更し、
     16:1超のコントラストを確保（新規色は導入せず、コンポーネント内の既存色を再利用）。
     R8.9.11-02修正：白い中央円自体が淡い象限背景色（明るいほうで約1.24:1）に対して
     境界がほぼ視認できなかったため、外周・十字の区切りと同じ濃茶色（#3E1E0A）の
     枠線を追加し、中央円との境界を明確化した。 */
  color: #3E1E0A;
  border: 3px solid #3E1E0A;
  box-shadow: 0 1px 6px rgba(59, 27, 13, 0.18);
}
.rp-research-cycle-center svg {
  width: 52%;
  height: 52%;
}
/* R8-0829-02（SPレイアウト独自整理）：SP専用ブロック。PC版のCSS（position:absolute
   ＋31.5%/68.5%座標）はSPへ引き継がず、SPでは4象限を「独立した2×2グリッド」として
   扱う。各.rp-research-cycle-itemをflexコンテナ化し、その中で.cycle-contentを
   position:static＋flexの中央揃えで配置する。これにより象限内のcontent group中心＝
   セル中心となり、PCのような絶対座標計算に依存しない、崩れにくい構造にした。
   円弧との余白は、4象限とも同一方向規則・同一量（8px）の中央方向への
   軽いtransformナッジのみで確保し、右下だけを特別扱いする補正は行っていない。 */
@media (max-width: 767px) {
  .rp-research-cycle {
    max-width: 360px;
  }
  .rp-research-cycle-grid {
    border-radius: 12px;
  }
  .rp-research-cycle-item {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .rp-research-cycle-item--1 .cycle-content,
  .rp-research-cycle-item--2 .cycle-content,
  .rp-research-cycle-item--3 .cycle-content,
  .rp-research-cycle-item--4 .cycle-content {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  /* 4象限とも同一量（8px）だけ円中心方向へ寄せる。方向のみ象限ごとにミラーし、
     右下だけを大きく動かす特殊補正は行わない。 */
  .rp-research-cycle-item--1 .cycle-content { transform: translate(20px, 20px); }
  .rp-research-cycle-item--2 .cycle-content { transform: translate(-20px, 20px); }
  .rp-research-cycle-item--3 .cycle-content { transform: translate(20px, -20px); }
  .rp-research-cycle-item--4 .cycle-content { transform: translate(-20px, -20px); }
  .cycle-label,
  .rp-cycle-line {
    font-size: 0.875rem;
  }
  /* アイコン→文字のgapを12〜16pxの範囲で統一（14px）。 */
  .cycle-icon-box {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
  }
  /* R8-0829-02：SPの実寸（30〜38px）ではPC由来の「インク面積比」補正をそのまま
     縮小適用すると、線が細いアイコン（データ＋書類／卒業帽+建物+握手）だけが
     不釣り合いに小さく・弱く見えることが実測で判明したため、SP専用に再調整。
     4アイコンとも視覚的に約48〜56pxの範囲へ揃え、特に右上・右下は
     現状より一回り大きくした。 */
  .rp-cycle-icon--clipboard { width: 50px; height: 50px; }
  .rp-cycle-icon--database  { width: 52px; height: 52px; }
  .rp-cycle-icon--megaphone { width: 48px; height: 48px; }
  .rp-cycle-icon--partnership { width: 54px; height: 54px; }
}

/* === 11．主な研究・事業（サブセクション共通） === */
.rp-subsection {
  margin-top: var(--space-xl);
}
.rp-subsection:first-of-type {
  margin-top: var(--space-lg);
}
.rp-subsection-title {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.375rem;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* 主な研究テーマ：CSSでの連番(01/02/03)装飾は廃止。
   代わりに「太い左罫線（構造＝ブルー）」＋「キーワードプレート（強調＝アクセントカラー）」＋
   余白とタイポグラフィで情報階層をつくる。3枚の汎用カードUIにはせず、
   元の縦積みリスト構成を維持する。 */
.rp-theme-grid {
  display: flex;
  flex-direction: column;
}
.rp-theme-card {
  position: relative;
  padding: 32px 0 32px 22px;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid #2E7AB8;
  background: transparent;
}
.rp-theme-grid .rp-theme-card:first-child {
  border-top: 1px solid var(--border);
}
.rp-theme-tag {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  background: #A15B30;
  border-radius: 2px;
  padding: 0.3125rem 0.875rem;
  margin-bottom: 0.75rem;
}
.rp-theme-card p {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-secondary);
  /* R8.9.11修正依頼P7：620pxだと最長の説明文（人材育成）が2行に折り返してしまうため
     クライアントより「1行にできないか」と指摘。実測した1行時の必要幅は約708pxのため、
     740pxへ拡張してPC幅では1行に収まるようにした。文言・フォントサイズは変更せず、
     幅の制約のみ緩和している。SPでは元々max-widthが実効幅（カード幅）を下回らないため
     引き続き自然に折り返す。 */
  max-width: 740px;
}
.rp-theme-cta {
  margin-top: var(--space-md);
}
/* 「詳細は、研究成果のページへ」：ページ未完成のため、ボタン風の無効UIではなく
   最初から非リンクの「準備中」表示にする。a要素へ差し替えやすい構造は維持。 */
.rp-status-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: default;
}
.rp-status-pending-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background: #E7ECF1;
  color: #3D4759;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

/* 研究成果報告会：写真だけが主役になりすぎないよう、文章側を主にした比率へ調整。
   文章側にも青の左罫線を添え、写真と同じ「線」のモチーフで揃える。 */
.rp-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 44px;
  align-items: center;
  margin-top: 32px;
}
.rp-report-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-primary);
  padding-left: 20px;
  border-left: 3px solid #2E7AB8;
}
.rp-report-figure {
  margin: 0;
  width: 100%;
  max-width: 320px;
  justify-self: end;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
}
.rp-report-figure-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .rp-report-row {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    gap: 36px;
  }
  .rp-report-figure {
    max-width: 280px;
  }
}
@media (max-width: 1023px) {
  .rp-report-row {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }
  .rp-report-figure {
    justify-self: center;
    max-width: 280px;
  }
}
@media (max-width: 767px) {
  .rp-theme-card {
    padding: 24px 0 24px 16px;
  }
  .rp-report-figure {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* === 13．研究者情報 === */
/* 見出し：研究ページで多用しているブルー#2E7AB8をベタ塗りにして「研究者情報」セクションの
   区切りを強める。左アクセントラインは背景と同色になり不要なため、この見出しに限り非表示にする。 */
#sec-researchers .rp-section-head {
  background: #2E7AB8;
  padding: 26px 34px 30px;
}
#sec-researchers .rp-section-head h2 {
  padding-left: 0;
  color: #FFFFFF;
}
#sec-researchers .rp-section-head h2::before {
  display: none;
}
#sec-researchers .rp-section-lead {
  color: #FFFFFF;
}
.rp-researcher-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #C9D4CE;
}
.rp-researcher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 84px;
  padding: 2rem 0;
  border-bottom: 1px solid #C9D4CE;
}
/* 氏名を情報の主役にする：サイズ・太さ・濃色を一段強く */
.rp-researcher-info h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
/* 所属・役職は氏名より明確に弱く見せる */
.rp-researcher-info p {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}
/* Researchmap CTA：URL確定済みの研究者のみ。アウトラインからベタ塗りへ変更し、
   「クリックできる場所」を明確化する */
.rp-researcher-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  border: 1.5px solid #2E7AB8;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  background: #2E7AB8;
  white-space: nowrap;
  transition: border-color 0.18s, color 0.18s, background-color 0.18s;
}
.rp-researcher-link:hover,
.rp-researcher-link:focus-visible {
  border-color: #245F91;
  color: #FFFFFF;
  background: #245F91;
}
/* Researchmap URL未確定（森下 久美）：CTAボタンと視覚的に明確に区別する非リンク表示。
   既存の.rp-status-pending（準備中表示）と同じ「muted text＋薄いグレーラベル」パターンを流用。 */
.rp-researcher-pending {
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .rp-researcher-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .rp-researcher-info h3 {
    font-size: 1.5rem;
  }
  .rp-researcher-link {
    width: 100%;
    justify-content: center;
  }
  .rp-researcher-pending {
    flex-basis: 100%;
    margin-top: 0.375rem;
  }
}

/* === 16．関連ページ導線 === */
.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強調：ページ内で既に多用しているブルー系#2E7AB8をベタ塗りで採用し、
   白文字4.5:1以上のコントラストを確保。hoverは同系色の#245F91へ濃色化。
   focus-visibleはサイト共通の:focus-visibleルール（outline: var(--focus-ring)）で担保済みのため追加定義なし。 */
.rp-related-links .btn-outline {
  background: #2E7AB8;
  border-color: #2E7AB8;
  color: #FFFFFF;
  padding: 0.875rem 1.75rem;
}
.rp-related-links .btn-outline:hover {
  background: #245F91;
  border-color: #245F91;
  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-copy { padding: var(--space-lg) var(--space-md); }
  /* 写真領域をやや縦に広げ、人物・資料・指し示す手を一回り大きく見せる。
     右側の余白は完全には消さず、左側の人物も窮屈に切れない位置に調整。 */
  .rp-hero-media { min-height: 250px; }
  .rp-intro-image {
    object-position: 25% center;
  }
  .rp-hero-text { max-width: 100%; }

  /* Page-specific mobile */
  .rp-nav-grid { gap: 0.375rem; }
  .rp-nav-item { font-size: 0.8125rem; padding: 0.5rem 0.75rem; }

  /* 章バナー（色面）：SP調整。無条件ルールより後に配置し、確実に適用させる。 */
  .rp-chapter-banner {
    min-height: 104px;
    padding: 22px 18px;
  }
  .rp-chapter-kicker { font-size: 0.6875rem; }
  .rp-chapter-title { font-size: 1.125rem; }
  /* R8-0829-04：前回のSP個別拡大（padding-block:44px/gap:16px）は撤去。
     PROJECTS帯もこのブロック無条件ルール（min-height:104px／padding:22px 18px）を
     青帯と共通で適用する。 */
  .rp-chapter + .rp-section {
    padding-top: 52px;
  }
  .rp-chapter + .rp-section .rp-section-head {
    margin-top: -76px;
  }
  .rp-section-head {
    margin-bottom: 30px;
    padding: 22px 20px 26px;
  }

  /* 関連導線 */
  .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;
}

/* ===== 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;
  }
}

/* 「仙台センターの研究とは」（研究サイクル図）の直後（＝第2章の直前）だけ、
   図の下に白い余白が重なって間延びして見えるため、章前余白を専用に詰める。
   他の章間の余白（デザインリズム）・研究サイクル図のサイズ・オレンジ色面には影響させない。 */
.rp-chapter-group:has(#sec-what) + .rp-chapter-group {
  padding-top: 32px;
}
@media (max-width: 767px) {
  .rp-chapter-group:has(#sec-what) + .rp-chapter-group {
    padding-top: 28px;
  }
}
