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

:root {
  --cream: #f4f8f6;
  --cream-deep: #eef5f1;
  --fluff-pink: #f0eaf3;
  --leaf-soft: #c8ead9;
  --leaf-mid: #9fd9b8;
  --mist: #e4f6ed;
  --ink: #121c18;
  --ink-soft: rgba(18, 28, 24, 0.56);
  --accent: #2f8f5f;
  --accent-deep: #236b48;
  --accent-soft: #6bc995;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(32, 88, 62, 0.1);
  --line: rgba(28, 72, 52, 0.1);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-edge: rgba(255, 255, 255, 0.96);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
  --shadow-soft: 0 20px 60px rgba(22, 55, 40, 0.06);
  --shadow-card: 0 2px 0 rgba(255, 255, 255, 0.85) inset, 0 24px 48px rgba(18, 48, 36, 0.07);
  --shadow-fluff: 0 36px 72px rgba(45, 110, 78, 0.1);
  --radius-card: 18px;
}

html {
  font-size: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(ellipse 120% 80% at 100% 0%, rgba(200, 234, 216, 0.45), transparent 50%),
    radial-gradient(ellipse 90% 60% at 0% 100%, rgba(240, 234, 246, 0.5), transparent 45%);
  line-height: 1.65;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* --- Background --- */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orbs::before,
.bg-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.62;
  animation: orb-drift 32s ease-in-out infinite alternate;
}

.bg-orbs::before {
  width: min(78vw, 620px);
  height: min(78vw, 620px);
  background: radial-gradient(circle, var(--fluff-pink) 0%, var(--leaf-soft) 45%, transparent 72%);
  top: -16%;
  left: -12%;
}

.bg-orbs::after {
  width: min(62vw, 480px);
  height: min(62vw, 480px);
  background: radial-gradient(circle, var(--mist) 0%, rgba(180, 230, 200, 0.55) 50%, transparent 72%);
  bottom: -14%;
  right: -8%;
  animation-duration: 38s;
  animation-delay: -8s;
}

@keyframes orb-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(3vw, 2vh) scale(1.06);
  }
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#falling-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.falling-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.58;
  filter: drop-shadow(0 8px 20px rgba(45, 120, 85, 0.32));
  will-change: transform, opacity;
}

.falling-img--hero-promo {
  z-index: 5;
  opacity: 0.88;
  filter: drop-shadow(0 10px 28px rgba(45, 120, 85, 0.35));
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--cream);
  z-index: 300;
}

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

/* --- Splash --- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse 130% 90% at 50% -10%, rgba(255, 255, 255, 0.75), transparent 52%),
    linear-gradient(180deg, rgba(255, 250, 252, 0.55) 0%, rgba(245, 251, 247, 0.35) 45%, rgba(247, 251, 248, 0.65) 100%);
}

.splash__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 65% at 50% 42%, transparent 28%, rgba(120, 150, 130, 0.07) 100%);
}

.splash__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.splash__fx-svg {
  position: absolute;
  width: 120%;
  height: 45%;
  left: -10%;
  top: 18%;
}

.splash__fx-svg--b {
  top: auto;
  bottom: 8%;
  width: 110%;
  left: -5%;
}

.splash__fx-path {
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  animation: fx-draw 5s ease-in-out infinite alternate;
}

.splash__fx-path--b {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: fx-draw-b 6.5s ease-in-out infinite alternate;
}

@keyframes fx-draw {
  0% {
    stroke-dashoffset: 480;
    opacity: 0.2;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.85;
  }
}

@keyframes fx-draw-b {
  0% {
    stroke-dashoffset: -520;
    opacity: 0.15;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.75;
  }
}

.splash__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 28rem;
  width: 100%;
  will-change: transform;
}

/* 主役ワイト：落下→中央で大きく（JS が transform 制御） */
.splash__hero-wrap {
  position: relative;
  width: min(88vw, 400px);
  min-height: min(52vw, 240px);
  margin: 0.35rem auto 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash__hero-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(180, 235, 205, 0.45) 0%,
    rgba(255, 255, 255, 0.35) 42%,
    transparent 68%
  );
  filter: blur(28px);
  animation: hero-glow-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-glow-pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.waito-hero {
  position: relative;
  z-index: 2;
  width: min(78vw, 340px);
  height: auto;
  display: block;
  border-radius: 28px;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(40, 110, 75, 0.22));
  transform-origin: 50% 50%;
  pointer-events: none;
}

/* Push me */
.push-me {
  position: relative;
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0 0 0.85rem;
  font: inherit;
  background: transparent;
}

.push-me__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  opacity: 0.35;
  filter: blur(12px);
  animation: pulse-glow 2.4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.28;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.45;
  }
}

.push-me__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 252, 248, 0.92));
  border: 1px solid var(--glass-border);
  box-shadow: 0 14px 40px rgba(35, 100, 70, 0.14);
  color: var(--accent-deep);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.push-me:hover .push-me__inner {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 50px rgba(35, 100, 70, 0.2);
}


.push-me:active .push-me__inner {
  transform: translateY(0) scale(0.98);
}

.push-me__label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.push-me__arrow {
  transition: transform 0.35s ease;
}

.push-me:hover .push-me__arrow {
  transform: translateY(3px);
}

/* --- Main content --- */
.page-shell {
  position: relative;
  z-index: 10;
}

.page-main {
  position: relative;
  padding: 0;
}

.page-main__grid {
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 72rem);
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(to right, rgba(32, 88, 62, 0.06) 1px, transparent 1px);
  background-size: min(16.666vw, 7.5rem) 100%;
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 92%);
}

.page-main__inner {
  position: relative;
  z-index: 1;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem 3.75rem;
}

.page-main__inner > .section {
  margin: 0 0 4.25rem;
}

.page-main__inner > .section:last-of-type {
  margin-bottom: 0;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
}

/* Intro hero */
.content-hero {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 0 1rem;
}

.content-hero__rail {
  display: none;
}

@media (min-width: 768px) {
  .content-hero {
    grid-template-columns: 5px 1fr;
    gap: clamp(1.75rem, 4vw, 2.75rem);
    padding: 3.25rem 0 1.25rem;
    align-items: stretch;
  }

  .content-hero__rail {
    display: block;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--leaf-mid) 55%, rgba(159, 217, 184, 0.35) 100%);
    box-shadow: 0 0 24px rgba(47, 143, 95, 0.25);
    min-height: 7.5rem;
    align-self: start;
  }
}

.content-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.content-hero__title {
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  margin: 0 0 1.35rem;
  max-width: min(100%, 40rem);
  line-height: 1.2;
}

.content-hero__break {
  display: none;
}

@media (min-width: 480px) {
  .content-hero__break {
    display: inline;
  }
}

.content-hero__lead {
  margin: 0;
  font-size: clamp(1.02rem, 1.85vw, 1.2rem);
  line-height: 1.82;
  color: rgba(18, 28, 24, 0.72);
  max-width: 38rem;
}

/* Topics */
.topics-head {
  margin-bottom: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.topics-head__label {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.topics-head__title {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

.topics-head__sub {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 30rem;
}

.topic-grid {
  display: grid;
  gap: 1.15rem;
  perspective: 1400px;
  transform-style: preserve-3d;
}

@media (min-width: 880px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1.5rem;
  }
}

.topic-card.qa-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  padding: 1.85rem 1.65rem 1.95rem;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, var(--surface-edge) 0%, rgba(255, 255, 255, 0.55) 48%, rgba(238, 245, 241, 0.65) 100%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition:
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.topic-card.qa-card:hover {
  box-shadow: var(--shadow-fluff);
  border-color: rgba(47, 143, 95, 0.16);
}

.topic-card.qa-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, var(--accent-soft), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.topic-card.qa-card.is-inview::after {
  transform: scaleY(1);
}

.topic-card__ix {
  position: absolute;
  top: 1.25rem;
  right: 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(35, 107, 72, 0.11);
  user-select: none;
}

.topic-card__meta {
  margin: 0;
  padding-right: 3.5rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(35, 88, 62, 0.55);
}

.topic-card__q {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.topic-card__head {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}

.topic-card__body {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.72;
}

.site-footer {
  padding: 3rem 1.5rem 4.25rem;
  border-top: 1px solid rgba(28, 72, 52, 0.09);
  background: linear-gradient(to bottom, rgba(232, 244, 238, 0.85), var(--cream-deep));
}

.footer-inner {
  max-width: 62rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.footer-brand__logo {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 5rem;
  object-fit: contain;
  object-position: left center;
  margin-top: 0.05rem;
  flex-shrink: 0;
}

.footer-name {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.footer-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  align-self: center;
  text-align: right;
}

.footer-tel {
  margin: 0;
}

.footer-tel a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 2px solid rgba(42, 143, 92, 0.35);
  transition: opacity 0.2s;
}

.footer-tel a:hover {
  opacity: 0.75;
}

.footer-mail {
  margin: 0;
}

.footer-mail a {
  display: inline-block;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 143, 92, 0.3);
  transition: opacity 0.2s;
  word-break: break-all;
}

.footer-mail a:hover {
  opacity: 0.75;
}

.magnetic-wrap {
  display: inline-block;
}

@media (max-width: 640px) {
  .footer-contact {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .page-main__inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .topic-card__ix {
    font-size: 2rem;
    top: 1.1rem;
    right: 1.1rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .bg-orbs::before,
  .bg-orbs::after {
    animation: none;
  }

  .splash__fx-path,
  .splash__fx-path--b {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 0.35;
  }

  .splash__hero-glow {
    animation: none;
  }

  .push-me__pulse {
    animation: none;
  }

  .falling-img {
    animation: none !important;
  }
}
