/*
Theme Name: JUSS Theme
Theme URI: https://juss.jp/
Author: Japan Urban Survival School / CMLE
Author URI: https://cmle.jp/
Description: Japan Urban Survival School（JUSS）公式テーマ。都市型サバイバル教育のブランドサイト。一般的な防災の一歩先へ。
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: juss-theme
*/

/* ============================================================
   JUSS - style.css
   Japan Urban Survival School / 都市型サバイバル
   ------------------------------------------------------------
   テイスト：テック × エディトリアル（細い罫線・余白・等幅数字 ＋ 上質さ）
   配色：ダークグレー主役 / 青=構造 / ゴールド=最小限のアクセント
   セクションで明暗を切替（ヒーロー・結論部=ダーク、本文=ライト）
   ------------------------------------------------------------
   0. デザイントークン
   1. ベース / リセット
   2. 共通パーツ（container / btn / section-head / reveal / rule）
   3. ヘッダー
   4. ヒーロー（ダーク）
   5. イントロ / 3つの軸（Estimate・Prepare・Recover）
   6. About（沿革・実績）
   7. コース
   8. 開催スケジュール
   9. 法人・団体向け
   10. 代表・講師
   11. ギャラリー
   12. FAQ
   13. CTAバンド（ダーク）
   14. お問い合わせ
   15. 下層ページ（講習詳細 / CMLE）
   16. フッター
   17. モバイル固定CTA
   18. レスポンシブ
============================================================= */

/* ====== 0. デザイントークン ====== */
:root {
  /* カラーパレット */
  --ink:        #2B2B2B;   /* 主役：ダークグレー */
  --ink-deep:   #1d1e1f;
  --ink-soft:   #3a3b3d;
  --steel:      #6A8BA0;   /* 青：構造色（罫線・見出し補助） */
  --steel-deep: #4f6d80;
  --steel-soft: #8fa9bb;
  --gold:       #D9A85F;   /* ゴールド：アクセント（全体の5%以下） */
  --gold-deep:  #c08f44;

  --paper:    #F4F2ED;     /* ライト背景（温かみのある白） */
  --paper-2:  #EAE7DF;     /* セクション交互背景 */
  --line:     #d9d5cc;     /* 罫線（ライト面） */
  --line-dark:#3c3d3f;     /* 罫線（ダーク面） */

  --text:       #2B2B2B;
  --text-muted: #6c6a66;
  --on-dark:        #ECEAE4;
  --on-dark-muted:  #a6a9aa;

  /* フォント */
  --font-serif-jp: 'Shippori Mincho', serif;       /* 見出し（和） */
  --font-serif-en: 'Cormorant Garamond', serif;    /* 見出し（欧・ディスプレイ） */
  --font-sans-jp:  'Zen Kaku Gothic New', sans-serif; /* 本文 */
  --font-ui:       'Inter', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;     /* 等幅：数字・ラベル（テック感） */

  /* レイアウト */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ====== 1. ベース / リセット ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans-jp);
  color: var(--text);
  background: var(--paper);
  line-height: 1.92;
  font-weight: 400;
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.42; }
p { margin: 0 0 1.3em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--steel); color: #fff; }

/* ====== 2. 共通パーツ ====== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 860px; }

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--paper2 { background: var(--paper-2); }
.section--ink {
  background: var(--ink);
  color: var(--on-dark);
}

/* セクション見出し */
.section-head { max-width: 800px; margin: 0 0 clamp(40px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--steel-deep);
  margin: 0 0 1.4em;
  font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}
.eyebrow.on-dark { color: var(--steel-soft); }
.section-title {
  font-family: var(--font-serif-jp);
  font-size: clamp(1.55rem, 3.8vw, 2.55rem);
  letter-spacing: .03em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}
.section-title.on-dark { color: var(--on-dark); }
.section-desc { margin-top: 1.5em; color: var(--text-muted); font-size: 1.02rem; }
.section-desc.on-dark { color: var(--on-dark-muted); }

/* 番号付きの章ラベル（テック感） */
.idx {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .2em; color: var(--steel-deep);
}

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  font-family: var(--font-ui);
  font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  padding: 1.05em 2.3em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .35s var(--ease);
  position: relative;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: var(--ink-deep); transform: translateY(-2px); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn-outline.on-dark { color: var(--on-dark); }
.btn-outline.on-dark:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-arrow::after { content: "→"; font-family: var(--font-mono); transition: transform .3s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* テキストリンク */
.tlink {
  font-family: var(--font-ui); font-size: .85rem; font-weight: 600; letter-spacing: .06em;
  color: var(--steel-deep);
  display: inline-flex; align-items: center; gap: .5em;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .3s, gap .3s;
}
.tlink::after { content: "→"; font-family: var(--font-mono); }
.tlink:hover { border-color: var(--steel); gap: .85em; }

/* 罫線 */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule.on-dark { background: var(--line-dark); }

/* 統一グレーディング：写真をひとつの世界観に揃える */
.graded { position: relative; overflow: hidden; background: var(--ink); }
.graded img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.32) contrast(1.06) brightness(.94) saturate(.82);
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.graded::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(43,43,43,.12), rgba(43,43,43,.42));
  mix-blend-mode: multiply;
}
.graded.tint-steel::after {
  background: linear-gradient(180deg, rgba(79,109,128,.18), rgba(29,30,31,.5));
}

/* reveal（スクロールでフェードイン） */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ====== 3. ヘッダー ====== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
  padding: 6px 0;
}
.site-header.scrolled {
  background: rgba(43,43,43,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line-dark);
}
.header-inner {
  max-width: 1340px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; color: var(--on-dark); }
.brand-name {
  font-family: var(--font-serif-en); font-weight: 600;
  font-size: 1.42rem; letter-spacing: .14em;
}
.brand-sub {
  font-family: var(--font-mono); font-size: .56rem; letter-spacing: .34em;
  text-transform: uppercase; color: var(--steel-soft); margin-top: 4px;
}
.gnav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.gnav a {
  font-family: var(--font-ui); font-size: .82rem; font-weight: 500; letter-spacing: .06em;
  color: var(--on-dark); opacity: .82; transition: opacity .3s, color .3s; position: relative;
}
.gnav a:hover { opacity: 1; }
.gnav a.nav-cta {
  background: var(--gold); color: var(--ink); opacity: 1;
  padding: .7em 1.5em; border-radius: var(--radius); font-weight: 600;
  transition: background .3s, transform .3s;
}
.gnav a.nav-cta:hover { background: var(--gold-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 30px; height: 24px;
  background: none; border: 0; cursor: pointer; padding: 0; justify-content: center;
}
.nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--on-dark); transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ====== 4. ヒーロー ====== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--ink-deep); color: var(--on-dark); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.15) contrast(1.12) brightness(.92) saturate(.85);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(29,30,31,.30) 0%, rgba(29,30,31,.20) 45%, rgba(29,30,31,.72) 100%),
    linear-gradient(90deg, rgba(29,30,31,.55) 0%, rgba(29,30,31,.08) 55%, rgba(29,30,31,0) 100%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px);
  background-size: 100% 25vh;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 90px; padding-bottom: 60px; }
.hero-meta {
  display: flex; align-items: center; gap: 1em; margin-bottom: 2.2em;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--steel-soft);
}
.hero-meta span.tick { width: 30px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--font-serif-jp); font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 4.1rem); line-height: 1.4; letter-spacing: .04em;
  color: #fff; margin: 0 0 .7em; max-width: 18em;
  text-shadow: 0 1px 24px rgba(20,21,22,.55);
}
.hero-meta { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero-lead { text-shadow: 0 1px 18px rgba(20,21,22,.5); }
.hero-title .accent { color: var(--gold); text-shadow: 0 1px 2px rgba(20,21,22,.7), 0 1px 24px rgba(20,21,22,.55); }
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--on-dark);
  max-width: 33em; margin: 0 0 2.6em; line-height: 2;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  border-top: 1px solid var(--line-dark); padding-top: 16px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em;
  color: var(--on-dark-muted); text-transform: uppercase;
}
.hero-foot .axes { display: flex; gap: 1.6em; flex-wrap: wrap; }
.hero-foot .axes b { color: var(--gold); font-weight: 500; }
.scroll-cue { display: flex; align-items: center; gap: .7em; }
.scroll-cue .bar { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: scrollpulse 2.2s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100%{ opacity:.3; transform: scaleY(.6); transform-origin: top;} 50%{ opacity:1; transform: scaleY(1);} }

/* ====== 5. イントロ / 3つの軸 ====== */
.lead-statement {
  font-family: var(--font-serif-jp); font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.85; letter-spacing: .04em;
  color: var(--ink); max-width: 22em;
}
.lead-statement .em { color: var(--steel-deep); }
.lead-body { color: var(--text-muted); max-width: 34em; margin-top: 2em; }

.axes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 84px);
}
.axis {
  padding: clamp(28px, 4vw, 46px) clamp(24px, 2.5vw, 34px);
  border-right: 1px solid var(--line); position: relative;
}
.axis:first-child { padding-left: 0; }
.axis:last-child { border-right: 0; padding-right: 0; }
.axis-num {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em;
  color: var(--steel-deep); display: block; margin-bottom: 1.4em;
}
.axis-en {
  font-family: var(--font-serif-en); font-style: italic; font-size: 1.9rem;
  color: var(--gold-deep); display: block; line-height: 1; margin-bottom: .35em;
}
.axis-jp { font-family: var(--font-serif-jp); font-size: 1.18rem; color: var(--ink); display: block; margin-bottom: 1em; font-weight: 600; }
.axis-text { font-size: .94rem; color: var(--text-muted); line-height: 1.95; margin: 0; }

/* ====== 6. About / 沿革・実績 ====== */
.about-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center;
}
.about-figure { position: relative; }
.about-figure .graded { aspect-ratio: 4/5; border-radius: var(--radius); }
.about-figure .figure-tag {
  position: absolute; left: -1px; bottom: 26px; background: var(--ink); color: var(--on-dark);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .9em 1.4em; border-left: 2px solid var(--gold);
}
.about-body p { color: var(--text-muted); }
.about-body .lead-statement { margin-bottom: 1em; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line);
}
.stat { padding: 26px 18px 0 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; padding-right: 0; padding-left: 18px; }
.stat .num {
  font-family: var(--font-mono); font-weight: 600; color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; letter-spacing: -.01em;
}
.stat .num .u { font-size: .9rem; color: var(--steel-deep); margin-left: .2em; letter-spacing: 0; }
.stat .lbl { font-size: .8rem; color: var(--text-muted); margin-top: .9em; letter-spacing: .04em; }

/* ====== 7. コース ====== */
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 38px); }
.course-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.section--ink .course-card { background: var(--ink-soft); border-color: var(--line-dark); }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0,0,0,.35); border-color: var(--steel); }
.course-thumb { aspect-ratio: 16/10; }
.course-card:hover .course-thumb img { transform: scale(1.04); }
.course-content { padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; flex: 1; }
.course-tag {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--steel-deep); display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1.3em;
}
.course-tag::before { content: ""; width: 18px; height: 1px; background: var(--gold); }
.course-name { font-family: var(--font-serif-jp); font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--ink); margin-bottom: .2em; }
.section--ink .course-name { color: var(--on-dark); }
.course-name-en { font-family: var(--font-serif-en); font-style: italic; font-size: .98rem; color: var(--gold-deep); margin-bottom: 1.2em; }
.course-text { font-size: .95rem; color: var(--text-muted); margin-bottom: 1.6em; }
.section--ink .course-text { color: var(--on-dark-muted); }
.course-specs { list-style: none; margin: 0 0 1.8em; padding: 1.2em 0 0; border-top: 1px solid var(--line); display: grid; gap: .7em; }
.section--ink .course-specs { border-color: var(--line-dark); }
.course-specs li { display: flex; gap: 1em; font-size: .86rem; align-items: baseline; }
.course-specs .k { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-deep); min-width: 78px; flex-shrink: 0; }
.course-specs .v { color: var(--text); }
.section--ink .course-specs .v { color: var(--on-dark); }
.course-price { display: flex; align-items: baseline; gap: .5em; margin-bottom: 1.5em; }
.course-price .yen { font-family: var(--font-mono); font-weight: 600; font-size: 1.7rem; color: var(--ink); }
.section--ink .course-price .yen { color: var(--on-dark); }
.course-price .note { font-size: .76rem; color: var(--text-muted); }
.course-foot { margin-top: auto; }

/* ====== 8. 開催スケジュール ====== */
.sched-list { border-top: 1px solid var(--line-dark); }
.sched-row {
  display: grid; grid-template-columns: 150px 1fr auto; gap: clamp(20px, 3vw, 44px);
  align-items: center; padding: clamp(24px, 3vw, 34px) 0; border-bottom: 1px solid var(--line-dark);
}
.sched-date { display: flex; flex-direction: column; }
.sched-month { font-family: var(--font-serif-en); font-style: italic; font-size: 1.4rem; color: var(--gold); line-height: 1; }
.sched-day { font-family: var(--font-mono); font-weight: 600; font-size: 1.9rem; color: var(--on-dark); line-height: 1.1; letter-spacing: -.01em; }
.sched-year { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; color: var(--on-dark-muted); margin-top: .4em; }
.sched-info { min-width: 0; }
.sched-place { font-family: var(--font-serif-jp); font-size: 1.12rem; color: var(--on-dark); margin: 0 0 .35em; display: flex; align-items: center; gap: .9em; flex-wrap: wrap; }
.sched-flag { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: .35em .8em; border-radius: 2px; }
.sched-tag { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; color: var(--steel-soft); }
.sched-detail { font-size: .9rem; color: var(--on-dark-muted); margin: .3em 0 .4em; }
.sched-price { font-family: var(--font-mono); font-size: .82rem; color: var(--on-dark); margin: 0; }
.sched-btn { white-space: nowrap; }
.sched-pending {
  display: inline-flex; align-items: center; font-family: var(--font-ui); font-size: .76rem; letter-spacing: .1em;
  color: var(--on-dark-muted); border: 1px solid var(--line-dark); padding: 1em 1.8em; border-radius: var(--radius);
}
.sched-note { margin-top: 2em; font-size: .82rem; color: var(--on-dark-muted); font-family: var(--font-ui); }

/* ====== 9. 法人・団体向け ====== */
.corp {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(32px, 5vw, 70px);
  background: var(--paper);
}
.corp-list { display: grid; gap: 1em; margin: 1.8em 0 0; }
.corp-list li { display: flex; gap: 1em; align-items: baseline; font-size: .94rem; color: var(--text); }
.corp-list li::before { content: "—"; color: var(--gold-deep); font-family: var(--font-mono); }

/* ====== 10. 代表・講師 ====== */
.founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.founder-figure .graded { aspect-ratio: 3/4; border-radius: var(--radius); }
.founder-name { font-family: var(--font-serif-jp); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--on-dark); margin-bottom: .15em; }
.founder-roma { font-family: var(--font-serif-en); font-style: italic; color: var(--gold); font-size: 1rem; margin-bottom: .3em; }
.founder-role { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--on-dark-muted); margin-bottom: 1.8em; text-transform: uppercase; }
.founder-bio { color: var(--on-dark-muted); font-size: .98rem; line-height: 2; }
.founder-quote {
  font-family: var(--font-serif-jp); font-size: 1.05rem; color: var(--on-dark); border-left: 2px solid var(--gold);
  padding-left: 1.4em; margin: 1.8em 0 0; line-height: 1.95;
}

/* ====== 11. ギャラリー ====== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.gallery-grid .graded {
  position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden;
}
.gallery-grid .graded img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
.gallery-grid .graded:hover img { transform: scale(1.04); filter: grayscale(0) contrast(1.04) brightness(1) saturate(1); }
/* 旧・不規則スパンは無効化（HTMLのクラスはそのまま使える） */
.g-wide, .g-tall, .g-sq, .g-sq3 { grid-column: auto; grid-row: auto; }

/* ====== 12. FAQ ====== */
.faq-list { border-top: 1px solid var(--line); max-width: 920px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; gap: 1.2em; align-items: flex-start; padding: 1.5em 0;
  font-family: var(--font-serif-jp); font-size: 1.04rem; color: var(--ink); line-height: 1.6;
}
.faq-q .qmark { font-family: var(--font-mono); color: var(--steel-deep); font-size: .9rem; flex-shrink: 0; padding-top: .2em; }
.faq-q .qico { margin-left: auto; flex-shrink: 0; width: 16px; height: 16px; position: relative; margin-top: .35em; }
.faq-q .qico::before, .faq-q .qico::after { content: ""; position: absolute; background: var(--steel-deep); transition: transform .35s var(--ease); }
.faq-q .qico::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq-q .qico::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.faq-q[aria-expanded="true"] .qico::after { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a-inner { padding: 0 0 1.7em 2.5em; color: var(--text-muted); font-size: .95rem; }
.faq-a-inner a { color: var(--steel-deep); border-bottom: 1px solid var(--steel); }

/* ====== 13. CTAバンド ====== */
.cta-band { text-align: center; }
.cta-band .cta-eyebrow { justify-content: center; }
.cta-band .section-title { margin-bottom: .8em; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 2em; }
.cta-reassure { margin-top: 2.4em; font-size: .82rem; color: var(--on-dark-muted); font-family: var(--font-ui); letter-spacing: .04em; }

/* ====== 14. お問い合わせ ====== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); }
.contact-info p { color: var(--text-muted); }
.contact-meta { margin-top: 2em; border-top: 1px solid var(--line); padding-top: 1.6em; display: grid; gap: 1.3em; }
.contact-meta .row { display: grid; grid-template-columns: 110px 1fr; gap: 1em; align-items: baseline; }
.contact-meta .k { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-deep); }
.contact-meta .v { font-size: .92rem; color: var(--text); }
.contact-meta .v a { color: var(--steel-deep); border-bottom: 1px solid var(--steel); }
.contact-note { font-size: .82rem; color: var(--text-muted); margin-top: 1.5em; }

/* Contact Form 7 の最小スタイル */
.contact-form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); }
.wpcf7 p { margin: 0 0 1.1em; }
.wpcf7-form label { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-deep); margin-bottom: .6em; }
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form textarea {
  width: 100%; font-family: var(--font-sans-jp); font-size: .95rem; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85em 1em; transition: border-color .3s; line-height: 1.7;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--steel); }
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form .wpcf7-submit {
  background: var(--ink); color: var(--on-dark); border: 0; border-radius: var(--radius);
  font-family: var(--font-ui); font-size: .82rem; font-weight: 600; letter-spacing: .1em;
  padding: 1.05em 2.6em; cursor: pointer; transition: background .3s, transform .3s;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }

/* ====== 14b. 受講者の声（Voices） ====== */
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.voice {
  display: flex; flex-direction: column; margin: 0;
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--gold);
  border-radius: var(--radius); padding: clamp(28px, 3vw, 38px);
}
.voice-quote {
  font-family: var(--font-serif-jp); font-size: 1.02rem; line-height: 1.95; color: var(--ink);
  margin: 0 0 1.6em; position: relative; padding-top: .2em;
}
.voice-quote::before {
  content: "“"; font-family: var(--font-serif-en); color: var(--gold); font-size: 2.4rem; line-height: 0;
  position: absolute; left: -.04em; top: .42em; opacity: .5;
}
.voice-meta { display: flex; align-items: center; gap: .9em; margin-top: auto; padding-top: 1.4em; border-top: 1px solid var(--line); }
.voice-avatar {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; position: relative;
  display: grid; place-items: center; background: var(--paper-2); border: 1px solid var(--line);
}
.voice-avatar img { width: 100%; height: 100%; object-fit: cover; }
.voice-avatar .voice-initial {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--steel-deep);
}
.voice-name { font-family: var(--font-sans-jp); font-size: .9rem; color: var(--ink); font-weight: 600; }
.voice-name em { display: block; font-style: normal; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; color: var(--text-muted); margin-top: .35em; }
.voices-note { margin-top: 2.4em; font-size: .8rem; color: var(--text-muted); font-family: var(--font-ui); }
@media (max-width: 880px) { .voices-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ====== 15. 下層ページ ====== */
.page-hero {
  background: var(--ink); color: var(--on-dark); padding: clamp(130px, 16vw, 200px) 0 clamp(56px, 8vw, 96px);
  position: relative; overflow: hidden;
}
.page-hero .breadcrumb { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 2.2em; display: flex; gap: .7em; }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb .sep { color: var(--line-dark); }
.page-hero-en { font-family: var(--font-serif-en); font-style: italic; font-size: 1.2rem; color: var(--gold); margin-bottom: .3em; }
.page-hero h1 { font-family: var(--font-serif-jp); font-size: clamp(1.9rem, 4.6vw, 3rem); color: #fff; letter-spacing: .03em; line-height: 1.45; }
.page-hero .page-hero-lead { color: var(--on-dark-muted); max-width: 36em; margin-top: 1.6em; }

/* コース詳細ページの写真 */
.page-feature { background: var(--paper); padding-top: clamp(40px, 6vw, 72px); }
.detail-band { position: relative; }
.detail-band .graded { aspect-ratio: 16 / 7; border-radius: var(--radius); }
.detail-band figcaption {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 1.1em;
}
.detail-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 3em 0; }
.detail-duo .graded { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.prose-figure { margin: 3em 0; }
.prose-figure .graded { aspect-ratio: 3 / 2; border-radius: var(--radius); }
.prose-figure figcaption {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 1.1em;
}
@media (max-width: 600px) {
  .detail-band .graded { aspect-ratio: 4 / 3; }
  .detail-duo { grid-template-columns: 1fr; gap: 12px; }
}

/* 紹介動画（Presto Player / YouTube） */
.intro-video-section { padding: clamp(56px, 9vw, 110px) 0 0; background: var(--paper); }
.intro-video { margin: 0 auto clamp(36px, 5vw, 60px); }
.intro-video-inner {
  max-width: 860px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px -34px rgba(43,43,43,.5);
}
.intro-video-inner :is(video, iframe) { display: block; width: 100%; border: 0; }
.intro-video-inner .video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.intro-video-inner .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-serif-jp); font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--ink); margin: 2.4em 0 .9em; letter-spacing: .03em; }
.prose h3 { font-family: var(--font-serif-jp); font-size: 1.12rem; color: var(--ink); margin: 1.8em 0 .6em; }
.prose p { color: var(--text-muted); }
.prose a { color: var(--steel-deep); border-bottom: 1px solid var(--steel); }
.prose ul.ticks { display: grid; gap: .8em; margin: 1.4em 0; }
.prose ul.ticks li { display: flex; gap: 1em; align-items: baseline; color: var(--text); }
.prose ul.ticks li::before { content: "—"; color: var(--gold-deep); font-family: var(--font-mono); }

/* 詳細ページ：データテーブル風 */
.spec-table { border-top: 1px solid var(--line); margin: 2em 0; }
.spec-table .row { display: grid; grid-template-columns: 180px 1fr; gap: 1.5em; padding: 1.1em 0; border-bottom: 1px solid var(--line); }
.spec-table .k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-deep); }
.spec-table .v { color: var(--text); }

/* 運営団体 CMLE */
.org-meta { border-top: 1px solid var(--line); margin-top: 2em; }
.org-meta .row { display: grid; grid-template-columns: 200px 1fr; gap: 1.5em; padding: 1.15em 0; border-bottom: 1px solid var(--line); }
.org-meta .k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-deep); }
.org-meta .v { color: var(--text); }
.org-meta .v a { color: var(--steel-deep); border-bottom: 1px solid var(--steel); }

/* ====== 15b. WILD AND NATIVE（母体・スクール群の相関図） ====== */
.wan { position: relative; padding: clamp(90px, 14vw, 170px) 0; color: var(--on-dark); text-align: center; overflow: hidden; }
.wan-media { position: absolute; inset: 0; z-index: 0; }
.wan-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.05) brightness(.7) saturate(.7); }
.wan-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,30,31,.82), rgba(29,30,31,.92)); }
.wan-content { position: relative; z-index: 1; max-width: 760px; }
.wan-text { margin: 1.8em auto 2.4em; font-size: 1rem; line-height: 2; color: var(--on-dark); }
.wan-name { color: var(--gold); font-weight: 500; border-bottom: 1px solid rgba(217,168,95,.5); padding-bottom: 1px; transition: border-color .3s; }
.wan-name:hover { border-color: var(--gold); }

.lineage { max-width: 860px; margin: 2.6em auto 0; }
.lin-root {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: clamp(240px, 40vw, 320px); margin-inline: auto;
  background: #fff; border-radius: 12px; padding: 24px 36px;
  box-shadow: 0 24px 54px -26px rgba(0,0,0,.6); transition: transform .35s var(--ease);
}
.lin-root:hover { transform: translateY(-4px); }
.lin-tag { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-deep); }
.lin-root img { max-height: 72px; object-fit: contain; }
.lin-trunk { display: block; width: 2px; height: 26px; margin: 0 auto; background: var(--gold); }
.lin-children { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; padding-top: 26px; }
.lin-children::before { content: ''; position: absolute; top: 0; left: 16.66%; right: 16.66%; height: 2px; background: var(--gold); opacity: .55; }
.lin-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: #fff; border-radius: 10px; padding: 30px 20px 26px;
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.55); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.lin-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px -22px rgba(0,0,0,.6); }
.lin-card::before { content: ''; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 2px; height: 26px; background: var(--gold); opacity: .55; }
.lin-logo { height: 52px; display: flex; align-items: center; justify-content: center; }
.lin-logo img { max-height: 52px; max-width: 100%; object-fit: contain; }
.lin-catch { margin: 0; font-family: var(--font-serif-jp); font-size: .82rem; line-height: 1.7; color: #5b5b5b; text-align: center; }
/* JUSS（自校）強調 */
.lin-card.is-self { background: #faf3e6; outline: 2px solid var(--gold); outline-offset: -2px; box-shadow: 0 28px 56px -22px rgba(43,43,43,.5); }
.lin-card.is-self:hover { transform: translateY(-4px); }
.lin-self-mark { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-family: var(--font-ui); font-size: .58rem; letter-spacing: .14em; font-weight: 600; background: var(--gold); color: var(--ink-deep); padding: .28em 1em; border-radius: 999px; white-space: nowrap; }
.lin-cross { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); margin-top: 24px; padding: 18px clamp(18px, 3vw, 30px); background: rgba(236,234,228,.07); border: 1px solid rgba(217,168,95,.4); border-radius: 10px; transition: background .3s; }
.lin-cross:hover { background: rgba(236,234,228,.12); }
.lin-cross-logo { flex: 0 0 auto; background: #fff; border-radius: 8px; padding: 12px 18px; }
.lin-cross-logo img { max-height: 38px; object-fit: contain; }
.lin-cross-catch { margin: 0; font-family: var(--font-sans-jp); font-size: .88rem; color: var(--on-dark); text-align: left; line-height: 1.7; }
@media (max-width: 720px) {
  .lin-children { grid-template-columns: 1fr; gap: 30px; }
  .lin-children::before { display: none; }
  .lin-card::before { display: none; }
  .lin-cross { flex-direction: column; text-align: center; }
  .lin-cross-catch { text-align: center; }
}

/* ====== 16. フッター ====== */
.site-footer { background: var(--ink-deep); color: var(--on-dark-muted); padding: clamp(56px, 8vw, 90px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(30px, 4vw, 60px); padding-bottom: clamp(40px, 6vw, 64px); }
.footer-brand .brand-name { font-family: var(--font-serif-en); font-size: 1.5rem; letter-spacing: .12em; color: var(--on-dark); display: block; }
.footer-brand .brand-sub { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--steel-soft); display: block; margin-top: 6px; }
.footer-note { font-size: .85rem; line-height: 1.9; margin-top: 1.6em; max-width: 26em; }
.footer-sns { display: flex; gap: 16px; margin-top: 1.8em; }
.footer-sns a { color: var(--on-dark-muted); display: inline-flex; transition: color .3s var(--ease), transform .3s var(--ease); }
.footer-sns a:hover { color: var(--gold); transform: translateY(-2px); }
.footer-col h4 { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-soft); margin-bottom: 1.5em; font-weight: 500; }
.footer-col a { display: block; font-size: .88rem; color: var(--on-dark-muted); margin-bottom: .9em; transition: color .3s; }
.footer-col a:hover { color: var(--gold); }
.footer-col a.footer-cta { color: var(--gold); font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 1.8em 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; color: var(--on-dark-muted); }
.footer-disclaimer { font-size: .76rem; max-width: 60em; }

/* ====== 17. モバイル固定CTA ====== */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--gold); color: var(--ink);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: .8em 1em calc(.8em + env(safe-area-inset-bottom)); text-align: center;
  transform: translateY(100%); transition: transform .4s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta-sub { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.mobile-cta-main { font-family: var(--font-ui); font-weight: 700; font-size: .95rem; letter-spacing: .04em; }

/* ====== 18. レスポンシブ ====== */
@media (max-width: 1000px) {
  .about-grid, .founder, .corp, .contact-grid { grid-template-columns: 1fr; }
  .founder-figure { max-width: 360px; }
  .about-figure { max-width: 440px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .gnav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--ink-deep); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 40px var(--gutter); transform: translateX(100%); transition: transform .4s var(--ease);
    border-left: 1px solid var(--line-dark);
  }
  .gnav.open { transform: none; }
  .gnav a { font-size: 1.05rem; opacity: 1; }
  body { padding-bottom: 64px; } /* モバイル固定CTAバーの高さぶん本文下に余白 */
  .course-grid { grid-template-columns: 1fr; }
  .axes-grid, .stats { grid-template-columns: 1fr; }
  .axis { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .axis:last-child { border-bottom: 0; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .stat:last-child { border-bottom: 0; padding-left: 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g-wide, .g-tall, .g-sq, .g-sq3 { grid-column: span 1; grid-row: span 1; }
  .sched-row { grid-template-columns: 100px 1fr; gap: 16px 22px; }
  .sched-btn { grid-column: 1 / -1; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: flex; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-foot .axes { font-size: .58rem; gap: 1em; }
  .hero-actions .btn { width: 100%; }
}
