:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(248, 250, 255, 0.96);
  --surface-light: rgba(10, 132, 255, 0.08);
  --line: rgba(15, 23, 42, 0.08);
  --text: #101827;
  --text-muted: #5a6678;
  --accent: #0a84ff;
  --accent-strong: #0071e3;
  --sand: #f2d8ab;
  --shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content-width: min(1120px, calc(100% - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(10, 132, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #f4f7fb 100%);
  font-family: "Space Grotesk", "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.7;
}

body[data-menu-open="true"] {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle,
.site-menu__close,
.button {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.menu-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.38rem;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

body[data-menu-open="true"] .menu-toggle {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.site-menu__close:hover,
.site-menu__close:focus-visible,
.button:hover,
.button:focus-visible,
.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--text);
  transform-origin: center;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

body[data-menu-open="true"] .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body[data-menu-open="true"] .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body[data-menu-open="true"] .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(244, 247, 251, 0.6);
  backdrop-filter: blur(10px);
}

.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: min(420px, calc(100% - 1.5rem));
  padding: 1rem;
}

.site-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
  padding: 1.25rem;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 253, 0.96)),
    radial-gradient(circle at top right, rgba(10, 132, 255, 0.08), transparent 35%);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform 220ms ease;
}

body[data-menu-open="true"] .site-menu__inner {
  transform: translateX(0);
}

.site-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-menu__eyebrow,
.section__eyebrow,
.card__eyebrow,
.metric__label,
.link-card__label,
.hero__eyebrow {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.site-menu__close {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.site-menu__close span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.site-menu__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-menu__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-menu__nav {
  display: grid;
  gap: 0.75rem;
}

.site-menu__nav a {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.site-menu__panel {
  margin-top: auto;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(10, 132, 255, 0.04);
}

.site-menu__label {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
}

.site-menu__text {
  margin: 0;
  color: var(--text-muted);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  color: #ffffff;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(22, 28, 36, 0.1) 0%, rgba(24, 32, 40, 0.14) 24%, rgba(31, 43, 55, 0.46) 100%),
    radial-gradient(ellipse at 50% 54%, rgba(16, 20, 27, 0.4) 0%, rgba(18, 24, 31, 0.24) 30%, rgba(20, 29, 38, 0.1) 58%, rgba(20, 29, 38, 0.03) 100%),
    linear-gradient(90deg, rgba(20, 29, 38, 0.08) 0%, rgba(20, 29, 38, 0.03) 50%, rgba(20, 29, 38, 0.08) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5.5rem, 10vw, 7.5rem) 0 clamp(2rem, 6vw, 3rem);
}

.hero__panel {
  width: min(1120px, 100%);
  padding: clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}

.hero h1 {
  max-width: none;
  margin: 0.5rem auto 1rem;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.hero__lead {
  max-width: none;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
  margin: 1.4rem 0 0;
  list-style: none;
}

.hero__tags li {
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.92rem;
}

.hero__actions,
.cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero__actions {
  margin-top: 1.7rem;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 14px 28px rgba(0, 113, 227, 0.22);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: clamp(4.25rem, 9vw, 6.5rem) 0;
}

.section__heading {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.section__heading h2,
.feature h2,
.cta h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section__heading p,
.feature p,
.cta p,
.card p,
.link-card p,
.news-item p {
  color: var(--text-muted);
}

.section--intro {
  position: relative;
}

.section--intro::before {
  content: "";
  position: absolute;
  inset: 1.2rem -1rem auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.12), transparent);
}

.card-grid,
.link-grid,
.news-list {
  display: grid;
  gap: 1rem;
}

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

.card,
.feature,
.link-card,
.news-item,
.cta {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 252, 0.96)),
    radial-gradient(circle at top right, rgba(10, 132, 255, 0.06), transparent 35%);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.5rem;
}

.card h3,
.link-card strong,
.news-item h3,
.metric strong {
  margin: 0.35rem 0 0.6rem;
  font-size: 1.2rem;
}

.feature {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2rem);
}

.feature__content {
  display: grid;
  gap: 1rem;
}

.feature__content p {
  margin: 0;
}

.feature__stats {
  display: grid;
  gap: 0.85rem;
}

.metric {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  background: rgba(10, 132, 255, 0.04);
}

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

.link-card {
  display: grid;
  gap: 0.25rem;
  padding: 1.35rem;
}

.link-card strong {
  font-size: 1.25rem;
}

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

.news-item {
  padding: 1.4rem;
}

.news-item time {
  color: var(--accent);
  font-size: 0.92rem;
}

.news-item h3 {
  font-size: 1.18rem;
}

.section--cta {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.cta {
  padding: clamp(1.4rem, 4vw, 2rem);
}

.cta h2 {
  max-width: 16ch;
}

.site-footer {
  width: var(--content-width);
  margin: 0 auto;
  padding: 0 0 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .card-grid--three,
  .link-grid,
  .news-list,
  .feature {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    width: 100%;
  }

  .cta h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  :root {
    --content-width: min(100% - 1rem, 100% - 1rem);
  }

  .menu-toggle {
    top: 0.8rem;
    right: 0.8rem;
    width: 54px;
    height: 54px;
  }

  .site-menu {
    width: calc(100% - 0.5rem);
    padding: 0.5rem 0.5rem 0.5rem 0;
  }

  .site-menu__inner {
    border-radius: 24px 0 0 24px;
  }

  .hero__content {
    align-items: center;
    padding-top: 5rem;
  }

  .hero__panel {
    padding: 1.25rem;
  }

  .hero__actions,
  .cta {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
