/*
Theme Name: Konoha Blog
Theme URI: https://konoha-f.com
Description: Konoha こどもの歯ならびクリニック学研都市 ブログテーマ
Author: WebWorks neko
Version: 1.0
*/

@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;
  --gray:       #4a4845;
  --gray-mid:   #9a9690;
  --gray-light: #f0eeeb;
  --white:      #ffffff;
  --line:       #06C755;
  --font-sans:  'M PLUS Rounded 1c', sans-serif;
  --font-serif: 'Noto Serif JP', 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.9;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-deeper); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   サイトヘッダー
============================================================ */
.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: 66px; padding: 0 24px;
}
.site-logo { text-decoration: none; }
.clinic-name {
  font-family: var(--font-sans); font-size: .88rem; font-weight: 700;
  color: var(--sky-deeper); line-height: 1.4; letter-spacing: .03em;
}
.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;
}
.btn-line-header {
  background: var(--line) !important; color: white !important;
  border-radius: 20px !important; padding: 6px 16px !important;
  margin-left: 4px !important; font-weight: 700 !important;
}
.btn-line-header:hover { opacity: .88 !important; }
.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) !important; color: white !important;
  text-align: center; margin-top: 6px;
}

/* ============================================================
   メインコンテンツ
============================================================ */
#main { padding-top: 66px; }

/* ============================================================
   ブログ一覧ページ
============================================================ */
.blog-hero {
  background: linear-gradient(135deg, var(--sky-dark) 0%, var(--sky-deeper) 100%);
  padding: 80px 24px 64px; text-align: center;
}
.blog-hero-en {
  font-size: .7rem; letter-spacing: .28em; color: rgba(255,255,255,.7);
  margin-bottom: 14px; display: block; text-transform: uppercase;
}
.blog-hero-title {
  font-family: var(--font-sans); font-size: clamp(1.8rem,4vw,2.8rem);
  font-weight: 700; color: white; line-height: 1.5; margin-bottom: 14px;
}
.blog-hero-sub {
  font-size: .9rem; color: rgba(255,255,255,.78); line-height: 2;
  max-width: 580px; margin: 0 auto;
}
.blog-wrap { max-width: 1100px; margin: 0 auto; padding: 64px 24px 80px; }
.blog-section-en {
  font-size: .68rem; letter-spacing: .28em; color: var(--sky);
  font-weight: 600; text-transform: uppercase; margin-bottom: 12px; display: block;
}
.blog-section-title {
  font-family: var(--font-sans); font-size: clamp(1.4rem,2.8vw,2rem);
  font-weight: 700; color: var(--sky-deeper); line-height: 1.6; margin-bottom: 40px;
}

/* 記事カードグリッド */
.posts-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
  margin-bottom: 48px;
}
.post-card {
  background: white; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(78,170,170,.08); transition: all .25s;
  display: flex; flex-direction: column; text-decoration: none;
}
.post-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 32px rgba(78,170,170,.15);
  text-decoration: none;
}
.post-thumb {
  height: 200px; overflow: hidden; background: var(--sky-pale);
  display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 22px; flex: 1; }
.post-cat {
  font-size: .7rem; color: var(--sky); margin-bottom: 8px;
  letter-spacing: .08em; font-weight: 600;
}
.post-title {
  font-family: var(--font-sans); font-size: .95rem; font-weight: 700;
  color: var(--sky-deeper); line-height: 1.6; margin-bottom: 10px;
}
.post-excerpt { font-size: .78rem; color: var(--gray-mid); line-height: 1.8; }
.post-footer {
  padding: 12px 22px; border-top: 1px solid var(--gray-light);
  font-size: .76rem; color: var(--sky-dark);
}

/* ページネーション */
.pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 48px;
}
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: white; color: var(--gray); font-size: .86rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: all .2s; text-decoration: none;
}
.page-numbers.current, .page-numbers:hover {
  background: var(--sky-deeper); color: white; text-decoration: none;
}

/* ============================================================
   記事ページ
============================================================ */
.article-breadcrumb {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  font-size: .76rem; color: var(--gray-mid);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-light);
}
.article-breadcrumb a { color: var(--sky-dark); transition: color .2s; }
.article-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 { min-width: 0; }
.article-body p { font-size: .93rem; line-height: 2.2; margin-bottom: 20px; color: var(--gray); }
.article-body h2 {
  font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700;
  color: var(--sky-deeper); margin: 48px 0 18px;
  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: 1rem; font-weight: 700;
  color: var(--sky-deeper); margin: 28px 0 12px;
  padding-left: 14px; border-left: 3px solid var(--sky-mid);
}
.article-body img { border-radius: 12px; margin: 20px 0; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { font-size: .93rem; line-height: 2; color: var(--gray); }

/* ポイント枠 */
.wp-block-quote, .point-box {
  background: var(--sky-pale); border-radius: 12px; padding: 20px 22px;
  margin: 24px 0; border-left: 4px solid var(--sky);
}
.wp-block-quote p, .point-box p { font-size: .9rem; line-height: 2; color: var(--sky-deeper); font-weight: 600; margin: 0; }

/* タグ */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.post-tags a {
  background: var(--sky-pale); color: var(--sky-dark); font-size: .74rem;
  padding: 4px 12px; border-radius: 12px; transition: all .2s;
}
.post-tags a:hover { background: var(--sky); color: white; text-decoration: none; }

/* 記事末尾CTA */
.article-cta {
  background: linear-gradient(135deg, var(--sky-dark), var(--sky-deeper));
  border-radius: 16px; padding: 36px; 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;
}
.btn-line {
  background: var(--line); color: white; padding: 13px 28px; border-radius: 28px;
  font-size: .88rem; font-weight: 700; display: inline-block;
  transition: all .25s; margin: 4px;
}
.btn-line:hover { opacity: .88; transform: translateY(-2px); text-decoration: none; color: white; }
.btn-sky {
  background: var(--sky); color: white; padding: 12px 24px; border-radius: 28px;
  font-size: .88rem; font-weight: 600; display: inline-block;
  transition: all .25s; margin: 4px;
}
.btn-sky:hover { background: var(--sky-dark); text-decoration: none; color: white; }

/* サイドバー */
.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-num {
  font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700; color: var(--sky-deeper);
}
.side-tel-hours { font-size: .68rem; color: var(--gray-mid); margin-top: 4px; line-height: 1.7; }

/* ============================================================
   サイトフッター
============================================================ */
.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-clinic-name { font-family: var(--font-sans); font-size: .92rem; font-weight: 700; color: white; margin-bottom: 14px; }
.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;
}

/* スクロールトップ */
.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);
}
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--sky-dark); }

/* ============================================================
   レスポンシブ
============================================================ */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .blog-hero { padding: 64px 20px 48px; }
}
