/* ============================================
   MEDIORA 下層ページ共通スタイル
   ============================================ */

:root {
  --navy: #123458;
  --navy-dark: #09243f;
  --navy-soft: #eaf1f7;
  --teal: #28a99a;
  --teal-dark: #168b7f;
  --teal-soft: #e9f8f5;
  --text: #1c2b39;
  --subtext: #5e6e7d;
  --border: #dce5ec;
  --background: #f6f9fb;
  --white: #ffffff;
  --warning: #fff8e8;
  --shadow: 0 12px 34px rgba(18, 52, 88, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --content-width: 1160px;
  --prose-width: 800px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

/* ---- 広告表記 ---- */

.ad-notice {
  padding: 9px 20px;
  color: #53616e;
  background: #f3f6f8;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  text-align: center;
}

/* ---- ヘッダー ---- */

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 229, 236, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  width: 245px;
  max-width: 62vw;
  align-items: center;
}

.logo img {
  width: 100%;
  height: auto;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav a {
  position: relative;
  color: #314354;
  font-size: 14px;
  font-weight: 700;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--teal);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 12px 18px;
  color: var(--white) !important;
  background: var(--navy);
  border-radius: 999px;
}

.nav-cta::after {
  display: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  border-radius: 2px;
}

/* ---- ページヘッダー(下層) ---- */

.page-header {
  padding: 58px 0 46px;
  color: #fff;
  background: linear-gradient(135deg, #123458 0%, #17547a 45%, #28a99a 100%);
}

.page-header .breadcrumb {
  color: rgba(255, 255, 255, 0.75);
}

.page-header .breadcrumb a {
  color: #9fe8dd;
}

.page-header .breadcrumb li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--subtext);
  font-size: 12px;
  list-style: none;
}

.breadcrumb a {
  color: var(--teal-dark);
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 8px;
  color: #9fb2c1;
  content: "›";
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #9fe8dd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.page-eyebrow::before {
  width: 28px;
  height: 2px;
  background: #7fe0d4;
  content: "";
}

.page-title {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.page-lead {
  max-width: var(--prose-width);
  margin: 16px 0 0;
  color: #dcebf2;
  font-size: 15px;
}

.page-meta {
  margin-top: 16px;
  color: #b8cfd9;
  font-size: 12px;
}

/* ---- 本文(prose) ---- */

.page-body {
  padding: 64px 0 80px;
}

.prose {
  max-width: var(--prose-width);
}

.prose h2 {
  margin: 54px 0 18px;
  padding: 8px 0 14px 16px;
  color: var(--navy);
  border-left: 5px solid var(--teal);
  border-bottom: 2px solid #e0ecf3;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.5;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 32px 0 12px;
  padding: 8px 12px;
  color: var(--navy);
  background: #f2f9f8;
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  font-size: 18px;
  line-height: 1.5;
}

.prose p {
  margin: 0 0 16px;
  font-size: 15px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
  font-size: 15px;
}

.prose li {
  margin-bottom: 6px;
}

.prose li::marker {
  color: var(--teal-dark);
}

/* ---- 補助パーツ ---- */

.info-box {
  margin: 22px 0;
  padding: 22px 24px;
  background: var(--teal-soft);
  border: 1px solid #cceee8;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.info-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
}

.note-box {
  margin: 22px 0;
  padding: 22px 24px;
  color: #5a4c2b;
  background: var(--warning);
  border: 1px solid #eedba9;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.note-box strong {
  display: block;
  margin-bottom: 6px;
  color: #493d22;
}

.info-table {
  width: 100%;
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 14px;
}

.info-table th,
.info-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table th {
  width: 32%;
  color: #fff;
  background: var(--navy);
  font-weight: 700;
}

.related-links {
  display: grid;
  gap: 12px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.related-links h2 {
  margin: 0 0 4px;
  padding: 0;
  color: var(--navy);
  border: none;
  font-size: 18px;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--prose-width);
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.related-link:hover {
  border-color: var(--teal);
  transform: translateX(3px);
}

.related-link .arrow {
  color: var(--teal-dark);
  font-size: 18px;
}

/* ---- フッター ---- */

.site-footer {
  margin-top: 88px;
  color: #dce8f1;
  background: var(--navy-dark);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding: 62px 0 48px;
}

.footer-logo {
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.footer-copy {
  max-width: 400px;
  margin: 0;
  color: #b8c9d7;
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer-links h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 14px;
}

.footer-links a {
  display: block;
  margin-top: 9px;
  color: #b8c9d7;
  font-size: 13px;
}

.footer-links a:hover {
  color: #65d4c8;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #9fb2c1;
  font-size: 12px;
  text-align: center;
}

/* ---- レスポンシブ ---- */

@media (max-width: 980px) {
  .global-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .global-nav.is-open {
    display: grid;
  }

  .global-nav a {
    padding: 8px 4px;
  }

  .menu-button {
    display: block;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .global-nav {
    top: 68px;
  }

  .logo {
    width: 190px;
  }

  .page-header {
    padding: 44px 0 38px;
  }

  .page-body {
    padding: 48px 0 60px;
  }

  .info-table th {
    width: 38%;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }
}

/* ============================================
   ▼ ブランド配色リニューアル:ミント×ラベンダー(明るいパステル)
   既存ルールを末尾で上書き(全ページ共通の土台)
   ============================================ */
:root {
  --navy: #435468;        /* 見出し等の文字:きつい紺→やわらかいスレート */
  --navy-dark: #3c4c5e;
  --navy-soft: #eef3fb;
  --teal: #6fc9bd;        /* 主役:ミント */
  --teal-dark: #2f9e90;   /* アクセント文字用の濃いミント(可読) */
  --teal-soft: #e9faf6;
  --text: #3f4d57;
  --subtext: #7c8a92;
  --border: #e6eef0;
  --background: #f5fbfa;
  --shadow: 0 14px 40px rgba(150, 170, 200, 0.16);
}

/* ---- ページヘッダー(下層):濃紺グラデ+白文字 → 明るいグラデ+濃文字 ---- */
.page-header {
  color: #3f4d57;
  background: linear-gradient(135deg, #e9faf6 0%, #eef0fb 55%, #f4eefb 100%);
}
.page-header .breadcrumb { color: #6b7783; }
.page-header .breadcrumb a { color: #2f9e90; }
.page-header .breadcrumb li:not(:last-child)::after { color: #a9b6bd; }
.page-eyebrow { color: #2f9e90; }
.page-eyebrow::before { background: #6fc9bd; }
.page-title { color: #35434f; }
.page-lead { color: #4d5a64; }
.page-meta { color: #7c8a92; }

/* ---- ヘッダーCTAピル:紺 → ミント→ラベンダー ---- */
.nav-cta { background: linear-gradient(135deg, #6fc9bd, #8b74c4); }

/* ---- 汎用テーブル見出し:濃紺 → 濃いミント ---- */
.info-table th { background: #2f8f80; }

/* ---- フッター:濃紺の塗りつぶし → やわらかいラベンダー地+濃文字 ---- */
.site-footer { color: #5a6570; background: #f5f1fb; border-top: 1px solid #e7ddf6; }
.footer-links h3 { color: #46525f; }
.footer-copy { color: #7c8a92; }
.footer-links a { color: #7c8a92; }
.footer-links a:hover { color: #2f9e90; }
.footer-bottom {
  color: #8a95a0;
  border-top: 1px solid rgba(120, 110, 160, 0.15);
}
