:root {
  --brand-pink: #ea4978;
  --brand-blue: #4d77f2;
  --ink: #141a2c;
  --ink-soft: #3f4f6d;
  --line: #e2e8f4;
  --bg-soft: #f6f8fd;
  --shell: min(1120px, calc(100% - 2rem));
  --radius-xxl: 28px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px -32px rgba(17, 31, 64, 0.26);
  --accent-gradient: linear-gradient(135deg, var(--brand-pink), var(--brand-blue));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: radial-gradient(120% 100% at 0% 0%, #ffeef4 0%, transparent 42%),
    radial-gradient(130% 100% at 100% 0%, #eff4ff 0%, transparent 44%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

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

:focus-visible {
  outline: 2px solid #3652e4;
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  z-index: 130;
  border: 1px solid #dae4f7;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: #fff;
  color: #16294f;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
  font-weight: 700;
}

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

.site-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 0 0 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
  padding: 0.55rem 0;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.42) 68%, rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 100%);
  box-shadow: 0 10px 24px -22px rgba(20, 30, 56, 0.32);
}

.brand-wrap {
  width: clamp(220px, 34vw, 315px);
  line-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-wrap img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 2px rgba(17, 24, 39, 0.13));
}

.menu-toggle {
  appearance: none;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 0.72rem;
  border: 1px solid #d9e1f3;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  color: #1f2e58;
  background: linear-gradient(90deg, #f8eef3 0%, #fff 45%, #f2f5ff 100%);
  cursor: pointer;
}

.menu-toggle::after {
  content: "MENU";
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.95;
}

.menu-toggle:hover {
  border-color: color-mix(in oklab, var(--brand-blue) 32%, #d8e1ff 68%);
  box-shadow: 0 8px 18px -12px rgba(58, 79, 171, 0.55);
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1f325e;
  transition: transform 0.24s ease;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-lines {
  position: relative;
}

.menu-lines::before {
  top: -6px;
}

.menu-lines::after {
  top: 6px;
}

.menu-toggle.is-open {
  border-color: var(--brand-blue);
  background: var(--accent-gradient);
  color: #fff;
}

.menu-toggle.is-open::after {
  content: "CLOSE";
}

.menu-toggle.is-open .menu-lines {
  transform: rotate(45deg);
  background: #fff;
}

.menu-toggle.is-open .menu-lines::before {
  transform: rotate(90deg) translate(2px, 2px);
  background: #fff;
}

.menu-toggle.is-open .menu-lines::after {
  transform: rotate(90deg) translate(2px, -2px);
  background: #fff;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 1rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: #1e315b;
  background: rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: linear-gradient(90deg, rgba(234, 73, 120, 0.12), rgba(77, 119, 242, 0.12));
  border-color: color-mix(in oklab, var(--brand-pink) 25%, #dce5ff 75%);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"],
.site-nav a.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--accent-gradient);
  box-shadow: 0 10px 24px -17px rgba(75, 102, 212, 0.8);
}

main {
  margin-top: 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xxl);
  border: 1px solid #e8edfb;
  box-shadow: var(--shadow-soft);
}

.hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10, 24, 46, 0.62), rgba(255, 255, 255, 0) 58%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  padding: 1.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 2;
}

.hero-overlay .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  font-weight: 700;
}

.hero-overlay h1 {
  margin: 0.45rem 0 0;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: 0.02em;
}

.section-card {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -25px rgba(17, 32, 68, 0.28);
  padding: 1rem;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.section-title .badge,
.section-title .pill {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #d6e0f5;
  padding: 0.14rem 0.62rem;
  color: #29406f;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.78rem;
}

.news-grid,
.media-grid,
.member-grid,
.feature-grid,
.news-detail {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.85rem;
}

.news-grid,
.media-grid,
.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.news-card,
.media-card,
.member-card,
.timeline li {
  background: #fff;
  border: 1px solid #edf1fb;
  border-radius: 14px;
  padding: 0.92rem;
  box-shadow: var(--shadow-soft);
}

.news-card p,
.media-card p,
.member-card p,
.timeline p {
  margin: 0.22rem 0;
  color: var(--ink-soft);
}

.news-kicker {
  display: inline-flex;
  color: #cf295f;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  font-weight: 700;
}

.news-card h3 {
  margin: 0.3rem 0;
  font-size: 1.05rem;
}

.media-card h3 {
  margin: 0 0 0.42rem;
}

.media-card img {
  border-radius: 12px;
  border: 1px solid var(--line);
}

.member-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.member-card h3 {
  margin: 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) 1fr;
  gap: 0.52rem 1rem;
  position: relative;
  margin-top: 0;
  border-left: 2px solid color-mix(in oklab, var(--brand-blue) 40%, #d2def6 60%);
  border-radius: 0 12px 12px 0;
}

.timeline li + li {
  margin-top: 0.8rem;
}

.timeline time {
  font-weight: 700;
  color: #20366e;
  font-size: 0.86rem;
  white-space: nowrap;
}

.timeline p {
  margin: 0;
}

.btn-row {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
}

.btn,
button.btn {
  border: 0;
  border-radius: 999px;
  min-height: 41px;
  padding: 0.58rem 0.96rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: var(--accent-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
button.btn:hover,
button.btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.btn.ghost {
  color: #1a2f58;
  background: #fff;
  border: 1px solid #d9e3f6;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

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

label {
  font-weight: 700;
  font-size: 0.92rem;
}

input,
textarea {
  border: 1px solid #d5deee;
  background: #fff;
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  color: inherit;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

#contact-status {
  margin-top: 0.6rem;
  min-height: 1.25rem;
  color: #19458b;
}

.site-footer {
  margin-top: 1.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.95rem;
  flex-wrap: wrap;
  color: #4f5f7e;
}

.social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 0.2rem;
}

.social a img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 3px;
  background: rgba(64, 99, 196, 0.14);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--accent-gradient);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d3e0f6;
  background: #fff;
  color: #1d2d5e;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 24px -16px rgba(15, 31, 67, 0.5);
}

.back-to-top.is-visible {
  display: inline-flex;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 74px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.72rem;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    max-height: none;
    overflow: visible;
    pointer-events: auto;
    opacity: 1;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.28rem;
    width: 100%;
    min-width: 0;
  }

  .site-nav li {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-nav a {
    height: 36px;
    border-radius: 999px;
    padding: 0 0.48rem;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 0.5rem;
  }

  .brand-wrap {
    width: min(245px, 72vw);
  }

  .site-nav ul {
    gap: 0.18rem;
  }

  .site-nav a {
    height: 32px;
    padding: 0 0.32rem;
    font-size: 0.7rem;
  }

  .hero {
    border-radius: 20px;
  }

  .hero img {
    aspect-ratio: 16 / 10;
  }

  .hero-overlay h1 {
    font-size: 1.9rem;
  }

  .section-card {
    padding: 0.9rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .site-nav a {
    padding: 0 0.22rem;
    font-size: 0.64rem;
  }
}
