/* =============================================================
   Free way — Corporate LP
   Design tokens per DESIGN.md §2-8. Mobile-first; breakpoints
   640px (tablet) / 1024px (desktop) per DESIGN.md §8-1.
   ============================================================= */

:root {
  /* Core */
  --color-primary:        #1E3160;
  --color-secondary:      #5FD0A6;
  --color-tertiary:       #21BFC5;
  --color-quaternary:     #2E8DC9;
  --color-highlight:      #E2E53C;

  /* Section backgrounds */
  --color-bg-base:          #FFFFFF;
  --color-bg-gray:          #F5F5F5;
  --color-bg-tint-blue:     #D3DCF0;
  --color-bg-tint-mint:     #DCE3E1;
  --color-bg-tint-sky:      #D6EDF7;
  --color-bg-tint-sky-pale: #DDEEF7;
  --color-bg-deep:          #1E3160;
  --color-bg-footer:        #1F2A6E;
  --color-bg-breadcrumb:    #3B4689;

  /* Text */
  --color-text-main:      #1E3160;
  --color-text-muted:     #6B7A99;
  --color-text-inverse:   #FFFFFF;
  --color-border:         #E3E8F0;
  --color-button-dark:    #2B2B2B;

  /* Contrast-safe deep variants (§2-5) — required under white text */
  --color-cyan-deep:      #0B7F86;
  --color-mint-deep:      #14805C;

  --color-voice-1: #C1664A;

  --gradient-cta: linear-gradient(90deg, #3ED6A0 0%, #2BC4C9 100%);

  /* Type */
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-latin: 'Poppins', sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --section-pad: 64px;
  --pill-bg: #B8DDD9;
}

@media (min-width: 1024px) {
  :root {
    --gutter: 24px;
    --section-pad: 120px;
  }
}

/* ------------------------------- reset ------------------------------- */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-jp);
  color: var(--color-text-main);
  letter-spacing: 0.04em;
  background: var(--color-bg-base);
  overflow-x: clip;
}

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }

a {
  color: var(--color-text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-quaternary); }

/* Keyboard focus must always be visible (§9). Never `outline: none`. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-quaternary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-size: 0.9375rem;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  color: var(--color-text-inverse);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

/* ----------------------------- keyframes ----------------------------- */

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes orbDrift {
  from { transform: translate3d(-8%, -4%, 0) scale(1); }
  to   { transform: translate3d(10%, 6%, 0) scale(1.15); }
}
@keyframes lineUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------- scroll-reveal (fail-safe) ---------------------- *
 * Only hidden when JS confirmed it can reveal them again. Without JS, or
 * with reduced motion, `.has-reveal` is never set and content is visible.  */

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.has-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ------------------------- shared section parts ------------------------- */

.section-label {
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-align: center;
}
.section-label--cyan  { color: var(--color-tertiary); }
.section-label--sky   { color: var(--color-quaternary); }
.section-label--mint  { color: var(--color-secondary); }
.section-label--navy  { color: var(--color-primary); }
.section-label--gold  { color: var(--color-highlight); }
.section-label--on-dark { color: var(--color-text-inverse); }

.section-rule {
  display: block;
  width: 32px;
  height: 2px;
  margin: 0 auto 32px;
}
.section-rule--cyan  { background: var(--color-tertiary); }
.section-rule--sky   { background: var(--color-quaternary); }
.section-rule--mint  { background: var(--color-secondary); }
.section-rule--navy  { background: var(--color-primary); }
.section-rule--gold  { background: var(--color-highlight); }
.section-rule--white { background: var(--color-text-inverse); }

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  text-align: center;
}
.section-title--on-dark { color: var(--color-text-inverse); }
.section-title--balance { text-wrap: balance; }

.section-lead {
  font-size: 1.125rem;
  line-height: 1.9;
  font-weight: 500;
  margin-bottom: 48px;
  text-align: justify;
}

.section-body {
  font-size: 1rem;
  line-height: 1.9;
  text-align: justify;
}

/* Mobile centres section headings; body copy stays justified (§8-2). */
@media (min-width: 1024px) {
  .section-label { text-align: left; }
  .section-label--center { text-align: center; }
  .section-rule { margin-left: 0; margin-right: 0; }
  .section-rule--center { margin-left: auto; margin-right: auto; }
  .section-title { text-align: left; }
  .section-title--center { text-align: center; }
  .section-lead { margin-bottom: 64px; text-align: left; }
}

.mark { background: linear-gradient(transparent 62%, var(--color-highlight) 62%); }

.dot--mint   { color: var(--color-secondary); }
.dot--cyan   { color: var(--color-tertiary); }
.dot--sky    { color: var(--color-quaternary); }
.dot--yellow { color: var(--color-highlight); }

/* -------------------------------- buttons -------------------------------- */

.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 14px 32px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s ease;
}
.btn:hover { color: var(--color-primary); }

.btn--mint  { background: var(--color-secondary); color: var(--color-primary); }
.btn--gold  { background: var(--color-highlight); color: var(--color-primary); }
.btn--white { background: var(--color-bg-base); color: var(--color-primary); }

.btn--mint:hover  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(95, 208, 166, 0.45); }
.btn--gold:hover  { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(226, 229, 60, 0.45); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(255, 255, 255, 0.30); }

.btn--lg { font-size: 1rem; padding: 16px 40px; }
.btn--lg:hover { box-shadow: 0 8px 32px rgba(95, 208, 166, 0.55); }

.btn--xl {
  font-size: 1rem;
  padding: 20px 48px;
  min-width: 240px;
}
/* Decorative dashed inset on the primary CTA (focus ring still wins). */
.btn--gold.btn--xl {
  outline: 2px dashed var(--color-primary);
  outline-offset: -7px;
}

/* Full-width buttons on mobile (§8-2). */
@media (max-width: 639px) {
  .btn--lg, .btn--xl { display: block; width: 100%; }
}

/* ---------------------------- image placeholder ---------------------------- *
 * Stands in for the design's <image-slot> drop targets. Swap the whole block
 * for an <img> when real photography lands — see site/README.md.             */

.img-slot {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(30, 49, 96, 0.03) 0 10px,
      rgba(30, 49, 96, 0) 10px 20px
    ),
    var(--color-bg-tint-mint);
  color: var(--color-text-muted);
}
.img-slot__icon {
  width: 36px;
  height: 36px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
}
.img-slot__caption {
  font-size: 0.8125rem;
  line-height: 1.7;
  max-width: 22em;
}

/* ================================= HEADER ================================= */

/* Brand-navy bar (白ロゴのため §5-1「ビビッド背景は白文字」を適用)。
   Mobile keeps the bar on screen; past 100px of scroll it gains a shadow. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 88px;
  padding: 0 var(--gutter);
  background: var(--color-bg-deep);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28); }

/* Anchor targets must clear the sticky bar on mobile. */
@media (max-width: 1023px) {
  [id] { scroll-margin-top: 96px; }
}

/* 公式ロゴ（白色版の画像）。ホバーはわずかに減光 */
.logo { transition: opacity 0.2s ease; }
.logo:hover { opacity: 0.85; }

.nav-toggle {
  margin-left: auto;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-inverse);
  transition: transform 0.24s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: full-screen overlay drawer on the brand colour (§5-3). The sticky
   header (z-index 30) stays above it, so the toggle keeps its position and
   morphs into the close button. */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 104px var(--gutter) 48px;
  background: var(--color-primary);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease-out);
}

.site-nav__link {
  color: var(--color-text-inverse);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 16px 4px;
  min-height: 56px;
  display: flex;
  align-items: center;
}
.site-nav__link:hover { color: var(--color-secondary); }

/* While the drawer is open the page behind must not scroll (§5-3). */
body.nav-open { overflow: hidden; }

/* Desktop-only CTA pill; mobile relies on the sticky CTA bar instead
   (§5-3 forbids placing it in both). */
.header-cta { display: none; }

@media (min-width: 1024px) {
  .site-header { position: relative; padding: 0 40px; }
  .site-header.is-scrolled { box-shadow: none; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    margin-left: auto;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .site-nav__link {
    color: var(--color-text-inverse);
    font-size: 0.9375rem;
    padding: 0;
    min-height: 0;
  }
  .site-nav__link:hover { color: var(--color-secondary); }
  .header-cta { display: inline-block; }
  body.nav-open { overflow: auto; }
}

/* ================================== HERO ================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-tint-sky);
  padding: 56px var(--gutter) 96px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
}

.hero__orb {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vmax;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, rgba(95, 208, 166, 0.28), transparent 62%);
  filter: blur(60px);
  animation: orbDrift 24s var(--ease-inout) infinite alternate;
  pointer-events: none;
}

/* Oversized ghost wordmark — decoration only, dropped on mobile (§8-2). */
.hero__ghost {
  display: none;
  position: absolute;
  bottom: -8vw;
  left: 0;
  font-family: var(--font-latin);
  font-weight: 900;
  font-style: italic;
  font-size: 15vw;
  line-height: 1;
  color: #456BCA0D;
  white-space: nowrap;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero__eyebrow {
  margin-bottom: 20px;
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.125rem, 4.4vw, 2rem);
  letter-spacing: 0.1em;
  color: var(--color-cyan-deep);
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.15s forwards;
}

.hero__title {
  font-size: clamp(1.75rem, 8.5vw, 2.75rem);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line__inner {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 0.9s var(--ease-out) 0.3s forwards;
}
.hero__title .line__inner--2 { animation-delay: 0.42s; }

.hero__lead {
  margin-top: 28px;
  font-size: 1.125rem;
  line-height: 1.9;
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.6s forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.75s forwards;
}

.hero__keywords {
  margin-top: 32px;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.9s forwards;
}
.hero__keywords .dot { margin: 0 10px; }

/* Inset from the gutter so the floating dots aren't clipped by the edge. */
.hero__visual {
  position: relative;
  width: min(86%, 420px);
  margin: 0 auto;
}
.hero__blob {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  border-radius: 52% 48% 56% 44% / 50% 54% 46% 50%;
  overflow: hidden;
  background: var(--color-bg-tint-mint);
}
.hero__dot {
  position: absolute;
  border-radius: 50%;
  animation: floaty 6s var(--ease-inout) infinite;
}
.hero__dot--yellow {
  top: -20px;
  right: -12px;
  width: 64px;
  height: 64px;
  background: var(--color-highlight);
}
.hero__dot--blue {
  bottom: -12px;
  left: -20px;
  width: 48px;
  height: 48px;
  background: var(--color-quaternary);
  animation-duration: 8s;
  animation-delay: 1s;
}

/* Scroll cue is mandatory at every width (DESIGN_2.md §9). */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 40px auto 0;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 1.1s forwards;
}
.hero__scroll-label {
  font-family: var(--font-latin);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  display: block;
  width: 2px;
  height: 48px;
  background: var(--color-primary);
  animation: scrollLine 2s var(--ease-inout) infinite;
}

@media (min-width: 640px) {
  .hero__title { font-size: clamp(2rem, 4.6vw, 4.3rem); }
  .hero__visual { width: min(70vw, 520px); }
}

@media (min-width: 1024px) {
  .hero {
    padding: 88px var(--gutter) 150px;
  }
  .hero__ghost { display: block; }
  .hero__inner {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
  .hero__eyebrow { margin-bottom: 24px; }
  .hero__lead { margin-top: 32px; }
  .hero__actions { margin-top: 40px; }
  .hero__keywords { margin-top: 40px; }

  .hero__visual {
    justify-self: end;
    width: min(44vw, 560px);
    margin: 0;
  }
  .hero__dot--yellow { top: -28px; right: -20px; width: 88px; height: 88px; }
  .hero__dot--blue { bottom: -16px; left: -36px; width: 64px; height: 64px; }

  .hero__scroll {
    position: absolute;
    bottom: 6vw;
    right: 48px;
    margin: 0;
  }
}

/* ================================ MARQUEE ================================ */

.marquee {
  padding: 40px 0 8px;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-family: var(--font-latin);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.25rem);
  white-space: nowrap;
}
.marquee .outline {
  -webkit-text-stroke: 2px var(--color-primary);
  color: transparent;
}

/* ================================= ABOUT ================================= */

.about {
  background: var(--color-bg-base);
  padding: var(--section-pad) var(--gutter);
}
.about__inner {
  display: grid;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  align-items: start;
}
.about__intro .section-title { margin-bottom: 32px; }

.about__cards { display: grid; gap: 20px; }

.tea-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 24px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.tea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 49, 96, 0.08);
}
.tea-card__badge {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-family: var(--font-latin);
  font-weight: 900;
  font-style: italic;
  font-size: 0.8125rem;
}
.tea-card__badge--mint { background: var(--color-secondary); }
.tea-card__badge--cyan { background: var(--color-tertiary); }
.tea-card__badge--sky  { background: var(--color-quaternary); color: var(--color-text-inverse); }

.tea-card__title {
  margin-bottom: 6px;
  font-size: 1.25rem;
  font-weight: 700;
}
.tea-card__latin {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-left: 8px;
}
.tea-card__text {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

@media (min-width: 1024px) {
  .about { padding: 104px var(--gutter) 120px; }
  .about__inner { grid-template-columns: 5fr 7fr; gap: 64px; }
  .tea-card { gap: 24px; padding: 28px 32px; }
}

/* =============================== PHILOSOPHY =============================== */

.philosophy {
  background: var(--color-cyan-deep);
  padding: var(--section-pad) var(--gutter) 0;
  text-align: center;
}
.philosophy__lead {
  margin: 24px auto 48px;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 500;
}

/* Panel deliberately overhangs into the next section. */
.philosophy__panel-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  transform: translateY(48px);
}
.philosophy__panel {
  background: var(--color-bg-base);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(30, 49, 96, 0.18);
  padding: 40px 28px;
  display: grid;
  gap: 32px;
  text-align: left;
}

.point__pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--pill-bg);
  border-radius: 999px;
  padding: 6px 18px;
  color: var(--color-primary);
}
.point__pill-label { font-size: 0.75rem; font-weight: 700; }
.point__pill-num {
  font-family: var(--font-latin);
  font-size: 1.125rem;
  font-weight: 900;
  font-style: italic;
}
.point__divider {
  display: block;
  border-bottom: 1px dotted var(--color-primary);
  margin: 16px 0;
}
.point__title { margin-bottom: 8px; font-size: 1.25rem; font-weight: 700; }
.point__text {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.philosophy .section-title { margin-bottom: 0; }

@media (min-width: 1024px) {
  .philosophy { padding: 120px var(--gutter) 0; }
  .philosophy .section-rule { margin-left: auto; margin-right: auto; margin-bottom: 36px; }
  .philosophy .section-title { text-align: center; }
  .philosophy .section-label { text-align: center; }
  .philosophy__lead { margin: 28px auto 64px; }
  .philosophy__panel-wrap { transform: translateY(96px); }
  .philosophy__panel {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 56px 48px;
  }
}

/* ============================ WHY TALENT-FIRST ============================ */

.why {
  background: var(--color-bg-base);
  /* top padding absorbs the philosophy panel's overhang */
  padding: calc(var(--section-pad) + 48px) var(--gutter) 96px;
}
.why__inner {
  display: grid;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
}
.why__body {
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-muted);
  text-align: justify;
}
.why__claim {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.7;
}

.why__flow { display: grid; gap: 16px; }
.why__flow-label {
  margin-bottom: 8px;
  font-family: var(--font-latin);
  font-weight: 900;
  font-style: italic;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.step {
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 16px;
}
.step__num { font-family: var(--font-latin); font-weight: 900; }
.step--plain {
  background: var(--color-bg-gray);
  padding: 24px;
}
.step--plain .step__num { font-size: 1.25rem; color: var(--color-text-muted); }
.step--plain .step__text { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); }

.step--navy {
  background: var(--color-primary);
  padding: 28px;
  box-shadow: 0 12px 40px rgba(30, 49, 96, 0.25);
}
.step--navy .step__num { font-size: 1.5rem; color: var(--color-secondary); }
.step--navy .step__text { font-size: 1.125rem; font-weight: 700; color: var(--color-text-inverse); }

.step--gold {
  background: var(--color-highlight);
  padding: 28px;
  box-shadow: 0 12px 48px rgba(226, 229, 60, 0.5);
}
.step--gold .step__num { font-size: 1.5rem; color: var(--color-primary); }
.step--gold .step__text { font-size: 1.125rem; font-weight: 700; color: var(--color-primary); }

.why__vs {
  text-align: center;
  padding: 16px 0;
  font-family: var(--font-latin);
  font-weight: 900;
  font-style: italic;
  font-size: 2.5rem;
  color: var(--color-bg-tint-blue);
}

.why__badge-row { margin: 8px 0; }
.why__badge {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 12px 32px;
  font-family: var(--font-latin);
  font-weight: 900;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 28px rgba(95, 208, 166, 0.5);
}

@media (min-width: 1024px) {
  .why { padding: 216px var(--gutter) 140px; }
  .why__inner { grid-template-columns: 5fr 7fr; gap: 64px; }
  .why__sticky-col { align-self: stretch; }
  .why__sticky { position: sticky; top: 96px; }
  .why .section-title { margin-bottom: 24px; }
  .why__body { margin-bottom: 40px; }
  .step--plain { padding: 24px 32px; }
  .step--navy, .step--gold { padding: 32px 36px; }
}

/* ============================ SERVICES / 企業 ============================ */

.services {
  background: var(--color-bg-tint-blue);
  padding: var(--section-pad) var(--gutter);
}
.services__grid { display: grid; gap: 24px; }

.svc-card {
  background: var(--color-bg-base);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(30, 49, 96, 0.14);
}
.svc-card__media { height: 220px; }
.svc-card__body { padding: 28px 24px 32px; }
.svc-card__latin {
  margin-bottom: 12px;
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--color-cyan-deep);
}
.svc-card__title { margin-bottom: 12px; font-size: 1.25rem; font-weight: 700; }
.svc-card__text {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--color-text-muted);
  text-align: justify;
}

.functions {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  padding: 32px 24px;
}
.functions__title {
  margin-bottom: 28px;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}
.functions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}
.functions__item { text-align: center; }
.functions__latin {
  margin-bottom: 4px;
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--color-cyan-deep);
}
.functions__name { margin-bottom: 8px; font-size: 1rem; font-weight: 700; }
.functions__text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services__grid { gap: 32px; }
  .svc-card__body { padding: 32px 36px 40px; }
  .functions { margin-top: 64px; padding: 40px 44px; }
  .functions__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

/* ============================ SERVICES / 個人 ============================ */

.individuals {
  background: var(--color-bg-deep);
  padding: var(--section-pad) var(--gutter);
}
.individuals__lead {
  max-width: 44em;
  font-size: 1.125rem;
  line-height: 1.9;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 48px;
  text-align: justify;
}
.individuals__grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.eir {
  background: var(--color-bg-base);
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}
.eir__latin {
  margin-bottom: 12px;
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: var(--color-cyan-deep);
}
.eir__title { margin-bottom: 16px; font-size: 1.5rem; font-weight: 900; }
.eir__text {
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-muted);
  text-align: justify;
}
.eir__media {
  margin-top: auto;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
}

.routes {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 32px 24px;
}
.routes__title {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-inverse);
}
.routes__lead {
  margin-bottom: 24px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}
.routes__list { display: grid; gap: 14px; }
.routes__item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 14px;
}
.routes__item:last-child { border-bottom: none; padding-bottom: 0; }
.routes__num {
  color: var(--color-secondary);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 0.875rem;
}
.routes__name {
  color: var(--color-text-inverse);
  font-weight: 700;
  font-size: 0.9375rem;
}
.routes__desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8125rem;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .individuals__lead { margin-bottom: 64px; }
  .individuals__grid { grid-template-columns: 7fr 5fr; gap: 32px; }
  .eir { padding: 48px; }
  .eir__media { border-radius: 16px; }
  .routes { padding: 40px 36px; }
}

/* ================================ ROADMAP ================================ */

.roadmap {
  background: var(--color-bg-gray);
  padding: var(--section-pad) var(--gutter);
}

/* Mobile keeps the 7 phases on one horizontal rail rather than stacking
   them into a wall of cards (§8-3). Carousel behaviour comes from the shared
   .peek-scroller / .peek-track rules (§5-3). */
.roadmap__grid {
  display: grid;
  gap: 12px;
  text-align: left;
}
.phase {
  background: var(--color-bg-base);
  border-radius: 16px;
  padding: 24px 18px;
}
.phase__num {
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-tertiary);
}
.phase__rule {
  display: block;
  width: 32px;
  border-bottom: 2px dotted var(--color-tertiary);
  margin: 6px 0 16px;
}
.phase__title { margin-bottom: 8px; font-size: 0.9375rem; font-weight: 700; }
.phase__text {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.phase--final { background: var(--color-primary); }
.phase--final .phase__num { color: var(--color-highlight); }
.phase--final .phase__rule { border-bottom-color: var(--color-highlight); }
.phase--final .phase__title { color: var(--color-text-inverse); }
.phase--final .phase__text { color: rgba(255, 255, 255, 0.75); }

.evaluation {
  margin-top: 40px;
  background: var(--color-bg-base);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
}
.evaluation__title { margin-bottom: 12px; font-size: 1.25rem; font-weight: 900; }
.evaluation__text {
  margin: 0 auto 28px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-muted);
  max-width: 38em;
  text-align: justify;
}
.evaluation__chips {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 700;
}
.chip__note { font-weight: 400; color: var(--color-text-muted); margin-left: 8px; }
.evaluation__note {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .roadmap__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .roadmap__grid { grid-template-columns: repeat(7, 1fr); }
  /* The whole ROADMAP intro stays centred at desktop. */
  .roadmap .section-label,
  .roadmap .section-title,
  .roadmap .section-lead { text-align: center; }
  .evaluation { margin-top: 64px; padding: 48px; }
  .evaluation__text { text-align: center; }
}

/* =============================== ECOSYSTEM =============================== */

.ecosystem {
  background: var(--color-quaternary);
  padding: var(--section-pad) var(--gutter);
  text-align: center;
}
.ecosystem .section-label,
.ecosystem .section-title { text-align: center; }
.ecosystem .section-rule { margin-left: auto; margin-right: auto; }
.ecosystem__lead {
  margin: 0 auto 40px;
  max-width: 34em;
  color: var(--color-text-inverse);
  font-size: 1.125rem;
  line-height: 1.9;
  font-weight: 500;
}

.cycle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}
/* The connector lives on the wrapper so it renders outside the white pill. */
.cycle__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cycle__item:not(:last-child)::after {
  content: '↓';
  color: var(--color-text-inverse);
  font-weight: 400;
  line-height: 1;
}
.cycle__step {
  display: inline-block;
  background: var(--color-bg-base);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
}
.cycle__num {
  font-family: var(--font-latin);
  font-weight: 900;
  color: var(--color-quaternary);
  margin-right: 8px;
}
.cycle__step--final { background: var(--color-highlight); }
.cycle__step--final .cycle__num { color: var(--color-primary); }

.vision {
  margin: 48px auto 0;
  max-width: 32em;
  color: var(--color-text-inverse);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 900;
  line-height: 1.8;
}
.vision__label {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

@media (min-width: 1024px) {
  .ecosystem__lead { margin-bottom: 56px; }
  .cycle {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  .cycle__item { flex-direction: row; }
  .cycle__item:not(:last-child)::after { content: '→'; }
  .vision { margin-top: 64px; }
}

/* ================================ COMPANY ================================ */

.company {
  background: var(--color-bg-base);
  padding: var(--section-pad) var(--gutter);
}
.company__inner { max-width: 880px; margin: 0 auto; }
.company__title { margin-bottom: 40px; }

.company__table { border-top: 1px solid var(--color-border); }
.company__row {
  display: grid;
  gap: 4px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--color-border);
}
.company__row dt { font-size: 0.9375rem; font-weight: 700; }
.company__row dd { font-size: 0.9375rem; line-height: 1.8; }

@media (min-width: 1024px) {
  .company__title { margin-bottom: 48px; }
  .company__row {
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding: 20px 8px;
  }
}

/* =============================== CONTACT CTA =============================== */

.contact-cta {
  position: relative;
  background: var(--color-bg-deep);
  padding: var(--section-pad) var(--gutter);
  text-align: center;
  clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
  overflow: hidden;
}
.contact-cta__orb {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vmax;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, rgba(33, 191, 197, 0.25), transparent 62%);
  filter: blur(60px);
  animation: orbDrift 28s var(--ease-inout) infinite alternate;
  pointer-events: none;
}
.contact-cta__inner { position: relative; }
.contact-cta .section-label,
.contact-cta .section-title { text-align: center; }
.contact-cta .section-label { margin-top: 24px; }
.contact-cta .section-rule { margin: 0 auto 36px; }
.contact-cta__lead {
  margin: 0 auto 40px;
  max-width: 32em;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  line-height: 1.9;
  font-weight: 500;
}
.contact-cta__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.contact-cta__note {
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.8;
}

@media (min-width: 640px) {
  .contact-cta__actions { flex-direction: row; flex-wrap: wrap; gap: 20px; }
}
@media (min-width: 1024px) {
  .contact-cta__lead { margin-bottom: 48px; }
}

/* ================================= FOOTER ================================= */

.site-footer {
  position: relative;
  background: var(--color-bg-footer);
  color: var(--color-text-inverse);
  padding: 56px var(--gutter) 40px;
  overflow: hidden;
}
.site-footer__ghost {
  position: absolute;
  bottom: -5vw;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-latin);
  font-weight: 900;
  font-style: italic;
  font-size: 16vw;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  pointer-events: none;
}
.site-footer__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.site-footer__nav a {
  color: var(--color-text-inverse);
  font-size: 0.9375rem;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-footer__nav a:hover { color: var(--color-secondary); }

.site-footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 32px 0;
}
.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
}
.site-footer__links a:hover { color: var(--color-text-inverse); }
.site-footer__caret { color: var(--color-tertiary); margin-right: 6px; }

.site-footer__meta { text-align: center; margin-top: 40px; }
.site-footer__operator {
  margin-bottom: 20px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}
.site-footer__copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 1024px) {
  .site-footer { padding: 72px var(--gutter) 40px; }
  .site-footer__nav { flex-direction: row; justify-content: center; gap: 40px; flex-wrap: wrap; }
  .site-footer__meta { margin-top: 48px; }
}

/* =================== MOBILE CAROUSEL + STICKY CTA BAR (§5-3) =================== */

/* Peek carousel — the standard for 3+ cards on mobile. Centre card ~82vw with
   the neighbours peeking in from both edges; CSS scroll-snap only, no JS
   library. The 9vw side padding centres the first/last card cleanly. */
@media (max-width: 639px) {
  .peek-scroller {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px 9vw 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .peek-scroller::-webkit-scrollbar { display: none; }

  .peek-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82vw;
    gap: 16px;
  }
  .peek-track > * { scroll-snap-align: center; }

  /* Peeking neighbours must stay visible — skip the scroll-reveal stagger
     inside a carousel (the section intro above it still reveals). */
  .has-reveal .peek-track [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Indicator (§5-3): dots for 5 slides or fewer, counter for 6+. Built by JS;
   without JS the carousel still scrolls natively and nothing is missing. */
.carousel-indicator { display: none; }

@media (max-width: 639px) {
  .carousel-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 4px;
  }
  .carousel-indicator--counter { justify-content: flex-end; }
}

.carousel-dot {
  /* 12px dot with an enlarged 44px hit area (§8-3). */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.carousel-dot::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}
.carousel-dot[aria-current="true"]::before {
  width: 16px;
  height: 16px;
  opacity: 1;
}

.carousel-counter {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* Sticky CTA bar (§5-3): one full-width primary button, safe-area aware.
   z-index sits below the drawer overlay (25) and header (30) so the open
   menu covers it. */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--color-bg-base);
  box-shadow: 0 -4px 16px rgba(30, 49, 96, 0.14);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease-out);
}
.cta-bar[hidden] { display: none; }
.cta-bar.is-visible { transform: translateY(0); }
.cta-bar__btn { display: block; width: 100%; }

@media (min-width: 1024px) {
  .cta-bar { display: none; }
}

/* ========================= POLISH / MICRO-MOTION ========================= *
 * ブラッシュアップ層。§2-7（ノイズテクスチャ）・§7（モーション規則）準拠。
 * 掟: 回転・バウンス・パララックスの多重掛けは使わない。すべて transform /
 * opacity ベース、reduced-motion では既存のグローバル無効化が効く。          */

/* --- §2-7: ノイズテクスチャ。ビビッド/濃色面は α0.05、淡色面は α0.03 --- */
:root {
  --noise-strong: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='linear'%20slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='160'%20height='160'%20filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-soft: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='linear'%20slope='0.03'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='160'%20height='160'%20filter='url(%23n)'/%3E%3C/svg%3E");
}
.philosophy,
.individuals,
.ecosystem,
.contact-cta,
.site-footer { background-image: var(--noise-strong); }
.hero,
.services { background-image: var(--noise-soft); }

/* --- 見出しの孤立行を防ぐ（バランス改行）--- */
.section-title { text-wrap: balance; }

/* --- 改行制御（§3-2: 意味の切れ目で折り返す）--- */
/* 対応ブラウザでは文節単位で改行（Chrome系）。非対応では無視され従来挙動。 */
.section-title,
.hero__title,
.hero__lead,
.evaluation__title,
.eir__title,
.routes__title,
.contact-intro__title,
.contact-cta__lead,
.vision {
  word-break: auto-phrase;
}
/* 短いラベル・見出し語は単語の途中で折り返さない。
   overflow-wrap: anywhere で「収まらない場合のみ」分割を許可し、はみ出しを防ぐ。 */
.section-label,
.hero__eyebrow,
.svc-card__title,
.svc-card__latin,
.tea-card__title,
.point__title,
.functions__name,
.functions__latin,
.phase__title,
.routes__name,
.eir__latin,
.chip {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* --- セクションルール（下線）はリビール時に伸びる --- */
.has-reveal [data-reveal] .section-rule {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.7s var(--ease-out) 0.3s;
}
.has-reveal [data-reveal].is-revealed .section-rule { transform: scaleX(1); }

/* --- ボタン: 矢印のナッジ + 押下フィードバック --- */
.btn__icon {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--gold .btn__icon { transition: transform 0.3s var(--ease-out); }
.btn--gold:hover .btn__icon { transform: translate(4px, -3px); }
.btn:active { transform: translateY(0) scale(0.98); }
.contact-submit:active:not(:disabled) { transform: scale(0.98); }

/* --- カードのホバー統一（§7: translateY(-4px) + 影1段強め）--- */
.phase {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.phase:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 49, 96, 0.10);
}
.svc-card__media { overflow: hidden; }
.svc-card .img-slot,
.svc-card__media img { transition: transform 0.6s var(--ease-out); }
.svc-card:hover .img-slot,
.svc-card:hover .svc-card__media img { transform: scale(1.04); }

/* --- 実写画像のフィット（プレースホルダ差し替え後） --- */
.hero__blob img,
.svc-card__media img,
.eir__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- デスクトップナビ: 現在地インジケータ（scroll-spy + ホバー下線）--- */
@media (min-width: 1024px) {
  .site-nav__link { position: relative; }
  .site-nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
  }
  .site-nav__link:hover::after,
  .site-nav__link.is-active::after { transform: scaleX(1); }
}

/* --- モバイルドロワー: リンクのスタッガー入場 --- */
@media (max-width: 1023px) {
  .site-nav__link {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  }
  .site-nav.is-open .site-nav__link { opacity: 1; transform: none; }
  .site-nav.is-open .site-nav__link:nth-child(1) { transition-delay: 0.06s; }
  .site-nav.is-open .site-nav__link:nth-child(2) { transition-delay: 0.12s; }
  .site-nav.is-open .site-nav__link:nth-child(3) { transition-delay: 0.18s; }
  .site-nav.is-open .site-nav__link:nth-child(4) { transition-delay: 0.24s; }

  /* スクロール後のヘッダーはガラス調に浮かせる（§5-3 Type B）*/
  .site-header { transition: box-shadow 0.3s ease, background-color 0.3s ease; }
  .site-header.is-scrolled {
    background: rgba(30, 49, 96, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

/* --- §7: HEROゴースト文字のスクロール連動（対応ブラウザのみ・控えめ）--- */
@supports (animation-timeline: scroll()) {
  .hero__ghost {
    animation: ghostDrift linear both;
    animation-timeline: scroll();
    animation-range: 0 120vh;
  }
}
@keyframes ghostDrift {
  from { transform: translateX(1vw); }
  to   { transform: translateX(-5vw); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__ghost { animation: none !important; }
}

/* --- 会社ロゴ（多面体エンブレム）--- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo__mark-img {
  width: auto;
  height: 44px;
  flex: none;
}
.logo__type-img {
  width: auto;
  height: 16px;
}

/* フッターは公式ロゴの縦積みロックアップ（白色版）をそのまま表示 */
.site-footer__lockup {
  width: 180px;
  height: auto;
  margin-bottom: 14px;
}

.error-page__mark {
  width: 76px;
  height: 76px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* --- フォーム: 入力フォーカスの色遷移 --- */
.field__control {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field__control:focus {
  background: var(--color-bg-base);
  border-color: var(--color-quaternary);
}

/* ============================= PRIVACY POLICY ============================= */

/* 読み物ページ。§4: 本文系コンテンツは 880px に絞る */
.page-policy { background: var(--color-bg-tint-sky-pale); }

.policy {
  max-width: 880px;
  margin: 0 auto;
  background: var(--color-bg-base);
  border-radius: 24px;
  box-shadow: var(--shadow-card, 0 8px 24px rgba(30, 49, 96, 0.08));
  padding: 40px 24px;
}

.policy__section { margin-bottom: 40px; }
.policy__section:last-of-type { margin-bottom: 24px; }

.policy__heading {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.125rem;
  font-weight: 700;
}

.policy__text {
  font-size: 1rem;
  line-height: 1.9;
  text-align: justify;
}
.policy__text + .policy__text,
.policy__list + .policy__text { margin-top: 12px; }
.policy__text a { text-decoration: underline; }
.policy__text a:hover { color: var(--color-quaternary); }
.policy__ext { font-size: 0.75em; margin-left: 2px; }

.policy__list {
  margin: 12px 0 0;
  padding-left: 1.4em;
  list-style: disc;
  font-size: 1rem;
  line-height: 1.9;
}

.policy__date {
  text-align: right;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (min-width: 1024px) {
  .policy { padding: 56px 64px; }
}

/* ================================ 404 PAGE ================================ */

.page-error {
  background: var(--color-bg-tint-sky);
}
.error-page {
  min-height: calc(100dvh - 84px); /* footer分を除いた高さ */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 64px var(--gutter);
  text-align: center;
}
.error-page__code {
  font-family: var(--font-latin);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(5rem, 20vw, 9rem);
  line-height: 1;
  color: var(--color-primary);
}
.error-page__title {
  margin-top: 16px;
  font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}
.error-page__text {
  margin: 12px 0 32px;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}
.error-page .btn { min-width: 240px; }

/* ============================== CONTACT PAGE ============================== */

.page-contact {
  background: var(--color-bg-tint-sky-pale);
}
.contact-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 88px;
  padding: 0 var(--gutter);
  background: var(--color-bg-deep);
}
.contact-header__back {
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-inverse);
}
.contact-header__back:hover { color: var(--color-secondary); }

.contact-main {
  flex: 1;
  padding: 56px var(--gutter) 80px;
}
.contact-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-intro .section-label,
.contact-intro .section-title { text-align: center; }
.contact-intro .section-rule { margin: 0 auto 32px; }
.contact-intro__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.contact-intro__lead {
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-bg-base);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(30, 49, 96, 0.08);
  padding: 32px 24px;
}

.contact-form {
  display: grid;
  gap: 24px;
  text-align: left;
}
/* `display: grid` would otherwise beat the UA rule for [hidden]. */
.contact-form[hidden] { display: none; }
.field { display: grid; gap: 10px; }
.field.is-hidden { display: none; }

.field__label { font-size: 0.9375rem; font-weight: 700; }
.field__required,
.field__optional {
  font-size: 0.8125rem;
  font-weight: 400;
  margin-left: 6px;
}
.field__required { color: var(--color-voice-1); }
.field__optional { color: var(--color-text-muted); }

.field__control {
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text-main);
  width: 100%;
}
textarea.field__control { line-height: 1.9; resize: vertical; }

select.field__control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%231E3160' stroke-width='2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
}

.field__control[aria-invalid="true"] { border-color: var(--color-voice-1); }
.field__error {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-voice-1);
  min-height: 0;
}
.field__error:empty { display: none; }

.contact-submit {
  margin-top: 8px;
  border: none;
  cursor: pointer;
  background: var(--gradient-cta);
  color: var(--color-text-inverse);
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  height: 56px;
  border-radius: 999px;
  transition: transform 0.24s var(--ease-out), filter 0.24s ease;
}
.contact-submit:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(0.94); }
.contact-submit:disabled { opacity: 0.6; cursor: progress; }

.contact-privacy {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  text-align: center;
}
.contact-privacy a { text-decoration: underline; }

.form-error {
  background: rgba(193, 102, 74, 0.08);
  border: 1px solid var(--color-voice-1);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-voice-1);
  font-weight: 700;
}
.form-error[hidden] { display: none; }

.contact-success { text-align: center; padding: 40px 8px; }
.contact-success[hidden] { display: none; }
.contact-success__title { margin-bottom: 12px; font-size: 1.5rem; font-weight: 900; }
.contact-success__text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}
.contact-success__demo { font-size: 0.8125rem; display: block; margin-top: 8px; }

.contact-footer {
  background: var(--color-bg-footer);
  color: var(--color-text-inverse);
  padding: 32px var(--gutter);
  text-align: center;
}
.contact-footer p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 640px) {
  .contact-submit { height: 64px; }
}
@media (min-width: 1024px) {
  .contact-header { padding: 0 40px; }
  .contact-main { padding: 80px var(--gutter) 120px; }
  .contact-intro__lead { margin-bottom: 56px; }
  .contact-card { padding: 56px 48px; }
  .contact-form { gap: 28px; }
  .contact-success { padding: 64px 40px; }
}
