/*
Theme Name: SEIKOTSU CRAFT
Theme URI: https://kanezawa.co.jp/
Author: 株式会社かねさわ
Author URI: https://kanezawa.co.jp/
Description: 整骨院・接骨院向け再利用可能カスタムテーマ。メガメニュー型ヘッダー、スライドショー/静止画切替対応ヒーロー、年別アコーディオンのお知らせ・コラム、6〜11色のカラーパレット切替、スクロールリビール演出、モバイル用スティッキーフッターCTA、オープニングアニメーションを標準搭載。
Version: 0.9.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: seikotsu-base
*/

/* ==========================================================================
   1. カラーパレット定義（CSS変数）
   customizer.php の設定値により <body> に .palette-N が付与され、
   下記の変数が切り替わる。デフォルトは palette-1。
   ========================================================================== */

:root {
  /* ---- パレット共通トークン（サイズ・余白・角丸・シャドウ・アニメ速度） ---- */
  --skb-radius-sm: 4px;
  --skb-radius-md: 10px;
  --skb-radius-lg: 24px;
  --skb-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --skb-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
  --skb-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --skb-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --skb-container: 1200px;

  /* ---- フォント ----
     見出し用は既存のAdobe Fontsキット（fot-tsukuardgothic-std）を仮設定。
     ライバルサイトのフォントが判明したらここを差し替えるだけで全体に反映される。 */
  --skb-font-heading: "fot-tsukuardgothic-std", "Noto Sans JP", sans-serif;
  --skb-font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* Palette 1: Navy & Teal（誠実・信頼／標準） */
body.palette-1 {
  --skb-primary: #163a5f;
  --skb-primary-dark: #0e2740;
  --skb-accent: #2fb6a8;
  --skb-accent-2: #1e8f84;
  --skb-bg: #ffffff;
  --skb-bg-alt: #f4f8f9;
  --skb-text: #23303d;
  --skb-text-light: #66788a;
  --skb-border: #e2e8ec;
  --skb-white: #ffffff;
}

/* Palette 2: Forest & Sand（自然・整体系） */
body.palette-2 {
  --skb-primary: #2f4a3c;
  --skb-primary-dark: #1e3129;
  --skb-accent: #c98a4b;
  --skb-accent-2: #a96b2f;
  --skb-bg: #ffffff;
  --skb-bg-alt: #f6f4ef;
  --skb-text: #2a2f2b;
  --skb-text-light: #6f7a71;
  --skb-border: #e6e2d6;
  --skb-white: #ffffff;
}

/* Palette 3: Charcoal & Gold（高級感・スポーツ接骨） */
body.palette-3 {
  --skb-primary: #1c1c1e;
  --skb-primary-dark: #000000;
  --skb-accent: #c9a24b;
  --skb-accent-2: #a37f2e;
  --skb-bg: #ffffff;
  --skb-bg-alt: #f5f5f4;
  --skb-text: #1c1c1e;
  --skb-text-light: #6b6b6e;
  --skb-border: #e5e5e5;
  --skb-white: #ffffff;
}

/* Palette 4: Indigo & Silver（クール・スタイリッシュ／ライバル系の質感に近い） */
body.palette-4 {
  --skb-primary: #212e53;
  --skb-primary-dark: #141d38;
  --skb-accent: #7d8fb3;
  --skb-accent-2: #5d6f96;
  --skb-bg: #ffffff;
  --skb-bg-alt: #f2f3f7;
  --skb-text: #1c2333;
  --skb-text-light: #6a7284;
  --skb-border: #e2e4ec;
  --skb-white: #ffffff;
}

/* Palette 5: Brown & Cream（温かみ・地域密着） */
body.palette-5 {
  --skb-primary: #5a3d2b;
  --skb-primary-dark: #402a1c;
  --skb-accent: #e0a458;
  --skb-accent-2: #c07f33;
  --skb-bg: #ffffff;
  --skb-bg-alt: #f8f2ea;
  --skb-text: #3a2c22;
  --skb-text-light: #8a7669;
  --skb-border: #ece1d3;
  --skb-white: #ffffff;
}

/* Palette 6: Bordeaux & Beige（落ち着き・女性患者向け） */
body.palette-6 {
  --skb-primary: #6d2532;
  --skb-primary-dark: #4a1922;
  --skb-accent: #d9b48f;
  --skb-accent-2: #b58a63;
  --skb-bg: #ffffff;
  --skb-bg-alt: #faf4ef;
  --skb-text: #322022;
  --skb-text-light: #8a7375;
  --skb-border: #eee0da;
  --skb-white: #ffffff;
}

/* Palette 7: Sky Blue & White（清潔感・小児/女性/産後） */
body.palette-7 {
  --skb-primary: #1c6b8a;
  --skb-primary-dark: #124a60;
  --skb-accent: #7fd1c1;
  --skb-accent-2: #4db3a0;
  --skb-bg: #ffffff;
  --skb-bg-alt: #f0f8fa;
  --skb-text: #223038;
  --skb-text-light: #6d848c;
  --skb-border: #dcedf1;
  --skb-white: #ffffff;
}

/* Palette 8: Black & Vermilion（スポーツ・力強さ） */
body.palette-8 {
  --skb-primary: #171717;
  --skb-primary-dark: #000000;
  --skb-accent: #d0431f;
  --skb-accent-2: #a32e12;
  --skb-bg: #ffffff;
  --skb-bg-alt: #f6f5f4;
  --skb-text: #1a1a1a;
  --skb-text-light: #6e6e6e;
  --skb-border: #e6e6e6;
  --skb-white: #ffffff;
}

/* ==========================================================================
   2. リセット & ベース
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--skb-font-body);
  color: var(--skb-text);
  background: var(--skb-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--skb-font-heading); line-height: 1.4; margin: 0; }
.container { max-width: var(--skb-container); margin: 0 auto; padding: 0 24px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
:focus-visible { outline: 3px solid var(--skb-accent); outline-offset: 2px; }

/* セクション共通 */
.section { padding: 96px 0; }
.section--alt { background: var(--skb-bg-alt); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--skb-accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.section__title { font-size: clamp(24px, 3vw, 36px); font-weight: 700; }
.section__head .section__title::after {
  content: ""; display: block; width: 48px; height: 3px;
  background: var(--skb-accent); margin: 18px auto 0; border-radius: 2px;
}
.section__lead { color: var(--skb-text-light); margin-top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--skb-radius-sm);
  font-weight: 700;
  transition: transform 0.25s var(--skb-ease), box-shadow 0.25s var(--skb-ease);
}
.btn--primary {
  background: linear-gradient(135deg, var(--skb-accent) 0%, var(--skb-accent-2) 100%);
  color: var(--skb-white);
}
.btn--outline { border: 1.5px solid var(--skb-white); color: var(--skb-white); }
.btn--tel { background: var(--skb-primary); color: var(--skb-white); font-family: var(--skb-font-heading); font-size: 18px; }
.btn--ghost {
  border: 1.5px solid var(--skb-accent); color: var(--skb-accent);
  background: var(--skb-white); padding: 11px 22px; font-size: 14px; font-weight: 700;
  transition: background 0.3s var(--skb-ease), color 0.3s var(--skb-ease),
              border-color 0.3s var(--skb-ease), transform 0.25s var(--skb-ease),
              box-shadow 0.25s var(--skb-ease);
}
.btn--ghost:hover {
  background: linear-gradient(135deg, var(--skb-accent) 0%, var(--skb-accent-2) 100%);
  color: var(--skb-white); border-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--skb-shadow-md); }
.skb-icon { flex-shrink: 0; }

/* 症状ページ・固定ページ用ヒーロー（ボックスタイトル型）
   PC: 画像帯の左下にタイトルボックスをずらして重ねる
   SP: 画像の下端に食い込む形でセンター配置 */
.page-hero { position: relative; }
.page-hero__bg {
  height: 380px;
  overflow: hidden;
  position: relative;
}
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0) 55%);
}
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__titlebox {
  position: absolute;
  left: max(24px, calc((100vw - var(--skb-container)) / 2));
  bottom: -32px;
  background: var(--skb-white);
  padding: 28px 56px 28px 36px;
  box-shadow: var(--skb-shadow-md);
  border-left: 5px solid var(--skb-accent);
  max-width: min(640px, 84vw);
}
.page-hero__eyebrow {
  font-size: 12px; letter-spacing: 0.25em; font-weight: 700;
  color: var(--skb-accent); margin: 0 0 6px;
}
.page-hero__title {
  font-size: clamp(24px, 3vw, 36px); font-weight: 700;
  color: var(--skb-primary); line-height: 1.35;
}
.page-hero__lead {
  margin: 10px 0 0; font-size: 14px; color: var(--skb-text-light);
}
.page-hero + .section { padding-top: 128px; } /* ボックスのはみ出し分の余白 */

@media (max-width: 767px) {
  .page-hero__bg { height: 220px; }
  .page-hero__titlebox {
    position: relative;
    left: auto; bottom: auto;
    margin: -36px 16px 0;
    padding: 20px 24px;
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--skb-accent);
    max-width: none;
  }
  .page-hero + .section { padding-top: 56px; }
}

/* CTAバンド */
.cta-band { background: var(--skb-primary); color: var(--skb-white); padding: 48px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band__catch { font-family: var(--skb-font-heading); font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; margin: 0; }
.cta-band__sub { margin: 6px 0 0; font-size: 13px; opacity: .85; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn--tel { background: var(--skb-white); color: var(--skb-primary); }

/* Aboutバンド（トップページ） */
.about-band__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about-band__inner { grid-template-columns: 1fr; gap: 32px; } }
.about-band__figure { border-radius: var(--skb-radius-lg); overflow: hidden; box-shadow: var(--skb-shadow-md); aspect-ratio: 16/10; background: var(--skb-bg); }
.about-band__figure img { width: 100%; height: 100%; object-fit: cover; }
.about-band__body .section__title { margin-bottom: 16px; }
.about-band__body p { color: var(--skb-text-light); }
.about-band__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* チェックリスト（症状ページ本文） */
.entry-content .check-list { margin: 0 0 40px; }
.entry-content .check-list li {
  position: relative; padding: 14px 16px 14px 48px; margin-bottom: 10px;
  background: var(--skb-bg-alt); border-radius: var(--skb-radius-sm); font-size: 15px;
}
.entry-content .check-list li::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--skb-accent);
}
.entry-content .check-list li::after {
  content: ""; position: absolute; left: 21px; top: 50%;
  width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translateY(-70%) rotate(-45deg);
}

/* 施術の流れ（番号付きステップ） */
.entry-content .flow-list { counter-reset: flow; margin: 0 0 40px; list-style: none; padding-left: 0; }
.entry-content .flow-list li {
  position: relative; padding: 20px 20px 20px 72px; margin-bottom: 14px;
  background: var(--skb-bg-alt); border-radius: var(--skb-radius-md);
  counter-increment: flow;
}
.entry-content .flow-list li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute; left: 20px; top: 20px;
  font-family: var(--skb-font-heading); font-weight: 700; font-size: 20px;
  color: var(--skb-accent);
}
.entry-content .flow-list li strong { display: block; font-size: 16px; margin-bottom: 4px; color: var(--skb-primary); }
.entry-content .flow-list li p { margin: 0; font-size: 14px; color: var(--skb-text-light); }

/* 本文タイポグラフィ */
.entry-content h2 {
  font-size: 22px; margin: 48px 0 20px; padding-left: 16px;
  border-left: 4px solid var(--skb-accent);
}
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { font-size: 18px; margin: 32px 0 14px; color: var(--skb-primary); }
.entry-content p { margin: 0 0 22px; }
.entry-content ul:not(.check-list) { padding-left: 1.4em; list-style: disc; margin-bottom: 22px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 14px; }
.entry-content table th, .entry-content table td { border: 1px solid var(--skb-border); padding: 12px 14px; text-align: left; }
.entry-content table th { background: var(--skb-bg-alt); }
.entry-content img { border-radius: var(--skb-radius-md); }

/* カードのタイトル矢印 */
.card__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__arrow { color: var(--skb-accent); display: inline-flex; transition: transform 0.25s var(--skb-ease); }
.card:hover .card__arrow { transform: translateX(4px); }

/* ==========================================================================
   3. オープニングアニメーション
   ========================================================================== */
#skb-opening {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--skb-primary);
  transition: opacity 0.6s var(--skb-ease), visibility 0.6s var(--skb-ease);
}
#skb-opening.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#skb-opening__logo { max-width: 200px; opacity: 0; }

/* type: fade */
body.opening-fade #skb-opening__logo { animation: skbFadeIn 1s var(--skb-ease) 0.2s forwards; }
/* type: slide-up */
body.opening-slide-up #skb-opening__logo { transform: translateY(24px); animation: skbSlideUp 0.9s var(--skb-ease) 0.2s forwards; }
/* type: split-reveal（バーが左右に開いて中央のロゴが現れる） */
body.opening-split-reveal #skb-opening__logo { animation: skbFadeIn 0.6s var(--skb-ease) 0.5s forwards; }
body.opening-split-reveal #skb-opening::before,
body.opening-split-reveal #skb-opening::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 50%;
  background: var(--skb-primary-dark);
  transition: transform 0.7s var(--skb-ease) 0.9s;
}
body.opening-split-reveal #skb-opening::before { left: 0; }
body.opening-split-reveal #skb-opening::after { right: 0; }
body.opening-split-reveal #skb-opening.is-hidden::before { transform: translateX(-100%); }
body.opening-split-reveal #skb-opening.is-hidden::after { transform: translateX(100%); }

@keyframes skbFadeIn { to { opacity: 1; } }
@keyframes skbSlideUp { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   4. ヘッダー & メガメニュー
   ========================================================================== */
.site-header {
  position: sticky; top: 0;
  /* ドロワー(z-index:1000)より上に置くことで、ドロワー展開中もハンバーガー（×）が押せる */
  z-index: 1001;
  background: var(--skb-white);
  box-shadow: var(--skb-shadow-sm);
}
.site-header__inner {
  max-width: var(--skb-container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 84px;
}
.site-branding { margin-right: auto; }
.site-branding img { max-height: 48px; }
.site-branding .site-title {
  font-family: var(--skb-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--skb-primary);
}

/* PCナビ本体 */
.primary-nav { display: none; }
@media (min-width: 993px) {
  .primary-nav { display: block; }
}
.primary-nav > ul { display: flex; align-items: stretch; gap: 4px; }
.primary-nav > ul > li { position: static; display: flex; align-items: center; }
.primary-nav > ul > li > a {
  display: block;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--skb-text);
  position: relative;
}
.primary-nav > ul > li > a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px;
  background: var(--skb-accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--skb-ease);
}
.primary-nav > ul > li:hover > a::after,
.primary-nav > ul > li.current-menu-item > a::after { transform: scaleX(1); }

/* メガパネル本体（画面幅いっぱいに広がる「メガビュー」） */
.primary-nav .mega-panel {
  position: absolute;
  left: 0; right: 0; top: 100%; /* ヘッダー下端に追従（1段/2段どちらのヘッダーでも可） */
  background: var(--skb-white);
  border-top: 1px solid var(--skb-border);
  box-shadow: var(--skb-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.28s var(--skb-ease), transform 0.28s var(--skb-ease), visibility 0.28s;
  padding: 40px 0;
}
.primary-nav > ul > li:hover .mega-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-panel__inner {
  max-width: var(--skb-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}
.mega-panel__figure { border-radius: var(--skb-radius-md); overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--skb-bg-alt); }
.mega-panel__figure img { width: 100%; height: 100%; object-fit: cover; }
.mega-panel__figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px; color: var(--skb-white);
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent);
  font-family: var(--skb-font-heading); font-weight: 700;
}
.mega-panel__cols {
  column-count: 3; column-gap: 40px;
}
.mega-panel__cols li { break-inside: avoid; margin-bottom: 6px; }
.mega-panel__cols a {
  display: block; padding: 10px 0;
  border-bottom: 1px dashed var(--skb-border);
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
}
.mega-panel__cols a:hover { color: var(--skb-accent); padding-left: 6px; }

/* ヘッダーCTA（電話・予約） */
.header-cta { display: none; align-items: center; gap: 12px; }
@media (min-width: 993px) {
  .header-cta { display: flex; }
}
.header-cta__tel { text-align: right; }
.header-cta__tel .num { font-family: var(--skb-font-heading); font-size: 20px; font-weight: 700; color: var(--skb-primary); }
.header-cta__tel .label { font-size: 11px; color: var(--skb-text-light); }
.header-cta .btn--primary { padding: 12px 24px; font-size: 14px; }

/* ---- ヘッダースタイル: navbar（2段：上段ロゴ＋CTA／下段カラー帯ナビ） ---- */
.site-header--navbar .header-top {
  background: var(--skb-white);
}
.site-header--navbar .header-top__inner {
  max-width: var(--skb-container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.site-header--navbar .header-navbar {
  background: var(--skb-primary);
  display: none;
}
@media (min-width: 993px) {
  .site-header--navbar .header-navbar { display: block; }
}
.site-header--navbar .primary-nav {
  max-width: var(--skb-container);
  margin: 0 auto;
  padding: 0 24px;
}
.site-header--navbar .primary-nav > ul {
  justify-content: center;
  gap: 0;
}
.site-header--navbar .primary-nav > ul > li {
  flex: 1;
  justify-content: center;
  position: static;
}
.site-header--navbar .primary-nav > ul > li + li {
  border-left: 1px solid rgba(255,255,255,.18);
}
.site-header--navbar .primary-nav > ul > li > a {
  color: var(--skb-white);
  padding: 16px 12px;
  width: 100%;
  text-align: center;
  transition: background 0.25s var(--skb-ease);
}
.site-header--navbar .primary-nav > ul > li:hover > a {
  background: rgba(255,255,255,.12);
}
.site-header--navbar .primary-nav > ul > li > a::after {
  left: 12px; right: 12px; bottom: 6px;
  background: var(--skb-white);
}

/* ---- ナビ文字サイズ ---- */
body.nav-size-standard .primary-nav > ul > li > a { font-size: 15px; }
body.nav-size-large .primary-nav > ul > li > a { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; }

/* ハンバーガー */
.hamburger-toggle {
  width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  position: relative; z-index: 1100;
}
@media (min-width: 993px) { .hamburger-toggle { display: none; } }
.hamburger-toggle span {
  width: 26px; height: 2px; background: var(--skb-primary); transition: transform 0.3s var(--skb-ease), opacity 0.3s;
}
.hamburger-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルドロワー */
.mobile-drawer {
  position: fixed; left: 0; right: 0; bottom: 0; top: 84px; /* ヘッダーの下から表示（トグルは常にヘッダー内で操作可能） */
  z-index: 1000;
  background: var(--skb-white);
  transform: translateX(100%);
  transition: transform 0.35s var(--skb-ease);
  overflow-y: auto;
  padding: 24px 28px 120px;
}
.mobile-drawer.is-open { transform: none; }
body.drawer-from-left .mobile-drawer { transform: translateX(-100%); }
body.drawer-from-left .mobile-drawer.is-open { transform: none; }
body.drawer-from-top .mobile-drawer { transform: translateY(-105%); }
body.drawer-from-top .mobile-drawer.is-open { transform: none; }
.mobile-drawer ul > li { border-bottom: 1px solid var(--skb-border); }
.mobile-drawer ul > li > a, .mobile-drawer .drawer-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; font-weight: 700; font-size: 16px; width: 100%;
  background: none; border: none; text-align: left; cursor: pointer; color: var(--skb-text);
}
.mobile-drawer .sub-menu { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--skb-ease); }
.mobile-drawer li.is-open > .sub-menu { max-height: 1000px; }
.mobile-drawer .drawer-toggle .icon { transition: transform 0.3s var(--skb-ease); display: inline-block; }
.mobile-drawer li.is-open > .drawer-toggle .icon { transform: rotate(180deg); }
.mobile-drawer .sub-menu a { padding: 12px 4px 12px 16px; font-size: 14px; font-weight: 400; color: var(--skb-text-light); }
@media (min-width: 993px) { .mobile-drawer { display: none; } }

/* ==========================================================================
   5. ヒーロー
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero__static {
  position: relative; height: 640px; max-height: 82vh;
  display: flex; align-items: center;
}
/* スライドショーは絶対配置の重ね合わせ + クラス切替（fade/slide/zoom） */
.hero__track { position: relative; height: 640px; max-height: 82vh; }
.hero__slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; z-index: 1; pointer-events: none;
  transition: opacity 0.9s var(--skb-ease);
}
.hero__slide.is-active { opacity: 1; z-index: 2; pointer-events: auto; }
@media (max-width: 767px) {
  .hero__static, .hero__track { height: 520px; max-height: 100vh; }
}

/* effect: slide（横スライド + フェード） */
body.hero-effect-slide .hero__slide {
  transition: opacity 0.8s var(--skb-ease), transform 1s var(--skb-ease);
  transform: translateX(6%);
}
body.hero-effect-slide .hero__slide.is-active { transform: translateX(0); }
body.hero-effect-slide .hero__slide.is-prev { transform: translateX(-6%); }

/* effect: zoom（ケンバーンズ：ゆっくり寄る） */
body.hero-effect-zoom .hero__slide .hero__bg-pc img,
body.hero-effect-zoom .hero__slide .hero__bg-sp img { will-change: transform; }
body.hero-effect-zoom .hero__slide.is-active .hero__bg-pc img,
body.hero-effect-zoom .hero__slide.is-active .hero__bg-sp img {
  animation: skbKenBurns 9s linear forwards;
}
@keyframes skbKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero__bg-pc { position: absolute; inset: 0; }
.hero__bg-pc img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg-sp { display: none; position: absolute; inset: 0; }
.hero__bg-sp img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  /* SP用画像が設定されているスライドのみPC画像を隠す。
     未設定の場合はPC画像をそのまま表示（FVが空になるのを防ぐ） */
  .has-sp .hero__bg-pc { display: none; }
  .has-sp .hero__bg-sp { display: block; }
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 65%); }
.hero__body {
  position: relative; z-index: 2; color: var(--skb-white);
  width: 100%; max-width: var(--skb-container);
  margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: center;
}
.hero__content { max-width: 100%; }
.hero__catch { font-size: 46px; font-weight: 700; margin-bottom: 20px; line-height: 1.4; }
@media (max-width: 767px) { .hero__catch { font-size: 28px; } }
.hero__lead { font-size: 16px; opacity: 0.9; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero .slick-dots, .hero__dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; padding: 0; cursor: pointer; }
.hero__dots button.is-active { background: var(--skb-white); }

/* ==========================================================================
   6. スクロールリビール
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--skb-ease), transform 0.7s var(--skb-ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ==========================================================================
   7. カードグリッド（症状・メニュー等）
   ========================================================================== */
.grid { display: grid; gap: 32px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--skb-white);
  border-radius: var(--skb-radius-md);
  overflow: hidden;
  box-shadow: var(--skb-shadow-sm);
  transition: transform 0.3s var(--skb-ease), box-shadow 0.3s var(--skb-ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--skb-shadow-md); }
.card__thumb { aspect-ratio: 16/10; overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--skb-ease); }
.card:hover .card__thumb img { transform: scale(1.03); }
.card__body { padding: 24px; }
.card__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card__excerpt { font-size: 14px; color: var(--skb-text-light); }

/* ==========================================================================
   8. お知らせ / コラム（年別アコーディオン）
   ========================================================================== */
.year-accordion__item { border-bottom: 1px solid var(--skb-border); }
.year-accordion__head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 4px; background: none; border: none; cursor: pointer;
  font-family: var(--skb-font-heading); font-size: 20px; font-weight: 700; color: var(--skb-primary);
}
.year-accordion__head .icon { transition: transform 0.3s var(--skb-ease); }
.year-accordion__item.is-open .icon { transform: rotate(180deg); }
.year-accordion__body { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--skb-ease); }
.year-accordion__item.is-open .year-accordion__body { max-height: 3000px; }
.post-list-row {
  display: flex; gap: 20px; align-items: baseline; padding: 14px 4px;
  border-bottom: 1px dashed var(--skb-border); font-size: 14px;
}
.post-list-row .date { color: var(--skb-text-light); flex-shrink: 0; }
.post-list-row .cat {
  flex-shrink: 0; font-size: 11px; padding: 3px 10px; border: 1px solid var(--skb-accent); color: var(--skb-accent); border-radius: 100px;
}

/* ==========================================================================
   9. Instagram（Smash Balloon想定領域）
   ========================================================================== */
.instagram-section .sb-instagram { max-width: var(--skb-container); margin: 0 auto; }
.instagram-placeholder {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
}
@media (max-width: 767px) { .instagram-placeholder { grid-template-columns: repeat(3, 1fr); } }
.instagram-placeholder div { aspect-ratio: 1; background: var(--skb-bg-alt); border-radius: var(--skb-radius-sm); }

/* ==========================================================================
   10. お問い合わせ（CF7想定領域）
   ========================================================================== */
.contact-section { background: var(--skb-primary); color: var(--skb-white); }
.contact-section .section__title, .contact-section .section__lead { color: var(--skb-white); }
.contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--skb-radius-lg);
  padding: 48px;
}
.contact-card .wpcf7 input[type="text"],
.contact-card .wpcf7 input[type="email"],
.contact-card .wpcf7 input[type="tel"],
.contact-card .wpcf7 textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--skb-radius-sm);
  border: none; margin-bottom: 16px; font-family: var(--skb-font-body);
}
.contact-card .wpcf7 textarea { min-height: 140px; }
.contact-card .wpcf7-submit {
  background: var(--skb-accent); color: var(--skb-white); border: none;
  padding: 14px 40px; border-radius: var(--skb-radius-sm); font-weight: 700; cursor: pointer;
}

/* お問い合わせページ */
.contact-tel-card {
  text-align: center; background: var(--skb-bg-alt);
  border-radius: var(--skb-radius-lg); padding: 36px 24px; margin: 40px 0;
}
.contact-tel-card__label { font-weight: 700; margin: 0 0 10px; }
.contact-tel-card__num {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--skb-font-heading); font-size: clamp(26px, 4vw, 36px); font-weight: 700; color: var(--skb-primary);
}
.contact-tel-card__hours { font-size: 13px; color: var(--skb-text-light); margin: 8px 0 0; }
.contact-form-area h2 {
  font-size: 22px; margin: 48px 0 20px; padding-left: 16px;
  border-left: 4px solid var(--skb-accent);
}
.contact-form-placeholder {
  border: 2px dashed var(--skb-border); border-radius: var(--skb-radius-md);
  padding: 32px; text-align: center;
}
.contact-form-area .wpcf7 input[type="text"],
.contact-form-area .wpcf7 input[type="email"],
.contact-form-area .wpcf7 input[type="tel"],
.contact-form-area .wpcf7 textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--skb-radius-sm);
  border: 1px solid var(--skb-border); margin-bottom: 16px; font-family: var(--skb-font-body);
}
.contact-form-area .wpcf7 textarea { min-height: 160px; }
.contact-form-area .wpcf7-submit {
  background: var(--skb-accent); color: var(--skb-white); border: none;
  padding: 14px 48px; border-radius: var(--skb-radius-sm); font-weight: 700; cursor: pointer;
}

/* ==========================================================================
   11. フッター
   ========================================================================== */
.site-footer { background: var(--skb-primary-dark); color: rgba(255,255,255,.85); padding: 72px 0 32px; }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--skb-accent); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
@media (max-width: 991px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 599px) { .site-footer__grid { grid-template-columns: 1fr; gap: 36px; } }
.site-footer__name { font-family: var(--skb-font-heading); font-weight: 700; font-size: 20px; color: var(--skb-white); margin: 0 0 8px; }
.site-footer__desc { font-size: 13px; color: rgba(255,255,255,.6); margin: 0 0 20px; }
.site-footer .custom-logo { max-height: 40px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.hours-table { font-size: 13px; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 6px 0; text-align: left; vertical-align: top; font-weight: 400; }
.hours-table th { padding-right: 16px; white-space: nowrap; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 6px; }
.site-footer h3 {
  font-size: 13px; margin: 0 0 18px; letter-spacing: 0.1em;
  color: var(--skb-accent); font-weight: 700;
}
.site-footer ul li { margin-bottom: 12px; font-size: 14px; }
.site-footer__tel {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--skb-font-heading); font-size: 24px; font-weight: 700; color: var(--skb-white);
}
.site-footer__hours { font-size: 12px; color: rgba(255,255,255,.6); margin: 6px 0 18px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 56px; padding-top: 24px;
  font-size: 12px; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ==========================================================================
   12. モバイル・スティッキーフッターCTA
   ========================================================================== */
.mobile-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  display: flex;
  box-shadow: 0 -4px 16px rgba(0,0,0,.14);
  padding-bottom: env(safe-area-inset-bottom); /* iPhoneホームバー対策 */
  background: var(--skb-primary);
}
@media (min-width: 993px) { .mobile-sticky-cta { display: none; } }
.mobile-sticky-cta a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 0; font-size: 13px; font-weight: 700; color: var(--skb-white);
  transition: opacity 0.2s;
}
.mobile-sticky-cta a:active { opacity: .8; }
.mobile-sticky-cta a.tel { background: var(--skb-primary); }
.mobile-sticky-cta a.reserve { background: linear-gradient(135deg, var(--skb-accent) 0%, var(--skb-accent-2) 100%); }
.mobile-sticky-cta .skb-icon { width: 18px; height: 18px; }
body.has-mobile-sticky-cta { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 993px) { body.has-mobile-sticky-cta { padding-bottom: 0; } }


/* ==========================================================================
   13. 透明ヘッダー（オーバーレイ）モード
   カスタマイザー「ヘッダー背景を透明にする」ON かつ ヒーローを持つページで有効。
   スクロールするとJSが .is-solid を付与し、白背景に戻る。
   ========================================================================== */
body.header-overlay .site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s var(--skb-ease), box-shadow 0.3s var(--skb-ease);
}
body.header-overlay.admin-bar .site-header { top: 32px; }
body.header-overlay .site-header--navbar .header-top { background: transparent; transition: background 0.3s var(--skb-ease); }
body.header-overlay .site-header--navbar .header-navbar { background: rgba(15, 20, 30, 0.35); backdrop-filter: blur(6px); transition: background 0.3s var(--skb-ease); }
body.header-overlay .site-header:not(.is-solid) .site-title,
body.header-overlay .site-header:not(.is-solid) .header-cta__tel .num,
body.header-overlay .site-header:not(.is-solid) .header-cta__tel .label { color: var(--skb-white); }
body.header-overlay .site-header:not(.is-solid) .hamburger-toggle span { background: var(--skb-white); }
body.header-overlay .site-header--standard:not(.is-solid) .primary-nav > ul > li > a { color: var(--skb-white); }

/* スクロール後：白背景に戻す */
body.header-overlay .site-header.is-solid { background: var(--skb-white); box-shadow: var(--skb-shadow-sm); }
body.header-overlay .site-header--navbar.is-solid .header-top { background: var(--skb-white); }
body.header-overlay .site-header--navbar.is-solid .header-navbar { background: var(--skb-primary); backdrop-filter: none; }

/* 固定ヘッダーはレイアウト高さを持たないため、ヒーローが最上部まで全面表示になる
   （固定ページのFV画像がヘッダー帯で切れて見える問題への対処） */

/* ヘッダーCTA: 電話のみモード */
.header-cta--tel-only .header-cta__tel .num { font-size: 26px; display: inline-flex; align-items: center; gap: 8px; }
.header-cta--tel-only .header-cta__tel { text-align: right; }

/* ヘッダー電話の定休日行 */
.header-cta__tel .label { display: block; line-height: 1.5; }

/* 症状ページ: 当院のアプローチ（写真メインカード） */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; } }
.approach-card {
  background: var(--skb-white); border-radius: var(--skb-radius-md);
  overflow: hidden; box-shadow: var(--skb-shadow-sm);
}
.approach-card__figure { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--skb-bg-alt); }
.approach-card__figure img { width: 100%; height: 100%; object-fit: cover; }
.approach-card__num {
  position: absolute; left: 0; top: 0;
  background: linear-gradient(135deg, var(--skb-accent), var(--skb-accent-2));
  color: var(--skb-white); font-family: var(--skb-font-heading); font-weight: 700;
  padding: 8px 18px; font-size: 15px; border-radius: 0 0 var(--skb-radius-md) 0;
}
.approach-card__body { padding: 22px 24px 26px; }
.approach-card__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--skb-primary); }
.approach-card__text { font-size: 14px; color: var(--skb-text-light); margin: 0; }

/* トップ: お知らせコンパクトリスト */
.news-compact { max-width: 840px; margin: 0 auto; }

/* 本文内ギャラリー画像 */
.entry-content .skb-figure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 32px; }
@media (max-width: 767px) { .entry-content .skb-figure-grid { grid-template-columns: 1fr; } }
.entry-content .skb-figure-grid figure { margin: 0; border-radius: var(--skb-radius-md); overflow: hidden; }
.entry-content .skb-figure-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
.entry-content .skb-figure-grid figcaption { font-size: 12px; color: var(--skb-text-light); padding: 8px 4px; text-align: center; }

/* 透明ヘッダー時の固定ページFV調整（ヘッダーが重なる分だけ高く） */
body.header-overlay .page-hero__bg { height: 460px; }
@media (max-width: 767px) {
  body.header-overlay .page-hero__bg { height: 280px; }
}


/* ==========================================================================
   14. FVキャッチコピー位置（7パターン）
   ========================================================================== */
body.hero-pos-left .hero__body,
body.hero-pos-left-top .hero__body,
body.hero-pos-left-bottom .hero__body { justify-content: flex-start; }
body.hero-pos-center .hero__body { justify-content: center; }
body.hero-pos-center .hero__content { text-align: center; }
body.hero-pos-center .hero__actions { justify-content: center; }
body.hero-pos-right .hero__body,
body.hero-pos-right-top .hero__body,
body.hero-pos-right-bottom .hero__body { justify-content: flex-end; }
body.hero-pos-right .hero__content,
body.hero-pos-right-top .hero__content,
body.hero-pos-right-bottom .hero__content { text-align: right; }
body.hero-pos-right .hero__actions,
body.hero-pos-right-top .hero__actions,
body.hero-pos-right-bottom .hero__actions { justify-content: flex-end; }

body.hero-pos-left-top .hero__slide, body.hero-pos-left-top .hero__static,
body.hero-pos-right-top .hero__slide, body.hero-pos-right-top .hero__static {
  align-items: flex-start;
}
body.hero-pos-left-top .hero__body,
body.hero-pos-right-top .hero__body { padding-top: 150px; }

body.hero-pos-left-bottom .hero__slide, body.hero-pos-left-bottom .hero__static,
body.hero-pos-right-bottom .hero__slide, body.hero-pos-right-bottom .hero__static {
  align-items: flex-end;
}
body.hero-pos-left-bottom .hero__body,
body.hero-pos-right-bottom .hero__body { padding-bottom: 110px; }

@media (max-width: 767px) {
  body.hero-pos-left-top .hero__body,
  body.hero-pos-right-top .hero__body { padding-top: 110px; }
  body.hero-pos-left-bottom .hero__body,
  body.hero-pos-right-bottom .hero__body { padding-bottom: 90px; }
}

/* ==========================================================================
   15. FVフルスクリーン（100vw/100vh）
   ========================================================================== */
body.hero-full .hero__static,
body.hero-full .hero__track {
  height: 100vh;
  height: 100svh; /* モバイルのアドレスバー対応 */
  max-height: none;
}

/* ==========================================================================
   16. 追加スライドアニメーション
   ========================================================================== */
/* push（押し出し）：前の写真を押し出しながら次が入る。繋ぎ目が見えて迫力が出る */
body.hero-effect-push .hero__slide {
  opacity: 1;
  transform: translateX(100%);
  transition: transform 1.05s cubic-bezier(0.65, 0, 0.25, 1);
}
body.hero-effect-push .hero__slide.is-active { transform: translateX(0); z-index: 2; }
body.hero-effect-push .hero__slide.is-prev { transform: translateX(-100%); z-index: 2; }

/* zoomout（ドリーアウト）：寄った状態から引きながらフェードイン */
body.hero-effect-zoomout .hero__slide .hero__bg-pc img,
body.hero-effect-zoomout .hero__slide .hero__bg-sp img { will-change: transform; }
body.hero-effect-zoomout .hero__slide.is-active .hero__bg-pc img,
body.hero-effect-zoomout .hero__slide.is-active .hero__bg-sp img {
  animation: skbDollyOut 8.5s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}
@keyframes skbDollyOut {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

/* ==========================================================================
   17. トップページ フォトモザイク（症状カードと差別化した写真ギャラリー）
   ========================================================================== */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 10px;
}
.photo-mosaic__item {
  position: relative; overflow: hidden; border-radius: var(--skb-radius-sm);
  background: var(--skb-bg-alt);
}
.photo-mosaic__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--skb-ease);
}
.photo-mosaic__item:hover img { transform: scale(1.03); }
.photo-mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.photo-mosaic__item:nth-child(4) { grid-column: span 2; }
@media (max-width: 767px) {
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .photo-mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .photo-mosaic__item:nth-child(4) { grid-column: span 1; }
}

/* ==========================================================================
   18. ドロワー展開中はヘッダー透明を解除（スマホのデザイン対策）
   ========================================================================== */
body.header-overlay .site-header.is-solid,
body.header-overlay .site-header.is-drawer-open {
  background: var(--skb-white);
  box-shadow: var(--skb-shadow-sm);
}
body.header-overlay .site-header--navbar.is-drawer-open .header-top { background: var(--skb-white); }
body.header-overlay .site-header.is-drawer-open .site-title,
body.header-overlay .site-header.is-drawer-open .header-cta__tel .num,
body.header-overlay .site-header.is-drawer-open .header-cta__tel .label { color: inherit; }
body.header-overlay .site-header.is-drawer-open .site-title { color: var(--skb-primary); }
body.header-overlay .site-header.is-drawer-open .header-cta__tel .num { color: var(--skb-primary); }
body.header-overlay .site-header.is-drawer-open .header-cta__tel .label { color: var(--skb-text-light); }
body.header-overlay .site-header.is-drawer-open .hamburger-toggle span { background: var(--skb-primary); }


/* ==========================================================================
   19. 選ばれる理由（ブロークングリッド：写真とテキストカードを重ねるレイアウト）
   ========================================================================== */
.strength-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  margin-bottom: 104px;
  position: relative;
}
.strength-row:last-of-type { margin-bottom: 24px; }

.strength-row__figure {
  grid-column: 1 / 8;
  grid-row: 1;
  position: relative;
}
.strength-row__figure::after {
  /* 写真の背面にずらしたアクセント面（ブロークングリッドの抜け感） */
  content: "";
  position: absolute;
  top: 28px; left: 28px; right: -28px; bottom: -28px;
  background: linear-gradient(135deg, var(--skb-accent) 0%, var(--skb-accent-2) 100%);
  opacity: 0.12;
  border-radius: var(--skb-radius-md);
  z-index: 0;
}
.strength-row__figure img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: var(--skb-radius-md);
  box-shadow: var(--skb-shadow-md);
}

.strength-row__body {
  grid-column: 7 / 13;
  grid-row: 1;
  position: relative; z-index: 2;
  background: var(--skb-white);
  padding: 44px 46px 40px;
  border-radius: var(--skb-radius-md);
  box-shadow: var(--skb-shadow-lg);
  border-top: 4px solid var(--skb-accent);
}
.strength-row__num {
  position: absolute;
  top: -46px; right: 24px;
  font-family: var(--skb-font-heading); font-weight: 700;
  font-size: clamp(72px, 8vw, 110px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--skb-accent);
  opacity: 0.4;
  pointer-events: none;
}
.strength-row__title {
  font-size: clamp(19px, 2.2vw, 25px); font-weight: 700;
  color: var(--skb-primary); margin-bottom: 14px; line-height: 1.5;
}
.strength-row__text { color: var(--skb-text-light); margin: 0; font-size: 15px; }

/* 偶数行：左右反転 */
.strength-row:nth-of-type(even) .strength-row__figure { grid-column: 6 / 13; }
.strength-row:nth-of-type(even) .strength-row__figure::after {
  left: -28px; right: 28px;
}
.strength-row:nth-of-type(even) .strength-row__body { grid-column: 1 / 7; }
.strength-row:nth-of-type(even) .strength-row__num { right: auto; left: 24px; }

@media (max-width: 900px) {
  .strength-row,
  .strength-row:nth-of-type(even) { display: block; margin-bottom: 72px; }
  .strength-row__body {
    margin: -48px 16px 0;
    padding: 30px 26px 28px;
  }
  .strength-row__figure::after,
  .strength-row:nth-of-type(even) .strength-row__figure::after {
    top: 14px; left: 14px; right: -10px; bottom: -10px;
  }
  .strength-row__num { top: -38px; right: 12px; font-size: 68px; }
  .strength-row:nth-of-type(even) .strength-row__num { left: auto; right: 12px; }
}

/* ==========================================================================
   20. お知らせカード型アーカイブ + カテゴリタブ
   ========================================================================== */
.cat-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 48px;
}
.cat-tabs a {
  padding: 8px 22px; border-radius: 100px; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--skb-border); color: var(--skb-text-light);
  transition: all 0.25s var(--skb-ease);
}
.cat-tabs a:hover { border-color: var(--skb-accent); color: var(--skb-accent); }
.cat-tabs a.is-active {
  background: linear-gradient(135deg, var(--skb-accent) 0%, var(--skb-accent-2) 100%);
  border-color: transparent; color: var(--skb-white);
}
.news-card .card__meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 12px;
}
.news-card .card__meta .date { color: var(--skb-text-light); }
.news-card .card__meta .cat {
  font-size: 11px; padding: 2px 10px; border: 1px solid var(--skb-accent);
  color: var(--skb-accent); border-radius: 100px;
}
.year-block { margin-bottom: 40px; }
.year-block__label {
  font-family: var(--skb-font-heading); font-size: 22px; font-weight: 700;
  color: var(--skb-primary); margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.year-block__label::after { content: ""; flex: 1; height: 1px; background: var(--skb-border); }
.year-accordion__body .grid { padding: 8px 2px 24px; }


/* ==========================================================================
   21. キャッチコピー PC/スマホ出し分け
   ========================================================================== */
.hero__catch .catch-sp { display: none; }
@media (max-width: 767px) {
  .hero__catch.has-sp-catch .catch-pc { display: none; }
  .hero__catch.has-sp-catch .catch-sp { display: inline; }
}

/* ==========================================================================
   22. ロゴ設定時のヘッダー幅拡張
   ロゴ画像は文字より横幅を取るため、body.has-logo のときだけ
   ヘッダーの内側コンテナを広げてナビの折り返しを防ぐ。
   本文側のコンテナ幅（1200px）はそのまま。
   ========================================================================== */
body.has-logo .site-header__inner,
body.has-logo .site-header--navbar .header-top__inner,
body.has-logo .site-header--navbar .primary-nav {
  max-width: min(1440px, 100%);
}
body.has-logo .site-branding .custom-logo-link { display: block; }
body.has-logo .site-branding img {
  max-height: 52px;
  max-width: 240px;
  width: auto; height: auto;
  object-fit: contain;
}
@media (max-width: 992px) {
  body.has-logo .site-branding img { max-height: 44px; max-width: 180px; }
}


/* ==========================================================================
   23. イラスト装飾（カジュアルモード・トップページのみ）
   手描き風SVGを mask で描き、CSS変数（アクセント色）で着色する。
   body.illust-on + 箇所別クラス（カスタマイザーでON/OFF）で発火。
   ========================================================================== */

/* --- 見出し：手描きの波下線（直線バーを置き換え） --- */
body.illust-headings .section__head .section__title::after {
  width: 130px; height: 12px;
  border-radius: 0;
  background: var(--skb-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 12'%3E%3Cpath d='M3 8 Q 13 2 23 7 T 43 7 T 63 7 T 83 7 T 103 7 T 126 6' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 12'%3E%3Cpath d='M3 8 Q 13 2 23 7 T 43 7 T 63 7 T 83 7 T 103 7 T 126 6' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- 見出し：eyebrowの左右にきらきら --- */
body.illust-headings .section__eyebrow { position: relative; padding: 0 30px; }
body.illust-headings .section__eyebrow::before,
body.illust-headings .section__eyebrow::after {
  content: "";
  position: absolute; top: 50%; width: 16px; height: 16px;
  transform: translateY(-55%);
  background: var(--skb-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0 C8.6 4.4 11.6 7.4 16 8 C11.6 8.6 8.6 11.6 8 16 C7.4 11.6 4.4 8.6 0 8 C4.4 7.4 7.4 4.4 8 0 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0 C8.6 4.4 11.6 7.4 16 8 C11.6 8.6 8.6 11.6 8 16 C7.4 11.6 4.4 8.6 0 8 C4.4 7.4 7.4 4.4 8 0 Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.illust-headings .section__eyebrow::before { left: 0; }
body.illust-headings .section__eyebrow::after { right: 0; transform: translateY(-45%) scale(0.7); }

/* --- FV下：手描きウェーブの区切り --- */
body.illust-hero-wave .hero { position: relative; }
body.illust-hero-wave .hero::after {
  content: "";
  position: absolute; left: -2%; right: -2%; bottom: -2px; height: 42px;
  z-index: 5; pointer-events: none;
  background: var(--skb-bg);
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 42' preserveAspectRatio='none'%3E%3Cpath d='M0 26 C 80 6 160 40 260 24 C 360 8 430 38 540 26 C 650 14 720 40 830 24 C 940 8 1030 38 1200 22 L 1200 42 L 0 42 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 42' preserveAspectRatio='none'%3E%3Cpath d='M0 26 C 80 6 160 40 260 24 C 360 8 430 38 540 26 C 650 14 720 40 830 24 C 940 8 1030 38 1200 22 L 1200 42 L 0 42 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

/* --- 背景：色付きセクションにプラス記号のドット模様 --- */
body.illust-bg .section--alt { position: relative; }
body.illust-bg .section--alt::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: var(--skb-accent);
  opacity: 0.06;
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M20 14 L20 26 M14 20 L26 20' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='68' cy='62' r='3'/%3E%3C/svg%3E") 0 0 / 90px 90px repeat;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M20 14 L20 26 M14 20 L26 20' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='68' cy='62' r='3'/%3E%3C/svg%3E") 0 0 / 90px 90px repeat;
}
body.illust-bg .section--alt > .container { position: relative; }

/* --- CTAバンド：手描き矢印 --- */
body.illust-cta .cta-band__catch { position: relative; display: inline-block; }
body.illust-cta .cta-band__catch::after {
  content: "";
  position: absolute; right: -66px; top: 50%; width: 52px; height: 30px;
  transform: translateY(-50%) rotate(8deg);
  background: var(--skb-white);
  opacity: 0.9;
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 30'%3E%3Cpath d='M2 22 C 14 26 32 24 44 12 M 44 12 L 34 12 M 44 12 L 42 22' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 30'%3E%3Cpath d='M2 22 C 14 26 32 24 44 12 M 44 12 L 34 12 M 44 12 L 42 22' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 767px) {
  body.illust-cta .cta-band__catch::after { display: none; }
}

/* ==========================================================================
   24. リッチモーション（body.motion-rich）
   OSの「視差効果を減らす」設定時は既存の全体無効化が優先される。
   ========================================================================== */

/* FVキャッチの登場アニメ */
body.motion-rich .hero__catch {
  animation: skbRiseIn 0.9s var(--skb-ease) 0.15s both;
}
body.motion-rich .hero__actions {
  animation: skbRiseIn 0.9s var(--skb-ease) 0.35s both;
}
@keyframes skbRiseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* スクロールリビールをやわらかいスプリング風に */
body.motion-rich [data-reveal] {
  transform: translateY(36px) scale(0.985);
  transition: opacity 0.85s var(--skb-ease), transform 0.85s var(--skb-ease);
}
body.motion-rich [data-reveal].is-visible { transform: translateY(0) scale(1); }

/* カード：浮き上がり + わずかな傾き */
body.motion-rich .card:hover { transform: translateY(-8px) rotate(-0.4deg); }
body.motion-rich .photo-mosaic__item:hover img { transform: scale(1.05) rotate(0.4deg); }

/* 選ばれる理由の番号：ふわふわ浮遊 */
body.motion-rich .strength-row__num { animation: skbFloat 5s ease-in-out infinite; }
@keyframes skbFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* きらきら：明滅（イラストモード併用時） */
body.motion-rich.illust-headings .section__eyebrow::before { animation: skbTwinkle 2.6s ease-in-out infinite; }
body.motion-rich.illust-headings .section__eyebrow::after { animation: skbTwinkle 2.6s ease-in-out 1.3s infinite; }
@keyframes skbTwinkle {
  0%, 100% { opacity: 1; scale: 1; }
  50% { opacity: 0.35; scale: 0.8; }
}

/* primaryボタン：hoverで光沢スイープ */
body.motion-rich .btn--primary { position: relative; overflow: hidden; }
body.motion-rich .btn--primary::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--skb-ease);
}
body.motion-rich .btn--primary:hover::after { left: 130%; }


/* ==========================================================================
   25. スマホ追従フッターCTA デザインパターン
   flat（標準・2分割）/ pill（フローティングピル）/ card（ホワイトカード）
   ========================================================================== */

/* --- pill: 画面から浮いた丸型ピル --- */
body.sticky-style-pill .mobile-sticky-cta {
  left: 14px; right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  padding-bottom: 0;
}
body.sticky-style-pill .mobile-sticky-cta a { padding: 15px 0; font-size: 13px; }
body.sticky-style-pill.has-mobile-sticky-cta { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }

/* --- card: 白ベース・縦積みアイコンのカード型 --- */
body.sticky-style-card .mobile-sticky-cta {
  background: var(--skb-white);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
body.sticky-style-card .mobile-sticky-cta a {
  flex-direction: column; gap: 3px;
  padding: 9px 0; font-size: 11px;
  border-radius: var(--skb-radius-md);
}
body.sticky-style-card .mobile-sticky-cta a .skb-icon { width: 20px; height: 20px; }
body.sticky-style-card .mobile-sticky-cta a.tel {
  background: var(--skb-white);
  color: var(--skb-primary);
  border: 1.5px solid var(--skb-primary);
}
body.sticky-style-card .mobile-sticky-cta a.reserve {
  border: 1.5px solid transparent;
}
body.sticky-style-card.has-mobile-sticky-cta { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
