/* ==========================================================
   基礎系3クラスLP v1（2026-11-20）
   デザイン仕様：ChatGPT詳細設計（2026-11-20）
   ========================================================== */
:root {
  --ivory: #F7F5F0;
  --ivory-soft: #FBFAF6;   /* クラス詳細の「淡いアイボリー」 */
  --charcoal: #20252B;
  --white: #FFFFFF;
  --basic: #526B63;        /* セージグリーン */
  --hassei: #547A9A;       /* ブルーグレー */
  --hyogen: #B86F5B;       /* テラコッタ */
  --cta: #3D5D51;          /* ディープグリーン */
  --sand: #D6A98C;         /* サンドベージュ（装飾） */
  --line-green: #06C755;
  --muted: #5B6168;
  --rule: #E4DFD6;
  --sage-pale: #E3E8E2;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--ivory); color: var(--charcoal);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 400; font-size: 15.5px; line-height: 1.8; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* スマホ固定バーの分 */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-title {
  font-size: 28px; font-weight: 700; line-height: 1.4; text-align: center; margin-bottom: 36px;
}
.section-title::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
  background: var(--sand); margin: 16px auto 0;
}

/* クラス色 */
.c-basic  { --cc: var(--basic); }
.c-hassei { --cc: var(--hassei); }
.c-hyogen { --cc: var(--hyogen); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  font-weight: 700; text-decoration: none; letter-spacing: .04em; line-height: 1.4;
  transition: transform .15s, box-shadow .15s, background-color .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(32,37,43,.16); }
.btn-lg { min-height: 60px; padding: 14px 32px; font-size: 16px; }
.btn-cta { background: var(--cta); color: var(--white); }
.btn-cta:hover { background: #33503F; }
.btn-line { background: var(--line-green); color: var(--white); }
.btn .arrow { font-size: 1.1em; }
.btn-pair { display: flex; flex-direction: column; gap: 12px; }
.btn-pair .btn { width: 100%; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 6px; }
.brand-text { font-weight: 700; font-size: 15px; }
.header-nav { display: none; }

/* ---------- 1. ヒーロー ---------- */
.hero { position: relative; overflow: hidden; background: var(--ivory); }
.hero-deco {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 0% 100%, var(--sage-pale) 0 160px, transparent 161px);
}
.hero-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 40px 20px 48px; display: grid; gap: 36px; }
.hero-badge {
  display: inline-block; background: var(--white); border-radius: 8px;
  padding: 6px 16px; font-weight: 700; font-size: 15px; box-shadow: 0 1px 0 var(--rule);
}
.hero-eyebrow { margin-top: 20px; color: var(--basic); font-weight: 500; font-size: 13px; letter-spacing: .08em; }
.hero-title { margin-top: 12px; font-size: 40px; line-height: 1.25; font-weight: 700; letter-spacing: .01em; }
.hero-rule { display: block; width: min(100%, 320px); height: 5px; border-radius: 3px; background: var(--sand); margin: 22px 0 18px; }
.hero-sub { font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chip {
  background: var(--cc); color: var(--white); font-weight: 700; font-size: 14px;
  padding: 8px 16px; border-radius: 8px; line-height: 1.4;
}
.hero-copy .btn-lg { width: 100%; max-width: 360px; }

/* 写真3枚の斜めコラージュ（上から ベーシック → 発声・滑舌 → 表現基礎） */
.hero-photos { display: grid; gap: 8px; }
.hero-photo { aspect-ratio: 16 / 7; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo.p1 { clip-path: polygon(6% 0, 100% 0, 100% 88%, 0 100%); }
.hero-photo.p2 { clip-path: polygon(0 10%, 100% 0, 100% 100%, 3% 92%); margin-top: -4%; }
.hero-photo.p3 { clip-path: polygon(3% 6%, 100% 0, 100% 100%, 0 100%); margin-top: -3%; }

/* 写真が届くまでの仮枠 */
.photo-slot { position: relative; background: var(--cc, var(--basic)); }
.hero-photo.p1 { --cc: var(--basic); }
.hero-photo.p2 { --cc: var(--hassei); }
.hero-photo.p3 { --cc: var(--hyogen); }
.photo-slot.is-missing img { display: none; }
.photo-slot.is-missing { opacity: .55; }
.photo-slot.is-missing::after {
  content: attr(data-label) "（差し替え待ち）"; position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 8px;
  color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .04em;
}

/* ---------- 2. 導入 ---------- */
.intro { background: var(--white); }
.intro-cards { display: grid; gap: 16px; }
.intro-card {
  display: block; text-decoration: none; background: var(--ivory); border-radius: 12px;
  padding: 24px 22px 20px; border-top: 6px solid var(--cc);
  transition: transform .15s, box-shadow .15s;
}
.intro-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(32,37,43,.08); }
.intro-kind { color: var(--cc); font-weight: 700; font-size: 20px; line-height: 1.4; }
.intro-class { margin-top: 4px; font-weight: 700; font-size: 15px; }
.intro-text { margin-top: 10px; }
.intro-more { display: inline-flex; gap: 6px; margin-top: 14px; color: var(--cc); font-weight: 700; font-size: 14px; }

/* ---------- 3. 早見表 ---------- */
.compare-table-wrap { display: none; }
.compare-cards { display: grid; gap: 14px; }
.compare-card {
  display: block; text-decoration: none; background: var(--white); border-radius: 12px;
  overflow: hidden; box-shadow: 0 1px 0 var(--rule);
}
.cc-name { background: var(--cc); color: var(--white); font-weight: 700; font-size: 17px; padding: 10px 18px; }
.compare-card dl { padding: 6px 18px 12px; }
.compare-card dl > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.compare-card dl > div:last-child { border-bottom: 0; }
.compare-card dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.status { display: inline-block; font-weight: 700; font-size: 13.5px; padding: 2px 10px; border-radius: 6px; line-height: 1.6; }
.s-new  { background: #E5ECE9; color: var(--basic); }
.s-full { background: #E6ECF2; color: var(--hassei); }
.s-open { background: #F5E6E0; color: var(--hyogen); }

/* ---------- 4. クラス詳細 ---------- */
.class-detail { padding: 64px 0; }
.bg-white { background: var(--white); }
.bg-ivory { background: var(--ivory-soft); }
.keyvisual { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 32px; }
.keyvisual img { width: 100%; height: 100%; object-fit: contain; } /* 文字入り画像なので切らずに全体を表示 */
.class-head { max-width: 760px; margin: 0 auto 28px; }
.class-kind {
  display: inline-block; background: var(--cc); color: var(--white); font-weight: 700; font-size: 13px;
  padding: 4px 12px; border-radius: 6px;
}
.class-name { margin-top: 12px; font-size: 28px; line-height: 1.35; font-weight: 700; color: var(--cc); }
.class-teacher-line { margin-top: 4px; color: var(--muted); font-size: 14px; }
.class-catch {
  margin-top: 18px; font-size: 20px; font-weight: 700; line-height: 1.6;
  padding-left: 16px; border-left: 4px solid var(--sand);
}
.prose { max-width: 760px; margin: 0 auto; }
.prose p + p, .prose p + .prose-sub, .prose ul + p { margin-top: 1.1em; }
.prose-sub { font-size: 19px; font-weight: 700; margin: 1.6em 0 .5em; color: var(--cc); line-height: 1.5; }
.check-list { display: grid; gap: 6px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--cc); border-bottom: 2.5px solid var(--cc); transform: rotate(-45deg);
}

.info-box {
  max-width: 760px; margin: 36px auto 0; background: var(--ivory); border-radius: 12px;
  padding: 8px 20px; border-left: 6px solid var(--cc);
}
.bg-ivory .info-box { background: var(--white); }
.info-row { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.info-row:last-child { border-bottom: 0; }
.info-label { font-size: 13.5px; font-weight: 700; color: var(--cc); margin-bottom: 6px; letter-spacing: .06em; }
.info-list { display: grid; gap: 6px; }
.info-list li { position: relative; padding-left: 14px; }
.info-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--cc); }
.info-list li.note { font-size: 13px; color: var(--muted); }
.info-list li.note::before { display: none; }
.info-list li.strong { font-weight: 700; color: var(--hassei); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--white); border: 1.5px solid var(--cc); color: var(--cc); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; }
.bg-ivory .tags li { background: var(--ivory-soft); }

.class-cta { max-width: 760px; margin: 28px auto 0; text-align: center; }
.class-cta > .btn { width: 100%; max-width: 420px; }
.cta-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* 講師紹介 */
.teacher { max-width: 960px; margin: 48px auto 0; padding-top: 40px; border-top: 1px solid var(--rule); }
.teacher-heading { font-size: 19px; font-weight: 700; color: var(--cc); margin-bottom: 20px; }
.teacher-top { display: grid; gap: 20px; }
.teacher-photo { width: 200px; height: auto; border-radius: 10px; } /* 元画像のまま・縦横比維持 */
.teacher-name { font-size: 24px; font-weight: 700; line-height: 1.4; }
.teacher-aff { display: inline-block; margin-left: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.teacher-sub { font-size: 14px; font-weight: 700; color: var(--cc); margin: 16px 0 6px; letter-spacing: .06em; }
.teacher-works { margin-top: 12px; }
.works { display: grid; gap: 14px; font-size: 14.5px; line-height: 1.85; }
.works dt { display: inline-block; font-weight: 700; font-size: 13px; color: var(--white); background: var(--cc); padding: 1px 10px; border-radius: 4px; margin-bottom: 4px; }
.teacher-message {
  margin-top: 32px; background: var(--ivory); border-radius: 12px; padding: 8px 22px 22px; position: relative;
}
.bg-ivory .teacher-message { background: var(--white); }
.teacher-message .teacher-sub { margin-top: 18px; }
.teacher-message p + p { margin-top: .9em; }

/* ---------- 5. 見学・体験 ---------- */
.visit { background: var(--white); }
.visit-list { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.visit-item { background: var(--ivory); border-radius: 10px; padding: 16px 20px; border-left: 6px solid var(--cc); }
.visit-class { font-weight: 700; color: var(--cc); }
.visit-text a { color: var(--cc); font-weight: 700; }
.visit-lead { text-align: center; margin: 28px 0 20px; font-weight: 700; }
.btn-pair.center { max-width: 760px; margin: 0 auto; }

/* ---------- 6. お申込みの流れ ---------- */
.flow-steps { display: grid; gap: 14px; max-width: 960px; margin: 0 auto; }
.flow-steps li {
  position: relative; background: var(--white); border-radius: 12px; padding: 18px 20px 18px 76px; min-height: 76px;
  display: flex; flex-direction: column; justify-content: center;
}
.step-no {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--cta); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.step-title { font-weight: 700; font-size: 17px; }
.step-text { font-size: 14px; color: var(--muted); }

/* ---------- 7. フッター ---------- */
.site-footer { background: var(--charcoal); color: #E9E6DF; padding: 48px 0 40px; }
.footer-inner { display: grid; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 6px; }
.footer-name { font-weight: 700; font-size: 17px; color: var(--white); }
.footer-address { font-style: normal; font-size: 14.5px; }
.footer-address a { color: inherit; }
.footer-link a { color: var(--sand); font-weight: 700; text-decoration: none; }
.footer-link a:hover { text-decoration: underline; }
.footer-note { font-size: 12.5px; color: #B9B5AD; }
.copyright { font-size: 12px; color: #8E8A83; margin-top: 8px; }

/* ---------- スマホ固定CTAバー ---------- */
.fixed-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(32,37,43,.96);
}
.fixed-cta {
  flex: 1; display: grid; place-items: center; min-height: 50px; border-radius: 999px;
  background: var(--cta); color: var(--white); font-weight: 700; text-decoration: none; font-size: 15px; letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,.25);
}
.fixed-line {
  flex: 0 0 72px; display: grid; place-items: center; min-height: 50px; border-radius: 999px;
  background: var(--line-green); color: var(--white); font-weight: 700; font-size: 13px; text-decoration: none; letter-spacing: .04em;
}

/* ==========================================================
   タブレット以上
   ========================================================== */
@media (min-width: 640px) {
  body { font-size: 16px; }
  .btn-pair { flex-direction: row; justify-content: center; }
  .btn-pair .btn { width: auto; flex: 1; }
  .teacher-top { grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
  .teacher-photo { width: 220px; }
  .teacher-main .teacher-sub:first-of-type { margin-top: 14px; }
}

@media (min-width: 768px) {
  .compare-table-wrap { display: block; }
  .compare-cards { display: none; }
  .compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 var(--rule); }
  .compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
  .compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
  .compare-table thead th { color: var(--white); font-size: 17px; background: var(--charcoal); }
  .compare-table thead .th-basic  { background: var(--basic); }
  .compare-table thead .th-hassei { background: var(--hassei); }
  .compare-table thead .th-hyogen { background: var(--hyogen); }
  .compare-table tbody th { width: 9em; color: var(--muted); font-weight: 700; font-size: 14px; background: #FBFAF7; }
  .intro-cards { grid-template-columns: repeat(3, 1fr); }
  .visit-list { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .flow-steps { grid-template-columns: repeat(4, 1fr); }
  .flow-steps li { padding: 64px 18px 20px; text-align: center; justify-content: flex-start; }
  .step-no { left: 50%; top: 14px; transform: translateX(-50%); }
}

/* ==========================================================
   PC
   ========================================================== */
@media (min-width: 1024px) {
  body { font-size: 16.5px; padding-bottom: 0; }
  html { scroll-padding-top: 80px; }
  .fixed-bar { display: none; }

  .header-inner { padding: 12px 32px; }
  .brand img { width: 44px; height: 44px; }
  .header-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
  .header-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
  .header-nav a:hover { border-color: var(--sand); }

  .section { padding: 96px 0; }
  .section-title { font-size: 40px; margin-bottom: 52px; }
  .container { padding: 0 32px; }

  .hero-deco {
    background:
      radial-gradient(circle at 0% 100%, var(--sage-pale) 0 280px, transparent 281px),
      linear-gradient(115deg, transparent 0 52%, var(--sage-pale) 52% 62%, transparent 62%);
  }
  .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; padding: 56px 32px 72px; min-height: 640px; }
  .hero-title { font-size: clamp(56px, 4.9vw, 72px); line-height: 1.2; margin-top: 18px; white-space: nowrap; }
  .hero-eyebrow { margin-top: 28px; font-size: 14px; }
  .hero-sub { font-size: 19px; }
  .chip { font-size: 16px; padding: 10px 20px; }
  .chips { gap: 12px; margin: 28px 0 40px; }
  .hero-copy .btn-lg { width: auto; min-width: 340px; min-height: 68px; font-size: 18px; }
  .hero-photos { gap: 10px; }
  .hero-photo { aspect-ratio: 16 / 7.2; }
  .hero-photo.p1 { clip-path: polygon(12% 0, 100% 0, 100% 86%, 4% 100%); }
  .hero-photo.p2 { clip-path: polygon(0 12%, 100% 0, 100% 100%, 2% 90%); }
  .hero-photo.p3 { clip-path: polygon(2% 8%, 100% 0, 100% 100%, 0 100%); }

  .intro-card { padding: 30px 28px 24px; }
  .intro-kind { font-size: 24px; }

  .class-detail { padding: 104px 0; }
  .keyvisual { max-width: 960px; margin: 0 auto 48px; }
  .class-kind { font-size: 14px; }
  .class-name { font-size: 38px; }
  .class-catch { font-size: 24px; }
  .prose-sub { font-size: 22px; }
  .info-box { padding: 12px 32px; }
  .info-row { display: grid; grid-template-columns: 8em 1fr; gap: 16px; align-items: start; }
  .info-label { margin: 0; padding-top: 2px; }

  .teacher { margin-top: 72px; padding-top: 56px; }
  .teacher-heading { font-size: 24px; }
  .teacher-top { grid-template-columns: 260px 1fr; gap: 40px; }
  .teacher-photo { width: 260px; }
  .teacher-name { font-size: 30px; }
  .works dt { margin-bottom: 6px; }
  .teacher-message { padding: 12px 40px 32px; }
  .teacher-message p { font-size: 17px; max-width: 760px; }

  .footer-inner { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .footer-brand, .copyright { grid-column: 1 / -1; }
}

/* ヒーロー写真の見せる位置（講師が切れないように） */
.hero-photo.p1 img { object-position: 50% 50%; }
.hero-photo.p2 img { object-position: 50% 40%; }
.hero-photo.p3 img { object-position: 50% 58%; }

/* 公式LINEは相談専用（申込はフォームだけ） */
.consult { max-width: 760px; margin: 28px auto 0; padding-top: 24px; border-top: 1px dashed var(--rule); text-align: center; }
.consult-text { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.consult .btn { min-height: 46px; font-size: 14.5px; }
.fixed-line { flex: 0 0 auto; padding: 0 16px; }
