:root {
  --tokai-blue: #0b4ea2;
  --mgu-red: #8b1c24;
  --mgu-navy: #10334f;
  --mgu-cyan: #00adee;
  --ink: #142033;
  --muted: #5a6a7a;
  --surface: #f5f8fb;
  --surface-strong: #e8eef5;
  --white: #ffffff;
  --line: rgba(16, 51, 79, 0.12);
  --max: 1080px;
  --header-h: 4.5rem;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--mgu-navy);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
}

.brand {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--mgu-navy);
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  position: relative;
  font-size: 0.9rem;
  color: var(--mgu-navy);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: var(--mgu-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--mgu-navy);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.mobile-nav {
  display: none;
  gap: 0.85rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  color: var(--mgu-navy);
  padding: 0.35rem 0;
}

@media (min-width: 880px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.open {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: hero-zoom 18s ease-out forwards;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(16, 51, 79, 0.25) 0%,
      rgba(16, 51, 79, 0.72) 55%,
      rgba(3, 88, 169, 0.88) 100%
    ),
    linear-gradient(90deg, rgba(16, 51, 79, 0.45), transparent 55%);
}

.hero-content {
  width: min(100% - 2rem, var(--max));
  max-width: 42rem;
  margin: 0 auto 4.5rem;
  animation: rise 0.9s ease both;
}

.hero-kicker {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
}

.hero-title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 34rem;
  margin-bottom: 1.75rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--white);
  color: var(--tokai-blue);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-solid {
  background: var(--tokai-blue);
  color: var(--white);
}

.btn-solid:hover {
  background: #024a90;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section-alt {
  background: var(--white);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-eyebrow {
  margin-bottom: 0.6rem;
  color: var(--tokai-blue);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.section-title {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--mgu-navy);
}

.section-lead,
.prose,
.contact-block > p {
  color: var(--muted);
}

.prose {
  color: var(--ink);
}

.prose p + p {
  margin-top: 1rem;
}

.prose a {
  color: var(--tokai-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
  }
}

.visual-plane {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--mgu-navy);
}

.visual-plane img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.visual-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(16, 51, 79, 0.85));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.feed {
  border-top: 1px solid var(--line);
}

.feed-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.6s ease both;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.feed-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--mgu-navy);
}

.feed-excerpt {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline {
  margin-left: 0.35rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--tokai-blue);
  list-style: none;
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--mgu-cyan);
  box-shadow: 0 0 0 4px rgba(0, 173, 238, 0.18);
}

.timeline-year {
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--tokai-blue);
}

.note {
  margin-top: 2rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--mgu-cyan);
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.85rem;
}

.link-list {
  border-top: 1px solid var(--line);
}

.link-row {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.link-row a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--mgu-navy);
}

.link-row a:hover {
  color: var(--tokai-blue);
}

.link-note {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-block {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
}

.contact-mail {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--tokai-blue);
  word-break: break-all;
}

.contact-mail:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9rem;
  color: var(--mgu-navy);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(3, 88, 169, 0.25);
  border-color: var(--tokai-blue);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 2.75rem 0 2rem;
  background: var(--mgu-navy);
  color: rgba(255, 255, 255, 0.86);
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--mgu-cyan);
}

.color-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.5fr;
  height: 4px;
  width: 100%;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

.color-bar span:nth-child(1) {
  background: var(--tokai-blue);
}

.color-bar span:nth-child(2) {
  background: var(--mgu-navy);
}

.color-bar span:nth-child(3) {
  background: var(--mgu-red);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
