/* 合格！Quest v3 — bright poster style borrowed from the 合格社会クエスト store art.
   Loaded after quest.css: re-tokens every page, then styles the new home sections (.v-*). */
:root {
  --ink: #1f3350;
  --muted: #4e5f78;
  --sky: #2b9ae8;
  --sky-deep: #1670c6;
  --sky-soft: #e8f6ff;
  --mint-c: #0f9a7a;
  --mint-text: #0d7f68;
  --mint-soft: #e2f7f0;
  --sun: #ffcd3c;
  --sun-soft: #fff4cf;
  --coral: #cc461b;
  --purple: #7b5ce0;
  --paper: #fffdf6;
  --line: #e2e9f3;
  --round: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Noto Sans JP', sans-serif;
  /* legacy tokens used by quest.css */
  --green: var(--sky-deep);
  --orange: var(--coral);
  --mint: var(--mint-soft);
  --yellow: var(--sun);
  --radius: 22px;
}

body { background: var(--paper); color: var(--ink); }
p { color: var(--muted); }
h1, h2, h3, .brand strong { font-family: var(--round); font-weight: 800; letter-spacing: .01em; color: var(--ink); }
h1 { font-weight: 900; }
:focus-visible { outline: 3px solid var(--coral) !important; outline-offset: 4px; }

/* ---------- header / brand ---------- */
.header { height: 76px; background: #ffffffee; border-bottom: 0; box-shadow: 0 2px 0 #e7eef7; }
.brand img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 3px 0 #d4e3f3; }
.brand small { color: var(--sky-deep); font-weight: 700; letter-spacing: .06em; }
.brand strong { font-size: 25px; font-weight: 900; }
.nav { font-family: var(--round); font-size: 14px; font-weight: 800; gap: 26px; }
.nav a:hover { color: var(--sky-deep); }
.mobile-menu summary { white-space: nowrap; font-family: var(--round); }
.mobile-menu nav { top: 75px; background: #fff; }

/* ---------- buttons ---------- */
.button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 12px 28px; border-radius: 999px; border: 0;
  font-family: var(--round); font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
  background: var(--sky-deep); color: #fff; box-shadow: 0 5px 0 #0f4f8f;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #0f4f8f; background: var(--sky-deep); }
.button:active, .btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #0f4f8f; }
.button.orange, .btn-coral { background: var(--coral); box-shadow: 0 5px 0 #8f3010; }
.button.orange:hover, .btn-coral:hover { background: var(--coral); box-shadow: 0 7px 0 #8f3010; }
.button.outline, .btn-ghost { background: #fff; color: var(--ink); box-shadow: 0 5px 0 #c9d7e8; border: 2px solid #c9d7e8; }
.button.outline:hover, .btn-ghost:hover { background: #fff; box-shadow: 0 7px 0 #c9d7e8; }
.btn-sky { background: var(--sky-deep); box-shadow: 0 5px 0 #0f4f8f; }
.button.small { min-height: 44px; font-size: 13px; padding: 8px 20px; box-shadow: 0 4px 0 #8f3010; background: var(--coral); }
.btn b, .button span { font-weight: 900; }
.text-link { font-family: var(--round); font-weight: 800; color: var(--sky-deep); }

/* ---------- labels ---------- */
.kicker, .eyebrow, .tag-star {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 16px 6px 12px; border-radius: 999px; border: 0;
  background: var(--sun-soft); color: #8a5b00;
  font-family: var(--round); font-size: 13px; font-weight: 800; letter-spacing: .04em; margin-bottom: 16px;
}
.kicker:before, .eyebrow:before, .tag-star:before {
  content: ''; width: 15px; height: 15px; flex: none; background: var(--sun);
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 77%, 20% 100%, 30% 60%, 0 38%, 38% 35%);
}
mark { background: linear-gradient(transparent 60%, #ffe27a 60%, #ffe27a 92%, transparent 92%); color: inherit; padding: 0 .05em; }

/* ---------- stores ---------- */
.store { background: #14171c; border-radius: 14px; min-width: 196px; padding: 11px 22px; box-shadow: 0 5px 0 #000; transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store strong { font-family: var(--round); font-weight: 800; }

/* ---------- legacy section backgrounds → bright ---------- */
.section, .section.white, .record-section, .depth-section, #courses.section { background: var(--paper); }
.section.white { background: #fff; }
.section.mint, .section.family-section, .free-section { background: linear-gradient(180deg, var(--mint-soft), #fff); }
.learning-showcase { background: linear-gradient(180deg, var(--sky-soft), #fff); }
.section.kingdom { background: linear-gradient(180deg, #c9ecff, #eaf8ff); color: var(--ink); }
.section.kingdom h2, .section.kingdom p, .section.kingdom .kicker { color: inherit; }
.section#download { background: var(--sky-soft); }

/* cards on sub pages */
.price, .faq details, .unit-group, .topic, .gallery figure { border-radius: 20px; }
.price.featured { border: 3px solid var(--coral); box-shadow: 0 8px 0 #ffd6c8; }
.recommend { background: var(--coral); color: #fff; font-family: var(--round); }
.course-numbers div { border-radius: 14px; }
.course-numbers dd { font-family: var(--round); font-weight: 900; }

/* ---------- shared section frame ---------- */
.v-sec, .v-hero, .v-download { position: relative; isolation: isolate; overflow: hidden; }
.v-sec { padding: 104px 0; }
.bg { position: absolute; inset: 0; z-index: -2; }
.bg img { width: 100%; height: 100%; object-fit: cover; }
.v-head { max-width: 760px; margin-bottom: 44px; }
.v-head h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.3; font-weight: 900; word-break: keep-all; overflow-wrap: anywhere; }
.v-head .lead { margin-top: 20px; font-size: 17px; line-height: 1.95; max-width: 640px; }
.center { text-align: center; }
.fine { color: #66748a; }
.checks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.checks svg { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; color: var(--mint-c); }
.checks b { color: var(--sky-deep); }

/* ---------- hero ---------- */
.v-hero { padding: 36px 0 150px; }
.v-hero .bg img { object-position: 78% 100%; }
.v-hero:before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, #ffffffe6 0%, #ffffffc4 38%, #ffffff30 62%, #fff0 75%); }
.v-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.v-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; font-family: var(--round); font-weight: 800; }
.v-tags span { padding: 6px 16px; border-radius: 999px; font-size: 15px; }
.t-navy { background: var(--ink); color: #fff; }
.t-white { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.t-plus { color: var(--ink); padding: 0 !important; font-size: 20px !important; }
.v-hero h1 { font-size: clamp(34px, 4.1vw, 58px); line-height: 1.25; }
.mega-note { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.mega-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin: 14px 0 6px; isolation: isolate; }
.mega, .num { position: relative; display: inline-block; font-family: var(--round); font-weight: 900; line-height: 1; letter-spacing: -.01em; }
.mega { font-size: clamp(60px, 7.4vw, 108px);
  background: linear-gradient(180deg, #ff9420 0%, #f0602a 55%, #d8401f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mega:before { content: attr(data-n); content: attr(data-n) / ""; position: absolute; inset: 0; z-index: -1; -webkit-text-fill-color: #fff; -webkit-text-stroke: 14px #fff; text-shadow: 0 7px 0 #1f335024; }
.mega-unit { font-family: var(--round); font-weight: 900; font-size: clamp(24px, 2.6vw, 38px); color: var(--ink); margin-right: 14px; }
.banner { margin: 10px 0 4px; }
.banner span { display: inline-block; padding: 11px 34px; font-family: var(--round); font-weight: 900; font-size: clamp(17px, 1.7vw, 22px); color: #fff;
  background: linear-gradient(180deg, #2e95f2, #1663c4); clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%); text-shadow: 0 2px 0 #0e4a8f; }
.v-hero .actions { margin: 26px 0 10px; }
.v-hero-art { position: relative; min-height: 600px; }
.shelf { position: relative; height: 470px; margin-top: 30px; }
.book { position: absolute; top: 0; width: 38%; padding: 7px; background: #fff; border-radius: 16px; box-shadow: 0 16px 30px #1f33502e, 0 0 0 3px var(--c);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), z-index 0s; }
.book img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 10px; }
.book-tab { position: absolute; top: -17px; left: 14px; z-index: 1; padding: 3px 16px; border-radius: 999px; background: var(--c); color: #fff; font-family: var(--round); font-weight: 900; font-size: 16px; box-shadow: 0 3px 0 #1f335033; }
.b0 { left: 0; top: 70px; transform: rotate(-9deg); z-index: 1; }
.b1 { left: 21%; top: 18px; transform: rotate(-3deg); z-index: 2; }
.b2 { left: 42%; top: 32px; transform: rotate(4deg); z-index: 3; }
.b3 { left: 62%; top: 86px; transform: rotate(10deg); z-index: 4; }
.book:hover, .book:focus-visible { transform: translateY(-14px) rotate(0) scale(1.04); z-index: 10; }
.hero-rika { position: absolute; left: -46px; bottom: 10px; width: 190px; z-index: 12; filter: drop-shadow(0 8px 10px #1f335033); }
.bubble-say { position: absolute; left: 118px; bottom: 150px; z-index: 12; padding: 10px 16px; background: #fff; border: 3px solid var(--ink); border-radius: 18px;
  font-family: var(--round); font-weight: 800; font-size: 15px; line-height: 1.4; color: var(--ink); }
.bubble-say:after { content: ''; position: absolute; left: 14px; bottom: -12px; width: 18px; height: 18px; background: #fff; border: 3px solid var(--ink); border-top: 0; border-left: 0; transform: rotate(45deg) skew(10deg, 10deg); }
.stamp { position: absolute; right: -6px; top: -8px; z-index: 12; width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--coral); color: #fff; font-family: var(--round); line-height: 1.15; transform: rotate(12deg); box-shadow: 0 0 0 5px #fff, 0 8px 18px #8f301055; }
.stamp b { font-size: 30px; font-weight: 900; }
.stamp small { font-size: 13px; font-weight: 800; }
.more-courses { position: relative; z-index: 11; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0 0 150px; padding: 14px 16px; background: #ffffffe6; border-radius: 18px; box-shadow: 0 6px 18px #1f33501a; }
.more-courses span { font-family: var(--round); font-weight: 900; color: var(--ink); margin-right: 4px; }
.more-courses a { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #fff; text-decoration: none; box-shadow: inset 0 0 0 2px var(--c); color: var(--ink); }
.more-courses a:hover { background: var(--c); color: #fff; }

/* ---------- stats board ---------- */
.v-stats { position: relative; z-index: 5; margin-top: -96px; padding-bottom: 20px; }
.stat-board { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: #fff; border-radius: 28px; box-shadow: 0 10px 0 #d9e9f8, 0 18px 40px #1f33501a; padding: 26px 10px; }
.stat-board div { text-align: center; padding: 6px 14px; border-left: 2px dashed #e2e9f3; }
.stat-board div:first-child { border-left: 0; }
.stat-board dt { display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--sky-soft); color: var(--sky-deep); font-family: var(--round); font-weight: 900; font-size: 14px; }
.stat-board dd { margin: 8px 0 0; }
.stat-board .num { font-size: clamp(38px, 4vw, 56px); color: var(--ink); }
.stat-board small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.stat-notes { max-width: 820px; margin: 14px auto 0; font-size: 12px; color: var(--muted); }
.stat-notes summary { cursor: pointer; text-align: center; font-weight: 700; color: var(--sky-deep); }
.stat-notes p { font-size: 12px; margin-top: 8px; }
.stat-dl { text-align: center; font-size: 13px; margin-top: 16px; }
.stat-dl b { font-family: var(--round); color: var(--ink); font-size: 15px; }

/* ---------- 4 subjects ---------- */
.v-school4 { padding-top: 90px; background: #fdf7ec; }
.bg-top img { height: auto; object-fit: initial; }
.v-school4 .bg img { object-position: center; }
.v-school4 .v-head, .v-learn .v-head, .v-catalog .v-head, .v-faq .v-head { margin-inline: auto; text-align: center; }
.v-school4 .v-head .lead, .v-learn .v-head .lead, .v-catalog .v-head .lead { margin-inline: auto; }
.v-school4 .tag-star, .v-learn .tag-star, .v-catalog .tag-star, .v-faq .tag-star { margin-inline: auto; }
.subj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.subj { background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 3px var(--c), 0 10px 0 var(--bg), 0 10px 0 3px var(--c); display: flex; flex-direction: column; }
.subj header { background: var(--c); padding: 16px 26px 14px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.subj h3 { color: #fff; font-size: 32px; font-weight: 900; }
.subj header p { color: #fff; font-size: 14px; font-weight: 700; }
.subj header b { font-family: var(--round); font-size: 20px; font-weight: 900; }
.subj header span { opacity: .7; margin: 0 4px; }
.subj-media { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: end; padding: 24px 26px 6px; background: var(--bg); }
.subj-media .preview-link img { width: 100%; height: 340px; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 6px 14px #1f335022; }
.subj .preview-hint { display: none; }
.phone-mini { justify-self: center; width: 100%; max-width: 168px; padding: 7px; background: #1f2a3d; border-radius: 26px; box-shadow: 0 10px 18px #1f335033; transform: translateY(-4px) rotate(3deg); }
.phone-mini img { width: 100%; height: 326px; object-fit: cover; object-position: top; border-radius: 20px; }
.subj-domains { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 26px 4px; margin: 0; }
.subj-domains li { padding: 4px 6px 4px 14px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.subj-domains small { background: #fff; color: var(--c); border-radius: 999px; padding: 0 9px; font-weight: 900; font-size: 12px; }
.go { margin: auto 26px 24px; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; font-family: var(--round); font-weight: 800; text-decoration: none; color: var(--c); border-top: 2px dashed #e7edf5; }
.go b { width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; transition: transform .2s; }
.go:hover b { transform: translateX(4px); }
.v-school4 > .wrap > .fine { margin-top: 26px; }

/* ---------- learning flow ---------- */
.v-learn { background: var(--sky-soft); }
.v-learn .bg img { object-position: center bottom; }
.flow3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; counter-reset: f; }
.flow3 > li { position: relative; background: #fff; border-radius: 26px; padding: 34px 24px 24px; box-shadow: 0 8px 0 #d6e8f6; }
.flow3 > li:not(:last-child):after { content: ''; position: absolute; right: -24px; top: 46%; z-index: 2; width: 22px; height: 26px; background: var(--sun); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.f-no { position: absolute; top: -20px; left: 22px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--round); font-weight: 900; font-size: 24px; box-shadow: 0 0 0 4px #fff; }
.f1 .f-no { background: var(--sky); } .f2 .f-no { background: var(--coral); } .f3 .f-no { background: var(--mint-c); }
.flow3 h3 { font-size: 22px; margin-bottom: 16px; }
.flow3 .preview-link img { width: 100%; border-radius: 14px; border: 3px solid #f1f5fa; }
.flow3 .preview-hint { font-size: 12px; }
.flow3 p { font-size: 15px; margin-top: 12px; line-height: 1.8; }
.flow3 .q { font-weight: 800; color: var(--ink); background: var(--sky-soft); border-radius: 12px; padding: 10px 14px; }
.voice-card { background: linear-gradient(160deg, #e2f7f0, #e8f6ff); border-radius: 18px; padding: 22px 18px 18px; text-align: center; }
.voice-card p { font-weight: 800; color: var(--ink); margin: 6px 0 12px; }
.voice-card audio { width: 100%; }
.voice-icon { display: inline-flex; gap: 6px; align-items: center; height: 54px; }
.voice-icon i { width: 9px; border-radius: 9px; background: var(--mint-c); }
.voice-card.playing .voice-icon i { animation: v-bar 1.1s ease-in-out infinite; }
.voice-icon i:nth-child(1) { height: 18px; } .voice-icon i:nth-child(2) { height: 38px; animation-delay: .15s; } .voice-icon i:nth-child(3) { height: 52px; animation-delay: .3s; background: var(--sky); } .voice-icon i:nth-child(4) { height: 34px; animation-delay: .45s; } .voice-icon i:nth-child(5) { height: 16px; animation-delay: .6s; }
@keyframes v-bar { 50% { transform: scaleY(.55); } }
.learn-foot { display: flex; align-items: center; gap: 20px; margin-top: 40px; }
.learn-rika { width: 150px; flex: none; filter: drop-shadow(0 6px 8px #1f335022); }
.round-stamp { flex: none; width: 128px; height: 128px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: #d23a5c; color: #fff;
  font-family: var(--round); font-weight: 800; font-size: 15px; line-height: 1.35; box-shadow: 0 0 0 5px #fff, 0 6px 16px #d9405f44; transform: rotate(-8deg); }
.round-stamp b { font-size: 24px; font-weight: 900; }
.learn-foot .fine { background: #ffffffd9; border-radius: 14px; padding: 12px 16px; }

/* ---------- levels ---------- */
.v-levels { background: radial-gradient(#dbeefc 1.4px, transparent 1.4px) 0 0 / 22px 22px, #fff; }
.v-levels-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: end; }
.stairs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.stairs li { position: relative; border-radius: 20px 20px 10px 10px; padding: 18px 14px 18px; color: #fff; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 8px 0 #1f335022; }
.stairs .lv0 { min-height: 190px; background: linear-gradient(180deg, #0f8a70, #0b6d59); }
.stairs .lv1 { min-height: 240px; background: linear-gradient(180deg, #1670c6, #125ea8); }
.stairs .lv2 { min-height: 290px; background: linear-gradient(180deg, #6a4bd0, #5a3dbb); }
.stairs .lv3 { min-height: 340px; background: linear-gradient(180deg, #cc461b, #b33a14); }
.lv-num { font-family: var(--round); font-weight: 900; font-size: clamp(40px, 4vw, 58px); line-height: 1; text-shadow: 0 3px 0 #0003; }
.stairs b { font-family: var(--round); font-size: 20px; font-weight: 900; }
.stairs small { font-size: 13px; line-height: 1.5; opacity: .95; }
.stairs em { margin-top: auto; align-self: flex-start; font-style: normal; font-family: var(--round); font-weight: 900; font-size: 13px; padding: 3px 12px; border-radius: 999px; background: #fff; }
.stairs em.free { color: var(--mint-text); }
.stairs em.pro { color: #6b4500; background: var(--sun); }

/* ---------- catalog ---------- */
.v-catalog { background: linear-gradient(180deg, var(--sky-soft), #fff 60%); }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.filter { --c: var(--ink); font-family: var(--round); font-weight: 800; font-size: 15px; border: 0; background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 999px; cursor: pointer; box-shadow: inset 0 0 0 2px #d5e1ee, 0 4px 0 #d5e1ee; display: inline-flex; gap: 8px; align-items: center; }
.filter small { background: var(--sky-soft); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.filter[aria-pressed="true"] { background: var(--c); color: #fff; box-shadow: 0 4px 0 #1f335044; }
.filter[aria-pressed="true"] small { background: #ffffff33; color: #fff; }
.ccard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ccard { background: #fff; border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; box-shadow: 0 0 0 2px #e5ecf5, 0 7px 0 #e5ecf5; transition: transform .2s, box-shadow .2s; }
.ccard:hover { transform: translateY(-5px); box-shadow: 0 0 0 3px var(--c), 0 10px 0 var(--c); }
.ccard[hidden] { display: none; }
.ccard-img { border-top: 7px solid var(--c); background: #f5f8fc; }
.ccard-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.ccard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.ccard-body small { color: var(--c); font-weight: 800; font-size: 12px; }
.ccard-body h3 { font-size: 22px; margin: 2px 0 8px; }
.ccard-num { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 0; }
.ccard-num div { background: #f4f7fb; border-radius: 10px; padding: 5px 4px; text-align: center; }
.ccard-num dt { font-size: 11px; color: var(--muted); font-weight: 700; line-height: 1.3; }
.ccard-num dd { margin: 0; font-family: var(--round); font-weight: 900; font-size: 16px; color: var(--ink); line-height: 1.3; }
.ccard-body > p:not(.ccard-num) { font-size: 13px; margin: 8px 0 12px; line-height: 1.7; }
.ccard-go { margin-top: auto; font-family: var(--round); font-weight: 800; font-size: 14px; color: var(--c); display: flex; justify-content: space-between; align-items: center; }
.ccard-go b { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; }
.v-catalog .fine { text-align: center; margin-top: 8px; }

/* ---------- kingdom ---------- */
.v-kingdom .bg img { object-position: 85% center; }
.v-kingdom:before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #ffffffeb 0%, #ffffffb8 40%, #ffffff40 70%, #fff0 100%); }
.v-kingdom-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 46px; align-items: center; }
.k-steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.k-steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 5px 0 #d6e8f6; }
.k-steps li > b { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); font-family: var(--round); font-weight: 900; font-size: 18px; }
.k-steps strong { font-family: var(--round); font-weight: 800; font-size: 17px; }
.k-steps p { font-size: 14px; }
.ipad { padding: 14px; background: #1f2a3d; border-radius: 30px; box-shadow: 0 24px 40px #1f335040; }
.ipad img { border-radius: 18px; width: 100%; }
.ipad .preview-hint { display: none; }
.k-polaroids { display: flex; gap: 18px; justify-content: center; margin: -46px 0 0; position: relative; }
.k-polaroids figure { margin: 0; width: 200px; background: #fff; padding: 8px 8px 4px; border-radius: 10px; box-shadow: 0 10px 20px #1f335033; transform: rotate(-4deg); }
.k-polaroids figure + figure { transform: rotate(5deg); }
.k-polaroids img { border-radius: 6px; aspect-ratio: 6 / 5; object-fit: cover; }
.k-polaroids figcaption { font-family: var(--round); font-weight: 800; font-size: 13px; text-align: center; padding: 6px 0 2px; color: var(--ink); }
.k-shots .fine { margin-top: 18px; background: #ffffffd9; padding: 10px 14px; border-radius: 12px; }

/* ---------- free ---------- */
.v-free .bg img { object-position: center; }
.v-free-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.ticket { background: #fff; border-radius: 28px; padding: 26px 28px 20px; box-shadow: 0 0 0 3px var(--sun), 0 10px 0 #f3d36a; }
.ticket table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ticket caption { font-family: var(--round); font-weight: 900; font-size: 20px; color: var(--ink); text-align: left; margin-bottom: 12px; }
.ticket th, .ticket td { padding: 13px 10px; border-bottom: 2px dashed #eef1f5; text-align: left; }
.ticket thead th { font-family: var(--round); font-weight: 900; font-size: 16px; border-bottom: 0; }
.ticket thead th:nth-child(2) { color: var(--mint-text); }
.ticket thead th.pro { color: #7a4f00; }
.ticket thead th.pro:after { content: ''; display: inline-block; vertical-align: middle; margin-left: 6px; width: 14px; height: 14px; background: var(--sun); clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 77%, 20% 100%, 30% 60%, 0 38%, 38% 35%); }
.ticket tbody th { font-weight: 800; color: var(--ink); white-space: nowrap; }
.ticket td { font-weight: 700; color: var(--ink); }
.ticket td svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; color: var(--mint-c); }
.ticket td:last-child svg { color: #e0a300; }
.ticket .fine { margin-top: 14px; }

/* ---------- try a quiz ---------- */
.v-try { background: var(--sky-soft); }
.v-try-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.v-try .quiz-card { background: #fff; border-radius: 28px; padding: 30px; box-shadow: 0 0 0 3px #cfe6fa, 0 10px 0 #cfe6fa; border: 0; }
.quiz-label { display: inline-block; background: #e6f7e9; color: #2a8a46; font-weight: 800; font-size: 13px; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.v-try .quiz-card h3 { font-size: 22px; }
.v-try .quiz-card svg { margin: 12px 0; }
.v-try .quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.v-try .quiz-options button { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; border: 0; background: #fff; box-shadow: inset 0 0 0 2px #d5e1ee, 0 4px 0 #d5e1ee; font-family: var(--round); font-weight: 800; font-size: 18px; color: var(--ink); cursor: pointer; transition: transform .12s; }
.v-try .quiz-options button:hover { transform: translateY(-2px); }
.v-try .quiz-options i { font-style: normal; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 15px; background: var(--sky); }
.v-try .quiz-options button:nth-child(2) i { background: var(--coral); } .v-try .quiz-options button:nth-child(3) i { background: var(--mint-c); } .v-try .quiz-options button:nth-child(4) i { background: var(--purple); }
.v-try .quiz-options [aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--coral), 0 4px 0 var(--coral); }
.v-try .quiz-options [data-answer="2"][aria-pressed="true"] { box-shadow: inset 0 0 0 3px #34c775, 0 4px 0 #34c775; background: #eafaf0; }
.v-try .quiz-result { margin-top: 16px; font-size: 15px; }
.v-try .quiz-result strong { font-family: var(--round); color: var(--coral); font-size: 18px; }

/* ---------- family ---------- */
.v-family { background: #fff; }
.v-family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.fam-photo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 20px; }
.fam-photo .preview-link { display: block; background: #fff; padding: 8px; border-radius: 16px; box-shadow: 0 14px 26px #1f335026; transform: rotate(-4deg); }
.fam-photo .preview-link + .preview-link { transform: rotate(4deg) translateY(30px); }
.fam-photo img { border-radius: 10px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.fam-photo .preview-hint { display: none; }

/* ---------- faq ---------- */
.v-faq { background: linear-gradient(180deg, #fff, var(--sky-soft)); }
.v-faq .faq { max-width: 860px; margin: 0 auto 26px; background: none; padding: 0; display: grid; gap: 12px; }
.v-faq .faq details { background: #fff; border: 0; border-radius: 18px; padding: 4px 22px; box-shadow: 0 4px 0 #d6e8f6; }
.v-faq .faq summary { font-family: var(--round); font-weight: 800; font-size: 17px; padding: 16px 0; }
.v-faq .faq p { padding-bottom: 18px; }

/* ---------- download ---------- */
.v-download { padding: 120px 0 130px; }
.v-download .bg img { object-position: center 70%; }
.dl-card { position: relative; max-width: 780px; margin: 0 auto; text-align: center; background: #ffffffee; border-radius: 36px; padding: 70px 40px 44px; box-shadow: 0 12px 0 #cfe6fa, 0 24px 50px #1f335026; }
.dl-card .tag-star { margin-inline: auto; }
.dl-card h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.25; font-weight: 900; margin-bottom: 16px; }
.dl-card > p:not(.fine):not(.tag-star) { font-size: 17px; }
.dl-card .actions { justify-content: center; margin: 26px 0 16px; }
.dl-rika { position: absolute; top: -120px; left: 50%; width: 180px; transform: translateX(-50%); filter: drop-shadow(0 8px 10px #1f335033); }

/* ---------- footer / sticky ---------- */
.footer { background: #eaf6ff; border-top: 0; }
.sticky-cta { background: #ffffffef; box-shadow: 0 -3px 0 #e2ecf7; border-top: 0; }
.sticky-cta .button { background: var(--coral); box-shadow: 0 4px 0 #8f3010; border-radius: 999px; }
.sticky-cta span { font-family: var(--round); }

@media (prefers-reduced-motion: reduce) {
  .voice-icon i { animation: none; }
  .book, .button, .btn, .ccard, .store { transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .v-hero-grid { grid-template-columns: 1fr; }
  .v-hero-art { max-width: 640px; width: 100%; margin: 10px auto 0; min-height: 560px; }
  .v-hero:before { background: linear-gradient(180deg, #ffffffd9 0%, #ffffffa6 45%, #fff3 100%); }
  .ccard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow3 { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; gap: 40px; }
  .flow3 > li:not(:last-child):after { right: auto; left: 50%; top: auto; bottom: -32px; transform: translateX(-50%) rotate(90deg); }
  .v-levels-grid, .v-kingdom-grid, .v-free-grid, .v-try-grid, .v-family-grid { grid-template-columns: 1fr; }
  .v-kingdom:before { background: linear-gradient(180deg, #ffffffe6, #ffffffb3 50%, #ffffff66); }
}
@media (max-width: 900px) {
  .subj-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .stat-board { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stat-board div:nth-child(3) { border-left: 0; }
}

/* ---------- phone ---------- */
@media (max-width: 700px) {
  .header { height: 66px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 21px; }
  .v-sec { padding: 72px 0; }
  .v-head { margin-bottom: 30px; }
  .v-head .lead { font-size: 15px; }
  .v-head .lead br { display: none; }
  .v-hero { padding: 22px 0 120px; }
  .v-hero h1 { font-size: 31px; }
  .mega { font-size: 64px; }
  .mega:before { -webkit-text-stroke: 11px #fff; }
  .mega-unit { font-size: 22px; margin-right: 8px; }
  .banner span { font-size: 16px; padding: 9px 24px; }
  .checks li { font-size: 15px; }
  .v-hero .actions .store { flex: 1 1 150px; min-width: 0; padding: 10px 12px; }
  .v-hero-art { min-height: 0; }
  .shelf { height: 330px; margin-top: 34px; }
  .book { width: 42%; padding: 5px; border-radius: 12px; }
  .book-tab { font-size: 13px; padding: 2px 12px; top: -14px; }
  .b0 { left: 0; top: 48px; } .b1 { left: 19%; top: 8px; } .b2 { left: 39%; top: 22px; } .b3 { left: 58%; top: 60px; }
  .hero-rika { width: 118px; left: -10px; bottom: auto; top: 250px; }
  .bubble-say { display: none; }
  .stamp { width: 86px; height: 86px; right: -4px; top: -26px; }
  .stamp b { font-size: 22px; } .stamp small { font-size: 11px; }
  .more-courses { margin: 18px 0 0; padding: 12px; gap: 6px; }
  .more-courses span { width: 100%; }
  .v-stats { margin-top: -84px; }
  .stat-board { padding: 18px 4px; border-radius: 22px; }
  .stat-board .num { font-size: 34px; }
  .subj header { padding: 14px 18px; }
  .subj h3 { font-size: 26px; }
  .subj-media { padding: 18px 16px 4px; gap: 10px; }
  .subj-media .preview-link img { height: 250px; }
  .phone-mini { max-width: 128px; padding: 5px; border-radius: 20px; }
  .phone-mini img { height: 240px; border-radius: 16px; }
  .subj-domains { padding: 16px 16px 2px; }
  .go { margin: auto 18px 18px; }
  .learn-foot { flex-wrap: wrap; justify-content: center; }
  .learn-rika { width: 110px; }
  .round-stamp { width: 104px; height: 104px; font-size: 13px; }
  .round-stamp b { font-size: 20px; }
  .stairs { gap: 7px; }
  .stairs li { padding: 12px 8px; border-radius: 14px 14px 8px 8px; }
  .stairs .lv0 { min-height: 150px; } .stairs .lv1 { min-height: 180px; } .stairs .lv2 { min-height: 210px; } .stairs .lv3 { min-height: 240px; }
  .lv-num { font-size: 34px; }
  .stairs b { font-size: 16px; }
  .stairs small { font-size: 11px; }
  .stairs em { font-size: 11px; padding: 2px 8px; }
  .ccard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ccard-body { padding: 12px; }
  .ccard-body h3 { font-size: 18px; }
  .ccard-body > p:not(.ccard-num) { display: none; }
  .ccard-num dd { font-size: 14px; }
  .ccard-num dt { font-size: 10px; }
  .ccard-go { font-size: 12px; } .ccard-go b { width: 24px; height: 24px; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 10px; }
  .filter { flex: none; }
  .k-polaroids figure { width: 44%; }
  .ipad { padding: 8px; border-radius: 20px; }
  .ticket { padding: 18px 14px 14px; }
  .ticket th, .ticket td { padding: 10px 4px; font-size: 13px; }
  .ticket tbody th { white-space: normal; }
  .v-try .quiz-card { padding: 20px 16px; }
  .v-try .quiz-options button { font-size: 16px; padding: 10px; }
  .fam-photo { padding: 10px 6px 34px; }
  .dl-card { padding: 64px 18px 30px; border-radius: 28px; }
  .dl-rika { width: 130px; top: -92px; }
  .v-head h2, .dl-card h2 { font-size: 26px; }
  .v-school4 .bg { display: none; }
  .v-school4 { background: linear-gradient(180deg, #fff4dc, #fdf7ec 30%); }
  .store { gap: 8px; }
  .store strong { font-size: 17px; white-space: nowrap; }
  .store small { white-space: nowrap; }
  .store svg { width: 20px; height: 24px; }
  .v-download { padding: 110px 0 100px; }
  .dl-card .store { flex: 1 1 150px; min-width: 0; }
}
@media (max-width: 370px) {
  .v-head h2, .dl-card h2 { font-size: 23px; }
  .v-hero h1 { font-size: 27px; }
  .mega { font-size: 54px; }
  .banner span { font-size: 14px; padding: 8px 18px; }
  .v-tags span { font-size: 13px; padding: 5px 12px; }
  .brand small { display: none; }
}

/* ---------- sub pages ---------- */
.hero:not(.v-hero), .detail-hero {
  background: linear-gradient(90deg, #ffffffeb 0%, #ffffffc7 45%, #ffffff4d 75%, #fff0 100%), url('/assets/quest/backgrounds/v3-hero.webp') right bottom / cover no-repeat;
}
@media (max-width: 800px) {
  .hero:not(.v-hero), .detail-hero {
    background: linear-gradient(180deg, #ffffffe6, #ffffffbf 60%, #ffffff80), url('/assets/quest/backgrounds/v3-hero-m.webp') center bottom / cover no-repeat;
  }
}
h2 em, .kingdom h2 em, .hero h1 em { font-style: normal; color: var(--coral); background: none; }
.detail-visual { background: #fff; border-radius: 28px; box-shadow: 0 0 0 3px #cfe6fa, 0 10px 0 #cfe6fa; }
.detail-visual img { border-radius: 14px; }
.price.featured { background: #fff8f3; }
.qa-toggle { display: inline-flex; gap: 8px; }
.qa-toggle button { font-family: var(--round); font-weight: 800; font-size: 14px; padding: 9px 18px; border-radius: 999px; border: 0; cursor: pointer; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #cfdcea, 0 4px 0 #cfdcea; }
.qa-toggle button[aria-pressed="true"] { background: var(--sun); box-shadow: 0 4px 0 #d9a91f; }

/* 中学受験 科目別ガイド（/quest/juken/） */
.unit-list { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 8px 0 10px; }
.checks-plain { margin: 14px 0 0; padding-left: 1.2em; line-height: 1.9; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.juken-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; font-size: 14px; }
.juken-table caption { text-align: left; font-size: 12px; color: var(--muted); padding: 0 0 10px; }
.juken-table th, .juken-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.juken-table thead th { font-size: 12px; color: var(--muted); white-space: nowrap; }
.juken-table tbody th a { font-weight: 800; }
.juken-table td:last-child { min-width: 14em; }
@media (max-width: 480px) { .detail-hero h1 { font-size: clamp(26px, 7.6vw, 34px); line-height: 1.3; } }
