/* ============================================================
   Konoha こどもの歯ならびクリニック学研都市
   共通スタイルシート / common/style.css
   ここを変えると全ページに反映されます
============================================================ */

/* フォント読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600&family=M+PLUS+Rounded+1c:wght@300;400;500;700&display=swap');

/* ============================================================
   カラー・フォント変数
============================================================ */
:root {
  --sky:        #6ec6c6;
  --sky-dark:   #3da8a8;
  --sky-deeper: #1e8080;
  --sky-pale:   #e6f6f6;
  --sky-mid:    #b0dede;
  --mint:       #9ed4c4;
  --mint-pale:  #e0f2ec;
  --cream:      #fafaf6;
  --cream-warm: #f4f1ea;
  --sand:       #e8e0d0;
  --gray:       #4a4845;
  --gray-mid:   #9a9690;
  --gray-light: #f0eeeb;
  --white:      #ffffff;
  --line:       #06C755;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans:  'M PLUS Rounded 1c', sans-serif;
}

/* ============================================================
   リセット・ベース
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--cream); color: var(--gray); line-height: 1.7; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--sky-deeper); text-decoration: none; }
a:hover { text-decoration: underline; }
main { padding-top: 70px; }

/* ============================================================
   ヘッダー
============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,246,0.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sky-mid);
  box-shadow: 0 2px 12px rgba(78,170,170,.08);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; padding: 0 24px;
}
.site-logo {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; text-decoration: none;
}
.site-logo:hover { text-decoration: none; opacity: .88; }
.header-logo-img {
  height: 44px; width: auto;
  object-fit: contain; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.clinic-name {
  font-family: var(--font-sans); font-size: .84rem; font-weight: 700;
  color: var(--sky-deeper); line-height: 1.3; letter-spacing: .02em;
}
.clinic-area {
  font-size: .6rem; color: var(--gray-mid);
  letter-spacing: .06em; line-height: 1;
}
.logo-text .clinic-name {
  font-family: var(--font-sans); font-size: .88rem; font-weight: 700;
  color: var(--sky-deeper); line-height: 1.4; letter-spacing: .03em;
}
.logo-text .clinic-en { font-size: .56rem; color: var(--gray-mid); letter-spacing: .1em; }
.header-nav { display: flex; gap: 2px; align-items: center; }
.header-nav a {
  font-size: .76rem; font-weight: 500; padding: 6px 10px;
  border-radius: 20px; color: var(--gray); transition: all .2s;
}
.header-nav a:hover { background: var(--sky-pale); color: var(--sky-deeper); text-decoration: none; }
.header-nav .btn-line-header {
  background: var(--line); color: white !important;
  border-radius: 20px; padding: 6px 16px; margin-left: 4px; font-weight: 700;
}
.header-nav .btn-line-header:hover { opacity: .88; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--sky-deeper); border-radius: 2px; transition: all .3s; }
.mobile-nav {
  display: none; position: fixed; top: 66px; left: 0; right: 0;
  background: var(--cream); padding: 10px 18px 18px;
  border-bottom: 1px solid var(--sky-mid); z-index: 99;
  flex-direction: column; gap: 3px; box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 11px 14px; font-size: .88rem; border-radius: 10px; color: var(--gray); font-weight: 500; transition: all .2s; }
.mobile-nav a:hover { background: var(--sky-pale); color: var(--sky-deeper); text-decoration: none; }
.mobile-nav .btn-line-header { background: var(--line); color: white !important; text-align: center; margin-top: 6px; border-radius: 20px; font-weight: 700; }

/* ============================================================
   フッター
============================================================ */
.site-footer { background: var(--sky-deeper); color: rgba(255,255,255,.78); padding: 60px 24px 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 34px; width: auto; }
.footer-clinic-name { font-family: var(--font-sans); font-size: .92rem; font-weight: 700; color: white; }
.footer-info { font-size: .76rem; line-height: 2.1; color: rgba(255,255,255,.55); }
.footer-info a { color: rgba(255,255,255,.7); }
.footer-nav h4 { font-size: .63rem; letter-spacing: .2em; color: rgba(255,255,255,.35); font-weight: 500; margin-bottom: 12px; text-transform: uppercase; }
.footer-nav a { display: block; font-size: .78rem; color: rgba(255,255,255,.62); margin-bottom: 9px; transition: color .2s; }
.footer-nav a:hover { color: var(--sky-pale); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .68rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 8px; }

/* ============================================================
   共通ボタン
============================================================ */
.btn-line {
  background: var(--line); color: white;
  padding: 14px 32px; border-radius: 30px;
  font-size: .9rem; font-weight: 700; letter-spacing: .06em;
  transition: all .25s; border: none; cursor: pointer;
  font-family: var(--font-sans); display: inline-block;
  box-shadow: 0 4px 14px rgba(6,199,85,.25);
}
.btn-line:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(6,199,85,.4); text-decoration: none; color: white; }
.btn-sky {
  background: var(--sky); color: white; padding: 12px 24px; border-radius: 28px;
  font-size: .88rem; font-weight: 600; letter-spacing: .06em;
  transition: all .25s; border: none; cursor: pointer; font-family: var(--font-sans); display: inline-block;
}
.btn-sky:hover { background: var(--sky-dark); transform: translateY(-2px); text-decoration: none; color: white; }
.btn-outline-sky {
  border: 2px solid var(--sky); color: var(--sky-deeper); padding: 11px 22px; border-radius: 28px;
  font-size: .88rem; transition: all .25s; background: transparent; cursor: pointer;
  font-family: var(--font-sans); display: inline-block;
}
.btn-outline-sky:hover { background: var(--sky-pale); text-decoration: none; }

/* ============================================================
   共通レイアウト
============================================================ */
.sw { max-width: 1100px; margin: 0 auto; padding: 96px 48px; }
.sw-narrow { max-width: 820px; margin: 0 auto; padding: 96px 48px; }
.s-en {
  font-size: .68rem; letter-spacing: .28em; color: var(--sky);
  font-weight: 600; text-transform: uppercase; margin-bottom: 14px;
  display: block;
}
.s-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700; color: var(--sky-deeper) !important;
  line-height: 1.6; margin-bottom: 20px;
}
.s-lead {
  font-size: .92rem; color: var(--gray);
  line-height: 2.3; margin-bottom: 52px;
  max-width: 680px;
}
.tc { text-align: center; }
.tc .s-lead { margin-left: auto; margin-right: auto; }

/* ============================================================
   スクロールトップ
============================================================ */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  background: var(--sky); color: white; border: none; border-radius: 50%;
  font-size: 18px; cursor: pointer; opacity: 0; transform: translateY(8px);
  transition: all .3s; z-index: 50; box-shadow: 0 4px 14px rgba(78,170,170,.32);
  font-family: var(--font-sans);
}
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--sky-dark); }

/* ============================================================
   ブログ記事共通
============================================================ */
.breadcrumb {
  max-width: 1100px; margin: 0 auto; padding: 14px 48px;
  font-size: .76rem; color: var(--gray-mid);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-light);
}
.breadcrumb a { color: var(--sky-dark); transition: color .2s; }
.breadcrumb a:hover { color: var(--sky-deeper); text-decoration: none; }
.article-hero {
  background: linear-gradient(135deg, var(--sky-pale), var(--mint-pale));
  padding: 64px 24px 52px; text-align: center; border-bottom: 1px solid var(--sky-mid);
}
.article-category {
  display: inline-block; background: var(--sky); color: white;
  font-size: .72rem; letter-spacing: .14em; padding: 4px 14px;
  border-radius: 20px; margin-bottom: 18px; font-weight: 500;
}
.article-title {
  font-family: var(--font-sans); font-size: clamp(1.4rem,4vw,2.1rem);
  font-weight: 700; color: var(--sky-deeper); line-height: 1.6; margin-bottom: 14px;
  max-width: 780px; margin-left: auto; margin-right: auto;
}
.article-meta { font-size: .76rem; color: var(--gray-mid); display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.article-wrap {
  max-width: 860px; margin: 0 auto; padding: 48px 24px 80px;
  display: grid; grid-template-columns: 1fr 240px; gap: 48px; align-items: start;
}
.article-body p { font-size: .93rem; line-height: 1.9; margin-bottom: 18px; color: var(--gray); }
.article-body h2 {
  font-family: var(--font-sans); font-size: 1.18rem; font-weight: 700;
  color: var(--sky-deeper); margin: 44px 0 16px;
  padding: 14px 18px; background: var(--sky-pale);
  border-left: 4px solid var(--sky); border-radius: 0 10px 10px 0; line-height: 1.6;
}
.article-body h3 {
  font-family: var(--font-sans); font-size: 1.02rem; font-weight: 700;
  color: var(--sky-deeper); margin: 28px 0 12px;
  padding-left: 14px; border-left: 3px solid var(--sky-mid); line-height: 1.6;
}
.point-box { background: var(--sky-pale); border-radius: 12px; padding: 20px 22px; margin: 24px 0; border-left: 4px solid var(--sky); }
.point-box p { margin-bottom: 0; }
.point-box-title { font-weight: 700; color: var(--sky-deeper); font-size: .88rem; margin-bottom: 8px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tag { background: var(--sky-pale); color: var(--sky-dark); font-size: .74rem; padding: 4px 12px; border-radius: 12px; }
.article-cta {
  background: linear-gradient(135deg, var(--sky-dark), var(--sky-deeper));
  border-radius: 16px; padding: 32px; text-align: center; margin: 48px 0 0;
}
.article-cta .cta-title { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; color: white; margin-bottom: 8px; line-height: 1.6; }
.article-cta .cta-sub { font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 20px; line-height: 1.8; }
.article-side { position: sticky; top: 80px; }
.side-card { background: white; border-radius: 14px; padding: 20px; box-shadow: 0 4px 14px rgba(78,170,170,.08); margin-bottom: 18px; border-top: 3px solid var(--sky); }
.side-card-title { font-family: var(--font-sans); font-size: .9rem; font-weight: 700; color: var(--sky-deeper); margin-bottom: 12px; }
.side-link-list { list-style: none; padding: 0; }
.side-link-list li { border-bottom: 1px solid var(--gray-light); }
.side-link-list li:last-child { border-bottom: none; }
.side-link-list a { display: block; padding: 9px 0; font-size: .78rem; color: var(--gray); line-height: 1.6; transition: color .2s; }
.side-link-list a:hover { color: var(--sky-dark); text-decoration: none; }
.side-line-btn { display: block; background: var(--line); color: white; text-align: center; padding: 12px; border-radius: 10px; font-size: .82rem; font-weight: 700; margin-bottom: 10px; transition: all .2s; }
.side-line-btn:hover { opacity: .88; text-decoration: none; }
.side-tel { background: var(--sky-pale); border-radius: 10px; padding: 13px; text-align: center; }
.side-tel .tel-num { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700; color: var(--sky-deeper); }
.side-tel .tel-hours { font-size: .68rem; color: var(--gray-mid); margin-top: 4px; line-height: 1.7; }

/* ============================================================
   レスポンシブ
============================================================ */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .clinic-area { display: none; }
  .clinic-name { font-size: .78rem; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .article-wrap { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .sw { padding: 64px 20px; }
  .sw-narrow { padding: 64px 20px; }
  .page-hero { padding: 64px 20px 52px; }
  .breadcrumb { padding: 12px 20px; }
}

/* ヘッダー内予約ボタン */
.header-nav .btn-sky-header {
  background: var(--sky); color: white !important;
  border-radius: 20px; padding: 6px 14px; margin-left: 2px; font-weight: 600;
  transition: all .2s;
}
.header-nav .btn-sky-header:hover { background: var(--sky-dark); opacity: 1; }

/* ページヒーロー共通 */
.page-hero {
  background: linear-gradient(135deg, var(--sky-dark) 0%, var(--sky-deeper) 100%);
  padding: 96px 24px 80px; text-align: center;
  position: relative; overflow: hidden;
  width: 100%;
}
.page-hero::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.06); border-radius: 50%;
}
.page-hero-en {
  font-size: .8rem; letter-spacing: .28em;
  color: rgba(255,255,255,.7) !important;
  margin-bottom: 16px; display: block; text-transform: uppercase;
  position: relative;
}
.page-hero-title {
  font-family: var(--font-sans) !important;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.5;
  margin-bottom: 18px;
  position: relative;
  text-align: center;
  width: 100%;
}
.page-hero-sub {
  font-size: .9rem; color: rgba(255,255,255,.78) !important;
  line-height: 2.1; max-width: 580px; margin: 0 auto;
  position: relative; text-align: center;
}

/* 共通CTA */
.common-cta {
  background: linear-gradient(135deg, var(--sky-dark) 0%, var(--sky-deeper) 100%);
  padding: 80px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.common-cta-title {
  font-family: var(--font-sans); font-size: clamp(1.3rem,3vw,1.9rem);
  font-weight: 700; color: white; margin-bottom: 10px; line-height: 1.6;
  text-align: center; width: 100%;
}
.common-cta-sub {
  font-size: .84rem; color: rgba(255,255,255,.7); margin-bottom: 28px;
  line-height: 2; text-align: center; max-width: 600px; width: 100%;
}

/* カード系 */
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.white-card { background: white; border-radius: 16px; padding: 28px; box-shadow: 0 4px 14px rgba(78,170,170,.08); }
.white-card-top { border-top: 3px solid var(--sky); }

/* アコーディオンFAQ */
.faq-item { background: white; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(78,170,170,.06); margin-bottom: 12px; }
.faq-q { padding: 18px 22px; font-weight: 700; color: var(--sky-deeper); font-size: .9rem; cursor: pointer; display: flex; align-items: center; gap: 12px; user-select: none; }
.faq-q::before { content: 'Q'; background: var(--sky); color: white; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; flex-shrink: 0; }
.faq-q::after { content: '+'; margin-left: auto; font-size: 1.3rem; color: var(--sky); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 18px 60px; font-size: .86rem; line-height: 2.1; color: var(--gray); }
.faq-item.open .faq-a { display: block; }

/* ギャラリー */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; transition: transform .4s; }
.gallery-grid img:hover { transform: scale(1.03); }

/* 診療時間テーブル */
.hours-tbl {
  width: 100%; border-collapse: separate; border-spacing: 3px;
  font-size: .84rem; table-layout: fixed;
}
.hours-tbl thead th {
  background: var(--sky-deeper); color: white;
  font-weight: 700; font-size: .82rem;
  padding: 12px 4px; text-align: center; border-radius: 6px;
}
.hours-tbl thead th:first-child {
  background: transparent;
}
.hours-tbl .td-label {
  background: var(--cream-warm); color: var(--gray-mid);
  font-size: .76rem; font-weight: 700; text-align: center;
  padding: 14px 4px; border-radius: 6px; vertical-align: middle;
}
.hours-tbl .cl {
  background: #f0f0f0; color: var(--gray-mid);
  font-size: .78rem; text-align: center; padding: 14px 2px;
  border-radius: 6px; vertical-align: middle;
}
.hours-tbl .op {
  background: var(--sky-pale); color: var(--sky-deeper);
  font-weight: 700; font-size: .78rem; text-align: center;
  padding: 10px 2px; border-radius: 6px; vertical-align: middle;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid img { height: 150px; }
}

/* ===== スマホ余白調整 ===== */
@media (max-width: 768px) {

  /* 全体のセクション余白を狭める */
  .sw { padding-left: 14px !important; padding-right: 14px !important; }
  .sw-n { padding-left: 12px !important; padding-right: 12px !important; }

  /* コンテンツの最大幅を画面幅いっぱいに */
  .sw > div,
  .sw-n > div {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 記事・料金・各ページのラッパー */
  .price-wrap { padding-left: 14px !important; padding-right: 14px !important; }
  .article-outer { padding-left: 12px !important; padding-right: 12px !important; }

  /* インラインスタイルで padding が設定されているセクション */
  main > div[style*="padding"] {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

}