/* 入試対策方法 — 記事一覧 */
.exam-prep-main {
  padding-top: 72px;
  background: #f7f5f0;
  color: var(--navy);
}

.exam-prep-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 136px) 32px clamp(72px, 9vw, 120px);
  background:
    radial-gradient(circle at 86% 22%, rgba(201, 168, 76, 0.16) 0 9%, transparent 9.5%),
    linear-gradient(135deg, #fff 0%, #f8f4e9 62%, #efe6cf 100%);
}

.exam-prep-hero::before,
.exam-prep-hero::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.exam-prep-hero::before {
  width: 360px;
  height: 360px;
  right: -90px;
  top: -150px;
}

.exam-prep-hero::after {
  width: 190px;
  height: 190px;
  right: 11%;
  bottom: -125px;
}

.exam-prep-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.exam-prep-hero__eyebrow,
.exam-prep-list__eyebrow,
.exam-prep-cta__eyebrow {
  margin: 0 0 18px;
  color: #9c7b28;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.exam-prep-hero__title {
  margin: 0;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(36px, 6vw, 70px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.exam-prep-hero__title span,
.exam-prep-hero__title em {
  display: block;
}

.exam-prep-hero__title em {
  width: fit-content;
  margin-top: 7px;
  padding: 0 0.08em;
  background: linear-gradient(transparent 65%, rgba(201, 168, 76, 0.34) 65%);
  color: var(--navy);
  font-style: normal;
}

.exam-prep-hero__lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: #3d4655;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 2;
}

.exam-prep-list {
  padding: clamp(64px, 8vw, 104px) 32px clamp(80px, 10vw, 128px);
}

.exam-prep-list__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  width: min(1120px, 100%);
  margin: 0 auto 42px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.14);
}

.exam-prep-list__heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
}

.exam-prep-list__heading > p {
  max-width: 520px;
  margin: 0;
  color: #5a606a;
  font-size: 14px;
  line-height: 1.9;
}

.exam-prep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.exam-prep-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(10, 22, 40, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.exam-prep-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(10, 22, 40, 0.11);
}

.exam-prep-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.exam-prep-card__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  background: #e9e4d8;
}

.exam-prep-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.exam-prep-card:hover .exam-prep-card__image { transform: scale(1.035); }

.exam-prep-card__placeholder {
  display: flex;
  height: 100%;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(201,168,76,0.18)),
    var(--navy);
  color: #fff;
}

.exam-prep-card__placeholder::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  right: -58px;
  top: -58px;
  border: 1px solid rgba(201,168,76,0.58);
  border-radius: 50%;
}

.exam-prep-card__placeholder span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.exam-prep-card__placeholder strong {
  margin-top: 5px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px;
  letter-spacing: 0.04em;
}

.exam-prep-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px 25px 27px;
}

.exam-prep-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: #7c8188;
  font-size: 11px;
  letter-spacing: 0.07em;
}

.exam-prep-card__category {
  overflow: hidden;
  max-width: 70%;
  padding: 5px 9px;
  border-radius: 2px;
  background: rgba(201, 168, 76, 0.16);
  color: #80651e;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-prep-card__title {
  margin: 0;
  color: var(--navy);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.65;
}

.exam-prep-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 15px 0 0;
  color: #5c6169;
  font-size: 13px;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.exam-prep-card__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.exam-prep-card__more span {
  color: var(--gold);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.exam-prep-card:hover .exam-prep-card__more span { transform: translateX(4px); }

.exam-prep-pagination { margin-top: 56px; }
.exam-prep-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.exam-prep-pagination a,
.exam-prep-pagination span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(10, 22, 40, 0.14);
  border-radius: 3px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.exam-prep-pagination .current,
.exam-prep-pagination a:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.exam-prep-empty {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 72px 24px;
  border: 1px solid rgba(10, 22, 40, 0.1);
  background: #fff;
  text-align: center;
}
.exam-prep-empty h2 { margin: 0 0 12px; }
.exam-prep-empty p { margin: 0; color: #666; }

.exam-prep-cta {
  padding: clamp(70px, 9vw, 110px) 32px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.exam-prep-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.5;
}
.exam-prep-cta h2 em { color: var(--gold); font-style: normal; }
.exam-prep-cta > p:not(.exam-prep-cta__eyebrow) {
  margin: 22px 0 34px;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.9;
}
.exam-prep-cta .btn-primary { margin: 0 auto; }

@media (max-width: 980px) {
  .exam-prep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam-prep-list__heading { align-items: flex-start; flex-direction: column; gap: 18px; }
}

@media (max-width: 640px) {
  .exam-prep-main { padding-top: 60px; }
  .exam-prep-hero { padding: 66px 20px 62px; }
  .exam-prep-hero::before { width: 220px; height: 220px; right: -95px; top: -90px; }
  .exam-prep-hero::after { display: none; }
  .exam-prep-hero__title { font-size: clamp(32px, 10vw, 43px); }
  .exam-prep-hero__lead br { display: none; }
  .exam-prep-list { padding: 58px 16px 78px; }
  .exam-prep-list__heading { margin-bottom: 28px; }
  .exam-prep-grid { grid-template-columns: 1fr; gap: 20px; }
  .exam-prep-card__body { padding: 22px 20px 24px; }
  .exam-prep-card__title { font-size: 18px; }
  .exam-prep-pagination .page-numbers { flex-wrap: wrap; }
  .exam-prep-pagination a,
  .exam-prep-pagination span { min-width: 38px; height: 38px; padding: 0 10px; }
  .exam-prep-cta { padding: 66px 20px; }
  .exam-prep-cta > p:not(.exam-prep-cta__eyebrow) { font-size: 14px; }
}
