* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #2f4f3a;
  --orange: #9f8d00;
  --green: #6f9f2e;
  --green-dark: #4f7f20;
  --pink: #c96a96;
  --yellow-green: #d0d600;
  --cream: #fbfbf5;
  --paper: #ffffff;
  --line: #e3e1d7;
  --text: #2f2f2f;
  --muted: #666666;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  padding: 54px 28px;
  color: var(--text);
  background:
    linear-gradient(180deg, #f7e4ed 0, #f7e4ed 10px, transparent 10px),
    linear-gradient(180deg, #ffffff 0, #ffffff 96px, var(--cream) 96px);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero,
.page-header {
  position: relative;
  margin-bottom: 56px;
  padding: 44px 46px;
  border: 1px solid var(--line);
  border-top: 7px solid var(--yellow-green);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(64, 82, 54, 0.08);
  text-align: left;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 30px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 180px;
  justify-self: end;
}

.hero::after,
.page-header::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 24px;
  width: 108px;
  height: 5px;
  background: var(--yellow-green);
}

.hero-kicker,
.page-kicker,
.schedule-sub {
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-title,
.page-title,
.schedule-title {
  color: var(--navy);
  font-size: 2.36rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero-lead,
.page-lead {
  margin-top: 16px;
  color: #4e4e4e;
  font-size: 1.08rem;
  font-weight: 700;
}

.schedule-as-of {
  margin-top: 8px;
  color: #666666;
  font-size: 0.95rem;
  font-weight: 700;
}

.section {
  margin-bottom: 72px;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  color: var(--navy);
  font-size: 1.62rem;
  font-weight: 800;
}

.section-title::before {
  content: "";
  width: 8px;
  height: 34px;
  margin-right: 14px;
  border-radius: 0;
  background: var(--yellow-green);
  transform: none;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
  margin-bottom: 22px;
}

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

.course-card .btn-pink-sm {
  margin-top: 16px;
}

.course-note {
  margin: -12px 0 28px;
  color: #444444;
  font-size: 1.08rem;
  font-weight: 800;
}

.button-row,
.schedule-buttons,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 28px auto 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 26px;
  border: 1px solid var(--pink);
  border-radius: 0;
  background: var(--pink);
  box-shadow: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  border-color: #ad527b;
  background: #ad527b;
}

.is-disabled {
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}

.btn-secondary {
  border-color: var(--green-dark);
  background: var(--green-dark);
  box-shadow: none;
}

.btn-outline {
  border: 1px solid var(--green-dark);
  background: #ffffff;
  box-shadow: none;
  color: var(--green-dark);
}

.btn-outline:hover {
  color: #ffffff;
}

.btn-pink-sm,
.btn-pink-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pink);
  border-radius: 0;
  background: var(--pink);
  box-shadow: none;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-pink-sm {
  min-height: 46px;
  padding: 10px 28px;
  font-size: 1.02rem;
}

.btn-pink-lg {
  min-height: 60px;
  padding: 16px 48px;
  border: 1px solid var(--pink);
  font-size: 1.35rem;
}

.btn-pink-sm:hover,
.btn-pink-lg:hover {
  border-color: #ad527b;
  background: #ad527b;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-bottom: 42px;
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  height: 100%;
  min-height: 360px;
  padding: 24px 20px 26px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--yellow-green);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(64, 82, 54, 0.06);
}

.step-content {
  width: 100%;
}

.step-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 210px;
  text-align: center;
}

.step-img-wrapper img {
  width: 100%;
  max-width: 225px;
  max-height: 190px;
  object-fit: contain;
}

.step-title {
  min-height: 0;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.45;
}

.num,
.num-orange {
  margin-right: 6px;
  font-size: 1.65rem;
}

.num {
  color: var(--green);
}

.num-orange {
  color: var(--pink);
}

.step-desc {
  color: #444444;
  font-size: 1.05rem;
  font-weight: 600;
}

.main-btn-container {
  text-align: center;
  margin: 44px 0 24px;
}

.schedule-header {
  text-align: center;
  margin-bottom: 28px;
}

.course-info-box {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 30px;
  margin-top: 14px;
  padding: 10px 25px;
  border: 1px solid var(--line);
  border-radius: 0;
  border-left: 6px solid var(--yellow-green);
  background-color: #ffffff;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 800;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(64, 82, 54, 0.07);
}

.schedule-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.schedule-table th,
.schedule-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.schedule-table th {
  background-color: var(--green-dark);
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.schedule-table tr:nth-child(even) {
  background-color: #fbfbf5;
}

.date-cell {
  background-color: #f5f7df;
  font-weight: 800;
  text-align: center !important;
  white-space: nowrap;
}

.deadline-cell {
  background-color: #f9edf3;
  color: #b44875;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center !important;
}

.time-cell,
.hour-cell,
.teacher-cell,
.subject-num {
  text-align: center !important;
  white-space: nowrap;
}

.subject-num {
  color: var(--green-dark);
  font-weight: 800;
}

.pdf-viewer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(64, 82, 54, 0.07);
}

.pdf-viewer iframe {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 620px;
  border: 0;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pdf-card {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--yellow-green);
  border-radius: 0;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(64, 82, 54, 0.06);
}

.pdf-card.is-disabled {
  background: rgba(255, 255, 255, 0.68);
}

.notice-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--yellow-green);
  border-radius: 0;
  background: var(--paper);
  color: #555555;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 50px;
}

.summary-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--yellow-green);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(64, 82, 54, 0.06);
}

.summary-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.summary-item strong {
  display: block;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.45;
}

.info-block {
  margin-bottom: 50px;
}

.info-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 6px 18px rgba(64, 82, 54, 0.06);
}

.info-table th,
.info-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

.info-table th {
  width: 24%;
  background: #f5f7df;
  color: var(--navy);
  font-weight: 800;
  text-align: left;
}

.info-table td {
  color: #3d3d3d;
  font-weight: 600;
}

.text-list {
  margin: 0;
  padding-left: 1.2em;
}

.text-list li + li {
  margin-top: 4px;
}

.course-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.course-mini {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow-green);
  border-radius: 0;
  background: #ffffff;
}

.course-mini h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.15rem;
}

.course-mini p {
  font-weight: 700;
}

.document-note {
  color: #666666;
  font-size: 0.94rem;
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--green-dark);
  border-radius: 0;
  background: #ffffff;
  color: var(--green-dark);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pdf-link::before {
  content: "PDF";
  margin-right: 8px;
  padding: 2px 6px;
  border-radius: 0;
  background: var(--green-dark);
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1.2;
}

.pdf-link:hover {
  background: var(--green-dark);
  color: #ffffff;
}

.pdf-link.is-disabled {
  border-color: #cccccc;
  background: #f7f7f7;
  color: #777777;
}

.pdf-link.is-disabled::before {
  background: #999999;
}

.pdf-card strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.pdf-card span {
  color: #666666;
  font-size: 0.9rem;
}

@media (max-width: 850px) {
  body {
    padding: 24px 15px;
  }

  .hero-title,
  .page-title,
  .schedule-title {
    font-size: 1.85rem;
  }

  .hero-kicker,
  .page-kicker,
  .schedule-sub {
    font-size: 1.08rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-image {
    width: 155px;
    justify-self: center;
  }

  .course-grid,
  .step-list,
  .pdf-grid,
  .summary-grid,
  .course-mini-grid {
    grid-template-columns: 1fr;
  }

  .step-item {
    min-height: 0;
  }

  .step-img-wrapper {
    height: auto;
    min-height: 190px;
  }

  .step-title {
    min-height: 0;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-bottom: 0;
    padding-bottom: 6px;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .btn,
  .btn-pink-sm,
  .btn-pink-lg {
    width: 100%;
    max-width: 360px;
  }

  .pdf-viewer iframe {
    height: 70vh;
    min-height: 460px;
  }
}
