@charset "utf-8";
/*
Theme Name: KJMS DDO
Theme URI: https://kjms-ddo.co.jp/
Author: 株式会社フクマチ
Description: 株式会社KJMS 採用強化サイト用クラシックテーマ。本文コンテンツは固定ページ側（Gutenbergブロック）が持ち、テーマはヘッダー／フッター／固定UI／スタイルのみを担当する。
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: kjms-ddo
*/

/* ==========================================================================
   株式会社KJMS 採用強化サイト 共通スタイル（承認済みモックから移植）
   デザイン言語: 求人LPベース（design.md 準拠）
   ── 適用時の裁定 ──────────────────────────────────────────────
   ・本文 18〜19px / 行間1.8 を維持（仕様書16pxは不採用: 老眼対策優先）
   ・本文は左揃え維持（仕様書の中央揃えは見出し・キャッチのみ採用）
   ・赤は「見出し(英字)・CTA・FAQ質問バー」のみ。本文には使わない
   ・白背景に置く赤文字は 24px以上の太字に限定し、色は #B81C23 を使う
   ・ダークヒーロー廃止。暗背景用の汎用色クラス（旧 .on-dark 等）は持たない
   ========================================================================== */

:root {
  /* ブランド（design.md 2. カラートークン） */
  --c-primary:      #D6222A;  /* 面（CTA塗り・FAQ質問バー）に使う赤 */
  --c-primary-dark: #B81C23;  /* ホバー／文字として置く赤（白地6.5:1） */

  /* 背景 */
  --c-bg-pink:      #F8E0E0;
  --c-bg-beige:     #F1EBE0;
  --c-bg-white:     #FFFFFF;

  /* テキスト */
  --c-text:         #1E1E1E;  /* 本文（白地16.7:1 / ピンク地13.3:1） */
  --c-text-invert:  #FFFFFF;
  --c-text-sub:     #6B6B6B;  /* 仕様書トークン。小さい注釈には使わない */
  --c-text-note:    #4A4A4A;  /* 注釈用に濃度を上げた版（ピンク地7.0:1でAAA） */

  /* アクセント */
  --c-marker:       #F9C8CC;  /* 蛍光ペン風アンダーライン */
  --c-tag:          #F2A0A6;  /* タグ帯（文字は #1E1E1E で8.2:1） */

  /* 罫線・プレースホルダー */
  --c-line:         #E3D6C6;
  --c-line-red:     #EBB9BB;
  --c-ph-bg:        #EFE6DA;
  --c-ph-line:      #C9AE93;

  --wrap:   1100px;
  --radius: 16px;

  --f-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-en: "Poppins", "Noto Sans JP", sans-serif;
}

/* ---------- リセット＆ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-jp);
  font-size: 19px;
  line-height: 1.8;
  color: var(--c-text);
  background: var(--c-bg-white);
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1.4em; }
ul, ol { margin: 0 0 1.4em; padding-left: 1.4em; }
li { margin-bottom: .5em; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .7em; color: var(--c-text); font-weight: 700; }
h2 { font-size: 30px; font-weight: 900; }
h3 { font-size: 23px; }
h4 { font-size: 20px; }
table { border-collapse: collapse; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 840px; }
.center { text-align: center; }
.lead { font-size: 21px; line-height: 1.9; }
.note { font-size: 15px; line-height: 1.75; color: var(--c-text-note); margin: 0 0 1em; }

/* 確認中タグ */
.tmp {
  display: inline-block; font-size: 14px; font-weight: 700;
  color: var(--c-text); background: var(--c-bg-pink);
  border: 1px solid var(--c-line-red); border-radius: 999px;
  padding: 2px 10px; margin-left: 6px; white-space: nowrap; vertical-align: middle;
  max-width: 100%;
}
/* 段落中に長文で入る確認中タグは折り返す。h3内など短文の見出しバッジは white-space:nowrap のまま */
p .tmp, .note .tmp {
  white-space: normal;
}
/* ダミー数値は蛍光ペン風マーカーで示す */
.dummy, .marker {
  font-weight: 700;
  background: linear-gradient(transparent 62%, var(--c-marker) 62%);
}

/* ---------- ヘッダー ---------- */
.site-header { background: #ffffff; border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 60; }
/* ナビ項目「お問い合わせ」追加(6項目)により共通.wrapの1100pxでは1280px前後の画面でCTAが2段落ちするため、ヘッダーのみ広げる */
.site-header .wrap { max-width: 1220px; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); line-height: 1.3; }
.logo::before { content: ""; width: 34px; height: 34px; border-radius: 8px; background: var(--c-primary); flex: 0 0 auto; }
.logo b { display: block; font-size: 25px; font-weight: 900; letter-spacing: .02em; }
.logo span { display: block; font-size: 13px; color: var(--c-text-note); }
.gnav { flex: 1 1 auto; }
.gnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.gnav li { margin: 0; }
/* タップ領域を44px以上確保する（モックの38pxから是正） */
.gnav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--c-text); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.gnav a:hover, .gnav a[aria-current="page"] { border-bottom-color: var(--c-primary); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font-size: 19px; font-weight: 700; line-height: 1.5;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
}
.btn-cta { background: var(--c-primary); color: #ffffff; border-color: var(--c-primary); }
.btn-cta:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #ffffff; }
.btn-ghost { background: #ffffff; color: var(--c-text); border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-bg-pink); color: var(--c-text); }
.header-cta { font-size: 17px; padding: 11px 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- セクション ---------- */
.sec { padding: 80px 0; background: var(--c-bg-white); }
.sec-soft { background: var(--c-bg-beige); }

/* 英字＋和文のセクション見出し（英字は data-en 属性から生成） */
.sec-head { margin-bottom: 34px; text-align: center; }
.sec-head h2 { margin-bottom: .35em; }
.sec-head h2[data-en]::before,
.page-head h1[data-en]::before,
.hero h1[data-en]::before,
.cta-band h2[data-en]::before {
  content: attr(data-en);
  display: block;
  font-family: var(--f-en);
  font-size: 48px; font-weight: 700; letter-spacing: .02em; line-height: 1.1;
  color: var(--c-primary-dark);
  margin-bottom: 6px;
}
/* 英字見出し下の和文ラベル（既存の .sub を同じ役割で使う） */
.sec-head .sub {
  font-family: var(--f-en);
  font-size: 48px; font-weight: 700; letter-spacing: .02em; line-height: 1.1;
  color: var(--c-primary-dark);
  margin: 0 0 6px;
}
/* 見出し直下の本文は左揃えのまま中央寄せブロックにする（可読性優先） */
.sec-head p:not(.sub) { text-align: left; max-width: 800px; margin-left: auto; margin-right: auto; }

/* ---------- ヒーロー／ページ見出し ---------- */
.hero { background: var(--c-bg-pink); }
.hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: 40px; font-weight: 900; text-align: center; margin-bottom: .5em; }
.hero p { font-size: 19px; max-width: 800px; margin: 0 auto 1.4em; }
.page-head { background: var(--c-bg-beige); }
.page-head .wrap { padding-top: 48px; padding-bottom: 48px; }
.page-head h1 { font-size: 34px; font-weight: 900; text-align: center; margin-bottom: .5em; }
.page-head p { max-width: 800px; margin-left: auto; margin-right: auto; }
.page-head .note { max-width: 800px; margin-left: auto; margin-right: auto; }
.crumb { font-size: 14px; color: var(--c-text-note); margin: 0 0 14px; text-align: left; }

/* 追従ヘッダーにアンカー先が隠れないよう逃がす */
[id] { scroll-margin-top: 100px; }
@media (max-width: 767px) { [id] { scroll-margin-top: 132px; } }

/* ---------- ページ内目次（統合で長くなったページの頭に置く） ---------- */
.pagetoc { background: var(--c-bg-white); border-bottom: 1px solid var(--c-line); padding: 18px 0; }
.pagetoc__ttl { font-size: 15px; font-weight: 700; color: var(--c-text-note); margin: 0 0 10px; }
.pagetoc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.pagetoc li { margin: 0; }
.pagetoc a {
  display: inline-block; font-size: 17px; font-weight: 700; text-decoration: none;
  color: var(--c-text); background: #ffffff;
  border: 1px solid var(--c-primary); border-radius: 999px; padding: 9px 22px;
}
.pagetoc a::after { content: " ↓"; }
.pagetoc a:hover { background: var(--c-bg-pink); color: var(--c-text); }

/* 記事内の連番ラベル（Merit 01 相当。手書き風はこの用途に限る） */
.sec-head.is-num h2::before {
  font-family: "Caveat", var(--f-en);
  font-size: 62px; line-height: 1; margin-bottom: 0;
}

/* ---------- 写真プレースホルダー ---------- */
.ph {
  background: var(--c-ph-bg);
  border: 2px dashed var(--c-ph-line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px;
  color: #3A3A3A; font-size: 16px; font-weight: 700;
  min-height: 180px; padding: 16px;
  margin-bottom: 18px;
}
.ph small { font-weight: 400; font-size: 14px; color: var(--c-text-note); }
.ph-lg { min-height: 320px; }
.ph-sm { min-height: 120px; font-size: 14px; }
.ph-round { border-radius: 50%; width: 150px; height: 150px; min-height: 0; flex: 0 0 auto; }

/* ---------- グリッド ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-media { grid-template-columns: 180px 1fr; align-items: start; }

/* ---------- 白カード（角丸＋赤の細ボーダー） ---------- */
.card {
  background: #ffffff; border: 1px solid var(--c-primary);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { font-size: 21px; margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { background: var(--c-bg-pink); color: inherit; }
.card-link .more { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-primary); text-underline-offset: 3px; }

/* ---------- 数字帯 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  background: #ffffff; border: 1px solid var(--c-primary); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; text-decoration: none; color: inherit;
}
.stat:hover { background: var(--c-bg-pink); color: inherit; }
.stat .num {
  display: block; font-family: var(--f-en); font-size: 44px; font-weight: 700;
  color: var(--c-primary-dark); line-height: 1.2;
}
.stat .num small { font-size: 20px; }
.stat .lbl { display: block; font-size: 17px; font-weight: 700; margin-top: 4px; }
.stat .cap { display: block; font-size: 14px; color: var(--c-text-note); margin-top: 6px; }

/* 数字で見るKJMS */
.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fig { background: #ffffff; border: 1px solid var(--c-primary); border-radius: var(--radius); padding: 22px; text-align: center; }
.fig .num {
  display: block; font-family: var(--f-en); font-size: 38px; font-weight: 700;
  color: var(--c-primary-dark); line-height: 1.25;
}
.fig .num small { font-size: 18px; }
.fig .lbl { display: block; font-size: 17px; font-weight: 700; margin-top: 2px; }

/* ---------- 表 ---------- */
.tbl { width: 100%; border: 1px solid var(--c-line); background: #ffffff; border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { border: 1px solid var(--c-line); padding: 15px 18px; text-align: left; vertical-align: top; font-size: 18px; }
.tbl th { background: var(--c-bg-beige); width: 30%; font-weight: 700; }

.sim { width: 100%; border: 1px solid var(--c-line); background: #ffffff; }
.sim th, .sim td { border: 1px solid var(--c-line); padding: 14px; font-size: 18px; text-align: right; }
.sim thead th { background: var(--c-primary-dark); color: #ffffff; text-align: center; font-size: 19px; font-weight: 700; }
.sim tbody th { background: var(--c-bg-beige); text-align: left; }
.sim .row-total th, .sim .row-total td { background: var(--c-bg-pink); font-weight: 700; font-size: 19px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 18px; }

/* ---------- 3形態比較（PC=表 / SP=カード） ---------- */
.cmp-table { width: 100%; border: 1px solid var(--c-line); background: #ffffff; }
.cmp-table th, .cmp-table td { border: 1px solid var(--c-line); padding: 15px; font-size: 18px; vertical-align: top; text-align: left; }
.cmp-table thead th { background: var(--c-primary-dark); color: #ffffff; text-align: center; font-size: 19px; font-weight: 700; }
.cmp-table tbody th { background: var(--c-bg-beige); width: 22%; }
.cmp-cards { display: none; }
.cmp-card { border: 1px solid var(--c-primary); border-radius: var(--radius); background: #ffffff; margin-bottom: 20px; overflow: hidden; }
.cmp-card > h3 { background: var(--c-primary-dark); color: #ffffff; font-size: 21px; font-weight: 700; margin: 0; padding: 13px 20px; }
.cmp-card dl { margin: 0; padding: 6px 20px 20px; }
.cmp-card dt { font-size: 15px; font-weight: 700; color: var(--c-text-note); margin-top: 14px; }
.cmp-card dd { margin: 2px 0 0; font-size: 18px; }

/* ---------- タイムライン ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 4px solid var(--c-line-red); }
.timeline li { position: relative; margin: 0 0 22px; padding: 0 0 0 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -11px; top: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-primary); border: 3px solid var(--c-bg-beige);
}
.timeline .yr { display: block; font-weight: 700; font-size: 18px; }

/* ---------- FAQアコーディオン（details/summary・JSなし） ---------- */
/* 本文は core/details ブロックで持つ。summary はブロック仕様上クラスを持てないため要素で当てる */
.faq { margin-bottom: 8px; }
.faq-item { margin-bottom: 14px; border-radius: 10px; }
.faq-q,
.faq-item > summary {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--c-primary); color: #ffffff;
  font-size: 20px; font-weight: 700; line-height: 1.6;
  padding: 16px 56px 16px 18px; border-radius: 10px;
  margin: 0; cursor: pointer; position: relative;
  list-style: none;
}
.faq-q::-webkit-details-marker,
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-q::after,
.faq-item > summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 20px; height: 20px; margin-top: -10px;
  background:
    linear-gradient(#ffffff, #ffffff) center/20px 3px no-repeat,
    linear-gradient(#ffffff, #ffffff) center/3px 20px no-repeat;
}
.faq-item[open] > .faq-q,
.faq-item[open] > summary { border-radius: 10px 10px 0 0; }
.faq-item[open] > .faq-q::after,
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-a {
  display: flex; gap: 14px; align-items: flex-start;
  background: #ffffff; border: 1px solid var(--c-line-red); border-top: 0;
  border-radius: 0 0 10px 10px;
  margin: 0; padding: 18px;
}
/* Q/Aの丸バッジ。本文編集で消えないようCSSで生成する（span を本文に置かない） */
.faq-item > summary::before,
.faq-a::before {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-en); font-size: 18px; font-weight: 700; line-height: 1;
}
.faq-item > summary::before { content: "Q"; background: #ffffff; color: var(--c-text); }
.faq-a::before { content: "A"; background: var(--c-bg-pink); color: var(--c-text); }

/* ---------- お知らせ一覧 ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.news-list li { border-bottom: 1px solid var(--c-line); padding: 16px 0; }
.news-list a { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; text-decoration: none; color: var(--c-text); }
.news-list a:hover .ttl { text-decoration: underline; }
.news-list .date { font-family: var(--f-en); font-size: 16px; color: var(--c-text-note); font-variant-numeric: tabular-nums; }
.news-list .cat { font-size: 14px; font-weight: 700; color: var(--c-text); background: var(--c-tag); border-radius: 999px; padding: 3px 12px; }
.news-list .ttl { font-size: 18px; font-weight: 700; flex: 1 1 260px; }

/* ---------- 囲み ---------- */
.box {
  background: #ffffff; border: 1px solid var(--c-line-red);
  border-left: 6px solid var(--c-primary); border-radius: var(--radius);
  padding: 22px 24px; margin: 0 0 22px;
}
.box h3 { font-size: 20px; margin-bottom: .5em; }
.box p:last-child { margin-bottom: 0; }
.memo {
  background: #ffffff; border: 1px dashed var(--c-primary);
  border-radius: 10px; padding: 16px 18px;
  font-size: 16px; color: var(--c-text-note);
}
.memo p:last-child { margin-bottom: 0; }
.map-ph {
  background: repeating-linear-gradient(45deg, #EFE6DA 0 14px, #E7DBCB 14px 28px);
  border: 2px dashed var(--c-ph-line); border-radius: var(--radius);
  min-height: 280px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #3A3A3A; text-align: center; padding: 16px;
}

/* ---------- CTA帯（明るいピンク地＋赤ボタン） ---------- */
.cta-band { background: var(--c-bg-pink); padding: 72px 0; }
.cta-band h2 { font-size: 30px; font-weight: 900; }
.cta-band .lead { max-width: 800px; margin-left: auto; margin-right: auto; }

/* ---------- フッター（仕様書どおり黒地。配色はここに閉じる） ---------- */
.site-footer { background: var(--c-text); color: #ffffff; padding: 56px 0 28px; }
.site-footer h2 { color: #ffffff; font-size: 22px; }
.site-footer a { color: var(--c-bg-pink); text-decoration-color: var(--c-bg-pink); }
.site-footer a:hover { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; }
.footer-nav li { margin: 0; }
.footer-nav a { font-size: 17px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copy { border-top: 1px solid rgba(255,255,255,.28); margin-top: 30px; padding-top: 16px; font-size: 14px; color: #F0E6E6; }

/* ---------- 固定ENTRY（PC=右端／SP=下部バー）＋ページトップ ---------- */
.fixed-entry {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fixed-entry__btn {
  writing-mode: vertical-rl;
  background: var(--c-primary); color: #ffffff;
  font-size: 19px; font-weight: 700; letter-spacing: .12em;
  padding: 24px 15px; border-radius: 12px 0 0 12px;
  text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.fixed-entry__btn:hover { background: var(--c-primary-dark); color: #ffffff; }
.fixed-entry__top {
  width: 52px; height: 52px; margin-right: 12px; border-radius: 50%;
  background: var(--c-text); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.fixed-entry__top:hover { background: var(--c-primary-dark); color: #ffffff; }

/* ---------- レスポンシブ ---------- */
/* 固定ENTRYが本文に重なる幅では、本文側に逃げ幅を確保する */
@media (min-width: 768px) and (max-width: 1250px) {
  body { padding-right: 58px; }
}
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .sec-head h2[data-en]::before,
  .page-head h1[data-en]::before,
  .hero h1[data-en]::before,
  .cta-band h2[data-en]::before,
  .sec-head .sub { font-size: 40px; }
}
@media (max-width: 767px) {
  body { font-size: 18px; padding-bottom: 72px; }
  h2 { font-size: 25px; }
  h3 { font-size: 21px; }
  .hero h1 { font-size: 28px; }
  .page-head h1 { font-size: 26px; }
  .lead { font-size: 19px; }
  .wrap { padding: 0 16px; }
  .sec, .cta-band { padding: 52px 0; }
  .hero .wrap, .page-head .wrap { padding-top: 36px; padding-bottom: 36px; }
  .sec-head h2[data-en]::before,
  .page-head h1[data-en]::before,
  .hero h1[data-en]::before,
  .cta-band h2[data-en]::before,
  .sec-head .sub { font-size: 30px; }
  .g2, .g3, .g4, .g-media { grid-template-columns: 1fr; }
  .stats, .figs { grid-template-columns: 1fr; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .logo b { font-size: 21px; }
  .gnav ul { gap: 2px 14px; }
  .gnav a { font-size: 15px; }
  .header-cta { width: 100%; }
  .btn { display: block; width: 100%; }
  .btn-row { display: block; }
  .btn-row .btn { margin-bottom: 12px; }
  .tbl { border-radius: 10px; }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl th { border-bottom: 0; }
  .tbl td { border-top: 0; }
  .scroll-x > table { min-width: 620px; }
  .cmp-table { display: none; }
  .cmp-cards { display: block; }
  .ph-lg { min-height: 220px; }
  .footer-nav ul { grid-template-columns: 1fr; }
  .faq-q { font-size: 18px; padding: 14px 48px 14px 14px; }
  .faq-a { padding: 15px 14px; }

  /* 固定ENTRYは下部バーへ */
  .fixed-entry {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    flex-direction: row; align-items: stretch; gap: 0;
  }
  .fixed-entry__btn {
    writing-mode: horizontal-tb; flex: 1 1 auto;
    border-radius: 0; padding: 16px 10px; text-align: center;
    letter-spacing: .05em; box-shadow: none;
  }
  .fixed-entry__top {
    width: 72px; height: auto; margin: 0; border-radius: 0;
    box-shadow: none; border-left: 1px solid rgba(255,255,255,.35);
  }
}

/* ---------- モーション（scroll-driven animation。JS不使用） ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .card-link, .stat, .fixed-entry__btn, .fixed-entry__top { transition: background-color .2s ease, transform .2s ease, color .2s ease; }
  .btn:hover, .card-link:hover, .stat:hover, .fixed-entry__btn:hover { transform: translateY(-2px); }
  .faq-q::after { transition: transform .3s ease; }

  @supports (animation-timeline: view()) {
    .sec, .cta-band {
      animation: fadeUp .6s ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 印刷・PDF出力対応: アニメ初期状態の白紙化と閉じたFAQの欠落を防止 */
@media print {
  .sec, .cta-band { animation: none !important; opacity: 1 !important; transform: none !important; }
  details::details-content { content-visibility: visible; display: block; }
  .fixed-entry { display: none; }
}

/* MVオーバーレイ: 写真(スライダー)の上にキャッチを重ねる構成 */
.mv-stage { position: relative; margin-top: 10px; border-radius: 16px; overflow: hidden; }
.mv-bg { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 18px; background: #EFE6DA; border: 2px dashed #C9B99F; color: #6B5C44; font-weight: 700; text-align: center; }
.mv-bg small { font-weight: 400; }
.mv-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; background: rgba(255,255,255,.72); }
.mv-copy h1 { margin-bottom: .5em; }
.mv-copy p { margin-bottom: 0; }
@media (max-width: 767px) { .mv-bg { min-height: 480px; } .mv-copy { padding: 16px; } }

/* スマホのハンバーガーメニュー(チェックボックス方式・JSなし・design.md仕様=赤円) */
.nav-toggle { display: none; }
.nav-burger { display: none; }
@media (max-width: 767px) {
  .site-header .header-inner { flex-wrap: nowrap; align-items: center; gap: 10px; position: relative; padding-right: 66px; }
  .site-header .gnav { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--c-primary); cursor: pointer;
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 220;
  }
  .nav-burger span { display: block; width: 22px; height: 3px; border-radius: 2px; background: #ffffff; transition: transform .25s ease, opacity .25s ease; }
  /* スマホは下部固定バーがあるためヘッダー内CTAは非表示・ロゴは折り返さない */
  .header-cta { display: none; }
  .site-header .logo b { white-space: nowrap; }
  .site-header .logo span { display: none; }
  .site-header .logo { min-width: 0; }
  .nav-toggle:checked ~ .gnav {
    display: block; position: fixed; inset: 0; z-index: 210;
    background: #ffffff; padding: 96px 24px 24px; overflow-y: auto;
  }
  .nav-toggle:checked ~ .gnav ul { display: block; }
  .nav-toggle:checked ~ .gnav li { margin: 0; border-bottom: 1px solid var(--c-line); }
  .nav-toggle:checked ~ .gnav a {
    display: block; padding: 18px 8px; font-size: 20px; font-weight: 700;
    border-bottom: none; min-height: 44px;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media print { .nav-burger { display: none; } }

/* LPテイストのイラスト組み込み */
.illu { text-align: center; }
.illu img { max-width: 100%; height: auto; display: inline-block; }
.illu-icon { height: 110px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.illu-icon img { max-height: 100px; width: auto; }
.illu-card { margin-bottom: 12px; }
.illu-card img { max-height: 170px; width: auto; }
.illu-wide { margin: 6px 0 18px; }
.illu-wide img { max-height: 260px; width: auto; }
.illu .note { margin: 6px 0 0; }
.mv-bg.has-illu { background: #FDF6F0; border-style: solid; border-color: #F3E2D6; justify-content: flex-end; padding-top: 170px; }
.mv-bg.has-illu img { max-height: 340px; width: auto; max-width: 100%; }
.mv-bg.has-illu small { color: #8a7a66; }
/* キャッチは上部にグラデーション帯で載せ、イラストは下部で見せる */
.mv-stage .mv-copy { justify-content: flex-start; align-items: center; padding-top: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.85) 42%, rgba(255,255,255,0) 75%); }
.page-head { position: relative; overflow: hidden; }
.head-illu { position: absolute; right: 24px; bottom: -8px; height: 170px; width: auto; opacity: .95; }
@media (max-width: 1023px) { .head-illu { display: none; } }
@media (max-width: 767px) {
  .illu-wide img { max-height: 200px; }
  /* スマホはオーバーレイをやめて縦積み(キャッチ→イラスト) */
  .mv-stage { display: flex; flex-direction: column-reverse; background: #FDF6F0; }
  .mv-stage .mv-copy { position: static; background: none; padding: 20px 16px 4px; }
  .mv-bg.has-illu { min-height: 0; padding-top: 8px; border: none; }
  .mv-bg.has-illu img { max-height: 240px; }
}

/* ==========================================================================
   WordPress 固有の調整（モックには無かった分）
   ========================================================================== */

/* 管理バー表示時に追従ヘッダーが隠れないようにする */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ブロックのレイアウト既定ギャップを無効化（余白はモック準拠の要素マージンで持つ） */
.wp-block-group > * { margin-block-start: 0; }
.wp-block-group { margin: 0; }
.wp-block-group.wrap { margin-left: auto; margin-right: auto; }
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; }

/* ページトップアンカー。sticky ヘッダーの外に置くための空要素（レイアウトに出さない） */
.pagetop-anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; }

/* ---------- core/table ブロック互換 ----------
   wp:table は figure でラップされるため、枠線・背景・角丸は内側の table に付け直す。
   セル側（.tbl th 等）は子孫セレクタなのでそのまま効く。 */
figure.wp-block-table.tbl,
figure.wp-block-table.sim { border: 0; background: none; border-radius: 0; }
figure.wp-block-table.tbl > table {
  width: 100%; border: 1px solid var(--c-line); background: #ffffff;
  border-radius: var(--radius); overflow: hidden;
}
figure.wp-block-table.sim > table { width: 100%; border: 1px solid var(--c-line); background: #ffffff; }
/* 合計行は tfoot で持つ（行を足しても崩れないよう :last-child に頼らない） */
.sim tfoot th, .sim tfoot td { background: var(--c-bg-pink); font-weight: 700; font-size: 19px; }
@media (max-width: 767px) {
  /* SPで .tbl をブロック表示にする指定は figure ではなく table 自身に効かせる */
  figure.wp-block-table.tbl > table { display: block; width: 100%; border-radius: 10px; }
}

/* スキップリンク（フォーカス時のみ表示） */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--c-text); color: #ffffff; padding: 12px 20px;
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; color: #ffffff; }

/* 一覧（index.php）用の最小スタイル */
.entry-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.entry-list li { border-bottom: 1px solid var(--c-line); padding: 16px 0; margin: 0; }
.entry-list .date { font-family: var(--f-en); font-size: 16px; color: var(--c-text-note); display: block; }
.entry-list .ttl { font-size: 19px; font-weight: 700; }

/* ---------- fk-Info（TOPのお知らせ）出力 ---------- */
/* 出力構造: .top-info-group > .info-item > .info-list > .info-date + .info-text(.info-link) [+ .info-content] */
.top-info-group { border-top: 1px solid var(--c-line); margin-bottom: 18px; }
.top-info-group .info-list {
  display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline;
  border-bottom: 1px solid var(--c-line); padding: 12px 0;
}
.info-date {
  font-family: var(--f-en); font-size: 16px; color: var(--c-text-note);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.info-text { font-size: 18px; font-weight: 700; flex: 1 1 260px; }
a.info-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--c-text); text-decoration: underline;
  text-decoration-color: var(--c-primary); text-underline-offset: 3px;
}
a.info-link:hover { color: var(--c-text); text-decoration-thickness: 2px; }
.info-content { flex: 1 1 100%; font-size: 17px; color: var(--c-text); }
.info-content p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .top-info-group .info-list { padding: 10px 0; }
  .info-text { font-size: 17px; flex-basis: 100%; }
}

/* 動画ページ（YouTube埋め込み） */
.video-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
.video-item h2 { font-size: 20px; margin: 0 0 12px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) {
  .video-list { grid-template-columns: 1fr; }
}
