/*
Theme Name: seitaiZero
Theme URI: https://seitai-zero.com/
Author: 整体ZERO
Author URI: https://seitai-zero.com/
Description: 整体ZERO 筋膜関節・身長促進専門 公式サイトテーマ。SEO/LLM最適化・レスポンシブデザイン対応。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: seitaizero
*/

/* =====================================================
   整体ZERO デザインシステム v1.0
   コンセプト : 「和の清潔感」× 信頼・専門性
   見出し     : Noto Serif JP（明朝体）
   本文       : Noto Sans JP（ゴシック体）
   レイアウト : スマホ最優先 1カラム
   カラー     : ロゴグリーン #3A8228 ベース
===================================================== */

/* ─── カラートークン ─── */
:root {
  --green-main:   #3A8228;
  --green-dark:   #2A6018;
  --green-mid:    #4D9A38;
  --green-light:  #6DB56D;
  --green-pale:   #EEF5EC;
  --green-pale2:  #F5FAF4;
  --gold:         #B8940A;
  --gold-light:   #D4AA20;
  --ink:          #1C1C1C;
  --ink-mid:      #3D3D3D;
  --ink-light:    #6B6B6B;
  --paper:        #FAFAF8;
  --paper-warm:   #F4F2ED;
  --line-color:   #D8D8D0;
  --radius:       0.375rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ink);
}

h4, h5, h6 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

p {
  line-height: 1.9;
}

a {
  color: inherit;
  text-decoration: none;
}

a[href]:hover {
  opacity: 0.8;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* ─── コンテナ ─── */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.125rem;
  padding-right: 1.125rem;
  max-width: 680px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 860px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1080px;
  }
}

/* ─── セクション共通 ─── */
.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ─── セクション見出し ─── */
.sec-label {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green-main);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sec-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}

.sec-title-line {
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--green-main);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ─── ボタン ─── */
.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--green-main);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0.25rem;
  transition: background 0.18s, transform 0.15s;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  opacity: 1;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--gold);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0.25rem;
  transition: background 0.18s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(184,148,10,0.30);
  text-decoration: none;
}
.btn-gold:hover {
  background: #9A7A06;
  transform: translateY(-1px);
  opacity: 1;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #06C755;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0.25rem;
  transition: background 0.18s;
  text-decoration: none;
}
.btn-line:hover {
  background: #05a847;
  opacity: 1;
}

.btn-outline-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--green-main);
  color: var(--green-main);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}
.btn-outline-green:hover {
  background: var(--green-pale);
  opacity: 1;
}

/* ─── カード ─── */
.card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

/* ─── 区切り線 ─── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--line-color);
}

/* ─── 背景バリエーション ─── */
.bg-paper      { background: var(--paper); }
.bg-paper-warm { background: var(--paper-warm); }
.bg-green-pale { background: var(--green-pale2); }
.bg-ink        { background: var(--ink); }

/* ─── アニメーション ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up {
  animation: fadeUp 0.55s ease-out forwards;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,148,10,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(184,148,10,0); }
}
.pulse-gold {
  animation: pulseGold 2.2s infinite;
}

/* ─── オファーバナー枠 ─── */
.offer-banner-placeholder {
  width: 100%;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFF3CD 100%);
  border: 2px dashed var(--gold-light);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: var(--gold);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* ─── 料金バッジ ─── */
.price-badge {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-main);
  letter-spacing: 0.02em;
}

/* ─── フローティングCTA（スマホ下部固定） ─── */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
}

.floating-cta a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.25rem;
  gap: 0.15rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 700;
}

.floating-cta .cta-tel  { background: var(--green-main); }
.floating-cta .cta-line { background: #06C755; }
.floating-cta .cta-mail { background: #8A9099; }

.floating-cta svg {
  width: 17px;
  height: 17px;
}

/* ─── ヘッダー ─── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line-color);
  padding: 0.75rem 0;
  transition: box-shadow 0.3s, padding 0.3s;
}

#site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.09);
  padding: 0.5rem 0;
}

#site-header .header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#site-header .site-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

#site-header .menu-toggle {
  padding: 0.5rem;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#site-header .menu-toggle svg {
  width: 26px;
  height: 26px;
}

/* ─── ドロワーメニュー ─── */
#nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #fff;
  display: none;
  flex-direction: column;
}

#nav-drawer.is-open {
  display: flex;
}

#nav-drawer .drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--line-color);
}

#nav-drawer .drawer-header img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

#nav-drawer .drawer-close {
  padding: 0.5rem;
  color: var(--ink);
}

#nav-drawer .drawer-close svg {
  width: 24px;
  height: 24px;
}

#nav-drawer nav {
  flex: 1;
  overflow-y: auto;
}

#nav-drawer nav a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 1px solid var(--line-color);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

#nav-drawer nav a:hover,
#nav-drawer nav a.current-menu-item {
  color: var(--green-main);
  font-weight: 700;
  opacity: 1;
}

#nav-drawer .drawer-cta {
  padding: 1rem 1.125rem 2rem;
  background: var(--green-pale2);
  border-top: 1px solid var(--line-color);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

#nav-drawer .drawer-cta a {
  border-bottom: none;
  justify-content: center;
  padding: 0.875rem;
  font-size: 0.95rem;
  border-radius: 0.25rem;
}

/* ─── メインコンテンツ ─── */
#main-content {
  padding-top: 110px; /* ヘッダー高さ分 */
  min-height: 60vh;
}

/* ─── フッター ─── */
#site-footer {
  background: #1C1C1C;
  color: #E0E0D8;
  padding-bottom: 4rem;
}

#site-footer .footer-inner {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

#site-footer .footer-logo {
  text-align: center;
  margin-bottom: 2rem;
}

#site-footer .footer-logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

#site-footer .footer-logo p {
  font-size: 0.75rem;
  color: #777;
}

#site-footer .footer-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

#site-footer .footer-widget-title {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--green-light);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-family: 'Noto Sans JP', sans-serif;
}

#site-footer .footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#site-footer .footer-menu li {
  margin-bottom: 0.45rem;
}

#site-footer .footer-menu a {
  font-size: 0.78rem;
  color: #999;
  transition: color 0.15s;
}

#site-footer .footer-menu a:hover {
  color: #E0E0D8;
  opacity: 1;
}

#site-footer .footer-info {
  font-size: 0.78rem;
  color: #999;
  line-height: 1.9;
}

#site-footer .footer-info .clinic-name {
  color: #E0E0D8;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

#site-footer .footer-info a {
  color: #999;
}

#site-footer .footer-copyright {
  border-top: 1px solid #2E2E2E;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.68rem;
  color: #444;
}

/* ─── パンくずリスト ─── */
.breadcrumb-nav {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line-color);
  padding: 0.5rem 0;
}

.breadcrumb-nav .breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--ink-light);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-nav .breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-nav .breadcrumb-list a {
  color: var(--green-main);
  text-decoration: none;
}

.breadcrumb-nav .breadcrumb-list .sep {
  color: var(--line-color);
}

/* ─── ページヒーロー（固定ページ共通） ─── */
.page-hero {
  background: #1C1C1C;
  padding: 2rem 0;
}

.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.page-hero .page-hero-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}

/* ─── 投稿コンテンツ ─── */
.entry-content {
  line-height: 1.9;
}

.entry-content h1 {
  font-size: clamp(1.4rem, 5vw, 2rem);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.entry-content h2 {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  margin-bottom: 0.75rem;
  margin-top: 2rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--green-main);
}

.entry-content h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.entry-content p {
  margin-bottom: 1rem;
  color: var(--ink-mid);
  font-size: 0.9rem;
}

.entry-content img {
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.entry-content a {
  color: var(--green-main);
  text-decoration: underline;
}

/* ─── FAQ アコーディオン ─── */
.faq-section {
  background: var(--paper-warm);
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .faq-section {
    padding: 5rem 0;
  }
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-q-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.faq-q-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  flex: 1;
}

.faq-toggle-icon {
  color: var(--green-main);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: transform 0.2s;
}

.faq-item[open] .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.125rem 1rem;
  display: flex;
  gap: 0.75rem;
}

.faq-a-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-pale2);
  color: var(--green-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.faq-a-text {
  font-size: 0.82rem;
  color: var(--ink-mid);
  line-height: 1.85;
}

/* ─── ブログ一覧 ─── */
.blog-hero {
  background: #1C1C1C;
  padding: 2.5rem 0;
}

.blog-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.blog-hero p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.blog-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card .eyecatch {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 1rem 1.125rem;
}

.blog-card .card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.blog-card .category-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  background: var(--green-pale);
  color: var(--green-main);
}

.blog-card .post-date {
  font-size: 0.7rem;
  color: var(--ink-light);
}

.blog-card .card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.blog-card .read-more {
  font-size: 0.78rem;
  color: var(--green-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

/* ─── ページネーション ─── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px solid var(--line-color);
  color: var(--ink-mid);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.pagination a:hover {
  background: var(--green-pale);
  color: var(--green-main);
  border-color: var(--green-main);
  opacity: 1;
}

.pagination .current {
  background: var(--green-main);
  color: #fff;
  border-color: var(--green-main);
}

/* ─── 記事ページ ─── */
.single-article {
  padding: 2rem 0 4rem;
}

.single-article .article-header {
  margin-bottom: 2rem;
}

.single-article .article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.single-article .article-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.single-article .eyecatch {
  width: 100%;
  border-radius: 0.5rem;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

/* ─── 404ページ ─── */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-404 .error-code {
  font-family: 'Noto Serif JP', serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404 h1 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.error-404 p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
}

/* ─── ユーティリティ ─── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
