/* Japanese prospective-students page
   Common layout and typography remain in styles.css. */

.recruitment-page {
  background: #eef1f6;
  color: #202536;
}

.recruitment-page #content {
  --recruit-navy: #1f274f;
  --recruit-navy-light: #304f72;
  --recruit-teal: #1e6f7b;
  --recruit-pale: #f4f7f8;
  --recruit-panel: #ffffff;
  --recruit-line: #d8dde7;
  --recruit-text: #263247;
  --recruit-muted: #5f6878;
  overflow-wrap: anywhere;
}

.recruitment-page #content *,
.recruitment-page #content *::before,
.recruitment-page #content *::after {
  box-sizing: border-box;
}

.recruitment-page #content p {
  line-height: 1.8;
}

.recruitment-page #content li {
  line-height: 1.75;
}

.recruitment-page #content a {
  overflow-wrap: anywhere;
  text-underline-offset: 0.18em;
}

/* Hero */
.recruitment-hero {
  margin: 1.25rem 0 1.5rem 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 10px;
  background: linear-gradient(135deg, #182348 0%, #304f72 100%);
  color: #fff;
}

.recruitment-eyebrow,
.section-kicker,
.contact-strip-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.recruitment-eyebrow {
  color: #c9d7e8;
}

.recruitment-hero h3 {
  max-width: 52rem;
  margin: 0 0 0.8rem;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  line-height: 1.35;
}

.recruitment-hero p:not(.recruitment-eyebrow) {
  max-width: 52rem;
  margin: 0;
  color: #f2f5fa;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.recruitment-page #content .button {
  display: inline-block;
  padding: 0.62rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.recruitment-page #content .button-primary {
  border-color: #67aeb5;
  background: #1e6f7b;
  color: #fff;
}

.recruitment-page #content .button-secondary {
  border-color: #fff;
  background: #fff;
  color: var(--recruit-navy);
}

.recruitment-page #content .button-light {
  border-color: #fff;
  background: #fff;
  color: var(--recruit-navy);
}

.recruitment-page #content .button:hover,
.recruitment-page #content .button:focus-visible {
  border-color: #77c3c8;
  background: #176c72;
  color: #fff;
  text-decoration: underline;
}

/* Page contents */
.recruitment-toc {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin: 1.5rem 0 2.8rem 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--recruit-line);
  border-radius: 7px;
  background: #f7f8fa;
  color: #5b6475;
}

.recruitment-toc-title {
  flex: 0 0 auto;
  color: #25345f;
  font-size: 0.86rem;
  font-weight: 800;
}

.recruitment-toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recruitment-toc li {
  margin: 0;
}

.recruitment-toc a {
  color: #485974;
  font-size: 0.86rem;
  text-decoration: none;
}

.recruitment-toc a:hover,
.recruitment-toc a:focus-visible {
  color: #0d6370;
  text-decoration: underline;
}

/* Major sections */
.recruitment-section {
  margin-top: 3.8rem;
  scroll-margin-top: 5rem;
}

.section-heading {
  margin: 0 0 1.2rem 1rem;
  padding-left: 1rem;
  border-left: 5px solid var(--recruit-teal);
}

.section-heading .section-kicker {
  color: #4c677f;
}

.recruitment-section > .section-heading h3 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #1d2b4e;
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  line-height: 1.4;
}

.section-heading p {
  max-width: 55rem;
  margin: 0.35rem 0 0;
  color: #4d586c;
}

.section-panel {
  margin-left: 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--recruit-line);
  border-radius: 10px;
  background: var(--recruit-panel);
}

.subsection-title {
  margin: 0 0 0.8rem;
  padding: 0 0 0.45rem;
  border: 0;
  border-bottom: 1px solid var(--recruit-line);
  background: none;
  color: #25345f;
  font-size: 1.08rem;
  line-height: 1.45;
}

.welcome-note + .subsection-title {
  margin-top: 1.5rem;
}

/* Prospective student profiles */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.welcome-item {
  padding: 0.9rem;
  border: 1px solid #d4dae4;
  border-top: 3px solid var(--recruit-teal);
  border-radius: 7px;
  background: #fff;
}

.welcome-marker,
.degree-level,
.card-label,
.card-number {
  display: inline-block;
  color: var(--recruit-teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.welcome-item h4,
.degree-card h4,
.recruitment-topic-card h4,
.contact-card h4,
.info-card h4,
  .supplement-panel h4,
.notice-box h4 {
  margin: 0.3rem 0 0.45rem;
  padding: 0;
  border: 0;
  background: none;
  color: #182951;
  font-size: 1.02rem;
  line-height: 1.48;
}

.welcome-item p {
  margin: 0;
  color: #465267;
  font-size: 0.92rem;
}

.welcome-note,
.career-note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 4px solid #94a1b3;
  background: #f4f6f8;
  color: #3f4857;
}

/* Degree comparison */
.degree-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid #b7c2d0;
}

.degree-card {
  min-width: 0;
  padding: 1rem 0.85rem 0.2rem 0;
  border: 0;
  background: none;
}

.degree-card + .degree-card {
  padding-left: 0.85rem;
  border-left: 1px solid #e0e4eb;
}

.degree-card-accent {
  background: none;
}

.degree-card-accent .degree-level,
.contact-card-accent .card-label {
  color: var(--recruit-navy);
}

.degree-card p {
  margin: 0;
  color: #465267;
  font-size: 0.92rem;
}

/* Current recruitment topics */
.recruitment-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-left: 1rem;
}

.recruitment-topic-card {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d4dae4;
  border-radius: 8px;
  background: #fff;
}

.topic-number {
  display: grid;
  place-items: start center;
  padding-top: 1.1rem;
  background: #25345f;
  color: #d7dfed;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.topic-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1rem 1.05rem 1.1rem;
}

.topic-card-body > p:not(.topic-skills) {
  margin: 0.55rem 0 0;
}

.topic-skills {
  margin: auto 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid #dde2ea;
  color: #4d596d;
  font-size: 0.88rem;
}

.topic-review-date {
  margin: 0.65rem 0 0 1rem;
  color: var(--recruit-muted);
  font-size: 0.82rem;
  text-align: right;
}

.section-link {
  margin: 0.45rem 0 0 1rem;
  text-align: right;
}

.supplement-panel {
  margin: 1.35rem 0 0 1rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid #94a1b3;
  background: #f4f6f8;
  color: #4f5969;
}

.supplement-panel h4 {
  margin-top: 0;
}

.supplement-panel p {
  margin: 0.55rem 0 0;
}

.supplement-panel p:last-child {
  margin-bottom: 0;
}

.supplement-note {
  color: var(--recruit-muted);
  font-size: 0.88rem;
}

/* Lab life and application routes */
.contact-grid,
.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.contact-card,
.info-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #d4dae4;
  border-radius: 7px;
  background: #fff;
}

.contact-card {
  border-top: 3px solid var(--recruit-teal);
}

.contact-card-accent {
  border-top-color: var(--recruit-navy);
}

.contact-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.contact-card li {
  margin-bottom: 0.35rem;
}

.contact-card li:last-child {
  margin-bottom: 0;
}

.info-card {
  border-top: 3px solid var(--recruit-navy-light);
}

.card-number {
  color: var(--recruit-navy-light);
}

.info-card p {
  margin-bottom: 0;
}

.notice-box {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid #c9dfe1;
  border-left: 4px solid var(--recruit-teal);
  border-radius: 7px;
  background: #f0f7f7;
}

.notice-box h4 {
  margin-top: 0;
}

.notice-box p {
  margin: 0;
}

.official-links-inline {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  text-align: center;
}

.official-note {
  margin: 0.45rem 0 0;
  color: var(--recruit-muted);
  font-size: 0.88rem;
}

.contact-strip {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.2rem 0 0 1rem;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border-radius: 10px;
  background: linear-gradient(135deg, #182348, #304f72);
  color: #fff;
}

.contact-strip > div {
  min-width: 0;
}

.contact-strip-label {
  color: #bcd8db;
}

.contact-strip p {
  margin: 0;
  color: #fff;
}

.contact-strip .button {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .degree-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    border-top: 0;
  }

  .degree-card {
    padding: 0.9rem 0.8rem 0;
    border-top: 1px solid #b7c2d0;
  }

  .degree-card + .degree-card {
    padding-left: 0.8rem;
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .welcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .recruitment-topic-grid,
  .contact-grid,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-strip .button {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .recruitment-page #content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .recruitment-hero,
  .recruitment-toc,
  .section-heading,
  .section-panel,
  .recruitment-topic-grid,
  .topic-review-date,
  .section-link,
  .supplement-panel,
  .contact-strip {
    margin-left: 0;
  }

  .recruitment-hero {
    padding: 1.05rem;
  }

  .recruitment-hero h3 {
    font-size: 1.45rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .recruitment-toc {
    display: block;
  }

  .recruitment-toc-title {
    display: block;
    margin-bottom: 0.35rem;
  }

  .recruitment-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.8rem;
  }

  .section-panel {
    padding: 0.85rem;
  }

  .welcome-grid,
  .degree-path {
    grid-template-columns: 1fr;
  }

  .degree-path {
    gap: 0.8rem;
  }

  .degree-card,
  .degree-card + .degree-card {
    padding: 0.8rem 0 0;
  }

  .recruitment-topic-card {
    grid-template-columns: 2.6rem minmax(0, 1fr);
  }

  .topic-card-body {
    padding: 0.85rem;
  }

  .contact-strip {
    padding: 1rem;
  }
}

@media (max-width: 400px) {
  .recruitment-toc ol {
    grid-template-columns: 1fr;
  }
}
