/* =========================================
   ジョージ歯科医院 style.css
   ========================================= */

/* ----- CSS変数（色・フォント等はここで一括管理） ----- */
:root {
  --color-primary:       #009999;
  --color-primary-dark:  #007a7a;
  --color-primary-light: #e6f7f7;
  --color-text:          #333333;
  --color-text-light:    #666666;
  --color-bg:            #f5fefe;
  --color-white:         #ffffff;
  --color-border:        #c8e8e8;
  --color-alert:         #c00550;
  --color-notice-warn:   #e07000;

  --font-base: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3",
               "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴPro W3",
               Meiryo, "メイリオ", "MS PGothic", "ＭＳ Ｐゴシック", sans-serif;

  --radius:     6px;
  --shadow:     0 2px 10px rgba(0, 153, 153, 0.12);
  --max-width:  900px;
  --header-h:   72px;
  --nav-h:      44px;
}

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

/* ----- ベース ----- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* ナビの高さ分だけアンカーリンクがずれないよう補正 */
  scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 16px);
}

body {
  font-family: var(--font-base);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ----- コンテナ ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================
   ヘッダー
   ========================================= */
.site-header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
  height: var(--header-h);
}

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

.header-logo .logo {
  height: 50px;
  width: auto;
}

.header-contact {
  text-align: right;
  line-height: 1.4;
}

.header-address {
  font-size: 0.7rem;
  color: var(--color-text-light);
}

.header-tel {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.header-tel:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* =========================================
   ナビゲーション
   ========================================= */
.site-nav {
  background: var(--color-primary);
  position: sticky;
  top: var(--header-h);
  z-index: 199;
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.nav-list {
  display: flex;
  list-style: none;
  height: var(--nav-h);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-list li {
  flex-shrink: 0;
}

.nav-list a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  color: var(--color-white);
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  letter-spacing: 0.03em;
}

.nav-list a:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

/* =========================================
   メインコンテンツ
   ========================================= */
.main-content {
  padding: 24px 0 48px;
}

/* =========================================
   お知らせ
   ========================================= */
.announcements {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.notice {
  border-radius: var(--radius);
  padding: 14px 18px;
  border-left: 4px solid;
}

.notice--alert {
  background: #fff9f0;
  border-color: var(--color-notice-warn);
}

.notice--info {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.notice-title {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.notice--alert .notice-title {
  color: var(--color-notice-warn);
}

.notice--info .notice-title {
  color: var(--color-primary-dark);
}

.notice p {
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.notice p:last-child {
  margin-bottom: 0;
}

/* =========================================
   セクション共通
   ========================================= */
.section {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}

.section-title {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 20px;
  letter-spacing: 0.05em;
}

.section-body {
  padding: 20px;
}

.section-body p {
  margin-bottom: 10px;
}

.section-body p:last-child {
  margin-bottom: 0;
}

/* =========================================
   ご挨拶
   ========================================= */
.director-name {
  text-align: right;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: 4px;
  margin-bottom: 20px !important;
}

.photos-label {
  font-weight: bold;
  margin-bottom: 12px !important;
}

.clinic-photos {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.clinic-photo {
  flex: 1 1 180px;
}

.clinic-photo img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.clinic-photo figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 5px;
}

/* =========================================
   診療時間
   ========================================= */
.hours-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.hours-table {
  width: 100%;
  min-width: 340px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.hours-table th,
.hours-table td {
  border: 1px solid var(--color-border);
  padding: 10px 6px;
  text-align: center;
  vertical-align: middle;
}

.hours-table thead th {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: bold;
}

.hours-table .time-slot {
  text-align: left;
  white-space: nowrap;
  padding-left: 12px;
  background: #fafafa;
  font-weight: bold;
  font-size: 0.82rem;
}

.hours-table .open {
  color: var(--color-primary);
  font-weight: bold;
}

.hours-table .open--note {
  font-size: 0.82rem;
  line-height: 1.4;
}

.hours-table .open--note span {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-light);
  font-weight: normal;
}

.hours-table .closed {
  color: #bbb;
}

.hours-notes {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.hours-notes li {
  padding: 3px 0 3px 18px;
  position: relative;
}

.hours-notes li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.6rem;
  top: 8px;
}

.hours-notes .emergency {
  color: var(--color-alert);
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 4px;
}

.hours-notes .emergency::before {
  color: var(--color-alert);
}

/* =========================================
   アクセス
   ========================================= */
.map-wrap {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 280px;
}

/* =========================================
   ご予約
   ========================================= */
.tel-large {
  margin-top: 8px !important;
}

.tel-large a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-alert);
  text-decoration: none;
}

.tel-large a:hover {
  text-decoration: underline;
}

/* =========================================
   歯科診療内容
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.service-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fafdfd;
}

.service-name {
  font-size: 0.92rem;
  font-weight: bold;
  color: var(--color-primary-dark);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.service-item p {
  font-size: 0.855rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.7;
}

/* =========================================
   医院情報
   ========================================= */
.clinic-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  font-size: 0.9rem;
}

.clinic-info dt {
  font-weight: bold;
  color: var(--color-primary-dark);
  white-space: nowrap;
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.clinic-info dd {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.clinic-info dd:last-child,
.clinic-info dt:last-of-type {
  border-bottom: none;
}

/* =========================================
   フッター
   ========================================= */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 20px 16px;
}

.copyright {
  font-size: 0.72rem;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

/* =========================================
   レスポンシブ - タブレット（600px以上）
   ========================================= */
@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .clinic-photos {
    flex-wrap: nowrap;
  }

  .map-wrap iframe {
    height: 320px;
  }
}

/* =========================================
   レスポンシブ - デスクトップ（768px以上）
   ========================================= */
@media (min-width: 768px) {
  :root {
    --header-h: 80px;
    --nav-h:    48px;
  }

  .main-content {
    padding: 32px 0 60px;
  }

  .header-logo .logo {
    height: 60px;
  }

  .header-address {
    font-size: 0.75rem;
  }

  .header-tel {
    font-size: 1.35rem;
  }

  .nav-list a {
    font-size: 0.875rem;
    padding: 0 18px;
  }

  .section-title {
    font-size: 1.05rem;
    padding: 13px 24px;
  }

  .section-body {
    padding: 24px;
  }

  .hours-table {
    font-size: 0.9rem;
  }

  .hours-table th,
  .hours-table td {
    padding: 12px 10px;
  }

  .tel-large a {
    font-size: 1.75rem;
  }

  .map-wrap iframe {
    height: 350px;
  }

  .announcements {
    flex-direction: row;
  }

  .notice {
    flex: 1;
  }
}

/* =========================================
   レスポンシブ - 大画面（960px以上）
   ========================================= */
@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}
