/*
Theme Name: そよかぜ ママ
Theme URI: https://tips-for-moms-and-babies.com/
Author: そよかぜ接骨院
Description: 野田市の子育て中の女性のための、軽くて検索に強いオリジナルテーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: soyokaze-mama
*/

/* ==========================================================
   1. デザイントークン(色・文字・間隔はここだけ変えればサイト全体が変わる)
   ========================================================== */
:root {
  --c-bg: #FBF8F3;          /* 背景(あたたかいクリーム) */
  --c-surface: #FFFFFF;     /* カード・白背景 */
  --c-ink: #2B3732;         /* 本文 */
  --c-muted: #5B6963;       /* 補足文字 */
  --c-primary: #2F6B5A;     /* メインの緑(ボタン・見出し色) */
  --c-primary-dark: #1F4F41;
  --c-tint: #E6F0EC;        /* 薄い緑(背景) */
  --c-warm: #F8E8DD;        /* 薄いピーチ(ブログ背景・ラベル) */
  --c-warm-ink: #8A3B1F;    /* ピーチ上の文字 */
  --c-line: #E4DDD2;        /* 罫線 */

  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;

  --radius: 20px;
  --radius-pill: 999px;
  --wrap: 1120px;
  --gap: 24px;
  --section-y: clamp(48px, 8vw, 80px);
}

/* ==========================================================
   2. 土台
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.45; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(24px, 3.6vw, 32px); }
h3 { font-size: clamp(19px, 2.6vw, 24px); }
p { margin: 0 0 1em; }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 16px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================
   3. レイアウト部品
   ========================================================== */
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--white { background: var(--c-surface); }
.section--tint { background: var(--c-tint); }
.section--warm { background: var(--c-warm); }
.section__head { text-align: center; margin-bottom: 40px; }
.section__head p { color: var(--c-muted); margin: 0; }
.flex { display: flex; flex-wrap: wrap; gap: var(--gap); }
.flex > .col { flex: 1 1 260px; min-width: 0; }
.center { text-align: center; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--c-primary);
  background: var(--c-primary); color: #fff;
  font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.2;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--c-primary); }
.btn--outline:hover { background: var(--c-tint); color: var(--c-primary-dark); }
.btn--white { background: #fff; border-color: #fff; color: var(--c-primary-dark); }
.btn--white:hover { background: var(--c-tint); border-color: var(--c-tint); color: var(--c-primary-dark); }
.btn--lg { min-height: 56px; padding: 0 36px; font-size: 17px; }

/* ラベル(小さな丸いタグ) */
.pill {
  display: inline-block; padding: 2px 12px; border-radius: var(--radius-pill);
  background: var(--c-warm); color: var(--c-warm-ink); font-size: 13px; font-weight: 500; line-height: 1.8;
}
.pill--green { background: var(--c-tint); color: var(--c-primary-dark); }

/* カード */
.card {
  display: flex; flex-direction: column; gap: 12px; height: 100%;
  padding: 28px; background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: var(--radius); color: inherit; text-decoration: none;
}
.card > h3 { margin: 0; }
.card > p { margin: 0; font-size: 15px; color: #4A5852; }
.card__more { margin-top: auto; font-weight: 700; color: var(--c-primary); }

/* 写真が入るまでの枠(本番では画像に差し替え) */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 200px; padding: 16px; border-radius: var(--radius);
  background: var(--c-tint); border: 2px dashed #9DBFB2; color: #3F5F54;
}

/* ==========================================================
   4. ヘッダー(スマホはメニューが <details> で開閉。JS不要)
   ========================================================== */
.site-header { background: var(--c-bg); border-bottom: 1px solid var(--c-line); position: relative; z-index: 20; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.3; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--c-primary); }
.brand__sub { font-size: 12px; color: var(--c-muted); }
.gnav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.gnav a { color: var(--c-ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; }
.gnav a:hover, .gnav .current-menu-item > a { color: var(--c-primary); }
.header-cta { display: none; }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .gnav { display: none; }
  .nav-toggle { display: block; }
  .nav-toggle summary {
    list-style: none; cursor: pointer; min-height: 44px; padding: 0 18px; display: flex; align-items: center;
    border: 2px solid var(--c-primary); border-radius: var(--radius-pill); color: var(--c-primary); font-weight: 700;
  }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle__panel {
    position: absolute; left: 0; right: 0; top: 100%; padding: 8px 24px 24px;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line);
  }
  .nav-toggle__panel ul { margin: 0; padding: 0; list-style: none; }
  .nav-toggle__panel a { display: block; padding: 14px 0; border-bottom: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; font-weight: 500; }
}
@media (min-width: 900px) {
  .header-cta { display: inline-flex; min-height: 44px; padding: 0 22px; font-size: 15px; }
}

/* ==========================================================
   5. フッター・スマホ固定のLINEボタン
   ========================================================== */
.cta-band { background: var(--c-primary); color: #fff; text-align: center; padding-block: var(--section-y); }
.cta-band h2 { color: #fff; }
.cta-band p { margin-bottom: 20px; }
.site-footer { padding-block: 40px 96px; font-size: 14px; color: var(--c-muted); }
.site-footer__in { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--c-muted); }
.copyright { margin-top: 24px; text-align: center; font-size: 13px; }
.line-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 243, .96); border-top: 1px solid var(--c-line);
}
.line-bar .btn { width: 100%; }
@media (min-width: 900px) { .line-bar { display: none; } .site-footer { padding-bottom: 40px; } }

/* ==========================================================
   6. パンくず・記事(ブログ/固定ページ)
   ========================================================== */
.breadcrumb { padding-block: 16px; font-size: 13px; color: var(--c-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a { color: var(--c-muted); }

.post-list { display: flex; flex-wrap: wrap; gap: var(--gap); }
.post-card { flex: 1 1 280px; display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--radius); overflow: hidden; color: var(--c-ink); text-decoration: none; }
.post-card__thumb { aspect-ratio: 16 / 9; background: var(--c-tint); object-fit: cover; width: 100%; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.post-card__title { font-weight: 700; font-size: 18px; line-height: 1.6; margin: 0; }
.post-card__date { font-size: 13px; color: var(--c-muted); }

.entry { width: min(100% - 48px, 760px); margin-inline: auto; padding-block: 24px var(--section-y); }
.entry__title { margin-bottom: 12px; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--c-muted); margin-bottom: 24px; }
.entry-content { font-size: 17px; }
.entry-content h2 { margin-top: 2.2em; padding-bottom: .4em; border-bottom: 3px solid var(--c-tint); }
.entry-content h3 { margin-top: 1.8em; color: var(--c-primary-dark); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--c-line); text-align: left; }
.entry-content th { background: var(--c-tint); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--c-line); border-radius: 999px; text-decoration: none; background: #fff; }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
