/*
Theme Name: あい歯科クリニック上溝
Description: あい歯科クリニック上溝 公式サイト用のテーマです。有効化すると固定ページが自動で作成されます。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kamimizo
*/

/* ============================================================
   あい歯科クリニック上溝  テスト版スタイル
   色を変えたいときは、下の :root の値だけ書き換えれば全体に反映されます
   ============================================================ */
:root {
  --main: #d8327b;        /* メインカラー(看板のピンク) */
  --main-dark: #a31c59;   /* 濃いピンク(見出し・ボタン) */
  --main-pale: #fdf1f6;   /* 薄いピンク(背景) */
  --gold: #bf9c46;        /* アクセント(英字ラベル・罫線) */
  --marker: #f8e88c;      /* 蛍光ペン風の下線 */
  --ink: #303030;         /* 本文 */
  --sub: #626671;         /* 補足文 */
  --line: #06c755;        /* LINEボタン */
  --bg-gray: #f6f4f1;
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: #fff;
  font-size: 15px; line-height: 1.9; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.inner { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sp-only { display: none; }

/* ---------- テスト版の帯 ---------- */
.test-bar { background: #303030; color: #fff; text-align: center; font-size: 12px; padding: 4px 10px; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: space-between;
  padding-left: 24px; box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.logo { display: flex; flex-direction: column; line-height: 1.3; }
.logo small { font-size: 11px; color: var(--sub); letter-spacing: .08em; }
.logo strong { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--main-dark); letter-spacing: .06em; white-space: nowrap; }
.logo strong span { color: var(--main); }
.header-right { display: flex; align-items: stretch; height: 100%; }
.header-tel { display: flex; flex-direction: column; justify-content: center; padding: 0 22px; line-height: 1.4; }
.header-tel small { font-size: 11px; color: var(--sub); }
.header-tel a { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--main-dark); letter-spacing: .06em; white-space: nowrap; }
.header-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 120px; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.4;
  transition: opacity .2s;
}
.header-btn small { font-family: var(--sans); font-size: 10px; font-weight: 500; }
.header-btn:hover { opacity: .85; }
.header-btn.is-line { background: var(--line); }
.header-btn.is-web { background: var(--main-dark); }
.menu-btn { display: none; }

/* ---------- メインビジュアル ---------- */
.hero { position: relative; height: min(78vh, 720px); min-height: 520px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 55%),
              linear-gradient(0deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 38%);
}
.hero-copy {
  position: absolute; z-index: 2; top: 8%; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: row-reverse; gap: 14px;
}
.hero-copy span {
  writing-mode: vertical-rl; background: #fff; font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 40px); font-weight: 500; letter-spacing: .22em;
  padding: 18px 10px; color: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.hero-copy span:nth-child(2) { margin-top: 48px; }
.hero-copy span:nth-child(3) { margin-top: 96px; }
.hero-copy em { font-style: normal; color: var(--main); }
.hero-bottom { position: absolute; z-index: 2; left: 40px; bottom: 34px; }
.badges { display: flex; gap: 12px; margin-bottom: 18px; }
.badges li {
  width: 104px; height: 104px; border-radius: 50%; background: #fff;
  border: 1px solid var(--gold); outline: 4px solid rgba(255,255,255,.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 13px; line-height: 1.45; text-align: center; color: var(--main-dark);
}
.badges li b { font-size: 20px; font-weight: 600; color: var(--main); }
.hero-bottom p { font-size: 13px; }
.hero-bottom h1 { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .08em; }

/* ---------- ナビ ---------- */
.gnav { margin-top: -26px; position: relative; z-index: 3; }
.gnav ul {
  display: flex; justify-content: space-between; background: var(--main-pale);
  border-radius: 999px; padding: 4px 36px; box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.gnav a { display: block; padding: 12px 6px; font-size: 13px; font-weight: 500; transition: color .2s; }
.gnav a:hover { color: var(--main); }

/* ---------- 共通：セクション見出し ---------- */
.section { padding: 96px 0; }
.section.is-pale { background: var(--main-pale); }
.section.is-gray { background: var(--bg-gray); }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head .en { display: block; font-family: var(--serif); font-size: 14px; color: var(--gold); letter-spacing: .14em; }
.sec-head h2 {
  display: inline-flex; align-items: center; gap: 22px;
  font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 500; color: var(--main-dark); letter-spacing: .16em; line-height: 1.5;
}
.sec-head h2::before, .sec-head h2::after { content: ""; width: 56px; height: 1px; background: var(--gold); }
.sec-head .ja-sub { display: block; font-size: 12px; color: var(--sub); margin-top: 4px; }
.marker { background: linear-gradient(transparent 62%, var(--marker) 62%); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 240px; padding: 14px 32px; border-radius: 999px;
  background: var(--main-dark); color: #fff; font-weight: 500; font-size: 14px;
  border: 1px solid var(--main-dark); transition: background .2s, color .2s;
}
.btn::after { content: "→"; }
.btn:hover { background: #fff; color: var(--main-dark); }
.btn.is-ghost { background: #fff; color: var(--main-dark); }
.btn.is-ghost:hover { background: var(--main-dark); color: #fff; }

/* ---------- 予約CTA ---------- */
.cta { padding: 72px 0; }
.cta-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.cta-photo img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.cta-lead { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); font-weight: 500; line-height: 1.6; color: var(--main-dark); text-align: center; margin-bottom: 22px; }
.cta-tel { border: 1px solid var(--main-dark); border-radius: 10px; overflow: hidden; margin-bottom: 14px; text-align: center; }
.cta-tel small { display: block; background: var(--main-dark); color: #fff; font-size: 12px; padding: 4px; }
.cta-tel a { display: block; font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--main-dark); letter-spacing: .06em; padding: 6px; }
.cta-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta-btns a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 10px; padding: 16px 8px; color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.4;
  transition: opacity .2s;
}
.cta-btns a small { font-family: var(--sans); font-size: 11px; font-weight: 500; }
.cta-btns a:hover { opacity: .85; }
.cta-btns .is-line { background: var(--line); }
.cta-btns .is-web { background: var(--main-dark); }
.cta-note { font-size: 12px; color: var(--sub); margin-top: 10px; text-align: center; }

/* ---------- 医院情報 ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-card { background: #fff; border-radius: 12px; padding: 32px; }
.info-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--main-dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--gold); }
.hours { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.hours th, .hours td { padding: 10px 4px; border-bottom: 1px solid #eadfe4; }
.hours thead th { background: var(--main-dark); color: #fff; font-weight: 500; border: 0; }
.hours tbody th { font-weight: 500; white-space: nowrap; font-size: 13px; }
.hours td { color: var(--main); font-size: 16px; }
.hours td.off { color: var(--sub); font-size: 13px; }
.hours-note { font-size: 13px; margin-top: 12px; }
.hours-note li { padding-left: 1em; text-indent: -1em; }
.access-text { font-size: 14px; }
.access-text dt { font-weight: 700; color: var(--main-dark); margin-top: 12px; }
.access-text dd { margin: 0; }
.map { margin-top: 16px; border-radius: 8px; overflow: hidden; }
.map iframe { width: 100%; height: 240px; border: 0; display: block; }

/* ---------- 診療理念 ---------- */
.philo { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.philo-photos { position: relative; padding-bottom: 60px; }
.philo-photos img { border-radius: 12px; object-fit: cover; }
.philo-photos img:first-child { width: 82%; aspect-ratio: 4 / 3; }
.philo-photos img:last-child { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid #fff; }
.philo h3 { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; line-height: 1.7; color: var(--main-dark); margin-bottom: 20px; }
.philo p + p { margin-top: 1em; }
.philo .btn { margin-top: 28px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.three li { background: var(--main-pale); border-radius: 12px; padding: 28px 24px; text-align: center; }
.three .num { font-family: var(--serif); color: var(--gold); font-size: 14px; letter-spacing: .1em; }
.three h4 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--main-dark); margin: 4px 0 10px; }
.three p { font-size: 14px; text-align: left; }

/* ---------- 特徴 ---------- */
.reasons { display: grid; gap: 28px; }
.reason { display: grid; grid-template-columns: 96px 1fr 1.2fr; gap: 28px; align-items: center; background: #fff; border-radius: 12px; padding: 28px 36px; }
.reason .no { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--main); opacity: .35; }
.reason h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.6; color: var(--main-dark); }
.reason ul li { position: relative; padding-left: 26px; font-size: 14px; }
.reason ul li::before { content: "✓"; position: absolute; left: 0; color: var(--main); font-weight: 700; }

/* ---------- 院長あいさつ ---------- */
.greeting { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.doc-photo { aspect-ratio: 3 / 4; border-radius: 12px; background: var(--main-pale); border: 1px dashed var(--main); display: flex; align-items: center; justify-content: center; color: var(--main-dark); font-size: 13px; text-align: center; }
.doc-name { font-family: var(--serif); margin-bottom: 20px; }
.doc-name small { display: block; font-size: 13px; color: var(--sub); }
.doc-name strong { font-size: 28px; font-weight: 500; letter-spacing: .2em; color: var(--main-dark); }
.placeholder { background: #fff8d6; border: 1px dashed #d9b300; border-radius: 8px; padding: 14px 18px; font-size: 13px; }

/* ---------- 診療メニュー ---------- */
.feature-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 40px; }
.feature-menu li { background: #fff; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 42% 1fr; }
.feature-menu img { width: 100%; height: 100%; object-fit: cover; min-height: 190px; }
.feature-menu div { padding: 24px; }
.feature-menu .en { font-family: var(--serif); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.feature-menu h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--main-dark); margin-bottom: 8px; }
.feature-menu p { font-size: 13px; line-height: 1.8; }
.menu-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.menu-list li { background: #fff; border-radius: 10px; padding: 22px 12px; text-align: center; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.menu-list li:hover { border-color: var(--main); transform: translateY(-2px); }
.menu-list .icon { width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; background: var(--main-pale); display: flex; align-items: center; justify-content: center; }
.menu-list .icon svg { width: 28px; height: 28px; fill: none; stroke: var(--main); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-list h3 { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--main-dark); }
.menu-list p { font-size: 12px; color: var(--sub); line-height: 1.6; }

/* ---------- お悩みから探す ---------- */
.problems { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.problems li { background: var(--main-pale); border-radius: 10px; padding: 18px 10px 14px; text-align: center; }
.problems .no { font-family: var(--serif); color: var(--gold); font-size: 13px; }
.problems h3 { font-size: 15px; font-weight: 700; line-height: 1.5; min-height: 3em; display: flex; align-items: center; justify-content: center; }
.problems span { display: inline-block; margin-top: 8px; font-size: 12px; color: #fff; background: var(--main-dark); border-radius: 999px; padding: 1px 12px; }

/* ---------- 初診の流れ ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: flow; }
.flow li { position: relative; background: #fff; border-radius: 12px; padding: 30px 18px 22px; counter-increment: flow; }
.flow li::before { content: "0" counter(flow); position: absolute; top: -18px; left: 18px; font-family: var(--serif); font-size: 30px; color: var(--main); line-height: 1; background: linear-gradient(transparent 50%, #fff 50%); padding: 0 4px; }
.flow h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--main-dark); margin-bottom: 6px; }
.flow p { font-size: 13px; line-height: 1.8; }

/* ---------- 院内紹介 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.gallery figcaption { font-size: 13px; text-align: center; margin-top: 6px; }
.equip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.equip li { border: 1px solid var(--gold); border-radius: 10px; padding: 18px; }
.equip h3 { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--main-dark); }
.equip p { font-size: 12px; line-height: 1.7; color: var(--sub); }
.center { text-align: center; margin-top: 40px; }

/* ---------- フッター ---------- */
.footer { background: var(--main-dark); color: #fff; padding: 56px 0 96px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.footer .logo strong, .footer .logo strong span { color: #fff; }
.footer .logo small { color: rgba(255,255,255,.75); }
.footer address { font-style: normal; margin-top: 14px; line-height: 1.9; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 24px; align-content: start; }
.footer-nav a { opacity: .9; }
.footer-nav a:hover { text-decoration: underline; }
.copy { text-align: center; margin-top: 40px; font-size: 11px; opacity: .7; }

/* ---------- スマホ用 固定予約バー ---------- */
.fixed-cta { display: none; }

/* ============================================================
   スマホ・タブレット
   ============================================================ */
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .sp-only { display: inline; }
  .header { padding-left: 14px; }
  .logo strong { font-size: 17px; }
  .logo small { font-size: 10px; }
  .header-tel, .header-btn { display: none; }
  .menu-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 60px; height: 100%; background: var(--main-dark); border: 0; cursor: pointer;
  }
  .menu-btn span { width: 24px; height: 2px; background: #fff; }
  .gnav { margin: 0; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 40; display: none; }
  .gnav.is-open { display: block; }
  .gnav .inner { width: 100%; }
  .gnav ul { flex-direction: column; border-radius: 0; padding: 8px 20px 16px; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.1); }
  .gnav a { border-bottom: 1px solid #f0e3e9; padding: 12px 4px; font-size: 15px; }

  .hero { height: 78vh; min-height: 520px; }
  .hero-copy { top: 5%; left: auto; right: 16px; transform: none; gap: 8px; }
  .hero-copy span { padding: 12px 6px; }
  .hero-copy span:nth-child(2) { margin-top: 28px; }
  .hero-copy span:nth-child(3) { margin-top: 56px; }
  .hero-bottom { left: 16px; bottom: 20px; }
  .badges { gap: 8px; }
  .badges li { width: 82px; height: 82px; font-size: 11px; }
  .badges li b { font-size: 16px; }
  .hero-bottom h1 { font-size: 18px; }

  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-head h2 { gap: 12px; }
  .sec-head h2::before, .sec-head h2::after { width: 28px; }
  .cta { padding: 48px 0; }
  .cta-box, .info-grid, .philo, .greeting, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .info-card { padding: 22px 18px; }
  .three { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .reason { grid-template-columns: 1fr; gap: 8px; padding: 24px 22px; }
  .reason .no { font-size: 40px; }
  .reason h3 { font-size: 20px; }
  .reason h3 br { display: none; }
  .doc-photo { max-width: 240px; margin-inline: auto; width: 100%; }
  .feature-menu { grid-template-columns: 1fr; }
  .menu-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .problems { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .equip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }

  .fixed-cta {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -2px 10px rgba(0,0,0,.12);
  }
  .fixed-cta a { display: flex; align-items: center; justify-content: center; height: 54px; color: #fff; font-weight: 700; font-size: 14px; }
  .fixed-cta .is-tel { background: #fff; color: var(--main-dark); }
  .fixed-cta .is-line { background: var(--line); }
  .fixed-cta .is-web { background: var(--main-dark); }
}
@media (max-width: 480px) {
  .feature-menu li { grid-template-columns: 1fr; }
  .feature-menu img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- 新心会グループ ---------- */
.group { background: var(--main-dark); color: #fff; }
.group-lead { text-align: center; font-family: var(--serif); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.8; margin-bottom: 40px; }
.group-lead strong { font-size: 1.5em; font-weight: 600; letter-spacing: .1em; border-bottom: 1px solid var(--gold); }
.group-box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; background: #fff; color: var(--ink); border-radius: 12px; padding: 44px 48px; }
.group-box .en { font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: .14em; }
.group-box h2 { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; line-height: 1.7; color: var(--main-dark); margin: 6px 0 14px; }
.group-box p { font-size: 14px; }
.group-nums { display: grid; gap: 12px; }
.group-nums li { display: flex; align-items: baseline; gap: 8px; background: var(--main-pale); border-radius: 10px; padding: 10px 22px; }
.group-nums small { flex: 1; font-size: 13px; }
.group-nums b { font-family: var(--serif); font-size: 38px; line-height: 1.2; color: var(--main); }
.group-nums span { font-size: 13px; }
@media (max-width: 900px) {
  .group-box { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .equip { grid-template-columns: 1fr; }
}
/* ---------- グループ：キャラクター・理事長・指導医 ---------- */
.group-chara { width: 110px; height: auto; margin: 0 auto 8px; }
.chief { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: end; background: #fff; border-radius: 12px; padding: 44px 48px 0; overflow: hidden; }
.chief-text { padding-bottom: 44px; }
.chief .en { font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: .14em; }
.chief h2 { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; line-height: 1.7; color: var(--main-dark); margin: 6px 0 16px; }
.chief-name { margin-top: 20px; font-family: var(--serif); font-size: 26px; letter-spacing: .2em; color: var(--main-dark); }
.chief-name small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .04em; color: var(--sub); }
.chief-photo { width: 100%; max-height: 420px; object-fit: cover; object-position: top; }
.spec-head { text-align: center; margin: 64px 0 32px; }
.spec-head .en { font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: .1em; }
.spec-head h2 { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; color: var(--main-dark); line-height: 1.7; }
.spec-head p { font-size: 14px; margin-top: 8px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.specs li { background: #fff; border-radius: 12px; overflow: hidden; text-align: center; padding-bottom: 16px; }
.specs img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 12px; }
.specs span { display: block; font-size: 12px; color: var(--main); font-weight: 700; }
.specs strong { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: .14em; }

.float-reserve { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 118px; text-align: center; transition: transform .2s; }
.float-reserve:hover { transform: translateY(-4px); }
.float-reserve img { width: 96px; height: auto; margin: 0 auto -14px; position: relative; z-index: 1; }
.float-reserve span { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 118px; height: 118px; border-radius: 50%; background: var(--main-dark); color: #fff; font-family: var(--serif); font-size: 15px; line-height: 1.3; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.float-reserve b { font-size: 26px; font-weight: 600; }

@media (max-width: 900px) {
  .chief { grid-template-columns: 1fr; gap: 0; padding: 28px 22px 0; }
  .chief-text { padding-bottom: 20px; }
  .chief-photo { max-width: 220px; margin: 0 auto; }
  .spec-head { margin-top: 44px; }
  .specs { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .float-reserve { display: none; }
}
/* ============================================================
   下層ページ
   ============================================================ */
.gnav.is-sub { margin: 14px 0 0; }
.page-hero { margin-top: 18px; padding: 56px 0 52px; text-align: center; background: linear-gradient(120deg, var(--main-pale), #fff 60%, var(--main-pale)); }
.page-hero .en { font-family: var(--serif); font-size: 14px; color: var(--gold); letter-spacing: .14em; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 42px); font-weight: 500; color: var(--main-dark); letter-spacing: .16em; line-height: 1.5; }
.page-hero p { font-size: 12px; color: var(--sub); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 12px; color: var(--sub); padding-top: 14px; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; }
.breadcrumb a { text-decoration: underline; }

.article { max-width: 880px; padding: 40px 0 88px; }
.article > * + * { margin-top: 1.2em; }
.article a:not(.btn) { color: var(--main-dark); text-decoration: underline; }
.a-lead { font-family: var(--serif); font-size: clamp(17px, 2vw, 21px); line-height: 2; color: var(--main-dark); text-align: center; }
.a-h2 { margin-top: 72px !important; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; line-height: 1.6; color: var(--main-dark); letter-spacing: .08em; padding-bottom: 12px; border-bottom: 1px solid var(--gold); position: relative; }
.a-h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 80px; height: 3px; background: var(--main); }
.article > .a-h2:first-child, .a-lead + .a-h2 { margin-top: 40px !important; }
.a-h3 { margin-top: 40px !important; font-size: 19px; font-weight: 700; line-height: 1.6; padding-left: 14px; border-left: 4px solid var(--main); }
.a-ul li { position: relative; padding-left: 1.2em; }
.a-ul li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--main); }
.a-check { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; background: var(--main-pale); border-radius: 12px; padding: 22px 26px; }
.a-check li { position: relative; padding-left: 28px; font-weight: 500; }
.a-check li::before { content: "✓"; position: absolute; left: 0; color: var(--main); font-weight: 700; }
.a-steps { counter-reset: st; display: grid; gap: 14px; }
.a-steps li { counter-increment: st; position: relative; background: var(--bg-gray); border-radius: 12px; padding: 20px 24px 20px 84px; }
.a-steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 22px; top: 14px; font-family: var(--serif); font-size: 34px; line-height: 1.4; color: var(--main); }
.a-steps h4, .a-cards h4, .a-compare h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--main-dark); line-height: 1.6; }
.a-steps p, .a-cards p { font-size: 14px; }
.a-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.a-cards li { border: 1px solid #ecd9e2; border-top: 3px solid var(--main); border-radius: 10px; padding: 20px 22px; background: #fff; }
.a-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.a-compare > div { background: var(--main-pale); border-radius: 12px; padding: 22px 24px; font-size: 14px; }
.a-compare h4 { text-align: center; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--gold); }
.a-faq dt { position: relative; margin-top: 16px; padding: 14px 18px 14px 56px; background: var(--main-pale); border-radius: 10px 10px 0 0; font-weight: 700; }
.a-faq dd { position: relative; margin: 0; padding: 14px 18px 14px 56px; border: 1px solid var(--main-pale); border-top: 0; border-radius: 0 0 10px 10px; font-size: 14px; }
.a-faq dt::before, .a-faq dd::before { position: absolute; left: 18px; top: 8px; font-family: var(--serif); font-size: 24px; }
.a-faq dt::before { content: "Q"; color: var(--main); }
.a-faq dd::before { content: "A"; color: var(--gold); }
.a-table { overflow-x: auto; }
.a-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.a-table th, .a-table td { border: 1px solid #ecd9e2; padding: 10px 12px; text-align: center; }
.a-table thead th { background: var(--main-dark); color: #fff; font-weight: 500; white-space: nowrap; }
.a-table tbody th { background: var(--main-pale); font-weight: 700; }
.a-table td:nth-child(2) { text-align: left; }
.a-table small { display: block; font-size: 11px; color: var(--sub); }
.a-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.a-links a { display: block; height: 100%; padding: 18px 44px 18px 22px; border: 1px solid var(--main); border-radius: 10px; position: relative; text-decoration: none !important; transition: background .2s; }
.a-links a::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--main); }
.a-links a:hover { background: var(--main-pale); }
.a-links strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.a-links span { display: block; font-size: 12px; color: var(--sub); line-height: 1.7; }
.a-photo img { border-radius: 12px; width: 100%; }
.article .specs li { background: var(--bg-gray); }
.article .center { margin-top: 24px; }
.article .placeholder { margin-top: 20px; }

.related { background: var(--bg-gray); padding: 44px 0; }
.related h2 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--main-dark); text-align: center; margin-bottom: 18px; }
.related ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.related a { display: block; background: #fff; border: 1px solid #ecd9e2; border-radius: 999px; padding: 6px 20px; font-size: 14px; }
.related a:hover { border-color: var(--main); color: var(--main); }

.footer-sub { margin: 20px 0 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.3); font-family: var(--serif); }

/* トップページのカード全体をリンクにする */
.menu-list li, .feature-menu li { position: relative; }
.menu-list h3 a::after, .feature-menu h3 a::after { content: ""; position: absolute; inset: 0; }
.feature-menu li { transition: box-shadow .2s; }
.feature-menu li:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.problems a.tag { display: inline-block; margin-top: 8px; font-size: 12px; color: #fff; background: var(--main-dark); border-radius: 999px; padding: 1px 12px; }
.problems a.tag:hover { background: var(--main); }

@media (max-width: 900px) {
  .gnav.is-sub { margin: 0; }
  .page-hero { margin-top: 0; padding: 40px 0 36px; }
  .article { padding: 28px 0 60px; }
  .a-h2 { margin-top: 52px !important; }
  .a-check { grid-template-columns: 1fr; padding: 18px 20px; }
  .a-steps li { padding: 18px 18px 18px 64px; }
  .a-steps li::before { left: 16px; font-size: 26px; }
}

/* ---------- WordPress用の追加 ---------- */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.article > *:first-child { margin-top: 0; }
.post-list { display: grid; gap: 0; border-top: 1px solid #ecd9e2; }
.post-list li { border-bottom: 1px solid #ecd9e2; }
.post-list a { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 8px; align-items: baseline; }
.post-list a:hover { background: var(--main-pale); }
.post-list time { font-size: 13px; color: var(--main-dark); letter-spacing: .06em; }
.post-list strong { font-weight: 500; }
.post-date { font-size: 13px; color: var(--main-dark); letter-spacing: .06em; margin-bottom: 20px; }
.is-post h2 { font-family: var(--serif); font-size: 24px; margin: 56px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--gold); }
.is-post h3 { font-family: var(--serif); font-size: 19px; margin: 36px 0 12px; color: var(--main-dark); }
.is-post p { margin: 0 0 1.4em; }
.is-post ul, .is-post ol { margin: 0 0 1.4em 1.4em; }
.is-post ul { list-style: disc; }
.is-post ol { list-style: decimal; }
.is-post img { max-width: 100%; height: auto; border-radius: 8px; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.nav-links .page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid #ecd9e2; border-radius: 6px; }
.nav-links .current { background: var(--main); color: #fff; border-color: var(--main); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) {
  .post-list a { grid-template-columns: 1fr; gap: 2px; padding: 14px 4px; }
}
