/* ══════════════════════════════════════════
   Manyabee 公開ページ共通スタイル
   （LP・申込フォーム・法的ページ）
   ══════════════════════════════════════════ */

:root {
  /* 猫のオレンジをアクセントに、白基調で構成 */
  --main:   #e8963a;   /* 猫の毛色オレンジ */
  --dark:   #c97a1e;
  --deep:   #3a403e;   /* 猫の輪郭のチャコール */
  --pale:   #fdf6ee;   /* ごく淡いクリーム */
  --border: #eae5dd;
  --bg:     #ffffff;

  --text:     #3a403e;
  --text-sub: #8a8580;
  --card:     #ffffff;
  --danger:   #e05a5a;
  --success:  #3aaa6e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ══ ヘッダー ══ */
.site-header {
  background: var(--deep);
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-logo {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: .02em;
}
.header-nav { display: flex; gap: 8px; align-items: center; }
.header-btn {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  transition: opacity .15s;
}
.header-btn.ghost   { color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.header-btn.primary { background: var(--main); color: var(--deep); }
.header-btn:hover   { opacity: .85; }

/* ══ レイアウト ══ */
.page-wrap {
  flex: 1;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 16px 48px;
}
.page-wrap.wide { max-width: 880px; }

.page-head { text-align: center; margin-bottom: 24px; }
.page-head h1 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--deep);
  margin-bottom: 7px;
}
.page-head p {
  font-size: .86rem;
  color: var(--text-sub);
  font-weight: 600;
  line-height: 1.8;
}

/* ══ ステップ表示 ══ */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  gap: 2px;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: .66rem;
  font-weight: 700;
  color: var(--text-sub);
  flex-shrink: 0;
}
.step-dot span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 900;
  color: var(--text-sub);
}
.step-dot.active span {
  background: var(--main);
  border-color: var(--dark);
  color: #fff;
}
.step-dot.active { color: var(--deep); }
.step-dot.done span {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.step-dot.done span::after { content: '✓'; }
.step-dot.done span { font-size: 0; }
.step-dot.done span::after { font-size: .82rem; }
.step-line {
  flex: 1;
  max-width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 2px;
  margin-bottom: 18px;
}

/* ══ カード ══ */
.card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(150,110,20,.10);
  overflow: hidden;
  margin-bottom: 18px;
}
.card-title {
  background: linear-gradient(120deg, var(--deep), var(--dark));
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .06em;
  padding: 12px 20px;
}
.card-body { padding: 22px 22px; }

/* ══ フォーム ══ */
.field { margin-bottom: 20px; }
.label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 7px;
}
.req {
  background: var(--danger);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}
.input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--text);
  background: var(--pale);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input:focus {
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(240,180,41,.2);
}
.hint {
  font-size: .74rem;
  color: var(--text-sub);
  font-weight: 600;
  line-height: 1.75;
  margin-top: 6px;
}
.hint strong { color: var(--dark); }

/* 教室ID入力 */
.id-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  background: var(--pale);
}
.id-input-wrap:focus-within {
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(240,180,41,.2);
}
.id-prefix {
  display: flex;
  align-items: center;
  padding: 0 4px 0 13px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-sub);
  white-space: nowrap;
  flex-shrink: 0;
}
.id-input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 2px;
  min-width: 0;
}
.id-status {
  font-size: .76rem;
  font-weight: 700;
  margin-top: 6px;
  min-height: 1.2em;
}
.id-status.ok       { color: var(--success); }
.id-status.err      { color: var(--danger); }
.id-status.checking { color: var(--text-sub); }

/* プラン選択 */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.plan-opt {
  position: relative;
  border: 2.5px solid var(--border);
  border-radius: 15px;
  padding: 16px 12px 14px;
  text-align: center;
  cursor: pointer;
  background: var(--pale);
  transition: all .15s;
}
.plan-opt:hover { background: #fff; }
.plan-opt.selected {
  border-color: var(--main);
  background: #fff;
  box-shadow: 0 3px 14px rgba(240,180,41,.25);
}
.plan-opt input { display: none; }
.plan-name  { font-size: .82rem; font-weight: 800; color: var(--deep); margin-bottom: 5px; }
.plan-price { font-size: 1.5rem; font-weight: 900; color: var(--dark); line-height: 1.1; }
.plan-price small { font-size: .68rem; font-weight: 700; margin-left: 2px; }
.plan-note  { font-size: .68rem; color: var(--text-sub); font-weight: 700; margin-top: 5px; }
.plan-badge {
  position: absolute; top: -9px; left: 50%;
  transform: translateX(-50%);
  background: var(--danger); color: #fff;
  font-size: .62rem; font-weight: 800;
  padding: 3px 10px; border-radius: 12px;
  white-space: nowrap;
}

/* チェックボックス */
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  line-height: 1.7;
}
.check-label input {
  width: 18px; height: 18px;
  accent-color: var(--main);
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}
.check-label a { color: var(--dark); font-weight: 700; }

/* ══ ボタン ══ */
.btn {
  padding: 13px 22px;
  border-radius: 13px;
  border: none;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}
.btn:active  { transform: scale(.98); }
.btn:disabled{ opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(120deg, var(--dark), var(--main)); color: #fff; }
.btn-square  { background: #006aff; color: #fff; }
.btn-outline { background: #fff; color: var(--text); border: 1.5px solid var(--border); }
.btn-full    { width: 100%; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading .btn-label { display: none; }
.btn.loading .spinner   { display: block; }

/* ══ メッセージ ══ */
.msg {
  font-size: .84rem;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 11px;
  margin-bottom: 14px;
  display: none;
  line-height: 1.7;
}
.msg.show { display: block; }
.msg.ok   { background: #eafaf0; color: #2a7a4a; border: 1.5px solid #a8e0bd; }
.msg.err  { background: #fdeeee; color: #c04040; border: 1.5px solid #f0bcbc; }
.msg.info { background: var(--pale); color: var(--dark); border: 1.5px solid var(--border); }

/* ══ 完了画面 ══ */
.big-icon { font-size: 3.2rem; margin-bottom: 12px; }
.done-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--deep);
  margin-bottom: 12px;
}
.done-text {
  font-size: .88rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.95;
  margin-bottom: 18px;
}
.done-text strong { color: var(--dark); }

.notice-box {
  background: var(--pale);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: .78rem;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.85;
  text-align: left;
}
.notice-box a { color: var(--dark); font-weight: 700; }

/* 情報テーブル */
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.info-table th, .info-table td {
  padding: 11px 13px;
  font-size: .84rem;
  border-bottom: 1px solid var(--pale);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.info-table th {
  background: var(--pale);
  color: var(--dark);
  font-weight: 800;
  width: 38%;
  white-space: nowrap;
}
.info-table td { font-weight: 600; word-break: break-all; }
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* ══ フッター ══ */
.site-footer {
  text-align: center;
  padding: 24px 16px 32px;
  font-size: .76rem;
  color: var(--text-sub);
  font-weight: 600;
  border-top: 1px solid var(--border);
  background: var(--pale);
}
.site-footer a {
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.site-footer span { margin: 0 8px; color: var(--border); }
.site-footer .copy { margin-top: 10px; font-size: .7rem; opacity: .8; }

/* ══ レスポンシブ ══ */
@media (max-width: 480px) {
  .page-wrap  { padding: 20px 13px 40px; }
  .card-body  { padding: 18px 17px; }
  .page-head h1 { font-size: 1.2rem; }
  .step-dot   { font-size: .6rem; }
  .step-dot span { width: 25px; height: 25px; font-size: .72rem; }
  .step-line  { max-width: 22px; margin-bottom: 17px; }
  .plan-price { font-size: 1.3rem; }
}
