:root {
  --navy: #06234a;
  --deep: #021a38;
  --red: #d91828;
  --gold: #f3d269;
  --ink: #182438;
  --muted: #5b6573;
  --line: #dbe2ec;
  --paper: #fffdf8;
  --brush: "HGP行書体", "HG行書体", "Yuji Syuku", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--deep);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
.section-head p,
.brand-main,
.footer-title,
.trial-title {
  font-family: var(--brush);
  font-weight: 900;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(90deg, #041a39, #082b5a);
  border-bottom: 3px solid var(--red);
  color: #fff;
}

.header-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: grid;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-kicker {
  font-size: 13px;
}

.brand-main {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
}

.brand-main span,
.footer-brand span {
  color: var(--red);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.nav a:first-child {
  border-bottom: 2px solid #fff;
}

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #fff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0 34%, rgba(255,255,255,.72) 48%, rgba(255,255,255,.04) 75%),
    url("assets/classroom.jpg") right center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 34px;
}

.target {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 60px;
  margin: 0 0 20px;
  padding: 8px 18px;
  color: #fff;
  background: var(--navy);
  font-size: 22px;
  font-weight: 800;
}

.hero h1 {
  max-width: 610px;
  margin: 0;
  color: #bc1421;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.18;
  text-shadow: 0 2px 0 #fff;
}

.hero-points {
  width: min(100%, 1120px);
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
}

.hero-points div {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 800;
}

.hero-points div:last-child {
  border-right: 0;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.dark-section {
  padding: 36px 0 28px;
  color: #fff;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  border-top: 2px solid var(--red);
}

.section-head p {
  margin: 16px 0 0;
  font-size: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 34px;
}

.section-head span {
  color: var(--red);
  font-size: 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

.feature-card {
  min-height: 360px;
  padding: 20px 16px 18px;
  color: var(--ink);
  background: #fff8fb;
  border: 1px solid #cfd8e6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card b {
  color: var(--red);
  font-size: 44px;
  line-height: 1;
}

.feature-card h3 {
  min-height: 66px;
  margin: 4px 0 12px;
  font-size: 18px;
  line-height: 1.35;
}

.feature-card p {
  margin: 0;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.feature-card.green {
  background: #f1fff7;
}

.feature-card.green b {
  color: #3aa36b;
}

.feature-card.yellow {
  background: #fffdf0;
}

.feature-card.yellow b {
  color: #f5a800;
}

.feature-card.blue {
  background: #f0f7ff;
}

.feature-card.blue b {
  color: #2a83c6;
}

.feature-card.purple {
  background: #f7f1ff;
}

.feature-card.purple b {
  color: #8056b5;
}

.feature-card.orange {
  background: #fff7ed;
}

.feature-card.orange b {
  color: #f5891f;
}

.feature-card.teal {
  background: #eefcf8;
}

.feature-card.teal b {
  color: #0a9a88;
}

.trial-band {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: 390px 1fr 112px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #f3b1b6;
  border-radius: 8px;
  background: #fff;
}

.trial-title {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  color: #fff;
  background: var(--red);
  font-size: 28px;
  font-weight: 800;
}

.trial-band p {
  margin: 0;
  padding: 20px 28px;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.trial-band strong {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
}

.message-section {
  padding: 20px 0 16px;
  color: #fff;
  text-align: center;
}

.gold-line {
  margin: 0;
  color: var(--gold);
  font-size: 26px;
  font-weight: 800;
}

.message-section h2 {
  margin: 6px 0 24px;
  color: #ffe580;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.2;
}

.message-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  text-align: left;
}

.note-box,
.plain-box,
.white-section,
.system-section,
.faq-section,
.trial-detail {
  background: var(--paper);
  border: 1px solid #dce4ef;
  border-radius: 8px;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}

.note-box,
.plain-box {
  padding: 28px;
  color: var(--ink);
}

.note-box h3 {
  margin-top: 0;
  color: var(--navy);
  font-size: 24px;
}

.plain-box ul {
  margin: 12px 0 0;
  color: var(--red);
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 800;
}

.white-section {
  padding: 34px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.two-column h2 {
  margin: 0 0 18px;
  color: var(--navy);
  text-align: center;
  font-size: 32px;
}

.two-column h3 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 22px;
}

.two-column p,
.support-grid p,
.trial-detail,
.footer {
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.level-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 800;
}

.level-list span {
  padding: 7px 20px;
  border-radius: 4px;
  background: #ffe6dc;
}

.level-list span:nth-child(2) {
  background: #dbeefb;
}

.level-list span:nth-child(3) {
  background: #ffe0df;
}

.voice {
  margin-top: 20px;
  padding: 16px 18px;
  border: 2px solid #f0b9bd;
  border-radius: 8px;
}

.voice strong {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 14px;
  color: #fff;
  background: #e46a75;
  border-radius: 999px;
}

.voice p {
  margin: 10px 0;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e7c4c8;
  border-radius: 8px;
}

.example-box {
  position: relative;
  margin: 22px 0;
  padding: 20px 24px;
  border: 2px solid #f2c080;
  border-radius: 8px;
  background: #fffaf0;
}

.example-box h4 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 20px;
}

.example-box ul {
  margin: 0;
  padding-left: 20px;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 800;
}

.price {
  color: var(--red);
  font-size: 26px;
}

.price span {
  font-size: 46px;
  font-weight: 900;
}

.fees-page {
  background: var(--deep);
  padding-bottom: 28px;
}

.fees-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 26px;
  color: #fff;
  text-align: center;
}

.fees-hero p {
  margin: 0;
  color: var(--gold);
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 900;
}

.fees-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.15;
}

.fees-hero span {
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.fees-section {
  padding: 30px;
  background: var(--paper);
  border: 1px solid #dce4ef;
  border-radius: 8px;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}

.fees-note {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-left: 6px solid var(--red);
  background: #fff;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.fees-note strong {
  color: var(--navy);
  font-size: 20px;
}

.fees-table-wrap {
  overflow-x: auto;
  border: 2px solid var(--navy);
  border-radius: 8px;
  background: #fff;
}

.fees-table {
  min-width: 1080px;
  border: 0;
  border-radius: 0;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.fees-table th,
.fees-table td {
  padding: 10px 12px;
  border-right: 1px solid #d8e1ec;
  border-bottom: 1px solid #d8e1ec;
  text-align: center;
  white-space: nowrap;
}

.fees-table th:last-child,
.fees-table td:last-child {
  border-right: 0;
}

.fees-table thead th {
  color: #fff;
  background: var(--navy);
}

.fees-table tbody th {
  width: 116px;
  color: var(--navy);
}

.fees-table td:nth-child(6),
.fees-table td:nth-child(7) {
  color: var(--red);
  font-size: 16px;
}

.course-primary th,
.course-primary td {
  background: #f3fae8;
}

.course-exam th,
.course-exam td {
  background: #fff0f6;
}

.course-public th,
.course-public td {
  background: #eef8ff;
}

.course-private th,
.course-private td {
  background: #fff6df;
}

.course-high th,
.course-high td {
  background: #fff0f7;
}

.fees-footnotes {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.fees-footnotes p {
  margin: 0;
}

.system-section {
  margin-top: 20px;
  padding: 32px;
}

.system-section h2,
.trial-detail h2 {
  margin: 0 0 8px;
  color: var(--navy);
  text-align: center;
  font-size: 32px;
}

.center-text {
  text-align: center;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.support-grid article {
  min-height: 270px;
  padding: 24px 20px;
  border-radius: 8px;
  background: linear-gradient(160deg, #effaf4, #fff);
}

.support-grid article:nth-child(2) {
  background: linear-gradient(160deg, #f6f0ff, #fff);
}

.support-grid article:nth-child(3) {
  background: linear-gradient(160deg, #eef8ff, #fff);
}

.support-grid article:nth-child(4) {
  background: linear-gradient(160deg, #fff2df, #fff);
}

.support-grid h3 {
  margin: 0;
  color: var(--navy);
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
}

.faq-section {
  margin-top: 20px;
  padding: 32px;
}

.faq-section h2 {
  margin: 0 0 20px;
  color: var(--navy);
  text-align: center;
  font-size: 32px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-grid article {
  padding: 20px 22px;
  border: 1px solid #e1cad0;
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: #fff;
}

.faq-grid h3 {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 20px;
  line-height: 1.45;
}

.faq-grid p {
  margin: 0;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.trial-detail {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 28px 34px;
}

.trial-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 30px;
  align-items: center;
}

.trial-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trial-icons div {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid #f1b6ba;
  border-radius: 8px;
  text-align: center;
}

.trial-icons strong {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 2px solid #f1b6ba;
  border-radius: 8px;
  font-size: 16px;
}

caption {
  padding-bottom: 8px;
  color: var(--red);
  font-weight: 900;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid #f2cfd2;
  text-align: left;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  width: 120px;
  color: var(--navy);
  background: #f5f8fc;
}

.footer {
  background: #fff;
  padding: 22px 0;
}

.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 140px 1fr .8fr 300px;
  align-items: center;
  gap: 26px;
}

.footer-title {
  display: grid;
  place-items: center;
  align-self: stretch;
  color: #ffe46d;
  background: var(--navy);
  font-size: 24px;
  font-weight: 900;
}

.footer-brand {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.tel {
  margin: 4px 0;
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.access-box {
  align-self: stretch;
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px 20px;
  border: 2px solid var(--navy);
  background: #f7faff;
}

.access-box strong {
  color: var(--red);
  font-size: 20px;
}

.access-box span {
  color: var(--ink);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .hero-points,
  .feature-grid,
  .support-grid,
  .two-column,
  .message-grid,
  .trial-layout,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .trial-band {
    grid-template-columns: 1fr;
  }

  .trial-band strong {
    padding: 12px;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .hero-content,
  .section,
  .trial-band,
  .footer-inner,
  .fees-hero {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 620px;
  }

  .hero-photo {
    background:
      linear-gradient(180deg, rgba(255,255,255,.72) 0 56%, rgba(255,255,255,.12)),
      url("assets/classroom.jpg") center top / cover no-repeat;
  }

  .hero h1 {
    font-size: 42px;
  }

  .target {
    display: none;
  }

  .section-head {
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
  }

  .section-head p {
    margin-top: 14px;
    font-size: 22px;
    line-height: 1.25;
  }

  .section-head h2 {
    font-size: 30px;
    line-height: 1.25;
  }

  .section-head span {
    font-size: 46px;
  }

  .hero-points,
  .feature-grid,
  .support-grid,
  .faq-grid,
  .two-column,
  .message-grid,
  .trial-layout,
  .trial-icons,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 250px;
  }

  .access-box {
    justify-items: center;
    text-align: center;
  }

  .footer-inner {
    justify-items: center;
    text-align: center;
  }

  .footer-title,
  .footer-inner > div {
    width: 100%;
  }

  .fees-section {
    padding: 18px 14px;
  }

  .fees-note {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 16px;
  }

  .white-section,
  .system-section,
  .faq-section,
  .trial-detail {
    padding: 22px 18px;
  }

}
