:root {
  --primary-900: #0d2766;
  --primary-800: #153375;
  --primary-700: #1b3f8b;
  --primary-600: #1e458f;
  --primary-500: #214c9c;
  --primary-300: #d3dcff;
  --primary-200: #e1e8ff;
  --primary-100: #f4f7ff;
  --accent-500: #f58a1f;
  --accent-600: #e37b11;
  --text-900: #1a2744;
  --text-700: #36456d;
  --text-500: #4f5e7d;
  --background: #f5f7fb;
  --white: #ffffff;
  --shadow-sm: 0 12px 24px rgba(18, 42, 109, 0.12);
  --shadow-md: 0 18px 36px rgba(18, 42, 109, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--text-900);
  line-height: 1.7;
}

main {
  display: block;
}

h1, h2, h3, h4, h5 {
  color: var(--text-900);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-700);
}

ul,
ol {
  margin: 0 0 1.25rem 1.5rem;
  padding-left: 1.2rem;
  color: var(--text-700);
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--primary-600);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

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

header {
  background: linear-gradient(120deg, var(--primary-900), var(--primary-500));
  color: var(--white);
  text-align: center;
  padding: 2.75rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

header h1,
header h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--white);
}

header p {
  margin: 0.5rem 0 1.25rem;
  color: rgba(255, 255, 255, 0.88);
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

header nav a {
  color: var(--white);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

header nav a:hover,
header nav a:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
}

.hero {
  background: var(--primary-100);
  border: 1px solid var(--primary-300);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero p {
  max-width: 740px;
  margin: 0 auto;
  color: var(--text-700);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.75rem auto 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.hero-points li {
  background: var(--white);
  border: 1px solid var(--primary-300);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  color: var(--primary-600);
}

.hero.hero-home {
  background: linear-gradient(140deg, var(--primary-900), var(--primary-600));
  border: none;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.hero.hero-home h2,
.hero.hero-home p {
  color: var(--white);
}

.hero.hero-home .hero-points li {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.cta-buttons {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  background: var(--primary-500);
  border: 1px solid var(--primary-500);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(33, 76, 156, 0.25);
  color: var(--white);
}

.cta-button.secondary {
  background: var(--white);
  color: var(--primary-600);
  border: 1px solid var(--primary-300);
  box-shadow: none;
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
  background: var(--primary-100);
  color: var(--primary-600);
}

.cta-button.accent {
  background: var(--accent-500);
  border-color: var(--accent-500);
}

.cta-button.accent:hover,
.cta-button.accent:focus {
  background: var(--accent-600);
  border-color: var(--accent-600);
}

.hero.hero-home .cta-button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.hero.hero-home .cta-button.secondary:hover,
.hero.hero-home .cta-button.secondary:focus {
  background: rgba(255, 255, 255, 0.15);
}

.course-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  background: var(--primary-100);
  border: 1px solid var(--primary-300);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  margin-bottom: 3rem;
}

.course-nav span {
  font-weight: 600;
  color: var(--primary-600);
}

.course-nav a {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--primary-600);
}

.course-nav a:hover,
.course-nav a:focus {
  background: var(--primary-500);
  color: var(--white);
}

.course-section {
  margin-bottom: 4.5rem;
}

.course-header h2 {
  margin-bottom: 0.35rem;
}

.course-tagline {
  margin: 0;
  font-weight: 600;
  color: var(--primary-600);
}

.course-layout {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-block {
  margin-bottom: 4.5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading.section-heading--left {
  text-align: left;
}

.section-heading.section-heading--left p {
  margin-left: 0;
  margin-right: 0;
}

.section-heading p {
  max-width: 680px;
  margin: 0.75rem auto 0;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--primary-200);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.info-card h3,
.info-card h4 {
  margin-top: 0;
}

.info-card.accent {
  background: var(--primary-100);
  border-color: var(--primary-300);
}

.feature-list,
.check-list,
.plain-list {
  padding-left: 1.1rem;
  margin-bottom: 1.25rem;
}

.feature-list li,
.check-list li,
.plain-list li {
  margin-bottom: 0.5rem;
  color: var(--text-700);
}

.chip-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: var(--primary-100);
  color: var(--primary-600);
  font-weight: 600;
  font-size: 0.9rem;
}

.note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-500);
}

.info-card figure {
  margin: 1.5rem 0;
}

.info-card figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-500);
  text-align: center;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.info-table th,
.info-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--primary-200);
  text-align: left;
  vertical-align: top;
  color: var(--text-700);
}

.info-table th {
  background: var(--primary-100);
  font-weight: 600;
  color: var(--primary-600);
}

.info-table td br {
  display: block;
  margin-bottom: 0.35rem;
}

.contact-card {
  background: var(--primary-100);
  border: 1px solid var(--primary-300);
  border-radius: 20px;
  padding: 2.75rem 2.25rem;
  margin: 4rem 0 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h2,
.contact-card h3 {
  color: var(--primary-600);
}

.contact-card address {
  font-style: normal;
  line-height: 1.7;
  color: var(--text-700);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.contact-grid a {
  font-weight: 600;
}

.table_img {
  max-width: 720px;
  width: 100%;
}

footer {
  background: var(--primary-900);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  padding: 2rem 1.5rem;
}

footer p {
  margin: 0.35rem 0;
  color: rgba(255, 255, 255, 0.88);
}

footer a {
  color: var(--white);
  font-weight: 600;
}

@media (min-width: 680px) {
  .hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .course-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  }
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  header nav {
    flex-direction: column;
  }

  header nav a {
    width: 100%;
    text-align: center;
  }
}
