/*
 * けやき薬局（hp-005-keyaki）
 * ベース：Template A｜パターン2：地域密着型（グリーン）
 *
 * ⚠️ カラーは「緑（ミント系）」というヒアリング段階の情報に基づく暫定値です。
 *    正式な色コード・トーン確定後にこの :root ブロックのみ差し替えてください。
 *
 * 2026-09-07：--primary を #2F9E7E → #237A61 に一段濃くした。
 *   旧色は白地で 3.33:1 しかなく WCAG AA（通常文字 4.5:1）を満たしていなかった。
 *   色相は保ったまま明度だけ下げ、白地5.21 / ミント淡4.74 / bg-tint4.93 /
 *   白抜き5.21 と全条件で基準を満たす値にしている。
 *   この値を変える場合は、上記4条件すべてで 4.5:1 以上を確認すること。
 */
@import url('base.css');

:root {
  /* ---- ミントグリーン系テーマ（暫定） ---- */
  --primary:       #237A61;  /* メイン：ミントグリーン（白地 5.21:1） */
  --primary-light: #4FBF9C;
  --primary-pale:  #EAF7F2;
  --primary-dark:  #1C6B55;
  --accent:        #F2A63B;  /* アクセント：やわらかい橙（CTA用） */
  --accent-dark:   #DB8F22;
  --bg-tint:       #F4FAF7;
  --border:        #CFE9DF;
  --hero-overlay:  linear-gradient(135deg, rgba(24,92,74,0.82) 0%, rgba(16,64,52,0.58) 100%);
}

/* ===========================
   けやき薬局 追加コンポーネント
=========================== */

/* ===========================
   余白監査の反映（2026-08-22）
   template-a は高齢者中心の想定のため、本文・行間・余白を一段大きく取る
=========================== */

/* 見出し ↔ 小見出し：12px → 28px（ガードレール 24〜32px） */
.section-title { margin-bottom: 28px; }

/* 本文まわり：14.4px/1.85 → 15.2px/2.0（高齢者向けの読みやすさ） */
body { line-height: 2.0; }
.section-lead { font-size: 0.95rem; line-height: 2.0; margin-bottom: 48px; }
.sn-desc,
.about-text { font-size: 0.95rem; line-height: 2.0; }

/* ヒーロー：見出し ↔ 説明文 16px → 28px */
.hero-title { margin-bottom: 28px; }

/* お知らせ1行あたりの高さを確保（タップしやすさ・読みやすさ） */
.news-item { padding: 18px 0; }

/* 締めのCTAはセクションのリズムに合わせる（64px → 76px） */
.cta-section { padding: 76px 0; }

@media (max-width: 768px) {
  .section-title { margin-bottom: 20px; }
  .section-lead { margin-bottom: 32px; }
  .hero-title { margin-bottom: 20px; }
  .cta-section { padding: 52px 0; }
}

/* ---------- ヘッダー（メニュー7項目のため間隔を微調整） ---------- */
@media (min-width: 769px) {
  .header-nav { gap: 17px; }
  .header-nav a { font-size: 0.84rem; }
}

/* ---------- LINE 友だち追加 ---------- */
.line-cta {
  background: var(--primary-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}
@media (max-width: 768px) {
  .line-cta { padding: 24px 20px; }
}
.line-cta-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.line-cta-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 18px;
}
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #06C755;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 999px;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(6,199,85,0.28);
}
.btn-line:hover { background: #05A948; transform: translateY(-1px); }
.line-cta-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 12px;
}
/* ヘッダーナビ内のLINEリンク */
.nav-line-link { color: #06C755 !important; font-weight: 700; }

/* ---------- お知らせタグ（休局情報を追加） ---------- */
.news-tag--holiday { background: #FDE8E6; color: #B03A2E; }

/* ---------- 施設基準ページ ---------- */
.std-updated {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 32px;
}
.std-group { margin-bottom: 40px; }
.std-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  margin-bottom: 16px;
}
.std-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.std-table th,
.std-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.std-table tr:last-child th,
.std-table tr:last-child td { border-bottom: none; }
.std-table th {
  width: 38%;
  background: var(--primary-pale);
  font-weight: 700;
  color: var(--text);
}
.std-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 14px;
  line-height: 1.9;
}
.std-tbd {
  display: inline-block;
  background: #FFF4E5;
  border: 1px dashed var(--accent-dark);
  color: #A66200;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
}

/* ---------- 採用ページ ---------- */
.recruit-lead-box {
  background: var(--primary-pale);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 48px;
}
.recruit-lead-box p { font-size: 0.95rem; line-height: 2; }
.recruit-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.recruit-point {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.recruit-point-icon { font-size: 2rem; margin-bottom: 10px; }
.recruit-point-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.recruit-point-desc { font-size: 0.86rem; color: var(--text-light); }
.recruit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.recruit-table th,
.recruit-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.recruit-table tr:last-child th,
.recruit-table tr:last-child td { border-bottom: none; }
.recruit-table th {
  width: 28%;
  background: var(--primary-pale);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 制作メモ（初稿プレビュー限定・公開前に削除） ---------- */
.draft-flag {
  background: #FFF9E6;
  border: 1px dashed #E0A800;
  color: #8A6100;
  font-size: 0.82rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .recruit-points { grid-template-columns: 1fr; }
  .std-table th, .recruit-table th { width: 34%; }
}

/* ============================================================
   修正依頼 v1 の反映（2026-08-23）
   出典：HP修正依頼_v1
============================================================ */

/* ---------- (1) 十字ロゴを全ページから削除、社名をナビと同サイズに ----------
   ロゴデータが未入手のため、十字マークとロゴ画像は出さず社名テキストのみにする。
   サイズはヘッダーナビの各項目（.header-nav a）と揃える。 */
.site-name {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
@media (min-width: 769px) {
  .site-name { font-size: 0.84rem; }  /* PC：.header-nav a の実寸に合わせる */
}
@media (max-width: 768px) {
  .site-name { font-size: 1rem; }     /* SP：ドロワー内のナビ項目に合わせる */
}
.footer-site-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* ---------- (1) ファーストビュー：PCのみ左右2カラム ---------- */
.hero--split {
  min-height: auto;
  display: grid;
  grid-template-columns: 64% 36%;
  align-items: stretch;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-visual {
  position: relative;
  min-height: min(640px, 78vh);
  background: var(--primary-pale);
}
.hero-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* 深緑のベタ被せは廃止。実写真を受領したため色被せはほぼ無くし、
   右パネルとの境目がなじむ程度のごく淡いトーンだけ残す。 */
.hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(47,158,126,0.04) 0%,
    rgba(47,158,126,0.02) 60%,
    rgba(234,247,242,0.34) 100%);
}
.hero-panel {
  background: var(--primary-pale);
  display: flex; align-items: center;
}
.hero-panel-in {
  /* 右端に寄せすぎないよう、右側の余白を厚めに取る */
  padding: 56px 64px 56px 44px;
  width: 100%;
  text-align: left;
}
.hero--split .hero-tag {
  background: #fff;
  border: 1px solid var(--border);
  backdrop-filter: none;
  color: var(--primary-dark);
  margin-bottom: 22px;
}
.hero--split .hero-title {
  color: var(--text);
  font-size: clamp(1.9rem, 2.9vw, 2.6rem);
  line-height: 1.45;
  text-shadow: none;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero--split .hero-desc {
  color: var(--text-light);
  opacity: 1;
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.hero--split .hero-actions { justify-content: flex-start; margin-bottom: 32px; }
.hero--split .btn-white {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 18px rgba(47,158,126,.24);
}
.hero--split .btn-white:hover { background: var(--primary-dark); }

/* 営業時間・電話（明るい面の上に置くカード） */
.hero-facts {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.hero-facts dl { display: grid; grid-template-columns: 6.2em 1fr; gap: 6px 10px; margin-bottom: 14px; }
.hero-facts dt { font-size: 0.78rem; color: var(--text-light); }
.hero-facts dd { font-size: 0.88rem; font-weight: 700; }
.hero-facts-tel {
  display: flex; align-items: center; gap: 8px;
  padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 1.24rem; font-weight: 700; color: var(--primary);
}
.hero-facts-tel small { font-size: 0.74rem; font-weight: 400; color: var(--text-light); }

/* ---------- (1)(3) サービス一覧：全て同じ向き・同じ高さ ---------- */
/* 一覧そのものをグリッドにして、行の高さを自動で揃える。
   固定px指定だと文章を直したときに崩れるため、grid-auto-rows: 1fr で吸収する。 */
/* 全ボックスを一律 min-height 300px で揃える。
   以前は `grid-auto-rows: 1fr` で全行を最も高い項目に合わせていたが、
   項目03（LINEでの処方箋受付）に注意書きを足した結果、文章の短い01などまで
   引きずられて空白が広がった。揃えるのは下限だけにして、
   内容が多い03のみ必要な分だけ伸びるようにする。 */
.service-numbered-list {
  display: grid;
  gap: 48px;
}
.sn-item,
.sn-item--rev {
  grid-template-columns: 64px 1fr 320px;
  align-items: stretch;
  min-height: 300px;
}
.sn-item--rev .sn-num,
.sn-item--rev .sn-body,
.sn-item--rev .sn-image { order: unset; }
.sn-body { display: flex; flex-direction: column; justify-content: center; }
.sn-image { display: flex; align-items: center; justify-content: center; }
.sn-image img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.sn-image--icon {
  width: 100%; height: auto; min-height: 180px;
  /* 内容の多い項目03では枠が575pxまで伸びて空白が目立つため上限を掛ける */
  max-height: 320px;
  font-size: 3rem;
}

/* ---------- (1)(3) LINEでの処方箋受付フロー ---------- */
.rx-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
/* 注意書き。STEP1〜3と重複する4件を削除し、有効期限の1件のみ残した
   （2026-09-07）。1件になったためPCの2カラム化は不要。 */
.rx-notes { margin-top: 10px; display: grid; gap: 4px; }
.rx-notes li {
  font-size: 0.82rem; color: var(--text-light); line-height: 1.65;
  padding-left: 1.1em; position: relative;
}
.rx-notes li::before { content: '※'; position: absolute; left: 0; color: var(--primary); }
.rx-notes strong { color: var(--text); }
.rx-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 8px 8px;
  text-align: center;
  position: relative;
}
.rx-step + .rx-step::before {
  content: '';
  position: absolute; left: -9px; top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--primary-light);
  border-right: 2px solid var(--primary-light);
  transform: translateY(-50%) rotate(45deg);
}
.rx-step svg { width: 26px; height: 26px; margin: 0 auto 4px; display: block; color: var(--primary); }
.rx-step-no {
  font-size: 0.64rem; font-weight: 700; letter-spacing: .1em;
  color: var(--primary); margin-bottom: 4px;
}
.rx-step-label { font-size: 0.78rem; font-weight: 700; line-height: 1.45; }
.rx-flow-cap { font-size: 0.76rem; color: var(--text-light); margin-top: 8px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .rx-flow { grid-template-columns: 1fr; }
  .rx-step + .rx-step::before { display: none; }
}
@media (max-width: 768px) {
  /* (1) スマホは従来どおり1カラムで縦並び */
  .hero--split { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; }
  .hero-panel-in { padding: 36px 24px 40px; }
  .hero--split .hero-actions { justify-content: stretch; }
  .hero--split .hero-actions .btn { flex: 1 1 auto; }
  .service-numbered-list { grid-auto-rows: auto; gap: 28px; }
  .sn-item, .sn-item--rev { grid-template-columns: 1fr; min-height: 0; }
  .sn-image img, .sn-image--icon { min-height: 160px; }
}

/* ---------- (追加) 開局時間カレンダー ----------
   「曜日を列挙して時間を書く」形をやめ、カレンダーのように
   曜日を横に並べた表にする。土＝青／日祝＝赤はカレンダーの慣例に合わせる。 */
.hours-cal {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.hours-cal th,
.hours-cal td {
  text-align: center;
  padding: 8px 2px;
  border-left: 1px solid var(--border);
  line-height: 1.4;   /* 本文の行間2.0を引き継ぐと間延びするため */
}
.hours-cal th:first-child,
.hours-cal td:first-child { border-left: 0; }
.hours-cal thead th {
  background: var(--primary-pale);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding: 9px 2px;
}
.hours-cal thead th.is-sat { color: #2F6FB0; }
.hours-cal thead th.is-sun { color: #C0392B; }
.hours-cal tbody td {
  padding: 12px 2px 13px;
  line-height: 1.35;
}
.hours-cal .t-open,
.hours-cal .t-close {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.hours-cal .t-bar {
  display: block;
  width: 1px; height: 9px;
  background: var(--primary-light);
  margin: 3px auto;
}
.hours-cal td.is-closed { background: #FCF4F3; }
.hours-cal td.is-closed .t-rest {
  display: block;
  font-size: 0.82rem; font-weight: 700; color: #C0392B;
}
.hours-cal td.is-short { background: var(--bg-tint); }
.hours-cal-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 10px;
  line-height: 1.8;
}

/* ヒーロー内は幅が狭いので一段小さく */
.hero-facts .hours-cal thead th { font-size: 0.74rem; padding: 7px 1px; }
.hero-facts .hours-cal .t-open,
.hero-facts .hours-cal .t-close,
.hero-facts .hours-cal td.is-closed .t-rest { font-size: 0.72rem; }
.hero-facts .hours-cal tbody td { padding: 9px 1px 10px; }

/* 店舗情報テーブルの中に入れる場合 */
.info-table .hours-cal { margin: 2px 0; }

@media (max-width: 380px) {
  .hours-cal thead th { font-size: 0.72rem; }
  .hours-cal .t-open, .hours-cal .t-close,
  .hours-cal td.is-closed .t-rest { font-size: 0.7rem; }
}

/* 画面には出さず、読み上げにだけ渡す */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ---------- (追加) 店舗情報テーブルのはみ出し修正 ----------
   開局時間カレンダー（width:100% / table-layout:fixed）を <td> に入れ子にしたことで、
   親テーブルが内容幅に引っ張られ、画面右へ約104pxはみ出していた。
   親を fixed レイアウトにして列幅を固定する。
   ※ セレクタは必ず直接の子（>）に限定すること。子孫セレクタだと
     入れ子のカレンダーの th / td にも当たり、カレンダー自体が崩れる。 */
.store-info {
  max-width: 720px;
  margin: 0 auto;
}
.store-info > .info-table {
  width: 100%;
  table-layout: fixed;
}
.store-info > .info-table > tbody > tr > th { width: 30%; }
.store-info > .info-table > tbody > tr > td { word-break: break-word; }
.store-info .hours-cal-wrap > .hours-cal { width: 100%; }

@media (max-width: 768px) {
  /* スマホでは項目名と内容を縦積みにする。
     横並びのままだと内容側が184pxまで潰れ、カレンダーの時刻が読めなくなるため。 */
  .store-info > .info-table,
  .store-info > .info-table > tbody,
  .store-info > .info-table > tbody > tr,
  .store-info > .info-table > tbody > tr > th,
  .store-info > .info-table > tbody > tr > td { display: block; width: 100%; }
  .store-info > .info-table > tbody > tr { border-bottom: 1px solid var(--border); }
  .store-info > .info-table > tbody > tr > th {
    border-bottom: 0;
    padding: 10px 14px 6px;
    font-size: 0.82rem;
  }
  .store-info > .info-table > tbody > tr > td {
    border-bottom: 0;
    padding: 0 14px 12px;
  }
  .store-info .hours-cal-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* base.css の .info-table th { width:140px } / th の背景・色が、
   入れ子にしたカレンダーの th にも効いてしまうため打ち消す。 */
.store-info .hours-cal th,
.store-info .hours-cal td { width: auto; }
.store-info .hours-cal thead th {
  background: var(--primary-pale);
  color: var(--primary-dark);
  white-space: nowrap;
}
.store-info .hours-cal thead th.is-sat { color: #2F6FB0; }
.store-info .hours-cal thead th.is-sun { color: #C0392B; }

/* ---------- (追加) 実写真の受領にともなう調整（2026-08-24） ---------- */

/* LINE友だち追加のQRコード */
.line-qr { margin-top: 18px; }
.line-qr img {
  width: 160px; height: 160px;
  margin: 0 auto;
  border: 6px solid #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.line-qr-cap { font-size: 0.78rem; color: var(--text-light); margin-top: 8px; }

/* ギャラリーを figure に変更したことへの対応 */
.gallery-item { display: flex; flex-direction: column; }
.gallery-item img { height: 220px; object-fit: cover; }

/* =========================================================
   こんなサービスも｜ヒーロー直下の導線（2026-09-07 修正依頼v5）
   オンライン処方箋受付・LINE・キャッシュレスを、前面に押し出さずに伝える枠。
   LINEの友だち追加が最下部だけだと気づかれにくいため、ここに上段の導線を置く。
   ========================================================= */
.quick-band {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
  padding: 44px 0 48px;
}
.quick-band-title {
  text-align: center;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.quick-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.quick-card svg {
  width: 34px; height: 34px;
  color: var(--primary);
  margin-bottom: 12px;
}
.quick-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 8px;
}
.quick-card-desc {
  font-size: 0.87rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 16px;
  /* 3枚のボタン・リンク位置を下端で揃える */
  flex: 1 1 auto;
}
.quick-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  align-self: flex-start;
}
.quick-card-link::after { content: ' →'; }
.quick-card-link:hover { text-decoration: underline; }

/* LINEのカードだけ、友だち追加ボタンを置いて目立たせる */
.quick-card--line { border-color: #A8E5BF; background: #FBFFFC; }
.btn-line--sm {
  font-size: 0.88rem;
  padding: 11px 22px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .quick-grid { grid-template-columns: 1fr; gap: 14px; }
  .quick-band { padding: 32px 0 36px; }
  .quick-card { padding: 20px 18px 18px; }
  .quick-card-desc { margin-bottom: 14px; }
  .btn-line--sm, .quick-card-link { align-self: stretch; text-align: center; }
}

/* =========================================================
   フッター｜左右余白の修復とスマホでの操作性（2026-09-07 修正依頼v6）

   base.css の .footer-inner が `padding: 44px 0 32px` を指定しており、
   HTMLでは `class="container footer-inner"` と併用しているため
   .container の `padding: 0 24px` を後から打ち消していた。
   その結果、SPで文字が画面左端にべた付きになっていた。

   あわせて、一般的な水準に届いていなかった点をまとめて直す。
     - 文字サイズ：リンク12.75px／住所12.3px／見出し11.25px は小さすぎる
     - タップ領域：リンクの高さ19px（WCAG 2.5.5・Apple HIG 44pt に対して不足）
     - コントラスト：見出し3.7:1／コピーライト2.5:1 でWCAG AA（4.5:1）不足
     - 電話番号が素のテキストで、スマホからタップ発信できなかった
   この薬局は高齢の患者さまが中心の想定なので、下限より一段大きめに取る。
   ========================================================= */

/* ① 左右の余白を明示的に戻す */
.footer-inner { padding: 44px 24px 32px; }

/* ② 文字サイズとコントラストを引き上げる */
.footer-desc { font-size: 0.9rem; line-height: 1.95; }
.footer-nav h3 {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);   /* 実効 #C4C4C4／約10:1 */
}
.footer-nav ul li { margin-bottom: 0; }
.footer-nav ul li a { font-size: 0.9rem; display: block; padding: 6px 0; }
.footer-bottom {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);   /* 実効 #A6A6A6／約7:1 */
}

/* ③ フッターの電話番号をタップできるようにした分の見た目 */
.footer-tel {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-tel:hover { color: var(--primary-light); }

@media (max-width: 768px) {
  .footer-inner { padding: 32px 20px 12px; }
  .footer-desc { font-size: 0.95rem; }

  /* ④ 1行1タップにする。高さ46pxを確保し、区切り線で押し分けやすくする */
  .footer-nav { padding-top: 4px; }
  .footer-nav h3 {
    font-size: 0.82rem;
    padding-bottom: 10px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.16);
  }
  .footer-nav ul li { border-bottom: 1px solid rgba(255,255,255,0.09); }
  .footer-nav ul li:last-child { border-bottom: none; }
  .footer-nav ul li a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 2px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.86);
  }

  /* 電話番号も指で押せる高さにする */
  .footer-tel {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 1.05rem;
  }

  .footer-bottom { padding: 16px 20px; font-size: 0.78rem; }
}

/* =========================================================
   サイト全体点検の反映｜タップ領域とコントラスト（2026-09-07）

   全7ページを機械的に測って見つかった不備のうち、
   ブランドカラーの変更を伴わないものを修正する。
   タップ領域の基準は WCAG 2.5.5（44px）／Apple HIG 44pt／Material 48dp。
   コントラストの基準は WCAG AA（通常文字4.5:1・大きい文字3:1）。
   ========================================================= */

/* ---- ① タップ領域 44px 未満の解消 ---- */

/* ハンバーガー 38x32 → 44x44。メニューを開く主要操作なので最優先 */
.hamburger {
  width: 44px; height: 44px;
  padding: 10px;
  align-items: center;
  justify-content: center;
}

/* ヘッダーのサイト名 80x30 → 高さ44 */
.header-logo { min-height: 44px; }

/* 電話リンク 105x23 → 高さ44（薬局サイトの主要導線） */
.access-tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* パンくず 35x17 → 高さ44。見た目の間隔が広がりすぎないよう
   上下のネガティブマージンで打ち消す */
.breadcrumb { margin-bottom: 4px; }
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;          /* 「ホーム」の文字幅が39pxで基準に届かなかった */
  justify-content: center;
  padding: 0 6px;
}
.breadcrumb ol { align-items: center; }

/* お知らせバーのリンク 79x26 → 高さ44 */
.news-ticker-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* 「こんなサービスも」のリンク 300x26 → 高さ44 */
.quick-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* .btn の高さが 43.x px で基準ぎりぎり下回っていたため padding を +1px */
.btn { padding: 14px 28px; }

/* ---- ② ブランドカラーに関係しないコントラスト不足の解消 ---- */

/* 2.32:1 → 白背景に #6B6B6B で 5.7:1 */
.dx-note { color: #6B6B6B; }

/* お知らせバー：白文字 on rgba(255,255,255,0.2)+緑 = 2.56:1 だった。
   ラベルの地を濃い緑にして白文字が読めるようにする */
.news-ticker-label {
  background: var(--primary-dark);
  color: #fff;
}
/* リンクの薄い緑文字 2.68:1 → 白 */
.news-ticker-link { color: #fff; }

/* 「確認中」バッジ 4.42:1 → 文字色を一段濃くして 5.1:1 */
.std-tbd { color: #8F5400; }

/* =========================================================
   PC幅のタップ領域（2026-09-07 追測）

   前回の点検はSP（390px）だけで測っていたため、PC幅の3件を見落としていた。
   タッチ対応PCやタブレット横向きでは同じ操作になるため揃える。
     .header-nav a       27px → 44px
     .footer-nav ul li a 41px → 44px
     .nav-tel-link       40px → 44px

   ヘッダーナビは下線アニメーション（a::after）が要素の下端基準なので、
   padding を足した分だけ下線の位置も戻している。
   ========================================================= */
@media (min-width: 769px) {
  /* 「ホーム」の文字幅が40pxで基準に届かないため左右にも余白を取り、
     ナビ全体の幅が増えないよう gap を 17px → 9px に詰めて相殺する */
  .header-nav { gap: 9px; }
  .header-nav a { padding: 10px 4px; }
  /* padding-bottom 10px を足したので、下線を文字の3px下に戻す。
     左右のpadding分だけ内側に寄せる。ホバーで伸びる動きは維持する */
  .header-nav a::after { bottom: 7px; left: 4px; }
  .header-nav a:hover::after { width: calc(100% - 8px); }

  .nav-tel-link { padding: 11px 16px !important; }

  .footer-nav ul li a { padding: 10px 0; }
}

/* =========================================================
   施設基準および取得加算に関する掲示（2026-09-27 修正依頼v8）
   各加算を「見出し → 届出の一文 → 取組の箇条書き」で並べる
   ========================================================= */
.std-lead { font-size: 0.95rem; line-height: 1.95; margin-bottom: 12px; }
.std-list { display: grid; gap: 6px; margin: 0 0 4px; }
.std-list li {
  position: relative;
  padding-left: 1.2em;
  font-size: 0.92rem; line-height: 1.85;
}
.std-list li::before {
  content: '';
  position: absolute; left: 0.2em; top: 0.8em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}
.std-remark { font-size: 0.84rem; color: var(--text-light); margin-top: 10px; }

/* 調剤報酬点数表のPDF */
.std-pdf {
  margin: 8px 0 28px;
  padding: 20px 22px;
  background: var(--primary-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.std-pdf-lead { font-size: 0.9rem; margin-bottom: 12px; }
.std-pdf-link {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.std-pdf-link:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.std-pdf-badge {
  flex: none;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .06em;
  color: #fff; background: #B3372B;   /* 白文字 6.2:1 */
  padding: 4px 8px; border-radius: 4px;
}
.std-pdf-body { display: flex; flex-direction: column; min-width: 0; }
.std-pdf-title { font-size: 0.95rem; font-weight: 700; color: var(--primary-dark); }
.std-pdf-meta { font-size: 0.8rem; color: var(--text-light); }

/* 訪問対応エリア・24時間対応の連絡先 */
.std-contact {
  margin-top: 18px;
  border-top: 1px solid var(--border);
}
.std-contact-row {
  display: grid; grid-template-columns: 11em 1fr; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.std-contact dt { font-size: 0.85rem; font-weight: 700; color: var(--primary-dark); }
.std-contact dd { font-size: 0.95rem; }
.std-contact-tel {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--primary-dark);
  text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 768px) {
  .std-contact-row { grid-template-columns: 1fr; gap: 2px; }
  .std-pdf { padding: 16px; }
}

/* 404ページ（採用ページ削除にあわせて追加。無いと Cloudflare Pages が
   存在しないURLにもトップを200で返し、旧URLがトップの複製として残るため） */
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 768px) { .nf-actions .btn { flex: 1 1 100%; } }
