:root {
  --navy: #0b274d;
  --blue: #174f88;
  --teal: #08758b;
  --teal-dark: #123c69;
  --ink: #172a43;
  --muted: #5b697b;
  --line: #b8c8d8;
  --pale: #eff8fc;
  --pale-blue: #e8f5fb;
  --accent: #ffca28;
  --accent-strong: #a86200;
  --accent-edge: #c87800;
  --accent-soft: #fff6d6;
  --accent-shadow: rgba(255, 202, 40, .25);
  --shadow: 0 10px 28px rgba(11, 39, 77, .16);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #dceaf2;
  color: var(--ink);
  font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
img.external-svg { display: block; object-fit: contain; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-shell {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: #f2f8fb;
  box-shadow: 0 0 34px rgba(11, 39, 77, .2);
}
.skip-link {
  position: fixed; z-index: 1000; left: 16px; top: -100px;
  padding: 9px 14px; background: var(--navy); color: #fff; border-radius: 5px;
}
.skip-link:focus { top: 12px; }

.breadcrumb {
  padding: 1px 24px;
  font-size: .78rem;
}

/* Shared layout */
.page-main {
  padding: 0 40px 48px;
  background-color: #eaf5fa;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(91, 174, 211, .16), transparent 24%),
    radial-gradient(circle at 92% 72%, rgba(116, 190, 219, .13), transparent 27%),
    linear-gradient(145deg, rgba(255,255,255,.82) 0%, rgba(226,243,250,.78) 52%, rgba(238,249,252,.84) 100%);
  background-size: auto, auto, auto;
  background-position: center, center, center;
}
.section { margin-top: 30px; }
.section-heading {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 9px;
  border-bottom: 0;
  color: var(--navy);
  background: linear-gradient(90deg, var(--accent) 0 64px, rgba(11, 39, 77, .28) 64px) left bottom / 100% 2px no-repeat;
  font-size: 1.28rem;
  line-height: 1.35;
}
.section-number {
  width: 29px; height: 29px;
  display: inline-grid; place-items: center;
  flex: 0 0 29px;
  border-radius: 6px;
  color: #fff; background: linear-gradient(145deg, var(--blue), var(--navy));
  box-shadow: 0 4px 10px rgba(11, 39, 77, .2);
  font-size: .9rem;
}
.lead { max-width: 850px; margin: 0; font-weight: 650; }
.muted { color: var(--muted); }
.card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 6px 18px rgba(11, 39, 77, .1);
}
.card-pad { padding: 20px; }
.grid-2, .grid-4, .grid-5 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* グリッドや表の本文は、通常本文より一段階太くして視認性を保つ。 */
.grid-2,
.grid-4,
.grid-5,
[class$="-grid"],
[class*="-grid "],
.schedule,
.summary-row,
.application-flow,
.briefing-topics,
.filter-tabs,
.result-tabs,
.contact-details,
.data-table { font-weight: 600; }
.icon-disc {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  flex: 0 0 48px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 900;
}
.tag {
  display: inline-flex; align-items: center;
  min-height: 27px; padding: 2px 10px;
  border-radius: 999px;
  color: #fff; background: linear-gradient(100deg, var(--teal), var(--blue));
  box-shadow: inset 0 -3px 0 var(--accent);
  font-size: .77rem; font-weight: 800;
}
.button {
  min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 9px 18px;
  border: 1.5px solid var(--blue);
  border-radius: 5px;
  color: var(--teal-dark); background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--accent-edge); box-shadow: 0 8px 20px var(--accent-shadow); background: var(--accent-soft); }
.button.primary { color: #fff; border-color: var(--navy); background: linear-gradient(105deg, var(--blue), var(--navy)); box-shadow: 0 6px 16px rgba(11, 39, 77, .18); }
.button.primary:hover { color: var(--navy); border-color: var(--accent-edge); background: var(--accent); }
.button.block { width: 100%; }
.button-arrow::after { content: "›"; margin-left: auto; color: var(--accent-strong); font-size: 1.2em; }
.back-to-top-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
  margin-bottom: -40px;
}
.back-to-top-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.3;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.back-to-top-link:hover,
.back-to-top-link:focus-visible {
  color: var(--navy);
  border-color: var(--accent-edge);
  background: var(--accent);
  box-shadow: 0 6px 16px var(--accent-shadow);
  transform: translateY(-2px);
}
.back-to-top-link:focus-visible { outline-color: var(--navy); }

/* Hero */
.hero {
  position: relative;
  margin: 0 -40px;
  padding: 38px 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 25%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 63%, rgba(255,255,255,.8) 0 2px, transparent 3px),
    linear-gradient(105deg, #f3f5fb, #e8edf8 66%, #dbe4f5);
}
.hero::after {
  content: "";
  position: absolute; inset: 0 0 0 45%;
  opacity: .35;
  background-image:
    linear-gradient(30deg, transparent 49.5%, #9aadd7 50%, transparent 50.5%),
    linear-gradient(150deg, transparent 49.5%, #9aadd7 50%, transparent 50.5%);
  background-size: 90px 70px;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  margin: 0;
  color: var(--teal-dark);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.2;
  letter-spacing: .01em;
}
.hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-edge));
}
.hero p { margin: 14px 0 0; }
.hero-split { display: grid; grid-template-columns: 1fr 285px; gap: 34px; align-items: center; }
body[data-page="contact"] .hero { padding-top: 15px; padding-bottom: 15px; }
body[data-page="contact"] .hero-split {
  position: relative;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 19vw, 205px);
  gap: clamp(16px, 3vw, 34px);
}
body[data-page="contact"] .hero-split > div { grid-column: 1; }
body[data-page="contact"] .hero h1 { position: relative; padding-bottom: 4px; }
body[data-page="contact"] .hero h1::after { position: absolute; bottom: 0; left: 0; margin-top: 0; }
body[data-page="contact"] .hero p { margin: 0; }
body[data-page="contact"] .contact-hero-image {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: clamp(150px, 19vw, 205px);
  height: 100%;
  object-fit: contain;
  border: 1px solid #adc4d8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(11,39,77,.1);
}
/* Home */
.facts {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}
.fact {
  min-height: 118px;
  display: flex; align-items: center; gap: 13px;
  padding: 15px;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: 0; }
.fact small { display: block; color: var(--ink); font-weight: 700; }
.fact strong { display: block; color: var(--teal-dark); font-size: 1.24rem; line-height: 1.35; }
.pillars .card { min-height: 150px; padding: 18px; }
.pillars h3 { margin: 6px 0 2px; color: var(--teal-dark); font-size: 1rem; }
.pillars p { margin: 4px 0; font-size: .85rem; line-height: 1.55; }
.notice-strip {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 12px; padding: 10px 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, #fff5cd, #fffdf4, #fff5cd);
  font-weight: 800;
}
.schedule { display: grid; }
.schedule-step { position: relative; padding: 8px 12px; text-align: center; }
.schedule-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -9px; top: 22px; color: var(--accent-strong);
}
.schedule-step .icon-disc { margin: 0 auto 5px; }
.schedule-step small, .schedule-step strong { display: block; }
.schedule-step strong { color: var(--navy); }
.home-lower { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; }
.download-link {
  min-height: 60px; padding: 9px 11px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 5px;
  background: #fff;
  font-size: .82rem; font-weight: 700;
}
.download-link > span { min-width: 0; }
.download-label-wrap { writing-mode: horizontal-tb; white-space: normal; word-break: keep-all; line-height: 1.35; }
.download-file-group { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; vertical-align: middle; }
.download-link .file-icon { width: 25px; height: 31px; flex: 0 0 25px; }
.download-link > .download-glyph { width: 21px; height: 21px; flex: 0 0 21px; margin-left: auto; }
.download-file-group .download-glyph { width: 21px; height: 21px; flex: 0 0 21px; }
.download-link:hover { border-color: var(--accent-edge); background: var(--accent-soft); box-shadow: 0 6px 16px var(--accent-shadow); }
.mini-faq { display: grid; gap: 8px; }
.mini-faq a {
  min-height: 50px; padding: 11px 14px;
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 5px;
  font-size: .83rem; font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.mini-faq a::after { content: "⌄"; margin-left: auto; color: var(--accent-strong); }
.resource-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.resource-link, .site-map-card {
  position: relative;
  padding: 15px 46px 15px 18px;
  display: flex; gap: 12px;
  border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 6px;
  background: #fff;
  color: var(--navy); font-weight: 800;
  box-shadow: 0 5px 15px rgba(11, 39, 77, .08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.resource-link { min-height: 78px; align-items: center; }
.resource-link::after, .site-map-card::after { content: "›"; position: absolute; right: 18px; color: var(--accent-strong); font-size: 1.5rem; }
.mini-faq a:hover, .mini-faq a:focus-visible,
.resource-link:hover, .resource-link:focus-visible,
.site-map-card:hover, .site-map-card:focus-visible { transform: translateY(-3px); border-color: var(--accent-edge); box-shadow: 0 8px 20px var(--accent-shadow); background: var(--accent-soft); }
.site-map-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.site-map-card { min-height: 104px; flex-direction: column; align-items: flex-start; justify-content: center; }
.site-map-card strong { color: var(--teal-dark); }
.site-map-card small { color: var(--muted); font-weight: 600; }

/* About */
.feature-card { min-height: 145px; padding: 18px; }
.feature-card h3 { margin: 8px 0 4px; color: var(--teal-dark); font-size: 1rem; }
.feature-card p { margin: 0; font-size: .84rem; line-height: 1.55; }
.relation-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; }
.outcome { min-height: 145px; padding: 17px; }
.outcome h3 { margin: 8px 0 3px; color: var(--teal-dark); font-size: .98rem; }
.outcome p { margin: 0; font-size: .82rem; }

/* Documents and application */
.summary-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.summary-item { min-height: 104px; display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-right: 1px solid var(--line); }
.summary-item:last-child { border-right: 0; }
.summary-item strong { display: block; }
.file-grid { display: grid; gap: 10px; }
.file-card {
  min-height: 86px; padding: 13px 14px;
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff;
}
.file-card:hover { border-color: var(--teal); background: var(--pale); }
.file-meta { min-width: 0; }
.file-meta strong, .file-meta small { display: block; }
.file-meta strong { font-size: .86rem; }
.file-meta small { color: var(--muted); font-size: .74rem; }
.download-glyph { font-size: 1.2rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th { padding: 10px 12px; color: var(--navy); background: var(--pale-blue); text-align: left; }
.data-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.callout { padding: 17px 20px; border: 1px solid #f0cf7f; border-radius: 7px; background: #fffaf0; }
.callout.info { border-color: #95c3e6; background: #f2f8ff; }
.callout h3 { margin: 0 0 8px; color: var(--navy); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { margin: 6px 0; padding-left: 25px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-size: .7rem; font-weight: 900; }
.date-banner { padding: 17px 24px; display: flex; align-items: center; justify-content: center; gap: 24px; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.date-banner strong { color: var(--teal-dark); }
.application-flow { display: grid; align-items: center; }
.application-step { display: grid; align-content: center; justify-items: center; text-align: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: .82rem; font-weight: 800; }
.application-step .step-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; }

/* Briefing */
.page-with-aside { display: grid; grid-template-columns: 1fr 225px; gap: 48px; }
.event-grid { display: grid; }
.event-card p { display: flex; gap: 12px; }
.play-button { width: 64px; height: 64px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--teal); font-size: 1.5rem; cursor: pointer; box-shadow: 0 8px 22px rgba(77, 106, 173, .3); }

/* FAQ */
.faq-layout { display: grid; gap: 34px; }
.search-box { position: relative; margin: 20px 0 14px; }
.search-box input { width: 100%; min-height: 56px; padding: 12px 48px 12px 16px; border: 1px solid #9eb7c7; border-radius: 6px; }
.search-box::after { content: "⌕"; position: absolute; right: 17px; top: 8px; color: #66728c; font-size: 1.65rem; }
.filter-tabs { display: grid; margin-bottom: 16px; }
.filter-tab { min-height: 44px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .78rem; font-weight: 800; }
.filter-tab:first-child { border-radius: 6px 0 0 6px; }
.filter-tab:last-child { border-radius: 0 6px 6px 0; }
.filter-tab.active { color: #fff; border-color: var(--teal); background: var(--teal); }
.faq-list { display: grid; }
.faq-question, .faq-answer { font-family: inherit; font-size: 1rem; font-weight: 800; }
.faq-question { width: 100%; position: relative; display: flex; align-items: center; gap: 11px; background: #fff; text-align: left; cursor: pointer; }
.faq-question::after { content: "+"; position: absolute; right: 18px; font-size: 1.25rem; color: #43548a; }
.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-number { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; border-radius: 50%; color: #fff; }
.faq-answer[hidden] { display: none; }
.popular-list { overflow: hidden; }
.popular-list h3 { margin: 0; padding: 14px; color: var(--teal-dark); font-size: .98rem; border-bottom: 1px solid var(--line); }
.popular-list a { display: flex; gap: 9px; padding: 14px; border-bottom: 1px solid var(--line); color: var(--teal-dark); font-size: .82rem; font-weight: 800; }
.popular-list a:last-child { border-bottom: 0; }
.popular-list b { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; border-radius: 50%; color: #fff; background: var(--teal); }
.no-results { padding: 30px; text-align: center; color: var(--muted); }

/* Results */
.result-hero-note { padding: 17px; background: rgba(255,255,255,.94); }
.result-tabs { display: grid; margin-top: 20px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.result-tab { min-height: 62px; border: 0; border-right: 1px solid var(--line); color: var(--navy); background: #fff; font-weight: 800; cursor: pointer; }
.result-tab:last-child { border-right: 0; }
.result-tab.active { color: var(--teal-dark); box-shadow: inset 0 3px 0 var(--teal); background: var(--pale); }
.tab-panel { padding: 18px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 7px 7px; }
.tab-panel[hidden] { display: none; }
.select-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.select-row select { min-width: 310px; min-height: 44px; padding: 8px 38px 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.detail-button { min-height: 35px; padding: 5px 12px; border: 1px solid var(--teal); border-radius: 4px; color: var(--teal-dark); background: #fff; font-weight: 800; cursor: pointer; }
.communication-grid { display: grid; gap: 12px; }
.communication-card { min-height: 165px; padding: 17px 12px; text-align: center; }
.communication-card .icon-disc { margin: auto; }
.communication-card h3 { margin: 8px 0 3px; color: var(--teal-dark); font-size: .98rem; }
.communication-card p { margin: 0; font-size: .8rem; line-height: 1.55; }

/* Resources, contact */
.resource-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resource-map .card { min-height: 220px; padding: 22px; }
.resource-map h2 { margin: 12px 0 8px; color: var(--teal-dark); font-size: 1.1rem; }
.resource-map p { font-size: .86rem; }
.resource-map .button { margin-top: 10px; }
.contact-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-page-grid > .section { margin-top: 0; }
.contact-page-grid > .callout.info {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-edge);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 6px 18px rgba(11, 39, 77, .1);
}
.contact-card { min-height: 230px; padding: 24px; border-top-color: var(--accent-edge); }
.contact-card a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.contact-details { display: grid; grid-template-columns: 100px 1fr; gap: 8px 14px; }
.contact-details dt { font-weight: 800; }
.contact-details dd { margin: 0; }

/* Feedback */
.toast {
  position: fixed; z-index: 1000; left: 50%; bottom: 24px;
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff; background: #43548a;
  box-shadow: 0 8px 28px rgba(0,0,0,.24);
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: .22s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .grid-5, .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .site-map-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { background: #fff; }
  .site-shell { box-shadow: none; }
  .breadcrumb { padding: 8px 18px; overflow-x: auto; white-space: nowrap; }
  .page-main { padding: 0 18px 36px; }
  .back-to-top-row { margin-bottom: -28px; }
  .hero { margin: 0 -18px; padding: 28px 22px; }
  .hero-split, .page-with-aside, .relation-panel { grid-template-columns: 1fr; }
  body[data-page="contact"] .hero-split {
    grid-template-columns: minmax(0, 1fr) clamp(112px, 34vw, 150px);
    gap: 12px;
  }
  body[data-page="contact"] .hero h1 { font-size: clamp(1.5rem, 7.8vw, 2rem); }
  body[data-page="contact"] .contact-hero-image { width: clamp(112px, 34vw, 150px); }
  .grid-4, .grid-2, .resource-map, .contact-page-grid { grid-template-columns: 1fr; }
  .summary-item { border-right: 0; }
  .schedule { overflow-x: auto; grid-template-columns: repeat(5, 150px); padding-bottom: 8px; }
  .resource-links { grid-template-columns: 1fr; }
  .filter-tab:first-child, .filter-tab:last-child { border-radius: 0; }
}

@media (max-width: 480px) {
  .result-tab { border-right: 0; border-bottom: 1px solid var(--line); }
  .select-row select { min-width: 0; width: 100%; }
  .hero h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
  body { background: #fff; }
  .site-shell { box-shadow: none; }
  [data-site-footer] .footer-links, .button, .toast { display: none !important; }
  .page-main { padding: 0; }
  .hero { margin: 0; }
}
