/* ============================================================
   iHoldings Corporate Site — Design System
   Concept: "Quiet Intelligence × Human Warmth"
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors — base */
  --c-ink: #0b1020;          /* deep navy: dark sections / display text */
  --c-text: #1a2032;         /* body text on light */
  --c-text-sub: #555e73;     /* secondary text (AA on white) */
  --c-bg: #ffffff;
  --c-bg-soft: #f5f7fa;
  --c-line: #e5e9f1;

  /* Colors — brand */
  --c-brand: #2b5cff;        /* electric blue */
  --c-brand-deep: #1e3fd8;
  --c-brand-2: #00c4cc;      /* teal partner */
  --g-brand: linear-gradient(120deg, #2b5cff 0%, #00c4cc 100%);

  /* Colors — business accents */
  --c-ec: #0ea5e9;
  --c-ec-text: #0369a1;
  --c-welfare: #f97316;
  --c-welfare-text: #c2410c;
  --c-ai: #2b5cff;
  --c-ai-text: #1e3fd8;

  /* Colors — dark sections */
  --c-dark-bg: #0b1020;
  --c-dark-text: #eaf0ff;
  --c-dark-sub: #a7b1c9;
  --c-dark-line: rgba(234, 240, 255, 0.14);

  /* Typography */
  --font-sans: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic Medium", system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.6rem, 1rem + 6vw, 5rem);
  --fs-h1: clamp(2rem, 1.2rem + 2.8vw, 3.2rem);
  --fs-h2: clamp(1.65rem, 1.2rem + 1.8vw, 2.4rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --fs-lead: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Layout */
  --w-container: 1160px;
  --w-narrow: 780px;
  --sp-section: clamp(88px, 6rem + 4vw, 148px);
  --header-h: 72px;

  /* Radius / Shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.05), 0 2px 8px rgba(11, 16, 32, 0.04);
  --shadow-md: 0 2px 6px rgba(11, 16, 32, 0.05), 0 12px 32px rgba(11, 16, 32, 0.08);
  --shadow-lg: 0 4px 12px rgba(11, 16, 32, 0.06), 0 24px 64px rgba(11, 16, 32, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* モバイル実機検証: 一部コンテンツの横方向オーバーフローが起きた際、
     bodyのoverflow-x:hiddenだけではposition:fixed要素(.site-header等)の
     containing block（初期包含ブロック）が肥大化し、ハンバーガーメニュー等の
     全画面固定要素が正しい画面幅からずれる不具合を確認したため、html側でも止める。 */
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--c-text);
  background: var(--c-bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1, h2, h3, h4 {
  line-height: 1.4;
  letter-spacing: 0.015em;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

:target {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(43, 92, 255, 0.18);
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

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

.section {
  padding-block: var(--sp-section);
}

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

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

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

.section--dark .section-lead,
.section--dark p {
  color: var(--c-dark-sub);
}

.text-gradient {
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-ec { color: var(--c-ec-text); }
.accent-welfare { color: var(--c-welfare-text); }
.accent-ai { color: var(--c-ai-text); }

.u-center { text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-full);
  font-size: var(--fs-small);
  transform: translateY(-64px);
  transition: transform 0.25s var(--ease-out);
}

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

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: "Inter", var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--c-text-sub);
}

.eyebrow::before {
  content: "";
  align-self: center;
  width: 14px;
  height: 1.5px;
  background: var(--c-brand);
  border-radius: 2px;
}

.section--dark .eyebrow {
  color: #7ea0ff;
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-top: 14px;
  color: var(--c-ink);
}

.section-lead {
  margin-top: 18px;
  max-width: 640px;
  font-size: var(--fs-lead);
  color: var(--c-text-sub);
}

.section-head.u-center .section-lead {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 4px 20px 4px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn .btn-arrow {
  transition: transform 0.25s var(--ease-out);
}

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

.btn--primary {
  background: var(--c-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(43, 92, 255, 0.32);
}

.btn--primary:hover {
  background: var(--c-brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(43, 92, 255, 0.4);
}

.btn--gradient {
  background: var(--g-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(43, 92, 255, 0.32);
}

.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(43, 92, 255, 0.42);
}

.btn--ghost {
  border: 1.5px solid var(--c-line);
  color: var(--c-ink);
  background: var(--c-bg);
}

.btn--ghost:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--c-ink);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11, 16, 32, 0.24);
}

.btn--outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 22px;
  font-size: var(--fs-small);
}

.btn--lg {
  padding: 18px 44px;
  font-size: 1.05rem;
}

/* ---------- Text link ---------- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--c-brand);
}

.text-link .btn-arrow {
  transition: transform 0.25s var(--ease-out);
}

.text-link:hover .btn-arrow {
  transform: translateX(4px);
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--c-line);
}

/* モバイル実機検証: is-scrolled状態のbackdrop-filterが新しいcontaining blockを作り、
   配下のposition:fixedである.global-nav(inset:0)がヘッダー自身の72px高の箱を基準に
   計算されてしまい、ハンバーガーメニューが全画面表示にならない不具合を確認。
   メニュー展開中だけbackdrop-filterを外し、containing blockの汚染を止める。 */
body.nav-open .site-header.is-scrolled {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-block;
  width: 208px;
  height: 44px;
  margin-right: auto;
  background: url("/assets/img/brand/iholdings-horizontal-v10-web.png") left center / contain no-repeat;
}

.brand-mark,
.brand-name {
  display: none;
}

.global-nav .nav-list {
  display: flex;
  gap: 6px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--c-text);
  transition: color 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--g-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--c-brand);
}

/* Header over dark hero (top page) */
.header--invert:not(.is-scrolled) .nav-link {
  color: #fff;
}

.header--invert:not(.is-scrolled) .brand,
.site-footer .brand {
  background-image: url("/assets/img/brand/iholdings-horizontal-v10-reverse-web.png");
}

@media (max-width: 480px) {
  .brand {
    width: 172px;
    height: 36px;
  }
}

.header--invert:not(.is-scrolled) .nav-link:hover {
  color: #cfe0ff;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s, background-color 0.35s;
}

.header--invert:not(.is-scrolled) .nav-toggle span {
  background: #fff;
}

body.nav-open .nav-toggle span {
  background: #fff;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 860px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    background: rgba(11, 16, 32, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  }

  body.nav-open .global-nav {
    opacity: 1;
    visibility: visible;
  }

  .global-nav .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .global-nav .nav-link {
    font-size: 1.3rem;
    color: #fff;
    padding: 12px 20px;
  }

  .global-nav .nav-link:hover {
    color: #9db9ff;
  }

  .nav-list .nav-item--cta {
    margin-top: 20px;
  }
}

@media (min-width: 861px) {
  .nav-list .nav-item--cta {
    display: none;
  }
}

/* ---------- Hero (top page) ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 960px);
  display: flex;
  align-items: center;
  background: var(--c-dark-bg);
  color: #fff;
  overflow: hidden;
  padding-block: calc(var(--header-h) + 64px) 96px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0b1020 url("/assets/video/hero-poster.jpg") center / cover no-repeat;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.03);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 11, 25, 0.96) 0%, rgba(7, 13, 29, 0.86) 31%, rgba(8, 16, 34, 0.48) 57%, rgba(8, 16, 34, 0.12) 100%),
    linear-gradient(0deg, rgba(6, 11, 25, 0.72) 0%, transparent 34%),
    radial-gradient(90% 78% at 12% 0%, rgba(43, 92, 255, 0.24), transparent 58%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 64px);
}

@media (max-width: 720px) {
  .hero-video {
    object-position: 62% center;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(6, 11, 25, 0.92), rgba(7, 13, 29, 0.62)),
      linear-gradient(0deg, rgba(6, 11, 25, 0.88) 0%, transparent 55%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

.hero-copy {
  grid-column: 1;
  min-width: 0;
}

@media (max-width: 720px) {
  .hero-inner {
    display: block;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Inter", var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9db9ff;
}

.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--g-brand);
}

.hero-title {
  margin-top: 32px;
  max-width: 15em;
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, #7ea0ff 0%, #4dd8de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title-l1 {
  display: block;
  font-size: 0.56em;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.hero-title-lead {
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-dark-sub);
  margin-right: 0.22em;
}

.hero-title-q {
  font-size: 0.5em;
  font-weight: 700;
  position: relative;
  top: -0.62em;
  letter-spacing: 0;
  opacity: 0.65;
}

.hero-title-q:first-child {
  margin-right: 0.06em;
}

.hero-title em + .hero-title-q,
.hero-title-q:last-child {
  margin-left: 0.06em;
}

.hero-title-l2 {
  display: block;
  margin-top: 0.14em;
  font-size: 1.5em;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-lead {
  margin-top: 28px;
  max-width: 560px;
  font-size: var(--fs-lead);
  color: var(--c-dark-sub);
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hero-actions .btn--outline-light {
  border: none;
  padding: 15px 4px;
  color: #fff;
}

.hero-actions .btn--outline-light:hover {
  transform: none;
  box-shadow: none;
}

.hero-domains {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.hero-domain-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c6d2ee;
  padding-inline: 24px;
  border-left: 1px solid rgba(198, 210, 238, 0.22);
}

.hero-domain-chip:first-child {
  padding-left: 0;
  border-left: none;
}

.hero-domain-num {
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-domain-chip:nth-child(1) .hero-domain-num { color: var(--c-ec); }
.hero-domain-chip:nth-child(2) .hero-domain-num { color: var(--c-welfare); }
.hero-domain-chip:nth-child(3) .hero-domain-num { color: var(--c-ai); }

@media (max-width: 640px) {
  .hero-domain-chip {
    border-left: none;
    padding-inline: 0;
    width: 100%;
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: "Inter", var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
  animation: scrollCue 2.2s ease-in-out infinite;
}

@keyframes scrollCue {
  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; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(56px, 9vw, 104px)) clamp(48px, 7vw, 80px);
  background:
    radial-gradient(ellipse 60% 90% at 85% 0%, rgba(43, 92, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 80% at 8% 100%, rgba(0, 196, 204, 0.07), transparent 60%),
    var(--c-bg-soft);
  overflow: hidden;
}

.page-hero--ec {
  background:
    radial-gradient(ellipse 60% 90% at 85% 0%, rgba(14, 165, 233, 0.12), transparent 60%),
    var(--c-bg-soft);
}

.page-hero--welfare {
  background:
    radial-gradient(ellipse 60% 90% at 85% 0%, rgba(249, 115, 22, 0.1), transparent 60%),
    var(--c-bg-soft);
}

.page-hero--ai {
  background:
    radial-gradient(ellipse 60% 90% at 85% 0%, rgba(43, 92, 255, 0.12), transparent 60%),
    var(--c-bg-soft);
}

.breadcrumb {
  margin-bottom: clamp(28px, 5vw, 44px);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--c-text-sub);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* モバイル実機検証: パンくずリンクの実タップ領域が約25px四方しかなかったため、
   見た目のサイズは変えずpadding-blockで実質40px前後まで拡張する。 */
.breadcrumb a {
  display: inline-block;
  padding-block: 7px;
  margin-block: -7px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--c-line);
}

.breadcrumb a:hover {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb [aria-current="page"] {
  color: var(--c-ink);
  font-weight: 600;
}

.page-title-en {
  display: block;
  font-family: "Inter", var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: 16px;
}

.page-hero--ec .page-title-en { color: var(--c-ec-text); }
.page-hero--welfare .page-title-en { color: var(--c-welfare-text); }
.page-hero--ai .page-title-en { color: var(--c-ai-text); }

.page-title {
  font-size: var(--fs-h1);
  font-weight: 900;
  color: var(--c-ink);
}

.page-lead {
  margin-top: 22px;
  max-width: 680px;
  font-size: var(--fs-lead);
  color: var(--c-text-sub);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

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

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--c-bg);
  border: none;
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.6vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.section--soft .card {
  box-shadow: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 12px;
}

.card-text {
  color: var(--c-text-sub);
  font-size: 0.95rem;
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: rgba(43, 92, 255, 0.09);
  color: var(--c-brand);
  margin-bottom: 22px;
}

.icon-circle svg {
  width: 26px;
  height: 26px;
}

.icon-circle--ec { background: rgba(14, 165, 233, 0.1); color: var(--c-ec-text); }
.icon-circle--welfare { background: rgba(249, 115, 22, 0.1); color: var(--c-welfare-text); }
.icon-circle--ai { background: rgba(43, 92, 255, 0.1); color: var(--c-ai-text); }

/* ---------- Business cards (top page / business index) ---------- */
.biz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border: none;
  border-radius: var(--r-lg);
  padding: clamp(30px, 3.6vw, 44px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.section--soft .biz-card {
  box-shadow: none;
}

/* ---------- Business grid: AI featured as a tall lead tile, not 3 equal columns ---------- */
.biz-grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(2, 1fr);
}

.biz-grid .biz-card--ec {
  grid-column: 1;
  grid-row: 1 / 3;
}

.biz-grid .biz-card--welfare {
  grid-column: 2;
  grid-row: 1;
}

.biz-grid .biz-card--ai {
  grid-column: 2;
  grid-row: 2;
}

@media (max-width: 860px) {
  .biz-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .biz-grid .biz-card--ai,
  .biz-grid .biz-card--ec,
  .biz-grid .biz-card--welfare {
    grid-column: 1;
    grid-row: auto;
  }
}

.biz-card-watermark {
  position: absolute;
  right: -14%;
  bottom: -14%;
  width: 62%;
  max-width: 260px;
  opacity: 0.55;
  pointer-events: none;
}

.biz-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--g-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.biz-card--ec::before { background: linear-gradient(90deg, #0ea5e9, #38d1f5); }
.biz-card--welfare::before { background: linear-gradient(90deg, #f97316, #fbbf24); }
.biz-card--ai::before { background: var(--g-brand); }

.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.biz-card:hover::before {
  transform: scaleX(1);
}

.biz-card-en {
  font-family: "Inter", var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-sub);
}

.biz-card--ec .biz-card-en { color: var(--c-ec-text); }
.biz-card--welfare .biz-card-en { color: var(--c-welfare-text); }
.biz-card--ai .biz-card-en { color: var(--c-ai-text); }

.biz-card-title {
  margin-top: 12px;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  font-weight: 800;
  color: var(--c-ink);
}

.biz-card-text {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--c-text-sub);
  flex-grow: 1;
}

.biz-card .tag-list {
  margin-top: 22px;
}

.biz-card .text-link {
  margin-top: 26px;
}

/* ---------- Tags ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text-sub);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  padding: 5px 14px;
  line-height: 1.5;
}

.section--dark .tag {
  color: var(--c-dark-sub);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--c-dark-line);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 40px);
}

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  text-align: center;
  padding: 8px;
}

.stat-number {
  font-family: "Inter", var(--font-sans);
  font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}

.stat-number .stat-unit {
  font-size: 0.4em;
  font-weight: 700;
  margin-left: 2px;
}

.stat-label {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text-sub);
}

.stat-note {
  font-size: 0.75rem;
  color: var(--c-text-sub);
  opacity: 0.75;
}

/* ---------- Feature list (icon + title + text) ---------- */
.feature {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 10px;
}

.feature-text {
  font-size: 0.93rem;
  color: var(--c-text-sub);
}

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

.section--dark .icon-circle {
  background: rgba(126, 160, 255, 0.14);
  color: #9db9ff;
}

/* ---------- Numbered steps ---------- */
.step-list {
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.step {
  counter-increment: step;
  position: relative;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--c-bg);
  border: none;
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 30px);
}

.step::before {
  content: "0" counter(step);
  font-family: "Inter", var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-brand);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 6px;
}

.step-text {
  font-size: 0.92rem;
  color: var(--c-text-sub);
}

/* ---------- Definition table (会社概要など) ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 22px 12px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

.info-table th {
  width: 200px;
  font-weight: 700;
  color: var(--c-ink);
  white-space: nowrap;
}

.info-table td {
  color: var(--c-text-sub);
}

@media (max-width: 620px) {
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 6px 0;
  }

  .info-table th {
    padding-top: 18px;
  }

  .info-table td {
    padding-bottom: 18px;
  }
}

/* ---------- Timeline (沿革) ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 34px;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-brand), var(--c-brand-2));
  border-radius: 2px;
  opacity: 0.35;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--g-brand);
  box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.14);
}

.timeline-year {
  font-family: "Inter", var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--c-brand);
  letter-spacing: 0.04em;
}

.timeline-title {
  font-weight: 700;
  color: var(--c-ink);
  margin-top: 4px;
}

.timeline-text {
  font-size: 0.92rem;
  color: var(--c-text-sub);
  margin-top: 4px;
}

/* ---------- FAQ (details/summary) ---------- */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: rgba(43, 92, 255, 0.4);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q";
  font-family: "Inter", var(--font-sans);
  font-weight: 800;
  color: var(--c-brand);
  flex: none;
}

.faq-item summary::after {
  content: "";
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-text-sub);
  border-bottom: 2px solid var(--c-text-sub);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
  flex: none;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 24px 22px 56px;
  font-size: 0.93rem;
  color: var(--c-text-sub);
}

/* ---------- News list ---------- */
/* 見出しと「一覧を見る」を左右に置くエディトリアルヘッド（ホーム用） */
.news-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.news-head .section-head {
  margin-bottom: 0;
}

.news-list {
  display: grid;
}

.news-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 110px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 3vw, 30px) 8px;
  border-bottom: 1px solid var(--c-line);
}

.news-list > .news-item:first-child {
  border-top: 1px solid var(--c-line);
}

/* ホバー: グラデ下線が左から走り、タイトルがすっと動き、矢印が現れる */
a.news-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--g-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

a.news-item:hover::after,
a.news-item:focus-visible::after {
  transform: scaleX(1);
}

a.news-item:hover .news-item-title,
a.news-item:focus-visible .news-item-title {
  color: var(--c-brand);
  transform: translateX(6px);
}

.news-date {
  font-family: "Inter", var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text-sub);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* カテゴリ: ピル枠を廃止し、色ドット + テキスト */
.news-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cat-c, var(--c-brand-deep));
  white-space: nowrap;
}

.news-cat::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat-dot, var(--c-brand));
}

.news-cat--info { --cat-c: var(--c-brand-deep); --cat-dot: var(--c-brand); }
.news-cat--biz { --cat-c: #6d28d9; --cat-dot: #8b5cf6; }
.news-cat--ec { --cat-c: var(--c-ec-text); --cat-dot: var(--c-ec); }
.news-cat--welfare { --cat-c: var(--c-welfare-text); --cat-dot: var(--c-welfare); }

.news-item-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-ink);
  transition: color 0.3s ease, transform 0.4s var(--ease-out);
}

.news-new {
  font-family: "Inter", var(--font-sans);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-left: 10px;
  vertical-align: 2px;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.news-item .btn-arrow {
  color: var(--c-brand);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}

a.news-item:hover .btn-arrow,
a.news-item:focus-visible .btn-arrow {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .news-item-title,
  .news-item .btn-arrow,
  a.news-item::after {
    transition: none;
  }
  .news-item .btn-arrow {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .news-item {
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 8px;
    padding-block: 20px;
  }

  .news-item .news-item-title {
    grid-column: 1 / -1;
  }

  .news-item .btn-arrow {
    display: none;
  }
}

/* ---------- Article (news detail) ---------- */
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.article-body {
  font-size: 1rem;
}

.article-body > * + * {
  margin-top: 1.4em;
}

.article-body h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}

.article-body h3 {
  font-size: 1.15rem;
  margin-top: 1.8em;
}

.article-body ul {
  padding-left: 1.4em;
  list-style: disc;
  color: var(--c-text-sub);
}

.article-body p {
  color: var(--c-text-sub);
}

/* ---------- CTA banner ---------- */
/* 最終幕: 写真を廃止し、Missionの円環モチーフをここで回収する。
   3つの縁（EC/福祉/AIの点）がほぼ一つの円に重なる=「縁が結ばれる場所」 */
.cta-banner {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  border-radius: 0;
  padding: clamp(96px, 12vw, 170px) clamp(24px, 6vw, 120px);
  background-color: var(--c-dark-bg);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ブランド色のオーロラが2つ、超低速で漂う（真っ黒の重さを軽減） */
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  width: clamp(520px, 58vw, 980px);
  height: clamp(520px, 58vw, 980px);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner::before {
  left: -14%;
  bottom: -48%;
  background: radial-gradient(circle, rgba(43, 92, 255, 0.24) 0%, transparent 62%);
  animation: missionDrift2 30s ease-in-out infinite alternate;
}

.cta-banner::after {
  right: -16%;
  top: -50%;
  background: radial-gradient(circle, rgba(0, 196, 204, 0.16) 0%, transparent 62%);
  animation: missionDrift1 38s ease-in-out infinite alternate;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(580px, 130vw);
  aspect-ratio: 1;
  color: rgba(157, 185, 255, 0.15);
  pointer-events: none;
}

.cta-rings svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cta-ring {
  transform-origin: 300px 300px;
}

.cta-ring circle[stroke] {
  stroke-width: 1;
}

.cta-ring--1 { animation: ringSpin 72s linear infinite; }
.cta-ring--2 { animation: ringSpin 96s linear infinite reverse; }
.cta-ring--3 { animation: ringSpin 132s linear infinite; }

.cta-ring-dot {
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .cta-ring {
    animation: none;
  }
  .cta-banner::before,
  .cta-banner::after {
    animation: none;
  }
}

.cta-eyebrow {
  font-family: "Inter", var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.cta-title {
  max-width: 16em;
  font-size: clamp(1.8rem, 1.2rem + 2.5vw, 2.9rem);
  font-weight: 900;
}

.cta-text {
  margin-top: 18px;
  color: #c9d3e8;
  max-width: 480px;
  margin-inline: auto;
}

.cta-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.cta-actions .btn--outline-light {
  border: none;
  padding-block: 12px;
  padding-inline: 0;
  min-height: 44px;
  color: #fff;
}

.cta-actions .btn--outline-light:hover {
  transform: none;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 540px) {
  .cta-actions {
    flex-direction: column;
  }
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 26px;
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-required,
.badge-optional {
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
  line-height: 1.6;
}

.badge-required {
  color: #fff;
  background: #e11d48;
}

.badge-optional {
  color: var(--c-text-sub);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font: inherit;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.12);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--c-text-sub);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--c-text-sub);
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  accent-color: var(--c-brand);
}

/* ---------- Media block (text + visual, alternating) ---------- */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.media-block--reverse .media-visual {
  order: -1;
}

@media (max-width: 860px) {
  .media-block {
    grid-template-columns: 1fr;
  }

  .media-block--reverse .media-visual {
    order: 0;
  }
}

.media-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* ---------- Visual placeholder panels (abstract, no photos yet) ---------- */
.visual-panel {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 75% 20%, rgba(43, 92, 255, 0.22), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(0, 196, 204, 0.2), transparent 55%),
    var(--c-bg-soft);
  border: 1px solid var(--c-line);
}

.visual-panel--ec {
  background:
    radial-gradient(circle at 75% 20%, rgba(14, 165, 233, 0.24), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(56, 209, 245, 0.18), transparent 55%),
    var(--c-bg-soft);
}

.visual-panel--welfare {
  background:
    radial-gradient(circle at 75% 20%, rgba(249, 115, 22, 0.2), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(251, 191, 36, 0.2), transparent 55%),
    var(--c-bg-soft);
}

.visual-panel--ai {
  background:
    radial-gradient(circle at 75% 20%, rgba(43, 92, 255, 0.22), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(0, 196, 204, 0.18), transparent 55%),
    var(--c-bg-soft);
}

.visual-panel svg {
  width: min(46%, 200px);
  height: auto;
  opacity: 0.9;
}

/* ---------- 実写パネル（visual-panelの写真版） ---------- */
.visual-panel--photo {
  display: block;
  border: none;
  background: var(--c-bg-soft);
}

.visual-panel--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* ---------- Logo wall (取扱メーカー・モール) ---------- */
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text-sub);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  padding: 9px 20px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-dark-bg);
  color: var(--c-dark-sub);
  padding-top: clamp(64px, 8vw, 96px);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-tagline {
  margin-top: 18px;
  line-height: 2;
}

.footer-company {
  margin-top: 22px;
  font-size: 0.82rem;
  line-height: 2;
  color: rgba(167, 177, 201, 0.8);
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  font-family: "Inter", var(--font-sans);
}

.footer-links {
  display: grid;
  gap: 2px;
}

.footer-links a {
  display: inline-block;
  padding-block: 10px;
  transition: color 0.25s, transform 0.25s var(--ease-out);
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

/* 巨大アウトラインのワードマーク。“i”だけブランドグラデで点る（Missionの回収） */
.footer-giant {
  font-family: "Inter", var(--font-sans);
  font-size: clamp(3.4rem, 10.5vw, 9.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(214, 226, 255, 0.12);
  margin-top: clamp(40px, 6vw, 72px);
  transform: translateY(0.12em);
  user-select: none;
  pointer-events: none;
}

.footer-giant em {
  font-style: normal;
  -webkit-text-stroke: 0;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.9;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  background: var(--c-dark-bg);
  border-top: 1px solid var(--c-dark-line);
  padding-block: 26px;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(167, 177, 201, 0.7);
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="left"] {
  transform: translateX(-32px);
}

[data-reveal="right"] {
  transform: translateX(32px);
}

/* ---------- Parallax ---------- */
[data-parallax] {
  will-change: transform;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Motion v2 — kinetic type / 3D tilt / marquee / cursor / intro
   ============================================================ */

/* ---------- Page enter / leave ---------- */
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: pageIn 0.5s ease both;
}

body.page-leave {
  opacity: 0;
  transition: opacity 0.22s ease;
}

/* ---------- Intro loader (top page, once per session) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--c-dark-bg);
  transition: transform 0.85s cubic-bezier(0.83, 0, 0.17, 1);
  will-change: transform;
}

/* 退場時、下端をブランドグラデの光の縁がなぞる */
.intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--g-brand);
  filter: blur(0.4px) drop-shadow(0 0 14px rgba(43, 92, 255, 0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.intro-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.55, 0, 0.55, 1);
}

.intro-mark {
  width: 76px;
  height: 76px;
  background: url("/assets/img/brand/iholdings-symbol-v10-reverse.png") center / contain no-repeat;
  animation: introMark 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes introMark {
  0% { opacity: 0; transform: scale(1.3); filter: blur(18px); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.intro-line {
  width: 190px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 185, 255, 0.85), transparent);
  transform: scaleX(0);
  animation: introLine 0.7s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes introLine {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

.intro-tagline {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: rgba(214, 226, 255, 0.82);
  animation: introTag 0.9s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-tagline em {
  font-style: normal;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes introTag {
  from { opacity: 0; transform: translateY(14px); letter-spacing: 0.52em; }
  to { opacity: 1; transform: none; letter-spacing: 0.3em; }
}

.intro.is-done {
  transform: translateY(-100%);
}

.intro.is-done::after {
  opacity: 1;
}

.intro.is-done .intro-inner {
  opacity: 0;
  transform: translateY(-30px);
}

.intro.is-off {
  display: none;
}

/* ---------- Grain / noise texture ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 240;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header hide on scroll down ---------- */
.site-header {
  transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s,
    transform 0.45s var(--ease-out);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

/* ---------- Kinetic split text ---------- */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.split-ready .char {
  display: inline-block;
  transform: translateY(118%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--ci) * 0.042s + var(--split-base, 0s));
  will-change: transform;
}

.split-ready.is-in .char {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .split-ready .char {
    transform: none;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  width: max-content;
  padding-block: 18px;
  animation: marqueeScroll var(--marquee-dur, 40s) linear infinite;
}

@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* 巨大アウトライン文字（ヒーロー直下） */
.marquee--outline {
  background: var(--c-dark-bg);
  padding-block: clamp(8px, 2vw, 24px);
}

.marquee--outline .marquee-item {
  font-family: "Inter", var(--font-sans);
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(214, 226, 255, 0.22);
}

.marquee--outline .marquee-item.is-fill {
  -webkit-text-stroke: 0;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.9;
}

/* チップ型（取引先など） */
.marquee--chips {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ラベル付き2列ワードマーキー（ホーム: モール/メーカー） */
.channel-rows {
  margin-top: 64px;
  border-top: 1px solid var(--c-line);
}

.channel-row {
  display: grid;
  grid-template-columns: clamp(150px, 17vw, 200px) 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--c-line);
  padding-block: 6px;
}

.channel-row-label {
  font-family: "Inter", var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text);
  line-height: 1.5;
}

.channel-row-label span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--c-text-sub);
}

.marquee--words {
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee--words .marquee-track {
  gap: clamp(40px, 5vw, 72px);
  padding-block: 20px;
}

.marquee--reverse .marquee-track {
  animation-direction: reverse;
}

.word-mark {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--c-text-sub);
  opacity: 0.85;
}

.word-mark--strong {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--c-text);
  opacity: 1;
}

@media (max-width: 640px) {
  .channel-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 14px 4px;
  }
}

/* ---------- 3D tilt + glare ---------- */
[data-tilt] {
  position: relative;
  transition: transform 0.16s ease-out, box-shadow 0.35s var(--ease-out),
    border-color 0.35s;
  transform-style: preserve-3d;
}

.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.18),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 1;
}

[data-tilt]:hover .tilt-glare {
  opacity: 1;
}

.section--dark .tilt-glare {
  background: radial-gradient(
    420px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(126, 160, 255, 0.2),
    transparent 62%
  );
}

/* ---------- Cursor ring (pointer:fine のみ・JSが生成) ---------- */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(43, 92, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
    opacity 0.3s, border-color 0.3s, background-color 0.3s;
}

.cursor-ring.is-visible {
  opacity: 1;
}

.cursor-ring.is-active {
  width: 58px;
  height: 58px;
  border-color: rgba(0, 196, 204, 0.75);
  background: rgba(0, 196, 204, 0.06);
}

@media (pointer: coarse) {
  .cursor-ring {
    display: none;
  }
}

/* ---------- Code window（AIセクションの生きたビジュアル） ---------- */
.code-window {
  position: relative;
  background: #0d1428;
  border: 1px solid rgba(126, 160, 255, 0.18);
  border-radius: var(--r-md);
  box-shadow: 0 24px 64px rgba(3, 6, 18, 0.6);
  overflow: hidden;
}

/* ---------- Chat window（AI自動応答のループアニメーション） ----------
   顧客とAIの2往復のラリーを16秒で繰り返す。幅はコードウィンドウと揃える */
.media-visual--ai-stack {
  display: grid;
  gap: 20px;
  align-content: center;
}

.chat-window {
  width: 100%;
  background: #0d1428;
  border: 1px solid rgba(126, 160, 255, 0.18);
  border-radius: var(--r-md);
  box-shadow: 0 24px 64px rgba(3, 6, 18, 0.6);
  overflow: hidden;
}

.chat-titlebar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(126, 160, 255, 0.14);
  font-family: "Inter", var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #93a5cd;
}

.chat-status {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

.chat-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0;
}

.chat-msg--user {
  justify-self: start;
  background: rgba(234, 240, 255, 0.09);
  color: #dbe4f8;
  border-bottom-left-radius: 4px;
}

.chat-msg--typing,
.chat-msg--ai {
  justify-self: end;
  border-bottom-right-radius: 4px;
}

/* 入力中ドットとAI返信は同じセルに重ね、切り替え時に高さが跳ねないようにする */
.chat-msg--u1 { grid-area: 1 / 1; animation: chatU1 16s ease infinite; }
.chat-msg--t1 { grid-area: 2 / 1; animation: chatT1 16s ease infinite; }
.chat-msg--a1 { grid-area: 2 / 1; animation: chatA1 16s ease infinite; }
.chat-msg--u2 { grid-area: 3 / 1; animation: chatU2 16s ease infinite; }
.chat-msg--t2 { grid-area: 4 / 1; animation: chatT2 16s ease infinite; }
.chat-msg--a2 { grid-area: 4 / 1; animation: chatA2 16s ease infinite; }

.chat-msg--typing {
  display: flex;
  align-items: center;
  gap: 5px;
  align-self: start;
  padding: 14px;
  background: rgba(43, 92, 255, 0.16);
}

.chat-msg--typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9db9ff;
  animation: chatDot 1s ease-in-out infinite;
}

.chat-msg--typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.36s; }

.chat-msg--ai {
  background: linear-gradient(120deg, rgba(43, 92, 255, 0.92), rgba(0, 196, 204, 0.8));
  color: #fff;
}

/* 16sタイムライン:
   u1 3% → t1 8-15% → a1 17% → u2 32% → t2 38-45% → a2 47% → 全員90%まで表示 → 96%退場 */
@keyframes chatU1 {
  0% { opacity: 0; transform: translateY(10px); }
  3%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

@keyframes chatT1 {
  0%, 8% { opacity: 0; }
  11%, 15% { opacity: 1; }
  17%, 100% { opacity: 0; }
}

@keyframes chatA1 {
  0%, 15% { opacity: 0; transform: translateY(10px); }
  19%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

@keyframes chatU2 {
  0%, 32% { opacity: 0; transform: translateY(10px); }
  35%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

@keyframes chatT2 {
  0%, 38% { opacity: 0; }
  41%, 45% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

@keyframes chatA2 {
  0%, 45% { opacity: 0; transform: translateY(10px); }
  49%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

@keyframes chatDot {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-msg--user,
  .chat-msg--ai {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .chat-msg--typing {
    display: none;
  }
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(126, 160, 255, 0.12);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-title {
  margin-left: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(167, 177, 201, 0.7);
}

.code-body {
  padding: 24px 22px 28px;
  display: grid;
  gap: 13px;
}

.code-line {
  height: 11px;
  border-radius: 6px;
  width: var(--w, 70%);
  background: linear-gradient(90deg, rgba(126, 160, 255, 0.55), rgba(0, 196, 204, 0.4));
  transform: scaleX(0);
  transform-origin: left;
  animation: codeType 7.5s var(--ease-out) infinite;
  animation-delay: var(--d, 0s);
}

.code-line--dim {
  background: rgba(126, 160, 255, 0.16);
}

.code-line--accent {
  background: linear-gradient(90deg, rgba(43, 92, 255, 0.65), rgba(0, 196, 204, 0.5));
}

@keyframes codeType {
  0% { transform: scaleX(0); }
  8%, 88% { transform: scaleX(1); }
  96%, 100% { transform: scaleX(0); }
}

.code-result {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.76rem;
  color: #7ef0c9;
  background: rgba(40, 200, 120, 0.08);
  border: 1px solid rgba(40, 200, 120, 0.25);
  border-radius: var(--r-full);
  padding: 7px 16px;
  opacity: 0;
  animation: codeResult 7.5s ease infinite;
  animation-delay: 2.4s;
}

.code-result::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c840;
}

@keyframes codeResult {
  0%, 28% { opacity: 0; transform: translateY(6px); }
  36%, 88% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; }
}

.code-caret {
  width: 9px;
  height: 15px;
  background: #7ea0ff;
  border-radius: 2px;
  animation: caretBlink 1.1s steps(1) infinite;
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

/* .code-line は scaleX(0) が初期値でアニメーションでのみ描画されるため、
   アニメーション停止時に空白のまま固まる。完成形（描画済み）で静止させる。
   .code-line 本体の定義より後に置くこと（cascade順で負けないため） */
@media (prefers-reduced-motion: reduce) {
  .code-line {
    animation: none;
    transform: scaleX(1);
  }
  .code-caret {
    animation: none;
    opacity: 1;
  }
  .code-result {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Orbiting decoration（visual-panel内SVG用） ---------- */
.orbit-spin {
  animation: orbitSpin 36s linear infinite;
  transform-origin: 100px 100px;
}

.orbit-spin--rev {
  animation-direction: reverse;
  animation-duration: 52s;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.float-y {
  animation: floatY 5.5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Photo panel（visual-panelへの実写差し込み。imgが404ならJSのonerrorで消えSVGが残る） ---------- */
.visual-panel .panel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- External link card（iHome等） ---------- */
.extlink-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--c-bg);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    border-color 0.35s;
}

.extlink-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: var(--shadow-lg);
}

.extlink-title {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 800;
  color: var(--c-ink);
}

.extlink-url {
  margin-top: 8px;
  font-family: "Inter", var(--font-sans);
  font-size: 0.85rem;
  color: var(--c-welfare-text);
  font-weight: 600;
}

.extlink-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.1);
  color: var(--c-welfare-text);
  transition: transform 0.3s var(--ease-out);
}

.extlink-card:hover .extlink-icon {
  transform: translate(4px, -4px);
}

/* ---------- Reveal variants v2 ---------- */
[data-reveal="clip"] {
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease-out), opacity 0.9s var(--ease-out);
}

[data-reveal="clip"].is-visible {
  clip-path: inset(0 0 0% 0);
}

[data-reveal="blur"] {
  transform: none;
  filter: blur(14px);
  transition: filter 0.9s var(--ease-out), opacity 0.9s var(--ease-out);
}

[data-reveal="blur"].is-visible {
  filter: blur(0);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal="clip"] {
    clip-path: none;
  }

  [data-reveal="blur"] {
    filter: none;
  }

  body::after {
    display: none;
  }

  .cursor-ring {
    display: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .scroll-cue,
  .cta-banner,
  .site-footer {
    display: none;
  }
}

/* ==========================================================================
   Motion v3 追加分（2026-07 追加・末尾追記のみ／既存ルールは変更なし）
   ========================================================================== */

/* ---------- View Transitions（クロスページ、プログレッシブエンハンスメント） ---------- */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ---------- pin-stack（ピン留め・スタッキングセクション） ---------- */
.pin-stack {
  position: relative;
}
.pin-card {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
  background: var(--c-bg);
}
.pin-card:not(:last-child) {
  margin-bottom: 0;
}

@media (max-width: 720px), (max-height: 560px) {
  /* モバイル・低高さでは積み重ね演出をやめ、通常の縦積みに戻す */
  .pin-card {
    position: static;
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pin-card {
    position: static;
    min-height: auto;
  }
}

/* ---------- hscroll（横スクロールセクション） ---------- */
.hscroll {
  position: relative;
  height: calc(var(--hscroll-items, 5) * 42vh);
}
.hscroll-frame {
  position: sticky;
  top: calc((100dvh - 60vh) / 2);
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hscroll-track {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  will-change: transform;
}

@media (max-width: 720px) {
  .hscroll {
    height: auto;
  }
  .hscroll-frame {
    position: static;
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .hscroll-track {
    transform: none !important;
  }
  .hscroll-item {
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* JS側の translateX 計算が動かないため、ネイティブ横スクロールにフォールバック */
  .hscroll {
    height: auto;
  }
  .hscroll-frame {
    position: static;
    height: auto;
    overflow-x: auto;
  }
  .hscroll-track {
    transform: none !important;
  }
}

/* ---------- char-reveal（単語スクロール反応） ---------- */
[data-char-reveal] .word {
  opacity: 0.25;
}

@media (prefers-reduced-motion: reduce) {
  [data-char-reveal] .word {
    opacity: 1;
  }
}

/* ---------- chatbot ---------- */
#chatbot-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 250;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: var(--r-full);
  background: var(--g-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
#chatbot-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#chatbot-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 250;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100dvh - 140px));
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s var(--ease-out);
}
#chatbot-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--g-brand);
  color: #fff;
  flex: none;
}
.chatbot-header p {
  margin: 0;
  font-weight: 700;
  font-size: var(--fs-small);
}
.chatbot-header [data-chatbot-close] {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.chatbot-log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--c-bg);
}

.chatbot-msg {
  display: flex;
}
.chatbot-msg--bot {
  justify-content: flex-start;
}
.chatbot-msg--user {
  justify-content: flex-end;
}
.chatbot-bubble {
  margin: 0;
  max-width: 86%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  line-height: 1.6;
  word-break: break-word;
}
.chatbot-msg--bot .chatbot-bubble {
  background: var(--c-bg-soft);
  color: var(--c-text);
  border-bottom-left-radius: 4px;
}
.chatbot-msg--user .chatbot-bubble {
  background: var(--c-brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chatbot-bubble a {
  color: inherit;
  text-decoration: underline;
}

.chatbot-form {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
}
.chatbot-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  font-family: inherit;
  color: var(--c-text);
  background: var(--c-bg);
}
@media (max-width: 768px) {
  .chatbot-form input {
    font-size: 16px;
  }
}
.chatbot-form button {
  flex: none;
  padding: 10px 16px;
  border: none;
  border-radius: var(--r-sm);
  background: var(--c-brand);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
}
.chatbot-form button:hover {
  background: var(--c-brand-deep);
}

@media (max-width: 520px) {
  #chatbot-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(80dvh, 640px);
    max-height: none;
    border-radius: 20px 20px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #chatbot-toggle,
  #chatbot-panel {
    transition: none;
  }
}

/* ==========================================================================
   Motion v4 §3 — high-end-visual-design §4.B
   「ボタン内ボタン」構造: .btn-arrow を裸で置かず円形チップに包む
   ========================================================================== */
.btn .btn-arrow {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-sizing: border-box;
  transition: transform 0.25s var(--ease-out), background-color 0.25s;
}
.btn--ghost .btn-arrow,
.btn--outline-light .btn-arrow {
  background: rgba(11, 16, 32, 0.06);
}
.section--dark .btn--ghost .btn-arrow,
.btn--outline-light .btn-arrow {
  background: rgba(255, 255, 255, 0.12);
}
.text-link .btn-arrow {
  background: none; /* テキストリンクは円チップなし。ボタンのみに適用 */
  width: 16px;
  height: 16px;
  padding: 0;
}
.btn:hover .btn-arrow {
  transform: translateX(3px) scale(1.06);
}

/* ==========================================================================
   Motion v4 §5 — Scroll Progress Path（/business/ai/ 導入の進め方）
   実装済みの .step-list（<ol>+<li>、既存の counter-reset/display/gap は不変）を
   .step-list-wrap で包み、連番(.step::before)と重ならないよう
   カードの左ガター側に進捗ラインを配置する。
   --progress は motion-v3.js の共通スクロール進捗エンジン
   （[data-scroll-progress] → --progress）がそのまま供給する。
   ========================================================================== */
.step-list-wrap {
  position: relative;
}
.step-list {
  padding-left: 34px;
}
.progress-path {
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  pointer-events: none;
}
.progress-path svg {
  width: 100%;
  height: 100%;
  display: block;
}
.progress-path-track {
  stroke: var(--c-line);
  stroke-width: 2;
}
.progress-path-line {
  stroke: var(--c-brand);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - (100 * var(--progress, 0)));
  transition: stroke-dashoffset 0.1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .progress-path-line { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Motion v4 §6 — high-end-visual-design §4.A Double-Bezel
   .code-window に外殻+内側コアの二重ベゼル構造を追加
   （既存の background / border-radius / titlebar / body の見た目は変更しない）
   ========================================================================== */
.code-window {
  padding: 6px; /* 内側コアとの間に外殻の"縁"を作る */
}
.code-window::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--r-md) - 6px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.code-titlebar,
.code-body {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Worlds Triptych — 3つの事業。スクロール演出なし。
   ホバー/フォーカスで開く3枚のアコーディオン（PC）、縦積みカード（タッチ/モバイル）。
   展開ロジックは純CSS（:hover/:focus-within）。JSなし。
   ========================================================================== */
.worlds-x {
  background: #070b18;
  color: #fff;
  padding-block: clamp(72px, 9vw, 120px) 0;
}

.worlds-x-head {
  display: grid;
  grid-template-columns: auto minmax(280px, 460px);
  justify-content: space-between;
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.worlds-x-lead {
  color: #a9b4cc;
  font-size: 0.95rem;
  line-height: 2;
}

@media (max-width: 760px) {
  .worlds-x-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.worlds-eyebrow {
  font-family: "Inter", var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.worlds-heading {
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* ---- ベース（モバイル/タッチ）: 縦積みカード ---- */
.worlds-x-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-inline: clamp(16px, 4vw, 24px);
  padding-bottom: clamp(48px, 8vw, 80px);
}

.world-slab {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  border-radius: 20px;
  min-height: clamp(360px, 68vw, 480px);
}

.world-slab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--w-accent, var(--c-brand));
  z-index: 4;
}

.world-slab-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

/* 背景写真: ベース（モバイル/タッチ）は横長 -m、PCアコーディオンは縦長 -p を使う */
.world-slab--ec .world-slab-bg {
  background-image: url("/assets/img/worlds/world-ec-m.jpg");
}

.world-slab--welfare .world-slab-bg {
  background-image: url("/assets/img/worlds/world-welfare-m.jpg");
  background-position: center 40%;
}

.world-slab--ai .world-slab-bg {
  background-image: url("/assets/img/worlds/world-ai-m.jpg");
  background-position: 60% center;
}

/* スマホ通信量削減: 820px以下は軽量版（幅800px）に差し替え */
@media (max-width: 820px) {
  .world-slab--ec .world-slab-bg {
    background-image: url("/assets/img/worlds/world-ec-m-sm.jpg");
  }

  .world-slab--welfare .world-slab-bg {
    background-image: url("/assets/img/worlds/world-welfare-m-sm.jpg");
  }

  .world-slab--ai .world-slab-bg {
    background-image: url("/assets/img/worlds/world-ai-m-sm.jpg");
  }
}

.world-slab-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 8, 18, 0.94) 0%, rgba(4, 8, 18, 0.62) 34%, rgba(4, 8, 18, 0.18) 62%, rgba(4, 8, 18, 0.3) 100%);
}

.world-slab-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--w-accent, #2b5cff) 32%, rgba(7, 11, 24, 0.9)) 0%,
    rgba(7, 11, 24, 0.92) 100%);
  opacity: 0;
}

.world-slab-num {
  display: none;
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 3;
  font-family: "Inter", var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--w-accent, var(--c-brand));
}

.world-slab-word {
  display: none;
}

.world-slab-body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  z-index: 3;
  display: block;
}

.world-slab-en {
  display: block;
  font-family: "Inter", var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-accent, var(--c-brand));
  text-shadow: 0 1px 14px rgba(4, 8, 18, 0.95), 0 0 3px rgba(4, 8, 18, 0.7);
}

.world-slab-status {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  border: 1px solid color-mix(in srgb, var(--w-accent, var(--c-brand)) 60%, transparent);
  background: rgba(7, 11, 24, 0.35);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-shadow: none;
  vertical-align: 1px;
}

.world-slab-title {
  display: block;
  font-size: clamp(1.35rem, 4.4vw, 1.8rem);
  font-weight: 900;
  margin-top: 8px;
  text-shadow: 0 2px 22px rgba(4, 8, 18, 0.6);
}

.world-slab-text {
  display: block;
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.9;
  color: #cfd8ea;
  text-shadow: 0 1px 16px rgba(4, 8, 18, 0.65);
}

.world-slab-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 5px;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 2px solid var(--w-accent, var(--c-brand));
}

/* ---- PC（ホバー可能なポインタ環境）: 横並びアコーディオン ---- */
@media (hover: hover) and (pointer: fine) and (min-width: 881px) {
  .worlds-x-row {
    flex-direction: row;
    gap: 6px;
    padding-inline: 0;
    padding-bottom: 0;
    height: min(82vh, 780px);
  }

  .world-slab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
    transition: flex-grow 0.85s cubic-bezier(0.65, 0, 0.13, 1);
  }

  /* どれにも触れていなければECが開いている。触れた/フォーカスされた札が開く */
  .worlds-x-row:not(:hover):not(:focus-within) .world-slab.is-home,
  .world-slab:hover,
  .world-slab:focus-visible {
    flex-grow: 3.6;
  }

  .world-slab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -6px;
  }

  .world-slab-bg {
    filter: grayscale(0.5) saturate(0.85);
    opacity: 0.55;
    transform: scale(1.14);
    transition: opacity 0.7s ease, filter 0.7s ease, transform 1.2s var(--ease-out);
  }

  /* PCは縦長版の写真に差し替え */
  .world-slab--ec .world-slab-bg {
    background-image: url("/assets/img/worlds/world-ec-p.jpg");
    background-position: center 55%;
  }

  .world-slab--welfare .world-slab-bg {
    background-image: url("/assets/img/worlds/world-welfare-p.jpg");
    background-position: center 45%;
  }

  .world-slab--ai .world-slab-bg {
    background-image: url("/assets/img/worlds/world-ai-p.jpg");
    background-position: center 40%;
  }

  .world-slab-dim {
    opacity: 1;
    transition: opacity 0.6s ease;
  }

  .world-slab-num {
    display: block;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.4s ease;
  }

  /* 閉じている札: 縦書きの英語ワードマーク */
  .world-slab-word {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    writing-mode: vertical-rl;
    font-family: "Inter", var(--font-sans);
    font-size: clamp(1.3rem, 1.9vw, 1.9rem);
    font-weight: 800;
    letter-spacing: 0.16em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.94);
    transition: opacity 0.4s ease;
  }

  /* 本文は固定幅にして、開閉中のテキスト折り返しの暴れを防ぐ */
  .world-slab-body {
    left: clamp(26px, 3vw, 48px);
    right: auto;
    bottom: clamp(26px, 3.4vw, 48px);
    width: clamp(300px, 40vw, 540px);
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.45s ease, transform 0.6s var(--ease-out);
  }

  .world-slab-title {
    font-size: clamp(1.5rem, 1.7vw, 2.1rem);
  }

  .world-slab-text {
    font-size: 0.95rem;
  }

  /* ---- 開いている札の状態 ---- */
  .worlds-x-row:not(:hover):not(:focus-within) .world-slab.is-home .world-slab-bg,
  .world-slab:hover .world-slab-bg,
  .world-slab:focus-visible .world-slab-bg {
    filter: none;
    opacity: 1;
    transform: scale(1.03);
  }

  .worlds-x-row:not(:hover):not(:focus-within) .world-slab.is-home .world-slab-dim,
  .world-slab:hover .world-slab-dim,
  .world-slab:focus-visible .world-slab-dim {
    opacity: 0;
  }

  .worlds-x-row:not(:hover):not(:focus-within) .world-slab.is-home .world-slab-word,
  .world-slab:hover .world-slab-word,
  .world-slab:focus-visible .world-slab-word,
  .worlds-x-row:not(:hover):not(:focus-within) .world-slab.is-home .world-slab-num,
  .world-slab:hover .world-slab-num,
  .world-slab:focus-visible .world-slab-num {
    opacity: 0;
  }

  .worlds-x-row:not(:hover):not(:focus-within) .world-slab.is-home .world-slab-body,
  .world-slab:hover .world-slab-body,
  .world-slab:focus-visible .world-slab-body {
    opacity: 1;
    transform: none;
    transition-delay: 0.16s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-slab,
  .world-slab-bg,
  .world-slab-dim,
  .world-slab-word,
  .world-slab-num,
  .world-slab-body {
    transition: none !important;
  }
}

/* ==========================================================================
   Recruit teaser — 写真の型を廃止。アウトライン文字マーキー + 募集職種グループ。
   ========================================================================== */
.recruit-teaser {
  overflow: hidden;
}

/* 巨大アウトライン文字のマーキー（白背景用ゴースト版） */
.marquee--ghost {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.ghost-item {
  font-family: "Inter", var(--font-sans);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 32, 50, 0.14);
}

.ghost-item.is-fill {
  -webkit-text-stroke: 0;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.9;
}

.recruit-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 520px);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* 募集中チップ: 緑ランプが呼吸する */
.recruit-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--c-text);
}

.recruit-open-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: openPulse 2.4s ease-out infinite;
}

@keyframes openPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* 職種グループの行 */
.recruit-groups {
  list-style: none;
  border-top: 1px solid var(--c-line);
}

.recruit-group {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto 20px;
  align-items: baseline;
  gap: 14px;
  padding: clamp(20px, 2.6vw, 28px) 4px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text);
}

.recruit-group::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--w-accent, var(--c-brand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.recruit-group:hover::after,
.recruit-group:focus-visible::after {
  transform: scaleX(1);
}

.recruit-group-num {
  font-family: "Inter", var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--w-accent, var(--c-brand));
}

.recruit-group-name {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 800;
  transition: transform 0.4s var(--ease-out);
}

.recruit-group:hover .recruit-group-name,
.recruit-group:focus-visible .recruit-group-name {
  transform: translateX(6px);
}

.recruit-group-count {
  font-family: "Inter", var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--w-accent, var(--c-brand));
}

.recruit-group-count small {
  font-size: 0.55em;
  font-weight: 700;
  color: var(--c-text-sub);
  margin-left: 3px;
}

.recruit-group .btn-arrow {
  align-self: center;
  color: var(--w-accent, var(--c-brand));
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}

.recruit-group:hover .btn-arrow,
.recruit-group:focus-visible .btn-arrow {
  opacity: 1;
  transform: none;
}

@media (max-width: 880px) {
  .recruit-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recruit-open-dot {
    animation: none;
  }
  .recruit-group .btn-arrow {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Bento — 選ばれる理由。非対称タイル + タイル固有のマイクロモーション。
   3Dチルト/グレアは main.js が [data-tilt] に自動適用する。
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-tile {
  position: relative;
  overflow: hidden;
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.bento-tile--wide {
  grid-column: span 7;
}

.bento-tile:hover {
  border-color: rgba(43, 92, 255, 0.4);
  box-shadow: 0 22px 60px -24px rgba(43, 92, 255, 0.28);
}

/* 右上の巨大アウトライン数字 */
.bento-num {
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: "Inter", var(--font-sans);
  font-size: clamp(4rem, 5vw, 5.6rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(43, 92, 255, 0.18);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.35s ease;
}

.bento-tile:hover .bento-num {
  -webkit-text-stroke-color: rgba(43, 92, 255, 0.38);
}

.bento-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.bento-text {
  color: var(--c-text-sub);
  font-size: 0.95rem;
  line-height: 1.95;
  max-width: 44ch;
}

/* 01: カウントアップする実績数字 */
.bento-stat {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.bento-stat-num {
  font-family: "Inter", var(--font-sans);
  font-size: clamp(2.2rem, 2.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bento-stat-unit {
  font-size: 0.55em;
}

.bento-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text-sub);
}

/* 02: 3事業のドットが順番に脈打つ */
.bento-orbits {
  margin-top: auto;
  padding-top: 26px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
}

.bento-orbits::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 40%;
  bottom: 5px;
  height: 1px;
  background: var(--c-line);
}

.bento-orbits span {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  animation: orbitPulse 3.3s ease-in-out infinite;
}

.bento-orbits span:nth-child(1) { background: var(--c-ec); }
.bento-orbits span:nth-child(2) { background: var(--c-welfare); animation-delay: 1.1s; }
.bento-orbits span:nth-child(3) { background: #8b5cf6; animation-delay: 2.2s; }

@keyframes orbitPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(43, 92, 255, 0); }
  12% { transform: scale(1.35); box-shadow: 0 0 0 7px rgba(43, 92, 255, 0.1); }
  26% { transform: scale(1); box-shadow: 0 0 0 0 rgba(43, 92, 255, 0); }
}

/* 03: トラックを走り抜けるドット */
.bento-race {
  margin-top: auto;
  position: relative;
  height: 2px;
  margin-bottom: 8px;
  background: var(--c-line);
  border-radius: 2px;
}

.bento-race-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--g-brand);
  box-shadow: 0 0 12px rgba(43, 92, 255, 0.55);
  transform: translateY(-50%);
  animation: raceRun 2.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes raceRun {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  58% { left: calc(100% - 9px); opacity: 1; }
  64%, 100% { left: calc(100% - 9px); opacity: 0; }
}

/* 04: 描かれ続ける伴走の線 */
.bento-loop {
  margin-top: auto;
  width: min(200px, 60%);
  height: auto;
}

.bento-loop path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: loopDraw 4.5s ease-in-out infinite;
}

@keyframes loopDraw {
  0% { stroke-dashoffset: 100; }
  55%, 70% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}

@media (max-width: 880px) {
  .bento {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bento-tile,
  .bento-tile--wide {
    grid-column: auto;
    min-height: 0;
  }
  .bento-stat,
  .bento-orbits,
  .bento-race,
  .bento-loop {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento-orbits span,
  .bento-race-dot,
  .bento-loop path {
    animation: none;
  }
  .bento-loop path {
    stroke-dashoffset: 0;
  }
  .bento-race-dot {
    opacity: 0;
  }
}

/* ==========================================================================
   Mission — 3つの“i”。プレースホルダー図形を廃止し、タイポグラフィが主役。
   すべての「i」の字だけをブランドグラデーションで点らせる。
   ========================================================================== */
/* 背景: ブランド色のオーロラが超低速で漂う（単色背景の味気なさ対策） */
.mission {
  position: relative;
  overflow: hidden;
}

.mission::before,
.mission::after {
  content: "";
  position: absolute;
  width: clamp(480px, 52vw, 900px);
  height: clamp(480px, 52vw, 900px);
  border-radius: 50%;
  pointer-events: none;
}

.mission::before {
  top: -22%;
  right: -10%;
  background: radial-gradient(circle, rgba(43, 92, 255, 0.11) 0%, transparent 62%);
  animation: missionDrift1 26s ease-in-out infinite alternate;
}

.mission::after {
  bottom: -26%;
  left: -12%;
  background: radial-gradient(circle, rgba(0, 196, 204, 0.1) 0%, transparent 62%);
  animation: missionDrift2 34s ease-in-out infinite alternate;
}

@keyframes missionDrift1 {
  to { transform: translate3d(-9vw, 7vh, 0) scale(1.18); }
}

@keyframes missionDrift2 {
  to { transform: translate3d(8vw, -6vh, 0) scale(1.12); }
}

/* 円環モチーフ: 「i」の点＝円。3つの縁（EC/福祉/AI の点）が別々の周期で回り、
   ときどき重なって「ひとつの円」になる。塗り円ではなく細い輪郭線で品を保つ */
.mission-rings {
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-50%);
  width: clamp(420px, 46vw, 760px);
  aspect-ratio: 1;
  color: rgba(43, 92, 255, 0.15);
  pointer-events: none;
}

.mission-rings svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mission-ring {
  transform-origin: 300px 300px;
}

.mission-ring circle[stroke] {
  stroke-width: 1;
}

.mission-ring--1 {
  animation: ringSpin 64s linear infinite;
}

.mission-ring--2 {
  animation: ringSpin 92s linear infinite reverse;
}

.mission-ring--3 {
  animation: ringSpin 128s linear infinite;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.mission-ring-dot {
  opacity: 0.7;
}

@media (max-width: 760px) {
  .mission-rings {
    top: 8%;
    right: -30%;
    width: 380px;
    transform: none;
    opacity: 0.7;
  }
}

.mission .container {
  position: relative;
  z-index: 1;
}

.mission-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.mission-head .section-head {
  margin-bottom: 0;
}

.mission-lead {
  color: var(--c-text-sub);
  max-width: 46ch;
}

.i-rows {
  list-style: none;
  margin-top: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--c-line);
}

.i-row {
  display: grid;
  grid-template-columns: 52px 1fr minmax(260px, 38%);
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(24px, 3.4vw, 40px);
  border-bottom: 1px solid var(--c-line);
}

.i-row-num {
  font-family: "Inter", var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-text-sub);
}

.i-row-word {
  font-family: "Inter", var(--font-sans);
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.05;
  transition: transform 0.5s var(--ease-out);
}

.i-row:hover .i-row-word {
  transform: translateX(10px);
}

/* 「i」の字だけ、青⇄ティールの間をゆっくり呼吸する */
.i-row-word em {
  font-style: normal;
  background: linear-gradient(110deg, #2b5cff 0%, #00c4cc 50%, #2b5cff 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: iBreath 9s ease-in-out infinite;
}

@keyframes iBreath {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

.i-row-word-sub {
  font-size: 0.4em;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--c-text-sub);
  margin-left: 14px;
}

.i-row-jp {
  display: block;
  font-weight: 800;
  font-size: 1rem;
}

.i-row-note {
  display: block;
  margin-top: 6px;
  color: var(--c-text-sub);
  font-size: 0.93rem;
  line-height: 1.8;
}

@media (max-width: 760px) {
  .mission-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .i-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .i-row-word {
    transition: none;
  }
  .i-row-word em {
    animation: none;
  }
  .mission::before,
  .mission::after {
    animation: none;
  }
  .mission-ring {
    animation: none;
  }
}

/* ---------- Page hero: world image variant (business/ec, business/welfare, business/ai) ---------- */
.page-hero--world {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.page-hero--world::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #05070f;
  opacity: 0.6;
}
.page-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(5, 7, 15, 0.92) 0%, rgba(5, 7, 15, 0.55) 55%, rgba(5, 7, 15, 0.25) 100%);
}
.page-hero--world .breadcrumb a,
.page-hero--world .breadcrumb li {
  color: rgba(255, 255, 255, 0.7);
}
.page-hero--world .breadcrumb [aria-current="page"] {
  color: #fff;
}
.page-hero--world .page-title {
  color: #fff;
}
.page-hero--world .page-lead {
  color: rgba(255, 255, 255, 0.75);
}
.page-hero--world.page-hero--ec .page-title-en {
  color: #7ec8f5;
}
.page-hero--world.page-hero--welfare .page-title-en {
  color: #fdba74;
}
.page-hero--world.page-hero--ai .page-title-en {
  color: #7ee8ed;
}

/* 事業ページヒーローの背景動画（背景画像=ポスターの上に重ねる） */
.page-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero--world::before,
.page-hero--world .page-hero-scrim {
  z-index: 1;
}

.page-hero--world > .container {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-video {
    display: none;
  }
}

/* ---------- ヒーロー動画の一時停止/再生トグル（WCAG 2.2.2 Pause, Stop, Hide） ----------
   右下は常時表示の固定チャットウィジェット（#chatbot-toggle, bottom:24px/right:24px, z-index:250）
   と重なる可能性があるため（トップページの背の高いヒーロー、事業ページの文章量が多いヒーロー
   いずれでも発生しうる）、ヘッダー直下の右上に統一して配置する。コピー・CTA・scroll-cueは
   すべて左寄せ／中央のため、右上はどのヒーローでも本文と衝突しない。 */
.hero-video-toggle {
  position: absolute;
  top: calc(var(--header-h) + 20px);
  right: clamp(16px, 3vw, 28px);
  z-index: 6;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(8, 14, 30, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}

.hero-video-toggle:hover,
.hero-video-toggle:focus-visible {
  background: rgba(8, 14, 30, 0.7);
  border-color: #fff;
  transform: translateY(-2px);
}

.hero-video-toggle svg {
  width: 14px;
  height: 14px;
  display: block;
}

.hero-video-toggle .icon-play {
  display: none;
}

.hero-video-toggle.is-paused .icon-pause {
  display: none;
}

.hero-video-toggle.is-paused .icon-play {
  display: block;
}

@media (max-width: 640px) {
  .hero-video-toggle {
    /* モバイル実機検証: 38x38pxはAPPLE/Google推奨のタップサイズ(44px)を下回るため、
       見た目の縮小はやめ、デスクトップと同じ44x44pxを維持する。 */
    width: 44px;
    height: 44px;
    top: calc(var(--header-h) + 14px);
    right: 14px;
  }
}

/* 動画自体が prefers-reduced-motion で非表示のときは、対応するボタンも出さない */
@media (prefers-reduced-motion: reduce) {
  .hero-video-toggle {
    display: none;
  }
}

/* ==========================================================================
   Design System 2.0 — 土台コンポーネントの再設計
   汎用SaaSテンプレート然としたicon-circleカード/ピルタグを置き換える
   iHoldings固有の視覚言語。ブループリント・ライン／セクション番号透かし／
   数字マークカード／インラインタグ。docs/DESIGN_SYSTEM_2.md 参照。
   ========================================================================== */

/* ---------- 1.1 ブループリント・ライン ---------- */
.blueprint-texture {
  position: relative;
}
.blueprint-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(43, 92, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 92, 255, 0.6) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
}
.blueprint-texture > .container {
  position: relative;
  z-index: 1;
}

/* ---------- 1.2 セクション番号の大型透かし ---------- */
.section-head {
  position: relative;
}
.section-mark {
  position: absolute;
  top: -0.35em;
  right: 0;
  font-family: "Inter", var(--font-sans);
  font-size: clamp(4rem, 3rem + 6vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--c-line);
  z-index: -1;
  user-select: none;
  pointer-events: none;
}
.section-head.u-center .section-mark {
  right: 50%;
  transform: translateX(50%);
}
.section--dark .section-mark {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
}

/* ---------- 1.3 数字マークカード（icon-circleの代替） ---------- */
.card--mark {
  border-top: 2px solid var(--c-ink);
  border-radius: 0;
  padding-top: 28px;
  box-shadow: none !important;
  background: none !important;
}
.card-mark {
  display: block;
  font-family: "Inter", var(--font-sans);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--c-brand);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
[data-accent="ec"] .card-mark { color: var(--c-ec-text); }
[data-accent="welfare"] .card-mark { color: var(--c-welfare-text); }
[data-accent="ai"] .card-mark { color: var(--c-ai-text); }
[data-accent="ec"].card--mark { border-top-color: var(--c-ec-text); }
[data-accent="welfare"].card--mark { border-top-color: var(--c-welfare-text); }
[data-accent="ai"].card--mark { border-top-color: var(--c-ai-text); }

.section--dark .card--mark {
  border-top-color: rgba(255, 255, 255, 0.3);
}
/* data-accent 指定時はダークセクション内でも事業カラーを優先する（詳細度をsection--dark .card--markより上げる） */
.section--dark [data-accent="ec"].card--mark { border-top-color: var(--c-ec-text); }
.section--dark [data-accent="welfare"].card--mark { border-top-color: var(--c-welfare-text); }
.section--dark [data-accent="ai"].card--mark { border-top-color: var(--c-ai-text); }

/* ---------- 1.4 インラインタグ（ピルの代替） ---------- */
.tag-inline {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text-sub);
  letter-spacing: 0.02em;
}
.tag-inline .sep {
  color: var(--c-line);
  margin-inline: 6px;
}
.section--dark .tag-inline {
  color: var(--c-dark-sub);
}
.section--dark .tag-inline .sep {
  color: var(--c-dark-line);
}

/* ---------- 1.5 ダークセクション内 card--mark のテキストコントラスト ---------- */
.section--dark .card--mark .card-title {
  color: #fff;
}
.section--dark .card--mark .card-text {
  color: var(--c-dark-sub);
}

/* 禁止事項に当たる「点と線のネットワーク」透かしは表示しない */
.biz-card-watermark {
  display: none;
}

/* ---------- 事業カード: 大タイル用のミニ実績リスト ---------- */
.biz-card-stats {
  margin-top: 32px;
}

.biz-card-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 2px;
  border-top: 1px solid var(--c-line);
}

.biz-card-stat-num {
  font-family: "Inter", var(--font-sans);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  white-space: nowrap;
}

.biz-card-stat-label {
  font-size: 0.85rem;
  color: var(--c-text-sub);
}

/* ---------- 採用: 職種ブロック（EC/福祉/AIのグルーピング） ---------- */
.job-group {
  margin-top: 72px;
}

.job-group:first-of-type {
  margin-top: 0;
}

.job-group-head {
  margin-bottom: 32px;
}

.job-group-head .section-title {
  font-size: 1.35rem;
  margin-top: 0;
}

.job-group-head .tag-inline {
  display: block;
  margin-top: 10px;
}

/* ==========================================================================
   ホワイトペーパー請求バナー（料金/AI事業ページ共用）
   ========================================================================== */
.wp-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  border: 1px solid var(--c-line);
  border-radius: 22px;
  background: var(--c-bg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 20px 60px -30px rgba(10, 20, 50, 0.15);
}

.wp-banner-icon {
  flex: none;
  width: 74px;
  height: 96px;
  border-radius: 6px;
  background: linear-gradient(160deg, #0b1020 0%, #1e3fd8 120%);
  border: 1px solid rgba(43, 92, 255, 0.4);
  position: relative;
  box-shadow: 6px 6px 0 rgba(43, 92, 255, 0.12);
}

.wp-banner-icon::before {
  content: "PDF";
  position: absolute;
  left: 10px;
  top: 10px;
  font-family: "Inter", var(--font-sans);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #9db9ff;
}

.wp-banner-icon::after {
  content: "AI導入\A完全\Aガイド";
  white-space: pre;
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
}

.wp-banner-title {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.wp-banner-text {
  font-size: 0.9rem;
  color: var(--c-text-sub);
  line-height: 1.9;
}

@media (max-width: 720px) {
  .wp-banner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .wp-banner-icon {
    display: none;
  }
}

/* ==========================================================================
   モバイル固定CTAバー（.m-cta）— 主要ページ共通
   AI事業ページで先行導入した .lp-sticky（pages/business-ai.css）と同じ体験を、
   トップ／事業／EC／会社概要／採用へ展開したもの。スマホ流入が大半のため、
   ページのどこにいても主要導線を押せる状態を保つのが目的。
   AI事業ページは .lp-sticky を持つので .m-cta は置かない（バーの二重表示防止）。
   ========================================================================== */
.m-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  /* 明るい面が続くページ（トップ・事業内容・EC・about・採用）に置くため、
     AI事業ページの .lp-sticky（全面ダークなページ用の濃紺ガラス）とは変えて、
     白ガラス＋薄い影にする。暗いバーだと明るい紙面の下端で色面が強く出すぎるため。 */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -8px 28px -12px rgba(11, 16, 32, 0.18);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-out);
}

/* main.js が一定スクロール後に付与する */
.m-cta.is-on {
  transform: none;
}

/* 375px 幅でも2ボタンが折り返さないよう、左右パディングだけ .btn の 32px から詰める */
.m-cta .btn {
  flex: 1;
  min-width: 0;
  justify-content: center;
  font-size: 0.9rem;
  padding-block: 13px;
  padding-inline: 14px;
}

/* バー自体を白ガラスにしたため、白系の .btn--light は輪郭が背景に溶ける。
   バー内に限り枠線と文字色を与えて、2つ目の選択肢として認識できるようにする。 */
.m-cta .btn--light {
  background: #fff;
  border: 1px solid var(--c-line);
  color: var(--c-ink);
}

@media (max-width: 880px) {
  .m-cta {
    display: flex;
  }

  /* .lp-sticky と同じ衝突がここでも起きる: 右下固定のチャットボタン
     (#chatbot-toggle, bottom:24px / z-index:250) がバー右側のボタンに重なり
     タップを奪う。バー表示中だけチャットボタンをバーの上へ退避させる。
     chatbot-toggle は chatbot.js が body 直下に挿入するため、DOM構造に依存しない
     :has() で判定する。--m-cta-h はバーの実測高さを main.js が書き込む。 */
  body:has(.m-cta.is-on) #chatbot-toggle {
    bottom: calc(var(--m-cta-h, 87px) + 24px + 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-cta {
    transition: none;
  }
}
