/*
 * adapt-teach v2 — 土台・ヘッダー・共通パーツ
 */

* { box-sizing: border-box; }

/* 土台。body側とmain側の両方に当てている。
   body のクラス付与が何らかの理由で外れても、main（.teach-lp）だけで
   地色・書体が成立するようにしておく（本番で一度これに引っかかった）。 */
body.page-template-page-teach {
  margin: 0;
  background: var(--c-page);
  color: var(--c-text);
  font-family: var(--font-ja);
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
/* body のクラスが付かなかったときの余白詰め。
   :has が使えないブラウザではこの1行だけが無視される（他は壊れない）。 */
body:has(.teach-lp) { margin: 0; }

.teach-lp {
  margin: 0;
  background: var(--c-page);
  color: var(--c-text);
  font-family: var(--font-ja);
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

/* リンクの下線はヘッダー・本文とも既定で外す。
   セレクタは意図的に .lp-footer__links a などと同じ強さに留める
   （これより強くすると、濃色面の上で色を上書きしてリンクが見えなくなる）。 */
.lp-header a,
.teach-lp a { color: var(--c-navy); text-decoration: none; }
.lp-header a:hover,
.teach-lp a:hover { color: var(--c-navy-soft); }
.teach-lp img { max-width: 100%; }

/* ── セクションの器 ── */
.lp-section { max-width: var(--w-body); margin: 0 auto; padding: 96px var(--pad-x) 88px; }
.lp-section--text   { max-width: var(--w-text); text-align: center; padding-bottom: 88px; }
.lp-section--narrow { max-width: var(--w-narrow); }
.lp-section--wide   { max-width: var(--w-wide); }
.lp-section__head   { text-align: center; }

/* 交互に敷く砂色の帯 */
.lp-band { background: var(--c-surface); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.lp-band--last { border-bottom: 0; }
.lp-band__inner { max-width: var(--w-body); margin: 0 auto; padding: 80px var(--pad-x) 88px; text-align: center; }
.lp-band__inner--main { max-width: var(--w-main); }

/* ── 見出し ── */
.lp-heading {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: .14em;
  color: var(--c-navy);
}
.lp-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--c-navy-soft);
  margin-bottom: 28px;
}
.lp-label--loose { margin-bottom: 44px; }
.lp-lead { font-size: 14px; color: var(--c-text-body); margin: 0 0 44px; line-height: 2; }

/* ── CTAボタン ── */
.lp-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: 999px;
  padding: 15px 36px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background .2s ease;
}
.lp-cta-button:hover { background: var(--c-accent-hover); color: var(--c-white); }

/* ── ヘッダー ── */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(249, 246, 240, .9);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--c-navy);
}
.lp-header__inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 22px;
}
.lp-header__brand { display: flex; flex-direction: column; gap: 2px; }
.lp-header__eyebrow { font-size: 10.5px; color: var(--c-muted); letter-spacing: .04em; }
.lp-header__logo-row { display: flex; align-items: baseline; gap: 6px; }
.lp-header__logo { height: 22px; width: auto; }
.lp-header__slug { font-family: var(--font-en); font-size: 19px; color: var(--c-navy); }
.lp-header__spacer { flex: 1; }
.lp-header__nav { display: flex; align-items: center; gap: 26px; }
.lp-header__nav a { font-size: 14px; font-weight: 500; }

/* ── 濃色パネル（ヒーロー・還元率・最終CTA共通の下地） ── */
.lp-panel {
  position: relative;
  overflow: hidden;
  background: var(--c-navy);
  color: var(--c-cream);
}
.lp-panel__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(249, 246, 240, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(249, 246, 240, .06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 20px 10px;
}
.lp-panel__body { position: relative; }

/* ── レスポンシブ ── */
@media (max-width: 900px) {
  .lp-section, .lp-band__inner { padding-left: 20px; padding-right: 20px; }
  .lp-header__inner { padding-left: 20px; padding-right: 20px; }
  .lp-header__nav { display: none; }
}
@media (max-width: 640px) {
  .lp-section { padding-top: 64px; padding-bottom: 60px; }
  .lp-band__inner { padding-top: 56px; padding-bottom: 60px; }
  .lp-heading { font-size: 21px; letter-spacing: .1em; }
}
