/* ============================================================
   /machicon-first/ 街コン初参加ガイド
   ------------------------------------------------------------
   ・配色は恋愛偏差値診断（/love-score/）と同じ「黒＋赤／金」に統一。
     変数名だけ mf- 接頭辞で持ち直して、既存CSSと衝突させない。
   ・読み物が長いページなので、暗い背景でも読めるよう
     本文は 0.95rem / 行間 1.9 / 文字色は明るめのクリームにしている。
   ・320px から崩れないこと（仕様§12・AC-09）
   ・タップ領域は最低44px（仕様§12）
   ============================================================ */

:root {
  --mf-red: #D93025;
  --mf-red-dark: #A81C13;
  --mf-orange: #FF7A18;
  --mf-gold: #E9A82C;
  --mf-gold-light: #FFD873;
  --mf-cream: #FFF6EC;
  --mf-dim: rgba(255, 246, 236, 0.72);
  --mf-dim-2: rgba(255, 246, 236, 0.48);
  --mf-black: #14070A;
  --mf-panel: rgba(255, 246, 236, 0.06);
  --mf-panel-2: rgba(255, 246, 236, 0.09);
  --mf-line: rgba(255, 246, 236, 0.16);
  --mf-green: #4FD08A;
  --mf-paper: #FFFBF4;
  --mf-ink: #2A1710;
  --mf-max: 720px;
  --mf-radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--mf-cream);
  background: var(--mf-black);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 122, 24, 0.30), transparent 60%),
    radial-gradient(90% 60% at 50% 110%, rgba(217, 48, 37, 0.28), transparent 62%);
  background-attachment: fixed;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
}

a { color: var(--mf-gold-light); }
img { max-width: 100%; height: auto; }
.mos-img { display: block; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55)); }

:focus-visible {
  outline: 3px solid var(--mf-gold);
  outline-offset: 2px;
}

/* ============================================================
   共通ナビ（全ページ共通。dojo / love-score にも同じ形で入れている）
   ============================================================ */
.mf-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 7, 10, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--mf-line);
}
.mf-head-in {
  max-width: var(--mf-max);
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mf-logo {
  font-weight: 900;
  font-size: 1rem;
  color: var(--mf-cream);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 8px 2px;
}
.mf-logo span { color: var(--mf-gold-light); }

.mf-sitenav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mf-sitenav::-webkit-scrollbar { display: none; }
.mf-sitenav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  background: var(--mf-panel);
  color: var(--mf-cream);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.mf-sitenav a:hover, .mf-sitenav a:focus-visible {
  border-color: var(--mf-gold);
  color: var(--mf-gold-light);
}
.mf-sitenav a[aria-current="page"] {
  background: linear-gradient(180deg, var(--mf-red), var(--mf-red-dark));
  border-color: transparent;
  color: #FFF;
}

/* ---------- パンくず ---------- */
.mf-crumb {
  max-width: var(--mf-max);
  margin: 0 auto;
  padding: 10px 16px 0;
  font-size: 0.72rem;
  color: var(--mf-dim-2);
}
.mf-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; }
.mf-crumb li + li::before { content: "›"; margin-right: 5px; color: var(--mf-dim-2); }
.mf-crumb a { color: var(--mf-dim); text-decoration: none; }

/* ---------- 本体 ---------- */
.mf-wrap {
  max-width: var(--mf-max);
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ============================================================
   ファーストビュー
   ============================================================ */
.mf-hero { padding: 18px 0 20px; text-align: center; }

.mf-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(233, 168, 44, 0.16);
  border: 1px solid rgba(233, 168, 44, 0.5);
  color: var(--mf-gold-light);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.mf-h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.5rem, 7.4vw, 2.35rem);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}
.mf-h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--mf-gold-light), var(--mf-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mf-lead {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--mf-dim);
}
.mf-lead b { color: var(--mf-gold-light); }

.mf-heromos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.mf-mos { flex: 0 0 auto; line-height: 0; }
.mf-mos svg { display: block; }

.mf-bubble {
  position: relative;
  margin: 0;
  padding: 12px 14px;
  background: var(--mf-paper);
  color: var(--mf-ink);
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.65;
  text-align: left;
  max-width: 17rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.mf-bubble::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 22px;
  border: 6px solid transparent;
  border-right-color: var(--mf-paper);
}

/* ---------- ボタン ---------- */
.mf-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  max-width: 27rem;
}
.mf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.45;
  transition: transform 0.1s ease, filter 0.15s ease;
}
.mf-btn:active { transform: translateY(3px); }
.mf-btn-main {
  background: linear-gradient(180deg, var(--mf-red), var(--mf-red-dark));
  color: #FFF;
  box-shadow: 0 5px 0 #7A130C, 0 10px 26px rgba(217, 48, 37, 0.4);
}
.mf-btn-main:active { box-shadow: 0 2px 0 #7A130C; }
.mf-btn-main:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
.mf-btn-sub {
  background: var(--mf-panel-2);
  color: var(--mf-cream);
  border: 2px solid var(--mf-line);
}
.mf-btn-sub:hover, .mf-btn-sub:focus-visible { border-color: var(--mf-gold); color: var(--mf-gold-light); }
.mf-btn-line { background: #06C755; color: #FFF; box-shadow: 0 5px 0 #04913E; }
.mf-btn-line:active { box-shadow: 0 2px 0 #04913E; }

.mf-note {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: var(--mf-dim-2);
  text-align: center;
}

/* ============================================================
   診断
   ============================================================ */
.mf-quiz, .mf-result { margin: 16px 0 28px; scroll-margin-top: 64px; }

.mf-timer {
  position: sticky;
  top: 56px;
  z-index: 20;
  margin: 0 -16px 12px;
  padding: 10px 16px 12px;
  background: linear-gradient(180deg, rgba(20, 7, 10, 0.97) 72%, rgba(20, 7, 10, 0));
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mf-timer-bar {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 246, 236, 0.14);
  overflow: hidden;
}
.mf-timer-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mf-gold-light), var(--mf-orange));
  transition: width 0.1s linear;
}
.mf-timer-num {
  flex: 0 0 auto;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  min-width: 3.6rem;
  text-align: right;
  color: var(--mf-gold-light);
}
.mf-timer-num b { font-size: 1.7rem; line-height: 1; }
.mf-timer-num span { font-size: 0.78rem; color: var(--mf-dim); margin-left: 3px; }

.mf-timer[data-phase="warn"] .mf-timer-num { color: var(--mf-orange); }
.mf-timer[data-phase="danger"] .mf-timer-num { color: #FF9A3C; }
.mf-timer[data-phase="danger"] .mf-timer-bar span,
.mf-timer[data-phase="critical"] .mf-timer-bar span { background: var(--mf-orange); }
.mf-timer[data-phase="critical"] .mf-timer-num { color: #FF5A44; }
.mf-timer[data-phase="critical"] .mf-timer-num b { animation: mf-tick 0.5s steps(2) infinite; }

@keyframes mf-tick {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

.mf-progress { margin: 0 0 4px; font-size: 0.8rem; color: var(--mf-dim-2); letter-spacing: 0.06em; }
.mf-progress b { color: var(--mf-gold-light); font-size: 1rem; }
.mf-progress-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 246, 236, 0.14);
  overflow: hidden;
  margin: 0 0 16px;
}
.mf-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mf-gold), var(--mf-orange));
  transition: width 0.25s ease;
}

.mf-q {
  background: var(--mf-panel);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  padding: 18px 14px;
}
.mf-q-text {
  margin: 0 0 16px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.7;
}
.mf-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mf-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 2px solid var(--mf-line);
  background: rgba(255, 246, 236, 0.05);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mf-cream);
  text-align: left;
  cursor: pointer;
  line-height: 1.55;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.1s ease;
}
.mf-opt:hover, .mf-opt:focus-visible {
  border-color: var(--mf-gold);
  background: rgba(233, 168, 44, 0.12);
}
.mf-opt:active { transform: scale(0.985); }
.mf-opt-mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--mf-line);
  background: rgba(255, 246, 236, 0.08);
}
.mf-opt:hover .mf-opt-mark { border-color: var(--mf-gold); }
.mf-opt-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

.mf-back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 14px auto 0;
  padding: 0 16px;
  background: none;
  border: 0;
  color: var(--mf-dim);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.mf-timeup {
  background: rgba(255, 122, 24, 0.12);
  border: 2px solid rgba(255, 122, 24, 0.5);
  border-radius: var(--mf-radius);
  padding: 22px 16px;
  text-align: center;
}
.mf-timeup p { margin: 0; }
.mf-timeup b { color: var(--mf-gold-light); font-size: 1.1rem; }
.mf-timeup-note { margin-top: 6px !important; font-size: 0.85rem; color: var(--mf-dim); }

/* ============================================================
   結果
   ============================================================ */
.mf-res-card {
  background: var(--mf-panel);
  border: 1px solid var(--mf-line);
  border-top: 5px solid var(--mf-green);
  border-radius: var(--mf-radius);
  padding: 20px 14px 22px;
}
.mf-res-card[data-level="mid"] { border-top-color: var(--mf-gold); }
.mf-res-card[data-level="high"] { border-top-color: var(--mf-red); }
.mf-res-eyebrow { margin: 0; font-size: 0.76rem; color: var(--mf-dim-2); font-weight: 700; letter-spacing: 0.08em; }
.mf-res-title {
  margin: 4px 0 6px;
  font-size: clamp(1.5rem, 7vw, 2.1rem);
  font-weight: 900;
  line-height: 1.3;
  background: linear-gradient(180deg, var(--mf-gold-light), var(--mf-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mf-res-sub { margin: 0 0 12px; font-size: 0.82rem; color: var(--mf-dim-2); }
.mf-res-mos {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 16px;
}
.mf-res-mos .mf-bubble { flex: 1 1 auto; max-width: none; }
.mf-res-summary { margin: 0 0 18px; font-size: 0.95rem; color: var(--mf-cream); }

.mf-res-h3 {
  margin: 20px 0 8px;
  font-size: 0.98rem;
  font-weight: 900;
  padding-left: 10px;
  border-left: 4px solid var(--mf-gold);
  line-height: 1.5;
  color: var(--mf-gold-light);
}
.mf-res-advice { margin: 0; padding-left: 1.2em; font-size: 0.92rem; color: var(--mf-dim); }
.mf-res-advice li { margin-bottom: 6px; }

.mf-bars { list-style: none; margin: 0; padding: 0; }
.mf-bars li {
  display: grid;
  grid-template-columns: minmax(0, 7.5rem) 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 0.82rem;
  color: var(--mf-dim);
}
.mf-bar-label { overflow-wrap: anywhere; }
.mf-bar { height: 8px; border-radius: 999px; background: rgba(255, 246, 236, 0.14); overflow: hidden; }
.mf-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mf-gold), var(--mf-orange)); }
.mf-bar-num { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--mf-cream); }
.mf-bar-num small { color: var(--mf-dim-2); font-weight: 400; }

.mf-res-note {
  margin: 16px 0 0;
  padding: 10px 12px;
  background: rgba(255, 246, 236, 0.05);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--mf-dim);
}
.mf-res-card .mf-cta-group { margin-top: 20px; }
.mf-res-disclaimer {
  margin: 16px 0 0;
  font-size: 0.72rem;
  color: var(--mf-dim-2);
  text-align: center;
}

/* ============================================================
   読み物セクション
   ============================================================ */
.mf-sec { margin: 36px 0 0; }
.mf-h2 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 5.4vw, 1.55rem);
  font-weight: 900;
  line-height: 1.45;
  padding-left: 12px;
  border-left: 5px solid var(--mf-red);
  color: var(--mf-cream);
}
.mf-p { margin: 0 0 16px; font-size: 0.93rem; color: var(--mf-dim); }
.mf-caution { margin: 14px 0 0; font-size: 0.78rem; color: var(--mf-dim-2); }

/* 当日の流れ */
.mf-flow { list-style: none; margin: 0; padding: 0; }
.mf-flow li {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--mf-panel);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  margin-bottom: 9px;
}
.mf-flow-icon { flex: 0 0 auto; font-size: 1.4rem; line-height: 1.5; }
.mf-flow h3 { margin: 0 0 3px; font-size: 0.98rem; font-weight: 900; color: var(--mf-gold-light); }
.mf-flow p { margin: 0; font-size: 0.89rem; color: var(--mf-dim); }
.mf-flow b { color: var(--mf-cream); }

/* よくある不安 */
.mf-worry-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.mf-card {
  background: var(--mf-panel);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  padding: 14px;
}
.mf-card h3 { margin: 0 0 5px; font-size: 0.95rem; font-weight: 900; color: var(--mf-gold-light); }
.mf-card p { margin: 0; font-size: 0.88rem; color: var(--mf-dim); }

/* コース */
.mf-course-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mf-course {
  display: block;
  background: var(--mf-panel);
  border: 2px solid var(--mf-line);
  border-radius: var(--mf-radius);
  padding: 16px 14px;
  text-decoration: none;
  color: var(--mf-cream);
  transition: border-color 0.15s ease;
}
.mf-course:hover, .mf-course:focus-visible { border-color: var(--mf-gold); }
.mf-course-beginner { border-color: rgba(79, 208, 138, 0.45); }
.mf-course-practical { border-color: rgba(217, 48, 37, 0.5); }
.mf-course-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: rgba(79, 208, 138, 0.16);
  color: var(--mf-green);
}
.mf-course-practical .mf-course-tag { background: rgba(255, 122, 24, 0.16); color: var(--mf-gold-light); }
.mf-course h3 { margin: 8px 0 6px; font-size: 1.15rem; font-weight: 900; }
.mf-course > p { margin: 0 0 10px; font-size: 0.88rem; color: var(--mf-dim); }
.mf-course ul { margin: 0 0 14px; padding-left: 1.1em; font-size: 0.82rem; color: var(--mf-dim-2); }
.mf-course-go {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  font-weight: 900;
  background: var(--mf-green);
  color: #06210F;
}
.mf-course-practical .mf-course-go {
  background: linear-gradient(180deg, var(--mf-red), var(--mf-red-dark));
  color: #FFF;
}

/* イベント */
.mf-region-lead { margin: 0 0 8px; font-size: 0.85rem; font-weight: 700; color: var(--mf-dim); }
.mf-regions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.mf-region {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 10px 14px;
  background: var(--mf-panel);
  border: 2px solid var(--mf-line);
  border-radius: 13px;
  text-decoration: none;
  color: var(--mf-cream);
  font-weight: 900;
}
.mf-region:hover, .mf-region:focus-visible { border-color: var(--mf-gold); }
.mf-region-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--mf-green);
  background: rgba(79, 208, 138, 0.14);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.mf-event-empty {
  background: var(--mf-panel);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  padding: 16px;
  text-align: center;
}
.mf-event-empty p { margin: 0 0 12px; font-size: 0.9rem; color: var(--mf-dim); }

/* FAQ */
.mf-faq details {
  background: var(--mf-panel);
  border: 1px solid var(--mf-line);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.mf-faq details[open] { border-color: rgba(233, 168, 44, 0.45); }
.mf-faq summary {
  padding: 13px 14px;
  min-height: 44px;
  font-weight: 900;
  font-size: 0.93rem;
  cursor: pointer;
  line-height: 1.55;
  color: var(--mf-gold-light);
}
.mf-faq p { margin: 0; padding: 0 14px 14px; font-size: 0.88rem; color: var(--mf-dim); }

/* フッター */
.mf-foot {
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--mf-line);
  text-align: center;
  font-size: 0.78rem;
  color: var(--mf-dim-2);
}
.mf-foot p { margin: 0 0 6px; }
.mf-foot a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 8px;
  color: var(--mf-dim);
}
.mf-foot-note { font-size: 0.72rem; line-height: 1.7; }

/* ---------- 広い画面 ---------- */
@media (min-width: 700px) {
  .mf-worry-grid { grid-template-columns: 1fr 1fr; }
  .mf-course-grid { grid-template-columns: 1fr 1fr; }
  .mf-regions { grid-template-columns: 1fr 1fr; }
  .mf-cta-group { flex-direction: row; max-width: none; justify-content: center; }
  .mf-cta-group .mf-btn { flex: 1 1 0; max-width: 21rem; }
}

/* ---------- 極小画面（320px） ---------- */
@media (max-width: 359px) {
  body { font-size: 15px; }
  .mf-wrap { padding-left: 12px; padding-right: 12px; }
  .mf-bubble { max-width: 100%; }
  .mf-bars li { grid-template-columns: minmax(0, 5.5rem) 1fr auto; }
  .mf-sitenav a { padding: 0 9px; font-size: 0.72rem; }
  .mf-logo { font-size: 0.9rem; }
  .mf-opt { font-size: 0.9rem; padding: 10px 12px; }
}

/* MOST主催の導線が1本だけのときは、大きなボタンとして見せる
   （.mf-region の見た目に負けないよう、ボタン側を優先する） */
.mf-btn.mf-region {
  background: linear-gradient(180deg, var(--mf-red), var(--mf-red-dark));
  color: #FFF;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 5px 0 #7A130C, 0 10px 26px rgba(217, 48, 37, 0.4);
  font-weight: 900;
}
.mf-btn.mf-region:hover, .mf-btn.mf-region:focus-visible { border: 0; }
.mf-btn.mf-region:active { box-shadow: 0 2px 0 #7A130C; }

/* ============================================================
   v1.2：診断前はファーストビューだけ／MOSTのサポート
   ============================================================ */

/* 診断後コンテンツ。hidden が付いている間は完全に出さない */
#mf-after[hidden] { display: none !important; }
#mf-after { animation: mf-after-in 0.35s ease both; }
@keyframes mf-after-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* H1の区切り。読み上げでは「｜」を無理に読ませたくないので幅を持たせない */
.mf-h1-sep { display: none; }

/* 読み込みに失敗したときの案内 */
.mf-error {
  margin: 14px auto 0;
  max-width: 27rem;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(217, 48, 37, 0.14);
  border: 1px solid rgba(217, 48, 37, 0.55);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--mf-cream);
  text-align: left;
}
.mf-reload {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 900;
  color: var(--mf-gold-light);
  text-decoration: underline;
  cursor: pointer;
}

/* MOSTのサポート */
.mf-support { list-style: none; margin: 0; padding: 0; }
.mf-support li {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--mf-panel);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  margin-bottom: 9px;
}
.mf-support-icon { flex: 0 0 auto; font-size: 1.35rem; line-height: 1.5; }
.mf-support h3 { margin: 0 0 3px; font-size: 0.96rem; font-weight: 900; color: var(--mf-gold-light); }
.mf-support p { margin: 0; font-size: 0.88rem; color: var(--mf-dim); }

@media (min-width: 700px) {
  .mf-support { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .mf-support li { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #mf-after { animation: none; }
}

/* 再訪時の「前回の診断結果」。今回の結果と見分けがつくように控えめにする */
.mf-res-back { border-top-color: var(--mf-gold); }

/* ページ内リンクで飛んだとき、固定ヘッダーに見出しが隠れないようにする */
.mf-sec { scroll-margin-top: 64px; }

/* ============================================================
   初参加特典（2026-08-20 追加）
   ------------------------------------------------------------
   「はじめての街コン」のすぐ下に置く、一番読ませたい行。
   ページ背景が暗いので、金枠＋濃い赤の帯でしっかり浮かせる。
   ★金額は太く大きく。注意書きだけ小さくして、主従をはっきりさせる。
   ============================================================ */
.mf-gift {
  margin: 14px auto 4px;
  max-width: 30em;
  padding: 13px 14px 11px;
  border-radius: 16px;
  border: 2px solid var(--mf-gold-light);
  background: linear-gradient(165deg, #8C1B22 0%, #B3341B 55%, #8C1B22 100%);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 26px rgba(255, 122, 24, 0.35);
  text-align: center;
}
/* ★3行に分けて組む。1行に流すと「…プレゼント中／！！」のように
   中途半端な位置で折り返してしまうため、行の切れ目をこちらで決める。 */
.mf-gift-main {
  margin: 0;
  font-size: clamp(1.02rem, 4.6vw, 1.32rem);
  font-weight: 900;
  line-height: 1.42;
  color: var(--mf-cream);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.mf-gift-main > span { display: block; }
/* 金額だけさらに大きく、金色で。1行を占有させる */
.mf-gift-main em {
  font-style: normal;
  display: block;
  font-size: 1.24em;
  line-height: 1.3;
  color: var(--mf-gold-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.mf-gift-note {
  margin: 7px 0 0;
  font-size: 0.74rem;
  line-height: 1.6;
  color: rgba(255, 246, 236, 0.85);
}
@media (max-width: 420px) {
  .mf-gift { padding: 12px 11px 10px; }
}
