/*
Theme Name: Hama-Ortho
Theme URI: https://hama-ortho.jp/
Author: 浜松医科大学 整形外科学講座
Author URI: https://hama-ortho.jp/
Description: 浜松医科大学 整形外科学講座 公式サイトテーマ (CCAGI SDK generated).
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hama-ortho
Tags: medical, academic, custom-menu, custom-post-types, featured-images
*/

/* =============================================================
   Custom Fonts
   ============================================================= */

@font-face {
  font-family: "KyokaICAPro";
  src: url("assets/fonts/KyokaICAPro-Medium.woff2") format("woff2"),
       url("assets/fonts/KyokaICAPro-Regular.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RyuminPro";
  src: url("assets/fonts/RyuminPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =============================================================
   Design Tokens (PCデザイン正 準拠 - Issue #3)
   ============================================================= */

:root {
  --c-primary:      #0F5CA4;   /* Contact button / links / hero band */
  --c-primary-hi:   #1E5AA0;
  --c-dark:         #1A3A6B;   /* legacy (旧 Footer BG). Issue #21 で Footer BG は --c-footer-* グラデに移行 */
  /* Issue #21: Footer BG 緑グラデーション用トークン */
  --c-footer-fade:  #E8F4F0;   /* Footer top (bridge banners 帯の背景, 薄緑) */
  --c-footer-mid:   #1E5E5E;   /* Footer 30% (深緑) */
  --c-footer-dark:  #144545;   /* Footer bottom (より深緑) */
  --c-topics-bg:    #E8F0F7;   /* Topics section BG */
  --c-message-bg:   #DCEBF5;   /* Message section BG */
  --c-purple:       #4A3F9E;   /* Specialty field heading */
  --c-badge-blue:   #3EAADC;   /* Topics category badge */
  --c-mint:         #3EC5B0;   /* Pickup right banner1 accent */
  --c-mint-2:       #2E9080;   /* Pickup right banner2 accent */
  --c-mint-frame:   #7FE0D3;   /* Pickup left card mint frame */
  --c-text:         #1E2A32;
  --c-text-mute:    #4A5560;
  --c-border:       #D9E2EA;
  --c-white:        #FFFFFF;
  --f-heading:      "Poppins", "Noto Serif JP", serif;
  --f-mincho:       "KyokaICAPro", "Hiragino Mincho ProN", "Noto Serif JP", "YuMincho", "游明朝", serif;
  --f-heading-serif: "RyuminPro", "Hiragino Mincho ProN", "Noto Serif JP", "YuMincho", "游明朝", serif;
  --f-body:         "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --content-max:    1240px;
  --header-h:       92px;
}

/* =============================================================
   0. Reset / Base
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {
  body { font-size: 1rem; }
}

img, picture, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--c-primary); text-decoration: none; text-underline-offset: 3px; }
a:hover { opacity: 0.85; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--c-text);
}

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 0;
  padding: 12px 20px;
  background: var(--c-text);
  color: var(--c-white);
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* =============================================================
   1. Container / Section utility
   ============================================================= */

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px)  { .container { padding: 0 32px; } }
@media (min-width: 1200px) { .container { padding: 0 40px; } }

/* =============================================================
   2. Header (site-header) - 92px 白BG sticky + 青Contactボタン
   ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid #EEF2F5;
  box-shadow: 0 1px 2px rgba(30, 42, 50, 0.04);
  height: 68px;
}

@media (min-width: 1024px) {
  .site-header { height: var(--header-h); }
}

.site-header__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (min-width: 1024px) {
  .site-header__inner { padding: 0 24px; }
}

@media (min-width: 1600px) {
  .site-header__inner { max-width: 1720px; padding: 0 40px; }
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--c-text);
}

.site-logo__mark {
  height: 40px;
  width: auto;
}

@media (min-width: 1024px) {
  .site-logo__mark { height: 46px; }
}

/* .site-logo__label removed 2026-07-20 (R1 fix):
   logo.webp itself contains "浜松医科大学 / 整形外科学講座" text baked in,
   so an additional <span> caused visible duplicate. See Issue #5 R1. */

.site-nav {
  display: none;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1024px) {
  .site-nav { display: flex; }
}

.site-nav__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.site-nav__item a {
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text);
  text-decoration: none;
  transition: color 200ms;
  position: relative;
  white-space: nowrap;
}

@media (min-width: 1440px) {
  .site-nav__item a { padding: 0 16px; }
}

.site-nav__item a:hover,
.site-nav__item.current-menu-item a {
  color: var(--c-primary);
}

.site-nav__item a::after {
  content: "";
  position: absolute;
  bottom: 22px;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav__item a:hover::after,
.site-nav__item.current-menu-item a::after { transform: scaleX(1); }

/* Contact button (青) — D11: 縦中央 */
.site-header__contact {
  display: none;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 100px;
  height: 46px;
  padding: 0 24px;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--f-mincho);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 200ms, transform 200ms;
  flex-shrink: 0;
  line-height: 1;
}

.site-header__contact:hover {
  background: #0D4E8B;
  color: var(--c-white);
  transform: translateY(-1px);
  opacity: 1;
}

@media (min-width: 1024px) {
  .site-header__contact {
    display: inline-flex;
    min-width: 165px;
    height: 50px;
    font-size: 1.125rem;
  }
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  transition: transform 200ms;
}

.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before { position: absolute; top: -8px; left: 0; }
.nav-toggle__bar::after  { position: absolute; top:  8px; left: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  z-index: 99;
  padding: 32px 24px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
}

.mobile-nav[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .mobile-nav { display: none; }
}

.mobile-nav__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav__list a {
  display: block;
  padding: 16px 8px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
}

/* =============================================================
   3. Section: MV / Hero — 手術背景 + 中央帯
   ============================================================= */

.section-mv {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  background: #0A2340;
}

@media (min-width: 1024px) { .section-mv { min-height: 720px; } }
@media (min-width: 1440px) { .section-mv { min-height: 820px; } }

.section-mv__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.section-mv__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 35, 64, 0.25) 0%, rgba(10, 35, 64, 0.55) 100%);
  z-index: 1;
}

/* 中央半透明ダーク帯 (D3: PCデザイン正 - 全幅横断 rgba(30,60,120,0.55) 高さ~106px) */
.section-mv__band {
  position: absolute;
  left: 0; right: 0;
  top: 55%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(30, 60, 120, 0.55);
  padding: 20px 16px;
  text-align: center;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .section-mv__band { padding: 20px 24px; top: 58%; min-height: 106px; }
}

.section-mv__title {
  font-family: var(--f-heading);
  font-weight: 700;
  font-style: italic;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--c-white);
  margin: 0;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px)  { .section-mv__title { font-size: 3rem; } }
@media (min-width: 1024px) { .section-mv__title { font-size: 3.75rem; } }
@media (min-width: 1440px) { .section-mv__title { font-size: 4.5rem; } }

/* 下カプセルボタン */
.section-mv__cta-wrap {
  position: absolute;
  left: 10%; 
  /* right: 0; */
  bottom: 12%;
  z-index: 3;
  text-align: center;
  font-family: var(--f-mincho);

}

@media (min-width: 1024px) { .section-mv__cta-wrap { bottom: 10%; } }

.section-mv__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 32px;
  background: #291d8e;
  color: white;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 200ms, transform 200ms;
}

@media (min-width: 1024px) { .section-mv__cta { font-size: 1rem; padding: 8px 40px; } }

.section-mv__cta:hover {
  background: var(--c-white);
  color: var(--c-primary);
  transform: translateY(-2px);
  opacity: 1;
}

/* =============================================================
   4. Section: Topics — 5枚横並びカード, 水色BG
   ============================================================= */

/* Issue #10: PC正準拠 — mint枠カード + wave SVG + カード幅badge */
.section-topics {
  position: relative;
  padding-block: clamp(40px, 6vw, 90px);   /* Cycle 2: PC正 縦寸法に合わせて縮小 */
  background: var(--c-topics-bg);
  overflow: hidden;
}

/* SVG 波形装飾 — 下部全幅に配置、複数曲線で強め */
/* Issue #14 Cycle 1: 右下 720px → 下部全幅 100%, opacity 0.15 → 0.28 */
.section-topics__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 260px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 260' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%233EAADC' stroke-opacity='0.28' stroke-width='1.5'%3E%3Cpath d='M0 230 Q 480 190 960 230 T 1920 230'/%3E%3Cpath d='M0 200 Q 480 160 960 200 T 1920 200'/%3E%3Cpath d='M0 170 Q 480 130 960 170 T 1920 170'/%3E%3Cpath d='M0 140 Q 480 100 960 140 T 1920 140'/%3E%3Cpath d='M0 110 Q 480 70 960 110 T 1920 110'/%3E%3Cpath d='M0 80 Q 480 40 960 80 T 1920 80'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: bottom center;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.section-topics .container { position: relative; z-index: 1; }

/* =============================================================
   Section Title (共通) — Issue #19
   ============================================================= */

.section-title {
  font-family: var(--f-heading-serif);
  font-weight: 400;
  font-style: italic;   /* synthesized italic (RyuminPro に italic 字形なし) — PC正の見た目維持 */
  font-size: 2.5rem;
  color: #291d8e;
  margin: 0 0 24px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .section-title { font-size: 3.25rem; margin-bottom: 30px; }
}

.section-title--purple  { color: var(--c-purple); }
.section-title--primary { color: var(--c-primary); }
.section-title--white   { color: var(--c-white); }

.topics-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;    /* カード高さ揃え */
}
@media (min-width: 768px)  { .topics-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .topics-list { grid-template-columns: repeat(5, 1fr); gap: 20px; } }

/* card: mint 枠 + 透明 BG, thumb と body で overlap 構造 (PC正 復元) */
/* Issue #15: Issue #14 Cycle 1 で撤廃した body overlap を復元
   - background: white → transparent (section 水色 BG を body 周囲に透過)
   - border: #DBE7EF → var(--c-mint) (PC正 mint 枠)
   - overflow: hidden → visible (body が card 端からはみ出るため)
   - body margin: 0 → -32px 12px 12px (thumb overlap 復元)
*/
.topics-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  overflow: visible;                        /* body overlap のため */
  color: var(--c-text);
  text-decoration: none;
  transition: transform 200ms, box-shadow 200ms;
  height: 100%;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.05); */
}

.topics-card:hover {
  transform: translateY(-4px);
  /* box-shadow: 0 10px 24px rgba(0,0,0,0.10); */
  color: var(--c-text);
  opacity: 1;
}

/* thumb: card 内 flush, 上部のみ card 角丸に合わせる */
.topics-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.topics-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* body: thumb に -32px overlap する白ブロック + shadow で浮遊感 */
.topics-card__body {
  position: relative;
  z-index: 1;
  margin: -32px 12px 12px;                 /* Issue #15: thumb に 32px overlap 復元 */
  padding: 14px 12px 12px;
  background: var(--c-white);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-grow: 1;
  text-align: center;                      /* Issue #15: center 復元 */
}

/* pill badge, カテゴリ別色 (中央寄せ) */
.topics-card__badge {
  display: inline-block;
  align-self: center;                      /* 中央寄せ */
  padding: 1px 15px;
  border-radius: 9999px;                   /* pill */
  color: var(--c-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  width: auto;
  margin: 0;
  background: #1a0f8e;                     /* default */
}
.topics-card__badge--seminar   { background: #FF5800; }
.topics-card__badge--research  { background: #1a0f8e; }
.topics-card__badge--topics    { background: #7B00FF; }
.topics-card__badge--info      { background: #1a0f8e; }

/* 日付: 太字 中央寄せ, sans-serif */
.topics-card__date {
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-text);
  text-align: center;
  letter-spacing: 0.02em;
  margin: 2px 0 0;
}

/* title: 小さめ 中央寄せ */
.topics-card__title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.55;
  text-align: center;                      /* Issue #15: center 復元 */
  margin: 2px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .topics-card__title { font-size: 0.8125rem; }
}

/* =============================================================
   5. Section: Message — 波形ブルーBG, 教授挨拶
   ============================================================= */

.section-message {
  position: relative;
  padding-block: clamp(50px, 7vw, 100px);
  background: url("assets/img/message-bg.png") center/cover no-repeat, var(--c-message-bg);
  overflow: hidden;
}

.section-message__wave {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(62, 170, 220, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.section-message .container { position: relative; z-index: 1; }

.section-message__inner {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .section-message__inner {
    grid-template-columns: 526px 1fr;
    gap: 64px;
  }
}

.section-message__photo {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 526 / 351;
  box-shadow: 0 4px 16px rgba(30, 58, 107, 0.1);
}

.section-message__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-message__text {
  color: var(--c-text);
}

.section-message__body {
  font-size: 1rem;
  line-height: 2;
  color: var(--c-text);
  margin: 0 0 32px;
}

@media (min-width: 1024px) { .section-message__body { font-size: 1.0625rem; } }

.section-message__sign {
  text-align: right;
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--c-text);
}

.section-message__sign-dept,
.section-message__sign-name {
  display: block;
  font-weight: 700;
  font-family: var(--f-mincho);
  letter-spacing: 0.05em;
}

.section-message__sign-name {
  letter-spacing: 0.15em;
  margin-top: 4px;
}

/* =============================================================
   6. Section: Pick Up Contents — 2カラム (左3+右2)
   ============================================================= */

.section-pickup {
  padding-block: clamp(60px, 8vw, 120px);
  background: var(--c-white);
}

.pickup-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .pickup-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
  }
}

.pickup-grid__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .pickup-grid__col--left { gap: 24px; }
  .pickup-grid__col--right { gap: 24px; }
}

/* 左カラム 3バナー (Issue #9: 新バナー画像は mint枠 + 写真 + テキスト焼込 が完成済み。
   img を card 全面に配置し、右側 45% の白空白領域に description text を絶対配置。) */
.pickup-card--left {
  position: relative;
  display: block;
  border: none;             /* mint 枠は画像に焼込済 */
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 200ms, box-shadow 200ms;
}

.pickup-card--left:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(62, 197, 176, 0.25);
  color: inherit;
  opacity: 1;
}

.pickup-card--left__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1103 / 364;   /* 実画像 aspect ratio */
  object-fit: cover;
}

.pickup-card--left__body {
  position: absolute;
  top: 0;
  left: 45%;                  /* 白空白領域の開始位置 (実画像目視) */
  right: 4%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
}

.pickup-card--left__body p {
  margin: 0 0 6px;
  color: var(--c-text);
  font-size: 0.875rem;
  line-height: 1.6;
}

.pickup-card--left__body p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .pickup-card--left__body p { font-size: 0.9375rem; }
}

/* SP (≤767px): 画像フル + 通常フローで下にテキスト */
@media (max-width: 767px) {
  .pickup-card--left__body {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    padding: 12px 16px 16px;
    background: rgba(255, 255, 255, 0.9);
  }
}

/* 右カラム 2バナー (Issue #5 R4: バナー画像をカード全面表示、HTMLテキスト無し)
   バナー画像には既に interview/キャッチ/円形写真/名前 が完成デザインとして
   焼き込まれているため img 単独で完結。coming soon のみ overlay。
   BG モディファイア (mint / dark-mint) は Issue #18 で汎用化。 */
.pickup-card--right {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-white);
  background: #E8F4F1;
  transition: transform 200ms, box-shadow 200ms;
}

.pickup-card--right:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 107, 0.2);
  color: var(--c-white);
  opacity: 1;
}

/* BG モディファイア: 画像未設定時のフォールバック BG カラー
   (Issue #18: 汎用名 mint / dark-mint で管理) */
.pickup-card--mint {
  background: var(--c-mint);
}

.pickup-card--dark-mint {
  background: var(--c-mint-2);
}

.pickup__interview-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.pickup-interview-wrap {
  position: relative;
}

.pickup-interview-wrap--has-cs {
  padding-top: 30px; /* coming soon 分の余白確保 (Figma height 30px) */
}

.pickup__interview-comingsoon {
  position: absolute;
  top: 0;
  left: 32%; /* Figma: card 幅504px 中の left+160px ≒ 32% */
  font-family: var(--f-heading);
  font-size: 1.125rem; /* 約18px (Figma 30px 高さから逆算) */
  font-weight: 400;
  font-style: italic;
  color: var(--c-text-primary);
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: none;
  z-index: 2;
}

/* =============================================================
   7. Section: Specialty field — 4×2 医師グリッド
   ============================================================= */

.section-specialty {
  padding-block: clamp(60px, 8vw, 120px);
  background: var(--c-white);
}

.section-specialty__intro {
  border: 1px solid var(--c-purple);
  padding: 24px 32px;
  border-radius: 4px;
  color: var(--c-text);
  font-family: var(--f-mincho);
  font-size: 0.9375rem;
  line-height: 1.9;
  margin: 0 0 56px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .section-specialty__intro { font-size: 1rem; padding: 28px 40px; }
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
}

@media (min-width: 768px)  { .specialty-grid { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; } }
@media (min-width: 1200px) { .specialty-grid { gap: 40px 32px; } }

.specialty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.specialty-card__portrait {
  width: 100%;
  aspect-ratio: 272 / 370;
  overflow: hidden;
  border-radius: 6px;
  /* background: #F0F4F8; */
  /* box-shadow: 0 4px 12px rgba(30, 58, 107, 0.08);/ */
}

.specialty-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* Issue #5 R5: 顔を上寄せしてトリミング切れ回避 */
}

.specialty-card__field {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  text-align: center;
  letter-spacing: 0.05em;
  font-family: var(--f-mincho);
}

@media (min-width: 1024px) { .specialty-card__field { font-size: 1.125rem; } }

/* =============================================================
   8. Bridge banners — Footer 上部内で表示 (Issue #21)
   ============================================================= */

/* Issue #21: 旧 .section-bridge (white BG + border-top) は撤去.
   ラッパー .bridge-banners-wrap は Footer 内 (.site-footer__bridge) で緑グラデ上に配置される. */
.bridge-banners-wrap {
  transform: translateY(-50%);
  /* Footer BG グラデ上でカードが浮き上がる形. padding は .site-footer__bridge が担当. */
}

.bridge-banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px)  { .bridge-banners { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .bridge-banners { gap: 32px; } }

/* Issue #6: ロゴ画像 (bridge-jos / bridge-hospital / bridge-university).
   Issue #21: Footer 内配置に伴い明示的に white BG カード化. */
.bridge-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  /* padding: 16px 24px; */
  /* background: var(--c-white); */
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: transform 200ms, box-shadow 200ms;
}

@media (min-width: 1024px) { .bridge-banner { min-height: 120px; } }

.bridge-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 1;
}

.bridge-banner__img {
  display: block;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* =============================================================
   9. Footer — 緑グラデBG (Issue #21)
   ============================================================= */

/* Issue #21: 旧 濃紺 BG (--c-dark #1A3A6B) を撤去し、
   Footer 全体に上→中→下の緑グラデを適用. Bridge banners を Footer 内に包含. */
.site-footer {
  background: linear-gradient(
    180deg,
    var(--c-footer-dark) 0%,
    var(--c-footer-mid) 70%,
    var(--c-footer-fade) 100%
  );
  color: var(--c-white);
}

/* Footer 上部: bridge banners を包む帯 (グラデの薄緑→深緑遷移区間) */
.site-footer__bridge {
  /* padding: 56px 0 32px; */
}

/* @media (min-width: 1024px) { .site-footer__bridge { padding: 72px 0 40px; } } */

/* Footer メイン: 左 (ロゴ+住所+Tel) / 右 (ナビ横並び) の 2 カラム */
.site-footer__main {
  padding: 24px 0 32px;
}

@media (min-width: 1024px) { .site-footer__main { padding: 32px 0 40px; } }

/* Footer 内レイアウト (Issue #24 で DOM 再構築):
   .site-footer__cols は flex column で 2 段構成.
   上段 .site-footer__logo-row  : logo + 講座名英語 (全幅, 常に 1col).
   下段 .site-footer__info-row  : PC (>=768px) で 2col grid (左=住所+Tel / 右=nav),
                                  SP で 1col 縦積み.
   Issue #23 の col--left を透明化する応急処置 (display:contents トリック) は撤廃済. */
.site-footer__cols {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1024px) {
  .site-footer__cols { gap: 40px; }
}

.site-footer__logo-row {
  width: 100%;
}

.site-footer__info-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 768px) {
  .site-footer__info-row {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 20px;
  }
}

.site-footer__col {
  min-width: 0;
}

/* 下段左カラム: contact-row×2 を縦積み (Address 上 / Tel 下) */
.site-footer__col--left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 上段: logo-lockup は logo と site-name-en を縦積み. 内側 logo-link (a) は 100% */
.site-footer__logo-lockup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.site-footer__logo-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: var(--c-white);
}

/* Issue #6: logo-footer.svg (白抜き済) に置換. */
.site-footer__logo-mark {
  width: 240px;
  height: auto;
  max-width: 100%;
  display: block;
}

.site-footer__site-name-en {
  margin: 0;
  font-family: var(--f-heading);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .site-footer__site-name-en { font-size: 0.8125rem; }
}

/* 住所行 + Googlemap ボタン / Tel 行 を共通 flex 行として扱う */
.site-footer__contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__address-text {
  line-height: 1.7;
}

.site-footer__tel-label,
.site-footer__tel-note {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__tel {
  color: var(--c-white);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--f-heading);
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

.site-footer__tel:hover { color: var(--c-white); opacity: 0.85; }

/* Issue #21: Googlemap ボタン (pill / 住所行の直後) */
.site-footer__gmap-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 20px;
  background: var(--c-white);
  color: var(--c-text);
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  transition: opacity 200ms, transform 200ms;
}

.site-footer__gmap-btn:hover {
  background: var(--c-white);
  color: var(--c-text);
  opacity: 0.85;
}

/* 右カラム: ナビ横並び */
.site-footer__col--right {
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .site-footer__col--right { justify-content: flex-end; }
}

.site-footer__nav {
  width: 100%;
}

.site-footer__nav-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .site-footer__nav-list { justify-content: flex-end; }
}

.site-footer__nav-list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 4px 0;
  display: inline-block;
  transition: opacity 200ms;
}

.site-footer__nav-list a:hover {
  color: var(--c-white);
  opacity: 0.75;
}

/* Footer 区切り線 (白ライン) */
.site-footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  margin: 0;
}

/* Footer 下部: Copyright + 法務リンク */
.site-footer__bottom {
  padding: 20px 0 32px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__bottom .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .site-footer__bottom .container {
    flex-direction: row;
    align-items: center;
  }
}

.site-footer__copyright {
  margin: 0;
  font-family: var(--f-heading);
  letter-spacing: 0.02em;
}

.site-footer__legal {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 24px;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.75rem;
}

.site-footer__legal a:hover { color: var(--c-white); opacity: 1; }

/* Issue #24: Responsive — モバイルでは info-row 1col + nav 縦積み.
   (Issue #21 で cols の grid-template-columns を切替えていた記述は info-row 側へ移設) */
@media (max-width: 767px) {
  .site-footer__info-row { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__nav-list {
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
  }
}

/* =============================================================
   10. Page (generic single / page) - 継承
   ============================================================= */

.page-hero {
  padding: 64px 0 32px;
  background: #F7F9FA;
  border-bottom: 1px solid var(--c-border);
}

@media (min-width: 1024px) { .page-hero { padding: 96px 0 48px; } }

.page-hero__label {
  display: block;
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--c-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-hero__title {
  font-size: 1.75rem;
  margin: 0;
}

@media (min-width: 1024px) { .page-hero__title { font-size: 2.5rem; } }

.page-content { padding: 48px 0; }
@media (min-width: 1024px) { .page-content { padding: 64px 0; } }

.page-content__inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-content__inner img { border-radius: 6px; margin: 24px 0; }
.page-content__inner h2 { font-size: 1.5rem; margin-top: 40px; }
.page-content__inner h3 { font-size: 1.25rem; margin-top: 32px; }

/* =============================================================
   11. Breadcrumbs
   ============================================================= */

.breadcrumbs {
  padding: 16px 0;
  font-size: 0.8125rem;
  color: var(--c-text-mute);
}

.breadcrumbs__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs__item::after {
  content: "/";
  margin-left: 8px;
  color: #9AA5AC;
}

.breadcrumbs__item:last-child::after { content: ""; }

.breadcrumbs__item a { color: var(--c-text-mute); text-decoration: none; }
.breadcrumbs__item a:hover { color: var(--c-primary); text-decoration: underline; }

/* =============================================================
   12. Pagination
   ============================================================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  transition: background 200ms, border-color 200ms;
}

.pagination .page-numbers:hover {
  background: #EEF3F5;
  border-color: var(--c-primary);
}

.pagination .page-numbers.current {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

/* =============================================================
   13. Archive listings: news-list / staff / voice (継承)
   ============================================================= */

.news-list {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px)  { .news-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-list { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

.news-list--wide { grid-template-columns: 1fr; }

.news-card {
  display: block;
  padding: 20px 24px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(30, 42, 50, 0.08);
  border-color: var(--c-primary);
  color: inherit;
  opacity: 1;
}

.news-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--c-text-mute);
  margin-bottom: 8px;
}

.news-card__category {
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--c-topics-bg);
  color: var(--c-primary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.news-card__date {
  font-family: var(--f-heading);
  font-feature-settings: "tnum";
  font-weight: 500;
}

.news-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list__more {
  text-align: center;
  margin-top: 32px;
}

/* Staff (archive) grid — 継承 */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px)  { .staff-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .staff-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.staff-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms;
}

.staff-card:hover { transform: translateY(-4px); color: inherit; opacity: 1; }

.staff-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  background: #EEF3F5;
}

.staff-card__name {
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--c-text);
}

.staff-card__position {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--c-text-mute);
}

/* Voice (archive) grid — 継承 */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px)  { .voice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .voice-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.voice-card {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms, box-shadow 200ms;
}

.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(30, 42, 50, 0.1);
  color: inherit;
  opacity: 1;
}

.voice-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #EEF3F5;
}

.voice-card__body { padding: 16px 20px 20px; }

.voice-card__meta {
  font-size: 0.75rem;
  color: var(--c-text-mute);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
  font-family: var(--f-heading);
  font-weight: 600;
  text-transform: uppercase;
}

.voice-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
  line-height: 1.5;
}

/* =============================================================
   14. Single: staff / news / voice (継承)
   ============================================================= */

.single-staff__layout,
.single-voice__layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .single-staff__layout {
    grid-template-columns: 4fr 6fr;
    gap: 64px;
  }
}

.single-staff__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}

.single-staff__position {
  display: inline-block;
  padding: 4px 12px;
  background: var(--c-topics-bg);
  color: var(--c-primary);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.single-staff__name { font-size: 1.75rem; margin: 0 0 8px; }
.single-staff__specialty { color: var(--c-text-mute); margin-bottom: 24px; }

/* =============================================================
   15. Contact Form (CF7 compatibility)
   ============================================================= */

.contact-form { max-width: 640px; margin: 0 auto; }
.contact-form p { margin: 0 0 20px; }

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--c-text);
  background: var(--c-white);
  border: 1px solid #CBD3D8;
  border-radius: 6px;
  transition: border-color 200ms, box-shadow 200ms;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(15, 92, 164, 0.15);
}

.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-form .wpcf7-submit,
.contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
}

.contact-form .wpcf7-submit:hover,
.contact-form button[type="submit"]:hover {
  background: #0D4E8B;
  transform: translateY(-2px);
}

/* =============================================================
   16. 404
   ============================================================= */

.error-404 {
  padding: 96px 16px;
  text-align: center;
}

.error-404__code {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 6rem;
  color: var(--c-primary);
  line-height: 1;
  margin: 0 0 16px;
}

/* =============================================================
   17. Reduced motion
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
