.guide-hero-actions {
  display: flex;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-hero-action {
  display: inline-flex;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.guide-hero-action--primary {
  border-color: #b6253e;
  background: #b6253e;
}

.guide-hero-action:hover,
.guide-hero-action:focus-visible {
  border-color: #edc38f;
  background: #edc38f;
  color: #10243d;
}

.guide-start {
  position: relative;
  z-index: 4;
  margin-bottom: 18px;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(18, 36, 59, .09);
  border-radius: clamp(22px, 3vw, 32px);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 22px 65px rgba(18, 36, 59, .13);
}

.guide-start__header {
  display: grid;
  margin-bottom: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 390px);
  align-items: end;
  gap: 32px;
}

.guide-start__label {
  display: block;
  margin-bottom: 10px;
  color: #b6253e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.guide-start h2 {
  margin: 0;
  color: #12243b;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.4;
}

.guide-start__header p {
  margin: 0;
  color: #656b72;
  font-size: 13px;
  line-height: 1.85;
}

.guide-start__choices {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 12px;
}

.guide-choice {
  position: relative;
  display: grid;
  min-height: 156px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #dedbd3;
  border-radius: 4px 18px 4px 18px;
  align-content: space-between;
  gap: 26px;
  background: #f8f6f1;
  color: #12243b;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.guide-choice:first-child {
  border-color: #102a4a;
  background:
    radial-gradient(circle at 94% 0, rgba(214, 167, 114, .24), transparent 34%),
    #102a4a;
  color: #fff;
}

.guide-choice:hover,
.guide-choice:focus-visible {
  border-color: #b6253e;
  box-shadow: 0 16px 34px rgba(18, 36, 59, .12);
  transform: translateY(-3px);
}

.guide-choice small {
  color: #a12a3e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.guide-choice:first-child small {
  color: #efc593;
}

.guide-choice strong {
  display: block;
  margin-bottom: 7px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(17px, 2vw, 22px);
}

.guide-choice__row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  color: #73716b;
  font-size: 11px;
  line-height: 1.65;
}

.guide-choice:first-child .guide-choice__row {
  color: rgba(255, 255, 255, .7);
}

.guide-choice__copy {
  display: block;
}

.guide-choice b {
  color: currentColor;
  font-size: 18px;
}

.guide-toc {
  margin-top: 18px;
}

.guide-toc ol {
  justify-content: center;
}

.guide-toc li {
  flex: 0 1 250px !important;
}

.guide-content {
  display: flex !important;
  flex-direction: column;
}

.guide-content #schools {
  order: 1;
}

.guide-content #senpai-comments {
  order: 2;
}

.guide-reference-heading {
  order: 3;
  padding: clamp(36px, 5vw, 58px) clamp(10px, 2vw, 24px) 8px;
  border-top: 1px solid rgba(18, 36, 59, .14);
}

.guide-reference-heading small {
  display: block;
  margin-bottom: 10px;
  color: #b6253e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.guide-reference-heading h2 {
  margin: 0 0 10px;
  color: #12243b;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(25px, 4vw, 38px);
}

.guide-reference-heading p {
  max-width: 680px;
  margin: 0;
  color: #696b6c;
  font-size: 13px;
  line-height: 1.85;
}

.guide-content #choose {
  order: 4;
}

.guide-content #schedule {
  order: 5;
}

.guide-content #prepare {
  order: 6;
}

.guide-content #mext-guide {
  order: 7;
}

.guide-content #official-links {
  order: 8;
}

#schools {
  outline: 1px solid rgba(182, 37, 62, .16);
}

#schools .guide-number::after {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(182, 37, 62, .22);
  content: "まずここから";
}

.guide-section--reference {
  transition: padding 180ms ease, box-shadow 180ms ease;
}

.guide-section--reference.is-collapsed {
  padding-block: clamp(30px, 4vw, 46px) !important;
  box-shadow: 0 10px 34px rgba(18, 36, 59, .055) !important;
}

.guide-section--reference.is-collapsed .section-lead {
  margin-bottom: 20px;
}

.guide-reference-toggle {
  position: relative;
  z-index: 3;
  display: inline-flex;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(18, 36, 59, .2);
  border-radius: 999px;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .56);
  color: #12243b;
  cursor: pointer;
  font: 800 12px/1.3 "Noto Sans JP", sans-serif;
}

.guide-reference-toggle::after {
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  place-items: center;
  background: #12243b;
  color: #fff;
  content: "+";
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.guide-reference-toggle[aria-expanded="true"]::after {
  content: "−";
}

#schedule .guide-reference-toggle {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

#schedule .guide-reference-toggle::after {
  background: #edc38f;
  color: #10243d;
}

.guide-reference-content {
  position: relative;
  z-index: 1;
  margin-top: 32px;
}

.guide-reference-content[hidden] {
  display: none;
}

.student-resource-grid {
  display: grid;
  margin-top: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.student-resource-grid a {
  display: flex;
  min-height: 225px;
  padding: clamp(23px, 3vw, 32px);
  flex-direction: column;
  border: 1px solid #d9d6ce;
  border-radius: 3px 22px 3px 3px;
  color: #12243b;
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.student-resource-grid a:hover,
.student-resource-grid a:focus-visible {
  border-color: #a51b35;
  box-shadow: 0 18px 36px rgba(18, 36, 59, .09);
  transform: translateY(-3px);
}

.student-resource-grid span {
  color: #a51b35;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.student-resource-grid strong {
  margin: 20px 0 10px;
  font: 700 clamp(19px, 2.4vw, 25px)/1.45 "Noto Serif JP", serif;
}

.student-resource-grid p {
  margin: 0 0 24px;
  color: #68737d;
  font-size: 12px;
  line-height: 1.85;
}

.student-resource-grid b {
  margin-top: auto;
  font-size: 11px;
}

@media (max-width: 820px) {
  .guide-start__header,
  .guide-start__choices {
    grid-template-columns: 1fr;
  }

  .guide-start__header {
    gap: 14px;
  }

  .guide-choice {
    min-height: 132px;
  }

  .guide-toc ol {
    display: flex !important;
  }

  .student-resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .guide-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-hero-action {
    width: 100%;
  }

  .guide-start {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .guide-start__choices {
    gap: 9px;
  }

  .guide-choice {
    min-height: 118px;
    padding: 20px;
    gap: 18px;
  }

  .guide-toc li {
    flex-basis: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-choice,
  .guide-section--reference {
    transition: none;
  }
}
