:root {
  color-scheme: light;
}

.main-content-area {
  background-color: #eef3fb;
  display: flex;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  width: min(70%, 1120px);
  margin: 0 auto;
}

.toeic-landing {
  width: min(100%, 1040px);
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 4vw, 2.8rem);
  padding: 0 clamp(1.25rem, 4vw, 2.25rem);
  box-sizing: border-box;
}

.toeic-hero {
  background: linear-gradient(135deg, rgba(32, 78, 140, 0.12), rgba(79, 128, 201, 0.16));
  border: 1px solid rgba(41, 91, 165, 0.18);
  border-radius: 22px;
  padding: clamp(1.75rem, 4vw, 2.8rem);
  box-shadow: 0 18px 36px rgba(20, 40, 80, 0.08);
  display: grid;
  gap: clamp(0.8rem, 2vw, 1.2rem);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background-color: rgba(33, 76, 137, 0.18);
  color: #1d3f6e;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.toeic-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: #12274b;
  line-height: 1.25;
}

.hero-lead {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.75;
  color: #1f2f4d;
}

.toeic-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  box-shadow: 0 16px 32px rgba(16, 42, 87, 0.08);
  border: 1px solid rgba(32, 78, 140, 0.08);
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.8rem);
}

.toeic-card h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: #12305c;
}

.toeic-card p {
  margin: 0;
  color: #314362;
  line-height: 1.7;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background-color: rgba(49, 84, 145, 0.1);
  color: #1f3c6f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.link-chip:hover,
.link-chip:focus-visible {
  background-color: rgba(49, 84, 145, 0.18);
  border-color: rgba(31, 60, 111, 0.35);
  transform: translateY(-1px);
}

.card-action {
  display: flex;
  align-items: center;
}

.toeic-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #295ba5, #3b7ddd);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  box-shadow: 0 15px 30px rgba(33, 64, 122, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.toeic-button:hover,
.toeic-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(33, 64, 122, 0.22);
  filter: brightness(1.05);
}

.toeic-button:focus-visible {
  outline: 3px solid rgba(57, 114, 200, 0.45);
  outline-offset: 3px;
}

.toeic-button--ghost {
  background: transparent;
  color: #1c3a6a;
  border: 1px solid rgba(28, 58, 106, 0.28);
  box-shadow: none;
}

.toeic-button--ghost:hover,
.toeic-button--ghost:focus-visible {
  background-color: rgba(34, 82, 154, 0.1);
  box-shadow: none;
}

@media (max-width: 1024px) {
  .main-content-area {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .main-content-area {
    padding: clamp(2rem, 8vw, 3rem) 0;
  }

  .toeic-card {
    padding: clamp(1.4rem, 5vw, 1.9rem);
  }

  .card-links {
    flex-direction: column;
    align-items: stretch;
  }

  .link-chip {
    justify-content: flex-start;
  }
}