:root {
  --ink: #183044;
  --muted: #667784;
  --line: #d9e2e8;
  --paper: #f5f8fa;
  --panel: #ffffff;
  --deep: #102b46;
  --soft: #e8eef2;
  --accent: #7899b2;
  --notice: #edf3f6;
  --shadow: 0 15px 38px rgba(16, 43, 70, .08);
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}
body.university-site {
  --ink: #24413f;
  --muted: #65736f;
  --line: #d9ddd5;
  --paper: #f6f2e8;
  --panel: #fffdf8;
  --deep: #285e5b;
  --soft: #e5efeb;
  --accent: #5f8fa0;
  --notice: #edf4ef;
  --shadow: 0 14px 34px rgba(40, 94, 91, .09);
  background:
    linear-gradient(rgba(246,242,232,.96), rgba(246,242,232,.96)),
    radial-gradient(circle at 8% 4%, rgba(169,200,194,.3), transparent 34%);
}

a { color: var(--deep); }
a:hover { opacity: .78; }
a:focus-visible { outline: 3px solid rgba(95,143,160,.45); outline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.42; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 4rem); margin: 10px 0 18px; letter-spacing: .035em; }
h2 { margin-top: 2.2em; }

/* Shared header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { display: block; height: auto; object-fit: contain; }
.bureau-brand .brand-logo { width: min(310px, 39vw); max-height: 64px; }
.university-brand .brand-logo { width: min(360px, 45vw); max-height: 72px; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 19px; font-size: .9rem; }
.nav a { text-decoration: none; color: var(--ink); white-space: nowrap; }
.utility-bar {
  background: #1e4e4b;
  color: rgba(255,255,255,.88);
  font-size: .78rem;
}
.utility-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}
.utility-bar a { color: #fff; text-decoration: none; }
body.university-site .site-header { background: rgba(255,253,248,.97); }
body.university-site .header-inner { padding-top: 9px; padding-bottom: 9px; }

/* Bureau home */
.bureau-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 21%, rgba(120,153,178,.18), transparent 27%),
    linear-gradient(145deg, #f9fbfc, #eef3f6 56%, #e6edf2);
  border-bottom: 1px solid var(--line);
}
.bureau-hero::before,
.bureau-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(16,43,70,.12);
  border-radius: 50%;
  pointer-events: none;
}
.bureau-hero::before { width: 520px; height: 520px; right: -190px; top: -210px; }
.bureau-hero::after { width: 300px; height: 300px; right: 40px; bottom: -170px; }
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 78px 22px 62px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 54px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  color: var(--deep);
  font-size: .8rem;
  letter-spacing: .2em;
  font-weight: 700;
}
.hero p { font-size: 1.03rem; color: var(--muted); max-width: 43em; }
.hero-symbol-panel {
  min-height: 380px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(16,43,70,.12);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}
.hero-symbol-panel::before,
.hero-symbol-panel::after {
  content: "";
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  border: 1px solid rgba(120,153,178,.3);
  border-radius: 50%;
}
.hero-symbol-panel::after { width: 39%; border-style: dashed; }
.hero-symbol { width: 63%; max-height: 300px; object-fit: contain; position: relative; z-index: 1; }
.hero-label {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(16,43,70,.1);
  padding: 12px 15px;
  max-width: 260px;
  font-size: .86rem;
}

/* General layout */
.container { max-width: 1120px; margin: 0 auto; padding: 42px 22px 86px; }
.section-title { font-size: clamp(1.65rem, 3vw, 2.6rem); margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 50em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 5px 20px rgba(24,48,68,.045);
}
body.university-site .card { border-radius: 4px; box-shadow: 0 5px 17px rgba(40,94,91,.05); }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }
.tag {
  display: inline-block;
  font-size: .74rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--deep);
  margin-bottom: 10px;
  background: rgba(255,255,255,.58);
}
.status { color: var(--muted); font-size: .84rem; }
.button {
  display: inline-block;
  background: var(--deep);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 2px;
  margin: 10px 8px 0 0;
  letter-spacing: .035em;
}
.bureau-site .button { border-radius: 999px; }
.button.secondary { background: transparent; color: var(--deep); border: 1px solid var(--deep); }
.notice {
  background: var(--notice);
  border-left: 4px solid var(--accent);
  padding: 18px 20px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
}
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: inherit; }

/* University event pages */
.university-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 88% 110%, transparent 0 25%, rgba(95,143,160,.12) 25.5% 26%, transparent 26.5% 34%, rgba(95,143,160,.1) 34.5% 35%, transparent 35.5%),
    linear-gradient(115deg, #fffdf8 0%, #edf4ef 64%, #dce9e5 100%);
}
.university-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -80% 42%;
  height: 360px;
  border: 1px solid rgba(40,94,91,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(95,143,160,.05), 0 0 0 84px rgba(95,143,160,.035);
}
.event-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 62px 22px 55px;
  position: relative;
  z-index: 1;
}
.event-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: var(--deep); }
.event-kicker img { width: 54px; height: 54px; object-fit: contain; }
.event-kicker span { font-family: var(--serif); letter-spacing: .08em; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 25px; color: var(--muted); font-size: .92rem; margin-top: 22px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 38px; align-items: start; }
.sidebar { position: sticky; top: 108px; }
.sidebar .card { padding: 17px; }
.sidebar a { display: block; padding: 9px 7px; text-decoration: none; border-bottom: 1px solid var(--line); }
.sidebar a:last-child { border-bottom: 0; }
.definition-list { display: grid; grid-template-columns: 145px 1fr; border-top: 1px solid var(--line); }
.definition-list dt, .definition-list dd { margin: 0; padding: 14px 11px; border-bottom: 1px solid var(--line); }
.definition-list dt { font-weight: 700; background: rgba(169,200,194,.16); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 680px; background: var(--panel); }
th, td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 13px 14px; text-align: left; vertical-align: top; }
th:last-child, td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
th { background: rgba(169,200,194,.18); }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; margin: 12px 0; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--deep); }
.quote { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); margin: 18px 0; }
.quote p { margin: 0 0 8px; }
.quote footer { color: var(--muted); font-size: .88rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.84); }
body.university-site .site-footer { background: #ede8db; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 30px 22px; color: var(--muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .nav { justify-content: flex-start; }
  .bureau-brand .brand-logo { width: min(300px, 78vw); }
  .university-brand .brand-logo { width: min(330px, 82vw); }
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .hero-symbol-panel { min-height: 280px; }
  .grid { grid-template-columns: 1fr; }
  .two-column { grid-template-columns: 1fr; }
  .sidebar { position: static; order: -1; }
  .definition-list { grid-template-columns: 1fr; }
  .definition-list dt { border-bottom: 0; }
  .access-card { grid-template-columns: 1fr; }
  .access-image { min-height: 220px; }
  .utility-inner { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .header-inner, .container, .event-hero-inner, .hero, .footer-inner, .utility-inner { padding-left: 16px; padding-right: 16px; }
  .nav { gap: 5px 13px; font-size: .84rem; }
  .hero-symbol-panel { min-height: 235px; }
  .hero-label { position: static; margin: 16px; }
  .event-kicker img { width: 43px; height: 43px; }
  h1 { font-size: clamp(1.85rem, 10vw, 2.8rem); }
}


.card.feature-card { padding: 0; overflow: hidden; }
.card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--soft); }
.card-body { padding: 20px 22px 24px; }
.feature-card h3 { margin-top: 6px; }
.minor-note { color: var(--muted); font-size: .9rem; }
.access-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) 1.05fr;
  gap: 22px;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
}
.access-image { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 3px; }
.access-card p { margin: 0 0 14px; }


/* Contact pages */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 38px;
}
.method-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
  min-height: 100%;
}
.bureau-site .method-card { border-radius: 10px; }
.method-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--deep);
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 14px;
  background: var(--soft);
}
.method-card h3 { margin: 0 0 8px; }
.method-card p { color: var(--muted); margin: 0; }
.contact-code {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .04em;
  padding: 2px 7px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--deep);
}
.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 34px);
  box-shadow: 0 6px 22px rgba(24,48,68,.04);
}
.bureau-site .contact-form { border-radius: 10px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .field-label { font-weight: 700; color: var(--deep); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
  border-radius: 2px;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(95,143,160,.22);
  border-color: var(--accent);
}
.form-help { color: var(--muted); font-size: .82rem; }
.form-actions { margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.form-actions button { border: 0; font: inherit; cursor: pointer; }
.form-result {
  display: none;
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--notice);
  border-left: 4px solid var(--accent);
}
.form-result.is-visible { display: block; }
.privacy-note { color: var(--muted); font-size: .82rem; margin-top: 16px; }
.contact-ledger {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.contact-ledger p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 860px) {
  .contact-methods { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}

/* v5: orientation information architecture */
.priority-strip {
  background: #1f5551;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.priority-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.priority-inner a { color: #fff; margin-left: auto; }
.priority-label {
  display: inline-block;
  padding: 2px 9px;
  background: #fff;
  color: #1f5551;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.update-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--deep);
}
.update-box h2 { margin: 5px 0 5px; font-size: 1.42rem; }
.update-box p { margin: 0; color: var(--muted); }
.update-box .button { flex: 0 0 auto; margin: 0; }
.update-date { color: var(--deep); font-size: .8rem; font-weight: 700; }
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.action-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 15px;
  padding: 20px;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
}
.action-card:hover { border-color: var(--accent); opacity: 1; transform: translateY(-1px); }
.action-number {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--serif);
  color: var(--deep);
  font-size: 1.45rem;
  line-height: 1;
}
.action-card strong { color: var(--deep); font-size: 1.04rem; }
.action-card span:last-child { color: var(--muted); font-size: .87rem; }
.news-list { border-top: 1px solid var(--line); }
.news-list a {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.news-list time { color: var(--muted); font-size: .86rem; }
.deadline-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 18px;
  align-items: center;
  padding: 20px 22px;
  margin: 28px 0;
  background: #eef4f0;
  border: 1px solid var(--line);
  border-left: 5px solid var(--deep);
}
.deadline-banner > span { font-size: .78rem; font-weight: 700; color: var(--deep); }
.deadline-banner > strong { font-size: 1.18rem; color: var(--deep); }
.deadline-banner p { grid-column: 1 / -1; margin: 3px 0 0; color: var(--muted); }
.step-list { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.step-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.step-list h3 { margin: 0 0 6px; color: var(--deep); }
.step-list p { margin: 0; color: var(--muted); }
.step-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: white;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.checklist-table { border-top: 1px solid var(--line); }
.check-row {
  display: grid;
  grid-template-columns: 72px 190px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}
.check-row p { margin: 0; color: var(--muted); }
.requirement {
  display: inline-block;
  width: max-content;
  min-width: 58px;
  text-align: center;
  padding: 2px 8px;
  font-size: .74rem;
  font-weight: 700;
  border: 1px solid var(--accent);
}
.requirement.required { background: var(--deep); color: #fff; border-color: var(--deep); }
.requirement.optional { background: var(--soft); color: var(--deep); }
.resource-grid, .reception-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.resource-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
}
.resource-card > span { color: var(--deep); font-size: .78rem; font-weight: 700; }
.resource-card h3 { margin: 5px 0 8px; }
.resource-card p { margin: 0; color: var(--muted); }
.day-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--panel);
  margin: 24px 0;
}
.day-summary div { padding: 17px; border-right: 1px solid var(--line); }
.day-summary div:last-child { border-right: 0; }
.day-summary span { display: block; color: var(--muted); font-size: .76rem; }
.day-summary strong { color: var(--deep); font-size: 1.05rem; }
.contact-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px;
  background: var(--notice);
  border-left: 4px solid var(--accent);
  margin: 24px 0;
}
.contact-hint strong { margin-right: 8px; }
.contact-hint span { padding: 2px 8px; background: var(--panel); border: 1px solid var(--line); font-size: .8rem; }

@media (max-width: 860px) {
  .priority-inner a { margin-left: 0; }
  .update-box { align-items: flex-start; flex-direction: column; }
  .action-grid, .resource-grid, .reception-grid { grid-template-columns: 1fr; }
  .day-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-summary div:nth-child(2) { border-right: 0; }
  .day-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .check-row { grid-template-columns: 72px 1fr; }
  .check-row p { grid-column: 2; }
}
@media (max-width: 520px) {
  .priority-inner { padding-left: 16px; padding-right: 16px; }
  .action-grid { grid-template-columns: 1fr; }
  .news-list a { grid-template-columns: 1fr; gap: 2px; }
  .day-summary { grid-template-columns: 1fr; }
  .day-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .day-summary div:last-child { border-bottom: 0; }
  .check-row { grid-template-columns: 1fr; }
  .check-row p { grid-column: auto; }
  .step-list li { grid-template-columns: 42px 1fr; }
}

/* v6: Transportation access and schematic maps */
.route-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 36px;
}
.route-time-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.route-time-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}
.route-time-card .route-origin {
  display: block;
  color: var(--muted);
  font-size: .87rem;
  margin-bottom: 4px;
}
.route-time-card strong {
  display: block;
  color: var(--deep);
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: .03em;
}
.route-time-card p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.map-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px;
  margin: 18px 0 38px;
  overflow-x: auto;
  box-shadow: 0 6px 20px rgba(40,94,91,.05);
}
.route-map, .local-map {
  width: 100%;
  height: auto;
  min-width: 700px;
  display: block;
  font-family: var(--sans);
}
.svg-map-title { fill: #285e5b; font-family: var(--serif); font-size: 24px; font-weight: 700; }
.svg-map-note { fill: #65736f; font-size: 13px; }
.rail-line { fill: none; stroke-width: 8; stroke-linecap: round; }
.rail-east { stroke: #6e8fa4; }
.rail-north { stroke: #8aa37d; }
.rail-west { stroke: #b3956e; }
.rail-fiction { stroke: #285e5b; stroke-dasharray: 2 1; }
.walk-line { fill: none; stroke: #a18861; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 7 8; }
.station-group text, .route-map text, .local-map text { fill: #24413f; font-size: 16px; }
.station-group .small, .small { fill: #65736f; font-size: 12px; }
.station-dot.real { fill: #fffdf8; stroke: #6e8fa4; stroke-width: 5; }
.station-dot.hub { fill: #285e5b; stroke: #fffdf8; stroke-width: 5; }
.station-dot.fiction { fill: #fffdf8; stroke: #285e5b; stroke-width: 7; }
.hub-label { fill: #24413f; font-weight: 700; font-size: 17px; }
.campus-mark { fill: #edf4ef; stroke: #285e5b; stroke-width: 3; }
.campus-lines { fill: none; stroke: #285e5b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fiction-label-bg { fill: #edf4ef; stroke: #a9c8c2; }
.fiction-label { fill: #285e5b; font-size: 13px; font-weight: 700; }
.walk-label { fill: #8b704a; font-size: 13px; font-weight: 700; }
.legend-text { fill: #65736f; font-size: 12px; }
.main-road { fill: none; stroke: #d5d1c6; stroke-width: 34; stroke-linecap: round; }
.main-road + .side-road { }
.side-road { fill: none; stroke: #e1ddd2; stroke-width: 22; stroke-linecap: round; }
.walk-route { fill: none; stroke: #a18861; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 9 9; }
.station-building { fill: #e5efeb; stroke: #285e5b; stroke-width: 3; }
.station-lines { fill: none; stroke: #5f8fa0; stroke-width: 4; stroke-linecap: round; }
.bus-stop { fill: #fffdf8; stroke: #5f8fa0; stroke-width: 4; }
.bus-letter { fill: #285e5b; font-size: 14px; font-weight: 700; }
.campus-area { fill: #edf4ef; stroke: #285e5b; stroke-width: 3; }
.campus-tree { fill: #a9c8c2; stroke: #5f8f81; stroke-width: 2; }
.campus-building { fill: #fffdf8; stroke: #5f8fa0; stroke-width: 3; }
.exchange-building { fill: #d7e6e1; stroke: #285e5b; stroke-width: 3; }
.building-label { fill: #285e5b; font-size: 12px; font-weight: 700; }
.walk-time-bg { fill: #fffdf8; stroke: #a18861; stroke-width: 2; }
.walk-time-text { fill: #806846; font-size: 14px; font-weight: 700; }
.river-label { fill: #5f8fa0; font-family: var(--serif); font-size: 20px; letter-spacing: .18em; }
.road-label { fill: #8b8579; font-size: 13px; }
.north-arrow { fill: none; stroke: #285e5b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 720px) {
  .route-time-grid { grid-template-columns: 1fr; }
  .map-panel { margin-left: -4px; margin-right: -4px; padding: 8px; }
}


/* v7: expanded bureau portal and cross-organization links */
body.bureau-site { background: #f4f7f9; }
.bureau-hero-expanded .hero { padding-top: 88px; padding-bottom: 78px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 24px; }
.bureau-scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.bureau-scope span { padding: 5px 10px; border: 1px solid rgba(16,43,70,.2); background: rgba(255,255,255,.55); font-size: .76rem; color: var(--deep); }
.bureau-dashboard { min-height: 430px; padding-bottom: 104px; }
.bureau-dashboard .hero-symbol { width: 56%; margin-top: -38px; }
.bureau-dashboard-grid { position: absolute; left: 22px; right: 22px; bottom: 96px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid rgba(16,43,70,.12); background: rgba(255,255,255,.86); z-index: 2; }
.bureau-dashboard-grid div { padding: 10px 12px; text-align: center; border-right: 1px solid rgba(16,43,70,.1); }
.bureau-dashboard-grid div:last-child { border-right: 0; }
.bureau-dashboard-grid span,.bureau-dashboard-grid small { display:block; color:var(--muted); font-size:.69rem; }
.bureau-dashboard-grid strong { display:inline-block; font-family:var(--serif); font-size:1.55rem; color:var(--deep); margin-right:3px; }
.bureau-dashboard .hero-label { max-width:none; right:22px; bottom:18px; }
.bureau-gateway { background:#102b46; color:#fff; }
.gateway-inner { max-width:1120px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); }
.gateway-inner a { color:#fff; text-decoration:none; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:13px; padding:21px 20px; border-right:1px solid rgba(255,255,255,.14); }
.gateway-inner a:first-child { border-left:1px solid rgba(255,255,255,.14); }
.gateway-inner a:hover { opacity:1; background:rgba(255,255,255,.07); }
.gateway-mark { grid-row:1 / span 2; width:39px; height:39px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.42); border-radius:50%; font-family:var(--serif); }
.gateway-inner strong { font-size:.94rem; }
.gateway-inner small { color:rgba(255,255,255,.66); font-size:.72rem; }
.section-heading-row { display:flex; align-items:end; justify-content:space-between; gap:25px; margin-bottom:24px; }
.section-heading-row .section-title { margin-bottom:0; }
.text-link { font-size:.86rem; text-decoration:none; white-space:nowrap; }
.bureau-feature { display:grid; grid-template-columns:1.03fr .92fr 250px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); overflow:hidden; }
.bureau-feature > img { width:100%; height:100%; min-height:420px; object-fit:cover; }
.bureau-feature-content { padding:34px 32px; }
.bureau-feature-content h3 { font-family:var(--serif); font-size:1.72rem; margin:12px 0; }
.event-code { margin-left:10px; color:var(--muted); font-family:ui-monospace,monospace; font-size:.72rem; }
.compact-meta { display:grid; grid-template-columns:62px 1fr; font-size:.84rem; margin:20px 0; border-top:1px solid var(--line); }
.compact-meta dt,.compact-meta dd { margin:0; padding:7px 4px; border-bottom:1px solid var(--line); }
.compact-meta dt { color:var(--muted); }
.bureau-feature-aside { padding:32px 23px; background:#e8eef2; border-left:1px solid var(--line); }
.bureau-feature-aside span { display:block; font-size:.73rem; letter-spacing:.12em; color:var(--muted); }
.bureau-feature-aside strong { display:block; margin:8px 0 14px; color:var(--deep); }
.bureau-feature-aside p { font-size:.84rem; color:var(--muted); }
.bureau-feature-aside a { font-size:.84rem; }
.bureau-dark-section { background:#102b46; color:#fff; margin-top:14px; }
.bureau-dark-inner { padding-top:62px; padding-bottom:68px; }
.bureau-dark-section .section-title,.bureau-dark-section .eyebrow,.bureau-dark-section p { color:#fff; }
.eyebrow.light { color:#a9c0d0; }
.world-index-grid { display:grid; grid-template-columns:repeat(6,1fr); margin-top:30px; border-top:1px solid rgba(255,255,255,.18); border-left:1px solid rgba(255,255,255,.18); }
.world-index-grid a { min-height:175px; padding:24px 17px; display:flex; flex-direction:column; color:#fff; text-decoration:none; border-right:1px solid rgba(255,255,255,.18); border-bottom:1px solid rgba(255,255,255,.18); }
.world-index-grid a:hover { opacity:1; background:rgba(255,255,255,.07); }
.world-index-grid span { font-family:var(--serif); font-size:1.7rem; color:#9eb8ca; }
.world-index-grid strong { margin-top:auto; font-size:1rem; }
.world-index-grid small { color:rgba(255,255,255,.58); font-size:.72rem; line-height:1.5; margin-top:5px; }
.bureau-service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.bureau-service-grid article { position:relative; min-height:270px; background:#fff; border:1px solid var(--line); padding:30px 26px; overflow:hidden; }
.bureau-service-grid h3 { margin-top:52px; color:var(--deep); }
.bureau-service-grid p { color:var(--muted); font-size:.91rem; }
.bureau-service-grid a { font-size:.83rem; }
.service-geometry { position:absolute; width:55px; height:55px; top:25px; left:25px; }
.geometry-a { border:2px solid var(--deep); border-radius:50%; }
.geometry-a::before { content:""; position:absolute; inset:11px -11px; border-top:2px solid var(--accent); border-bottom:2px solid var(--accent); transform:rotate(-18deg); }
.geometry-b { border:2px solid var(--deep); transform:rotate(45deg); }
.geometry-b::before { content:""; position:absolute; inset:10px; border:2px solid var(--accent); }
.geometry-c { border-left:2px solid var(--deep); border-right:2px solid var(--deep); border-radius:50%; }
.geometry-c::before,.geometry-c::after { content:""; position:absolute; width:35px; height:35px; border:2px solid var(--accent); border-radius:50%; top:8px; }
.geometry-c::before { left:-13px; }.geometry-c::after { right:-13px; }
.bureau-event-card { position:relative; padding-top:105px; overflow:hidden; }
.event-glyph { position:absolute; left:0; right:0; top:0; height:78px; background:#e8eef2; border-bottom:1px solid var(--line); }
.event-glyph::before,.event-glyph::after { content:""; position:absolute; }
.glyph-station::before { left:24px; right:24px; top:38px; border-top:2px solid #7899b2; }
.glyph-station::after { width:19px; height:19px; border:4px solid #102b46; border-radius:50%; left:calc(50% - 13px); top:27px; background:#e8eef2; box-shadow:-70px 0 0 -5px #7899b2,70px 0 0 -5px #7899b2; }
.glyph-drift::before { width:110px; height:38px; border:2px solid #7899b2; border-radius:50%; left:calc(50% - 55px); top:20px; transform:rotate(-7deg); }
.glyph-drift::after { width:10px; height:10px; background:#102b46; border-radius:50%; left:38%; top:32px; box-shadow:34px -8px 0 #7899b2,67px 6px 0 #102b46; }
.glyph-voice::before { left:22px; right:22px; top:18px; bottom:18px; background:repeating-linear-gradient(90deg,transparent 0 14px,#7899b2 15px 17px,transparent 18px 27px); clip-path:polygon(0 50%,8% 37%,16% 63%,24% 25%,32% 70%,40% 43%,48% 55%,56% 20%,64% 73%,72% 34%,80% 60%,88% 40%,100% 50%,100% 54%,0 54%); }
.glyph-night::before { width:48px; height:48px; border:2px solid #102b46; border-radius:50%; left:calc(50% - 25px); top:13px; box-shadow:18px -4px 0 -7px #e8eef2; }
.bureau-news-layout { display:grid; grid-template-columns:1.3fr .7fr; gap:24px; }
.bureau-contact-mini { background:#102b46; color:#fff; padding:25px; display:grid; grid-template-columns:78px 1fr; gap:18px; align-items:start; }
.bureau-contact-mini img { width:75px; filter:brightness(0) invert(1); opacity:.9; }
.bureau-contact-mini span { color:#9eb8ca; font-size:.74rem; }
.bureau-contact-mini h3 { margin:5px 0 7px; }
.bureau-contact-mini p { color:rgba(255,255,255,.66); font-size:.82rem; }
.bureau-contact-mini .button { background:#fff; color:#102b46; }
.bureau-page-hero { background:linear-gradient(135deg,#f9fbfc,#e8eef2); border-bottom:1px solid var(--line); }
.bureau-page-hero .container { padding-top:50px; padding-bottom:46px; }
.directory-toolbar { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; padding:15px 18px; background:#fff; border:1px solid var(--line); }
.directory-toolbar div { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.directory-toolbar span { font-size:.75rem; color:var(--muted); margin-right:6px; }
.directory-toolbar a { text-decoration:none; padding:5px 9px; border:1px solid var(--line); font-size:.78rem; }
.directory-toolbar a.is-active { background:var(--deep); color:#fff; border-color:var(--deep); }
.directory-summary { display:grid; grid-template-columns:repeat(3,1fr); margin-top:18px; border:1px solid var(--line); background:#fff; }
.directory-summary div { padding:14px 18px; border-right:1px solid var(--line); }
.directory-summary div:last-child { border-right:0; }
.directory-summary strong { font-family:var(--serif); font-size:1.45rem; color:var(--deep); margin-right:8px; }
.directory-summary span { color:var(--muted); font-size:.8rem; }
.directory-feature { display:grid; grid-template-columns:.88fr 1.12fr; background:#fff; border:1px solid var(--line); }
.directory-feature > img { width:100%; height:100%; min-height:430px; object-fit:cover; }
.directory-feature > div { padding:35px; }
.directory-feature h3 { font-family:var(--serif); font-size:1.7rem; }
.directory-grid .card { box-shadow:none; }
.mini-list { display:grid; grid-template-columns:55px 1fr; font-size:.78rem; border-top:1px solid var(--line); margin-top:16px; }
.mini-list dt,.mini-list dd { margin:0; padding:6px 0; border-bottom:1px solid var(--line); }
.mini-list dt { color:var(--muted); }
.bureau-record-card { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:22px; }
.bureau-record-card h3 { margin:0; }
.bureau-profile { display:grid; grid-template-columns:260px 1fr; gap:38px; background:#fff; border:1px solid var(--line); padding:35px; }
.profile-mark { display:grid; place-items:center; background:#e8eef2; min-height:250px; }
.profile-mark img { width:70%; }
.bureau-profile dl { display:grid; grid-template-columns:130px 1fr; align-content:start; margin:0; border-top:1px solid var(--line); }
.bureau-profile dt,.bureau-profile dd { margin:0; padding:12px 8px; border-bottom:1px solid var(--line); }
.bureau-profile dt { color:var(--muted); }
.bureau-process { list-style:none; padding:0; display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.bureau-process li { padding:22px 18px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:#fff; }
.bureau-process li > span { font-family:var(--serif); font-size:1.6rem; color:var(--accent); }
.bureau-process strong { display:block; margin:12px 0 7px; color:var(--deep); }
.bureau-process p { margin:0; color:var(--muted); font-size:.82rem; }
.relationship-panel { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:13px; }
.relationship-panel > div:not(.relation-arrow) { background:#fff; border:1px solid var(--line); padding:21px; }
.relationship-panel span { color:var(--muted); font-size:.73rem; }.relationship-panel strong { display:block; margin:5px 0; }.relationship-panel p { color:var(--muted); font-size:.8rem; margin:0; }.relation-arrow { color:var(--accent); font-size:1.7rem; }
.visitor-check-grid { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); background:#fff; }
.visitor-check-grid a { padding:19px; text-decoration:none; border-right:1px solid var(--line); display:grid; }
.visitor-check-grid a:last-child { border-right:0; }.visitor-check-grid span { font-family:var(--serif); color:var(--accent); font-size:1.4rem; }.visitor-check-grid small { color:var(--muted); }
.bureau-support-band { display:flex; justify-content:space-between; align-items:center; gap:25px; background:#102b46; color:#fff; padding:25px 28px; }.bureau-support-band p { color:rgba(255,255,255,.66); margin:5px 0 0; }.bureau-support-band .button { background:#fff;color:#102b46; flex:0 0 auto; }
.organizer-requirements { display:grid; grid-template-columns:repeat(2,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); }.organizer-requirements > div { padding:20px; background:#fff; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }.organizer-requirements span { display:inline-block; border:1px solid var(--accent); padding:2px 7px; font-size:.7rem; color:var(--deep); }.organizer-requirements strong { display:block; margin:8px 0 4px; }.organizer-requirements p { margin:0;color:var(--muted);font-size:.82rem; }
.partner-example { display:grid; grid-template-columns:120px 1fr; gap:24px; align-items:center; padding:25px; background:#fff; border:1px solid var(--line); }.partner-example img { max-height:110px; object-fit:contain; }.partner-example span { color:var(--muted);font-size:.74rem; }.partner-example h3 { margin:3px 0; }
.utility-inner > span { color:rgba(255,255,255,.64); }
.partner-nav-link { border-left:1px solid var(--line); padding-left:16px; }
.sidebar-partner-link { margin-top:8px; background:var(--soft); color:var(--deep)!important; font-weight:700; }
.university-partner-panel { display:grid; grid-template-columns:145px 1fr; gap:26px; align-items:center; background:#f0f4f2; border:1px solid var(--line); padding:25px; }.university-partner-panel > img { width:125px; max-height:125px; object-fit:contain; }.university-partner-panel span { color:var(--muted);font-size:.74rem;letter-spacing:.08em; }.university-partner-panel h3 { margin:4px 0 7px;color:var(--deep); }.university-partner-panel p { color:var(--muted); }.university-partner-panel .text-link { margin-left:10px; }

@media (max-width: 980px) {
  .bureau-feature { grid-template-columns:1fr 1fr; }.bureau-feature-aside { grid-column:1/-1;border-left:0;border-top:1px solid var(--line); }
  .world-index-grid { grid-template-columns:repeat(3,1fr); }
  .gateway-inner { grid-template-columns:repeat(2,1fr); }.gateway-inner a:nth-child(3){border-left:1px solid rgba(255,255,255,.14);}
  .bureau-process { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 760px) {
  .section-heading-row { align-items:flex-start;flex-direction:column; }.text-link{white-space:normal;}
  .bureau-feature,.directory-feature { grid-template-columns:1fr; }.bureau-feature > img,.directory-feature > img { min-height:260px;max-height:360px; }.bureau-feature-aside{grid-column:auto;}
  .bureau-service-grid,.bureau-news-layout { grid-template-columns:1fr; }.world-index-grid { grid-template-columns:repeat(2,1fr); }.bureau-profile { grid-template-columns:1fr; }.profile-mark{min-height:200px;}.profile-mark img{width:180px;}
  .relationship-panel { grid-template-columns:1fr; }.relation-arrow{transform:rotate(90deg);text-align:center;}.visitor-check-grid { grid-template-columns:repeat(2,1fr); }.visitor-check-grid a:nth-child(2){border-right:0;}.visitor-check-grid a:nth-child(-n+2){border-bottom:1px solid var(--line);}
  .bureau-support-band { align-items:flex-start;flex-direction:column; }.organizer-requirements { grid-template-columns:1fr; }.university-partner-panel { grid-template-columns:100px 1fr; }
}
@media (max-width: 520px) {
  .gateway-inner { grid-template-columns:1fr; }.gateway-inner a,.gateway-inner a:nth-child(3){border-left:1px solid rgba(255,255,255,.14);border-bottom:1px solid rgba(255,255,255,.14);}
  .bureau-dashboard { min-height:370px; }.bureau-dashboard-grid{left:12px;right:12px;}.bureau-dashboard .hero-label{left:12px;right:12px;}
  .world-index-grid,.directory-summary,.visitor-check-grid { grid-template-columns:1fr; }.world-index-grid a{min-height:130px;}.directory-summary div{border-right:0;border-bottom:1px solid var(--line);}.visitor-check-grid a{border-right:0;border-bottom:1px solid var(--line);}.visitor-check-grid a:last-child{border-bottom:0;}
  .bureau-process { grid-template-columns:1fr; }.bureau-record-card { grid-template-columns:1fr; }.bureau-profile dl{grid-template-columns:1fr;}.bureau-profile dt{padding-bottom:0;border-bottom:0;}.partner-example,.university-partner-panel { grid-template-columns:1fr; }.university-partner-panel .text-link{display:block;margin:12px 0 0;}
}

/* v9: 水明総合大学公式サイトへの導線 */
.university-nav-link { font-weight: 700; color: var(--deep)!important; }
.sidebar-university-link { margin-top: 8px; background: #eef6f2; color: var(--deep)!important; font-weight: 700; }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.event-actions .button { margin: 0; }
.partner-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }
.partner-actions a { font-weight: 700; }
