:root {
  --navy: #002b5b;
  --navy-deep: #001d3d;
  --ink: #1e2430;
  --text: #333333;
  --muted: #667085;
  --paper: #ffffff;
  --wash: #f5f5f5;
  --line: #d9e1ea;
  --line-strong: #b9c7d6;
  --accent: #9b2a2a;
  --accent-soft: rgba(155, 42, 42, 0.12);
  --shadow: 0 18px 40px rgba(0, 43, 91, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #f9fbfd 0%, #ffffff 34%, #f6f8fb 100%);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  padding: 10px 14px;
  background: var(--navy);
  color: white;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.announcement-bar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.announcement-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.announcement-inner p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 225, 234, 0.9);
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand-copy small,
.section-kicker,
.eyebrow,
.card-meta,
.timeline-date,
.footer-heading,
.footer-title {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: white;
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 14px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a,
.footer-links a,
.footer-meta a,
.text-link {
  color: var(--navy);
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

.header-utilities {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-search input,
.site-search button,
.filter-panel select,
.filter-panel input {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
}

.language-button {
  min-width: 62px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
}

.language-button.is-active {
  background: var(--navy);
  color: white;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-search input {
  width: min(220px, 34vw);
  padding: 10px 14px;
}

.site-search button,
.button {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.site-search button:hover,
.nav-toggle:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--navy);
  color: white;
}

.button-secondary {
  background: white;
  color: var(--navy);
  border-color: var(--line-strong);
}

.utility-status {
  min-height: 1.25rem;
  padding: 0 0 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

main {
  display: grid;
  gap: 48px;
}

.hero,
.page-hero {
  padding: 32px 0 0;
}

.hero-grid,
.page-hero-grid,
.split-layout {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  padding-bottom: 12px;
}

.page-hero-grid,
.split-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1,
.page-hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0;
}

.section-kicker,
.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-summary,
.page-summary,
.section-heading p,
.info-card p,
.content-card p,
.sidebar-panel p,
.theme-item p,
.expert-card p,
.publication-card p,
.news-card p,
.feature-story p,
.timeline-item p,
.footer-copy,
.footer-contact,
.definition-list,
.card-meta {
  color: var(--muted);
}

.hero-summary,
.page-summary {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
}

.hero-metrics dt {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.8rem;
  color: var(--navy);
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.hero-media {
  position: relative;
}

.hero-media img,
.expert-card img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-media img {
  min-height: 560px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
}

.hero-panel,
.info-card,
.content-card,
.sidebar-panel,
.theme-item,
.mini-card,
.publication-card,
.news-card,
.expert-card,
.feature-story,
.timeline-item,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: absolute;
  right: 18px;
  bottom: -24px;
  max-width: 340px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.96));
}

.panel-note {
  margin-top: 10px;
  color: var(--navy);
  font-weight: 700;
}

.trust-strip,
.section-block {
  padding: 6px 0;
}

.section-muted {
  padding: 26px 0;
  background: var(--wash);
  border-top: 1px solid rgba(217, 225, 234, 0.65);
  border-bottom: 1px solid rgba(217, 225, 234, 0.65);
}

.trust-grid,
.card-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.trust-grid,
.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.content-card,
.sidebar-panel,
.theme-item,
.mini-card,
.publication-card,
.news-card,
.feature-story,
.timeline-item,
.expert-card-copy {
  padding: 22px;
}

.content-card h3,
.info-card h2,
.sidebar-panel h3 {
  max-width: 20ch;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading > div {
  max-width: 50ch;
}

.section-heading p {
  max-width: 44ch;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.content-card,
.news-card,
.publication-card,
.theme-item,
.mini-card,
.timeline-item,
.application-form {
  display: grid;
  gap: 12px;
}

.section-cta {
  margin-top: 18px;
}

.text-link {
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.split-layout {
  align-items: start;
}

.theme-list,
.feature-stack,
.timeline {
  display: grid;
  gap: 14px;
}

.feature-stack .button {
  justify-self: start;
}

.expert-preview,
.expert-card {
  display: grid;
  gap: 0;
}

.expert-preview img {
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.expert-preview > div {
  padding: 18px;
}

.expert-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.expert-card-copy {
  display: grid;
  gap: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumbs a {
  color: var(--navy);
}

.definition-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.definition-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.definition-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.card-meta {
  font-size: 0.82rem;
}

.timeline {
  counter-reset: step;
}

.timeline-item {
  position: relative;
  padding-left: 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.filter-panel span {
  font-weight: 700;
  color: var(--navy);
}

.filter-panel select,
.filter-panel input {
  padding: 11px 14px;
  width: 100%;
}

.results-count {
  margin: 14px 0 18px;
  color: var(--muted);
}

.publication-card,
.news-card,
.feature-story {
  display: grid;
  gap: 12px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.application-layout {
  align-items: start;
}

.application-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.auth-form {
  max-width: 460px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.application-form label {
  display: grid;
  gap: 8px;
}

.application-form label span,
.file-field small {
  color: var(--muted);
}

.application-form input,
.application-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: white;
  color: var(--text);
}

.application-form textarea {
  resize: vertical;
}

.file-field input {
  padding: 10px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.form-status {
  color: var(--muted);
  font-size: 0.94rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  color: var(--navy);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.summary-row td {
  color: var(--muted);
  background: #fbfcfe;
}

.admin-status {
  margin: 0 0 16px;
}

.site-footer {
  margin-top: 36px;
  padding: 34px 0 20px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.8fr));
  padding-bottom: 24px;
}

.footer-title {
  margin: 0 0 12px;
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-heading {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.footer-links a,
.footer-meta a {
  color: rgba(255, 255, 255, 0.92);
}

.footer-copy {
  max-width: 38ch;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .hero-grid,
  .page-hero-grid,
  .split-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .card-grid-three,
  .card-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    position: static;
    margin-top: 16px;
    max-width: none;
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .announcement-inner,
  .topbar,
  .header-utilities,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 0 6px;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    gap: 12px;
  }

  .site-search input {
    width: 100%;
  }

  .trust-grid,
  .card-grid-three,
  .card-grid-two,
  .hero-metrics,
  .filter-panel,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  h1,
  .page-hero h1 {
    max-width: none;
  }
}
