/* ============================================================
   学習塾MititeQ 夏前入塾LP
   文章は指定原稿に沿って構成。画像ファイル名は assets/manga_1.png 形式。
   ============================================================ */

:root {
  --blue: #124f9f;
  --blue-dark: #0b356f;
  --blue-soft: #eaf4ff;
  --green: #06c755;
  --yellow: #fff3c4;
  --orange: #f2a100;
  --text: #1e293b;
  --muted: #64748b;
  --line: #dbeafe;
  --bg: #f8fbff;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(15, 70, 140, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "BIZ UDPGothic", "UD Shin Go", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  line-height: 1.8;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.mititeq-lp {
  overflow: hidden;
}

.container {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.container.narrow {
  width: min(840px, calc(100% - 40px));
}

.section {
  padding: 72px 0;
}

.bg-soft {
  background: var(--bg);
}

.bg-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.center {
  text-align: center;
}

.section-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
}

.section-label.on-dark {
  color: #fff;
  background: rgba(255,255,255,.18);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: "Shippori Mincho B1", "A-OTF テロップ明朝 ProN", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: .02em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.45;
}

.lead,
.text-box p {
  font-size: 17px;
  color: var(--muted);
}

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.note.light {
  color: rgba(255,255,255,.75);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.35;
  transition: transform .15s ease, opacity .15s ease;
}

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

.btn-line {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(6, 199, 85, .22);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-sub {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.cta-row.center {
  justify-content: center;
}

/* HERO */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 82px 0 66px;
  background: var(--blue-dark);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 34, 74, .97) 0%, rgba(8, 48, 101, .91) 43%, rgba(8, 48, 101, .32) 72%, rgba(8, 48, 101, .08) 100%);
}

.hero-visual {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero-inner {
  position: relative;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 14px;
}

.hero-lead {
  margin-bottom: 22px;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.5;
}

.hero p:not(.eyebrow):not(.hero-lead) {
  color: rgba(255,255,255,.86);
}

.hero .cta-row {
  justify-content: center;
}

/* MANGA */
.manga-block {
  padding: 54px 0;
  background: #fff;
}

.manga-block.bg-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.manga-block figure {
  margin: 0;
}

.manga-block img,
.teacher-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, #f7fbff, #eef6ff);
  border: 1px solid var(--line);
}

.manga-block img.is-error,
.teacher-image img.is-error {
  min-height: 280px;
  object-fit: contain;
  padding: 40px 24px;
}

/* WORRY / CARDS */
.check-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 0;
  margin-bottom: 30px;
  list-style: none;
}

.check-cards.compact {
  grid-template-columns: repeat(4, 1fr);
}

.check-cards li {
  position: relative;
  padding: 18px 16px 18px 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(15, 70, 140, 0.06);
}

.check-cards li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.text-box {
  margin-top: 24px;
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 70, 140, 0.06);
}

.text-box p:last-child {
  margin-bottom: 0;
}

.quote-lines {
  color: var(--blue) !important;
  font-weight: 900;
  font-size: 20px !important;
  line-height: 1.8;
}

/* TABLE */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table thead th {
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.compare-table tbody th {
  background: var(--bg);
  text-align: left;
  white-space: nowrap;
}

.compare-table td:nth-child(2) {
  color: var(--blue);
  font-weight: 900;
}

/* RESULTS */
.result-grid,
.voice-grid,
.reason-grid,
.access-grid,
.price-grid {
  display: grid;
  gap: 18px;
}

.result-grid,
.access-grid {
  grid-template-columns: repeat(2, 1fr);
}

.voice-grid,
.reason-grid,
.price-grid {
  grid-template-columns: repeat(3, 1fr);
}

.result-card,
.voice-card,
.reason-card,
.access-card,
.price-card,
.cost-box,
.message-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 70, 140, 0.06);
}

.result-card h3,
.voice-card h3,
.reason-card h3,
.access-card h3,
.price-card h3,
.cost-box h3 {
  color: var(--blue);
}

.voices-in-results {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.reason-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

/* MESSAGE */
.message-box {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
}

.teacher-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.teacher-name {
  margin: 12px 0 0;
  color: var(--blue-dark);
  font-weight: 800;
  text-align: center;
}

/* ACCESS */
.map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 16px;
  padding: 12px 20px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.map-link:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

/* PRICE */
.price-card p {
  margin-bottom: 10px;
}

.cost-box {
  margin-top: 20px;
}

.cost-box p:last-child {
  margin-bottom: 0;
}

/* CAMPAIGN */
.campaign {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
}

.campaign h2,
.campaign .lead {
  color: #fff;
}

.campaign-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.campaign-list li {
  position: relative;
  padding: 18px 14px 18px 40px;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 900;
}

.campaign-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  color: #fff;
}

/* FINAL CTA */
.final-cta {
  background: var(--blue-dark);
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  color: rgba(255,255,255,.88);
}

.final-cta .btn-sub {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

.tel {
  margin-top: 28px;
  font-size: 22px;
  font-weight: 900;
}

.tel a {
  color: #fff;
}

/* FOOTER */
.footer {
  padding: 42px 0 98px;
  background: #06224a;
  color: rgba(255,255,255,.82);
}

.footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.footer h2,
.footer h3 {
  color: #fff;
}

/* FIXED CTA */
.fixed-cta {
  position: fixed;
  z-index: 99;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: none;
  width: min(520px, calc(100% - 24px));
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 30px rgba(0,0,0,.22);
}

.fixed-cta a {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.fixed-cta a:first-child {
  background: var(--green);
}

.fixed-cta a:last-child {
  background: var(--blue);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .message-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .check-cards,
  .check-cards.compact,
  .voice-grid,
  .reason-grid,
  .price-grid,
  .campaign-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .teacher-image {
    max-width: 240px;
  }
}

@media (max-width: 640px) {
  .container,
  .container.narrow {
    width: min(100% - 28px, 1080px);
  }

  .section {
    padding: 54px 0;
  }

  .hero {
    min-height: 690px;
    padding: 54px 0 46px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(6, 34, 74, .82) 0%, rgba(6, 34, 74, .9) 45%, rgba(6, 34, 74, .98) 100%);
  }

  .hero-visual {
    object-position: 64% center;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .check-cards,
  .check-cards.compact,
  .voice-grid,
  .reason-grid,
  .price-grid,
  .campaign-list {
    grid-template-columns: 1fr;
  }

  .fixed-cta {
    display: flex;
  }

  .footer {
    padding-bottom: 108px;
  }
}
