/* ── Design Tokens ── */
:root {
  --bg:        #F8F7F3;
  --ink:       #1C1B18;
  --ink-mid:   #555;
  --ink-light: #999;
  --ink-faint: #ccc;
  --rule:      #ccc;
  --rule-fine: #e8e6e0;
  --accent:    #7B1D35;
  --wrap:      800px;
  --pad:       40px;

  --font-serif:   'Noto Serif JP', 'Georgia', serif;
  --font-sans:    'Noto Sans JP', 'Arial', sans-serif;
  --font-display: 'EB Garamond', 'Georgia', serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.9;
  font-size: 21px;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout ── */
.site-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Header ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo-link { display: block; line-height: 0; }
.site-logo { height: 56px; width: auto; display: block; }
.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.site-nav a {
  font-family: var(--font-sans);
  font-size: 21px;
  letter-spacing: 0.05em;
  color: #666;
  text-decoration: none;
}
.btn-apply {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  background: var(--accent);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  background: var(--bg);
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--ink-light);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 8px 22px;
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
}
.badge-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  flex-shrink: 0;
  animation: badge-pulse 1.8s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 43px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 18px;
  color: var(--ink-mid);
  line-height: 2.1;
  max-width: 540px;
}
.hero-stats {
  display: flex;
  gap: 0;
  padding: 28px 0;
  margin-top: 36px;
  border-top: 1px solid var(--rule-fine);
  border-bottom: 1px solid var(--rule-fine);
}
.hero-stats > div {
  flex: 1;
  padding: 0 24px;
  border-right: 1px solid var(--rule-fine);
}
.hero-stats > div:first-child { padding-left: 0; }
.hero-stats > div:last-child { border-right: none; padding-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1;
  color: var(--ink);
}
.stat-num small { font-size: 29px; }
.stat-label {
  font-family: var(--font-sans);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-top: 5px;
}

/* ── Section 共通 ── */
.section {
  position: relative;
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}
.section::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  background: var(--bg);
}
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--ink-light);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 28px;
}
.body-text {
  font-size: 18px;
  color: #444;
  line-height: 2.1;
}

/* ── Schedule ── */
.schedule-steps {
  position: relative;
  padding-left: 24px;
}
.schedule-steps::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 38%, #d0cdc6 38%);
}
.sch-step {
  position: relative;
  padding: 0 0 28px 28px;
  display: flex;
  gap: 24px;
}
.sch-step:last-child { padding-bottom: 0; }
.sch-dot {
  position: absolute;
  left: -21px;
  top: 10px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border: 1px solid #bbb;
  background: var(--bg);
  flex-shrink: 0;
}
.sch-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123,29,53,0.12);
}
.sch-date {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-light);
  width: 220px;
  flex-shrink: 0;
}
.sch-body {}
.sch-name {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 5px;
}
.sch-name.active { color: var(--accent); }
.sch-desc {
  font-size: 18px;
  color: #777;
  line-height: 1.85;
}
.sch-btn {
  display: inline-flex;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.service-item {
  padding: 18px 24px 18px 0;
  border-top: 1px solid var(--rule-fine);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.service-logo {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.service-logo img {
  max-width: 72px;
  max-height: 28px;
  object-fit: contain;
  display: block;
}
.service-name {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}
.service-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #888;
  line-height: 1.75;
}

/* ── Partner Logos ── */
.partner-label {
  font-family: var(--font-sans);
  font-size: 18px;
  letter-spacing: 0.15em;
  color: #bbb;
  text-transform: uppercase;
  margin-bottom: 14px;
  margin-top: 32px;
}
.partner-label:first-child { margin-top: 0; }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 24px;
  align-items: center;
  justify-items: center;
}
.logo-grid img {
  object-fit: contain;
  filter: none;
  display: block;
  width: 100%;
}
.logo-grid.corp img  { max-height: 56px; mix-blend-mode: multiply; }
.logo-grid.univ img  { max-height: 60px; mix-blend-mode: multiply; }

/* ── News ── */
.news-list { list-style: none; }
.news-list li {
  display: grid;
  grid-template-columns: 130px 1fr 16px;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--rule-fine);
  font-size: 18px;
  line-height: 1.75;
  align-items: center;
}
.news-list li:last-child { border-bottom: 1px solid var(--rule-fine); }
.news-date {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #bbb;
  padding-top: 3px;
}
.news-title { color: #333; }
.news-arrow {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--accent);
  opacity: 0.5;
}
.news-more {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 21px;
  color: var(--ink-light);
  text-align: right;
}

/* ── Newsletter ── */
.newsletter {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.nl-title {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-bottom: 4px;
}
.nl-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.8;
}
.nl-form { display: flex; gap: 8px; }
.nl-form input {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 8px 14px;
  font-size: 22px;
  font-family: var(--font-sans);
  outline: none;
  width: 200px;
}
.nl-form button {
  border: none;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 21px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* ── Footer ── */
#site-footer { padding: 40px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-org {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-light);
  line-height: 2.1;
}
.footer-org strong {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #555;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer-nav a {
  font-family: var(--font-sans);
  font-size: 21px;
  color: var(--ink-light);
  text-decoration: none;
}
.footer-copy {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 28px;
  text-align: right;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  :root { --pad: 20px; }

  .header-inner { flex-wrap: nowrap; gap: 12px; }
  .site-nav { gap: 12px; }
  .site-nav a:not(.btn-apply) { display: none; }

  .hero-title { font-size: 35px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; border-bottom: none; }
  .hero-stats > div { border-right: none; padding: 0; flex: none; }

  .sch-step { flex-direction: column; gap: 4px; }
  .sch-date { width: auto; }

  .services-grid { grid-template-columns: 1fr; }

  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }

  .newsletter-inner { grid-template-columns: 1fr; gap: 16px; }
  .nl-form input { width: 100%; }
  .nl-form { flex-direction: column; }

  .news-list li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .news-date { padding-top: 0; grid-column: 1; }
  .news-title { grid-column: 1; }
  .news-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }

  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-nav { align-items: flex-start; }
}

@media (max-width: 360px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}
