:root {
  --color-bg: #FFFFFF;
  --color-text: #333333;
  --color-primary: #1A1A1A;
  /* Very dark grey */
  --color-secondary: #555555;
  --color-accent: #C5A059;
  /* Muted Gold */
  --color-white: #FFFFFF;
  --color-light-grey: #E5E5E5;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --section-padding: 10rem 20px;

  --container-max-width: 1400px;
  --container-narrow: 900px;
  --container-segment: 1200px;
  --container-max-width: 1400px;
  --container-narrow: 900px;
  --container-segment: 1200px;
  --transition: all 0.3s ease;
}

/* English Design Overrides */
html[lang="en"] {
  --font-heading: 'Inter', sans-serif;
  /* Clean Sans-serif for EN */
  --font-body: 'Inter', sans-serif;
}

html[lang="en"] .hero {
  background: #f0f0f0;
  /* Light background for EN */
  color: var(--color-primary);
}

html[lang="en"] .hero-heading,
html[lang="en"] .hero-subheading {
  color: var(--color-primary);
  text-shadow: none;
  /* Remove shadow for clean look */
  font-weight: 800;
  /* Bolder font */
  letter-spacing: -0.02em;
}

html[lang="en"] .hero-heading {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.2;
  gap: 1rem;
  /* Reduced gap for two-line catchcopy */
}

html[lang="en"] .hero-content .lang-en {
  flex-direction: column;
  /* Ensure vertical stacking */
}

html[lang="en"] .hero-subheading {
  font-size: 1.1rem;
  max-width: 1000px;
  /* Widen to prevent unintended wrapping */
  margin-top: 3.5rem;
  /* Increase spacing from catchcopy */
  line-height: 2.0;
  /* Increase text line spacing */
  font-family: "Playfair Display", "Georgia", "Times New Roman", serif;
  /* Change to serif */
}

html[lang="en"] .hero-overlay {
  opacity: 0.2;
}

html[lang="en"] .btn-hero-artist {
  padding: 1rem 3rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 4px;
  font-weight: 600;
}

html[lang="en"] .btn-hero-artist:hover {
  background-color: #333;
}

/* Language Toggle Link */
.lang-toggle-link {
  color: inherit;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.lang-toggle-link:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.header.scrolled .lang-toggle-link,
html[lang="en"] .lang-toggle-link {
  border-color: rgba(0, 0, 0, 0.15);
}

.header.scrolled .lang-toggle-link:hover,
html[lang="en"] .lang-toggle-link:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.05);
}

.lang-label {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.lang-label.current {
  opacity: 1;
  font-weight: 700;
}

.lang-separator {
  opacity: 0.4;
  margin: 0 0.1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Responsive visibility utilities */
.mobile-only {
  display: none;
}

.desktop-only {
  display: inline;
}

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

/* Header Nav Container - Flexbox */
.container.nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 0;
  background-color: transparent;
  transition: var(--transition);
  z-index: 1000;
  color: var(--color-primary);
  /* Dark text for light theme hero */
  /* Initially hidden in Hero */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

.header.scrolled {
  padding: 1rem 0;
  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text);
  /* Visible on scroll */
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header .logo {
  display: flex;
  align-items: center;
}

.header .logo img {
  height: calc(40px + 4rem);
  width: auto;
  margin-top: -2rem;
  margin-bottom: -2rem;
}

.header.scrolled .logo img {
  height: calc(40px + 2rem);
  margin-top: -1rem;
  margin-bottom: -1rem;
}

.header .menu {
  display: flex;
  gap: 2rem;
}

/* Desktop Menu */
.desktop-menu {
  display: block;
}

.desktop-menu .menu {
  display: flex;
  gap: 2rem;
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Hamburger Menu Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 250px;
  height: 100vh;
  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1001;
  padding: 60px 20px;
  transition: right 0.3s ease;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active {
  right: 0;
}

/* Menu Overlay - Background tap to close */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-list a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

.header .link {
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.9;
}

.header .cta,
.header-actions .cta {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.header.scrolled .cta,
.header.scrolled .header-actions .cta {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-primary);
  /* Background Color behind the image - making transparent to avoid masking slides if any */
  background-color: transparent;

  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

/* Slideshow Container */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  /* Smooth crossfade */
}

.hero-slide.active {
  opacity: 1;
}

/* Overlay for dimming effect */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  /* Use white overlay for blend if desired, or transparent if slides handle it */
  /* Let slides show through fully, or set to e.g. 0.2 white if you want "faint" look on top of images */
  /* The requirement was "faint image on white".
     Since slides are images, to make them faint, we can lower their opacity or put a white layer ON TOP.
     Let's put a white layer on top with opacity 0.5 (or higher) to wash them out.
  */
  background-color: #ffffff;
  opacity: 0.4;
  /* Slightly lowered from 0.5 to help image visibility */
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  /* Full width for positioning */
  padding: 40px;
  /* Safe area for edges */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Wrapper for language content to handle positioning context if needed */
.hero-content .lang-ja,
.hero-content .lang-en {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 180px;
  /* Adjust size generally */
  height: auto;
  margin: 0;
}

.hero-heading {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  margin-bottom: 0;
  color: #1a1a1a;
  text-transform: uppercase;
  text-shadow: none;
  text-align: center;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  /* Vertical gap between elements */
}

.hero-heading span {
  display: block;
  opacity: 0;
}

/* Sequential reveal and hide animation */
.hero-heading span:nth-child(1) {
  animation: word-reveal-hide 12s ease-in-out infinite;
}

.hero-heading span:nth-child(2) {
  animation: word-reveal-hide 12s ease-in-out infinite;
  animation-delay: 0.5s;
}

.hero-heading span:nth-child(3) {
  animation: word-reveal-hide 12s ease-in-out infinite;
  animation-delay: 1s;
}

.hero-heading span:nth-child(4) {
  animation: word-reveal-hide 12s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes word-reveal-hide {
  0%, 4.17% {
    opacity: 0;
    transform: translateY(30px);
  }
  8.33%, 58.33% {
    opacity: 1;
    transform: translateY(0);
  }
  62.5%, 100% {
    opacity: 0;
    transform: translateY(30px);
  }
}

@keyframes sway-1 {

  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }

  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes sway-2 {

  0%,
  100% {
    transform: translateY(0) rotate(1.2deg);
  }

  50% {
    transform: translateY(-6px) rotate(-0.8deg);
  }
}

@keyframes sway-3 {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-9px) scale(1.03);
  }
}

@keyframes sway-4 {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-7px) rotate(1.5deg);
  }
}

/* Wave animations for Matching Section */
/* スライドイン中に波が形成されるアニメーション */
@keyframes wave-slide-in {
  0% {
    d: path("M0,0 L0,0 L0,200 L0,200 Z");
  }
  100% {
    d: path("M0,0 L50,0 C53,25 47,50 50,75 C53,100 47,125 50,150 C53,175 50,200 50,200 L0,200 Z");
  }
}

/* 波パターン1のループアニメーション */
@keyframes wave-flow-1 {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

/* 波パターン2のループアニメーション */
@keyframes wave-flow-2 {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Marquee Wrapper - Centers marquee in viewport */
.marquee-wrapper {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 33.33vw;
}

/* CTAボタン（日本語・英語共通） */
.hero-cta {
  position: absolute;
  bottom: 40px;
  right: 40px;
}

/* Marquee Container */
.marquee-container {
  width: 100%;
  height: 3.625rem;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 4px;
}

.marquee-text {
  position: absolute;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  line-height: 3.625rem;
  /* Match container height for vertical centering */
  will-change: transform;
}

.marquee-text-1 {
  animation: marquee-scroll 35s linear infinite;
}

.marquee-text-2 {
  animation: marquee-scroll 35s linear infinite;
  animation-delay: -17.5s;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.btn-hero-artist {
  padding: 1rem 2.5rem;
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.btn-hero-artist:hover {
  background-color: #ffffff;
  color: #1a1a1a;
  transform: translateY(-2px);
}

.btn-hero-space {
  padding: 1rem 2.5rem;
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.btn-hero-space:hover {
  background-color: #ffffff;
  color: #1a1a1a;
  transform: translateY(-2px);
}

/* Interactive Story Section */
.story-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #FAFAFA;
  scroll-snap-align: start;
  transition: background-color 0.6s ease;
}

/* Step 1の背景を少し濃いグレーに */
.story-section[data-step="1"] {
  background-color: #F0F0F0;
}

/* キャラクター配置 */
.story-character {
  position: absolute;
  bottom: 0;
  width: 530px; /* 3分の2程度 */
  z-index: 2; /* テキストより奥 */
  opacity: 0.5; /* 不透明度50% */
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.character-left {
  left: -350px; /* 初期状態は完全に画面外 */
}

.character-right {
  right: -350px; /* 初期状態は完全に画面外 */
}

/* Step 0（初期状態）：キャラクターは画面外、テキストは非表示 */
.story-section[data-step="0"] .character-left {
  left: -350px;
  transition-delay: 0.3s; /* テキストが消えてからスライドアウト */
}

.story-section[data-step="0"] .character-right {
  right: -350px;
  transition-delay: 0.3s; /* テキストが消えてからスライドアウト */
}

.story-section[data-step="0"] .story-text {
  opacity: 0;
  transition-delay: 0s; /* 先に消える */
}

/* Step 1以降、キャラクターが画面内にスライドイン（端ギリギリまで） */
.story-section[data-step="1"] .character-left,
.story-section[data-step="2"] .character-left,
.story-section[data-step="3"] .character-left {
  left: -10px; /* 一部が画面外にはみ出る */
}

.story-section[data-step="1"] .character-right,
.story-section[data-step="2"] .character-right,
.story-section[data-step="3"] .character-right {
  right: -10px; /* 一部が画面外にはみ出る */
}

/* Step 1: テキストは遅延して浮き出てくる */
.story-section[data-step="1"] .text-before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
  transition-delay: 0.4s; /* キャラクターより遅れて */
}

/* 画像切り替え */
.char-img {
  width: 100%;
  height: auto;
  display: block;
}

.char-clear {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.story-section[data-step="2"] .char-clear,
.story-section[data-step="3"] .char-clear {
  opacity: 1;
}

.story-section[data-step="2"] .char-trouble,
.story-section[data-step="3"] .char-trouble {
  opacity: 0;
}

/* 中央コンテンツ */
.story-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 0;
}

/* テキスト表示 - カード積み重ねスタイル */
.story-text {
  position: absolute;
  left: 50%;
  top: 50%;
  opacity: 0;
  width: 100%;
  max-width: 900px; /* 広げる */
  text-align: center;
  padding: 1.5rem 2rem;
  background-color: #F5F5F5; /* 薄いグレー */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* アクティブなステップ：中央・大きい */
.story-section[data-step="1"] .text-before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
}

.story-section[data-step="2"] .text-after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
  background-color: #FFFFFF; /* 白く明るい感じ */
}

.story-section[data-step="3"] .text-bridge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
  background: linear-gradient(135deg, var(--color-primary) 0%, #333 100%);
}

/* 1つ前のステップ：上・小さい */
.story-section[data-step="2"] .text-before {
  opacity: 0.6;
  transform: translate(-50%, calc(-50% - 180px)) scale(0.75);
  z-index: 2;
}

.story-section[data-step="3"] .text-after {
  opacity: 0.6;
  transform: translate(-50%, calc(-50% - 180px)) scale(0.75);
  z-index: 2;
}

/* 2つ前のステップ：さらに上・小さい（消える） */
.story-section[data-step="3"] .text-before {
  opacity: 0;
  transform: translate(-50%, calc(-50% - 320px)) scale(0.5);
  z-index: 1;
}

.story-section[data-step="3"] .text-bridge h3,
.story-section[data-step="3"] .text-bridge p {
  color: #FFFFFF;
}

.story-text h3 {
  font-family: var(--font-heading); /* 明朝体 */
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.story-text p {
  font-family: var(--font-body); /* ゴシック体 */
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-secondary);
  margin-bottom: 0.8rem;
}

/* テキスト要素の初期状態：非表示 */
.story-text h3,
.story-text p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* アクティブなステップでテキストを順番に浮き出させる */
.story-section[data-step="1"] .text-before h3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.story-section[data-step="1"] .text-before p:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.story-section[data-step="1"] .text-before p:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.story-section[data-step="2"] .text-after h3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.story-section[data-step="2"] .text-after p:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.story-section[data-step="2"] .text-after p:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.story-section[data-step="3"] .text-bridge h3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.story-section[data-step="3"] .text-bridge p:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.story-text p:last-child {
  margin-bottom: 0;
}

/* CTAボタン */
.btn-story-cta {
  margin-top: 2rem;
  padding: 1rem 3rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-story-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.4);
}

/* ステップインジケーター */
.story-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #E0E0E0;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  background-color: var(--color-accent);
  transform: scale(1.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .story-character {
    width: 240px; /* 大きく */
  }

  .character-left {
    left: -200px;
    top: 5%; /* 上部に配置 */
    bottom: auto; /* bottomを解除 */
  }

  .character-right {
    right: -200px;
    bottom: 0; /* 下部に配置 */
    top: auto; /* topを解除 */
  }

  /* Step 1-3: キャラクター配置 */
  .story-section[data-step="1"] .character-left,
  .story-section[data-step="2"] .character-left,
  .story-section[data-step="3"] .character-left {
    left: 0; /* 左側に配置 */
    top: 5%;
  }

  .story-section[data-step="1"] .character-right,
  .story-section[data-step="2"] .character-right,
  .story-section[data-step="3"] .character-right {
    right: 0; /* 右端に配置 */
    bottom: 0;
  }

  .story-content {
    padding: 0 20px 200px; /* 下部にキャラクター分の余白 */
  }

  /* モバイル版カードスタイル：前後のカードが少し見える */
  .story-text {
    max-width: 100%;
    opacity: 1; /* デフォルトで表示 */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* ステップ0（初期状態）：カードを下に配置 */
  .story-section[data-step="0"] .text-before {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px) scale(0.95);
  }

  .story-section[data-step="0"] .text-after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }

  /* ステップ1：カード1（中央）＋ カード2（下に少し見える）＋ カード3（非表示） */
  .story-section[data-step="1"] .text-before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
    transition-delay: 0.4s; /* キャラクターより遅れて登場 */
  }

  .story-section[data-step="1"] .text-after {
    opacity: 0.6;
    transform: translate(-50%, calc(-50% + 40px)) scale(0.9);
    z-index: 2;
    transition-delay: 0.5s; /* メインカードより少し遅れて現れる */
  }

  .story-section[data-step="1"] .text-bridge {
    opacity: 0; /* 非表示 */
  }

  /* ステップ2：カード1（上に少し見える）＋ カード2（中央）＋ カード3（下に少し見える） */
  .story-section[data-step="2"] .text-before {
    opacity: 0.6;
    transform: translate(-50%, calc(-50% - 40px)) scale(0.9);
    z-index: 2;
  }

  .story-section[data-step="2"] .text-after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
    background-color: #FFFFFF;
  }

  .story-section[data-step="2"] .text-bridge {
    opacity: 0.6;
    transform: translate(-50%, calc(-50% + 40px)) scale(0.9);
    z-index: 2;
  }

  /* ステップ3：カード2（上に少し見える）＋ カード3（中央） */
  .story-section[data-step="3"] .text-after {
    opacity: 0.6;
    transform: translate(-50%, calc(-50% - 40px)) scale(0.9);
    z-index: 2;
  }

  .story-section[data-step="3"] .text-bridge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
    background: linear-gradient(135deg, var(--color-primary) 0%, #333 100%);
  }

  .story-section[data-step="3"] .text-bridge h3,
  .story-section[data-step="3"] .text-bridge p {
    color: #FFFFFF;
  }

  .story-text h3 {
    font-size: 1.2rem;
  }

  .story-text p {
    font-size: 0.9rem;
  }

  .btn-story-cta {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  /* Solution Section - Mobile */
  .solution-step[data-step="1"] {
    height: auto;
    max-height: none;
    top: 50%;
  }

  .solution-step {
    padding: 0 15px;
  }

  .solution-card .solution-heading {
    font-size: 1.8rem !important;
  }

  .solution-card .solution-description {
    font-size: 1rem !important;
    line-height: 1.6;
    white-space: normal !important; /* 改行を許可 */
  }

  .solution-cta-text {
    font-size: 0.85rem;
  }

  .btn-solution-cta {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }

  /* Solution Step 2 - Mobile Layout */
  .solution-step[data-step="2"] {
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 100vh;
    overflow: visible;
  }

  .solution-section[data-step="2"] {
    overflow: visible;
  }

  /* 背景画像の位置とサイズをモバイル用に調整 */
  .solution-section[data-step="2"] .solution-step[data-step="2"]::before {
    inset: -10% -10% 0 -10% !important;
    background-position: bottom center !important;
    background-size: 100% auto !important;
  }

  /* 画像要素は非表示 */
  .solution-step[data-step="2"] .solution-feature-image {
    display: none;
  }

  /* フィーチャーリストを下部中央に配置 */
  .solution-step[data-step="2"] .solution-features-list {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
  }

  .solution-feature-item {
    padding: 1rem;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* アクティブなカード */
  .solution-feature-item.active {
    opacity: 1;
    transform: scale(1);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  /* 非アクティブなカード */
  .solution-feature-item:not(.active) {
    opacity: 0.4;
    transform: scale(0.9);
    padding: 0;
  }

  /* 非アクティブなカードのp要素を非表示 */
  .solution-feature-item:not(.active) p {
    display: none;
  }

  /* モバイル版ではbrタグを表示 */
  .solution-step[data-step="2"] .solution-feature-item p {
    white-space: normal !important;
  }

  .solution-step[data-step="2"] .solution-feature-item p br {
    display: inline !important;
  }

  .solution-feature-item .solution-num {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .solution-feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .solution-feature-item p {
    font-size: 0.85rem;
  }
}

/* Solution */
.solution-section {
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 4rem 20px;
  text-align: center;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.solution-lead {
  font-size: 1.4rem;
  line-height: 1.8;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto 4rem auto;
  opacity: 0.95;
}

.solution-description {
  max-width: 900px;
  margin: 0 auto 5rem auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-primary);
  opacity: 0.9;
}

.solution-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.solution-heading {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.solution-heading span {
  display: block;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

/* Solution CTA */
.solution-cta {
  max-width: 900px;
  margin: 5rem auto 0;
}

.solution-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 2.5rem 3rem;
  background: #FAFAFA;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.solution-cta-texts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.solution-cta-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-secondary);
  margin: 0;
}

.btn-solution-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================
   Interactive Solution Section - Card Stack
   ============================================ */

/* Card Stack System */
.solution-step {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-sizing: border-box;
}

.solution-card {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

/* Reset heading style inside card */
.solution-card .solution-heading {
  display: block;
  margin-bottom: 1.5rem;
  text-align: left;
  font-size: 2.5rem;
}

.solution-card .solution-description {
  margin: 0;
  max-width: 100%;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;
  white-space: nowrap;
}

/* Step 0: Hidden */
.solution-section[data-step="0"] .solution-step {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

/* Step 1: Active intro card - 中央揃え */
.solution-section[data-step="1"] .solution-step[data-step="1"] {
  opacity: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: auto;
}

/* Step 2: Active image + features */
.solution-section[data-step="2"] .solution-step[data-step="2"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
  pointer-events: auto;
  height: 100vh;
}

/* 背景画像は疑似要素で設定して不透明度50% */
.solution-section[data-step="2"] .solution-step[data-step="2"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: auto 80%;
  background-position: 0 bottom;
  background-repeat: no-repeat;
  background-image: var(--solution-bg-image, none);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* img要素は非表示 */
.solution-feature-image {
  display: none;
}

/* 特徴リスト - 右側に縦並び */
.solution-features-list {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 35%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1;
}

.solution-feature-item {
  position: relative;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: transparent;
  border: none;
  transition: all 0.4s ease;
  opacity: 0.5;
  transform: scale(0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.solution-feature-item.active {
  opacity: 1;
  transform: scale(1);
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.solution-feature-item .solution-num {
  width: 50px;
  height: 50px;
  background-color: #c4a56d;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.solution-feature-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.solution-feature-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-secondary);
}

/* デスクトップ版ではbrタグを非表示 */
.solution-feature-item p br {
  display: none !important;
}

/* Step 2でStep 1は上に移動しながら消える */
.solution-section[data-step="2"] .solution-step[data-step="1"] {
  opacity: 0;
  position: absolute;
  left: 20px;
  transform: translateY(-150px);
  pointer-events: none;
}

/* Step 3: Active CTA, grid moves up */
.solution-section[data-step="3"] .solution-step[data-step="3"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
  pointer-events: auto;
}

/* Step 3でStep 2（特徴リスト+画像）が上に移動 */
.solution-section[data-step="3"] .solution-step[data-step="2"] {
  opacity: 0;
  transform: translate(-50%, calc(-50% - 250px)) scale(0.85);
  z-index: 2;
}

/* Step 3でStep 1（カード）がさらに上に移動 */
.solution-section[data-step="3"] .solution-step[data-step="1"] {
  opacity: 0;
  position: absolute;
  left: 20px;
  transform: translateY(-300px);
  z-index: 1;
}

/* CTA needs to be centered */
.solution-section[data-step="3"] .solution-cta {
  max-width: 950px;
  margin: 0 auto;
}

/* Text sequential reveal */
.solution-card h2,
.solution-card p {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.solution-section[data-step="1"] .solution-card h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.solution-section[data-step="1"] .solution-card p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* CTA reveal */
.solution-cta {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.solution-section[data-step="3"] .solution-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.solution-cta-text,
.btn-solution-cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.solution-section[data-step="3"] .solution-cta-text:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.solution-section[data-step="3"] .solution-cta-text:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

.solution-section[data-step="3"] .btn-solution-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

/* Background color transitions */
.solution-section[data-step="1"] {
  background-color: #FFFFFF;
}

.solution-section[data-step="2"] {
  background-color: #FAFAFA;
}

.solution-section[data-step="3"] {
  background-color: #F5F5F5;
}

/* Step indicators */
.solution-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.solution-indicator .indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #E0E0E0;
  transition: all 0.3s ease;
}

.solution-indicator .indicator-dot.active {
  background-color: var(--color-accent);
  transform: scale(1.2);
}

/* Segments (General) */
.segment-section {
  padding: var(--section-padding);
  scroll-snap-align: start;
}

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

.segment-header {
  margin-bottom: 6rem;
  text-align: center;
}

.segment-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.segment-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.segment-subtitle {
  font-size: 1.1rem;
  color: var(--color-secondary);
  line-height: 1.8;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-bottom: 8rem;
}

.segment-card {
  padding: 2rem;
  border-radius: 8px;
}

.segment-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.segment-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.segment-card p {
  color: var(--color-secondary);
  line-height: 1.7;
}

.flow-title {
  font-size: 1.8rem;
  margin-bottom: 4rem;
  text-align: center;
  font-family: var(--font-heading);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.flow-step {
  text-align: left;
}

.flow-step-num {
  font-size: 3rem;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  display: block;
}

.flow-step h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.flow-step p {
  font-size: 0.95rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

/* Matching Flow Section */
.matching-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  padding: 80px 0 0 0;
  z-index: 2;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* マッチングセクション非表示状態（pricing表示時） */
.matching-pricing-wrapper.pricing-active .matching-section {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

/* ============================================
   Matching Section Entrance Animations
   ============================================ */

/* Initial states (hidden) */
.flow-step-item,
.flow-arrow {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.center-arrow {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.matching-handshake {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animation trigger styles */
.matching-section.wave-animate-in .flow-step-item.animate-in,
.matching-section.wave-animate-in .flow-arrow.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.matching-section.wave-animate-in .center-arrow.animate-in {
  opacity: 0.6;
  transform: scale(1);
}

.matching-section.wave-animate-in .matching-handshake.animate-in {
  opacity: 1;
  transform: scale(1);
}

.matching-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 4rem 4rem 6rem 4rem;
}

.matching-flow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  position: relative;
}

.flow-track {
  flex: 1;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
}

/* Center track for handshake */
.flow-track.track-center {
  position: relative;
  max-width: 480px;
}

/* Invisible steps for height alignment */
.flow-steps-invisible {
  opacity: 0;
  pointer-events: none;
}

.track-header {
  margin-bottom: 2rem;
}

.track-image {
  width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
}

.track-label {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
}

.flow-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.flow-step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.2rem 2.5rem;
  border-radius: 16px;
  font-size: 1.25rem;
  font-weight: 500;
  color: #333;
  width: 100%;
  max-width: 260px;
  border: 2px solid rgba(0, 0, 0, 0.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.flow-step-item.highlight {
  background: rgba(26, 26, 26, 0.7);
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.flow-arrow {
  font-size: 1.5rem;
  color: #999;
}

.flow-arrow.invisible-arrow {
  opacity: 0 !important;
  pointer-events: none;
}

.flow-spacer {
  height: 1.2rem;
}

/* Bridge Area - Hidden */
.matching-bridge {
  display: none;
}

.bridge-line-svg {
  width: 100%;
  height: 100px;
  max-width: 800px;
  position: absolute;
}

.bridge-line {
  stroke: #333;
  stroke-width: 2;
  stroke-dasharray: 5, 5;
  fill: none;
}

.flow-arrow-tilt {
  font-size: 2rem;
  color: #333;
  transform: rotate(-15deg) translateY(40px);
  z-index: 2;
  font-weight: bold;
}

/* Handshake Area */
.matching-handshake {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 2rem;
  flex: 0 0 auto;
  max-width: 320px;
  position: relative;
  z-index: 2;
}

.handshake-bubble {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-secondary);
  border: none;
  position: relative;
  text-align: center;
}

.handshake-bubble .lang-ja {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.handshake-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.handshake-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.handshake-image {
  width: 280px;
  height: auto;
}

/* Center Arrow */
.center-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  min-height: calc(1.25rem * 1.4 + 2.4rem);
  width: 100%;
  max-width: 260px;
  flex: 0 0 auto;
}

.center-arrow-img {
  width: 100%;
  height: auto;
  opacity: 0.6;
}

/* Connection Arrow SVG */
.matching-connection-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.matching-connection-arrow .arrow-path {
  stroke: var(--color-primary);
  stroke-width: 3;
  fill: none;
  opacity: 0.8;
}

/* Mobile版は通常時非表示 */
.matching-flow-mobile {
  display: none;
}

@media (max-width: 768px) {

  /* Desktop版を非表示 */
  .matching-flow-desktop {
    display: none;
  }

  /* Mobile版を表示 */
  .matching-flow-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .matching-section {
    /* wrapperの100vh内に収める（position: absoluteを維持） */
    height: 100%;
    min-height: unset;
    padding: 60px 20px 30px;
    box-sizing: border-box;
  }

  .matching-container {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* モバイル用ラベル（Artist / Exhibitor） */
  .matching-labels-mobile {
    position: relative;
    width: 100%;
    height: 40vw;
    margin-bottom: 1rem;
    overflow: visible;
  }

  .matching-label-mobile {
    position: absolute;
    top: 0;
  }

  .label-artist-mobile {
    left: -5vw;
  }

  .label-exhibitor-mobile {
    right: -5vw;
  }

  .label-img-mobile {
    width: 60vw;
    height: auto;
    object-fit: contain;
    opacity: 0.5;
  }

  .matching-label-mobile span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
    color: var(--color-primary);
    opacity: 0.5;
  }

  /* Artist: テキストを5vw内側に */
  .label-artist-mobile span {
    left: 5vw;
  }

  /* Exhibitor: テキストを5vw内側に、下から上に読む */
  .label-exhibitor-mobile span {
    right: 5vw;
    transform: rotate(180deg) translateY(50%);
  }

  /* 3カラムのトラック部分 */
  .matching-flow-mobile-tracks {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
  }

  /* 左右のトラック */
  .flow-track-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 140px;
  }

  /* センタートラック（極端に狭く） */
  .track-center-mobile {
    flex: 0 0 auto;
    width: 50px;
    max-width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .track-center-mobile .flow-step-mobile {
    background: rgba(200, 200, 200, 0.3);
    visibility: hidden;
  }

  .track-center-mobile .flow-arrow-mobile {
    visibility: hidden;
  }

  /* センタートラック下部の←ボックス（表示・透明） */
  .track-center-mobile .center-arrow-box {
    visibility: visible;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .center-horizontal-arrow {
    font-size: 0.9rem;
    color: #999;
  }

  /* 非表示矢印（高さ維持） */
  .arrow-hidden-mobile {
    visibility: hidden;
  }

  .center-arrow-text {
    font-size: 2rem;
    color: #333;
    opacity: 0.6;
  }

  /* ステップアイテム */
  .flow-step-mobile {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.3rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    text-align: center;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .flow-step-mobile.highlight-mobile {
    background: rgba(26, 26, 26, 0.7);
    color: #fff;
  }

  .flow-arrow-mobile {
    font-size: 0.9rem;
    color: #999;
    padding: 0.1rem 0;
  }

  /* 握手エリア（トラックの下） */
  .matching-handshake-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
  }

  .handshake-image-mobile {
    width: 160px;
    height: auto;
  }

  .handshake-bubble-mobile {
    text-align: center;
    font-family: var(--font-heading);
  }

  .handshake-bubble-mobile .lang-ja {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .handshake-title-mobile {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
  }

  .handshake-subtitle-mobile {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
  }

  /* 背景とラベルを非表示（モバイルでは不要） */
  .shared-bg-artist,
  .shared-bg-exhibitor,
  .shared-side-label,
  .shared-wave-divider {
    display: none;
  }

  /* モバイル版フローアニメーション */
  .matching-label-mobile {
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .label-artist-mobile {
    transform: translateX(-30px);
  }

  .label-exhibitor-mobile {
    transform: translateX(30px);
  }

  .matching-label-mobile.animate-in {
    opacity: 1;
    transform: translateX(0);
  }

  .flow-step-mobile,
  .flow-arrow-mobile {
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  }

  .flow-step-mobile.animate-in,
  .flow-arrow-mobile.animate-in {
    opacity: 1;
    transform: translateY(0);
  }

  .track-center-mobile .flow-step-mobile.animate-in {
    opacity: 0;
  }

  .track-center-mobile .flow-step-mobile.center-arrow-box.animate-in {
    opacity: 1;
  }

  .track-center-mobile .flow-arrow-mobile.animate-in {
    opacity: 0;
  }

  .matching-handshake-mobile {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  .matching-handshake-mobile.animate-in {
    opacity: 1;
    transform: scale(1);
  }
}


/* ============================================
   Matching + Pricing Wrapper
   ============================================ */
.matching-pricing-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
}

/* 共有背景 - ラッパーが表示中のみviewport内に固定 */
.shared-bg-artist,
.shared-bg-exhibitor {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
}

/* 波アニメーション後にキャラクターがフェードイン */
.matching-pricing-wrapper.in-view .shared-bg-artist {
  animation: sharedBgSlideInLeft 0.8s ease-out 0.8s forwards;
}

.matching-pricing-wrapper.in-view .shared-bg-exhibitor {
  animation: sharedBgSlideInRight 0.8s ease-out 0.8s forwards;
}

@keyframes sharedBgSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes sharedBgSlideInRight {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.shared-bg-artist {
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5%;
}

.shared-bg-exhibitor {
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5%;
}

.shared-bg-img {
  height: 80%;
  width: auto;
  opacity: 0.5;
  object-fit: contain;
  transition: opacity 0.8s ease-out;
}

.matching-pricing-wrapper.in-view .shared-bg-img {
  opacity: 0.5;
}

/* 共有サイドラベル */
.shared-side-label {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.2rem;
  color: var(--color-primary);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.shared-side-label.label-left {
  left: 2rem;
  transform: translateY(-50%) translateY(-30px) rotate(90deg);
  transform-origin: center;
}

.shared-side-label.label-right {
  right: 2rem;
  transform: translateY(-50%) translateY(30px) rotate(-90deg);
  transform-origin: center;
}

/* 波アニメーション後にラベルがスライドイン */
.matching-pricing-wrapper.in-view .shared-side-label.label-left {
  animation: sharedLabelSlideInFromTop 0.6s ease-out 0.8s forwards;
}

.matching-pricing-wrapper.in-view .shared-side-label.label-right {
  animation: sharedLabelSlideInFromBottom 0.6s ease-out 0.8s forwards;
}

@keyframes sharedLabelSlideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50%) translateY(-30px) rotate(90deg);
  }
  to {
    opacity: 0.8;
    transform: translateY(-50%) translateY(0) rotate(90deg);
  }
}

@keyframes sharedLabelSlideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(-50%) translateY(30px) rotate(-90deg);
  }
  to {
    opacity: 0.8;
    transform: translateY(-50%) translateY(0) rotate(-90deg);
  }
}

/* 共有波アニメーション */
.shared-wave-divider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.matching-pricing-wrapper.in-view .shared-wave-divider {
  transform: translateX(0);
}

/* 波の退出アニメーション（FAQへ移動時） */
.matching-pricing-wrapper.wave-exiting .shared-wave-divider {
  transform: translateX(-100%);
}

/* 波退出時に他の要素もフェードアウト */
.matching-pricing-wrapper.wave-exiting .pricing-panel,
.matching-pricing-wrapper.wave-exiting .pricing-center-card,
.matching-pricing-wrapper.wave-exiting .pricing-cta-card,
.matching-pricing-wrapper.wave-exiting .pricing-step,
.matching-pricing-wrapper.wave-exiting .shared-side-label,
.matching-pricing-wrapper.wave-exiting .shared-bg-artist,
.matching-pricing-wrapper.wave-exiting .shared-bg-exhibitor {
  opacity: 0 !important;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.shared-wave-divider .wave-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.matching-pricing-wrapper.in-view .shared-wave-divider .wave-pattern-1 {
  animation: wave-slide-in 1.2s ease-out forwards,
             wave-flow-1 16s linear 1.2s infinite;
}

.matching-pricing-wrapper.in-view .shared-wave-divider .wave-pattern-2 {
  animation: wave-slide-in 1.2s ease-out forwards,
             wave-flow-2 16s linear 1.2s infinite;
}

/* 波の上下グラデーション */
.shared-wave-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 10;
}

.shared-wave-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 10;
}


/* ============================================
   Pricing Section
   ============================================ */
.pricing-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 料金セクション表示状態 */
.matching-pricing-wrapper.pricing-active .pricing-section {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.pricing-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max-width);
  padding: 0 2rem;
}

/* ステップ - 絶対配置、カードスタック効果 */
.pricing-step {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: calc(100% - 4rem);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* ステップ状態管理 */
.pricing-section[data-step="1"] .pricing-step[data-step="1"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  z-index: 3;
}

.pricing-section[data-step="2"] .pricing-step[data-step="2"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  z-index: 3;
}

.pricing-section[data-step="2"] .pricing-step[data-step="1"] {
  opacity: 0.4;
  transform: translate(-50%, calc(-50% - 120px)) scale(0.85);
  z-index: 2;
}

.pricing-section[data-step="3"] .pricing-step[data-step="3"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  z-index: 3;
}

.pricing-section[data-step="3"] .pricing-step[data-step="2"] {
  opacity: 0.4;
  transform: translate(-50%, calc(-50% - 120px)) scale(0.85);
  z-index: 2;
}

.pricing-section[data-step="4"] .pricing-step[data-step="4"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  z-index: 3;
}

.pricing-section[data-step="4"] .pricing-step[data-step="3"] {
  opacity: 0.4;
  transform: translate(-50%, calc(-50% - 120px)) scale(0.85);
  z-index: 2;
}

/* ステップ1: 分割パネル */
/* デスクトップではタブ非表示 */
.pricing-tabs-mobile {
  display: none;
}

.pricing-split {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}

.pricing-panel {
  flex: 1;
  max-width: 48%;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.pricing-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  transition-delay: 0.2s;
}

/* アクティブステップのコンテンツアニメーション */
.pricing-section[data-step="1"] .pricing-step[data-step="1"] .pricing-panel h3,
.pricing-section[data-step="2"] .pricing-step[data-step="2"] h3,
.pricing-section[data-step="3"] .pricing-step[data-step="3"] h3,
.pricing-section[data-step="4"] .pricing-step[data-step="4"] h3 {
  opacity: 1;
  transform: translateY(0);
}

.pricing-panel h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.pricing-panel p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  transition-delay: 0.3s;
}

.pricing-section[data-step="1"] .pricing-step[data-step="1"] .pricing-panel p,
.pricing-section[data-step="2"] .pricing-step[data-step="2"] p,
.pricing-section[data-step="3"] .pricing-step[data-step="3"] p,
.pricing-section[data-step="4"] .pricing-step[data-step="4"] p {
  opacity: 1;
  transform: translateY(0);
}

.pricing-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  transition-delay: 0.4s;
}

.pricing-section[data-step="1"] .pricing-step[data-step="1"] .pricing-benefits,
.pricing-section[data-step="2"] .pricing-step[data-step="2"] .pricing-benefits,
.pricing-section[data-step="3"] .pricing-step[data-step="3"] .pricing-benefits,
.pricing-section[data-step="4"] .pricing-step[data-step="4"] .pricing-benefits {
  opacity: 1;
  transform: translateY(0);
}

.pricing-benefits li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text);
}

.pricing-benefits li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.pricing-note {
  font-size: 0.82rem !important;
  color: var(--color-secondary) !important;
  font-style: italic;
  margin-top: 1.5rem !important;
}

/* ステップ2-4: 中央カード */
.pricing-center-card,
.pricing-cta-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 3.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-align: center;
}

.pricing-center-card h3,
.pricing-cta-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: 0.15s;
}

.pricing-section[data-step="2"] .pricing-step[data-step="2"] .pricing-center-card h3,
.pricing-section[data-step="3"] .pricing-step[data-step="3"] .pricing-center-card h3,
.pricing-section[data-step="4"] .pricing-step[data-step="4"] .pricing-cta-card h3 {
  opacity: 1;
  transform: translateY(0);
}

.pricing-lead {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: 0.25s;
}

.pricing-section[data-step="2"] .pricing-step[data-step="2"] .pricing-lead,
.pricing-section[data-step="3"] .pricing-step[data-step="3"] .pricing-lead,
.pricing-section[data-step="4"] .pricing-step[data-step="4"] .pricing-lead {
  opacity: 1;
  transform: translateY(0);
}

.pricing-reasons {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem;
  max-width: 500px;
  text-align: left;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: 0.35s;
}

.pricing-section[data-step="2"] .pricing-step[data-step="2"] .pricing-reasons,
.pricing-section[data-step="3"] .pricing-step[data-step="3"] .pricing-reasons {
  opacity: 1;
  transform: translateY(0);
}

.pricing-reasons li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text);
}

.pricing-reasons li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.pricing-center-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: 0.35s;
}

.pricing-section[data-step="2"] .pricing-step[data-step="2"] .pricing-center-card p,
.pricing-section[data-step="3"] .pricing-step[data-step="3"] .pricing-center-card p {
  opacity: 1;
  transform: translateY(0);
}

.pricing-tagline {
  font-size: 0.95rem !important;
  font-weight: 600;
  color: var(--color-accent) !important;
  margin-top: 1.5rem !important;
}

/* CTA カード */
.pricing-cta-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: 0.25s;
}

.pricing-section[data-step="4"] .pricing-step[data-step="4"] .pricing-cta-card p {
  opacity: 1;
  transform: translateY(0);
}

.btn-pricing-cta {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease-out;
  opacity: 0;
  transform: translateY(15px);
}

.pricing-section[data-step="4"] .pricing-step[data-step="4"] .btn-pricing-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.btn-pricing-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ステップインジケーター */
.pricing-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.pricing-indicator .indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.pricing-indicator .indicator-dot.active {
  background-color: var(--color-primary);
  transform: scale(1.2);
}


/* ============================================
   Pricing Section - Mobile Responsive
   ============================================ */
@media (max-width: 768px) {
  .shared-bg-artist,
  .shared-bg-exhibitor,
  .shared-side-label {
    display: none;
  }

  /* モバイル版の波アニメーション */
  .shared-wave-divider {
    display: block !important;
    visibility: visible !important;
    opacity: 1;
  }

  /* 波のパターンアニメーション（モバイル用） */
  .matching-pricing-wrapper.in-view .shared-wave-divider .wave-pattern-1 {
    animation: wave-slide-in 1.2s ease-out forwards,
               wave-flow-1 16s linear 1.2s infinite;
  }

  .matching-pricing-wrapper.in-view .shared-wave-divider .wave-pattern-2 {
    animation: wave-slide-in 1.2s ease-out forwards,
               wave-flow-2 16s linear 1.2s infinite;
  }

  .pricing-section {
    padding: 0;
    height: 100%;
    min-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  .pricing-container {
    position: relative;
    height: 100%;
    padding: 0 1rem;
  }

  .pricing-step {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    max-width: calc(100% - 2rem);
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* アクティブなステップ */
  .pricing-section[data-step="1"] .pricing-step[data-step="1"],
  .pricing-section[data-step="2"] .pricing-step[data-step="2"],
  .pricing-section[data-step="3"] .pricing-step[data-step="3"],
  .pricing-section[data-step="4"] .pricing-step[data-step="4"] {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    z-index: 3;
  }

  /* 1つ前のステップ（上に小さく表示） */
  .pricing-section[data-step="2"] .pricing-step[data-step="1"],
  .pricing-section[data-step="3"] .pricing-step[data-step="2"],
  .pricing-section[data-step="4"] .pricing-step[data-step="3"] {
    opacity: 0.3;
    transform: translate(-50%, calc(-50% - 80px)) scale(0.85);
    z-index: 2;
  }

  /* 2つ前のステップ（非表示） */
  .pricing-section[data-step="3"] .pricing-step[data-step="1"],
  .pricing-section[data-step="4"] .pricing-step[data-step="2"] {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 150px)) scale(0.7);
    z-index: 1;
  }

  /* モバイル用タブ */
  .pricing-tabs-mobile {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
  }

  .pricing-tab {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .pricing-tab.active {
    background: var(--color-primary);
    color: var(--color-white);
  }

  /* タブ切り替えでパネル表示制御 */
  .pricing-split {
    flex-direction: column;
    gap: 0;
  }

  .pricing-panel {
    max-width: 100%;
    padding: 1.5rem;
    display: none;
  }

  .pricing-panel.active {
    display: block;
  }

  .pricing-panel h3 {
    font-size: 1.15rem;
  }

  .pricing-panel h4 {
    font-size: 0.85rem;
  }

  .pricing-panel p {
    font-size: 0.82rem;
  }

  .pricing-benefits li {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .pricing-center-card,
  .pricing-cta-card {
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
  }

  .pricing-center-card h3,
  .pricing-cta-card h3 {
    font-size: 1.25rem;
  }

  .pricing-lead {
    font-size: 0.9rem;
  }

  .pricing-reasons li {
    font-size: 0.8rem;
  }

  .pricing-center-card p,
  .pricing-cta-card p {
    font-size: 0.85rem;
  }

  .pricing-indicator {
    bottom: 1rem;
  }
}


/* FAQ */
.faq-section {
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 20px;
  background-color: var(--color-white);
  scroll-snap-align: start;
  overflow: hidden;
}

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

.faq-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 4rem;
}

.faq-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-light-grey);
  padding-bottom: 2rem;
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.faq-answer {
  color: var(--color-secondary);
  line-height: 1.6;
}

.faq-note {
  font-size: 0.85em;
  opacity: 0.8;
}

/* Final CTA + Footer Wrapper */
.final-footer-wrapper {
  scroll-snap-align: start;
}

/* Final CTA Section */
.final-cta-section {
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 20px;
  background-color: var(--color-white);
  color: var(--color-primary);
  text-align: center;
  border-top: 1px solid var(--color-light-grey);
  overflow: hidden;
}

.final-cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;

  /* グラデーション背景の設定 */
  background: linear-gradient(90deg,
      var(--color-primary) 0%,
      /* ベース色（黒） */
      var(--color-primary) 40%,
      /* ベース色が続く */
      #ffffff 50%,
      /* 白いハイライト（中心） */
      var(--color-primary) 60%,
      /* ベース色に戻る */
      var(--color-primary) 100%
      /* ベース色 */
    );

  /* テキストで背景を切り抜く */
  -webkit-background-clip: text;
  background-clip: text;

  /* テキスト自体を透明にして背景を透過 */
  -webkit-text-fill-color: transparent;
  color: transparent;

  /* 背景サイズを大きくしてアニメーション範囲を確保 */
  background-size: 200% 100%;

  /* アニメーション適用 */
  animation: metallic-shine 4s ease-out infinite;
}

.final-cta-text {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Footer */

.btn-accent {
  padding: 1rem 3rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-accent:hover {
  transform: scale(1.05);
}

.footer-data {
  background-color: var(--color-white);
  color: var(--color-secondary);
  padding: 4rem 20px;
  font-size: 0.9rem;
  border-top: 1px solid var(--color-light-grey);
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-brand p {
  color: var(--color-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
}

.footer-links a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-social a:hover {
  color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --section-padding: 6rem 20px;
  }

  /* Responsive visibility utilities */
  .mobile-only {
    display: inline;
  }

  .desktop-only {
    display: none;
  }

  /* Hide desktop menu, show hamburger */
  .desktop-menu {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .mobile-menu.active {
    display: block;
  }

  .menu-overlay.active {
    display: block;
  }

  /* Compact header */
  .header {
    padding: 0.75rem 0;
  }

  .header.scrolled {
    padding: 0.5rem 0;
  }

  .container.nav {
    gap: 0.5rem;
  }

  .header .logo img {
    height: calc(24px + 1.5rem);
    margin-top: -0.75rem;
    margin-bottom: -0.75rem;
  }

  .header.scrolled .logo img {
    height: calc(24px + 1rem);
    margin-top: -0.5rem;
    margin-bottom: -0.5rem;
  }

  .header-actions .lang-toggle {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  .header-actions .cta {
    font-size: 0.7rem;
    padding: 0.35rem 0.8rem;
  }

  /* Hero - Mobile */
  .hero {
    height: 100vh;
  }

  .hero-content {
    position: relative;
    height: 100vh;
    padding: 20px;
  }

  .hero-logo {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    z-index: 5;
  }

  /* 日本語・英語共通: モバイルレイアウト */
  html[lang="ja"] .hero-content .lang-ja,
  html[lang="en"] .hero-content .lang-en {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    position: relative;
  }

  .hero-heading {
    font-size: 2rem;
    gap: 1rem;
    letter-spacing: 0.2em;
    margin: 0;
    text-align: center;
  }

  .marquee-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    bottom: 110px;
  }

  .hero-cta {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    font-size: 0.85rem;
    padding: 0.9rem 2.5rem;
    white-space: nowrap;
  }

  html[lang="en"] .hero-subheading {
    font-size: 0.9rem;
    margin-top: 2rem;
  }

  .solution-cta-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  .btn-solution-cta {
    width: 100%;
  }

  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .header .menu {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 0;
    height: 100vh;
    box-sizing: border-box;
  }

  .segment-grid {
    gap: 2rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer-links {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-social {
    justify-content: center;
  }

  /* FAQ Section Mobile */
  .faq-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }

  .faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  /* Final CTA Section Mobile */
  .final-cta-section {
    height: 100vh;
    box-sizing: border-box;
    padding: 4rem 20px;
  }

  .final-cta-title {
    font-size: 1.8rem;
    line-height: 1.5;
    text-align: left;
  }

  .final-cta-text {
    font-size: 1rem;
  }
}

@keyframes metallic-shine {
  0% {
    background-position: 100% 0;  /* 右端からスタート */
  }
  100% {
    background-position: -100% 0; /* 左端へ移動 */
  }
}