/* ========================================
   わがや整骨院 共通スタイル
   Mobile-first / Noto Sans JP
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* --- リセット・ベース --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:   #2E7D32;
  --color-primary-d: #1B5E20;
  --color-primary-l: #E8F5E9;
  --color-accent:    #BF360C;
  --color-line:      #027A3B;
  --color-text:      #333333;
  --color-text-s:    #666666;
  --color-bg:        #FFFFFF;
  --color-bg-gray:   #F8F9FA;
  --color-border:    #E0E0E0;
  --color-link:      #2E7D32;
  --font-base:       'Noto Sans JP', sans-serif;
  --radius:          8px;
  --shadow:          0 2px 8px rgba(0,0,0,.08);
  --max-width:       1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  padding-top: 60px; /* fixed header分 */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

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

/* --- スキップリンク (WCAG 2.4.1) --- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transform: translateY(-100%);
  background: var(--color-primary);
  color: #fff;
  padding: .5rem 1rem;
  font-size: .9rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { transform: translateY(0); }

/* --- ヘッダー --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid var(--color-primary);
  height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.site-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-d);
  line-height: 1.2;
}
.site-logo small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-s);
}

.header-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-tel, .btn-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn-tel {
  background: var(--color-accent);
  color: #fff;
}
.btn-line {
  background: var(--color-line);
  color: #fff;
}
.btn-tel:hover { background: #8B2500; text-decoration: none; color:#fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.btn-line:hover { background: #015228; text-decoration: none; color:#fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ナビ */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  font-size: 13px;
  color: var(--color-text);
  padding: 4px 8px;
  border-radius: 4px;
}
.site-nav a:hover { background: var(--color-primary-l); text-decoration: none; }

/* --- フッター固定CTA（スマホのみ） --- */
.fixed-cta {
  display: none; /* PC幅では非表示 */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  gap: 0;
}
.fixed-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}
.fixed-cta .cta-tel { background: var(--color-accent); }
.fixed-cta .cta-line { background: var(--color-line); }

/* C-07: fixed CTAはスマホのみ表示のため余白もスマホのみ（@media内で設定） */

/* --- メインフッター --- */
.site-footer {
  background: var(--color-primary-d);
  color: #fff;
  padding: 40px 16px 24px;
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.footer-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.footer-info { font-size: 14px; line-height: 1.9; opacity: .9; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-nav a { color: rgba(255,255,255,.8); font-size: 13px; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-copy {
  text-align: center;
  font-size: 12px;
  opacity: .7;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.2);
}

/* --- セクション共通 --- */
section { padding: 48px 0; }
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary-d);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-primary);
  position: relative;
}
.section-sub {
  font-size: 14px;
  color: var(--color-text-s);
  margin-bottom: 8px;
  font-weight: 400;
}
.section-bg { background: var(--color-bg-gray); }
.content-body .director-career {
  font-size: 14px;
  color: var(--color-text-s);
  margin-top: -8px;
  margin-bottom: 8px;
}

/* --- ヒーロー（トップのみ） --- */
.hero {
  background: linear-gradient(135deg, var(--color-primary-l) 0%, #fff 60%);
  padding: 48px 16px;
  text-align: center;
}
.hero-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary-d);
  line-height: 1.4;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 15px;
  color: var(--color-text-s);
  margin-bottom: 24px;
}
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.hero-btns .btn-tel,
.hero-btns .btn-line {
  font-size: 18px;
  padding: 14px 28px;
  min-width: 240px;
  justify-content: center;
  border-radius: 50px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-image img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* --- 診療時間テーブル --- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.hours-table th, .hours-table td {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  text-align: center;
}
.hours-table th { background: var(--color-primary); color: #fff; font-weight: 700; }
.hours-table tr:nth-child(even) td { background: var(--color-primary-l); }
.hours-table .closed { color: #999; }

/* --- カードグリッド --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 38px;
  height: 38px;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: block;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-d);
  margin-bottom: 8px;
}
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-d);
}
.card-link::after { content: ' →'; }

/* --- 症状ページ：ヒーローアイコン・症状リスト --- */
.page-hero-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary-d);
  margin-bottom: 10px;
  display: block;
}
.content-body ul.symptom-list {
  list-style: none;
  padding-left: 0;
}
.content-body ul.symptom-list li {
  position: relative;
  padding: 8px 0 8px 16px;
  border-left: 3px solid var(--color-primary-l);
  margin-bottom: 4px;
}
.related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  align-items: flex-start;
}

/* --- ページヒーロー（内部ページ） --- */
.page-hero {
  background: var(--color-primary-l);
  padding: 32px 16px;
  border-bottom: 3px solid var(--color-primary);
}
.page-hero-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary-d);
}
.page-hero-lead {
  font-size: 15px;
  color: var(--color-text-s);
  margin-top: 8px;
}

/* --- パンくず --- */
.breadcrumb {
  font-size: 13px;
  color: var(--color-text-s);
  padding: 12px 0;
}
.breadcrumb a { color: var(--color-text-s); }
.breadcrumb a:hover { color: var(--color-link); }
.breadcrumb span { margin: 0 6px; }

/* --- CTAボックス --- */
.cta-box {
  background: var(--color-primary-l);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  margin: 32px 0;
}
.cta-box-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-d);
  margin-bottom: 12px;
}
.cta-box .btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.cta-box .btn-tel,
.cta-box .btn-line {
  font-size: 16px;
  padding: 12px 24px;
  min-width: 200px;
  justify-content: center;
  border-radius: 50px;
}

/* --- 注意ボックス --- */
.notice-box {
  background: #FFF8E1;
  border-left: 4px solid #FFC107;
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  font-size: 15px;
}

/* --- テーブル横スクロールラッパー --- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.table-scroll .hours-table,
.table-scroll .price-table { margin: 0; }

/* --- 料金テーブル --- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.price-table th, .price-table td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}
.price-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}
.price-table tr:nth-child(even) td { background: var(--color-primary-l); }
.price-table .price-val {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}
.faq-q {
  font-weight: 700;
  color: var(--color-primary-d);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
}
.faq-q::before { content: 'Q'; background: var(--color-primary); color: #fff; border-radius: 4px; padding: 0 6px; flex-shrink: 0; }
.faq-a {
  margin-top: 10px;
  padding-left: 30px;
  font-size: 15px;
  color: var(--color-text);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.faq-a::before { content: 'A'; background: var(--color-bg-gray); color: var(--color-text-s); border-radius: 4px; padding: 0 6px; flex-shrink: 0; font-weight: 700; }

/* --- マップ --- */
.map-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.map-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* --- 内部ページ本文 --- */
.content-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-d);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-l);
}
.content-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin: 24px 0 8px;
  padding-left: 10px;
  border-left: 4px solid var(--color-primary);
}
.content-body p { margin-bottom: 14px; font-size: 15px; }
.content-body ul { margin: 12px 0 16px 20px; list-style: disc; }
.content-body ul li { margin-bottom: 6px; font-size: 15px; }
.content-body strong { color: var(--color-primary-d); }

/* --- 姉妹店ページ限定：赤系配色（ヘッダー・フッターは対象外） --- */
main.theme-sister {
  --color-primary: #C62828;
  --color-primary-d: #8E0000;
  --color-primary-l: #FDECEA;
  --color-accent: #C62828;
  --color-line: #B71C1C;
}
main.theme-sister .btn-line:hover { background: #8E0000; }

/* --- ナビオーバーレイ（スマホ） --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 900;
}
.nav-overlay.open { display: block; }

.drawer-nav {
  position: fixed;
  top: 60px; right: -280px;
  width: 280px;
  height: calc(100vh - 60px);
  background: #fff;
  z-index: 950;
  transition: right .3s;
  overflow-y: auto;
  box-shadow: -4px 0 16px rgba(0,0,0,.1);
}
.drawer-nav.open { right: 0; }
.drawer-nav ul { padding: 16px 0; }
.drawer-nav li a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.drawer-nav li a:hover { background: var(--color-primary-l); text-decoration: none; }

/* =========================================
   レスポンシブ
   ========================================= */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: row; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  body { padding-top: 70px; }
  .site-header { height: 70px; }
  .site-logo { font-size: 20px; }
  .hamburger { display: none !important; }
  .site-nav { display: flex !important; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 2fr 1fr; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 28px; }
  .hero { text-align: left; }
  .hero-inner { flex-direction: row; align-items: center; gap: 40px; }
  .hero-text { flex: 1 1 52%; }
  .hero-image { flex: 1 1 48%; }
  .hero-btns { align-items: flex-start; justify-content: flex-start; }
}

@media (max-width: 899px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .header-cta .btn-tel span.label,
  .header-cta .btn-line span.label { display: none; }
  .header-cta .btn-tel,
  .header-cta .btn-line { padding: 8px 10px; font-size: 13px; }
  .fixed-cta { display: flex; }
  body { padding-bottom: 60px; } /* C-07: スマホのみ固定CTAの高さ分 */
  body.no-fixed-cta { padding-bottom: 0; }
}

/* ===== 姉妹店セクション（トップページ） ===== */
.sister-salon {
  background: #FCE4EC;
  border-left: 4px solid #C2185B;
  padding: 24px 28px;
  border-radius: 8px;
}
.sister-salon-label {
  font-size: 12px;
  font-weight: 700;
  color: #C2185B;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sister-salon h2 {
  font-size: 22px;
  color: #AD1457;
  margin: 0 0 10px;
}
.sister-salon p { margin: 6px 0; }
.sister-staff {
  font-size: 15px;
  margin: 10px 0;
  color: #555;
}
.btn-sister {
  display: inline-block;
  background: #C2185B;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  margin: 8px 8px 0 0;
  transition: background .2s;
}
.btn-sister:hover { background: #AD1457; color: #fff; text-decoration: none; }
.btn-sister-ig {
  display: inline-block;
  background: transparent;
  color: #C2185B;
  border: 2px solid #C2185B;
  padding: 8px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 8px;
  transition: background .2s, color .2s;
}
.btn-sister-ig:hover { background: #C2185B; color: #fff; text-decoration: none; }

/* フッター姉妹店ライン */
.footer-sister {
  background: #880E4F;
  color: rgba(255,255,255,.85);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: center;
  align-items: center;
  padding: 9px 16px;
  font-size: 13px;
}
.footer-sister a {
  color: #F8BBD0;
  text-decoration: underline;
  margin: 0 8px;
}
.footer-sister a:hover { color: #fff; }
