@charset "UTF-8";
/* ------------------------------------------------------------------
   Dental Diabetes 研究会 — dental-diabetes.com
   erhp.org (愛媛腎健プロジェクト) の style.css を土台に、配色をロゴへ合わせたもの。
   旧ブラウザ (EdgeHTML 18 / Edge 44) でも読めることを前提に、
   CSS変数・flex gap・:is() 等の新しい記法は使わない。

   配色の由来 — ロゴの歯のストロークは左が赤、右が青。
     青 #2265AA … Diabetes。青い輪は国際的な糖尿病のシンボル。本文量が多いので主色に置く
     赤 #C0392B … Dental。リンクのホバー、次回開催の印、注意書きなどアクセントに限る
   本文・見出し・リンク・表・フッタのすべてで WCAG AA (4.5:1) を満たすことを実測で確認済み。
   ------------------------------------------------------------------ */

/* ---- reset ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
               "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: #23282d;
  background: #f7fafc;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: #1a5c96; }
a:hover { color: #c0392b; }

/* ---- layout ---- */
.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #dce4eb;
  border-top: 3px solid #c0392b;              /* 旧ブラウザ向けの単色フォールバック */
  border-image: linear-gradient(90deg, #c0392b 0%, #b0424c 45%, #2265aa 100%) 1;
  position: relative;
}
.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.brand {
  text-decoration: none;
  color: inherit;
  display: block;
  line-height: 0;
}
.brand-logo {
  display: inline-block;
  width: 44px;
  height: 44px;
  vertical-align: middle;
  margin-right: 11px;
}
.brand-text { display: inline-block; vertical-align: middle; line-height: 1.3; }
.brand-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #1a5c96;
}
.brand-en {
  display: block;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: #8492a0;
  margin-top: 1px;
}
.site-nav { margin: 0; padding: 0; }
.site-nav a {
  display: inline-block;
  margin-left: 22px;
  padding: 4px 0;
  font-size: 14.5px;
  text-decoration: none;
  color: #414b55;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #1a5c96; border-bottom-color: #c8dcee; }
.site-nav a.current { color: #1a5c96; border-bottom-color: #1a5c96; font-weight: 700; }

/* ---- hero ---- */
.hero {
  background: #1a5c96;
  background-image: linear-gradient(160deg, #1a5c96 0%, #14446e 100%);
  color: #ffffff;
  padding: 64px 0 60px;
  border-bottom: 4px solid #c0392b;   /* ロゴの赤。青地を赤で締める */
}
.hero h1 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.45;
  letter-spacing: .04em;
  font-weight: 700;
}
.hero .sub {
  margin: 0 0 26px;
  font-size: 14px;
  letter-spacing: .16em;
  color: #a8cdea;
}
.hero p.lead {
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 2;
  color: #dce9f4;
  max-width: 42em;
}
.hero .btn-row { margin: 0; }

/* ---- hero：本文＋位置図の2カラム ---- */
/* 900px 未満では地図が本文の下に回り込む（グリッドを適用しない） */
/* ヒーロー右上のERHPマーク。広い画面でのみ表示する */
.hero-badge { display: none; }

.hero-map {
  margin: 28px 0 0;
  background: #ffffff;
  border: 1px solid #dce4eb;
  padding: 10px 10px 7px;
}
.hero-map img { display: block; width: 100%; height: auto; }
.hero-map p {
  margin: 7px 2px 3px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #5a6672;
}
@media (min-width: 900px) {
  .hero-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 38px 396px;
    grid-template-columns: 1fr 396px;
    grid-gap: 38px;
    -ms-flex-align: center;
    align-items: center;
  }
  .hero-text { -ms-grid-column: 1; }
  .hero-map  { -ms-grid-column: 3; margin: 0; }
}
/* 本文カラムに余裕がある幅でだけマークを出す（狭いと見出しに重なるため） */
@media (min-width: 1060px) {
  .hero-text { position: relative; }
  .hero-badge {
    display: block;
    position: absolute;
    top: -30px;
    right: 0;
    margin: 0;
  }
  .hero-badge img { display: block; width: 120px; height: 120px; }
  .hero-text .sub,
  .hero-text h1 { padding-right: 148px; }
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  margin: 0 12px 10px 0;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid transparent;
}
.btn-primary { background: #ffffff; color: #1a5c96; }
.btn-primary:hover { background: #edf4fa; color: #14446e; }
.btn-ghost { border-color: #8fb8da; color: #ffffff; }
.btn-ghost:hover { border-color: #ffffff; color: #ffffff; }
.btn-solid { background: #1a5c96; color: #ffffff; }
.btn-solid:hover { background: #c0392b; color: #ffffff; }
.btn-line { border-color: #1a5c96; color: #1a5c96; background: #ffffff; }
.btn-line:hover { background: #edf4fa; }

/* 右寄せのボタン行（カード内の導線用） */
.btn-row.btn-right { text-align: right; margin-bottom: 0; }
.btn-row.btn-right .btn { margin-right: 0; }

/* ---- sections ---- */
main { padding: 0 0 20px; }
section { padding: 52px 0; border-bottom: 1px solid #e4eaf0; }
section:last-of-type { border-bottom: 0; }
section.alt { background: #edf4fa; }

h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: #1b2026;
  font-weight: 700;
}
h2 .en {
  display: block;
  font-size: 12px;
  letter-spacing: .18em;
  color: #8492a0;
  font-weight: 400;
  margin-bottom: 4px;
}
h3 {
  margin: 32px 0 10px;
  font-size: 19px;
  line-height: 1.6;
  color: #1a5c96;
  font-weight: 700;
}
h4 { margin: 24px 0 6px; font-size: 16.5px; font-weight: 700; }
p { margin: 0 0 1.1em; }
.muted { color: #5a6672; font-size: 14.5px; }
.small { font-size: 14px; }

ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }

/* ---- pillars ---- */
.pillar {
  background: #ffffff;
  border: 1px solid #dce4eb;
  border-left: 4px solid #1a5c96;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.pillar h3 { margin-top: 0; }
.pillar .num {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .1em;
  color: #c0392b;
  font-weight: 700;
  margin-bottom: 2px;
}

/* ---- greeting ---- */
.greeting {
  background: #ffffff;
  border: 1px solid #dce4eb;
  padding: 32px 34px;
}
.greeting p { line-height: 2.1; }
.sign { text-align: right; margin-top: 24px; font-size: 15px; color: #414b55; }
.sign strong { font-size: 17px; }

/* ---- comparison figure ---- */
.compare { margin: 8px 0 4px; }
.compare .col { margin-bottom: 22px; }
.compare figure { margin: 0; }
.compare img { display: block; width: 100%; border: 1px solid #dce4eb; background: #fff; }
.compare figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #5a6672;
}
.compare .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 9px;
  margin-right: 8px;
  border-radius: 2px;
}
.tag-plain { background: #e2e8ee; color: #5a6672; }
.tag-navi { background: #1a5c96; color: #ffffff; }

@media (min-width: 720px) {
  .compare { display: -ms-grid; display: grid; grid-template-columns: 1fr 1fr; grid-gap: 22px; }
}

/* ---- 図版（フローチャート） ---- */
.figbox {
  margin: 10px 0 6px;
  background: #ffffff;
  border: 1px solid #dce4eb;
  padding: 14px;
}
.figscroll { overflow-x: auto; }
.figscroll img {
  display: block;
  width: 100%;
  min-width: 660px;
  height: auto;
}
.figbox figcaption {
  margin: 12px 2px 0;
  font-size: 13px;
  line-height: 1.75;
  color: #5a6672;
}

/* ---- feature list ---- */
.features { margin: 0; padding: 0; list-style: none; }
.features > li {
  border-top: 1px solid #dce4eb;
  padding: 20px 0 6px;
  margin: 0;
}
.features > li:first-child { border-top: 0; }
.features h4 { margin: 0 0 4px; color: #1b2026; }
.features .n {
  display: inline-block;
  width: 24px; height: 24px;
  line-height: 24px;
  text-align: center;
  background: #1a5c96;
  color: #fff;
  font-size: 13px;
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: 2px;
}

/* ---- tables ---- */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  background: #fff;
  min-width: 480px;
}
th, td {
  border: 1px solid #d3dde6;
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
}
thead th { background: #edf4fa; color: #14446e; font-weight: 700; }
tbody th { background: #f2f6fa; font-weight: 700; white-space: nowrap; }
td.center, th.center { text-align: center; }
.tbl-compact th, .tbl-compact td { padding: 8px 11px; font-size: 14.5px; }

/* ---- events ---- */
.event {
  background: #ffffff;
  border: 1px solid #dce4eb;
  padding: 22px 26px;
  margin-bottom: 16px;
}
.event.next { border-color: #1a5c96; border-width: 2px; }
.event .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  background: #c0392b;
  color: #fff;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.event h3 { margin: 0 0 6px; font-size: 18px; }
.event .when { font-weight: 700; color: #1b2026; margin: 0 0 6px; }
.event .detail { margin: 0; font-size: 14.5px; color: #4a5560; line-height: 1.85; }
.event .sponsor { margin: 8px 0 0; font-size: 13px; color: #7a8794; }

/* ---- 開催プログラム ---- */
.event .ev-sub { margin: -2px 0 10px; font-size: 14.5px; color: #5a6672; }
.program { margin: 16px 0 6px; border-top: 1px solid #e7edf2; }
.prg { padding: 13px 0 11px; border-bottom: 1px solid #e7edf2; }
.prg-head { margin: 0 0 7px; font-size: 13px; color: #5a6672; line-height: 2; }
.prg-head:after { content: ""; display: block; clear: both; }
.prg-tag {
  display: inline-block;
  background: #edf4fa;
  color: #14446e;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 3px 11px;
  margin-right: 12px;
}
.prg-time { margin-right: 14px; }
.prg-chair { float: right; }
.prg-title {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  color: #1b2026;
  line-height: 1.8;
}
.prg-speaker { margin: 0; font-size: 14px; color: #414b55; line-height: 1.9; text-align: right; }

/* ---- callout ---- */
.callout {
  background: #edf4fa;
  border: 1px solid #c8dcee;
  padding: 20px 24px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: #14446e; }
.callout.warn { background: #fbf2f1; border-color: #e8d2cf; }
.callout.warn strong { color: #b3251c; }

/* ---- steps ---- */
ol.steps { list-style: none; padding: 0; counter-reset: st; }
ol.steps > li {
  counter-increment: st;
  position: relative;
  padding: 0 0 18px 46px;
  margin: 0;
  border-left: 2px solid #dde4ea;
  margin-left: 15px;
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps > li:before {
  content: counter(st);
  position: absolute;
  left: -16px; top: 0;
  width: 30px; height: 30px;
  line-height: 30px;
  text-align: center;
  background: #1a5c96;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}
ol.steps h4 { margin: 2px 0 3px; }

/* ---- trouble ---- */
.trouble {
  background: #fff;
  border: 1px solid #dce4eb;
  padding: 20px 24px;
  margin-bottom: 14px;
}
.trouble h4 { margin: 0 0 8px; color: #b3251c; }
.trouble dl { margin: 0; }
.trouble dt { font-weight: 700; font-size: 14px; color: #5a6672; float: left; width: 4.2em; clear: left; }
.trouble dd { margin: 0 0 4px 4.6em; font-size: 15px; }

/* ---- contact ---- */
.mailbox {
  background: #fff;
  border: 2px solid #1a5c96;
  padding: 26px 28px;
  text-align: center;
  margin-bottom: 24px;
}
.mailbox .addr {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #1a5c96;
  margin: 4px 0 14px;
  word-break: break-all;
}

/* ---- footer ---- */
.site-footer {
  background: #23282d;
  color: #b3bec9;
  padding: 40px 0 30px;
  font-size: 13.5px;
  line-height: 1.95;
}
.site-footer .disclaimer {
  border-left: 3px solid #3a4650;
  padding-left: 18px;
  margin: 0 0 26px;
}
.site-footer .disclaimer p { margin: 0 0 .7em; }
.site-footer .disclaimer p:last-child { margin-bottom: 0; }
.site-footer strong { color: #e8edf2; }
.site-footer a { color: #a8cdea; }
.footer-bottom {
  border-top: 1px solid #333e48;
  padding-top: 16px;
  font-size: 12.5px;
  color: #8c99a5;
}
.footer-bottom .fnav a { margin-right: 16px; }

/* ---- misc ---- */
.updated { font-size: 13px; color: #8492a0; margin-top: 30px; }
.anchor-list { margin: 0 0 8px; padding: 0; list-style: none; }
.anchor-list li { display: inline-block; margin: 0 18px 6px 0; }

/* ---- responsive ---- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand-logo { width: 36px; height: 36px; margin-right: 8px; }
  .brand-name { font-size: 15.5px; }
  .brand-en { font-size: 9px; letter-spacing: .06em; }
  .hero { padding: 46px 0 42px; }
  .hero h1 { font-size: 26px; }
  .hero p.lead { font-size: 16px; }
  h2 { font-size: 21px; }
  h3 { font-size: 17.5px; }
  section { padding: 40px 0; }
  .wrap, .wrap-wide { padding: 0 18px; }
  .header-inner { padding: 14px 18px; }
  .site-nav a { margin: 0 16px 0 0; font-size: 14px; }
  .greeting, .pillar, .event, .trouble { padding: 20px 18px; }
  .btn { display: block; text-align: center; margin-right: 0; }
  .prg-chair { display: block; float: none; text-align: right; }
  .prg-title { font-size: 14.5px; }
  .hero-map { margin-top: 22px; padding: 8px 8px 5px; }
  .hero-map p { font-size: 12px; }
}

/* ---- 表ヘッダの版数・インラインコード ---- */
.th-sub {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .06em;
  color: #5a6672;
}
code {
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: .92em;
  background: #edf4fa;
  border: 1px solid #d9e2ea;
  padding: 1px 5px;
  white-space: nowrap;
}

/* ---- 体験カード ---- */
.trycard {
  background: #ffffff;
  border: 1px solid #dce4eb;
  border-top: 3px solid #1a5c96;
  padding: 22px 24px 20px;
  height: 100%;
}
.trycard .tc-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #5a6672;
  margin: 0 0 6px;
}
.trycard h3.tc-h { margin: 0 0 12px; font-size: 20px; }
.trycard p:last-child { margin-bottom: 0; }
.trycard .btn-row { margin: 16px 0 10px; }
.trycard .btn { margin-bottom: 0; }

/* ---- eGFR NAVI ロゴ ---- */
.hero-mark { margin: 0 0 18px; }
.hero-mark img {
  display: block;
  width: 96px;
  height: 96px;
  background: #ffffff;
  border-radius: 50%;
}
.lockup { margin: 0 0 22px; }
.lockup img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
}
@media (max-width: 640px) {
  .hero-mark img { width: 76px; height: 76px; }
  .lockup img { max-width: 280px; }
}

/* ---- eGFR NAVI ページ：左端を全セクションで揃える ---- */
/* 全セクションを wrap-wide（1040px）で統一。本文だけ行長を抑えるが、
   max-width は左寄せのままなので左端はずれない。 */
.p-navi main > section > .wrap-wide > p,
.p-navi main > section > .wrap-wide > ul,
.p-navi main > section > .wrap-wide > ol,
.p-navi main > section > .wrap-wide > .callout { max-width: 840px; }
.p-navi .hero p.lead { max-width: 840px; }

/* ---- print ---- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.7; }
  .site-nav, .hero .btn-row, .btn { display: none !important; }
  .figscroll { overflow: visible; }
  .figscroll img { min-width: 0; }
  .figbox { border: 1pt solid #999; padding: 6pt; page-break-inside: avoid; }
  .prg { page-break-inside: avoid; }
  .hero-badge { display: none !important; }
  .site-header { border-bottom: 1pt solid #000; padding-bottom: 6pt; }
  .brand-logo { width: 34pt; height: 34pt; }
  .hero-mark img { width: 40pt; height: 40pt; }
  .lockup img { max-width: 150pt; }
  .hero { background: #fff !important; color: #000; padding: 0 0 18pt; border-bottom: 2pt solid #000; }
  .hero h1, .hero p.lead, .hero .sub { color: #000; }
  .hero-grid { display: block; }
  .hero-map { max-width: 320pt; margin: 12pt 0 0; border: 1pt solid #999; padding: 0; }
  .hero-map p { color: #333; }
  section { padding: 14pt 0; border-bottom: .5pt solid #999; page-break-inside: avoid; }
  .pillar, .event, .greeting, .callout, .trouble, .trycard { border: .5pt solid #999; background: #fff; page-break-inside: avoid; }
  table { min-width: 0; font-size: 9.5pt; page-break-inside: avoid; }
  .site-footer { background: #fff; color: #000; border-top: 1pt solid #000; }
  .site-footer a, a { color: #000; text-decoration: underline; }
  .tbl-scroll { overflow: visible; }
  code { background: #fff; border: .5pt solid #999; }
  .th-sub { color: #000; }
  h2, h3 { page-break-after: avoid; }
}
