/*
Theme Name: bokinew2026
Description: 株式会社ソフトキャンパス 簿記講座サイト用テーマ。Figma Make のプロトタイプ（React/Vite）のデザインをそのまま WordPress テーマとして移植したものです。
Author: Softcampus
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@600;700&family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');

:root {
  --white: #fff;
  --main-color: #01A4D6;
  --light-gray: #efefef;
  --dark-green: #136077;
  --accent-color: #EDFF47;
  --sub-color: #55c2e4;
  --line-green: #06BE53;
  --text-color: #333;
  --dark-gray: #9FA0A0;

  --bg: var(--white);
  --bg-deep: #f7f8f9;
  --paper: var(--white);
  --ink: var(--text-color);
  --ink-soft: #555;
  --ink-faint: var(--dark-gray);
  --line: #e0e0e0;
  --line-strong: #c8c8c8;
  --accent-600: var(--main-color);
  --accent-500: #0c86ab;
  --accent-100: #e3f5fb;
  --accent-050: #f2fbfd;
  --trust-700: var(--dark-green);
  --trust-600: #1c7691;
  --trust-300: #a9dcee;
  --trust-100: #e3eef1;
  --gold-600: var(--sub-color);
  --gold-100: #eaf7fb;
  --surface-alt: #f4f5f6;
  --shadow-sm: 0 1px 4px #00000010;
  --shadow-md: 0 4px 12px #00000012;
  --shadow-lg: 0 8px 24px #00000014;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 500;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
h1, h2, h3 {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  line-height: 1.45;
  margin: 0;
  letter-spacing: 0.02em;
}
p { margin: 0; }
a { color: var(--accent-600); text-decoration: none; }
a, .btn, button {
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
a:hover { color: var(--accent-500); }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}
.section { padding-top: 96px; padding-bottom: 96px; }
.section-alt { background: var(--bg-deep); }

/* eyebrow: シンプルなラベルスタイル */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-600);
  border-bottom: 2px solid var(--accent-600);
  padding-bottom: 4px;
  background: none;
  border-radius: 0;
}
.eyebrow--gold { background: var(--gold-100); color: var(--gold-600); }

.h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--ink);
  margin-top: 20px;
}
.lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 20px;
  max-width: 640px;
  line-height: 1.9;
}
.lead--center { margin-left: auto; margin-right: auto; max-width: 680px; text-align: left; }

/* 固定ページ(確認/完了/エラーページ等)の本文表示 */
.page-body {
  margin-top: 24px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.page-body p { margin-top: 16px; }
.page-body p:first-child { margin-top: 0; }
.page-body > p { margin-bottom: 32px; }
/*
 * MW WP Form の内部処理が生成する無名の<p>(セレクト等をラップする副産物)には
 * 上記の見出し用の余白ルールを適用しない。適用するとフォーム内の項目がずれる。
 */
.page-body [id^="mw_wp_form_"] p { margin: 0; }
.page-body a { text-decoration: underline; }

/* contact section: distinct heading treatment (calmer, typography-led, no pill/box) */
.contact-intro { max-width: 640px; margin: 0 auto; }
.contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--main-color);
}
.contact-kicker svg { flex-shrink: 0; }
.contact-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: var(--text-color);
  margin-top: 20px;
}

/* ボタン: シャープに */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  min-height: 44px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.btn-primary { background: var(--accent-600); color: #fff; }
.btn-primary:hover { background: var(--accent-500); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent-600); color: var(--accent-600); }
.btn-ghost { background: transparent; color: var(--trust-700); border-color: var(--trust-700); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: #05a648; color: #fff; }
.btn-phone { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.5); }
.btn-phone:hover { background: rgb(255 255 255 / 0.12); border-color: #fff; color: #fff; }

/* カード: ボーダーのみ・角丸なし */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
}

.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-wrap--sm { width: 40px; height: 40px; border-radius: 12px; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--trust-700);
  background: var(--trust-100);
  border-radius: 2px;
  padding: 6px 14px;
}
.badge-pill--on-dark { background: rgb(255 255 255 / 0.14); color: #fff; }

/* header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 0.97);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark { height: 40px; width: auto; }
.logo span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
nav.nav-links { display: flex; align-items: center; gap: 32px; }
nav.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.04em;
}
nav.nav-links a:hover { color: var(--accent-600); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 20px; font-size: 13px; }
/* hamburger + mobile nav (hidden above 640px, see media query) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 52px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  line-height: 1;
  margin-top: 2px;
}
.hamburger.is-active .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.hamburger.is-active .hamburger-label { opacity: 0; }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.4);
  z-index: 49;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 82%);
  background: var(--white);
  z-index: 50;
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  box-shadow: -8px 0 24px rgb(0 0 0 / 0.08);
}
body.nav-open .mobile-nav-overlay { display: block; opacity: 1; }
body.nav-open .mobile-nav { transform: translateX(0); }
body.nav-open { overflow: hidden; }
.mobile-nav-close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-top: -8px; }
.mobile-nav-links a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.mobile-nav-links a:hover { color: var(--accent-600); }
.mobile-nav-contact {
  padding-top: 20px;
}
.mobile-nav-hours { font-size: 12px; color: var(--ink-faint); line-height: 1.7; }
.mobile-nav-phone {
  display: block;
  margin-top: 8px;
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--trust-600);
  text-decoration: none;
}

/* hero */
.hero {
  padding-top: 48px;
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 400px at 90% -5%, var(--accent-100) 0%, transparent 65%),
    radial-gradient(400px 300px at -5% 110%, var(--trust-100) 0%, transparent 65%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/cta-bg.jpg');
  background-size: 1050px auto;
  background-position: 0 0;
  background-repeat: repeat;
  animation: hero-bg-scroll 105s linear infinite;
  opacity: 1;
  z-index: 0;
  /* タイルの縦の連続感を消すため、1段おきに .hero-bg-alt(横に2/5タイルずらした複製)と互い違いに見せる */
  mask-image: repeating-linear-gradient(to bottom, #000 0, #000 282px, transparent 282px, transparent 564px);
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0, #000 282px, transparent 282px, transparent 564px);
}
.hero-bg-alt {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/cta-bg.jpg');
  background-size: 1050px auto;
  background-position: 420px 0;
  background-repeat: repeat;
  animation: hero-bg-scroll-alt 105s linear infinite;
  opacity: 1;
  z-index: 0;
  mask-image: repeating-linear-gradient(to bottom, transparent 0, transparent 282px, #000 282px, #000 564px);
  -webkit-mask-image: repeating-linear-gradient(to bottom, transparent 0, transparent 282px, #000 282px, #000 564px);
}
@keyframes hero-bg-scroll {
  from { background-position: 0 0; }
  to { background-position: -1050px 0; }
}
@keyframes hero-bg-scroll-alt {
  from { background-position: 420px 0; }
  to { background-position: -630px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-bg-alt { animation: none; }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* 左右分割オーバーレイ。左が濃く右が薄い斜め区切り */
  background: var(--bg);
  opacity: 0.94;
  clip-path: polygon(0 0, 72% 0, 64% 100%, 0 100%);
  z-index: 0;
  pointer-events: none;
}
.hero-overlay-soft {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
  display: none;
}
.hero > * { position: relative; z-index: 1; }
.hero > .hero-bg-alt { position: absolute; z-index: 0; }
.hero > .hero-overlay-soft { position: absolute; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.35; color: var(--ink); margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--text-color); box-shadow: inset 0 -0.3em 0 var(--accent-color); }
.lead em { font-style: normal; color: var(--text-color); font-weight: 700; box-shadow: inset 0 -0.3em 0 var(--accent-color); }
.hero-lead { font-size: 14px; color: var(--ink-soft); margin-top: 16px; max-width: 520px; line-height: 1.7; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-tags .badge-pill { background: var(--accent-050); color: var(--trust-700); border: 1px solid var(--accent-100); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-ctas .btn { padding: 12px 20px; font-size: 13.5px; min-height: auto; }
@media (max-width: 640px) {
  /* ヘッダー(80px, 常時透過)がページ最上部でも背景に白が見えないよう、
     ヒーローの背景をヘッダー分だけ上に伸ばして裏側に回り込ませる */
  .hero { margin-top: -80px; padding-top: 112px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 42px); margin-top: 14px; }
  .hero-lead { margin-top: 20px; }
  .hero-tags { margin-top: 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .quote-bubble { max-width: 190px; font-size: 12px; padding: 12px 14px; }
  /* モバイルは手書き指定の位置(上端50%〜下端74%)に直線の斜め区切りを1本だけ通し、
     左は濃い(strongオーバーレイ)・右は薄い(soft オーバーレイのみ)の2トーンにする */
  .hero-overlay-soft { display: block; }
  .hero::after { clip-path: polygon(0 0, 50% 0, 74% 100%, 0 100%); }
  /* たがいちがいの帯(282px周期)が薄いオーバーレイ越しに段差(上段/中段/下段)として見えてしまうため、
     モバイルでは互い違い演出をやめて1枚の連続タイルに戻す */
  .hero::before { mask-image: none; -webkit-mask-image: none; }
  .hero-bg-alt { display: none; }
}
.hero-sub-note { font-size: 12px; color: var(--ink-faint); margin-top: 12px; }

/* worries */
.worry-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.worry-list { display: flex; flex-direction: column; gap: 0; }
.worry-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border-radius: 0;
}
.worry-item:first-child { border-top: 1px solid var(--line); }
.worry-item svg { flex-shrink: 0; margin-top: 3px; }

/* approach */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.quote-stack {
  position: relative;
  min-height: 420px;
}
.quote-stack-photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 16px;
}
.quote-bubble {
  position: absolute;
  max-width: 240px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--trust-700);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.quote-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 28px;
  width: 16px;
  height: 16px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-radius: 0 0 0 4px;
}
.quote-bubble--1 { top: 6%; left: -4%; }
.quote-bubble--2 { top: 42%; right: -6%; text-align: right; }
.quote-bubble--3 { bottom: 8%; left: 6%; }
.quote-bubble--2::after { left: auto; right: 28px; clip-path: polygon(100% 0, 0 0, 100% 100%); border-radius: 0 0 4px 0; }
.material-note {
  margin-top: 40px;
  padding: 16px 20px;
  border-top: 1px solid var(--line-strong);
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: none;
}
.material-note svg { flex-shrink: 0; margin-top: 2px; }

/* course table */
.entry-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--trust-700), var(--trust-600));
  color: #fff;
  border-radius: 0;
  padding: 28px 36px;
  margin-top: 40px;
}
.entry-price-title { font-size: 13px; font-weight: 700; opacity: 0.85; }
.entry-price-note { font-size: 12px; font-weight: 600; opacity: 0.7; margin-top: 10px; }
.entry-price .amount {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--accent-color);
}
.entry-price .amount span { font-size: 14px; font-weight: 600; color: #fff; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 32px;
  align-items: stretch;
  background: var(--line);
  border: 1px solid var(--line);
}
.course-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.course-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: none;
  border-radius: 0;
  padding: 20px 14px;
  position: relative;
  box-shadow: none;
}
.course-card.is-featured {
  background: var(--accent-050);
  border-top: 3px solid var(--accent-600);
  transform: none;
  box-shadow: none;
}
.course-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent-600);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0;
  letter-spacing: 0.06em;
}
.course-name { font-size: 16px; font-weight: 700; margin-top: 8px; color: var(--ink); }
.course-for { font-size: 12px; color: var(--ink-soft); margin-top: 8px; min-height: 36px; line-height: 1.7; }
.course-price {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-color);
  margin-top: 10px;
  white-space: nowrap;
}
.course-price span { font-size: 11px; font-weight: 600; color: var(--ink-faint); margin-left: 2px; }
.course-total-amount {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  flex-wrap: nowrap;
}
.course-koma-chip {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-color);
  background: var(--accent-color);
  border-radius: 2px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.course-koma-num { font-size: 15px; }
.course-unit { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 10px; color: var(--ink-faint); flex-wrap: wrap; }
.course-unit .discount-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--trust-700);
  background: var(--trust-100);
  border-radius: 2px;
  padding: 1px 6px;
}
.course-copy {
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--trust-700);
  border-left: 2px solid var(--trust-600);
  padding-left: 8px;
  display: block;
  background: none;
  border-radius: 0;
}
.course-price-block { margin-top: auto; display: flex; flex-direction: column; }
.course-total { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.course-total-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 4px; text-transform: uppercase; }
.course-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-faint);
  padding: 2px 0;
}
.course-total-row span:last-child { font-weight: 600; color: var(--ink-soft); }
.course-total-final { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-strong); }
.course-total-final .course-price { margin-top: 0; }
.course-total-label-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.course-total-label-row .course-total-label { margin-bottom: 0; }
.course-total-original { font-size: 13px; font-weight: 600; color: var(--ink-faint); text-decoration: line-through; }
.price-note { margin-top: 16px; font-size: 12px; color: var(--ink-faint); }
.price-note--gap { margin-top: 16px; }
.level-block { margin-top: 56px; }
.level-block:first-of-type { margin-top: 32px; }
.level-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.level-badge {
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.level-unit { font-size: 12px; font-weight: 700; color: var(--ink-faint); }
.entry-price-levels { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.entry-price-level { font-size: 14px; font-weight: 700; }
.entry-price-level span {
  display: inline-block;
  background: rgb(255 255 255 / 0.18);
  border-radius: 2px;
  padding: 2px 10px;
  margin-right: 8px;
  font-size: 11px;
}
.entry-price-note-block { margin-top: 12px; }
.entry-price-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-color);
  background: var(--accent-color);
  border-radius: 2px;
  padding: 3px 12px;
}

/* set-discount banner */
.set-discount-banner {
  margin-top: 16px;
  margin-bottom: 32px;
  border-left: 4px solid var(--accent-color);
  background: var(--paper);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.set-discount-label {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--trust-700);
  background: var(--accent-color);
  padding: 5px 14px;
  white-space: nowrap;
}
.set-discount-tiers {
  display: flex;
  gap: 0;
  flex: 1;
}
.set-discount-tier {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.set-discount-tier:first-child { padding-left: 0; }
.set-discount-tier:last-child { border-right: none; }
.set-discount-tier-koma {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.set-discount-tier-rate {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--trust-700);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.set-discount-desc {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-faint);
  margin-left: auto;
}
@media (max-width: 640px) {
  /* 3段の料金がpadding込みで画面幅を超えて横はみ出しの原因になっていたため、
     モバイルは縦積みにする */
  .set-discount-tiers { flex-direction: column; gap: 10px; width: 100%; }
  .set-discount-tier {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
  }
  .set-discount-tier:last-child { border-bottom: none; padding-bottom: 0; }
  .set-discount-desc { margin-left: 0; }
}

/* other courses accordion */
.other-courses {
  margin-top: 0;
}
.other-courses-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.other-courses-note {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.other-acc { border-bottom: 1px solid var(--line); }
.other-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  gap: 12px;
}
.other-acc-trigger:hover { color: var(--trust-700); }
.other-acc-trigger.is-open { color: var(--trust-700); }
.other-acc-trigger .other-acc-icon { transition: transform 0.2s; flex-shrink: 0; }
.other-acc-trigger.is-open .other-acc-icon { transform: rotate(180deg); }
.other-acc-body { padding-bottom: 24px; }
.other-acc-body[hidden] { display: none; }
.other-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
}
.other-course-card {
  background: var(--paper);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.other-course-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.other-course-rows { display: flex; flex-direction: column; gap: 4px; }
.other-course-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.other-course-total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 2px solid var(--trust-700);
}
.other-course-koma {
  font-size: 10px;
  font-weight: 700;
  background: var(--accent-color);
  color: var(--trust-700);
  padding: 2px 6px;
  white-space: nowrap;
}
.other-course-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--trust-700);
  white-space: nowrap;
}
.other-course-price span { font-size: 11px; font-weight: 600; color: var(--ink-faint); margin-left: 1px; }
.other-discount-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--trust-700);
  background: var(--trust-100);
  border: 1px solid var(--trust-300);
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
}

/* consult examples */
.example-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}
.example-card {
  background: var(--paper);
  padding: 24px 18px;
  border-radius: 0;
  border: none;
}
.example-koma {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-600);
  border-bottom: 2px solid var(--accent-600);
  padding-bottom: 2px;
  margin-bottom: 12px;
  background: none;
  border-radius: 0;
}
.example-q { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.example-a { font-size: 12px; color: var(--ink-soft); margin-top: 10px; display: flex; gap: 6px; }
.example-cta { margin-top: 32px; text-align: center; }

/* strengths */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--line);
}
.strength-card {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}
.strength-card:last-child { border-right: none; }
.strength-title { font-size: 15px; font-weight: 700; margin-top: 16px; color: var(--ink); }
.strength-body { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.8; }

/* instructor */
/* instructor slider */
.inst-slider-wrap {
  margin-top: 40px;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.inst-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--paper);
  flex: 1;
  min-width: 0;
}
.inst-card:not(.is-active) { display: none; }
.inst-card.is-active { animation: inst-card-fade-in 0.4s ease; }
.inst-card.is-active.inst-anim-next { animation: inst-card-slide-next 0.65s ease; }
.inst-card.is-active.inst-anim-prev { animation: inst-card-slide-prev 0.65s ease; }
@keyframes inst-card-fade-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes inst-card-slide-next {
  from { opacity: 0; transform: translateX(48px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes inst-card-slide-prev {
  from { opacity: 0; transform: translateX(-48px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .inst-card.is-active,
  .inst-card.is-active.inst-anim-next,
  .inst-card.is-active.inst-anim-prev { animation: none; }
}
.inst-card-left {
  padding: 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.inst-movie-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--trust-700);
  display: flex;
  align-items: center;
  gap: 6px;
}
.inst-movie-label::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--trust-700);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.inst-movie {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.inst-movie iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.inst-movie-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-faint);
  background: var(--surface-alt);
}
.inst-hashtag-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--trust-700);
  margin-bottom: 8px;
}
.inst-hashtag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.inst-hashtag {
  font-size: 11px;
  font-weight: 600;
  color: var(--trust-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inst-card-right {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.inst-profile-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.inst-face {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.inst-face-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--trust-100);
  color: var(--trust-700);
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.inst-profile-label {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  font-style: italic;
}
.inst-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 4px;
}
.inst-name span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.inst-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inst-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--trust-700);
  border: 1px solid var(--trust-300);
  background: var(--trust-100);
  padding: 2px 10px;
  border-radius: 999px;
}
.inst-copy {
  font-size: 17px;
  font-weight: 800;
  color: var(--trust-700);
  line-height: 1.5;
  border-left: 3px solid var(--accent-color);
  padding-left: 12px;
}
.inst-bio {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.85;
}
.inst-specialties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.inst-specialty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}
.inst-specialty svg { color: var(--accent-600); flex-shrink: 0; }
.inst-card-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.inst-side-arrow {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--trust-100);
  border: 1px solid var(--line);
  color: var(--trust-700);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  align-self: stretch;
}
.inst-side-arrow-prev { border-right: none; }
.inst-side-arrow-next { border-left: none; }
.inst-side-arrow:hover { background: var(--trust-700); color: #fff; }
.inst-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-top: none;
  background: var(--surface-alt);
  padding: 10px 20px;
}
.inst-nav-dots { display: flex; gap: 6px; }
.inst-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.inst-dot.is-active { background: var(--trust-700); }

@media (max-width: 700px) {
  .inst-slider-wrap { position: relative; }
  .inst-side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgb(255 255 255 / 0.92);
    box-shadow: var(--shadow-md);
    z-index: 5;
  }
  .inst-side-arrow-prev { left: 8px; }
  .inst-side-arrow-next { right: 8px; }
  .inst-card-wrap { flex: 1 1 100%; width: 100%; }
  .inst-card { grid-template-columns: 1fr; }
  .inst-card-left { order: 2; border-right: none; border-top: 1px solid var(--line); padding: 24px; }
  .inst-card-right { order: 1; padding: 24px; }
}

/* fullpack */
.fullpack-wrap {
  background: var(--gold-100);
  border-radius: 0;
  padding: 56px 48px;
  border: none;
  border-top: 4px solid var(--gold-600);
}
.fullpack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.fullpack-badge {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-color);
  background: var(--accent-color);
  border-radius: 999px;
  padding: 9px 20px;
}
.fullpack-badge--subsidy { background: var(--trust-100); color: var(--trust-700); }
.fullpack-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fp-card {
  background: var(--paper);
  border: none;
  border-radius: 0;
  padding: 28px 24px 24px;
}
.fp-card.is-featured { background: var(--accent-050); border-top: 3px solid var(--accent-600); }
.fp-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.fp-discount-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--trust-700);
  background: var(--accent-color);
  border-radius: 2px;
  padding: 3px 10px;
  white-space: nowrap;
}
.fp-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 6px 0;
}
.fp-line .fp-val { font-weight: 600; color: var(--ink); }
.fp-val-pair { display: flex; align-items: baseline; gap: 8px; }
.fp-val-strike {
  color: var(--ink-faint);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-color: var(--ink-faint);
}
.fp-line.fp-total {
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--bg-deep);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 3px solid var(--accent-600);
}
.fp-total-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.fp-total-amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fp-save { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--trust-700); }
.fp-total-amount .fp-val {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-color);
}
.support-note {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--trust-600);
  border-radius: 0;
  padding: 20px 24px;
}
.support-note p { font-size: 13px; color: var(--ink-soft); }
.support-note p.support-note-title { font-weight: 700; color: var(--ink); }
.support-note .fine { font-size: 11px; color: var(--ink-faint); margin-top: 8px; }
@media (max-width: 640px) {
  /* 幅が狭いとアイコン分テキスト列が圧迫されるため、アイコンを枠の左上に
     重ねて配置し、テキストは枠幅いっぱいに使えるようにする */
  .support-note { position: relative; padding-top: 34px; }
  .support-note .icon-wrap {
    position: absolute;
    top: -14px;
    left: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
}

/* student */
.student-section-wrap .br-pc-only { display: inline; }
@media (max-width: 640px) {
  .student-section-wrap .br-pc-only { display: none; }
}
.student-section-wrap {
  border-radius: 24px;
  padding: 48px 48px;
  border: 1px solid var(--accent-100);
  position: relative;
  overflow: hidden;
  background-image: url('images/student-bg.jpg');
  background-size: cover;
  background-position: center;
}
.student-section-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.88) 0%, rgba(230,245,255,0.82) 100%);
  border-radius: inherit;
}
.student-section-wrap > * { position: relative; z-index: 1; }
.student-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  border: none;
  padding: 0;
  border-radius: 0;
  border-top: none;
}
.student-off {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-color);
  background: var(--accent-color);
  text-align: center;
  line-height: 1.2;
  display: inline-block;
  padding: 16px 28px;
  border-radius: 16px;
}
.student-off small { display: block; font-size: 11px; font-weight: 700; color: var(--text-color); opacity: 0.7; }
.student-off-note {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--accent-100);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

/* final cta */
.final-cta {
  background: linear-gradient(135deg, var(--trust-700), #0c4a5a);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(480px 320px at 15% 10%, rgb(1 164 214 / 0.22), transparent 70%);
}
.final-cta > * { position: relative; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgb(255 255 255 / 0.82); max-width: 560px; margin: 20px auto 0; font-size: 15px; }
.final-cta .btn-primary { margin-top: 36px; background: #fff; color: var(--trust-700); }
.final-cta .small-note { margin-top: 16px; font-size: 12px; color: rgb(255 255 255 / 0.65); }

/* mid-page CTA */
.mid-cta-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-image: url('images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
}
.mid-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(6px);
  transform: scale(1.08);
  z-index: 0;
}
.mid-cta {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
  text-align: center;
  color: #fff;
  max-width: 1120px;
  margin: 0 auto;
}
.mid-cta h2 { color: #fff; margin-top: 16px; font-size: clamp(30px, 4vw, 44px); }
.mid-cta p { color: rgb(255 255 255 / 0.85); max-width: 600px; margin: 16px auto 0; font-size: 15px; font-weight: 700; }
.mid-cta-ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.mid-cta-ctas .btn {
  width: 100%;
  font-size: 21px;
  padding: 20px 32px;
}
.mid-cta-ctas .btn-primary,
.mid-cta-ctas .btn-line {
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.2);
}
.btn-phone-number {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mid-cta-hours { margin-top: 18px; font-size: 12px; color: rgb(255 255 255 / 0.7); }
.mid-cta .small-note { margin-top: 8px; font-size: 12px; color: rgb(255 255 255 / 0.65); }

/* contact form */
.contact-form {
  margin-top: 48px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.form-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 48px auto;
  justify-content: center;
}
.form-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--line-strong);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-faint);
}
.form-step.is-active {
  background: var(--accent-600);
  border-color: var(--accent-600);
  color: #fff;
}
.form-step-arrow {
  padding: 0 16px;
  color: var(--line-strong);
  font-size: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin-bottom: 28px;
}
.form-field, .form-field-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.form-field { margin-bottom: 0; }
.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-label-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
}
.form-required {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-600);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-deep);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-600);
  background: #fff;
}
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%239FA0A0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-textarea { resize: vertical; line-height: 1.8; }
.form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/*
 * MW WP Form の [mwform_radio]/[mwform_checkbox] は各選択肢を
 * <span class="mwform-radio-field"><label><input class="..."/><span>...</span></label></span>
 * という固定マークアップで出力し、ショートコードの class 属性は内側の <input> にしか渡らない。
 * そのため外側の <label> は自作クラスではなくプラグイン固定クラスに向けてスタイルする。
 */
.mwform-radio-field label, .mwform-checkbox-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, color 0.15s;
}
.mwform-radio-field input, .mwform-checkbox-field input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mwform-radio-field label:has(input:checked),
.mwform-checkbox-field label:has(input:checked) {
  border-color: var(--accent-600);
  color: var(--accent-600);
  background: var(--accent-050);
}
/* 個人情報同意は複数選択のピルボタンではなく、通常の1個のチェックボックスとして表示する */
.form-check-group--privacy { margin-bottom: 12px; }
.form-check-group--privacy .mwform-checkbox-field label {
  padding: 0;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.form-check-group--privacy .mwform-checkbox-field input {
  position: static;
  opacity: 1;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-600);
}
.form-date-row { margin-top: 12px; }
.form-date-label { font-size: 12px; font-weight: 700; color: var(--accent-600); margin-bottom: 6px; }
.form-date-inputs { display: flex; gap: 12px; }
.form-date-wrap { position: relative; flex: 1; }
.form-input-date { width: 100%; }
.form-select-time { flex: 1; }
.form-survey { border-top: 1px solid var(--line); padding-top: 24px; }
.form-survey-block { margin-bottom: 20px; }
.form-survey-q { font-size: 13px; font-weight: 700; color: var(--accent-600); margin-bottom: 10px; }
.form-privacy-box {
  border: 1px solid var(--line-strong);
  padding: 20px 24px;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.85;
}
.form-privacy-box p { margin-top: 10px; }
.form-privacy-box p:first-of-type { margin-top: 0; }
.form-privacy-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 8px; text-align: center; }
@media print {
  /* 画面上は200pxの枠内スクロールだが、印刷時は全文が見えるように枠の制限を外す */
  .form-privacy-box {
    max-height: none;
    overflow: visible;
    border: none;
    padding: 0;
  }
  /* 【見出し】が改ページ直前で孤立しないよう、見出し段落の直後では改ページしない */
  .form-privacy-box p:has(strong) {
    break-after: avoid-page;
    page-break-after: avoid;
  }
  .form-privacy-box p {
    orphans: 3;
    widows: 3;
  }
}
.form-privacy-address { font-size: 11px; color: var(--ink-faint); text-align: right; margin-bottom: 12px; }
.form-submit { text-align: center; margin-top: 40px; }
.form-submit-btn { padding: 18px 64px; font-size: 16px; }

/*
 * jQuery UI datepicker(体験希望日)のカレンダー表示。
 * プラグイン標準は外部CDN(ajax.googleapis.com)のテーマCSSに依存しているが、
 * このCDNが応答しない(404)ため背景が透明のまま表示されてしまう。
 * 依存を無くし、テーマの配色でカレンダー自体のスタイルを用意する。
 */
#ui-datepicker-div.ui-datepicker {
  display: none; /* jQuery UI が表示時にinlineでdisplayを切り替える。既定では隠しておく */
  width: 280px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: 12px;
  font-family: inherit;
  font-size: 13px;
  z-index: 999;
}
.ui-datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 8px;
}
.ui-datepicker-prev, .ui-datepicker-next {
  cursor: pointer;
  padding: 4px 8px;
  color: var(--accent-600);
  font-weight: 700;
}
.ui-datepicker-prev.ui-state-disabled, .ui-datepicker-next.ui-state-disabled {
  opacity: 0.3;
  cursor: default;
}
.ui-datepicker-title { text-align: center; }
.ui-datepicker-calendar {
  width: 100%;
  border-collapse: collapse;
}
.ui-datepicker-calendar th {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  padding: 6px 0;
  text-align: center;
}
.ui-datepicker-calendar td {
  text-align: center;
  padding: 2px;
}
.ui-datepicker-calendar td a,
.ui-datepicker-calendar td span {
  display: block;
  padding: 6px 0;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
}
.ui-datepicker-calendar td a:hover {
  background: var(--accent-050);
  color: var(--accent-600);
}
.ui-datepicker-calendar td.ui-datepicker-today a {
  border: 1px solid var(--accent-600);
}
.ui-datepicker-calendar td span {
  color: var(--ink-faint);
}
.ui-datepicker-calendar .ui-datepicker-other-month a { color: var(--ink-faint); }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .form-date-inputs { flex-direction: column; }
  .form-steps { gap: 0; }
  .form-step { width: 70px; height: 70px; font-size: 12px; }
}

/* notice */
.news-list { margin-top: 40px; border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 8px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.news-link:hover { opacity: 0.7; }
.news-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  flex-shrink: 0;
  width: 90px;
}
.news-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.news-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
}
.news-arrow { flex-shrink: 0; color: var(--main-color); }
.news-empty { margin-top: 32px; color: var(--ink-faint); font-size: 14px; }
.news-list-cta { margin-top: 32px; text-align: right; }
.news-list-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--main-color);
  text-decoration: none;
}
.news-list-cta a:hover { color: var(--accent-500); }

@media (max-width: 640px) {
  .news-link { flex-wrap: wrap; gap: 8px 16px; padding: 18px 4px; }
  /* flex:1 のままだと折り返さずタイトル列が細く圧縮されるだけになるため、
     flex-basis:100%で強制的に改行させて日付・カテゴリの下の行に落とす */
  .news-title { flex-basis: 100%; width: 100%; order: 3; }
  .news-arrow { display: none; }
}

/* school list */
.school-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
}
.school-card {
  background: var(--paper);
  padding: 32px 28px;
}
.school-en {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-600);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.school-ja {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.school-map-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-600);
  margin-bottom: 10px;
  text-decoration: none;
}
.school-map-link:hover { color: var(--accent-500); }
.school-address {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 14px;
}
.school-zip {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.school-directions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.school-direction-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-600);
  text-decoration: none;
}
.school-direction-link:hover { color: var(--accent-500); }
.school-card-online {
  background: var(--accent-050);
  border-left: 3px solid var(--accent-600);
  display: flex;
  flex-direction: column;
}
.school-online-body {
  flex: 1;
}
.school-online-body p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 16px;
}
.school-online-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.school-online-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 900px) {
  .school-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .school-grid { grid-template-columns: 1fr; }
}

footer.site-footer {
  background: var(--dark-green);
  padding-top: 40px;
  padding-bottom: 28px;
}
.footer-top {
  display: flex;
  align-items: stretch;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}
.footer-contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  min-height: 66px;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  text-align: center;
  flex-shrink: 0;
}
.footer-contact-info { display: flex; flex-direction: column; justify-content: space-between; }
.footer-contact-hours { font-size: 13px; font-weight: 700; color: rgb(255 255 255 / 0.85); }
.br-mobile-only { display: none; }
@media (max-width: 640px) {
  .br-mobile-only { display: inline; }
}
.footer-contact-phone {
  font-family: 'Shippori Mincho', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.7;
  color: #fff;
  letter-spacing: 0.02em;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  color: #fff;
  text-align: center;
}
.footer-logo-mark { height: 48px; width: auto; }
.footer-logo span { display: block; font-size: 12px; font-weight: 600; color: rgb(255 255 255 / 0.8); margin-top: 4px; }
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 24px 0;
  border-top: 1px solid rgb(255 255 255 / 0.2);
  font-size: 13px;
}
.footer-nav a { color: rgb(255 255 255 / 0.85); text-decoration: none; letter-spacing: 0.04em; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  font-size: 11px;
  color: rgb(255 255 255 / 0.6);
  padding-top: 12px;
}
@media (max-width: 640px) {
  .footer-top {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 16px;
    column-gap: 12px;
    text-align: center;
  }
  /* お問い合わせ枠と電話番号を横並びで中央揃えにし、営業時間は下の行に単独で表示する */
  .footer-contact-info { display: contents; }
  /* 固定幅だと機種によって文字が入りきらず一文字ずつ改行してしまうため、
     幅は内容に合わせて自動にし、white-space:nowrapで行内の折り返しも起きないようにする */
  .footer-contact-box { order: 1; width: auto; min-width: 0; padding: 6px 10px; min-height: 56px; font-size: 10px; white-space: nowrap; }
  .footer-contact-phone { order: 2; font-size: 24px; }
  .footer-contact-hours { order: 3; flex-basis: 100%; text-align: center; }
  .footer-logo {
    order: 4;
    flex-basis: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

@media (max-width: 1120px) {
  .nav-cta { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .worry-intro { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  /* approach-gridが1カラムになり.quote-stackが横幅いっぱいになるため、
     デザイン上の吹き出しのはみ出し配置(-4%/-6%)がそのままだと画面外に出て
     横スクロールの原因になる。コンテナ内に収まる位置に調整する */
  .quote-bubble--1 { left: 2%; }
  .quote-bubble--2 { right: 2%; }
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .example-grid { grid-template-columns: repeat(2, 1fr); }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .strength-card { border-bottom: 1px solid var(--line); }
  .strength-card:nth-child(2n) { border-right: none; }
  .fullpack-wrap { padding: 36px 24px; }
  .fullpack-breakdown-grid { grid-template-columns: 1fr; }
  .student-section-wrap { padding: 36px 24px; border-radius: 16px; }
  .student-card { grid-template-columns: 1fr; text-align: center; }
  .container { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 640px) {
  /* 小さめのスマホだと左右の余白で窮屈に感じるため、コンテンツ幅を広げる */
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  nav.nav-links { display: none; }
  .hamburger { display: flex; }
  header.site-header { background: transparent; border-bottom: none; }
  .logo span { display: none; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .course-grid.cols-3 { grid-template-columns: 1fr; }
  .course-grid.cols-2 { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: 1fr; }
  .strength-card { border-right: none; }
  .entry-price { flex-direction: column; align-items: flex-start; }
  .hero::before {
    background-size: 800px auto;
    background-repeat: repeat;
    opacity: 0.12;
  }
  .final-cta { padding: 56px 24px; }
  .mid-cta { padding: 56px 24px; }
  .course-card.is-featured { transform: none; }
  /* 幅の狭い機種でCTAの文字がボタンからはみ出すため、モバイルはフォントサイズと余白を縮小 */
  .mid-cta-ctas .btn { font-size: 16px; padding: 16px 20px; white-space: normal; text-align: center; }
  /* ボタンはflexなのでbrは効かない。flex-basis:100%で電話番号を強制的に2行目へ落とす */
  .mid-cta-ctas .btn-phone { flex-wrap: wrap; row-gap: 2px; }
  .btn-phone-number { font-size: 22px; flex-basis: 100%; }
}

/* ============================================================
   印刷用スタイル：サイト全体をそのまま資料として印刷できるようにする
   ============================================================ */
@media print {
  @page { margin: 15mm; }

  /* セクション間の余白は画面用に大きめなので、印刷時は詰める */
  .section { padding-top: 24px !important; padding-bottom: 24px !important; }

  /* 操作用UI（クリックできないものは印刷不要）を非表示 */
  header.site-header,
  .mobile-nav-overlay,
  .mobile-nav,
  .hamburger,
  .btn,
  .footer-nav,
  .inst-nav,
  .inst-side-arrow,
  .school-map-link,
  .school-direction-link,
  .quote-bubble,
  #contact,
  #notice,
  .inst-card-left {
    display: none !important;
  }

  /* 講師スライダー：現在の1人だけでなく全員を表示し、動画ブロックを外して
     プロフィール部分だけを2人ずつ横並びにする */
  .inst-card-wrap { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
  .inst-card { display: block !important; break-inside: avoid; }
  .inst-card-right { padding: 20px !important; }
  .inst-card:not(:last-child) { border-bottom: 2px solid var(--line-strong); }

  /* その他コースのアコーディオン：折りたたみを解除して全部表示する */
  .other-acc-body[hidden] { display: block !important; }
  .other-acc-trigger { cursor: default; }
  .other-acc-trigger .other-acc-icon { display: none; }

  /* 装飾的な背景画像・オーバーレイを解除し、文字を確実に読めるようにする */
  .hero::before,
  .hero::after,
  .hero-bg-alt,
  .hero-overlay-soft,
  .mid-cta-section::before,
  .student-section-wrap::before {
    display: none !important;
  }
  .hero {
    background: #fff !important;
    margin-top: 0 !important;
    padding-top: 24px !important;
  }
  .mid-cta-section {
    background: #fff !important;
    border: 1px solid var(--line-strong);
  }
  .mid-cta,
  .mid-cta h2,
  .mid-cta p,
  .mid-cta-hours,
  .mid-cta .small-note {
    color: var(--ink) !important;
  }
  .student-section-wrap {
    background: #fff !important;
    border: 1px solid var(--accent-100);
  }
  /* 濃い背景+白文字の箇所は「背景のグラフィック」設定がオフだと文字が消えるため、
     印刷時は淡い背景+濃い文字に統一する */
  .entry-price,
  .final-cta,
  .final-cta::before,
  footer.site-footer {
    background: #fff !important;
    color: var(--ink) !important;
    border: 1px solid var(--line-strong);
  }
  .entry-price .amount,
  .entry-price .amount span,
  .final-cta h2,
  .final-cta p,
  .final-cta .small-note,
  .footer-contact-hours,
  .footer-contact-phone,
  .footer-logo,
  .footer-logo span,
  .footer-bottom {
    color: var(--ink) !important;
  }
  .footer-contact-box { border-color: var(--line-strong) !important; color: var(--ink) !important; }
  /* フッターロゴは白抜き画像のため、白背景の印刷では反転させて見えるようにする */
  .footer-logo-mark { filter: invert(1); }

  /* ページ数を抑えるため、カードの高さが揃っていて崩れにくい箇所は横並びのまま印刷する */
  .course-grid,
  .course-grid.cols-2,
  .course-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* フルパック内訳は3カードとも行構成が完全に同じで高さが揃うため3カラムのまま */
  .fullpack-breakdown-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  /* その他コースは元々auto-fillで幅に応じて自動的に並ぶため上書き不要 */
  /* example-grid / strength-grid / school-grid / approach-grid / worry-intro も
     900px用のレスポンシブ指定（2カラム等）がそのまま印刷幅にも収まるため上書きしない */

  /* カードや明細のまとまりが途中でページをまたいで割れないようにする */
  .course-card,
  .example-card,
  .fp-card,
  .inst-card,
  .school-card,
  .strength-card,
  .other-course-card,
  .student-card,
  .support-note,
  .set-discount-banner,
  .mid-cta,
  .entry-price,
  .final-cta,
  .other-acc,
  .fullpack-wrap {
    break-inside: avoid;
  }

  /* 見出し直後に大きなブロック(grid等)が続く場合、見出しをそのブロックとセットで
     改ページ回避しようとすると逆にページの大半が空白になることがあるため、
     見出し単体の孤立防止は付けない。段落のorphans/widowsのみで最低限を担保する */
  p { orphans: 3; widows: 3; }

  /* 写真が印刷だと大きすぎるため縮小する */
  .quote-stack { min-height: 0; }
  .quote-stack-photo { min-height: 0; max-height: 220px; }
}
