/* =========================================================
   Mnet Smart+ サービス終了のお知らせ
   レスポンシブ（最大幅 720px）
   ========================================================= */

:root {
  --max-width: 720px;
  --c-navy: #1f3864;
  --c-navy-light: #2e4f8f;
  --c-red: #c0392b;
  --c-red-bg: #fdecea;
  --c-green: #2e7d32;
  --c-green-bg: #e8f5e9;
  --c-amber: #b26a00;
  --c-amber-bg: #fff4e0;
  --c-text: #222;
  --c-muted: #666;
  --c-line: #e3e6ec;
  --c-bg: #f5f6f8;
  --radius: 12px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  padding-bottom: 80px; /* sticky CTA 分 */
}

a { color: var(--c-navy-light); }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; }
p { margin: 0 0 0.8em; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- ヘッダー / フッター ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}
.site-header .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  height: 52px;
  align-items: center;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-sub { font-size: 12px; color: var(--c-red); font-weight: 700; }
.hero-excl { display: inline-block; font-size: 13px; font-weight: 700; color: var(--c-muted); margin: 2px 0 6px; }
.tl-em { display: inline-block; margin: 4px 0; padding: 4px 8px; background: var(--c-green-bg); color: var(--c-green); border-radius: 6px; font-weight: 700; }
.tl-em.warn { background: var(--c-red-bg); color: var(--c-red); }
.footer-links { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-links a { color: var(--c-muted); font-size: 12px; }
.points-notes { margin-top: 14px; padding: 14px 16px; background: var(--c-bg); border-radius: 10px; border: 1px solid var(--c-line); }
.points-notes h3 { font-size: 14px; color: var(--c-navy); margin: 0 0 8px; }
.points-notes ul { margin: 0; padding-left: 1.2em; font-size: 13.5px; }
.points-notes li { margin-bottom: 6px; }
.points-notes li:last-child { margin-bottom: 0; }
.fc-notice { display: block; margin: 16px 0; padding: 20px 56px 20px 24px; background: var(--c-green-bg); border: 2px solid var(--c-green); border-left-width: 8px; border-radius: var(--radius); text-decoration: none; color: var(--c-text); position: relative; }
.fc-notice:hover { box-shadow: 0 4px 14px rgba(46, 125, 50, .18); background: #e1f2e2; }
.fc-notice::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--c-green); border-right: 3px solid var(--c-green); transform: translateY(-50%) rotate(45deg); }
.fc-notice-badge { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--c-green); padding: 3px 12px; border-radius: 999px; margin-bottom: 8px; }
.fc-notice-title { display: block; font-size: 18px; font-weight: 700; color: var(--c-navy); line-height: 1.4; }
.fc-notice-text { display: block; font-size: 13.5px; color: #333; margin-top: 6px; }
.fc-notice-text u { color: var(--c-green); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
@media (min-width: 480px) { .fc-notice-title { font-size: 20px; } }

.site-footer {
  margin-top: 32px;
  padding: 20px 0;
  font-size: 12px;
  color: var(--c-muted);
  text-align: center;
}

/* ---------- ヒーロー ---------- */
.hero {
  background: #fff;
  margin: 16px 0 20px;
  padding: 28px 20px 24px;
  border-radius: var(--radius);
  border-top: 6px solid var(--c-red);
  text-align: center;
}
.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-red);
  background: var(--c-red-bg);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--c-navy);
}
.hero-date {
  display: inline-block;
  font-size: 26px;
  color: var(--c-red);
  margin: 6px 0;
}
.hero-lead {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--c-muted);
}
.countdown {
  margin: 20px auto 0;
  padding: 14px 18px 12px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-bg);
  display: inline-block;
  min-width: 260px;
}
.countdown-label { font-size: 13px; color: var(--c-muted); margin-bottom: 6px; }
.countdown-units {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.cd-num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.cd-unit:first-child .cd-num { color: var(--c-red); }
.cd-label { font-size: 11px; color: var(--c-muted); margin-top: 4px; }
.cd-sep { font-size: 26px; font-weight: 700; color: #b8bcc6; line-height: 1; padding-top: 2px; }
.countdown-over { display: none; font-size: 18px; font-weight: 700; color: var(--c-red); }
.countdown.is-over .countdown-units,
.countdown.is-over .countdown-label { display: none; }
.countdown.is-over .countdown-over { display: block; }

/* ---------- 返金不可の警告（ヒーロー直下） ---------- */
.alert-refund {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--c-red);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.5;
}
.alert-refund p { margin: 0; }
.alert-refund strong { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.alert-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-red);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 返金不可（料金セクション内） ---------- */
.notice-danger {
  margin-top: 14px;
  padding: 16px;
  border: 2px solid var(--c-red);
  border-radius: 10px;
  background: var(--c-red-bg);
  font-size: 14px;
}
.notice-danger-title {
  font-size: 17px;
  color: var(--c-red);
  margin-bottom: 8px;
  padding-left: 28px;
  position: relative;
}
.notice-danger-title::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-red);
  color: #fff;
  font-size: 15px;
  text-align: center;
  line-height: 22px;
}
.notice-danger p { margin: 0 0 10px; }
.notice-danger .example {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
}
.notice-danger .example-label {
  flex: 0 0 auto;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--c-red);
  padding: 2px 8px;
  border-radius: 4px;
}
.notice-danger .example ul { list-style: none; font-size: 13.5px; }
.notice-danger .example li + li { margin-top: 4px; }
.notice-danger .example strong { color: var(--c-red); }
.notice-danger-foot { margin: 0 !important; font-size: 13.5px; }

/* ---------- セクション共通 ---------- */
.section {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 18px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 18px;
  color: var(--c-navy);
  padding-left: 12px;
  border-left: 4px solid var(--c-navy);
  margin-bottom: 16px;
}
.section-lead { color: var(--c-muted); font-size: 14px; }
.inline-link { font-weight: 700; text-decoration: underline; }
.note { font-size: 12.5px; color: var(--c-muted); margin-top: 10px; }
.small { font-size: 12.5px; color: var(--c-muted); font-weight: 400; }

/* ---------- 3つのポイント ---------- */
.points { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.point {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
}
.point-num {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.point-body h3 { font-size: 15.5px; margin-bottom: 4px; }
.point-body h3 em { font-style: normal; color: var(--c-red); }
.point-body p { font-size: 14px; margin: 0; color: #333; }

/* ---------- タイムライン ---------- */
.timeline { list-style: none; position: relative; padding-left: 4px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--c-line);
}
.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 18px 32px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-navy);
}
.timeline-item.is-end::before { border-color: var(--c-red); background: var(--c-red); }
.timeline-item:last-child { padding-bottom: 0; }
.tl-date { font-weight: 700; color: var(--c-navy); font-size: 14px; }
.timeline-item.is-end .tl-date { color: var(--c-red); }
.tl-body strong { display: block; font-size: 15px; }
.tl-body span { display: block; font-size: 13.5px; color: var(--c-muted); }

/* ---------- ご案内メールの配信予定 ---------- */
.mail-plan {
  margin-top: 18px;
  padding: 14px 14px 12px;
  border: 1px dashed var(--c-line);
  border-radius: 10px;
  background: var(--c-bg);
}
.mail-plan-title { font-size: 14.5px; color: var(--c-navy); margin-bottom: 6px; }
.mail-plan-lead { font-size: 13px; color: var(--c-muted); margin-bottom: 10px; }
.mail-plan-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mail-plan-list li { display: flex; gap: 10px; font-size: 13.5px; align-items: flex-start; }
.mp-date { flex: 0 0 120px; font-weight: 700; color: var(--c-navy); }
.mp-text small { display: block; font-size: 12px; color: var(--c-muted); margin-top: 2px; }
@media (max-width: 420px) {
  .mail-plan-list li { flex-direction: column; gap: 2px; }
  .mp-date { flex: none; }
}

/* ---------- 12月のご利用料金 ---------- */
.notice-grid { display: flex; flex-direction: column; gap: 12px; }
.notice-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--c-bg);
}
.notice-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.notice-icon.ok { background: var(--c-green); }
.notice-icon.ng { background: var(--c-red); }
.notice-icon.new { background: var(--c-navy); }
.notice-item h3 { font-size: 15px; margin-bottom: 4px; }
.notice-item p { font-size: 14px; margin: 0; }
.notice-warn {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--c-amber-bg);
  border-left: 4px solid var(--c-amber);
  font-size: 13.5px;
}
.notice-warn p { margin: 0; }

/* ---------- タブ ---------- */
.tab-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.tab-btn {
  flex: 1 1 0;
  padding: 10px 6px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-bg);
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tab-btn small { display: block; font-size: 10.5px; font-weight: 400; margin-top: 3px; }
.tab-btn.is-active {
  background: var(--c-navy);
  color: #fff;
  border-color: var(--c-navy);
}
.tab-panel { display: none; padding: 4px 2px; }
.tab-panel.is-active { display: block; }
.tab-panel h4 { font-size: 15px; margin: 14px 0 8px; color: var(--c-navy); }
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.badge-ok { background: var(--c-green-bg); color: var(--c-green); }
.badge-warn { background: var(--c-red-bg); color: var(--c-red); }

.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 8px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 12px 10px 44px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  font-size: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 14px 36px 14px 28px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-text);
  position: relative;
  cursor: pointer;
}
.faq-q::before {
  content: "Q";
  position: absolute;
  left: 2px;
  top: 13px;
  color: var(--c-navy);
  font-weight: 700;
}
.faq-q::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq-item.is-open .faq-q::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { display: none; padding: 0 12px 14px 28px; font-size: 14px; color: #333; position: relative; }
.faq-a::before {
  content: "A";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--c-red);
  font-weight: 700;
}
.faq-a p { margin: 0; }

/* ---------- お問い合わせ ---------- */
.contact-info {
  padding: 18px 14px;
  background: var(--c-bg);
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
}
.contact-name { font-weight: 700; margin-bottom: 10px; }
.btn-contact {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 13px 16px;
  background: var(--c-navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
}
.btn-contact:hover { background: var(--c-navy-light); }
.contact-hours { margin: 12px 0 0; font-size: 14px; }
.contact-info .note { margin: 4px 0 0; }
.contact-closing { margin-top: 14px; font-size: 14px; color: var(--c-muted); text-align: center; }

/* ---------- 固定CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: calc(100% - var(--gutter) * 2);
  max-width: calc(var(--max-width) - var(--gutter) * 2);
  padding: 14px;
  background: var(--c-red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 10;
}
.sticky-cta.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- 480px 以上 ---------- */
@media (min-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: 36px 32px 30px; }
  .hero-title { font-size: 24px; }
  .hero-date { font-size: 36px; }
  .section { padding: 26px 24px; }
  .notice-grid { flex-direction: row; flex-wrap: wrap; }
  .notice-item { flex: 1 1 calc(50% - 6px); flex-direction: column; }
  .tab-btn { font-size: 15px; }
  .tab-btn small { font-size: 11.5px; }
}

/* ---------- 720px 以上：中央に固定 ---------- */
@media (min-width: 720px) {
  .hero-title { font-size: 26px; }
  .hero-date { font-size: 40px; }
}

@media print {
  .sticky-cta { display: none; }
  .tab-panel { display: block !important; }
  .faq-a { display: block !important; }
  body { background: #fff; padding-bottom: 0; }
}
