/* =========================================================
   実戦空手 己道 平成館 — リニューアル案 共通スタイル
   色・文字・部品はすべて DESIGN-GUIDELINE.html の定義に従う
   ========================================================= */

:root {
  /* UI色（ガイドライン 3. カラー） */
  --paper: #f4f4f4;   /* ベース：生成り */
  --white: #ffffff;
  --ink: #111111;     /* 本文・濃い面 */
  --ink-2: #333333;   /* 補助本文 */
  --mute: #666666;    /* 注記（これより薄いグレーは使わない） */
  --ai: #1c1c1e;      /* メイン：藍 */
  --ai-deep: #111111; /* 藍の濃い側（グラデ用） */
  --shu: #d7141a;     /* アクセント：朱（CTA専用） */
  --shu-deep: #8f0c11;/* CTAの下辺 */
  --shu-hi: #d7141a;  /* CTAグラデの上端 */
  --shu-lo: #d7141a;  /* CTAグラデの下端 */
  --kata: #1c1c1e;    /* 型クラスのタグ地（白文字） */
  --rule-ink: #4a4f57;/* 墨地の罫線 */
  --line-form: #8b8f94;/* 入力欄の枠（3:1以上） */
  --rule: #dddddd;    /* 罫線 */
  --rule-dark: #3a3a3d;/* 藍地の罫線 */
  --on-dark: #eef1f4; /* 濃い地の補助文字 */

  --radius: 6px;
  --wrap: 1120px;
  --head-h: 64px;

  --f-mincho: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-gothic: "Hiragino Kaku Gothic Pro", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-latin: "Bebas Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-gothic);
  font-size: 16px;
  line-height: 1.9;
  word-break: auto-phrase;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
.nw { white-space: nowrap; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sp-only { display: none; }
@media (max-width: 767px) {
  body { font-size: 15px; }
  .sp-only { display: inline; }
  .pc-only { display: none !important; }
}

/* ---------- 見出し（英字ウォーターマーク＋明朝） ---------- */
.sec { position: relative; padding: 120px 0; overflow: hidden; }
.sec--white { background: var(--white); }
.sec--ai { background: linear-gradient(160deg, var(--ai) 0%, var(--ai-deep) 100%); color: var(--white); }
.sec--ink { background: var(--ink); color: var(--white); }
@media (max-width: 767px) { .sec { padding: 80px 0; } }

.sec-head { position: relative; margin-bottom: 56px; }
.sec-head__wm {
  position: absolute; left: -6px; top: -0.62em;
  font-family: var(--f-latin); font-style: italic; font-weight: 500;
  font-size: clamp(64px, 11vw, 150px); line-height: 1; letter-spacing: 0;
  color: var(--ink); opacity: .06; pointer-events: none; white-space: nowrap;
}
.sec--ai .sec-head__wm, .sec--ink .sec-head__wm { color: var(--white); opacity: .08; }
.sec-head__title {
  position: relative; margin: 0;
  font-family: var(--f-mincho); font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.45; letter-spacing: .06em;
}
.sec-head__lead { position: relative; margin: 18px 0 0; max-width: 40em; color: var(--ink-2); }
.sec--ai .sec-head__lead, .sec--ink .sec-head__lead { color: var(--on-dark); }
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__wm { left: 50%; transform: translateX(-50%); }
.sec-head--center .sec-head__lead { margin-inline: auto; }

/* ---------- ボタン ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: var(--radius);
  font-family: var(--f-gothic); font-weight: 700; font-size: 16px; letter-spacing: .06em;
  text-decoration: none; cursor: pointer; border: 0; overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn--cta {
  color: var(--white);
  background: linear-gradient(180deg, var(--shu-hi) 0%, var(--shu) 55%, var(--shu-lo) 100%);
  box-shadow: 0 5px 0 var(--shu-deep);
}
.btn--cta::after { /* 光の帯（シャイン） */
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn--cta:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--shu-deep); }
.btn--line {
  color: var(--ink); background: var(--white);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--line.on-dark { color: var(--white); background: transparent; box-shadow: inset 0 0 0 2px var(--white); }
.btn__badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--white); color: var(--shu); font-size: 12px; letter-spacing: .04em; line-height: 1.6;
}
.btn--lg { min-height: 64px; font-size: 18px; padding: 0 36px; }

.micro { /* \ ボタン上のマイクロコピー / */
  position: relative; display: inline-block; margin-bottom: 10px; padding: 0 22px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
}
.micro::before, .micro::after {
  content: ""; position: absolute; top: 50%; width: 14px; height: 1.5px; background: currentColor;
}
.micro::before { left: 0; transform: rotate(60deg); }
.micro::after { right: 0; transform: rotate(-60deg); }

.textlink {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding-bottom: 4px; border-bottom: 2px solid currentColor;
}

/* ---------- 下層ページの見出し帯 ---------- */
.page-hero { position: relative; color: var(--white); background: var(--ai-deep); overflow: hidden; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.93) 0%, rgba(0,0,0,.86) 45%, rgba(0,0,0,.55) 100%);
}
.page-hero__in { position: relative; z-index: 1; padding: 96px 0 72px; }
.page-hero__wm {
  display: block; font-family: var(--f-latin); font-style: italic; font-size: clamp(48px, 8vw, 104px);
  line-height: 1; opacity: .16; margin-bottom: -.42em;
}
.page-hero__title { margin: 0; font-family: var(--f-mincho); font-weight: 800; font-size: clamp(28px, 4vw, 44px); letter-spacing: .08em; }
.page-hero__lead { margin: 14px 0 0; max-width: 36em; color: var(--on-dark); }
.crumb { position: relative; z-index: 1; padding: 14px 0; font-size: 12px; color: var(--on-dark); }
.crumb a { color: var(--white); }
.crumb--light { color: var(--mute); padding: 0 0 32px; }
.crumb--light a { color: var(--ink); }
@media (max-width: 767px) { .page-hero__in { padding: 64px 0 48px; } }

/* ---------- ページ内目次 ---------- */
.toc { background: var(--white); border-bottom: 1px solid var(--rule); }
.toc__in { display: flex; gap: 8px 28px; flex-wrap: wrap; padding: 18px 0; }
.toc a { font-size: 14px; font-weight: 700; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.toc a:hover { border-bottom-color: var(--shu); }
@media (max-width: 767px) {
  .toc__in { flex-wrap: nowrap; overflow-x: auto; gap: 22px; -webkit-overflow-scrolling: touch; }
  .toc a { white-space: nowrap; }
}

/* ---------- 罫線リスト・定義リスト ---------- */
.rulelist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rulelist li { padding: 18px 0 18px 30px; border-bottom: 1px solid var(--rule); position: relative; }
.rulelist li::before {
  content: ""; position: absolute; left: 4px; top: 1.55em; width: 12px; height: 2px; background: var(--shu);
}
.sec--ai .rulelist, .sec--ai .rulelist li { border-color: var(--rule-dark); }

.dl { display: grid; grid-template-columns: 9em 1fr; margin: 0; border-top: 1px solid var(--rule); }
.dl dt, .dl dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.dl dt { font-weight: 700; padding-right: 16px; }
@media (max-width: 767px) {
  .dl { grid-template-columns: 1fr; }
  .dl dt { border-bottom: 0; padding-bottom: 0; }
  .dl dd { padding-top: 4px; }
}

/* ---------- 表 ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.table thead th { background: var(--ai); color: var(--white); font-weight: 700; border-bottom: 0; }
.table tbody th { font-weight: 700; white-space: nowrap; }
.table .num { text-align: right; font-feature-settings: "tnum"; white-space: nowrap; }

/* ---------- 注記 ---------- */
.note { font-size: 13px; color: var(--mute); line-height: 1.8; }
.sec--ai .note, .sec--ink .note { color: var(--on-dark); }

/* ---------- 開閉（よくある質問） ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 46px; font-weight: 700; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; position: absolute; left: 4px; top: 16px;
  font-family: var(--f-latin); font-style: italic; font-size: 28px; line-height: 1.2; color: var(--shu);
}
.faq summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__a { padding: 0 8px 24px 46px; color: var(--ink-2); }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- 締めのCTA帯 ---------- */
.cta-band { position: relative; color: var(--white); text-align: center; overflow: hidden; background: var(--ai-deep); }
.cta-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0, .88); }
.cta-band__in { position: relative; z-index: 1; padding: 110px 0; }
.cta-band__title { margin: 0 0 18px; font-family: var(--f-mincho); font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.5; letter-spacing: .06em; }
.cta-band__lead { margin: 0 auto 40px; max-width: 34em; color: var(--on-dark); }
.cta-band__btns { display: flex; justify-content: center; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.cta-band__col { display: flex; flex-direction: column; align-items: center; }
.cta-band__tel { margin-top: 36px; font-size: 14px; color: var(--on-dark); }
.cta-band__tel a { font-family: var(--f-latin); font-size: 30px; font-weight: 600; letter-spacing: .06em; color: var(--white); text-decoration: none; margin-left: 8px; }
@media (max-width: 767px) {
  .cta-band__in { padding: 80px 0; }
  .cta-band__btns .btn { width: 100%; }
  .cta-band__col { width: 100%; }
}

/* ---------- 出現アニメーション（フェード＋上昇のみ） ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .btn--cta::after { animation: none; }
}
