/* =========================================================
   くれもとクリニック 共通スタイル
   基調：パステルピンク／フォント：Noto Sans JP
   ========================================================= */

:root {
  /* カラー（金・銀・紫はNG） */
  --pink:        #f7a8bf;   /* メイン：パステルピンク */
  --pink-deep:   #ec6f95;   /* アクセント（やや濃いピンク） */
  --pink-soft:   #fce4ec;   /* サブ：淡いピンク */
  --pink-bg:     #fff5f8;   /* 背景（ほんのりピンク） */
  --mint:        #a9ddd6;   /* 差し色（やさしいミント） */
  --cream:       #fffaf3;   /* やわらかいクリーム背景 */
  --text:        #4a4a4a;   /* 基本テキスト */
  --text-soft:   #7a7a7a;   /* 補助テキスト */
  --white:       #ffffff;
  --border:      #f3d5de;   /* 区切り線 */
  --shadow:      0 4px 16px rgba(236, 111, 149, 0.12);
  --radius:      18px;
  --radius-sm:   12px;
  --maxw:        1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--pink-bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* 見出しは太め、本文は標準ウェイトで強弱をつける */
h1, h2, h3, .brand-name { font-weight: 700; }

/* メニュー展開中は背面スクロールを固定 */
body.nav-open { overflow: hidden; }

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

a { color: var(--pink-deep); }

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

/* ====================== ヘッダー ====================== */
/* ヘッダー挿入前に高さを確保し、表示時のガタつきを防ぐ */
#header { min-height: 85px; background: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(236, 111, 149, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
}
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--pink-deep);
  line-height: 1.15;
}
.brand .brand-name {
  font-size: 1.2rem;
  letter-spacing: .02em;
  line-height: 1.2;
}
/* 「くれもと」「クリニック」を2行で表示（語の途中で折らない） */
.brand .brand-line { display: block; white-space: nowrap; }
.brand .brand-sub {
  display: block;
  font-size: .68rem;
  color: var(--text-soft);
  font-weight: 400;
  letter-spacing: .01em;
}

.header-right { display: flex; align-items: center; gap: 14px; }

/* PC用の横並びナビ */
.gnav-pc ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.gnav-pc a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  border-radius: 999px;
  font-size: .95rem;
  transition: background .2s, color .2s;
}
.gnav-pc a:hover,
.gnav-pc a[aria-current="page"] {
  background: var(--pink-soft);
  color: var(--pink-deep);
}

/* モバイルドロワーはデフォルト非表示（SPでのみ表示） */
.drawer { display: none; }

.tel-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pink-deep);
  color: #fff !important;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: transform .15s, background .2s;
}
.tel-btn:hover { background: #e25683; transform: translateY(-1px); }
.tel-btn .tel-body { display: flex; flex-direction: column; line-height: 1.2; }
.tel-btn .tel-num { font-size: 1.1rem; letter-spacing: .02em; }
.tel-btn .tel-note { font-size: .68rem; font-weight: 400; opacity: .9; }

/* 「TEL」ラベル（絵文字の代替） */
.tel-tag {
  display: inline-block;
  font-weight: 700;
  font-size: .72em;
  letter-spacing: .08em;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  padding: 1px 6px;
  line-height: 1.3;
  vertical-align: middle;
  margin-right: .15em;
}

/* ハンバーガー（線画3本） */
.nav-toggle {
  display: none;
  border: none;
  background: var(--pink-soft);
  width: 44px; height: 44px;
  border-radius: 12px;
  cursor: pointer;
  flex: none;
  position: relative;
}
.nav-toggle .bar {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: var(--pink-deep);
  border-radius: 2px;
}

/* 閉じるボタンはデスクトップでは非表示（SPのみ表示） */
.nav-close { display: none; }

/* 線画アイコン（カード用 / 見出し用 / インライン用） */
.ico { display: inline-flex; color: var(--pink-deep); }
.ico svg { width: 100%; height: 100%; display: block; }
.h-ico {
  display: inline-flex;
  width: 1.25em; height: 1.25em;
  color: var(--pink);
  vertical-align: -.2em;
  margin-right: .4em;
}
.h-ico svg { width: 100%; height: 100%; }
.ico-inline {
  display: inline-flex;
  width: 1.1em; height: 1.1em;
  color: var(--pink);
  vertical-align: -.18em;
  margin-right: .35em;
}
.ico-inline svg { width: 100%; height: 100%; }

/* ====================== フッター ====================== */
.site-footer {
  background: var(--pink-soft);
  margin-top: 64px;
  padding: 48px 0 24px;
  color: var(--text);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h3 {
  font-size: 1.1rem;
  color: var(--pink-deep);
  margin: 0 0 12px;
}
.footer-info p { margin: 4px 0; font-size: .92rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a {
  text-decoration: none;
  color: var(--text);
  display: block;
  padding: 5px 0;
  font-size: .92rem;
}
.footer-nav a:hover { color: var(--pink-deep); }
.footer-hours table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.footer-hours th, .footer-hours td {
  border: 1px solid var(--border);
  padding: 4px 6px;
  text-align: center;
  background: #fff;
}
.footer-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-soft);
}

/* ====================== 共通パーツ ====================== */
.section { padding: 56px 0; }
.section--soft { background: var(--cream); }
.section--pink { background: var(--pink-soft); }

.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 {
  font-size: 1.7rem;
  margin: 0 0 8px;
  color: var(--pink-deep);
}
.section-head .en {
  display: block;
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.section-head p { color: var(--text-soft); margin: 0; }

/* パンくず */
.breadcrumb {
  font-size: .82rem;
  color: var(--text-soft);
  padding: 14px 0;
}
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--pink-deep); }

/* ページ見出し（下層ページ共通） */
.page-hero {
  background: linear-gradient(135deg, var(--pink-soft), var(--pink-bg));
  padding: 44px 0;
  text-align: center;
}
.page-hero h1 {
  margin: 0 0 6px;
  font-size: 1.9rem;
  color: var(--pink-deep);
}
.page-hero .en {
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--pink);
  text-transform: uppercase;
}

/* カード */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card + .card { margin-top: 20px; }
.card h3 { margin-top: 0; color: var(--pink-deep); }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink-deep);
  color: #fff;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: #e25683; }
.btn--ghost {
  background: #fff;
  color: var(--pink-deep);
  border: 2px solid var(--pink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--pink-soft); }

/* テキストブロック */
.prose h2 { color: var(--pink-deep); font-size: 1.4rem; margin: 40px 0 14px; }
.prose h3 { color: var(--pink-deep); font-size: 1.15rem; margin: 28px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }

/* リスト（チェック風） */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

/* ====================== 診療時間表 ====================== */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hours-table th, .hours-table td {
  border: 1px solid var(--border);
  padding: 12px 8px;
  text-align: center;
  font-size: .95rem;
}
.hours-table thead th {
  background: var(--pink);
  color: #fff;
  font-weight: 700;
}
.hours-table tbody th {
  background: var(--pink-soft);
  color: var(--pink-deep);
  white-space: nowrap;
}
.hours-table .sun { color: var(--pink-deep); }
.hours-table .mark { color: var(--pink-deep); font-weight: 700; }
/* 土曜の通し診療セル（rowspanで結合） */
.hours-table .sat-through {
  vertical-align: middle;
  background: var(--pink-bg);
  font-size: .9rem;
  line-height: 1.3;
  white-space: nowrap;
}
.hours-table .sat-through .sat-note { font-size: .82em; margin-left: 2px; }
.hours-note {
  margin-top: 14px;
  font-size: .86rem;
  color: var(--text-soft);
  padding-left: 1.1em;
}
.hours-note li { margin-bottom: 4px; }

/* ====================== 料金表 ====================== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-table th, .price-table td {
  border-bottom: 1px solid var(--border);
  padding: 13px 16px;
  text-align: left;
}
.price-table thead th {
  background: var(--pink);
  color: #fff;
}
.price-table td:last-child,
.price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table tbody tr:nth-child(even) { background: var(--pink-bg); }
.price-table .price-note { font-size: .76rem; color: var(--text-soft); font-weight: 400; }

/* 江戸川区より助成 */
.subsidy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.subsidy-item {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.subsidy-item h3 {
  margin: 0 0 12px;
  color: var(--pink-deep);
  font-size: 1.05rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.subsidy-item dl {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 6px 12px;
  margin: 0;
}
.subsidy-item dt {
  color: var(--pink-deep);
  font-weight: 700;
  font-size: .88rem;
}
.subsidy-item dd { margin: 0; font-size: .92rem; }
.subsidy-item .subsidy-note { margin: 0; font-size: .92rem; }

/* 患者様へのご案内（notice）の箇条書き */
.notice-list { margin: 4px 0 16px; padding-left: 1.3em; }
.notice-list li { margin-bottom: 6px; }

/* ====================== お知らせ ====================== */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px dashed var(--border);
}
.news-list .news-date {
  color: var(--pink-deep);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  min-width: 9em;
}
.news-list .news-title { flex: 1; min-width: 60%; }
.news-state {
  text-align: center;
  color: var(--text-soft);
  padding: 24px;
}
.news-loading { text-align: center; color: var(--text-soft); padding: 24px; }
.news-loading::after {
  content: "";
  display: inline-block;
  width: 16px; height: 16px;
  margin-left: 8px;
  border: 3px solid var(--pink-soft);
  border-top-color: var(--pink-deep);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ====================== トップ：ヒーロー ====================== */
/* メインビジュアル（ヘッダー直下の大きな画像） */
.mainvisual { padding: 0; line-height: 0; }
.mainvisual .ph--hero {
  border-radius: 0;
  border: none;
  border-bottom: 3px dashed var(--pink);
  height: 46vh;
  max-height: 480px;
  min-height: 260px;
}
.mainvisual-img {
  display: block;
  width: 100%;
  height: auto;        /* PC/SPそれぞれの画像を切り取らず全体表示 */
}

/* キャッチ＋リード＋電話 */
.hero {
  background: linear-gradient(150deg, #fff 0%, var(--pink-soft) 60%, var(--pink-bg) 100%);
  padding: 44px 0;
}
.hero-inner { text-align: center; }
.hero h1 {
  font-size: 2rem;
  line-height: 1.5;
  color: var(--pink-deep);
  margin: 0 0 18px;
}
.hero h1 .accent { color: var(--mint); }
.hero .lead {
  font-size: 1rem;
  margin: 0 auto 26px;
  max-width: 720px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* プレースホルダー画像 */
.ph {
  background:
    repeating-linear-gradient(45deg, var(--pink-soft) 0 16px, #fde9ef 16px 32px);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--pink-deep);
  font-size: .9rem;
  min-height: 200px;
  text-align: center;
  border: 2px dashed var(--pink);
}
.ph--wide { aspect-ratio: 16/9; }
.ph--square { aspect-ratio: 1/1; }
.ph--card { aspect-ratio: 4/3; min-height: 0; border-radius: 0; border: none; border-bottom: 2px dashed var(--pink); }
.ph span { background: rgba(255,255,255,.7); padding: 4px 12px; border-radius: 999px; }

/* クリニックについて（写真＋説明カード） */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* カード上部の写真（プレースホルダーと同じ枠に収める） */
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.about-card-body { padding: 22px 22px 26px; }
.about-card h3 { margin: 0 0 10px; color: var(--pink-deep); font-size: 1.12rem; }
.about-card p { margin: 0; font-size: .92rem; color: var(--text); }

/* アクセス（ミニ版） */
.access-mini {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}
.access-mini .map-embed iframe { height: 320px; }
.access-mini-info .addr {
  font-weight: 500;
  margin: 0 0 18px;
}
.access-mini-info .tel { margin: 0 0 14px; }
.access-mini-info p:last-child { margin: 0; }

/* ページ導線カード */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.link-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s;
  border: 2px solid transparent;
}
.link-card:hover { transform: translateY(-3px); border-color: var(--pink); }
.link-card .ico {
  width: 40px; height: 40px;
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--pink-deep);
}
.link-card h3 { margin: 0 0 4px; color: var(--pink-deep); font-size: 1.1rem; }
.link-card p { margin: 0; font-size: .85rem; color: var(--text-soft); }
.link-card .arrow { color: var(--pink-deep); font-weight: 700; margin-top: 8px; display: inline-block; }

/* 概要テーブル（dl） */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.info-table th {
  width: 30%;
  color: var(--pink-deep);
  background: var(--pink-bg);
  white-space: nowrap;
}

/* 受診の流れ */
.flow { list-style: none; counter-reset: flow; margin: 0; padding: 0; }
.flow li {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px 22px 76px;
  margin-bottom: 18px;
}
.flow li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 22px; top: 22px;
  width: 38px; height: 38px;
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
}
.flow h3 { margin: 0 0 6px; color: var(--pink-deep); font-size: 1.08rem; }
.flow p { margin: 0; font-size: .93rem; }

/* 2カラム */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* CTAバナー */
.cta-banner {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
}
.cta-banner h2 { margin: 0 0 8px; color: #fff; }
.cta-banner p { margin: 0 0 20px; opacity: .95; }
.cta-banner .tel-big {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #fff;
  color: var(--pink-deep);
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 700;
}
.cta-banner .tel-big .n { font-size: 1.6rem; }
.cta-banner .tel-big .s { font-size: .76rem; color: var(--text-soft); }

/* マップ */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 420px; border: 0; }

/* バッジ・タグ */
.tag {
  display: inline-block;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: .78rem;
  padding: 3px 12px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}

.note-box {
  background: var(--mint);
  color: #2f6f67;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: .9rem;
}

.lead-text { font-size: 1.02rem; max-width: 760px; }

/* ====================== レスポンシブ ====================== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .feature-grid, .link-grid { grid-template-columns: 1fr 1fr; }
  .access-mini { grid-template-columns: 1fr; }
  .access-mini .map-embed iframe { height: 280px; }
}

@media (max-width: 768px) {
  #header { min-height: 80px; }     /* SPは2行ロゴ分の高さを確保 */

  /* ===== モバイルナビ（右からスライドするドロワー） ===== */
  .gnav-pc { display: none; }       /* PC用ナビは隠す */
  .nav-toggle { display: block; }
  .nav-close { display: flex; }

  .drawer {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: auto;
    width: min(80%, 300px);
    max-width: 100vw;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 64px 0 24px;      /* 上部に×ボタン分の余白 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 200;
  }
  .drawer.open { transform: translateX(0); }

  .drawer ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .drawer li { width: 100%; }
  .drawer a {
    display: block;
    width: 100%;
    padding: 15px 24px;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  .drawer a[aria-current="page"] { background: var(--pink-soft); }

  .nav-close {
    position: absolute;
    top: 14px; right: 14px;
    align-items: center; justify-content: center;
    border: none;
    background: var(--pink-soft);
    color: var(--pink-deep);
    width: 40px; height: 40px;
    border-radius: 10px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
  }

  .nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(74,74,74,.45);
    z-index: 150;
  }
  .nav-overlay.show { display: block; }

  /* ヘッダーの電話ボタンはSPでは非表示（下部の固定電話バーで代替） */
  .header-right .tel-btn { display: none; }

  /* ロゴはSPで少し小さく */
  .brand .brand-name { font-size: 1.1rem; }
  .brand .brand-sub { font-size: .62rem; }

  .about-grid, .feature-grid, .link-grid, .two-col,
  .access-mini, .subsidy-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* メインビジュアルはSPで控えめに（下のキャッチが少し見える） */
  .mainvisual .ph--hero { height: 34vh; min-height: 200px; }

  .hero { padding: 32px 0; }
  .hero h1 { font-size: 1.5rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .section-head h2 { font-size: 1.4rem; }
  .section { padding: 40px 0; }

  /* 診療時間表：横スクロール可 */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll .hours-table { min-width: 540px; }

  .news-list .news-date { min-width: 100%; }
}

/* スマホ下部固定の電話バー（任意の補助導線） */
.mobile-callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--pink-deep);
  box-shadow: 0 -2px 12px rgba(0,0,0,.15);
}
.mobile-callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  padding: 13px;
  font-weight: 700;
  font-size: 1.05rem;
}
@media (max-width: 768px) {
  .mobile-callbar { display: block; }
  body { padding-bottom: 54px; }
}
