/* ===================================
   CHRONO CLINIC - Common Styles
   Theme: Navy × Beige × Gold
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  /* ── メインカラー（ネイビー） ── */
  --navy: #1a2744;
  --navy-light: #2c3e6b;
  --navy-dark: #0f1a30;

  /* ── ベージュ系（増量・段階的に） ── */
  --beige: #c9b99a;
  --beige-light: #e8ddd0;
  --beige-lighter: #f5f0ea;
  --beige-mid: #ede6dd;     /* 中間ベージュ（テーブル偶数行など） */
  --beige-pale: #faf7f3;    /* 最も薄いベージュ（ページ背景） */

  /* ── アクセント（ゴールド） ── */
  --gold: #b8965a;
  --gold-light: #d4b47a;
  --gold-pale: #f5eedd;

  /* ── ニュートラル ── */
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-gray: #666677;
  --text-light: #999aaa;
  --border-light: #e0d8cf;
  --border-mid: #cfc6ba;

  /* ── フォント ── */
  --font-main: 'Noto Sans JP', sans-serif;
  --font-en: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', serif;

  /* ── ユーティリティ ── */
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(26,39,68,0.08);
  --shadow-md: 0 4px 20px rgba(26,39,68,0.12);
  --shadow-lg: 0 8px 40px rgba(26,39,68,0.16);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--beige-pale);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul { list-style: none; }

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 50px 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title .en {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.section-title p {
  margin-top: 16px;
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
}

.section-title .line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* ===== BUTTON STYLES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--beige-lighter);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 15px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--beige-lighter);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-gray);
}

.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb .current { color: var(--navy); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,150,90,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero .en {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: 30px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.08em;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===== ACCORDION ===== */
.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  transition: var(--transition);
}

.accordion-header:hover { color: var(--gold); }

.accordion-header .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 14px;
}

.accordion-header.active .icon {
  background: var(--navy);
  color: var(--white);
  transform: rotate(45deg);
}

.accordion-body {
  display: none;
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.9;
}

.accordion-body.open { display: block; }

/* ===== NOTICE BOX ===== */
.notice-box {
  background: var(--beige-lighter);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
}

/* ===== GRID ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 9998;
}

#scrollTop.show { display: flex; }
#scrollTop {
  background: var(--gold);
  color: var(--white);
}
#scrollTop:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ===== PHONE CTA ===== */
.phone-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.phone-cta i { color: var(--gold); }

/* ===== TAG / BADGE ===== */
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--beige-lighter);
  color: var(--navy);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-light);
}

.tag-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.tag-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ===== TABLES ===== */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 13px;
}

.price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.price-table tr:last-child td { border-bottom: none; }

.price-table tr:nth-child(even) td { background: var(--beige-lighter); }

.price-table .price {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.price-table .note {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 4px;
}

/* ===== MEDICAL DX NOTICE ===== */
.medical-dx {
  background: #f0f4fa;
  border: 1px solid #c5d0e8;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 40px 0;
}

.medical-dx h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #c5d0e8;
}

.medical-dx ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-gray);
  line-height: 2;
}

/* ===== LOGO IMAGE ===== */
/* ロゴは白背景のためダーク背景上では小さな白いボックスに入れて表示 */

.header-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo img.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  background: rgba(255,255,255,0.95);
  border-radius: 6px;
  padding: 3px 8px;
}

.header-logo .logo-dept {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

/* footer logo image */
.footer-logo-block img.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  background: rgba(255,255,255,0.95);
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 8px;
  display: block;
}

/* ===== SCHEDULE TABLE (診療時間表) ===== */
.schedule-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}

.schedule-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  text-align: center;
  font-size: 14px;
  font-family: var(--font-main);
}

.schedule-table th,
.schedule-table td {
  padding: 11px 8px;
  border: 1px solid var(--border-light);
  line-height: 1.4;
}

/* 曜日ヘッダー行 */
.schedule-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* 時間帯列 */
.schedule-table .time-col {
  background: var(--beige-lighter);
  font-weight: 600;
  color: var(--navy);
  font-size: 13px;
  white-space: nowrap;
  text-align: left;
  padding-left: 14px;
  width: 130px;
}

/* 診療あり */
.schedule-table .open {
  background: #eaf4ea;
  color: #1e7a1e;
  font-weight: 700;
  font-size: 16px;
}

/* 休診・昼休み */
.schedule-table .close {
  background: var(--beige-lighter);
  color: #bbb;
  font-size: 13px;
}

/* 昼休みセル（colspan） */
.schedule-table .lunch {
  background: #faf7f3;
  color: #aaa;
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* 日曜強調 */
.schedule-table .sun {
  color: #c0392b;
}

/* 土曜強調 */
.schedule-table .sat {
  color: #2468c0;
}

.schedule-note {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 8px;
  line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-title h2 { font-size: 22px; }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .container { padding: 0 16px; }
  .btn-lg { padding: 16px 32px; font-size: 14px; }
  .page-hero h1 { font-size: 24px; }
  .schedule-table { font-size: 12px; }
  .schedule-table th,
  .schedule-table td { padding: 8px 4px; }
  .schedule-table .time-col { font-size: 11px; padding-left: 8px; width: 110px; }
  .schedule-table .open { font-size: 14px; }
}
