/* nippon-planet.com トップページのスタイル。色は :root の変数だけを直せば全体が変わる */
:root {
  --bg: #fffaf2;
  --card: #ffffff;
  --ink: #1f2a44;
  --muted: #566176;
  --line: #f0e6d3;
  --coral: #f0563a;
  --coral-d: #d9432a;      /* ボタン用（白文字が読める濃さ） */
  --coral-shadow: #a8321f;
  --coral-soft: #ffe9e3;
  --teal: #0e9f95;
  --teal-d: #0a7a72;
  --teal-soft: #ddf4f1;
  --yellow: #ffcf4a;
  --yellow-soft: #fff3cc;
  --sky: #4a90e2;
  --sky-soft: #e4efff;
  --line-green: #078a3f;
  --radius: 20px;
  --shadow: 0 2px 0 rgba(31, 42, 68, .04), 0 12px 30px rgba(31, 42, 68, .08);
  --font: "Prompt", "Zen Maru Gothic", system-ui, -apple-system, "Segoe UI", "Hiragino Maru Gothic ProN",
    "Yu Gothic UI", "Leelawadee UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
}
:lang(th) body, body:lang(th) { line-height: 1.9; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .lead { word-break: auto-phrase; }

h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 700; text-wrap: balance; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.5; }
p { margin: 0; }
a { color: var(--teal-d); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.stack { display: grid; gap: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.center { justify-content: center; }
.prose { white-space: pre-line; }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 250, 242, .94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 10px 18px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--coral-d); }
.lang { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; background: var(--card); padding: 2px; }
.lang button { border: 0; background: none; padding: 4px 11px; border-radius: 999px; cursor: pointer; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 820px) { .nav { display: none; } }
@media (max-width: 420px) { .brand span { font-size: 1rem; } .lang button { padding: 4px 8px; } }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; border: 0;
  font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.4; text-align: center;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn-accent { background: var(--coral-d); color: #fff; box-shadow: 0 4px 0 var(--coral-shadow); }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 4px 0 #055c2a; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.btn-sm { padding: 7px 18px; font-size: .92rem; }
.btn-lg { padding: 14px 30px; font-size: 1.08rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } html { scroll-behavior: auto; } }

/* ---- ヒーロー ---- */
.hero { padding: clamp(28px, 6vw, 64px) 0 clamp(20px, 4vw, 40px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: center; }
.kicker {
  display: inline-block; background: var(--teal-soft); color: var(--teal-d);
  font-weight: 600; font-size: .9rem; padding: 4px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 1.1rem + 4.2vw, 3.5rem); font-weight: 700; }
:lang(ja) .hero h1 { font-weight: 900; }
.marker {                       /* 蛍光ペンで引いたような下線 */
  background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .1em;
}
.hero .lead { margin-top: 18px; max-width: 34em; color: var(--muted); font-size: 1.08rem; }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: .88rem; }
.hero-art { position: relative; width: 100%; max-width: 330px; justify-self: center; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.hero-art::before { width: 46%; aspect-ratio: 1; background: var(--yellow); left: -14%; bottom: -6%; }
.hero-art::after { width: 22%; aspect-ratio: 1; background: var(--teal); right: -8%; top: -5%; }
.mascot {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  border-radius: 28px; border: 6px solid #fff; box-shadow: var(--shadow); transform: rotate(3deg);
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  /* スマホではマスコットを右上に小さく置き、見出しがすぐ見えるようにする */
  .hero-art { order: -1; max-width: 132px; justify-self: end; margin: -8px 6px -18px 0; }
  .hero-art::before { left: auto; right: -10%; bottom: -8%; width: 40%; }   /* 黄色い丸が見出し側に出ないよう右下へ */
  .hero-copy { position: relative; z-index: 2; }
  .mascot { border-width: 4px; border-radius: 20px; }
}

/* スマホでは、ヘッダーの申し込みボタンの代わりに画面下へ固定のボタンを出す */
.sticky-cta { display: none; }
@media (max-width: 600px) {
  .header-cta { display: none; }
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 250, 242, .96); border-top: 2px solid var(--line);
  }
  .sticky-cta .btn { width: 100%; }
  body { padding-bottom: 76px; }
}

/* ---- セクション ---- */
.section { padding: clamp(36px, 6vw, 64px) 0; }
.band { background: var(--yellow-soft); border-block: 2px solid var(--line); }
.title { display: flex; align-items: center; gap: 12px; font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 24px; }
.dots { flex: none; width: 44px; height: 12px;
  background:
    radial-gradient(circle at 6px 6px, var(--coral) 6px, transparent 6.5px),
    radial-gradient(circle at 22px 6px, var(--yellow) 6px, transparent 6.5px),
    radial-gradient(circle at 38px 6px, var(--teal) 6px, transparent 6.5px);
}

.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
.card h2 { font-size: 1.25rem; margin-bottom: 10px; }
.card h3 { font-size: 1.05rem; margin-bottom: 4px; }

/* クラスのカード：左に内容、右に日程 */
.course-card { display: grid; gap: 24px 32px; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); border-top: 8px solid var(--coral); }
.course-main { display: grid; gap: 14px; align-content: start; }
.course-main h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
.course-main .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.course-side { background: var(--sky-soft); border-radius: 16px; padding: 20px; align-self: start; }
.course-side h4 { margin: 0 0 12px; font-size: .95rem; color: var(--ink); font-weight: 700; }
@media (max-width: 760px) { .course-card { grid-template-columns: 1fr; } }
.schedule ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.schedule li { display: grid; background: #fff; border-radius: 12px; padding: 10px 14px; }
.schedule .date { font-weight: 600; }
.schedule .hours { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }

.tag { display: inline-block; padding: 3px 13px; border-radius: 999px; background: var(--sky-soft); color: #1d4f91; font-size: .9rem; font-weight: 600; }
.tag-price { background: var(--coral-soft); color: #9b2a16; }
.tag-ok { background: var(--teal-soft); color: var(--teal-d); }
.tag-off { background: #ece8df; color: var(--muted); }

/* こんな人におすすめ */
.who { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) { .who { grid-template-columns: 1fr; } }
.who li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-weight: 500; }
.check { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); position: relative; margin-top: 1px; }
.check::after { content: ""; position: absolute; left: 10px; top: 6px; width: 8px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.who li:nth-child(4n+2) .check { background: var(--coral); }
.who li:nth-child(4n+3) .check { background: var(--sky); }
.who li:nth-child(4n+4) .check { background: #e0a100; }

/* 流れ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 24px 22px 22px; position: relative; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--coral); color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 12px;
}
.steps li:nth-child(2)::before { background: var(--teal); }
.steps li:nth-child(3)::before { background: var(--sky); }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin-top: 6px; }

.two-col { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.faq details { border-top: 2px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; padding-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 8px; color: var(--muted); }

.cta-band { text-align: center; padding: clamp(44px, 7vw, 80px) 0; background: var(--teal-soft); border-top: 2px solid var(--line); }
.cta-band h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin-bottom: 22px; }

.site-footer { padding: 22px 0 36px; color: var(--muted); font-size: .9rem; text-align: center; background: var(--teal-soft); }
