/* 定期テスト対策講座。特設ページと専用バナーのみへ適用します。 */
.exam-page {
  --ink: #153e59;
  --muted: #526d7e;
  --green: #087fac;
  --green-bright: #1294c6;
  --green-dark: #126184;
  --green-soft: #e8f6fc;
  --line: #cce4ee;
  background: #fff;
  color: var(--ink);
}
.exam-page ::selection { background: #b4e9fa; color: #153e59; }
.exam-page .site-header { box-shadow: none; border-color: #d5eaf3; }
.exam-page .brand-mark { background: #43b978; box-shadow: none; }
.exam-page .nav-list a { color: #375e75; }
.exam-page .nav-list .nav-cta { background: #087fac; color: white; }
.exam-page .site-footer { background: #eff8fc; border-top: 1px solid #d5eaf3; }
.exam-page .footer-text, .exam-page .footer-links a { color: #526d7e; }
.exam-page .footer-bottom { color: #526d7e; border-color: #cce4ee; }
.exam-wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.exam-page p { text-wrap: pretty; }
.exam-mobile-offer { display: none; }
.exam-section h2, .exam-feature h3 { text-wrap: balance; }
.exam-page a:focus-visible, .exam-page summary:focus-visible, .exam-promo:focus-visible {
  outline: 3px solid #126184; outline-offset: 5px;
}
.exam-hero { overflow: hidden; background: #e6f7ff; position: relative; }
.exam-hero::after {
  content: ''; position: absolute; width: 680px; height: 680px; border-radius: 50%;
  background: #c8edfc; right: -250px; top: -220px; pointer-events: none;
}
.exam-breadcrumb { position: relative; z-index: 1; display: flex; gap: 12px; align-items: center; padding-top: 22px; font-size: 12px; color: #496a7c; }
.exam-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.exam-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; padding-block: 50px 70px; }
.exam-label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: #126184; margin: 0 0 22px; }
.exam-label::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.exam-audience { margin: 0 0 17px; font-size: 15px; font-weight: 800; }
.exam-audience span { padding: 5px 12px; margin-right: 8px; background: #fff; border: 1px solid #b7dfeF; border-radius: 4px; }
.exam-hero h1 { font-size: clamp(44px, 5.1vw, 66px); letter-spacing: -.035em; line-height: 1.22; margin: 0 0 24px; font-weight: 900; }
.exam-hero h1 span { display: block; }
.exam-hero h1 .exam-title-blue { color: #007eaf; }
.exam-lead { font-size: 19px; line-height: 1.9; font-weight: 800; margin: 0 0 14px; }
.exam-hero-description { font-size: 14px; color: #496a7c; line-height: 1.9; margin: 0; }
.exam-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 18px 24px; min-height: 60px; border: 1px solid #c94e11; border-radius: 7px;
  background: #ff873b; color: #422008; font-size: 16px; font-weight: 900; line-height: 1.6;
  box-shadow: 0 4px 0 #c75219; transition: background .2s, transform .2s;
}
.exam-cta:hover { background: #ff9d60; transform: translateY(-2px); }
.exam-cta span { font-size: 22px; }
.exam-hero .exam-cta { margin-top: 26px; }
.exam-capacity { font-size: 12px; color: #526d7e; margin: 14px 0 0; }
.exam-ticket { background: #fff; border: 1px solid #afd9eb; border-radius: 12px; box-shadow: 12px 14px 0 #bce5f5; text-align: center; transform: rotate(2deg); }
.exam-ticket-top { color: #fff; background: #097fae; border-radius: 11px 11px 0 0; padding: 13px 16px; font-size: 16px; font-weight: 800; letter-spacing: .08em; }
.exam-ticket-main { padding: 28px 24px 24px; }
.exam-ticket-caption { margin: 0; color: #375e75; font-size: 17px; font-weight: 800; }
.exam-price { display: flex; align-items: baseline; justify-content: center; line-height: 1; color: #e05c19; margin: 10px 0 18px; }
.exam-price strong { font-family: Arial, sans-serif; font-size: 142px; font-weight: 800; letter-spacing: -.08em; padding-right: 8px; }
.exam-price span { font-size: 32px; font-weight: 900; }
.exam-price-note { font-size: 13px; color: #526d7e; margin: 0; }
.exam-ticket-bottom { border-top: 2px dashed #cce4ee; padding: 20px 20px 24px; }
.exam-ticket-bottom p { font-weight: 800; font-size: 16px; margin: 0 0 13px; }
.exam-subjects { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.exam-subjects li { display: grid; place-items: center; background: #eaf7fc; color: #126184; width: 48px; height: 48px; border-radius: 50%; font-size: 17px; font-weight: 900; }
.exam-quicknav { border-bottom: 1px solid #d5eaf3; background: white; }
.exam-quicknav .exam-wrap { display: flex; justify-content: center; }
.exam-quicknav a { text-align: center; flex: 1; max-width: 280px; padding: 19px 12px; color: #375e75; font-size: 14px; font-weight: 800; }
.exam-quicknav a:hover { background: #edf9ff; color: #126184; }
.exam-quicknav span { margin-left: 16px; color: #007eaf; }
.exam-section { padding: 82px 0; scroll-margin-top: 100px; }
.exam-section-heading { margin-bottom: 35px; }
.exam-section-heading .exam-label { margin-bottom: 12px; }
.exam-section h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.55; letter-spacing: -.03em; }
.exam-section-intro { color: #526d7e; margin: 15px 0 0; font-size: 15px; }
.exam-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.exam-feature { border-top: 2px solid #88cfe9; padding-top: 22px; }
.exam-feature-num { font-family: Arial, sans-serif; color: #087fac; font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.exam-feature h3 { font-size: 22px; line-height: 1.6; margin: 17px 0 14px; }
.exam-feature h3 span { color: #007eaf; }
.exam-feature p { margin: 0; font-size: 14px; line-height: 2; color: #526d7e; }
.exam-outline { background: #f0f9fd; }
.exam-outline-grid { display: grid; grid-template-columns: .72fr 1.4fr; gap: 65px; }
.exam-outline .exam-section-heading p:last-child { color: #526d7e; font-size: 14px; line-height: 1.9; }
.exam-details { margin: 0; border-top: 2px solid #9dcfe3; }
.exam-details > div { display: grid; grid-template-columns: 105px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid #cce4ee; }
.exam-details dt { font-size: 14px; font-weight: 800; color: #126184; }
.exam-details dd { margin: 0; font-size: 15px; }
.exam-details small { display: block; color: #526d7e; font-size: 13px; margin-top: 3px; }
.exam-details a { display: inline-block; color: #126184; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; margin-top: 7px; }
.exam-schedule { display: inline-block; background: #fff; border: 1px solid #a5d6e9; padding: 4px 15px; border-radius: 4px; font-weight: 800; }
.exam-free { color: #bb4610; font-weight: 900; font-size: 19px; }
.exam-apply-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 70px; align-items: start; }
.exam-apply-copy { font-size: 15px; color: #526d7e; line-height: 1.95; }
.exam-apply-copy strong { color: #153e59; }
.exam-apply .exam-cta { margin-top: 14px; }
.exam-faq { border-top: 1px solid #cce4ee; }
.exam-faq details { border-bottom: 1px solid #cce4ee; }
.exam-faq summary { list-style: none; position: relative; padding: 21px 32px 21px 0; font-size: 15px; font-weight: 800; cursor: pointer; }
.exam-faq summary::-webkit-details-marker { display: none; }
.exam-faq summary::after { content: '+'; position: absolute; right: 4px; top: 17px; color: #007eaf; font-size: 22px; }
.exam-faq details[open] summary::after { content: '−'; }
.exam-faq details p { color: #526d7e; font-size: 14px; line-height: 1.9; margin: 0; padding-bottom: 22px; }
.exam-bottom-note { padding: 26px 24px; background: #d9f1fc; text-align: center; font-weight: 800; font-size: 14px; color: #126184; }
.exam-mobile-cta { display: none; }

/* トップページのリンク付きHTMLバナー。文字を画像化しないためスマホでも鮮明です。 */
.exam-promo-section { padding: 24px 0; background: #fff; }
.exam-promo {
  width: min(1180px, calc(100% - 48px)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  padding: 29px 38px; border: 1px solid #87cfe9; border-left: 6px solid #087fac; border-radius: 10px;
  background: linear-gradient(115deg, #e9f8ff 60%, #cceefa); color: #153e59;
  transition: box-shadow .2s, border-color .2s;
}
.exam-promo:hover { border-color: #087fac; box-shadow: 0 6px 24px #087fac20; }
.exam-promo-label { display: inline-block; color: #126184; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.exam-promo h2 { margin: 4px 0 7px; font-size: clamp(24px, 3vw, 35px); letter-spacing: -.03em; line-height: 1.4; }
.exam-promo-copy p { margin: 0; color: #375e75; font-weight: 700; font-size: 14px; }
.exam-promo-offer { text-align: center; }
.exam-promo-offer > span { display: block; font-size: 12px; font-weight: 800; }
.exam-promo-offer strong { display: block; line-height: 1.45; color: #bd4710; font-size: 29px; font-weight: 900; }
.exam-promo-offer small { display: block; color: #526d7e; font-size: 12px; }
.exam-promo-button { margin-top: 10px; padding: 8px 20px; background: #ff873b; color: #422008; border-radius: 5px; font-size: 13px; font-weight: 900; }
@media (max-width: 920px) {
  .exam-hero-grid { gap: 36px; }
  .exam-hero h1 { font-size: 48px; }
  .exam-price strong { font-size: 116px; }
  .exam-ticket-main { padding-inline: 15px; }
  .exam-subjects { gap: 6px; }
  .exam-subjects li { width: 40px; height: 40px; font-size: 15px; }
  .exam-outline-grid, .exam-apply-grid { gap: 36px; }
  .exam-features { gap: 22px; }
  .exam-feature h3 { font-size: 20px; }
}
@media (max-width: 700px) {
  .exam-wrap { width: calc(100% - 40px); }
  .exam-hero-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 30px 42px; }
  .exam-hero::after { width: 440px; height: 440px; right: -260px; top: -140px; }
  .exam-breadcrumb { font-size: 11px; padding-top: 16px; }
  .exam-label { font-size: 11px; margin-bottom: 18px; }
  .exam-hero h1 { font-size: clamp(40px, 11vw, 60px); margin-bottom: 20px; }
  .exam-mobile-offer { display: block; margin: 0 0 22px; }
  .exam-mobile-offer strong { display: block; color: #bb4610; font-size: 17px; }
  .exam-mobile-offer small { display: block; color: #526d7e; font-size: 12px; margin-top: 4px; }
  .exam-audience { font-size: 13px; }
  .exam-lead { font-size: 17px; }
  .exam-hero-description { font-size: 13px; }
  .exam-hero .exam-cta { width: 100%; margin-top: 23px; }
  .exam-cta { font-size: 14px; padding: 16px 20px; }
  .exam-ticket { width: min(400px, calc(100% - 10px)); margin: 0 auto; transform: rotate(1deg); box-shadow: 7px 8px 0 #bce5f5; }
  .exam-ticket-top { padding: 10px 14px; font-size: 14px; }
  .exam-ticket-main { padding: 20px; }
  .exam-price { margin-block: 6px 12px; }
  .exam-price strong { font-size: 108px; }
  .exam-ticket-bottom { padding: 16px 20px 20px; }
  .exam-ticket-caption { font-size: 15px; }
  .exam-quicknav .exam-wrap { width: 100%; }
  .exam-quicknav a { font-size: 12px; padding: 16px 6px; }
  .exam-quicknav span { margin-left: 5px; }
  .exam-section { padding-block: 52px; scroll-margin-top: 78px; }
  .exam-section-heading { margin-bottom: 28px; }
  .exam-features, .exam-outline-grid, .exam-apply-grid { grid-template-columns: 1fr; gap: 28px; }
  .exam-outline-grid > .exam-section-heading { margin-bottom: 0; }
  .exam-feature { padding-top: 16px; }
  .exam-feature h3 { margin-top: 8px; font-size: 22px; }
  .exam-feature h3 br { display: none; }
  .exam-details > div { grid-template-columns: 75px 1fr; gap: 14px; padding-block: 18px; }
  .exam-details dd { font-size: 14px; }
  .exam-apply .exam-cta { width: 100%; }
  .exam-page { padding-bottom: 85px; }
  .exam-mobile-cta { display: block; position: fixed; z-index: 900; bottom: 0; left: 0; right: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid #cce4ee; }
  .exam-mobile-cta .exam-cta { width: 100%; min-height: 48px; padding: 10px 18px; box-shadow: 0 3px 0 #c75219; }
  .exam-promo-section { padding: 16px 0; }
  .exam-promo { width: calc(100% - 24px); grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .exam-promo-label { font-size: 11px; }
  .exam-promo h2 { font-size: clamp(23px, 6.3vw, 32px); }
  .exam-promo-copy p { font-size: 12px; }
  .exam-promo-offer { border-top: 1px solid #a8d9eb; padding-top: 12px; }
  .exam-promo-offer strong { font-size: 28px; }
  .exam-promo-button { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .exam-cta, .exam-promo { transition: none; }
}
