/* ============================================
   建築施工管理技士 即日採点サービス LP（雛形）
   Mobile first / メイン薄青・ネイビーアクセント
   ============================================ */

:root {
  --color-bg: #f0f7ff;
  --color-bg-soft: #e6f0ff;
  --color-bg-muted: #eef1f5;
  --color-surface: #ffffff;
  --color-text: #1a2740;
  --color-text-muted: #4a5568;
  --color-nav: #003366;
  --color-link: #0066cc;
  --color-accent-orange: #f59e0b;
  --color-accent-orange-hover: #d97706;
  --radius: 8px;
  --shadow-soft: 0 4px 14px rgba(0, 51, 102, 0.08);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.06);
  --header-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  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);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ----- ヘッダー ----- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0, 51, 102, 0.08);
}

.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.2s ease, background-color 0.2s ease, color 0.2s 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: #0066cc;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 102, 204, 0.25);
}

.btn--secondary:hover {
  background: #0052a3;
  color: #fff;
}

.btn--accent {
  background: var(--color-accent-orange);
  color: #1a1a1a;
  width: 100%;
  max-width: 280px;
}

.btn--accent:hover {
  background: var(--color-accent-orange-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-nav);
  border-color: rgba(0, 51, 102, 0.25);
}

.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 メインCTA：外周グローのパルス（ホバー・フォーカス時は停止） */
@keyframes mv-cta-glow-sp {
  0%,
  100% {
    box-shadow:
      0 0 0 4px #fff,
      0 0 0 11px rgba(245, 158, 11, 0.38),
      0 14px 40px rgba(245, 158, 11, 0.52),
      0 10px 24px rgba(0, 51, 102, 0.14);
  }
  50% {
    box-shadow:
      0 0 0 4px #fff,
      0 0 0 20px rgba(245, 158, 11, 0.55),
      0 0 32px rgba(245, 158, 11, 0.45),
      0 22px 56px rgba(245, 158, 11, 0.68),
      0 12px 28px rgba(0, 51, 102, 0.2);
  }
}

@keyframes mv-cta-glow-pc {
  0%,
  100% {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 7px rgba(245, 158, 11, 0.3),
      0 10px 28px rgba(245, 158, 11, 0.42),
      0 6px 16px rgba(0, 51, 102, 0.1);
  }
  50% {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 14px rgba(245, 158, 11, 0.48),
      0 0 24px rgba(245, 158, 11, 0.38),
      0 16px 42px rgba(245, 158, 11, 0.58),
      0 8px 20px rgba(0, 51, 102, 0.16);
  }
}

@keyframes mv-cta-nudge {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  6% {
    transform: translateY(-6px) scale(1.03);
  }
  12% {
    transform: translateY(0) scale(1);
  }
  18% {
    transform: translateY(-4px) scale(1.02);
  }
  24% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.025);
  }
  62% {
    transform: translateY(0) scale(1);
  }
}

/* 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(0, 102, 204, 0.25));
  }
}

@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 直下メインCTA：ピル型（スマホは全幅・大きめで強調） */
.btn--mv-cta {
  border-radius: 999px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 18px 20px;
  min-height: 56px;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 11px rgba(245, 158, 11, 0.38),
    0 14px 40px rgba(245, 158, 11, 0.55),
    0 10px 24px rgba(0, 51, 102, 0.16);
  animation:
    mv-cta-glow-sp 1.8s ease-in-out infinite,
    mv-cta-nudge 2.8s ease-in-out infinite;
}

.btn--mv-cta:hover,
.btn--mv-cta:focus-visible {
  animation: none;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 11px rgba(245, 158, 11, 0.45),
    0 18px 44px rgba(245, 158, 11, 0.58),
    0 12px 28px rgba(0, 51, 102, 0.18);
}

.btn--mv-cta:active {
  animation: none;
  transform: translateY(0);
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 10px rgba(245, 158, 11, 0.35),
    0 10px 28px rgba(245, 158, 11, 0.45),
    0 8px 18px rgba(0, 51, 102, 0.14);
}

@media (min-width: 768px) {
  .btn--mv-cta {
    width: min(100%, 560px);
    max-width: 560px;
    padding: 18px 56px;
    min-height: 58px;
    font-size: 1.28rem;
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 7px rgba(245, 158, 11, 0.28),
      0 10px 28px rgba(245, 158, 11, 0.42),
      0 6px 16px rgba(0, 51, 102, 0.12);
    animation:
      mv-cta-glow-pc 1.8s ease-in-out infinite,
      mv-cta-nudge 2.8s ease-in-out infinite;
  }

  .btn--mv-cta:hover,
  .btn--mv-cta:focus-visible {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 7px rgba(245, 158, 11, 0.38),
      0 14px 36px rgba(245, 158, 11, 0.48),
      0 8px 20px rgba(0, 51, 102, 0.14);
  }

  .btn--mv-cta:active {
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 6px rgba(245, 158, 11, 0.3),
      0 8px 22px rgba(245, 158, 11, 0.4),
      0 5px 14px rgba(0, 51, 102, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn--mv-cta,
  .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;
  }

  .btn--mv-cta:hover,
  .btn--mv-cta:focus-visible {
    transform: translateY(-1px);
  }
}

/* ----- MV ----- */
.mv {
  position: relative;
  background: var(--color-bg-soft);
}

.mv-fv {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

.mv__countdown {
  margin: 0;
  padding: 10px 16px 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;
  padding: 2px 6px;
  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%,
    #2a8fd4 46%,
    #fbbf24 50%,
    #2a8fd4 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;
}

.mv__countdown.is-counting .mv__countdown-inner {
  font-size: 1.22rem;
}

.mv__countdown.is-scheduled .mv__countdown-inner {
  background-image: linear-gradient(
    105deg,
    #b91c3a 0%,
    #b91c3a 38%,
    #eb3049 46%,
    #ffc9c9 50%,
    #eb3049 54%,
    #b91c3a 62%,
    #b91c3a 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

.mv__countdown.is-live .mv__countdown-inner {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #eb3049;
  -webkit-text-fill-color: currentColor;
  animation: none;
  filter: none;
}

.mv__countdown.is-live .mv__countdown-inner::after {
  display: none;
}

.mv__countdown-line {
  display: block;
}

@media (min-width: 768px) {
  .mv__countdown-inner {
    flex-direction: row;
    justify-content: center;
    gap: 0.35em;
  }

  .mv__countdown-line {
    display: inline;
  }
}

.mv__countdown-min {
  display: inline-block;
  min-width: 1.4em;
  margin: 0 0.12em;
  font-size: 1.65em;
  font-weight: 900;
  line-height: 1;
  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__media {
  width: 100%;
  overflow: hidden;
}

.mv__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 899 / 989;
  object-fit: cover;
}

/* h1 で MV 画像を囲み、alt をページ主見出しとして扱う */
.mv__title {
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: inherit;
}

.mv__title picture {
  display: block;
  width: 100%;
}

.mv__lead {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.cta-block {
  margin: 0;
}

.cta-block .mv__countdown {
  background: transparent;
}

.cta-block .mv__cta-wrap {
  padding-top: 0;
}

.mv__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px calc(16px + env(safe-area-inset-right, 0px)) 16px calc(16px + env(safe-area-inset-left, 0px));
  text-align: center;
  background: var(--color-bg);
}

.section--light .cta-block .mv__cta-wrap,
.section--light .cta-block .mv__countdown {
  background: transparent;
}

/* PC: MV 画像 1920×600、アスペクト比（CTA は画像の直下に配置） */
@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 {
    padding: 12px 28px 0;
  }

  .mv__countdown-inner {
    max-width: 640px;
    margin-inline: auto;
    font-size: 1.35rem;
  }

  .mv__countdown.is-counting .mv__countdown-inner {
    font-size: 1.35rem;
  }

  .mv__countdown-min {
    font-size: 1.75em;
  }

  .mv__cta-wrap {
    gap: 12px;
    padding: 14px calc(28px + env(safe-area-inset-right, 0px)) 18px calc(28px + env(safe-area-inset-left, 0px));
  }

  .mv__lead {
    font-size: 1.1rem;
  }
}

/* ----- アンカーナビ ----- */
.anchor-nav {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(0, 51, 102, 0.1);
}

.anchor-nav__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.anchor-nav__list > li {
  display: flex;
}

.anchor-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--color-nav);
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid rgba(0, 51, 102, 0.15);
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s 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.7rem;
  color: var(--color-nav);
  text-align: center;
}

.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(0, 51, 102, 0.28), 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;
}

/* ----- フロー ----- */
.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__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  text-align: center;
}

.flow-steps__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
  color: var(--color-nav);
  border-radius: 50%;
  font-size: 1.25rem;
}

.flow-steps__label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

.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(0, 51, 102, 0.16);
  border-bottom: 1px solid rgba(0, 51, 102, 0.16);
}

.flow-steps__item--numbered {
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
  min-width: 0;
}

.flow-steps--vertical .flow-steps__item--numbered {
  padding: 20px 0;
}

.flow-steps--vertical .flow-steps__item--numbered:not(:last-child) {
  border-bottom: 1px solid rgba(0, 51, 102, 0.12);
}

.flow-steps__step-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 56px;
  padding: 10px 12px;
  background: var(--color-nav);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.2);
}

.flow-steps__step-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  opacity: 0.92;
}

.flow-steps__step-badge .flow-steps__step-num {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.flow-steps--vertical .flow-steps__label {
  text-align: left;
  line-height: 1.55;
  padding-top: 6px;
}

@media (min-width: 600px) {
  .flow-steps {
    gap: 12px 8px;
    padding: 32px 24px;
  }

  .flow-steps--vertical {
    padding: 0;
  }

  .flow-steps--vertical .flow-steps__item--numbered {
    padding: 24px 0;
  }

  .flow-steps__item--numbered {
    gap: 20px;
  }

  .flow-steps__step-badge {
    min-width: 60px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .flow-steps__step-tag {
    font-size: 0.68rem;
  }

  .flow-steps__step-badge .flow-steps__step-num {
    font-size: 1.45rem;
  }
}

/* ----- ご注意（フロー直下など） ----- */
.notice-block {
  margin: 0 0 24px;
  padding: 22px 20px 22px 10px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--color-accent-orange);
}

.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;
}

/* ----- 特典リスト ----- */
.feature-list {
  margin: 0 0 24px;
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list__icon {
  color: #0066cc;
  margin-top: 4px;
}

/* ----- メリット（強調カード） ----- */
.merit-cards {
  display: grid;
  gap: 20px;
  margin: 0 0 28px;
}

@media (min-width: 768px) {
  .merit-cards {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
  }
}

.merit-card {
  container-type: inline-size;
  position: relative;
  margin: 0;
  padding: 0;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 51, 102, 0.08);
  overflow: hidden;
}

.merit-card__index {
  position: absolute;
  left: 0;
  top: -0.04em;
  z-index: 0;
  font-size: clamp(3.75rem, 52cqw, 6.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(0, 51, 102, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.merit-card__inner {
  position: relative;
  z-index: 1;
  padding: 24px 22px 22px;
}

.merit-card__head {
  margin-bottom: 18px;
}

.merit-card__title {
  margin: 0;
  padding-top: 2px;
  font-size: 1.06rem;
  line-height: 1.55;
  font-weight: 800;
  color: var(--color-nav);
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .merit-card__title {
    font-size: 1.08rem;
  }
}

.merit-card__catch {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 0 0;
  border-top: 1px solid #e2e8f0;
  background: transparent;
  border-radius: 0;
}

.merit-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-accent-orange-hover);
  background: #fff8eb;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  white-space: nowrap;
}

.merit-card__tag--mail {
  color: var(--color-link);
  background: #eef5ff;
  border-color: rgba(0, 102, 204, 0.35);
}

.merit-card__catch-detail {
  font-size: 1.6rem;
  font-weight: 700;
  color: #c62828;
  line-height: 1.5;
  flex: 1 1 12rem;
  min-width: 0;
}

/* ----- 試験分析 ----- */
.analysis-grid {
  display: grid;
  gap: 20px;
}

.analysis-card {
  background: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.analysis-card__title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: var(--color-nav);
}

.analysis-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

@media (min-width: 768px) {
  .analysis-grid {
    grid-template-columns: 1fr 1fr;
  }

  .analysis-card--wide {
    grid-column: 1 / -1;
  }
}

/* 試験分析セクション専用（#analysis 内のみ・他セクション非影響） */
#analysis .analysis-coming-soon {
  margin: 0 auto 8px;
  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(0, 51, 102, 0.1);
}

#analysis .analysis-content__heading {
  margin-top: 0;
}

#analysis .analysis-content__heading:not(:first-of-type) {
  margin-top: 40px;
}

#analysis .analysis-card p + .analysis-figure {
  margin-top: 20px;
}

#analysis .analysis-figure {
  margin: 0;
  padding: 12px;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 51, 102, 0.08);
}

#analysis .analysis-figure img {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  height: auto;
}

#analysis .analysis-card strong {
  font-weight: 700;
  color: var(--color-text);
}

#analysis .analysis-topics {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  #analysis .analysis-topics {
    grid-template-columns: 1fr;
    max-width: 960px;
    margin: 0 auto;
  }
}

/* ----- プレゼント 2 カード ----- */
.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(0, 102, 204, 0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.present-card__badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-nav);
  border-radius: 999px;
}

.present-card__title {
  margin: 0;
  font-size: 1rem;
  color: var(--color-nav);
  text-align: center;
}

.present-card__text {
  margin: 0;
  flex: 1;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

.present-grid--single {
  max-width: 640px;
  margin-inline: auto;
}

.present-card__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(0, 102, 204, 0.1);
  vertical-align: middle;
}

/* 画像＋本文＋ボタン（split-side）：カード内は常に縦並び */
.present-card--split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.present-card__split-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-align: left;
}

.present-card__split-side .present-card__text {
  text-align: left;
}

.present-card__note {
  display: block;
  color: #c62828;
  margin-top: 6px;
  font-size: 0.95em;
  font-weight: 700;
}

@media (min-width: 768px) {
  .present-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  /* セクション3・4：カード同士も縦並び（1列） */
  /* .present-grid--stacked {
    grid-template-columns: 1fr;
  } */

  .present-grid--single {
    grid-template-columns: 1fr;
    max-width: 960px;
  }

  /* 採点サービス利用者限定特典のみ：PCで表紙画像と本文を横並び */
  .present-card--tokuten {
    display: grid;
    grid-template-columns: minmax(220px, 38%) 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 28px;
    row-gap: 16px;
    align-items: start;
  }

  .present-card--tokuten > .present-card__title {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .present-card--tokuten > .present-card__img {
    grid-column: 1;
    grid-row: 2;
  }

  .present-card--tokuten > .present-card__text {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    align-self: center;
  }
}

/* ----- 講座 2×2 ----- */
.course-grid {
  display: grid;
  gap: 20px;
}

.course-card {
  background: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(0, 51, 102, 0.08);
}

.course-card__title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-nav);
}

.course-card__text {
  margin: 0;
  flex: 1;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

@media (min-width: 600px) {
  .course-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----- フッター ----- */
.site-footer {
  background: #0f172a;
  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);
}

/* QRコード等 #mov 直リンク時：MV通過前でも特典ブロックを即表示 */
#mov {
  scroll-margin-top: 72px;
}

@media (min-width: 768px) {
  #mov {
    scroll-margin-top: 80px;
  }
}

html.is-mov-link #mov,
html.is-mov-link #mov + .io-fadeup,
#mov:target,
#mov:target + .io-fadeup,
#mov.is-visible,
#mov.is-visible + .io-fadeup {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ----- 下部固定 CTA（最初の MV 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__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 14px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 51, 102, 0.12), 0 -1px 0 rgba(0, 51, 102, 0.06);
  border: 1px solid rgba(0, 51, 102, 0.1);
  border-bottom: 0;
}

.btn--floating-cta {
  width: 100%;
  max-width: 420px;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
}

@media (min-width: 768px) {
  .btn--floating-cta {
    width: auto;
    min-width: 280px;
    font-size: 1.12rem;
    padding: 16px 36px;
  }
}

body.has-floating-cta {
  padding-bottom: calc(88px + 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(0, 51, 102, 0.35);
  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:hover {
  background: #004080;
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.42);
}

.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 + 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 + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition-duration: 0.15s;
  }
}

/* 事前公開版：採点結果配信開始告知ブロック */
.pre-announce {
  margin: 0;
  padding: 20px calc(16px + env(safe-area-inset-left, 0px)) 20px calc(16px + env(safe-area-inset-right, 0px));
  text-align: center;
  background: linear-gradient(135deg, var(--color-nav) 0%, #1a4a7a 100%);
  color: #fff;
}

.pre-announce--mv {
  padding-bottom: 24px;
}

.pre-announce--inline {
  margin: 32px 0;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.15);
}

.pre-announce__lead {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.05em;
}

.pre-announce .mv__countdown {
  padding: 0px;
  background: transparent;
}

.pre-announce .mv__countdown-inner {
  flex-direction: column;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  animation: none;
  filter: none;
}

.pre-announce .mv__countdown-line {
  display: block;
}

.pre-announce .mv__countdown-line--date {
  color: #fbbf24;
  -webkit-text-fill-color: #fbbf24;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
}

.pre-announce .mv__countdown.is-live .mv__countdown-inner {
  color: #86efac;
  -webkit-text-fill-color: #86efac;
}

.pre-announce .mv__countdown-min {
  color: #fbbf24;
  -webkit-text-fill-color: #fbbf24;
}

.pre-announce__bookmark {
  margin: 12px 0 0;
  font-size: clamp(0.75rem, 2vw, 1.1rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

@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: 2rem;
  }

  .pre-announce .mv__countdown-line {
    display: block;
  }

  .pre-announce .mv__countdown-line--date {
    font-size: 3rem;
  }
}
