/* =========================================================
   Autiv - style.css
   White base / Gray text / Black frame
   IPAex Mincho (Japanese serif) typography
   Layout reference: lion.co.jp
   ========================================================= */

:root {
  /* Base */
  --color-bg: #FFFFFF;
  --color-bg-soft: #FAFAFA;
  --color-bg-section: #F5F5F5;
  --color-bg-deep: #1A1A1A;

  /* Text — gray-led */
  --color-text: #4A4A4A;
  --color-text-strong: #1A1A1A;
  --color-text-mute: #888888;
  --color-text-soft: #B5B5B5;
  --color-text-on-dark: #FFFFFF;

  /* Borders — black "frame" */
  --color-border: #1A1A1A;
  --color-border-light: #E5E5E5;
  --color-border-dark: rgba(255, 255, 255, 0.18);

  /* Accent colors — used very sparingly, matching the logo */
  --color-accent-green: #58C172;
  --color-accent-yellow: #E5BD22;
  --color-accent-red: #E03A3A;

  --container: 1600px;
  --container-narrow: 920px;

  /* Mincho serif font (IPAex Mincho first; Noto Serif JP loaded as web fallback) */
  --font-jp: "IPAex Mincho", "IPAexMincho", "Noto Serif JP", "Shippori Mincho", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "Yu Mincho", "游明朝", "YuMincho", "MS Mincho", serif;
  --font-en: "Cormorant Garamond", "IPAex Mincho", "Noto Serif JP", Georgia, "Times New Roman", serif;

  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 2;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.04em;
}

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

a {
  color: var(--color-text-strong);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--color-text-strong);
  opacity: 0.65;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  font-family: var(--font-jp);
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--color-text-strong);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 56px);
}

.section {
  padding: clamp(72px, 8vw, 144px) 0;
  position: relative;
}

.section-soft {
  background: var(--color-bg-soft);
}

.section-grey {
  background: var(--color-bg-section);
}

.section-dark {
  background: var(--color-bg-deep);
  color: var(--color-text-on-dark);
}

.section-head {
  margin-bottom: 64px;
  display: flex;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
}

.section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 72px;
}

.section-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-strong);
  margin: 0;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  flex-shrink: 0;
  min-width: 140px;
}

.section-dark .section-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 16px;
  letter-spacing: 0.06em;
  font-weight: 500;
  line-height: 1.5;
}

.section-head-center .section-title {
  margin-top: 8px;
}

.section-dark .section-title {
  color: #fff;
}

.section-lead {
  font-size: 14.5px;
  color: var(--color-text);
  max-width: 720px;
  margin: 0;
  line-height: 2.1;
}

.section-head-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.78);
}

.section-head-body {
  flex: 1;
  min-width: 0;
}

.prose {
  max-width: 820px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 2.2;
}

.prose p {
  margin: 0 0 1.5em;
}

/* ===== Buttons (clean, black-bordered) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 0;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  border: 1px solid var(--color-border);
  cursor: pointer;
  letter-spacing: 0.08em;
  background: #fff;
  color: var(--color-text-strong);
  position: relative;
}

.btn::after {
  content: "→";
  font-family: var(--font-en);
  font-size: 16px;
  transition: transform 0.25s ease;
}

.btn:hover {
  background: var(--color-text-strong);
  color: #fff;
  opacity: 1;
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--color-text-strong);
  color: #fff;
}

.btn-primary:hover {
  background: #fff;
  color: var(--color-text-strong);
}

.btn-large {
  padding: 22px 44px;
  font-size: 15px;
}

.btn-no-arrow::after {
  display: none;
}

/* ===== Splash (intro animation) ===== */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  pointer-events: none;
  will-change: opacity;
  overflow: hidden;
}

.splash.is-fading {
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stage is absolutely centered. JS adds a translate offset on top of the
   -50%/-50% centering so the logo can fly to the header position. */
.splash-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.splash-mask {
  overflow: hidden;
  width: clamp(220px, 32vw, 420px);
  display: block;
  line-height: 0;
}

.splash-logo {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(110%);
  will-change: transform;
}

.splash.is-revealed .splash-logo {
  transform: translateY(0);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* While the splash is on screen, hide the page underneath and lock scroll */
body.is-splashing {
  overflow: hidden;
}

body.is-splashing .site-header,
body.is-splashing main,
body.is-splashing .site-footer {
  opacity: 0;
}

body.is-loaded .site-header,
body.is-loaded main,
body.is-loaded .site-footer {
  opacity: 1;
  transition: opacity 0.5s ease 0.05s;
}

@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  body.is-splashing { overflow: auto; }
  body.is-splashing .site-header,
  body.is-splashing main,
  body.is-splashing .site-footer { opacity: 1; }
}

/* ===== Header (dark translucent) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 15, 15, 0.62);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease, transform 0.35s ease, background-color 0.35s ease;
  transform: translateY(0);
  will-change: transform;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Header hides when scrolling down, reappears when scrolling up */
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* Header text/logo become white on dark */
.site-header .logo,
.site-header .logo:hover {
  color: #ffffff;
}

.site-header .global-nav ul a {
  color: #ffffff;
}

.site-header .global-nav ul a:hover {
  color: #ffffff;
  opacity: 0.7;
}

.site-header .global-nav ul a::after {
  background: #ffffff;
}

.site-header .nav-toggle span {
  background: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-strong);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.04em;
  font-family: var(--font-jp);
}

.logo:hover {
  color: var(--color-text-strong);
  opacity: 1;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.global-nav ul a {
  color: var(--color-text-strong);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.08em;
}

.global-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--color-text-strong);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.global-nav ul a:hover {
  color: var(--color-text-strong);
  opacity: 1;
}

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

.nav-cta {
  padding: 12px 22px;
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--color-text-strong);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  padding: clamp(96px, 10vw, 160px) 0 clamp(96px, 10vw, 160px);
  background-color: #0E0E0E;
  background-image:
    linear-gradient(180deg, rgba(14, 14, 14, 0.55) 0%, rgba(14, 14, 14, 0.65) 50%, rgba(14, 14, 14, 0.78) 100%),
    url('../assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

/* Override text colors inside the hero so they're readable on the dark image */
.hero .eyebrow,
.hero .eyebrow::before,
.hero .hero-title,
.hero .hero-sub,
.hero .hero-lead {
  color: #FFFFFF;
}

.hero .eyebrow::before {
  background: rgba(255, 255, 255, 0.85);
}

.hero .hero-sub {
  color: rgba(255, 255, 255, 0.92);
}

.hero .hero-lead {
  color: rgba(255, 255, 255, 0.7);
}

.hero .btn {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background: transparent;
}

.hero .btn:hover {
  background: #FFFFFF;
  color: var(--color-text-strong);
}

.hero .btn-primary {
  background: #FFFFFF;
  color: var(--color-text-strong);
  border-color: #FFFFFF;
}

.hero .btn-primary:hover {
  background: transparent;
  color: #FFFFFF;
}

.hero-inner {
  max-width: 1760px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-inner > .hero-cta {
  margin: 12px 0 0;
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-strong);
  margin: 0 0 32px;
  font-weight: 500;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--color-text-strong);
}

.hero-title {
  font-size: clamp(48px, 6vw, 104px);
  line-height: 1.2;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--color-text-strong);
  max-width: 14em;
}

.hero-sub {
  font-size: clamp(14.5px, 1vw, 17px);
  line-height: 2.1;
  color: var(--color-text);
  max-width: 38em;
}

.hero-lead {
  font-size: clamp(13.5px, 0.9vw, 15.5px);
  color: var(--color-text-mute);
  max-width: 38em;
  line-height: 2;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Topics banner ===== */
.topics-section {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--color-bg);
}

.topics-banner {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  background: linear-gradient(135deg, #4FB466 0%, #58C172 60%, #6CCF85 100%);
  padding: clamp(20px, 2.4vw, 32px) clamp(24px, 3.2vw, 48px);
  border-radius: 4px;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(60, 150, 90, 0.18);
}

.topics-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 200px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.topics-label {
  font-family: var(--font-en);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.topics-date {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.06em;
  font-style: italic;
  white-space: nowrap;
  opacity: 0.95;
}

.topics-text {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.7;
  letter-spacing: 0.04em;
  font-weight: 500;
}


/* ===== About section (full-screen dramatic black stage) ===== */
.section-about {
  position: relative;
  background: #000000;
  color: #ffffff;
  padding: 0;
}

.section-about > .container {
  max-width: none;
  padding: 0;
}

/* Black frame fills the viewport for dramatic impact.
   Title at top → video in middle (large) → prose at bottom. */
.about-frame {
  background: #000000;
  color: #FFFFFF;
  border-radius: 0;
  padding: clamp(72px, 12vh, 120px) clamp(24px, 6vw, 96px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(32px, 5vh, 56px);
  align-items: stretch;
}

.about-frame .section-head {
  margin-bottom: 0;
  align-items: baseline;
  max-width: var(--container);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.section-about .section-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.section-about .section-title {
  color: #FFFFFF;
}

.about-stage {
  position: relative;
  overflow: hidden;
  background: #000000;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  flex-shrink: 0;
}

.about-bg-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  pointer-events: none;
  background: #000000;
  object-fit: contain;
}

.about-prose {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.about-prose p {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 2.15;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.06em;
  margin: 0 0 1.4em;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-prose em {
  font-style: italic;
  font-family: var(--font-en);
  letter-spacing: 0.08em;
  color: #fff;
  font-weight: 500;
  margin: 0 2px;
}

.about-tag {
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(13px, 0.95vw, 15.5px);
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.78);
  padding-top: 1em;
  margin-top: 0.4em;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.about-services {
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: clamp(24px, 2.6vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.about-services p {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.06em;
  margin: 0 0 1.4em;
}

.about-needs {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.about-needs li {
  font-size: clamp(13.5px, 0.95vw, 15.5px);
  color: #ffffff;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  gap: 24px;
}

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

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 36px 32px;
  transition: background-color 0.25s ease;
  position: relative;
}

.card:hover {
  background: var(--color-bg-soft);
}

.card-num {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-text-mute);
  margin-bottom: 16px;
  font-style: italic;
}

.card-title {
  font-size: 18px;
  margin: 0 0 16px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-text-strong);
}

.card p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 2;
}

.card-dark {
  background: #2A2A2A;
  border-color: rgba(255, 255, 255, 0.4);
}

.card-dark:hover {
  background: #333333;
}

.card-dark .card-title {
  color: #fff;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.78);
}

/* Philosophy cards (single accent dot per card) */
.card-philosophy {
  text-align: left;
  padding: 40px 32px;
}

.card-philosophy .card-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 24px;
  background: var(--color-accent-green);
}

.card-philosophy:nth-child(2) .card-dot { background: var(--color-accent-yellow); }
.card-philosophy:nth-child(3) .card-dot { background: var(--color-accent-red); }

/* ===== Slide-in animations (left ↔ right) ===== */
.slide-from-left,
.slide-from-right {
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.9s ease;
}

.slide-from-left  { transform: translateX(-90px); }
.slide-from-right { transform: translateX(90px); }

.slide-from-left.is-visible,
.slide-from-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Override the generic fade-in animation for slide elements so the
   transition above runs instead. */
.fade-in.slide-from-left,
.fade-in.slide-from-right {
  animation: none !important;
  opacity: 0;
}

.fade-in.slide-from-left.is-visible,
.fade-in.slide-from-right.is-visible {
  opacity: 1;
  transform: translateX(0);
  animation: none !important;
}

/* ===== Philosophy (LION-style overlap cards) ===== */
.philosophy-list {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 120px);
}

.phil-item {
  display: grid;
  align-items: center;
  position: relative;
}

.phil-item--left {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "image body";
}

.phil-item--right {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas: "body image";
}

.phil-image {
  grid-area: image;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.phil-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.phil-item:hover .phil-image img {
  transform: scale(1.03);
}

.phil-body {
  grid-area: body;
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  padding: clamp(28px, 3.4vw, 56px) clamp(28px, 3.6vw, 64px);
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

/* Overlap: body slides into the image side */
.phil-item--left .phil-body {
  margin-left: clamp(-80px, -6vw, -32px);
}

.phil-item--right .phil-body {
  margin-right: clamp(-80px, -6vw, -32px);
}

.phil-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: var(--color-accent-green);
}

.phil-dot--green  { background: var(--color-accent-green); }
.phil-dot--yellow { background: var(--color-accent-yellow); }
.phil-dot--red    { background: var(--color-accent-red); }

.phil-eyebrow {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-text-mute);
  margin: 0 0 10px;
}

.phil-title {
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  color: var(--color-text-strong);
  font-weight: 500;
  line-height: 1.5;
}

.phil-text {
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--color-text);
  letter-spacing: 0.04em;
  margin: 0;
}

/* Philosophy "便利" card with image background */
.card-philosophy-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #FFFFFF;
  border-color: transparent;
  min-height: 280px;
}

.card-philosophy-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.78) 100%),
    url('../assets/images/philosophy-convenient.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transition: transform 1s ease;
}

.card-philosophy-image:hover {
  background: transparent;
}

.card-philosophy-image:hover::before {
  transform: scale(1.04);
}

.card-philosophy-image .card-title {
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}

.card-philosophy-image p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 1;
}

.card-philosophy-image .card-dot {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

/* ===== News (LION-style clean list) ===== */
.section-news {
  background: #FFFFFF;
}

.lion-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.lion-news-item {
  display: grid;
  grid-template-columns: 160px 140px 1fr auto;
  gap: clamp(20px, 2.4vw, 40px);
  align-items: center;
  padding: clamp(20px, 2vw, 28px) clamp(8px, 1.6vw, 16px);
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color 0.25s ease, padding-left 0.25s ease;
}

.lion-news-list .lion-news-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.lion-news-item:hover {
  background: var(--color-bg-soft);
  padding-left: clamp(16px, 2vw, 24px);
}

.lion-news-date {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 14.5px;
  color: var(--color-text-strong);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.lion-news-tag {
  display: inline-block;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 14px;
  background: transparent;
  color: var(--color-text-strong);
  border: 1px solid var(--color-border);
  border-radius: 0;
  letter-spacing: 0.18em;
  font-family: var(--font-jp);
  justify-self: start;
  min-width: 110px;
}

.lion-news-text {
  margin: 0;
  font-size: 14.5px;
  color: var(--color-text-strong);
  line-height: 1.85;
  letter-spacing: 0.04em;
}

/* ===== Work card ===== */
.work-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-meta {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--color-text-mute);
  margin: 0 0 4px;
}

.work-card .card-title {
  margin: 0 0 8px;
}

.work-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: var(--color-text-strong);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid var(--color-border);
  transition: opacity 0.25s ease;
}

.work-card .card-link:hover {
  opacity: 0.65;
}

/* ===== Notice ===== */
.notice {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 56px 32px;
  text-align: center;
  color: var(--color-text-mute);
  font-size: 14px;
}

/* ===== News ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.news-item {
  display: grid;
  grid-template-columns: 140px 120px 1fr;
  gap: 32px;
  align-items: center;
  padding: 24px 8px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color 0.25s ease;
}

.news-list .news-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.news-item:hover {
  background: var(--color-bg-soft);
}

.news-date {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--color-text-strong);
  letter-spacing: 0.06em;
  font-style: italic;
}

.news-tag {
  display: inline-block;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  background: transparent;
  color: var(--color-text-strong);
  border: 1px solid var(--color-border);
  border-radius: 0;
  letter-spacing: 0.16em;
  font-family: var(--font-jp);
  justify-self: start;
}

.news-text {
  margin: 0;
  font-size: 14.5px;
  color: var(--color-text-strong);
  line-height: 1.85;
}

/* ===== Profile Table ===== */
.profile-table-wrap {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.profile-table th,
.profile-table td {
  padding: 22px 24px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.profile-table tr:last-child th,
.profile-table tr:last-child td {
  border-bottom: 0;
}

.profile-table th {
  width: 220px;
  font-weight: 500;
  color: var(--color-text-strong);
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding-top: 26px;
}

.profile-table td {
  color: var(--color-text-strong);
}

.profile-table a {
  color: var(--color-text-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-table a:hover {
  opacity: 0.6;
}

/* ===== Contact ===== */
.section-cta {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.contact-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.contact-list {
  margin: 0 auto;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 8px 32px;
}

.contact-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row dt {
  font-weight: 500;
  font-size: 12px;
  color: var(--color-text-mute);
  letter-spacing: 0.16em;
  font-family: var(--font-en);
  font-style: italic;
}

.contact-row dd {
  margin: 0;
  font-size: 16px;
  color: var(--color-text-strong);
}

.contact-row dd a {
  color: var(--color-text-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-row dd a:hover {
  opacity: 0.6;
}

.contact-note {
  margin-left: 8px;
  font-size: 12px;
  color: var(--color-text-mute);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-deep);
  color: var(--color-text-on-dark);
  padding: 80px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
}

.footer-brand .footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 24px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 16px;
  max-width: 420px;
  letter-spacing: 0.04em;
}

.footer-address {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  letter-spacing: 0.04em;
}

.footer-nav-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  font-family: var(--font-en);
  font-style: italic;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  transition: opacity 0.25s ease;
}

.footer-nav a:hover {
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.65;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding: 24px 0;
}

.footer-bottom small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  letter-spacing: 0.2em;
  font-family: var(--font-en);
  font-style: italic;
}

/* ===== Legal / Privacy pages ===== */
.page-header {
  padding: 112px 0 56px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.page-header .container {
  display: flex;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
}

.page-header .section-eyebrow {
  margin: 0;
}

.page-header .section-title {
  margin: 0;
}

.page-content {
  padding: 80px 0 120px;
  background: var(--color-bg);
}

.page-content .container {
  max-width: var(--container-narrow);
}

.page-content h2 {
  font-size: 20px;
  margin: 64px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 16px;
  margin: 32px 0 12px;
  letter-spacing: 0.04em;
}

.page-content p,
.page-content li {
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.page-content a {
  color: var(--color-text-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  opacity: 0.6;
}

.page-content ul,
.page-content ol {
  padding-left: 1.4em;
  margin: 0 0 20px;
  list-style: square;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: 6px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border-light);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  width: 220px;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--color-text-strong);
  font-weight: 500;
}

.legal-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-mute);
}

.legal-intro {
  font-size: 14.5px;
  color: var(--color-text);
  line-height: 2.05;
  margin: 0 0 36px;
  padding: 18px 22px;
  background: var(--color-bg-soft);
  border-left: 2px solid var(--color-text-strong);
}

.legal-note-block {
  font-size: 13.5px;
  color: var(--color-text-mute);
  margin: 0 0 24px;
  padding: 12px 16px;
  background: var(--color-bg-soft);
  border-left: 2px solid var(--color-border-light);
}

.legal-updated {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--color-text-mute);
  text-align: right;
  margin: 48px 0 0;
}

/* ===== Contact form ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-intro {
  font-size: 15px;
  line-height: 2.05;
  color: var(--color-text);
  margin: 0 0 24px;
}

.contact-warning {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border-left: 2px solid var(--color-text-strong);
  padding: 16px 20px;
  margin: 0 0 48px;
  letter-spacing: 0.04em;
}

.contact-warning strong {
  font-weight: 500;
  color: var(--color-text-strong);
  margin-right: 4px;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-strong);
  font-family: var(--font-jp);
}

.form-field .required {
  color: var(--color-accent-red);
  font-weight: 500;
  margin-left: 4px;
}

.form-field input,
.form-field textarea {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.7;
  padding: 14px 16px;
  border: 1px solid var(--color-border-light);
  border-radius: 0;
  background: #fff;
  color: var(--color-text-strong);
  letter-spacing: 0.04em;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-soft);
  letter-spacing: 0.04em;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: var(--color-text-mute);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-text-strong);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.form-field textarea {
  resize: vertical;
  min-height: 180px;
}

.form-field input.has-error,
.form-field textarea.has-error {
  border-color: var(--color-accent-red);
}

.form-field input.has-error:focus,
.form-field textarea.has-error:focus {
  box-shadow: 0 0 0 3px rgba(224, 58, 58, 0.12);
}

.form-error {
  font-size: 12.5px;
  color: var(--color-accent-red);
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.6;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.form-actions .btn {
  min-width: 240px;
}

.contact-fallback {
  font-size: 12.5px;
  color: var(--color-text-mute);
  text-align: center;
  margin: 28px 0 0;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.contact-fallback a {
  color: var(--color-text-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-fallback a:hover {
  opacity: 0.6;
}

/* Lists inside legal-table cells: tighter than the page-content lists */
.legal-table td > ul,
.legal-table td > ol {
  margin: 8px 0 8px;
  padding-left: 1.4em;
}

.legal-table td > ul li,
.legal-table td > ol li {
  font-size: 14px;
  line-height: 1.95;
  margin-bottom: 4px;
}

.page-back {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.page-back a {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--color-text-strong);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Philosophy: shrink overlap on tablet */
  .phil-item--left .phil-body  { margin-left: -28px; }
  .phil-item--right .phil-body { margin-right: -28px; }
  .phil-body { padding: 32px 28px; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section-head {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  /* Topics banner: stack on tablet */
  .topics-banner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "label date"
      "text  text";
    row-gap: 12px;
  }
  .topics-label { grid-area: label; }
  .topics-date  { grid-area: date; }
  .topics-text  { grid-area: text; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }

  .section-head { margin-bottom: 40px; }

  .nav-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    transform: translateY(-100%);
    transition: transform 0.3s ease, visibility 0s linear 0.3s, opacity 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 40;
  }

  .global-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.3s ease, visibility 0s, opacity 0.25s ease;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .global-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }

  .global-nav ul a {
    display: block;
    padding: 16px 4px;
    font-size: 14px;
    color: #ffffff;
  }

  .global-nav ul a::after {
    display: none;
  }

  /* Hero (mobile): show the portrait reception artwork in full (no cropping).
     Section aspect-ratio matches the image so background-size: cover fits perfectly.
     Content overlays the bottom half over a darker gradient. */
  .hero {
    padding: 0;
    aspect-ratio: 941 / 1672;
    min-height: 0;
    background-image:
      linear-gradient(180deg,
        rgba(14, 14, 14, 0.15) 0%,
        rgba(14, 14, 14, 0.35) 45%,
        rgba(14, 14, 14, 0.78) 80%,
        rgba(14, 14, 14, 0.92) 100%),
      url('../assets/images/hero-bg-mobile.png');
    background-position: center, center;
    background-size: cover, cover;
    background-color: #0E0E0E;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  /* Lift the eyebrow/title/sub/lead/CTA stack so there is visible breathing
     room between "事業内容を見る→" and the bottom edge of the hero. */
  .hero-inner {
    padding: 0 22px clamp(108px, 24vw, 168px);
    gap: 18px;
  }

  .hero .eyebrow {
    margin-bottom: 8px;
  }

  /* About: keep full-screen feeling on mobile */
  .about-frame {
    padding: 56px 18px 68px;
    gap: 24px;
    min-height: 100vh;
  }

  .about-bg-video {
    max-height: none;
  }

  .about-needs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* News list: stack on mobile (LION mobile pattern) */
  .lion-news-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "date"
      "tag"
      "text";
    gap: 8px;
    padding: 20px 4px;
  }

  .lion-news-date { grid-area: date; }
  .lion-news-tag  { grid-area: tag; }
  .lion-news-text { grid-area: text; }

  .hero-title {
    font-size: clamp(40px, 11vw, 64px);
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Philosophy: stack image on top, body card overlaps from below (LION mobile) */
  .philosophy-list {
    gap: 48px;
  }

  .phil-item,
  .phil-item--left,
  .phil-item--right {
    grid-template-columns: 1fr;
    grid-template-areas: "image" "body";
    align-items: stretch;
  }

  .phil-item--left .phil-body,
  .phil-item--right .phil-body {
    margin: -28px 16px 0;
    padding: 24px 22px;
  }

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

  .phil-title { font-size: 20px; }
  .phil-text  { font-size: 13.5px; line-height: 1.95; }

  /* About: vertical stack remains; tighten paddings */
  .about-frame {
    padding: 28px 18px 32px;
    gap: 20px;
    border-radius: 4px;
  }

  .about-stage {
    background: #000;
  }

  .about-bg-video {
    width: 100%;
    height: auto;
    display: block;
  }

  .about-prose p {
    font-size: 13.5px;
    line-height: 1.95;
    letter-spacing: 0.04em;
    margin-bottom: 1.1em;
  }

  .about-tag {
    font-size: 12.5px;
  }

  .cards-2,
  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 4px;
  }

  .news-tag {
    justify-self: start;
  }

  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
    padding: 14px 8px;
  }

  .profile-table th {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    padding-bottom: 4px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page-header {
    padding: 80px 0 40px;
  }

  .page-header .container {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  /* Contact form on mobile: 16px input font prevents iOS auto-zoom */
  .contact-form {
    gap: 26px;
  }

  .form-field input,
  .form-field textarea {
    font-size: 16px;
    padding: 13px 14px;
  }

  .form-field textarea {
    min-height: 160px;
  }

  .form-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
}

/* ===== Smart fade-in animations (CSS animation based) ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes softFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes lineRise {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

.fade-in {
  animation: fadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) var(--anim-delay, 0ms) both;
  animation-play-state: paused;
  will-change: opacity, transform;
}

.fade-in.is-visible {
  animation-play-state: running;
}

/* About prose: a touch slower for weight */
.about-prose.fade-in {
  animation-duration: 1.2s;
}

/* ---- Hero title: parent does not fade — its lines rise ---- */
.hero-title.fade-in {
  animation: none;
  opacity: 1;
  transform: none;
}

.hero-title .title-line {
  display: block;
  overflow: hidden;
  line-height: 1.2;
  padding-bottom: 0.06em; /* prevent descender clipping for "。" */
}

.hero-title .title-line > span {
  display: inline-block;
}

.hero-title.fade-in .title-line > span {
  animation: lineRise 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-play-state: paused;
}

.hero-title.fade-in .title-line:nth-child(1) > span { animation-delay: 80ms; }
.hero-title.fade-in .title-line:nth-child(2) > span { animation-delay: 220ms; }
.hero-title.fade-in .title-line:nth-child(3) > span { animation-delay: 360ms; }

.hero-title.fade-in.is-visible .title-line > span {
  animation-play-state: running;
}

/* ---- Hero sub / lead: gentle "じわっと" fade ---- */
.hero-sub.fade-in,
.hero-lead.fade-in {
  animation-name: softFade;
  animation-duration: 1.8s;
  animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-sub.fade-in  { animation-delay: 480ms; }
.hero-lead.fade-in { animation-delay: 640ms; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
