/* ============================================
   1級建築士 即日採点サービス LP
   Mobile first / 淡青・紺アクセント（事前告知版）
   ============================================ */

:root {
  --color-bg: #eef4fb;
  --color-bg-soft: #dde9f8;
  --color-bg-muted: #e3edf9;
  --color-surface: #ffffff;
  --color-text: #14283f;
  --color-text-muted: #4c5f78;
  --color-nav: #123a68;
  --color-link: #1d6fd1;
  --color-shimmer: #4fc3f7;
  --color-suitei: #4338ca;
  --color-suitei-light: #818cf8;
  --color-accent-orange: #f59e0b;
  --color-accent-orange-light: #fbbf24;
  --color-accent-orange-hover: #d97706;
  --color-accent-orange-dark: #b45309;
  --color-cta-ippan: #f59e0b;
  --color-cta-ippan-hover: #fbbf24;
  --color-cta-ippan-active: #ea8c06;
  --color-cta-jukou: #b45309;
  --color-cta-jukou-active: #92400e;
  --color-accent-red: #c62828;
  --color-cta-gold: #d4af37;
  --radius: 8px;
  --shadow-soft: 0 4px 14px rgba(18, 58, 104, 0.1);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(18, 58, 104, 0.08);
  --header-height: 64px;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
  overflow: visible;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-link);
}

.text-red {
  color: var(--color-accent-red);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 10px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ----- ヘッダー ----- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(18, 58, 104, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 4px;
  min-height: var(--header-height);
}

.site-header__logo-link {
  display: inline-flex;
  text-decoration: none;
}

.site-header__logo {
  display: block;
  width: auto;
  max-height: 32px;
  height: auto;
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .site-header__logo {
    max-height: 52px;
  }
}

.site-header__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-nav);
  line-height: 1.3;
  text-align: right;
}

@media (min-width: 768px) {
  .site-header__title {
    font-size: 1.1rem;
  }
}

/* ----- ボタン ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 10px 20px;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent-orange);
  color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn--primary:hover {
  background: var(--color-accent-orange-hover);
  color: #fff;
}

.btn--secondary {
  background: var(--color-link);
  color: #fff;
  box-shadow: 0 3px 12px rgba(29, 111, 209, 0.28);
}

.btn--secondary:hover {
  background: #1558a8;
  color: #fff;
}

.btn--accent {
  background: var(--color-accent-orange);
  color: #fff;
  width: 100%;
  max-width: 280px;
}

.btn--accent:hover {
  background: #fbbf24;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-nav);
  border-color: rgba(18, 58, 104, 0.28);
}

.btn--outline:hover {
  background: var(--color-bg-soft);
  border-color: var(--color-nav);
  color: var(--color-nav);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1.15rem;
}

/* MV フック文言：グラデーションシマー＋光彩パルス */
@keyframes mv-cta-hook-shimmer {
  0%,
  100% {
    background-position: 120% center;
  }
  50% {
    background-position: -20% center;
  }
}

@keyframes mv-cta-hook-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.7)) drop-shadow(0 0 18px rgba(79, 195, 247, 0.4));
  }
}

@keyframes mv-cta-hook-glow-gold {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.75)) drop-shadow(0 0 18px rgba(217, 119, 6, 0.4));
  }
}

@keyframes cta-ippan-glow-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 6px rgba(245, 158, 11, 0.4),
      0 6px 0 var(--color-cta-ippan-active),
      0 12px 28px rgba(245, 158, 11, 0.32);
  }
  50% {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 10px rgba(245, 158, 11, 0.52),
      0 6px 0 var(--color-cta-ippan-active),
      0 16px 36px rgba(245, 158, 11, 0.42);
  }
}

/* 事前公開版：採点結果配信開始告知ブロック（青系） */
.pre-announce {
  margin: 0;
  padding: 20px calc(10px + env(safe-area-inset-right, 0px)) 20px calc(10px + env(safe-area-inset-left, 0px));
  text-align: center;
  background: linear-gradient(135deg, #0a2548 0%, var(--color-nav) 42%, #1d6fd1 100%);
  color: #fff;
  border-top: 3px solid rgba(79, 195, 247, 0.55);
  border-bottom: 3px solid rgba(79, 195, 247, 0.55);
}

.pre-announce--mv {
  padding-bottom: 24px;
}

.pre-announce--inline {
  margin: 32px 0;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(18, 58, 104, 0.28);
  border: 2px solid rgba(79, 195, 247, 0.5);
}

.pre-announce .mv__countdown {
  padding: 0;
  background: transparent;
}

.pre-announce .mv__countdown-inner {
  flex-direction: column;
  gap: 0.2em;
  font-size: clamp(1.55rem, 4.2vw, 2.1rem);
  font-weight: 900;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  animation: none;
  filter: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.pre-announce .mv__countdown-inner::after {
  display: none;
}

.pre-announce .mv__countdown-line {
  display: block;
}

.pre-announce .mv__countdown-line--date {
  color: #fbbf24;
  -webkit-text-fill-color: #fbbf24;
  font-size: clamp(2.1rem, 6.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(251, 191, 36, 0.45);
}

.pre-announce .mv__countdown.is-counting .mv__countdown-inner,
.pre-announce .mv__countdown.is-live .mv__countdown-inner {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.pre-announce .mv__countdown.is-counting .mv__countdown-min,
.pre-announce .mv__countdown-min {
  color: #fbbf24;
  -webkit-text-fill-color: #fbbf24;
}

.pre-announce__bookmark {
  margin: 14px 0 0;
  font-size: clamp(1.08rem, 2.8vw, 1.38rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.05em;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

@media (min-width: 768px) {
  .pre-announce {
    padding: 24px 28px;
  }

  .pre-announce--mv {
    padding-bottom: 28px;
  }

  .pre-announce .mv__countdown-inner {
    flex-direction: column;
    font-size: 2.1rem;
  }

  .pre-announce .mv__countdown-line {
    display: block;
  }

  .pre-announce .mv__countdown-line--date {
    font-size: 3.2rem;
  }

  .pre-announce__bookmark {
    font-size: 1.38rem;
  }
}

/* 旧ブックマークモーダル（未使用・後方互換のため残置） */
.bookmark-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 26, 46, 0.55);
}

.bookmark-modal.is-open {
  display: flex;
}

.bookmark-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bookmark-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-nav);
  font-size: 1.1rem;
  cursor: pointer;
}

.bookmark-modal__title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-nav);
  text-align: center;
}

.bookmark-modal__list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
}

.bookmark-modal__list li {
  margin-bottom: 10px;
}

.bookmark-modal__list li:last-child {
  margin-bottom: 0;
}

/* MV 直下メインCTA：一般生・受講生の2ボタン（試験当日に活性化） */
.cta-btn-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 25px;
  width: 100%;
}

.cta-btn-row .btn--mv-cta {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.floating-cta .cta-btn-row {
  flex-direction: row;
  flex-wrap: nowrap;
}

.floating-cta .cta-btn-row .btn--floating-cta {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
}

.cta-btn__label {
  --cta-v-half: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--color-nav);
}

.cta-btn__label::after {
  content: "";
  display: block;
  width: 100%;
  height: 12px;
  margin-top: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M0 2L12 10L24 2' stroke='%23f59e0b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center 2px / calc(var(--cta-v-half) * 2) 10px no-repeat,
    linear-gradient(var(--color-accent-orange), var(--color-accent-orange)) 0 2px / calc(50% - var(--cta-v-half)) 2px no-repeat,
    linear-gradient(var(--color-accent-orange), var(--color-accent-orange)) 100% 2px / calc(50% - var(--cta-v-half)) 2px no-repeat;
}

.btn--mv-cta {
  flex: 1 1 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 62px;
  padding: 14px 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 3px solid transparent;
  text-align: center;
  line-height: 1.3;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn--cta-ippan {
  color: #fff;
  background-color: var(--color-cta-ippan);
  border-color: var(--color-cta-ippan-active);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(245, 158, 11, 0.4),
    0 6px 0 var(--color-cta-ippan-active),
    0 12px 28px rgba(245, 158, 11, 0.32);
  animation: cta-ippan-glow-pulse 2.2s ease-in-out infinite;
}

.btn--cta-jukou {
  color: #fff;
  background-color: var(--color-cta-ippan);
  border-color: var(--color-cta-ippan-active);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(245, 158, 11, 0.4),
    0 6px 0 var(--color-cta-ippan-active),
    0 12px 28px rgba(245, 158, 11, 0.32);
  animation: cta-ippan-glow-pulse 2.2s ease-in-out infinite;
}

.btn--cta-ippan:hover,
.btn--cta-ippan:focus-visible,
.btn--cta-jukou:hover,
.btn--cta-jukou:focus-visible {
  color: #fff;
  background-color: var(--color-cta-ippan-hover);
  border-color: var(--color-cta-ippan);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 8px rgba(251, 191, 36, 0.48),
    0 8px 0 var(--color-cta-ippan-active),
    0 16px 32px rgba(245, 158, 11, 0.38);
}

.btn--cta-ippan:active,
.btn--cta-jukou:active {
  transform: translateY(2px);
  background-color: var(--color-cta-ippan-active);
  border-color: var(--color-cta-ippan);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(234, 140, 6, 0.35),
    0 3px 0 var(--color-cta-ippan-active),
    0 8px 18px rgba(245, 158, 11, 0.28);
}

.btn--mv-cta[aria-disabled="true"] {
  opacity: 0.62;
  cursor: not-allowed;
  animation: none !important;
}

.btn--mv-cta[aria-disabled="true"]:hover {
  transform: none;
}

@media (min-width: 768px) {
  .btn--mv-cta {
    min-height: 70px;
    padding: 18px 28px;
    font-size: 1.85rem;
  }

  .cta-btn__label {
    font-size: 1.6rem;
  }

  .cta-btn-row {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 30px;
  }

  .cta-btn-row .btn--mv-cta,
  .cta-btn-row .btn--floating-cta {
    flex: 1 1 0;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mv__countdown-inner {
    animation: none;
    filter: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--color-nav);
    -webkit-text-fill-color: currentColor;
  }

  .mv__countdown-inner::after {
    display: none;
  }

  .mv__countdown.is-scheduled .mv__countdown-line {
    animation: none;
    filter: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #d97706;
    -webkit-text-fill-color: #d97706;
  }

  .mv__countdown.is-scheduled .mv__countdown-line--date {
    color: #b45309;
    -webkit-text-fill-color: #b45309;
  }

  .pre-announce .mv__countdown.is-scheduled .mv__countdown-line,
  .pre-announce .mv__countdown.is-counting .mv__countdown-line {
    animation: none;
    filter: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #fff;
    -webkit-text-fill-color: #fff;
  }

  .pre-announce .mv__countdown.is-scheduled .mv__countdown-line--date,
  .pre-announce .mv__countdown.is-counting .mv__countdown-line--date {
    color: #fbbf24;
    -webkit-text-fill-color: #fbbf24;
  }

  .mv__countdown.is-counting .mv__countdown-inner {
    color: #d97706;
    -webkit-text-fill-color: #d97706;
  }

  .btn--cta-ippan,
  .btn--cta-jukou,
  .btn--floating-cta.btn--cta-ippan,
  .btn--floating-cta.btn--cta-jukou {
    animation: none;
  }
}

/* ----- MV（メインビジュアル画像） ----- */
.mv {
  position: relative;
  background: var(--color-bg-soft);
}

.mv-fv {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

.mv__media {
  width: 100%;
  overflow: hidden;
}

.mv__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 899 / 989;
  object-fit: cover;
}

.mv__title {
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: inherit;
}

.mv__title picture {
  display: block;
  width: 100%;
}

@media (min-width: 768px) {
  .mv {
    display: flex;
    flex-direction: column;
  }

  .mv__media {
    flex-shrink: 0;
    width: 100%;
  }

  .mv__media img {
    aspect-ratio: 1920 / 600;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
  }
}

/* ----- カウントダウン ----- */
.mv__countdown {
  margin: 0;
  padding: 10px 6px 0;
  text-align: center;
  background: var(--color-bg);
}

.mv__countdown-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  overflow: hidden;
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.03em;
  background: linear-gradient(
    105deg,
    var(--color-nav) 0%,
    var(--color-nav) 38%,
    var(--color-shimmer) 46%,
    #fbbf24 50%,
    var(--color-shimmer) 54%,
    var(--color-nav) 62%,
    var(--color-nav) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: mv-cta-hook-shimmer 2.6s ease-in-out infinite, mv-cta-hook-glow 2.6s ease-in-out infinite;
}

.mv__countdown-inner::after {
  content: "";
  position: absolute;
  inset: -2px -8px;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.35) 52%, transparent 70%);
  transform: translateX(-130%) skewX(-14deg);
  animation: mv-cta-hook-shine-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mv-cta-hook-shine-sweep {
  0%,
  28% {
    transform: translateX(-130%) skewX(-12deg);
    opacity: 0;
  }
  38% {
    opacity: 1;
  }
  52%,
  100% {
    transform: translateX(130%) skewX(-12deg);
    opacity: 0;
  }
}

.mv__countdown.is-counting .mv__countdown-inner {
  font-size: 1.3rem;
}

.mv__countdown.is-live .mv__countdown-inner {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--color-nav);
  -webkit-text-fill-color: currentColor;
  animation: none;
  filter: none;
}

.mv__countdown.is-live .mv__countdown-inner::after {
  display: none;
}

.mv__countdown-line {
  display: block;
}

/* かぎ括弧の字間を詰める（「 左／ 」 右） */
.mv__countdown-tight {
  margin-right: -0.4em;
}

.mv__countdown-tight--open {
  margin-left: -0.4em;
}

/* 「採点結果配信開始予定」などの字間を詰める */
.mv__countdown-tight-text {
  letter-spacing: -0.05em;
}

/* is-scheduled: 02_0726up (r8-live) と同じゴールドシマーを各行に適用 */
@keyframes r8-live-gold-shimmer {
  0%,
  100% {
    background-position: 120% center;
  }
  50% {
    background-position: -20% center;
  }
}

@keyframes r8-live-gold-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.9)) drop-shadow(0 0 22px rgba(217, 119, 6, 0.55));
  }
}

.mv__countdown.is-scheduled .mv__countdown-inner {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: inherit;
  -webkit-text-fill-color: inherit;
  animation: none;
  filter: none;
}

.mv__countdown.is-scheduled .mv__countdown-inner::after {
  display: none;
}

.mv__countdown.is-scheduled .mv__countdown-line {
  display: block;
  background: linear-gradient(105deg, #b45309 0%, #b45309 38%, #d97706 46%, #fbbf24 50%, #fde68a 52%, #fbbf24 54%, #d97706 62%, #b45309 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: r8-live-gold-shimmer 2.6s ease-in-out infinite, r8-live-gold-glow 2.6s ease-in-out infinite;
}

.mv__countdown.is-scheduled .mv__countdown-line--date {
  display: inline-block;
  font-size: 1.5em;
  font-weight: 900;
}

.pre-announce .mv__countdown.is-scheduled .mv__countdown-inner,
.pre-announce .mv__countdown.is-counting .mv__countdown-inner {
  color: inherit;
  -webkit-text-fill-color: inherit;
  text-shadow: none;
}

/* 事前公開版：現行の白／ゴールド配色のまま、光点滅ではなくシマー */
.pre-announce .mv__countdown.is-scheduled .mv__countdown-line,
.pre-announce .mv__countdown.is-counting .mv__countdown-line {
  display: block;
  background: linear-gradient(
    105deg,
    #ffffff 0%,
    #ffffff 38%,
    #e8f4ff 46%,
    #4fc3f7 50%,
    #e8f4ff 54%,
    #ffffff 62%,
    #ffffff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: none;
  animation: r8-live-gold-shimmer 2.6s ease-in-out infinite;
}

.pre-announce .mv__countdown.is-scheduled .mv__countdown-line--date,
.pre-announce .mv__countdown.is-counting .mv__countdown-line--date {
  background: linear-gradient(
    105deg,
    #fbbf24 0%,
    #fbbf24 38%,
    #f59e0b 46%,
    #fde68a 50%,
    #fff7ed 52%,
    #fde68a 54%,
    #f59e0b 62%,
    #fbbf24 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: none;
  animation: r8-live-gold-shimmer 2.6s ease-in-out infinite;
}

.pre-announce .mv__countdown.is-counting .mv__countdown-min {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .mv__countdown-inner {
    font-size: 1.5rem;
  }

  .mv__countdown.is-counting .mv__countdown-inner {
    font-size: 1.6rem;
  }
}

.mv__countdown-min {
  display: inline-block;
  min-width: 1.4em;
  margin: 0 0.12em;
  font-size: 1.65em;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-orange-hover);
  -webkit-text-fill-color: var(--color-accent-orange-hover);
  vertical-align: -0.06em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mv__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px calc(16px + env(safe-area-inset-right, 0px)) 26px calc(16px + env(safe-area-inset-left, 0px));
  text-align: center;
  background: var(--color-bg);
}

@media (min-width: 768px) {
  .mv__cta-wrap {
    padding: 22px 28px 32px;
  }
}

/* ----- ページ中盤の再掲CTA(カウントダウン+CTA) ----- */
.cta-block {
  margin: 0;
}

.cta-block .mv__countdown {
  background: transparent;
}

.cta-block .mv__cta-wrap {
  padding-top: 0;
}

.section--light .cta-block .mv__cta-wrap,
.section--light .cta-block .mv__countdown {
  background: transparent;
}

/* ----- アンカーナビ ----- */
.anchor-nav {
  position: relative;
  z-index: 1;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(18, 58, 104, 0.1);
}

.anchor-nav__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.anchor-nav__list > li {
  display: flex;
  min-width: 0;
}

.anchor-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--color-nav);
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid rgba(18, 58, 104, 0.15);
  border-radius: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.anchor-nav__list > li + li .anchor-nav__link {
  border-left: 0;
}

.anchor-nav__link:hover {
  background: var(--color-nav);
  color: #fff;
}

@media (min-width: 768px) {
  .anchor-nav__link {
    min-height: 64px;
    padding: 14px 12px;
    font-size: 1rem;
  }
}

/* ----- セクション共通 ----- */
.section {
  padding: 56px 0;
  scroll-margin-top: 72px;
}

.section--light {
  background: var(--color-bg);
}

.section--muted {
  background: var(--color-bg-muted);
}

.section--course {
  padding-bottom: 72px;
}

.section__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 20px;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-nav);
  text-align: center;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .section__title {
    font-size: 2rem;
  }
}

.section__title::before {
  content: "";
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-nav), var(--color-accent-orange));
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.section__title::after {
  content: "";
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(18, 58, 104, 0.3), transparent);
}

.section__lead {
  margin: 0 auto 28px;
  max-width: 720px;
  color: var(--color-text-muted);
  text-align: center;
  font-size: 1.05rem;
}

h3 {
  text-align: center;
}

.present-card h3,
.present-card h4 {
  width: 100%;
}

.subsection__title {
  margin: 48px 0 20px;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--color-nav);
  padding: 0;
  letter-spacing: 0.02em;
}

.section .btn {
  margin-top: 8px;
}

.section .btn + .subsection__title {
  margin-top: 56px;
}

.subsection__title:has(.title-highlight) {
  font-size: 24px;
  text-align: center;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .subsection__title:has(.title-highlight) {
    font-size: 32px;
  }
}

.subsection__title .title-highlight {
  background: linear-gradient(90deg, #1d6fd1 0%, #4fc3f7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ----- 特長カード（即日採点サービスについて） ----- */
.container .card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: min(1200px, calc(100vw - 32px));
  max-width: 1200px;
  margin-left: calc((100% - min(1200px, calc(100vw - 32px))) / 2);
  margin-right: calc((100% - min(1200px, calc(100vw - 32px))) / 2);
  margin-bottom: 28px;
  padding-top: 20px;
}

.card-container .card {
  flex: 1 1 260px;
  padding: 26px 20px;
  background: var(--color-surface);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 58, 104, 0.08);
  text-align: center;
}

.card-container .card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
}

.card-container .card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-container .card-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-nav);
  margin-bottom: 10px;
}

.card-container .card-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  min-height: 4.6em;
}

.card-container .card-link-area {
  margin-top: 14px;
}

.card-container .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-link);
  text-decoration: none;
}

.card-container .card-link-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transform: rotate(-90deg);
}

@media (min-width: 851px) {
  .card-container .card {
    max-width: 30%;
  }
}

@media (max-width: 850px) {
  .card-container .card {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .card-container .card .card-link-area {
    margin-top: 8px;
  }
}

/* ----- フロー ----- */
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
  margin: 0 0 24px;
  padding: 24px 16px;
  list-style: none;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.flow-steps--vertical {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-top: 1px solid rgba(18, 58, 104, 0.18);
  border-bottom: 1px solid rgba(18, 58, 104, 0.18);
}

.flow-steps__item--numbered {
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  min-width: 0;
}

.flow-steps--vertical .flow-steps__item--numbered {
  padding: 16px 0;
}

.flow-steps--vertical .flow-steps__item--numbered:not(:last-child) {
  border-bottom: 1px solid rgba(18, 58, 104, 0.14);
}

.flow-steps__step-badge {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 3px;
  min-width: auto;
  padding: 4px 8px;
  background: var(--color-nav);
  color: #fff;
  border-radius: 4px;
}

.flow-steps__step-tag {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  opacity: 0.9;
}

.flow-steps__step-badge .flow-steps__step-num {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.flow-steps--vertical .flow-steps__label {
  text-align: left;
  line-height: 1.55;
  padding-top: 2px;
}

.flow-steps__label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

.flow-steps__note {
  display: block;
  margin-top: 0.35em;
  font-size: 0.92em;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.flow-steps__note--alert {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.45em 0.75em;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--color-accent-red);
  line-height: 1.5;
  background: #fdecea;
  /* border-left: 3px solid var(--color-accent-red); */
  border-radius: 4px;
}

.notice-block--flow {
  margin-top: 0;
  margin-bottom: 24px;
}

@media (min-width: 600px) {
  .flow-steps--vertical .flow-steps__item--numbered {
    padding: 18px 0;
  }

  .flow-steps__item--numbered {
    gap: 14px;
  }

  .flow-steps__step-badge {
    padding: 5px 10px;
    border-radius: 5px;
  }

  .flow-steps__step-tag {
    font-size: 0.52rem;
  }

  .flow-steps__step-badge .flow-steps__step-num {
    font-size: 1rem;
  }
}

/* ----- ご注意 ----- */
.notice-block {
  margin: 0 0 24px;
  padding: 22px 20px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 58, 104, 0.12);
}

.notice-block__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-nav);
  letter-spacing: 0.02em;
}

.notice-block__list {
  margin: 0;
  padding-left: 1.35em;
  list-style: disc;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.notice-block__list li {
  margin-bottom: 12px;
}

.notice-block__list li:last-child {
  margin-bottom: 0;
}

/* ----- 試験分析（公開前プレースホルダー） ----- */
#analysis .analysis-coming-soon {
  margin: 0 auto;
  max-width: 720px;
  padding: 28px 24px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-nav);
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 58, 104, 0.12);
}

/* ----- 試験分析（公開後本文） ----- */
#analysis .analysis-content {
  max-width: 960px;
  margin: 0 auto;
}

#analysis .analysis-content__heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 18px 16px;
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #0d2c50 0%, var(--color-nav) 55%, #1d6fd1 100%);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(18, 58, 104, 0.18);
}

#analysis .analysis-content__heading::after {
  content: "";
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent-orange), #fbbf24);
}

#analysis .analysis-content__heading:not(:first-of-type) {
  margin-top: 48px;
}

#analysis .analysis-video {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}

#analysis .analysis-video__frame {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow-card);
}

#analysis .analysis-card {
  background: var(--color-surface);
  padding: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 58, 104, 0.12);
  overflow: hidden;
}

#analysis .analysis-card__body {
  padding: 20px 18px 24px;
}

#analysis .analysis-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 18px;
  font-size: clamp(1.12rem, 3.2vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--color-nav);
  background: linear-gradient(90deg, #dce8f8 0%, #eef4fb 55%, #fff 100%);
  border-bottom: 2px solid rgba(18, 58, 104, 0.12);
}

#analysis .analysis-card__title::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 1.15em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-nav), var(--color-accent-orange));
}

#analysis .analysis-card--wide > .analysis-card__title {
  background: linear-gradient(90deg, #123a68 0%, #1d6fd1 100%);
  color: #fff;
  border-bottom: none;
}

#analysis .analysis-card--wide > .analysis-card__title::before {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
}

#analysis .analysis-card--wide > p,
#analysis .analysis-card--wide > .analysis-figure,
#analysis .analysis-card--wide > .analysis-keywords,
#analysis .analysis-card > p,
#analysis .analysis-card > .analysis-figure,
#analysis .analysis-card > .analysis-keywords {
  margin-left: 18px;
  margin-right: 18px;
}

#analysis .analysis-card--wide > p:first-of-type,
#analysis .analysis-card > p:first-of-type {
  margin-top: 18px;
}

#analysis .analysis-card--wide > :last-child,
#analysis .analysis-card > :last-child {
  margin-bottom: 22px;
}

#analysis .analysis-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

#analysis .analysis-card p + .analysis-figure,
#analysis .analysis-card p + .analysis-keywords,
#analysis .analysis-keywords + p,
#analysis .analysis-figure + p {
  margin-top: 20px;
}

#analysis .analysis-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 10px;
  padding: 6px 12px 6px 10px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: #fff;
  background: var(--color-nav);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(18, 58, 104, 0.18);
}

#analysis .analysis-subhead::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-orange);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}

#analysis .analysis-card p > .analysis-subhead:first-child {
  margin-top: 0;
}

#analysis .analysis-point {
  display: block;
  margin: 16px 0 6px;
  padding: 0 0 0 12px;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--color-nav);
  text-decoration: none;
  border-left: 3px solid var(--color-accent-orange);
}

#analysis .analysis-card u {
  text-decoration: none;
}

#analysis .analysis-card u > strong {
  display: block;
  margin: 16px 0 6px;
  padding: 0 0 0 12px;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--color-nav);
  border-left: 3px solid var(--color-accent-orange);
}

#analysis .analysis-card strong {
  font-weight: 700;
  color: var(--color-text);
}

#analysis .analysis-card .analysis-subhead {
  color: #fff;
}

#analysis .analysis-figure {
  margin: 0;
  padding: 12px;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(18, 58, 104, 0.08);
}

#analysis .analysis-figure img {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  height: auto;
}

#analysis .analysis-keywords {
  margin-top: 20px;
  padding: 16px 18px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  background: linear-gradient(180deg, #f7fafd 0%, #eef4fb 100%);
  border: 1px solid rgba(18, 58, 104, 0.16);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-nav);
}

#analysis .analysis-keywords__label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--color-nav);
  border-radius: 999px;
}

#analysis .analysis-topics {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  #analysis .analysis-content__heading {
    padding: 22px 28px;
  }

  #analysis .analysis-card__title {
    padding: 16px 24px;
  }

  #analysis .analysis-card--wide > p,
  #analysis .analysis-card--wide > .analysis-figure,
  #analysis .analysis-card--wide > .analysis-keywords,
  #analysis .analysis-card > p,
  #analysis .analysis-card > .analysis-figure,
  #analysis .analysis-card > .analysis-keywords {
    margin-left: 24px;
    margin-right: 24px;
  }

  #analysis .analysis-topics {
    grid-template-columns: 1fr;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ----- プレゼント/講座カード（アイコン＋テキスト） ----- */
.present-grid {
  display: grid;
  gap: 24px;
}

.present-card {
  background: var(--color-surface);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(29, 111, 209, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.present-card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--color-bg-soft) 0%, #fff 100%);
  color: var(--color-nav);
  font-size: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(18, 58, 104, 0.12);
}

.present-card__image {
  margin: 0;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 500 / 240;
  overflow: hidden;
  /* border-radius: var(--radius); */
}

.present-card__image img {
  display: block;
  width: 100%;
  height: auto;
}

.present-card__title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-nav);
  text-align: center;
}

.present-card__text {
  margin: 0;
  flex: 1;
  color: var(--color-text-muted);
  font-size: 1.02rem;
  text-align: left;
}

.present-card__note {
  display: block;
  color: #c62828;
  margin-top: 6px;
  font-size: 0.95em;
  font-weight: 700;
}

.present-card__highlight {
  color: #c62828;
  font-weight: 700;
}

.present-card__cta {
  margin-top: auto;
}

@media (min-width: 768px) {
  .present-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

/* ----- 講座バナー ----- */
.course-banner {
  display: block;
  margin: 0 auto 20px;
  max-width: 900px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.course-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ----- フッター ----- */
.site-footer {
  background: #0b1f38;
  color: rgba(255, 255, 255, 0.75);
  padding: 24px 0;
}

.site-footer__inner {
  text-align: center;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.82rem;
}

/* ----- Intersection Observer 用：フェードイン・アップ ----- */
.io-fadeup {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.io-fadeup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.io-fadeup[data-io-index] {
  transition-delay: calc(var(--io-i, 0) * 80ms);
}

/* ----- 下部固定 CTA ----- */
.floating-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.35s ease, visibility 0.35s;
}

.floating-cta.is-visible {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.floating-cta.is-docked-below {
  position: absolute;
  bottom: auto;
}

.floating-cta__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 14px 14px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(18, 58, 104, 0.14), 0 -1px 0 rgba(18, 58, 104, 0.08);
  border: 1px solid rgba(18, 58, 104, 0.12);
  border-bottom: 0;
}

.floating-cta__buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.btn--floating-cta {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: 2px solid transparent;
}

.floating-cta .cta-btn__label {
  --cta-v-half: 10px;
  font-size: 0.92rem;
  text-align: center;
}

.floating-cta .cta-btn__label::after {
  margin-top: 6px;
}

.btn--floating-cta.btn--cta-ippan,
.btn--floating-cta.btn--cta-jukou {
  animation: cta-ippan-glow-pulse 2.2s ease-in-out infinite;
}

.btn--floating-cta.btn--cta-ippan:active,
.btn--floating-cta.btn--cta-jukou:active {
  transform: translateY(1px);
  animation: none;
}

@media (min-width: 768px) {
  .floating-cta__buttons {
    gap: 10px;
  }

  .btn--floating-cta {
    min-height: 56px;
    padding: 14px 24px;
    font-size: 1.15rem;
  }

  .floating-cta .cta-btn__label {
    font-size: 1rem;
  }
}

body.has-floating-cta {
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body.has-floating-cta {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-cta {
    transition-duration: 0.15s;
  }
}

/* ----- ページ上部へ戻る ----- */
.back-to-top {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: var(--color-nav);
  box-shadow: 0 4px 16px rgba(18, 58, 104, 0.38);
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top .icon {
  width: 1.15em;
  height: 1.15em;
}

.back-to-top:hover {
  background: #1558a8;
  box-shadow: 0 6px 20px rgba(18, 58, 104, 0.46);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--color-accent-orange);
  outline-offset: 3px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

body.has-floating-cta .back-to-top {
  bottom: calc(100px + var(--floating-cta-offset, 0px) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .back-to-top {
    right: calc(22px + env(safe-area-inset-right, 0px));
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  body.has-floating-cta .back-to-top {
    bottom: calc(108px + var(--floating-cta-offset, 0px) + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition-duration: 0.15s;
  }
}

.section__title--tokuten .section__title-prefix,
.section__title--tokuten .section__title-highlight {
  display: inline;
}

.section__title--tokuten .section__title-highlight {
  font-size: inherit;
}

@media (max-width: 767px) {
  .section__title--tokuten .section__title-highlight {
    display: block;
    font-size: 2.1rem;
    line-height: 1.2;
  }
}

/* ----- 限定特典セクション（#tokuten） ----- */
.section--tokuten {
  background: linear-gradient(180deg, #dce9f9 0%, var(--color-bg) 45%, var(--color-bg-soft) 100%);
}

.section--tokuten .container {
  max-width: 750px;
}

.section--tokuten .section__lead {
  max-width: 100%;
  margin-bottom: 32px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-nav);
}

.tokuten-block {
  position: relative;
  margin-bottom: 36px;
  padding: 0 0 8px;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(18, 58, 104, 0.1), 0 8px 28px rgba(18, 58, 104, 0.12);
  border: 2px solid rgba(245, 158, 11, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tokuten-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 58, 104, 0.12), 0 12px 36px rgba(18, 58, 104, 0.16);
}

.tokuten-block:last-child {
  margin-bottom: 0;
}

.tokuten-block::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--color-nav) 0%, var(--color-accent-orange) 50%, var(--color-nav) 100%);
}

#gift.tokuten-block {
  border-color: rgba(245, 158, 11, 0.38);
}

#suitei.tokuten-block {
  border-color: rgba(67, 56, 202, 0.35);
}

#suitei.tokuten-block::before {
  background: linear-gradient(90deg, var(--color-suitei) 0%, var(--color-shimmer) 50%, var(--color-suitei) 100%);
}

#minkai.tokuten-block {
  border-color: rgba(29, 111, 209, 0.35);
}

#minkai.tokuten-block::before {
  background: linear-gradient(90deg, var(--color-nav) 0%, var(--color-shimmer) 50%, var(--color-nav) 100%);
}

.tokuten-block__title {
  margin: 0;
  padding: 22px 20px 18px;
  font-size: clamp(1.22rem, 4vw, 1.45rem);
  font-weight: 800;
  color: var(--color-nav);
  text-align: center;
  line-height: 1.45;
  background: linear-gradient(135deg, rgba(18, 58, 104, 0.07) 0%, rgba(245, 158, 11, 0.1) 100%);
}

@keyframes tokuten-text-shimmer {
  0%,
  100% {
    background-position: 120% center;
  }
  50% {
    background-position: -20% center;
  }
}

@keyframes tokuten-text-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.55));
  }
}

#gift .tokuten-block__title::before {
  content: "豪華特典";
  display: block;
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.3;
  background: linear-gradient(105deg, var(--color-accent-orange-hover) 0%, #fbbf24 42%, var(--color-accent-orange) 50%, #fbbf24 58%, var(--color-accent-orange-hover) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: tokuten-text-shimmer 2.8s ease-in-out infinite, tokuten-text-glow 2.8s ease-in-out infinite;
}

#suitei .tokuten-block__title::before {
  content: "利用者に限定公開";
  display: block;
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.3;
  background: linear-gradient(105deg, var(--color-suitei) 0%, var(--color-suitei-light) 42%, var(--color-shimmer) 50%, var(--color-suitei-light) 58%, var(--color-suitei) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: tokuten-text-shimmer 2.8s ease-in-out infinite;
}

#minkai .tokuten-block__title::before {
  content: "利用者に限定公開";
  display: block;
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.3;
  background: linear-gradient(105deg, var(--color-nav) 0%, var(--color-shimmer) 42%, var(--color-link) 50%, var(--color-shimmer) 58%, var(--color-nav) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: tokuten-text-shimmer 2.8s ease-in-out infinite;
}

.tokuten-block__title em {
  font-style: normal;
  display: inline;
  font-size: clamp(1.55rem, 6.5vw, 2.15rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.15;
  vertical-align: baseline;
  background: linear-gradient(105deg, #c62828 0%, #d97706 38%, #fbbf24 50%, #d97706 62%, #c62828 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: tokuten-text-shimmer 2.4s ease-in-out infinite, tokuten-text-glow 2.4s ease-in-out infinite;
}

.tokuten-block__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 20px 20px;
}

.tokuten-block__img {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
}

#gift .tokuten-block__body > .tokuten-block__img:first-child {
  width: 50%;
}

.tokuten-block__text {
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  font-size: 1.05rem;
  line-height: 1.85;
  background: linear-gradient(135deg, #fffef8 0%, #fff 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#suitei .tokuten-block__text {
  background: linear-gradient(135deg, #f1f0ff 0%, #fff 100%);
  border-color: rgba(67, 56, 202, 0.28);
}

#minkai .tokuten-block__text {
  background: linear-gradient(135deg, #eef6ff 0%, #fff 100%);
  border-color: rgba(29, 111, 209, 0.28);
}

.tokuten-block__text strong,
.tokuten-block__highlight {
  color: #c62828;
  font-weight: 700;
}

.tokuten-details {
  margin: 4px 20px 16px;
  padding: 0 4px;
  border-top: 1px solid rgba(18, 58, 104, 0.14);
}

.tokuten-details summary {
  padding: 14px 0;
  font-weight: 700;
  color: var(--color-nav);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tokuten-details summary::-webkit-details-marker {
  display: none;
}

.tokuten-details summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--color-link);
  transition: transform 0.25s ease;
}

.tokuten-details[open] summary::after {
  transform: rotate(180deg);
}

.tokuten-details__content {
  padding: 0 0 16px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.tokuten-details__content a {
  word-break: break-all;
}

/* みんなの解答状況：CSS製ミニグラフ（年度を跨いでも破綻しない汎用イラスト） */
.minkai-chart {
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(29, 111, 209, 0.18);
}

.minkai-chart__caption {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-nav);
}

.minkai-chart__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.minkai-chart__row:last-child {
  margin-bottom: 0;
}

.minkai-chart__label {
  flex: 0 0 auto;
  width: 2.4em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.minkai-chart__bar {
  flex: 1 1 auto;
  display: flex;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  background: #eef2f7;
}

.minkai-chart__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #14283f;
  white-space: nowrap;
  overflow: hidden;
}

.minkai-chart__seg--a {
  background: #a7d8ff;
}

.minkai-chart__seg--b {
  background: #4fc3f7;
}

.minkai-chart__seg--c {
  background: #cbd5e1;
}

.minkai-chart__seg--d {
  background: #fbbf24;
}

@media (prefers-reduced-motion: reduce) {
  .tokuten-block {
    transition: none;
  }

  .tokuten-block:hover {
    transform: none;
  }

  #gift .tokuten-block__title::before,
  #suitei .tokuten-block__title::before,
  #minkai .tokuten-block__title::before,
  .tokuten-block__title em {
    animation: none;
    filter: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: inherit;
    -webkit-text-fill-color: currentColor;
  }

  #gift .tokuten-block__title::before {
    color: var(--color-accent-orange-hover);
  }

  #suitei .tokuten-block__title::before {
    color: var(--color-suitei);
  }

  #minkai .tokuten-block__title::before {
    color: var(--color-nav);
  }

  .tokuten-block__title em {
    color: #c62828;
  }
}

/* MV下ハイライトバッジ（立体丸型メダル・3特典） */
.mv-badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 14px 4px;
  margin: 0;
  padding: 8px 8px 18px;
  list-style: none;
}

.mv-badges__item {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  max-width: 148px;
}

.mv-badges__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 148px;
  height: auto;
  margin: 0 auto;
  padding: 22px 6px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--color-nav);
  border-radius: 50%;
  aspect-ratio: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mv-badges__ribbon {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  font-size: clamp(0.58rem, 2.8vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mv-badges__ribbon i,
.mv-badges__ribbon .icon {
  width: 0.55em;
  height: 0.55em;
  font-size: 0.45em;
  opacity: 0.9;
}

.mv-badges__copy {
  position: relative;
  z-index: 1;
  font-size: clamp(0.58rem, 2.9vw, 0.76rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--color-nav);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.mv-badges__copy em {
  font-style: normal;
  font-size: 1.08em;
  color: #c62828;
}

@keyframes mv-badges-arrow-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.65;
  }
  50% {
    transform: translateX(-50%) translateY(5px);
    opacity: 1;
  }
}

.mv-badges__arrow {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  font-size: 0.55rem;
  line-height: 1;
  color: var(--color-nav);
  animation: mv-badges-arrow-bounce 1.5s ease-in-out infinite;
}

.mv-badges__item--gift .mv-badges__arrow {
  color: #b45309;
}

.mv-badges__item--suitei .mv-badges__arrow {
  color: var(--color-suitei);
}

.mv-badges__item--minkai .mv-badges__arrow {
  color: var(--color-nav);
}

.mv-badges__link::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 16%;
  z-index: 0;
  width: 38%;
  height: 24%;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

/* 特典1：電子チケット（ゴールド） */
.mv-badges__item--gift .mv-badges__link {
  background: radial-gradient(circle at 32% 28%, #fffef8 0%, #fff4d6 28%, #fde68a 58%, #fbbf24 82%, #e8a317 100%);
  border: 2px solid #f5c842;
  box-shadow:
    inset 6px 6px 14px rgba(255, 255, 255, 0.75),
    inset -5px -8px 16px rgba(180, 110, 0, 0.28),
    0 5px 0 #c98a10,
    0 8px 16px rgba(180, 110, 0, 0.28),
    0 14px 28px rgba(0, 0, 0, 0.12);
}

.mv-badges__item--gift .mv-badges__link::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 -3px 8px rgba(160, 90, 0, 0.15);
  pointer-events: none;
}

.mv-badges__item--gift .mv-badges__ribbon {
  background: linear-gradient(180deg, #c2410c 0%, #ea580c 40%, #f59e0b 100%);
}

.mv-badges__item--gift .mv-badges__link:hover {
  transform: translateY(-3px) scale(1.02);
}

/* 特典2：合格推定点（インディゴ） */
.mv-badges__item--suitei .mv-badges__link {
  background: radial-gradient(circle at 32% 28%, #f5f4ff 0%, #e0e0fc 28%, #b9baf6 58%, #7c7fe8 82%, #4338ca 100%);
  border: 2px solid #a5a6f0;
  box-shadow:
    inset 6px 6px 14px rgba(255, 255, 255, 0.7),
    inset -5px -8px 16px rgba(40, 30, 120, 0.28),
    0 5px 0 #362d99,
    0 8px 16px rgba(40, 30, 120, 0.24),
    0 14px 28px rgba(0, 0, 0, 0.12);
}

.mv-badges__item--suitei .mv-badges__link::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 -3px 8px rgba(40, 30, 120, 0.15);
  pointer-events: none;
}

.mv-badges__item--suitei .mv-badges__ribbon {
  background: linear-gradient(180deg, #312e81 0%, var(--color-suitei) 45%, #6366f1 100%);
}

.mv-badges__item--suitei .mv-badges__link:hover {
  transform: translateY(-3px) scale(1.02);
}

/* 特典3：みんなの解答（スカイブルー） */
.mv-badges__item--minkai .mv-badges__link {
  background: radial-gradient(circle at 32% 28%, #f5fbff 0%, #e3f3ff 28%, #b9e2fb 58%, #6fc0f2 82%, #2e8fd6 100%);
  border: 2px solid #8ecdf0;
  box-shadow:
    inset 6px 6px 14px rgba(255, 255, 255, 0.7),
    inset -5px -8px 16px rgba(15, 60, 110, 0.22),
    0 5px 0 #1f6aa8,
    0 8px 16px rgba(18, 58, 104, 0.22),
    0 14px 28px rgba(0, 0, 0, 0.1);
}

.mv-badges__item--minkai .mv-badges__link::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 -3px 8px rgba(15, 60, 110, 0.12);
  pointer-events: none;
}

.mv-badges__item--minkai .mv-badges__ribbon {
  background: linear-gradient(180deg, #123a68 0%, var(--color-link) 45%, #4fc3f7 100%);
}

.mv-badges__item--minkai .mv-badges__link:hover {
  transform: translateY(-3px) scale(1.02);
}

@media (min-width: 600px) {
  .mv-badges {
    gap: 14px 16px;
    padding: 8px 16px 18px;
  }

  .mv-badges__item {
    flex: 0 0 auto;
    max-width: 168px;
  }

  .mv-badges__link {
    width: 168px;
    max-width: 168px;
    height: 168px;
    padding: 30px 14px 24px;
  }

  .mv-badges__ribbon {
    top: 26px;
    gap: 3px;
    padding: 5px 14px;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }

  .mv-badges__ribbon i,
  .mv-badges__ribbon .icon {
    width: 0.5rem;
    height: 0.5rem;
    font-size: 0.5rem;
  }

  .mv-badges__copy {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .mv-badges__arrow {
    bottom: 20px;
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) {
  .mv-badges {
    gap: 20px 32px;
    padding: 12px 28px;
  }

  .mv-badges__item {
    max-width: 182px;
  }

  .mv-badges__link {
    width: 182px;
    max-width: 182px;
    height: 182px;
    padding: 32px 16px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mv-badges__link {
    transition: none;
  }

  .mv-badges__link:hover {
    transform: none;
  }

  .mv-badges__arrow {
    animation: none;
    opacity: 0.8;
  }
}
