:root {
  --bg: #08111f;
  --bg-soft: #0d1830;
  --panel: rgba(10, 21, 40, 0.82);
  --panel-solid: #0d1b33;
  --panel-border: rgba(210, 184, 120, 0.24);
  --text: #edf2f7;
  --muted: #b7c2d0;
  --gold: #d9b46a;
  --gold-soft: #f2deae;
  --line: rgba(255,255,255,0.08);
  --success: #61d39d;
  --danger: #ff8e8e;
  --shadow: 0 20px 50px rgba(0,0,0,0.34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at top, #102345 0%, var(--bg) 45%, #050b14 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; position: relative; z-index: 2; }
.site-backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.site-backdrop__grid {
  position: absolute; inset: 0; opacity: .08;
  background-image: linear-gradient(var(--gold) 1px, transparent 1px), linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 42px 42px;
}
.site-backdrop__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .25; }
.site-backdrop__glow--one { width: 28rem; height: 28rem; background: #244b94; left: -6rem; top: -4rem; }
.site-backdrop__glow--two { width: 22rem; height: 22rem; background: #ad8750; right: -4rem; top: 9rem; }
.site-backdrop__crest {
  position: absolute; inset: auto auto 2rem 50%; width: 38rem; height: 38rem; transform: translateX(-50%);
  border-radius: 50%; opacity: .055; border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 3rem rgba(217,180,106,.03), inset 0 0 0 8rem rgba(217,180,106,.025);
}
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(6, 13, 26, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 82px; }
.brand { display: flex; align-items: center; gap: .85rem; min-width: 260px; }
.brand__mark {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--panel-border); color: var(--gold-soft); font-weight: 800;
  background: radial-gradient(circle at 30% 30%, #1d315e, #0b1426 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
  flex-shrink: 0;
}
.brand__mark--logo { padding: .2rem; }
.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand strong { display: block; font-size: .98rem; }
.brand small { color: var(--muted); display: block; font-size: .78rem; font-family: 'Noto Serif JP', serif; }
.site-nav { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.site-nav a {
  padding: .75rem .95rem; border-radius: .85rem; color: var(--muted); font-size: .92rem;
  display: flex; flex-direction: column; line-height: 1.15;
}
.site-nav a span { font-size: .69rem; color: #8e9db1; font-family: 'Noto Serif JP', serif; margin-top: .25rem; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); background: rgba(255,255,255,.05); }
.site-header__actions { display: flex; align-items: center; gap: .8rem; }
.header-user { color: var(--muted); font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .25rem; }
.nav-toggle span { display: block; width: 1.6rem; height: 2px; background: white; margin: .28rem 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border-radius: 999px; padding: .9rem 1.15rem; font-weight: 600; border: 1px solid transparent;
}
.btn--primary { background: linear-gradient(135deg, #d8b36a, #a88143); color: #0b1220; }
.btn--secondary { background: rgba(255,255,255,.06); border-color: var(--panel-border); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.hero { padding: 5rem 0 3rem; }
.hero__grid { display: grid; grid-template-columns: 1.35fr .95fr; gap: 1.4rem; align-items: stretch; }
.panel {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 1.6rem; box-shadow: var(--shadow);
}
.hero__content, .hero__crest { padding: 2rem; }
.kicker {
  display: inline-flex; gap: .6rem; align-items: center; padding: .45rem .8rem;
  border-radius: 999px; color: var(--gold-soft); background: rgba(217,180,106,.12); border: 1px solid rgba(217,180,106,.18);
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1, .page-title h1 { font-size: clamp(2.4rem, 4vw, 4.4rem); line-height: 1.04; margin: 1rem 0; }
.hero p.lead, .page-title p { color: var(--muted); max-width: 58ch; font-size: 1.04rem; }
.hero__actions, .cta-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.5rem; }
.stat-grid, .card-grid, .doc-grid, .dept-grid, .info-grid, .contact-grid { display: grid; gap: 1rem; }
.stat-grid { grid-template-columns: repeat(3, 1fr); margin-top: 1.75rem; }
.stat {
  padding: 1rem 1.1rem; border-radius: 1rem; background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.stat strong { display: block; font-size: 1.5rem; color: var(--gold-soft); }
.hero__crest {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 440px;
  background: radial-gradient(circle at 50% 25%, rgba(217,180,106,.14), transparent 32%), rgba(8,16,31,.68);
}
.crest-circle {
  width: min(22rem, 92%); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(217,180,106,.28);
  display: grid; place-items: center; position: relative;
  box-shadow: inset 0 0 0 1rem rgba(217,180,106,.03), inset 0 0 5rem rgba(0,0,0,.32);
}
.crest-circle::before, .crest-circle::after {
  content: ''; position: absolute; inset: 1rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.06);
}
.crest-circle::after { inset: 4rem; }
.crest-core {
  width: 9rem; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #f6e4b2, #c69852 50%, #6a4a20 100%);
  box-shadow: 0 0 2rem rgba(217,180,106,.25);
}
.section { padding: 1.1rem 0 4rem; }
.section h2 { font-size: 2rem; margin-bottom: .45rem; }
.section p.section-intro { color: var(--muted); margin-top: 0; max-width: 65ch; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.card, .doc-card, .form-card, .table-card {
  padding: 1.3rem; border-radius: 1.2rem; background: var(--panel); border: 1px solid var(--panel-border); box-shadow: var(--shadow);
}
.card h3, .doc-card h3 { margin-top: 0; }
.card p, .doc-card p, .muted { color: var(--muted); }
.label {
  display: inline-block; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--gold-soft);
}
.page-title { padding: 3.7rem 0 1.2rem; }
.info-grid, .contact-grid { grid-template-columns: 1.2fr .8fr; }
.dept-grid, .doc-grid { grid-template-columns: repeat(2, 1fr); }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.list-clean li:last-child { border-bottom: 0; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
label { display: block; font-weight: 600; margin-bottom: .4rem; }
input, textarea, select {
  width: 100%; padding: .95rem 1rem; border-radius: .95rem; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); color: var(--text); font: inherit;
}
textarea { min-height: 180px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 1px solid rgba(217,180,106,.5); }
.alert { margin: 1rem 0; padding: .9rem 1rem; border-radius: 1rem; }
.alert--success { background: rgba(97,211,157,.12); border: 1px solid rgba(97,211,157,.24); color: #bff1d6; }
.alert--danger { background: rgba(255,142,142,.12); border: 1px solid rgba(255,142,142,.24); color: #ffd2d2; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .95rem 1rem; border-bottom: 1px solid var(--line); }
.table th { color: var(--gold-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.site-footer { padding: 1rem 0 2rem; border-top: 1px solid var(--line); background: rgba(4, 8, 15, .45); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr .7fr .7fr; gap: 1rem; padding: 2rem 0; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; color: #93a1b4; font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.auth-box { width: min(30rem, calc(100% - 2rem)); margin: 5rem auto; }
.center-note { text-align: center; color: var(--muted); }
@media (max-width: 1024px) {
  .hero__grid, .info-grid, .contact-grid, .site-footer__grid, .dept-grid, .doc-grid, .card-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .site-header__inner { flex-wrap: wrap; padding: .8rem 0; }
  .site-nav { order: 10; width: 100%; display: none; flex-direction: column; align-items: stretch; padding-bottom: .8rem; }
  .site-nav.is-open { display: flex; }
  .site-header__actions { margin-left: auto; }
  .nav-toggle { display: block; margin-left: auto; }
}
@media (max-width: 680px) {
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .hero__content, .hero__crest, .card, .doc-card, .form-card, .table-card { padding: 1.1rem; }
  .site-footer__bottom { flex-direction: column; }
}


.logo-fallback {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  letter-spacing: .04em;
}
.hero-logo {
  width: min(14rem, 62%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 2rem rgba(217,180,106,.18));
}

.content-divider {
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.document-body {
  color: var(--text);
}
.document-body p:first-child { margin-top: 0; }
.checkbox-line {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 1rem 0 1.25rem;
  color: var(--muted);
}
.checkbox-line input {
  width: 1rem;
  height: 1rem;
}



.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown__toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: .75rem .95rem;
  border-radius: .85rem;
  color: var(--muted);
  font-size: .92rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  font: inherit;
}
.nav-dropdown__title { color: inherit; font-size: .92rem; }
.nav-dropdown__jp {
  font-size: .69rem;
  color: #8e9db1;
  font-family: 'Noto Serif JP', serif;
  margin-top: .25rem;
}
.nav-dropdown__toggle:hover,
.nav-dropdown:hover .nav-dropdown__toggle,
.nav-dropdown:focus-within .nav-dropdown__toggle,
.nav-dropdown.is-active .nav-dropdown__toggle {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  min-width: 18rem;
  background: rgba(10, 16, 30, .98);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  padding: .45rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display: none;
  flex-direction: column;
  z-index: 9999;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  display: flex;
}
.nav-dropdown__menu a {
  display: flex;
  flex-direction: column;
  padding: .75rem .9rem;
  border-radius: .75rem;
  color: var(--muted);
  line-height: 1.15;
  text-decoration: none;
}
.nav-dropdown__menu a span {
  font-size: .69rem;
  color: #8e9db1;
  font-family: 'Noto Serif JP', serif;
  margin-top: .25rem;
}
.nav-dropdown__menu a:hover {
  background: rgba(255,255,255,.05);
  color: var(--text);
}

.directory-section + .directory-section { margin-top: 1.5rem; }
.directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.personnel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.person-card, .service-card, .profile-grid > .card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 1.2rem;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.person-card h3, .service-card h3 { margin: .2rem 0 .35rem; }
.person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .8rem 0 1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}
.muted { color: var(--muted); }
.profile-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
}
.definition-list {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: .55rem 1rem;
  margin: 0;
}
.definition-list dt { color: var(--muted); }
.definition-list dd { margin: 0; }
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}
@media (max-width: 980px) {
  .personnel-grid, .profile-grid, .service-list { grid-template-columns: 1fr; }
}
