/* ===========================
   相模原眼科 白内障ページ 共通スタイル
   SEO / AIO 重視 / 患者向け可読性
   =========================== */

:root {
  --c-main: #195A88;
  --c-accent: #007DD6;
  --c-dark: #2D5984;
  --c-light: #D1ECFF;
  --c-soft: #ECF2F2;
  --c-gray: #F1F1F1;
  --c-text-gray: #777777;
  --c-cta-pink: #eb6b72;
  --c-cta-green: #07b53b;
  --c-cta-orange: #f08a3c;
  --c-text: #222;
  --c-border: #e3e9ef;
  --c-white: #ffffff;

  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "MS PMincho", serif;
  --font-num: "Helvetica Neue", Arial, sans-serif;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --shadow-card: 0 2px 12px rgba(25, 90, 136, 0.08);
  --shadow-cta: 0 8px 24px rgba(235, 107, 114, 0.25);

  --max-inner: 1100px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { opacity: 0.8; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-main);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.site-logo__mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-main);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.site-logo small { display: block; font-size: 11px; color: var(--c-text-gray); font-weight: 400; }

.site-header__cta {
  display: flex; align-items: center; gap: 8px;
}
.site-header__tel {
  color: var(--c-main);
  font-weight: 700;
  font-family: var(--font-num);
  font-size: 18px;
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.site-header__tel small {
  display: block; font-size: 10px; color: var(--c-text-gray); font-weight: 400;
}
.btn-reserve {
  background: var(--c-cta-pink);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .site-header__tel { display: none; }
  .btn-reserve { padding: 8px 12px; font-size: 13px; }
  .site-logo { font-size: 14px; }
  .site-logo small { display: none; }
}

/* ===== パンくず ===== */
.breadcrumb {
  background: var(--c-light);
  font-size: 12px;
  color: var(--c-dark);
}
.breadcrumb__list {
  max-width: var(--max-inner);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
}
.breadcrumb__list li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--c-text-gray);
}
.breadcrumb a { color: var(--c-dark); }

/* ===== ヒーロー（ファーストビュー） ===== */
.hero {
  background: linear-gradient(135deg, #E8F4FD 0%, #D1ECFF 100%);
  padding: 48px 20px 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  filter: blur(30px);
}
.hero__inner {
  max-width: var(--max-inner);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__kicker {
  display: inline-block;
  background: var(--c-main);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--c-main);
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.hero__title ruby rt { font-size: 11px; color: var(--c-dark); }
.hero__sub {
  font-size: 18px;
  color: var(--c-dark);
  line-height: 1.7;
  margin: 0 0 20px;
}
.hero__kpis {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero__kpi {
  background: #fff;
  border-radius: var(--radius-s);
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
  flex: 1 1 140px;
  text-align: center;
}
.hero__kpi b {
  display: block;
  color: var(--c-accent);
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.hero__kpi span { font-size: 12px; color: var(--c-text-gray); }

.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); opacity: 1; }
.cta-btn--web { background: var(--c-cta-pink); color: #fff; box-shadow: var(--shadow-cta); }
.cta-btn--tel { background: #fff; color: var(--c-main); border: 2px solid var(--c-main); }
.cta-btn--line { background: var(--c-cta-green); color: #fff; }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 767px) {
  .hero { padding: 32px 16px; }
  .hero__inner { grid-template-columns: 1fr; gap: 20px; }
  .hero__title { font-size: 26px; }
  .hero__sub { font-size: 15px; }
}

/* ===== 目次（アンカーナビ） ===== */
.toc {
  max-width: var(--max-inner);
  margin: 32px auto;
  padding: 0 20px;
}
.toc__box {
  background: #fff;
  border: 2px solid var(--c-light);
  border-radius: var(--radius-m);
  padding: 20px 24px;
}
.toc__title {
  font-weight: 700;
  color: var(--c-main);
  font-size: 16px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  counter-reset: toc;
}
.toc__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  color: var(--c-text);
  font-size: 14px;
  border-bottom: 1px dashed var(--c-border);
  transition: color 0.15s;
}
.toc__list a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  color: var(--c-accent);
  font-weight: 700;
  font-family: var(--font-num);
  font-size: 12px;
  min-width: 20px;
}
.toc__list a:hover { color: var(--c-accent); opacity: 1; }

/* ===== セクション共通 ===== */
.section {
  max-width: var(--max-inner);
  margin: 0 auto;
  padding: 64px 20px;
  scroll-margin-top: 70px;
}
.section--alt {
  background: var(--c-soft);
  max-width: none;
  padding: 0;
}
.section--alt .section__inner {
  max-width: var(--max-inner);
  margin: 0 auto;
  padding: 64px 20px;
}
.section__eyebrow {
  display: block;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.section__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-main);
  line-height: 1.4;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--c-light);
  position: relative;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 60px; height: 3px;
  background: var(--c-accent);
}
.section__lead {
  font-size: 16px;
  margin: 0 0 24px;
  line-height: 1.9;
}

/* セクション1つにつき1画像を配置する枠 */
.section-media {
  float: right;
  width: 38%;
  max-width: 360px;
  margin: 0 0 16px 24px;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  background: var(--c-light);
}
.section-media img { width: 100%; height: 100%; object-fit: cover; }
.section-media figcaption {
  padding: 6px 10px;
  font-size: 11px;
  color: var(--c-text-gray);
  background: #fff;
  text-align: center;
}
@media (max-width: 767px) {
  .section-media { float: none; width: 100%; max-width: none; margin: 0 0 20px; }
  .section__title { font-size: 22px; }
  .section { padding: 48px 16px; }
}

/* セルフチェックリスト */
.checklist {
  list-style: none;
  padding: 20px 24px;
  margin: 20px 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-left: 5px solid var(--c-accent);
  border-radius: var(--radius-s);
}
.checklist li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 15px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  width: 22px; height: 22px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.checklist__note {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--c-light);
  color: var(--c-main);
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
}

/* カード配置 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
  clear: both;
}
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.card__icon {
  width: 44px; height: 44px;
  background: var(--c-light);
  color: var(--c-main);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-main);
  margin: 0 0 8px;
}
.card__title b {
  display: block;
  font-family: var(--font-num);
  color: var(--c-accent);
  font-size: 12px;
  letter-spacing: 0.15em;
}
.card p { margin: 0; font-size: 14px; line-height: 1.7; }

/* 表 */
.table-wrap { overflow-x: auto; margin: 24px 0; clear: both; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 560px;
  font-size: 14px;
}
.data-table th, .data-table td {
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.data-table thead th {
  background: var(--c-main);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.data-table tbody tr:nth-child(even) { background: var(--c-soft); }
.data-table .tag-hl { color: var(--c-accent); font-weight: 700; }

/* ステップ */
.steps {
  display: grid;
  gap: 16px;
  margin: 28px 0;
  clear: both;
}
.step {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  padding: 20px 24px 20px 80px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step;
  content: "STEP " counter(step);
  position: absolute;
  left: 16px; top: 18px;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  background: var(--c-main);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.steps { counter-reset: step; }
.step h4 { font-size: 16px; color: var(--c-main); margin: 0 0 4px; }
.step p { margin: 0; font-size: 14px; line-height: 1.7; }

/* 注釈ボックス */
.callout {
  background: var(--c-light);
  border-radius: var(--radius-m);
  padding: 20px 24px;
  margin: 24px 0;
  clear: both;
}
.callout h4 {
  color: var(--c-main);
  margin: 0 0 8px;
  font-size: 16px;
  display: flex; align-items: center; gap: 6px;
}
.callout p { margin: 0; font-size: 14px; line-height: 1.7; }
.callout--warn {
  background: #FFF4E5;
  border-left: 4px solid #f08a3c;
}
.callout--warn h4 { color: #b85d1a; }

/* 相互リンクバナー */
.cross-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-dark) 100%);
  color: #fff;
  padding: 28px 32px;
  border-radius: var(--radius-l);
  margin: 40px auto;
  max-width: var(--max-inner);
}
.cross-link h3 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.cross-link p { margin: 0; font-size: 14px; opacity: 0.9; }
.cross-link a {
  background: #fff;
  color: var(--c-main) !important;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  white-space: nowrap;
  font-size: 14px;
}
@media (max-width: 767px) {
  .cross-link { grid-template-columns: 1fr; padding: 24px 20px; margin: 32px 16px; }
}

/* FAQ */
.faq { margin: 24px 0; clear: both; }
.faq details {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  padding: 16px 20px 16px 48px;
  font-weight: 700;
  color: var(--c-main);
  position: relative;
  cursor: pointer;
  font-size: 15px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  position: absolute;
  left: 16px; top: 14px;
  width: 24px; height: 24px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 12px;
}
.faq summary::after {
  content: "＋";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--c-accent);
  font-size: 20px;
  font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq__body {
  padding: 0 20px 16px 48px;
  position: relative;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text);
}
.faq__body::before {
  content: "A";
  position: absolute;
  left: 16px; top: 0;
  width: 24px; height: 24px;
  background: var(--c-main);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

/* 医師監修 */
.supervisor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  padding: 20px;
  margin: 24px 0;
  clear: both;
}
.supervisor__photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-light);
}
.supervisor__photo img { width: 100%; height: 100%; object-fit: cover; }
.supervisor__label { font-size: 11px; color: var(--c-text-gray); letter-spacing: 0.15em; }
.supervisor__name { font-size: 20px; font-weight: 700; color: var(--c-main); margin: 2px 0 6px; }
.supervisor__bio { font-size: 13px; color: var(--c-text); line-height: 1.7; margin: 0; }
.supervisor__meta { font-size: 12px; color: var(--c-text-gray); margin-top: 6px; }
@media (max-width: 600px) {
  .supervisor { grid-template-columns: 1fr; text-align: center; }
  .supervisor__photo { margin: 0 auto; }
}

/* 料金表強調 */
.price-hero {
  background: #fff;
  border: 2px solid var(--c-accent);
  border-radius: var(--radius-m);
  padding: 24px;
  margin: 24px 0;
}
.price-hero h3 { margin: 0 0 12px; color: var(--c-main); font-size: 20px; }
.price-hero__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-border);
  font-size: 15px;
}
.price-hero__row b { color: var(--c-accent); font-family: var(--font-num); font-size: 20px; }
.price-hero small { font-size: 12px; color: var(--c-text-gray); display: block; margin-top: 8px; }

/* ===== フッター ===== */
.site-footer {
  background: #1d3b52;
  color: #d9e4ed;
  padding: 48px 20px 24px;
  margin-top: 60px;
}
.site-footer__inner {
  max-width: var(--max-inner);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
.site-footer h5 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.site-footer p, .site-footer li { font-size: 13px; line-height: 1.9; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #d9e4ed; }
.site-footer__copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #8aa0b2;
}
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ===== フローティングCTA（スマホ専用） ===== */
.floating-cta {
  display: none;
}
@media (max-width: 767px) {
  .floating-cta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: #fff;
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  }
  .floating-cta a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    gap: 2px;
  }
  .floating-cta__tel { background: var(--c-main); }
  .floating-cta__web { background: var(--c-cta-pink); }
  .floating-cta__line { background: var(--c-cta-green); }
  body { padding-bottom: 64px; }
}

/* ノーティスバナー */
.info-bar {
  background: #fff3cd;
  color: #6b5200;
  font-size: 13px;
  padding: 10px 20px;
  text-align: center;
  border-bottom: 1px solid #f1e3a6;
}

/* AIO向け: 定義ブロック */
.definition {
  background: var(--c-soft);
  border-left: 4px solid var(--c-accent);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.8;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.definition b { color: var(--c-main); }

/* インラインSVGアイコン用のサイズクラス */
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.icon--lg { width: 28px; height: 28px; }

/* h3 サブ見出し */
.section h3 {
  font-size: 20px;
  color: var(--c-main);
  margin: 36px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--c-accent);
  line-height: 1.4;
  clear: both;
}
.section h4 {
  font-size: 16px;
  color: var(--c-dark);
  margin: 20px 0 8px;
}
.section p { margin: 0 0 14px; }
.section ul:not(.checklist):not(.toc__list) {
  padding-left: 22px;
  margin: 0 0 14px;
}
.section ul li { margin-bottom: 6px; }
