@charset "UTF-8";
/* =========================================================
   ちかメンタルクリニック 公式サイト
   現行サイト（chika-mental-cl.jp）の配色・構成を再現した自主運用版
   メイン: #1065b2 / サブ: #5EB7E8 / 背景: #E8F3F8
========================================================= */

:root {
  --main-color: #1065b2;
  --sub-color: #5EB7E8;
  --bg-color: #E8F3F8;
  --border-color: #e0e0e0;
  --text-color: #333;
  --accent-orange: #FF8327;
  --accent-red: #fa6565;
  --font-jp: "BIZ UDPGothic", "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  --font-eng: "Jost", "Futura", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-jp);
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.9;
  background: #fff;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: var(--main-color); transition: opacity .2s; }
a:hover { opacity: .75; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border-color); }
.header-top {
  max-width: 1200px; margin: 0 auto; padding: 18px 20px 10px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.logo { text-decoration: none; line-height: 1.4; }
.logo .logo-sub { display: block; font-size: 12px; color: var(--main-color); letter-spacing: .05em; }
.logo .logo-main { display: block; font-size: 26px; font-weight: 700; color: var(--main-color); letter-spacing: .06em; }
.header-info { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.header-address { font-size: 12px; line-height: 1.6; text-align: right; }
.header-address .tel {
  display: block; font-size: 22px; font-weight: 700; color: var(--main-color);
  font-family: var(--font-eng); letter-spacing: .04em; text-decoration: none;
}
.header-btns { display: flex; gap: 8px; }

.btn {
  display: inline-block; text-align: center; text-decoration: none;
  border-radius: 6px; font-weight: 700; padding: 10px 18px; font-size: 14px;
  line-height: 1.5; border: 2px solid transparent;
}
.btn-primary { background: var(--main-color); color: #fff; }
.btn-orange { background: var(--accent-orange); color: #fff; }
.btn-outline { background: #fff; color: var(--main-color); border-color: var(--main-color); }
.btn-lg { font-size: 17px; padding: 14px 32px; border-radius: 8px; }

/* ---------- グローバルナビ ---------- */
.global-nav { background: #fff; border-top: 1px solid var(--border-color); position: relative; }
.global-nav > ul {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: center; flex-wrap: wrap;
}
.global-nav > ul > li { position: relative; }
.global-nav > ul > li > a {
  display: block; padding: 12px 16px; text-decoration: none; color: var(--text-color);
  font-size: 14px; font-weight: 700; text-align: center; line-height: 1.3;
}
.global-nav > ul > li > a .en {
  display: block; font-family: var(--font-eng); font-size: 10px; font-weight: 500;
  color: var(--sub-color); letter-spacing: .1em; text-transform: uppercase;
}
.global-nav > ul > li > a:hover,
.global-nav > ul > li > a.current { color: var(--main-color); opacity: 1; }
.global-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 50;
  min-width: 220px; background: var(--main-color); border-radius: 0 0 6px 6px; overflow: hidden;
}
.global-nav li:hover .sub-menu { display: block; }
.global-nav .sub-menu a {
  display: block; padding: 10px 16px; color: #fff; text-decoration: none;
  font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.2);
}
.nav-toggle { display: none; }

/* ---------- パンくず ---------- */
.breadcrumb { background: var(--bg-color); }
.breadcrumb ol { max-width: 1200px; margin: 0 auto; padding: 8px 20px; display: flex; flex-wrap: wrap; font-size: 12px; }
.breadcrumb li + li::before { content: "＞"; margin: 0 8px; color: #999; }

/* ---------- ページタイトル ---------- */
.page-title { background: linear-gradient(135deg, var(--main-color), var(--sub-color)); color: #fff; }
.page-title .wrap { padding: 40px 20px; }
.page-title h1 { font-size: 28px; font-weight: 700; letter-spacing: .08em; }
.page-title .en { font-family: var(--font-eng); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }

/* ---------- セクション見出し ---------- */
.sec-title { text-align: center; margin-bottom: 36px; }
.sec-title .en {
  display: block; font-family: var(--font-eng); font-size: 13px; letter-spacing: .2em;
  color: var(--sub-color); text-transform: uppercase; margin-bottom: 4px;
}
.sec-title h2 { font-size: 28px; color: var(--main-color); letter-spacing: .1em; }
.sec-title h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 12px auto 0;
  background: var(--sub-color); border-radius: 2px;
}

h3.line-title {
  font-size: 21px; color: var(--main-color); border-bottom: 2px solid var(--main-color);
  padding-bottom: 8px; margin: 40px 0 20px;
}
h3.line-title:first-child { margin-top: 0; }

section { padding: 64px 0; }
section.alt { background: var(--bg-color); }

/* ---------- ヒーロー ---------- */
.hero { background: var(--bg-color); padding: 0; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 36px 20px; }
.hero-catch { text-align: center; margin-bottom: 24px; }
.hero-catch h1 { font-size: 30px; color: var(--main-color); letter-spacing: .1em; line-height: 1.6; }
.hero-catch p { font-size: 15px; margin-top: 8px; }
.hero-panels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hero-panel {
  background: #fff; border: 2px solid var(--sub-color); border-radius: 10px;
  padding: 18px 10px; text-align: center; font-weight: 700; color: var(--main-color);
  font-size: 16px; line-height: 1.6; display: flex; flex-direction: column; justify-content: center;
  text-decoration: none;
}
.hero-panel small { font-weight: 400; color: var(--text-color); font-size: 12px; }

/* ---------- 写真プレースホルダー ---------- */
.photo-ph {
  background: repeating-linear-gradient(45deg, #f4f8fb, #f4f8fb 12px, #eaf2f8 12px, #eaf2f8 24px);
  border: 2px dashed var(--sub-color); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--main-color); font-size: 14px; font-weight: 700; text-align: center;
  min-height: 180px; padding: 16px; line-height: 1.6;
}
.photo-ph::before { content: "📷"; font-size: 30px; margin-bottom: 6px; }
.photo-ph small { font-weight: 400; color: #777; font-size: 11px; }
.photo-ph.tall { min-height: 300px; }

/* ---------- お知らせ ---------- */
.news-box {
  max-height: 420px; overflow-y: auto; border: 1px solid var(--border-color);
  border-radius: 8px; background: #fff; padding: 0 24px;
}
.news-item { padding: 20px 0; border-bottom: 1px dashed var(--border-color); }
.news-item:last-child { border-bottom: none; }
.news-item .news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.news-item time { font-family: var(--font-eng); color: #888; font-size: 14px; letter-spacing: .05em; }
.news-item .news-cat {
  background: var(--sub-color); color: #fff; font-size: 11px; border-radius: 3px;
  padding: 1px 10px; font-weight: 700;
}
.news-item .news-cat.important { background: var(--accent-red); }
.news-item h3 { font-size: 17px; color: var(--main-color); margin-bottom: 6px; }
.news-item .news-body { font-size: 14px; color: #555; }
.news-item .news-body p { margin-bottom: .6em; }
.news-item .news-body p:last-child { margin-bottom: 0; }
.news-more { text-align: center; margin-top: 24px; }

/* お知らせ一覧ページ */
.news-page .news-item { border: 1px solid var(--border-color); border-radius: 8px; padding: 24px; margin-bottom: 20px; background:#fff; }

/* ---------- 医院情報（トップ） ---------- */
.clinic-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.info-address { font-size: 15px; }
.info-address .tel-big {
  display: inline-block; font-family: var(--font-eng); font-size: 30px; font-weight: 700;
  color: var(--main-color); text-decoration: none; margin: 6px 0;
}

/* 診療時間テーブル */
.hours-table th, .hours-table td {
  border: 1px solid var(--border-color); text-align: center; padding: 8px 4px; font-size: 14px;
}
.hours-table thead th { background: var(--main-color); color: #fff; font-weight: 700; }
.hours-table tbody th { background: var(--bg-color); font-weight: 700; white-space: nowrap; }
.hours-note { font-size: 13px; color: #555; margin-top: 10px; }
.hours-note li { padding-left: 1em; text-indent: -1em; }
.hours-note li::before { content: "・"; }

/* ---------- ごあいさつ ---------- */
.greeting-grid { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.greeting-name { text-align: right; margin-top: 16px; font-size: 15px; }
.greeting-name strong { font-size: 20px; margin-left: 8px; }

/* ---------- 特徴 Point ---------- */
.point-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.point-item { background: #fff; border-radius: 10px; padding: 24px 28px; box-shadow: 0 2px 8px rgba(16,101,178,.08); }
.point-item .point-num {
  font-family: var(--font-eng); color: var(--sub-color); font-size: 13px;
  letter-spacing: .15em; text-transform: uppercase;
}
.point-item h3 { color: var(--main-color); font-size: 18px; margin: 2px 0 8px; }
.point-item p { font-size: 14px; }

/* ---------- 診療案内カード ---------- */
.medical-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.medical-card {
  display: block; text-decoration: none; background: #fff; border: 1px solid var(--border-color);
  border-radius: 10px; overflow: hidden; text-align: center;
}
.medical-card .photo-ph { border: none; border-radius: 0; min-height: 150px; }
.medical-card .medical-card-body { padding: 18px 14px 22px; }
.medical-card h3 { color: var(--main-color); font-size: 18px; line-height: 1.5; }
.medical-card .en { font-family: var(--font-eng); font-size: 11px; color: var(--sub-color); letter-spacing: .12em; text-transform: uppercase; }
.medical-card .fake-btn {
  display: inline-block; margin-top: 12px; background: var(--main-color); color: #fff;
  border-radius: 20px; font-size: 13px; padding: 5px 24px; font-weight: 700;
}

/* ---------- 下層 レイアウト ---------- */
.page-body { max-width: 1200px; margin: 0 auto; padding: 48px 20px 72px; display: flex; gap: 40px; align-items: flex-start; }
.main-col { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; background: var(--bg-color); border-radius: 10px; padding: 28px 24px; }
.sidebar .btn { display: block; margin-bottom: 10px; }
.sidebar h3 { color: var(--main-color); font-size: 16px; margin: 20px 0 10px; border-bottom: 2px solid var(--sub-color); padding-bottom: 4px; }
.sidebar .hours-table th, .sidebar .hours-table td { padding: 5px 2px; font-size: 11.5px; }
.sidebar-tel { display: block; text-align: center; font-family: var(--font-eng); font-size: 24px; font-weight: 700; color: var(--main-color); text-decoration: none; }
.sidebar-note { font-size: 12px; color: #555; }
.sidebar-nav a { display: block; background: #fff; border-radius: 6px; padding: 8px 12px; margin-bottom: 6px; text-decoration: none; font-size: 13px; font-weight: 700; }

/* ---------- 汎用パーツ ---------- */
.lead-box { background: var(--bg-color); border-radius: 8px; padding: 20px 24px; margin-bottom: 28px; font-size: 15px; }
.content-block { margin-bottom: 44px; }
.content-block h4 { color: var(--main-color); font-size: 17px; margin: 20px 0 8px; }

.check-list li { padding-left: 1.6em; text-indent: -1.6em; margin-bottom: 6px; }
.check-list li::before { content: "✔"; color: var(--sub-color); font-weight: 700; margin-right: .6em; }

.dot-list li { padding-left: 1.2em; text-indent: -1.2em; margin-bottom: 4px; }
.dot-list li::before { content: "●"; color: var(--sub-color); font-size: 10px; margin-right: .6em; vertical-align: 2px; }

.note-text { font-size: 13px; color: #666; }

/* 症状アコーディオン風ブロック */
.symptom-block { border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.symptom-block h3 { background: var(--bg-color); color: var(--main-color); font-size: 17px; padding: 12px 18px; }
.symptom-block .symptom-body { padding: 14px 18px; font-size: 14.5px; }

/* 疾患ブロック */
.disease-block { margin-bottom: 32px; }
.disease-block h3 {
  color: #fff; background: var(--main-color); border-radius: 6px;
  font-size: 18px; padding: 10px 18px; margin-bottom: 12px;
}
.disease-block p { font-size: 15px; }

/* 料金テーブル */
.price-table th, .price-table td { border: 1px solid var(--border-color); padding: 10px 14px; font-size: 14.5px; }
.price-table th { background: var(--bg-color); color: var(--main-color); font-weight: 700; text-align: left; width: 44%; }
.price-table td { background: #fff; }

/* FAQ */
.faq-item { border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-item .faq-q {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px;
  background: var(--bg-color); font-weight: 700; color: var(--main-color); font-size: 15.5px;
}
.faq-item .faq-q::before { content: "Q"; font-family: var(--font-eng); font-size: 20px; color: var(--sub-color); font-weight: 700; line-height: 1.4; }
.faq-item .faq-a { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; font-size: 14.5px; }
.faq-item .faq-a::before { content: "A"; font-family: var(--font-eng); font-size: 20px; color: var(--accent-orange); font-weight: 700; line-height: 1.4; }
.faq-item .faq-a > div { flex: 1; }

/* 経歴テーブル */
.history-table th { color: var(--main-color); font-weight: 700; text-align: left; white-space: nowrap; padding: 6px 20px 6px 0; vertical-align: top; }
.history-table td { padding: 6px 0; }
.history-table tr { border-bottom: 1px dashed var(--border-color); }

/* 院内紹介ギャラリー */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure figcaption { text-align: center; font-size: 14px; font-weight: 700; color: var(--main-color); margin-top: 6px; }

/* 地図 */
.map-embed { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 400px; border: 0; }

/* CTAバナー（ページ下部） */
.cta-banner { background: linear-gradient(135deg, var(--main-color), var(--sub-color)); color: #fff; text-align: center; }
.cta-banner .wrap { padding: 48px 20px; }
.cta-banner p.cta-lead { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: .06em; }
.cta-banner .cta-tel { font-family: var(--font-eng); font-size: 34px; font-weight: 700; color: #fff; text-decoration: none; display: inline-block; margin: 4px 0 14px; }
.cta-banner .btn-outline { border-color: #fff; color: var(--main-color); }

/* ---------- フッター ---------- */
.site-footer { background: var(--main-color); color: #fff; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 20px 24px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-clinic h2 { font-size: 22px; margin-bottom: 4px; }
.footer-clinic .footer-dept { font-size: 12px; opacity: .85; margin-bottom: 12px; }
.footer-clinic address { font-style: normal; font-size: 14px; line-height: 1.8; }
.footer-clinic a { color: #fff; }
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-nav ul li { margin-bottom: 8px; }
.footer-nav a { color: #fff; text-decoration: none; font-size: 14px; }
.copyright { text-align: center; font-size: 12px; padding: 16px; border-top: 1px solid rgba(255,255,255,.25); opacity: .85; }

/* ---------- 追従ボタン（スマホ下部） ---------- */
.fixed-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; display: none; }
.fixed-cta ul { display: flex; }
.fixed-cta li { flex: 1; }
.fixed-cta a {
  display: block; text-align: center; color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 700; padding: 10px 4px; line-height: 1.4;
}
.fixed-cta .cta-tel-btn { background: var(--sub-color); }
.fixed-cta .cta-web-btn { background: var(--main-color); }
.fixed-cta .cta-company-btn { background: var(--accent-orange); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .point-list, .clinic-info-grid, .greeting-grid { grid-template-columns: 1fr; }
  .medical-cards, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-panels { grid-template-columns: 1fr 1fr; }
  .page-body { flex-direction: column; }
  .sidebar { width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 15px; padding-bottom: 58px; }
  .header-top { padding: 12px 16px; }
  .logo .logo-main { font-size: 20px; }
  .header-info { display: none; }
  .hero-catch h1 { font-size: 22px; }
  .sec-title h2 { font-size: 22px; }
  .page-title h1 { font-size: 22px; }
  .medical-cards, .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .fixed-cta { display: block; }

  .nav-toggle {
    display: block; position: absolute; top: -54px; right: 16px;
    background: var(--main-color); color: #fff; border: none; border-radius: 6px;
    padding: 8px 12px; font-size: 13px; font-weight: 700; cursor: pointer;
  }
  .global-nav { position: relative; }
  .global-nav > ul { display: none; flex-direction: column; }
  .global-nav.open > ul { display: flex; }
  .global-nav > ul > li > a { border-bottom: 1px solid var(--border-color); text-align: left; padding: 12px 20px; }
  .global-nav .sub-menu { display: block; position: static; min-width: 0; border-radius: 0; }
}

@media print {
  .fixed-cta, .nav-toggle { display: none; }
}
