/*
Theme Name: HR DOC SUITE
Theme URI: https://hrdocsuite.com
Author: HR DOC Inc.
Author URI: https://hrdocsuite.com
Description: HR DOC SUITE - 採用と評価のドキュメントテンプレートサービス用WordPressカスタムテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hrdocsuite
*/

/* ============================================
   CSS Variables & Base Styles
   ============================================ */

:root {
  /* Colors */
  --navy: #1f2937;
  --white: #ffffff;
  --gray-soft: #f3f4f6;
  --gray-line: #d1d5db;
  --text: #111827;
  --muted: #4b5563;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --cyan: #22d3ee;
  
  /* Typography */
  --font-jp: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --font-en: "Roboto", sans-serif;
  --font-heading: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif; /* 見出し専用 */
  --font-size-xs: 0.9rem;
  --font-size-sm: 1rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.15rem;
  --font-size-xl: 1.3rem;
  --font-size-2xl: 1.8rem;
  --font-size-3xl: 2.2rem;
  --font-size-4xl: 3rem; /* h2用 - 大きく */
  --font-size-5xl: 4rem;
  --font-size-6xl: 5rem; /* 特大見出し用 */
  --font-size-label: 1.1rem; /* セクションラベル用 */
  --font-size-hero: clamp(3.5rem, 5vw + 1rem, 6rem);
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: -0.01em;
  --letter-spacing-wide: 0.05em;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 36px;
  --spacing-2xl: 48px;
  --spacing-3xl: 80px;
  
  /* Effects */
  --shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 59, 138, 0.15);
  --radius: 12px;
  --radius-lg: 999px;
  --max-width: 1200px;
  
  /* Z-index */
  --z-header: 100;
  --z-floating: 90;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: var(--font-size-base);
  color: var(--text);
  background: var(--white);
  line-height: var(--line-height-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section.cta {
  padding: 120px 0 60px;
}

.section.company-section {
  padding: 40px 0;
}

.muted-bg {
  background: var(--gray-soft);
}

/* Typography */
h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  margin: 0 0 var(--spacing-lg);
  color: var(--white);
}

h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  margin: 0 0 var(--spacing-lg);
  color: var(--navy);
}

h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  letter-spacing: -0.02em;
  margin: 0 0 var(--spacing-md);
  color: var(--navy);
}

.hero h1.hero-title {
  color: var(--white);
  margin: 0 0 var(--spacing-xl);
}

.company-section h2,
.faq-title-large,
.cta-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-6xl); /* 5rem */
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

.lead,
.hero-lead,
.cta-subtitle {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.85);
  font-weight: var(--font-weight-normal);
  margin: 0 0 var(--spacing-2xl);
  max-width: 600px;
}

.cta-subtitle {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
  text-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 20px;
}

.cta-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, var(--blue) 0%, rgba(37, 99, 235, 0.6) 100%);
  border-radius: 2px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  background: rgba(13, 27, 62, 0); /* 初期は透明 */
  transition: all 0.4s ease;
  padding: 10px 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98); /* 透明度を下げて白と一体化しないように */
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08); /* シャドウを少し強めて境界をはっきりさせる */
  padding: 6px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ロゴデザイン刷新（画像版） */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.logo:hover {
  transform: translateY(-1px) scale(1.02);
}

.logo-img {
  height: 55px; /* サイズを拡大 */
  width: auto;
  display: block;
  /* 初期状態（紺背景）では白抜きにして視認性を確保 */
  filter: brightness(0) invert(1);
  transition: all 0.4s ease;
}

.site-header.scrolled .logo-img {
  height: 48px; /* スクロール後は少しコンパクトに */
  /* スクロール後（白背景）はロゴ本来のカラーを表示 */
  filter: none;
}

/* ナビゲーション */
.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl); /* gapを広げる (24px → 48px) */
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  margin-left: auto;
  margin-right: 30px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 8px 12px; /* 左右にpaddingを追加 */
  transition: color 0.3s ease;
  display: inline-block;
  white-space: nowrap; /* テキストの折り返しを防止 */
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px; /* paddingに合わせて調整 */
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}

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

.nav-link:hover::after {
  width: calc(100% - 24px); /* padding分を考慮 */
  background: var(--blue);
}

.site-header.scrolled .nav-link {
  color: var(--muted);
}

.site-header.scrolled .nav-link:hover {
  color: var(--blue);
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.site-header.scrolled .hamburger-line {
  background-color: var(--navy);
}

/* Active State for Hamburger */
.menu-open .hamburger-line:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

.menu-open .hamburger-line {
  background-color: var(--navy) !important;
}

/* Mobile Navigation Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateY(-10px);
}

.menu-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.menu-open {
  overflow: hidden;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 40px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  position: relative;
}

.mobile-nav-link:hover {
  color: var(--blue);
}

.mobile-nav-footer {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.mobile-menu-btn {
  width: 100%;
  max-width: 280px;
}

/* Responsive Styles for Header */
@media (max-width: 820px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    display: none;
  }
}

/* Floating Bar (Bottom) */
.floating-bar {
  position: fixed;
  bottom: 0; /* 常時表示 */
  left: 0;
  width: 100%;
  background: rgba(13, 27, 62, 0.95); /* Deep Navy with Slight Transparency */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--z-floating);
  padding: 16px 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.floating-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-links {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  justify-content: center;
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  max-width: 240px;
  text-decoration: none;
}

.btn-login {
  background: #ffffff;
  color: #0d1b3e;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-register {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
  filter: brightness(1.1);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: block; /* flexを解除 - .containerのmargin: 0 autoで中央配置 */
  overflow: hidden;
  background: #0d1b3e;
  padding: 140px 0 100px;
  color: #fff;
}

/* 没入型背景メディア */
.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* ビジネス・ドキュメント感を出すグリッド背景 */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.hero-bg-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, rgba(13, 27, 62, 0.8) 0%, #0d1b3e 100%);
  z-index: 2;
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.hero-bg-text-scrolling {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en);
  font-size: 25vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.05em;
  animation: heroTextScroll 60s linear infinite;
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

@keyframes heroTextScroll {
  0% { transform: translate(-20%, -50%); }
  100% { transform: translate(-80%, -50%); }
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* グラスパネル演出の廃止（モダン・ビジネス対応） */
.hero-glass-panel {
  position: relative;
  /* パネル装飾を削除してタイポグラフィを強調 */
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 640px;
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

/* HERO テキストリビール・スタッガードアニメーション */
.hero-reveal-item {
  opacity: 0;
  transform: translateY(36px);
  animation: heroRevealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-reveal-item.hero-delay-0 { animation-delay: 0.1s; }
.hero-reveal-item.hero-delay-1 { animation-delay: 0.2s; }
.hero-reveal-item.hero-delay-2 { animation-delay: 0.35s; }
.hero-reveal-item.hero-delay-3 { animation-delay: 0.5s; }
.hero-reveal-item.hero-delay-4 { animation-delay: 0.7s; }
.hero-reveal-item.hero-delay-5 { animation-delay: 0.95s; }

@keyframes heroRevealUp {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .empathy-card.reveal-card,
  .problem-header.reveal-card,
  .problem-lead.reveal-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .empathy-card .card-shimmer {
    display: none;
  }
  .scroll-roller,
  .scroll-text-inner {
    animation: none;
  }
  .scroll-track::after {
    animation: none;
  }
  /* パララックス無効化 */
  .hero-bg-media,
  .hero-bg-overlay-gradient,
  .hero-bg-text-scrolling,
  .hero-glass-panel,
  .hero-visual-wrap,
  .hero-main-visual,
  .problem-header,
  .empathy-grid {
    will-change: auto !important;
    transition: none !important;
  }
}

.hero-label {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #60a5fa; /* テキストのみで洗練させる */
  margin-bottom: 24px;
  display: inline-block;
  background: none;
  padding: 0;
  border: none;
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw + 1rem, 4.4rem);
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 32px;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 30px rgba(13, 27, 62, 0.5);
}

.hero-title .t-line {
  display: inline-block;
  white-space: nowrap;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 48px;
  max-width: 560px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 24px;
}

/* 共通ボタンスタイル (HERO, CTA, PLAN) */
.btn-entry-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff;
  padding: 18px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  letter-spacing: 0.05em;
  width: 100%; /* カード内での幅いっぱいをデフォルトに */
  max-width: 400px; /* HEROなどでの広がりすぎ防止 */
}

/* HEROやCTAなど、特定の場所では幅を自動調整 */
.cta-row .btn-entry-hero,
.cta-button-wrapper .btn-entry-hero {
  width: auto;
  min-width: 240px;
}

.btn-entry-hero:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue) 100%);
}

/* 右側ビジュアル演出 */
.hero-visual-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
  transition: transform 0.1s linear;
  transform-style: preserve-3d;
}

/* スクロールインジケーター（カーテンロール・スタイリッシュ版） */
.hero-scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  will-change: transform, opacity;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.1s linear;
  pointer-events: auto;
}

.scroll-text {
  display: block;
  overflow: hidden;
}

.scroll-text-inner {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  animation: scrollTextPulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollTextPulse {
  0%, 100% { opacity: 0.5; letter-spacing: 0.35em; }
  50% { opacity: 1; letter-spacing: 0.45em; }
}

/* トラック：細いレール */
.scroll-track {
  position: relative;
  width: 1px;
  height: 72px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 15%,
    rgba(255, 255, 255, 0.15) 85%,
    transparent 100%
  );
  border-radius: 2px;
  overflow: hidden;
}

.scroll-track-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(96, 165, 250, 0.3) 0%,
    transparent 30%,
    transparent 70%,
    rgba(96, 165, 250, 0.2) 100%
  );
  border-radius: 2px;
  opacity: 0.8;
}

/* カーテンロール：流れ落ちる光の玉 */
.scroll-roller {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 24px;
  margin-left: -2px;
  margin-top: -12px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(96, 165, 250, 0.6) 100%
  );
  border-radius: 2px;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.4),
    0 0 24px rgba(96, 165, 250, 0.3);
  animation: scrollRollerDown 2.2s cubic-bezier(0.33, 0, 0.2, 1) infinite;
}

@keyframes scrollRollerDown {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(72px);
    opacity: 0;
  }
}

/* トラック下部の余韻（光が消える演出） */
.scroll-track::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 8px;
  height: 16px;
  margin-left: -4px;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 70%
  );
  animation: scrollGlowPulse 2.2s cubic-bezier(0.33, 0, 0.2, 1) infinite;
  animation-delay: 1.9s;
}

@keyframes scrollGlowPulse {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

/* ヒーロー画像の切り替えスライド */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-v-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 10s ease-out;
  filter: brightness(0.8) contrast(1.1);
}

.hero-v-img.active {
  opacity: 1;
  transform: scale(1.1);
}

.hero-main-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 4px; /* ビジネス向けに少し角を鋭角に */
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s linear;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: none;
}

/* 強力なパララックス背景 */
.problem-section {
  position: relative;
  background-image: url('../images/problem-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* JSで制御するためscrollに変更 */
  padding: 120px 0 100px;
  overflow: hidden;
  will-change: background-position, background-size;
  transition: background-position 0.1s linear, background-size 0.3s ease-out;
}

.problem-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(13, 27, 62, 0.4) 100%);
  pointer-events: none;
  z-index: 2;
}

/* SP対応 */
@media (max-width: 820px) {
  /* Hero Section Consolidated */
  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero::after {
    display: none;
  }
  
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
    /* 幅は親の .container が制御するため指定不要 */
  }
  
  .hero-glass-panel {
    padding: 32px 24px;
    border-radius: 20px;
    margin: 0 auto;
    max-width: 540px;
    text-align: center;
    box-sizing: border-box;
    /* width: 100% を削除 - 親の幅に自然に収まる */
  }

  .hero-label {
    font-size: var(--font-size-xs);
    margin-bottom: var(--spacing-md);
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw + 1rem, 3rem);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
    text-align: center;
  }
  
  .hero-title .t-line {
    white-space: normal;
    display: inline;
  }
  
  .hero-lead {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xl);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-visual-wrap {
    width: 100%;
    height: auto;
    margin-top: 40px;
  }
  
  .hero-main-visual {
    transform: none;
    animation: none;
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero-bg-text-scrolling {
    font-size: 40vw;
  }

  .hero .cta-row {
    justify-content: center;
  }

  .pc-br {
    display: none;
  }
  
  /* Typography */
  h2 {
    font-size: var(--font-size-3xl);
  }
  
  h3 {
    font-size: var(--font-size-2xl);
  }
  
  .section-label {
    font-size: var(--font-size-xs);
    padding: 6px var(--spacing-sm);
  }
  
  /* Section Headers */
  .voice-header,
  .problem-header,
  .reason-header,
  .flow-header,
  .plan-header {
    padding: 30px 0;
  }
  
  .problem-section {
    padding: 60px 0;
    background-attachment: scroll !important;
  }
  
  /* モバイルではパララックスを軽減 */
  .hero-bg-media,
  .hero-bg-overlay-gradient,
  .hero-bg-text-scrolling,
  .hero-glass-panel,
  .hero-visual-wrap,
  .hero-main-visual,
  .problem-header,
  .empathy-grid {
    will-change: auto !important;
  }

  .company-header {
    padding: 25px 0 15px;
  }
  
  .voice-title,
  .problem-title,
  .reason-title,
  .flow-title,
  .plan-title,
  .company-title {
    font-size: var(--font-size-5xl);
  }
  
  /* CTA Section */
  .cta-divider {
    display: none;
  }
  
  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .cta-content {
    max-width: 100%;
    text-align: center;
  }

  .cta-button-wrapper {
    padding-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .cta-title {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-lg);
    text-align: center;
  }
  
  .cta-subtitle {
    font-size: var(--font-size-base);
  }
  
  .cta-slogan-text {
    font-size: var(--font-size-3xl);
  }
  
  .cta-slogan-wrapper {
    bottom: var(--spacing-md);
  }
  
  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    order: 1;
  }
  
  .footer-social {
    order: 2;
    justify-content: center;
  }
  
  .nav {
    display: none;
  }

  /* Plan Cards */
  .plan-detail-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .plan-card-featured::before {
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    padding: 3px 10px;
  }
  
  .plan-basic-section {
    padding: 20px;
  }
  
  .plan-content-section {
    padding: 20px;
  }
  
  .plan-details-toggle {
    top: 20px;
    right: 20px;
  }
  
  /* Service Section Mobile */
  .service-header-sticky {
    position: relative;
    top: 0;
    padding: 60px 0 20px;
  }
  
  .service-strip {
    min-height: auto;
    padding: 60px 0;
    background-attachment: scroll; /* Mobile parallax issues */
  }
  
  .strip-content h3 {
    font-size: 1.8rem;
  }
  
  /* FAQ Section */
  .faq-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .faq-sidebar {
    flex: auto;
    text-align: center;
  }
  
  .faq-title-large {
    font-size: var(--font-size-5xl);
  }
  
  .faq-sticky-content {
    position: static;
  }
  
  .faq-item .faq-content {
    padding-left: 10px;
  }
  
  .cta-slogan {
    gap: var(--spacing-xl);
    animation-duration: 20s;
  }
}

/* Empathy Section */
.empathy-section {
  background: linear-gradient(180deg, #f8faff 0%, #edf2f9 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.empathy-section::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 50%;
  background: #f1f6fc;
  transform: rotate(-3deg);
  z-index: 0;
}

.empathy-section .container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--font-size-label); /* 1.1remに増加 */
  font-weight: var(--font-weight-black); /* より太く */
  color: var(--blue);
  letter-spacing: 0.2em; /* より広く */
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.1);
  padding: 8px var(--spacing-md);
  border-radius: 4px;
}

.section-lead,
.faq-sub {
  max-width: 640px;
  margin: 0 auto var(--spacing-2xl);
  font-size: var(--font-size-lg);
  color: var(--muted);
}

.faq-sub {
  margin: 0 0 0 var(--spacing-xs);
}

.empathy-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  will-change: transform;
  transition: transform 0.1s linear;
}

@media (min-width: 768px) {
  .empathy-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Problem カード：スタッガードイン用の初期状態 */
.empathy-card.reveal-card {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.empathy-card.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.empathy-card.reveal-card:nth-child(1) { transition-delay: 0s; }
.empathy-card.reveal-card:nth-child(2) { transition-delay: 0.08s; }
.empathy-card.reveal-card:nth-child(3) { transition-delay: 0.16s; }
.empathy-card.reveal-card:nth-child(4) { transition-delay: 0.24s; }
.empathy-card.reveal-card:nth-child(5) { transition-delay: 0.32s; }
.empathy-card.reveal-card:nth-child(6) { transition-delay: 0.4s; }

/* Problem header/lead の reveal */
.problem-header.reveal-card,
.problem-lead.reveal-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.problem-header.reveal-card.is-visible,
.problem-lead.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.empathy-card {
  position: relative;
  background: #fdfdfd;
  border-radius: 14px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  padding: 60px 28px 70px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #e0e6ed;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  overflow: visible; /* ハンドルを見せるため */
}

/* スーツケースのハンドル */
.empathy-card::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 25px;
  background: #334155;
  border-radius: 12px 12px 0 0;
  box-shadow: 
    inset 0 -5px 10px rgba(0,0,0,0.4),
    0 5px 15px rgba(0,0,0,0.1);
  z-index: 1;
  transition: all 0.3s ease;
}

/* スーツケースのディテール（ベルトと角） */
.empathy-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 14px;
  pointer-events: none;
  background: 
    /* 縦のベルト2本 */
    linear-gradient(90deg, 
      transparent 18%, 
      rgba(44, 62, 80, 0.08) 18%, rgba(44, 62, 80, 0.08) 22%, 
      transparent 22%, 
      transparent 78%, 
      rgba(44, 62, 80, 0.08) 78%, rgba(44, 62, 80, 0.08) 82%, 
      transparent 82%
    ),
    /* 角の補強（四隅） */
    radial-gradient(circle at 14px 14px, #cbd5e1 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 14px) 14px, #cbd5e1 4px, transparent 5px),
    radial-gradient(circle at 14px calc(100% - 14px), #cbd5e1 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #cbd5e1 4px, transparent 5px);
  z-index: 0;
}

.empathy-card:hover {
  transform: translateY(-8px) perspective(1000px) rotateY(-2deg) rotateX(1deg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-color: var(--blue);
}

/* カードホバー時は transition-delay をリセット（即座に反応） */
.empathy-card.reveal-card.is-visible:hover {
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s ease, border-color 0.3s ease;
  transition-delay: 0s;
}

/* Problem カード シマー効果（光の反射） */
.empathy-card .card-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-25deg);
  pointer-events: none;
  opacity: 0;
  transition: left 0.6s ease, opacity 0.3s ease;
  z-index: 2;
  border-radius: 14px;
  overflow: hidden;
}

.empathy-card:hover .card-shimmer {
  left: 150%;
  opacity: 1;
}

.empathy-card:hover::before {
  background: var(--navy);
  top: -18px; /* 持ち上げるアニメーション */
}

.card-ribbon {
  position: absolute;
  top: 20px;
  right: 25px;
  left: auto;
  width: 28px;
  height: 45px;
  background: var(--blue);
  z-index: 2;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 80%, 0% 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: none;
}

.card-icon {
  margin: 10px auto 30px;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #1e40af 100%);
  border: 4px solid #fff;
  border-radius: 20px; /* 少し四角くしてアタッシュケース風に */
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
  padding: 18px;
  position: relative;
  z-index: 1;
}

.quote-text {
  position: relative;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 15px 0;
  z-index: 1;
  padding: 0 15px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.card-footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f1f5f9;
  color: var(--navy);
  padding: 18px 20px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: all 0.3s ease;
  border-top: 2px solid #e2e8f0;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.empathy-card:hover .card-footer-bar {
  background: var(--blue);
  color: #fff;
  border-top-color: var(--blue);
}

.card-footer-bar::after {
  content: "→";
  margin-left: 10px;
  font-weight: 400;
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.empathy-card:hover .card-footer-bar::after {
  transform: translateX(3px);
}

/* Reason Section */
.reason-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  padding: 40px 0;
}

.reason-list {
  flex: 1;
  max-width: 500px;
  padding-bottom: 100px;
}

.reason-item {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.reason-num {
  font-family: var(--font-en);
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
}

.reason-item h3 {
  background: linear-gradient(90deg, var(--navy), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--spacing-lg);
}

.reason-item p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

.reason-visual {
  flex: 1;
  position: relative;
}

.reason-image {
  position: sticky;
  top: 120px;
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 20px 50px rgba(13, 59, 138, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reason-img-1 {
  background-image: url('../images/reason-1.png');
  background-size: cover;
  background-position: center;
}

.reason-img-2 {
  background-image: url('../images/reason-2.png');
  background-size: cover;
  background-position: center;
}

.reason-img-3 {
  background-image: url('../images/reason-3.png');
  background-size: cover;
  background-position: center;
}

@media (max-width: 900px) {
  .reason-wrapper {
    flex-direction: column-reverse;
  }
  
  .reason-image {
    position: static;
    height: 300px;
    margin-bottom: 40px;
  }
  
  .reason-item {
    min-height: auto;
    padding: 20px 0 60px;
  }
  
  .reason-list {
    max-width: 100%;
    padding-bottom: 0;
  }
}

.cards {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.pricing-cards {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.empathy-section .empathy-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 767px) {
  .empathy-section .empathy-grid.grid-3 {
    grid-template-columns: 1fr !important;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.card.testimonial {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: var(--spacing-lg) var(--spacing-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.voice-section .card.testimonial {
  background: rgba(255,255,255,0.95);
}

.card.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.testimonial .meta {
  font-weight: var(--font-weight-black);
  color: var(--blue);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-sm);
  font-family: var(--font-heading);
}

.voice-section .testimonial p {
  color: var(--navy);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

/* Services */
/* Steps moved below */

/* Steps */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.step-card h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--navy);
  margin: 0 0 10px 0;
}

.flow-steps .step-card h3 {
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--navy);
  margin: 0 0 8px 0;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.step-card p {
  margin: 0;
  color: rgba(31, 41, 55, 0.8);
  line-height: 1.6;
}

.flow-steps .step-card p {
  margin: 0;
  color: rgba(31, 41, 55, 0.75);
  line-height: 1.8;
  font-size: 0.9rem;
}

.step-num {
  display: inline-block;
  padding: 6px 10px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* FAQ Section (Split Layout) */
.faq-section {
  background: #fff;
  padding: 100px 0;
}

.faq-container {
  display: flex;
  gap: 60px;
  position: relative;
  /* align-items: stretch (default) で高さを揃える */
}

.faq-sidebar {
  flex: 0 0 300px;
  position: relative;
}

.faq-sticky-content {
  position: sticky;
  top: 100px;
  height: fit-content;
  padding-top: 0;
  margin-top: -20px;
}

.faq-sidebar .section-label {
  margin-bottom: var(--spacing-md);
}

.faq-title-large {
  color: var(--blue);
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
}

.faq-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0; /* 境界線を重ねるためgapなし */
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  transition: background 0.3s ease;
}

.faq-item:first-child {
  border-top: 1px solid #e5e7eb;
}

.faq-item[open] {
  background: #f8fafc;
}

.faq-item summary {
  display: flex;
  align-items: center;
  padding: 24px 10px;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.3s ease;
}

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

.faq-q-num {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: var(--blue);
  font-size: 1.2rem;
  width: 50px;
  flex-shrink: 0;
}

.faq-q-text {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  flex-grow: 1;
  padding-right: 20px;
  line-height: 1.5;
}

/* プラスアイコン */
.faq-toggle-icon {
  width: 32px;
  height: 32px;
  background: var(--navy);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 2px;
}

.faq-toggle-icon::before {
  width: 14px;
  height: 2px;
}

.faq-toggle-icon::after {
  width: 2px;
  height: 14px;
  transition: height 0.3s ease;
}

.faq-item[open] .faq-toggle-icon {
  transform: rotate(135deg); /* 回転して×にする */
  background: var(--blue);
}

.faq-item .faq-content {
  padding: 0 10px 24px 60px; /* Q番号分インデント */
  color: var(--muted);
  line-height: 1.8;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SP対応 */
/* Consolidated into main 820px media query */

/* Pricing */
.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06), 0 1px 4px rgba(17, 24, 39, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  height: 100%;
  position: relative;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 197, 253, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.plan-card:hover {
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(37, 99, 235, 0.08);
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.2);
}

.plan-card:hover::before {
  opacity: 1;
}

.plan-card.plan-expanded {
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.15), 0 6px 16px rgba(37, 99, 235, 0.1);
}

.plan-card-featured {
  border: 2px solid var(--blue);
  position: relative;
}

.plan-card-featured::before {
  display: none;
}

.plan-basic-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 20px;
  position: relative;
  background: linear-gradient(135deg, #fafbff 0%, #f8faff 100%);
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}

.plan-basic-info {
  flex: 1;
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
}

.plan-name::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 36px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 2px;
}

.price {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--blue);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.price span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: var(--font-weight-normal);
  margin-top: 4px;
  letter-spacing: 0;
}

.plan-toggle-icon-wrapper {
  position: absolute;
  top: 24px;
  right: 24px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
}

.plan-details-toggle {
  position: relative;
  margin-top: 0;
}

.plan-toggle-summary {
  display: none;
  list-style: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.plan-toggle-summary::-webkit-details-marker {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.plan-toggle-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  cursor: pointer;
}

.plan-toggle-icon:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.plan-toggle-icon::before,
.plan-toggle-icon::after {
  content: "";
  position: absolute;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.plan-toggle-icon::before {
  width: 16px;
  height: 2.5px;
}

.plan-toggle-icon::after {
  width: 2.5px;
  height: 16px;
}

.plan-card.plan-expanded .plan-toggle-icon {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.plan-card.plan-expanded .plan-toggle-icon::after {
  height: 0;
}

.plan-content-section {
  padding: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 240px;
}

.plan-expanded-content {
  padding: 20px 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  animation: slideDown 0.4s ease-out;
  border-radius: 0 0 16px 16px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  flex: 1 1 auto;
}

.plan-features li {
  padding: 10px 0;
  color: var(--navy);
  line-height: 1.6;
  position: relative;
  padding-left: 32px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.plan-features li:hover {
  padding-left: 36px;
  color: var(--blue);
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.plan-features li::after {
  content: "✓";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: var(--font-weight-bold);
  font-size: 0.75rem;
  z-index: 1;
}

.plan-features li:hover::before {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.plan-details-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-detail-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.plan-detail-item:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
  transform: translateX(4px);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 1);
}

.plan-detail-item dt {
  font-weight: var(--font-weight-bold);
  color: var(--blue);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 10px;
}

.plan-detail-item dt::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 2px;
}

.plan-detail-item dd {
  margin: 0;
  color: var(--navy);
  font-size: 0.85rem;
  line-height: 1.6;
  font-weight: var(--font-weight-medium);
}

.plan-action {
  padding-top: 10px;
  border-top: none;
  flex-shrink: 0;
}

.note {
  margin: 32px 0 0 0;
  padding: 20px;
  background: var(--gray-soft);
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--font-size-sm);
  text-align: center;
  line-height: 1.6;
}

/* CTA Section (Dark Blue with Background Image) */
.cta {
  background-image: url('../images/cta-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: visible;
  color: #fff;
  margin-bottom: 0;
  /* padding is set in .section.cta */
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(13, 27, 62, 0.96) 0%, rgba(26, 47, 92, 0.90) 100%);
  z-index: 0;
  pointer-events: none;
}

.cta-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(37,99,235,0.1) 0%, transparent 50%),
    linear-gradient(-45deg, rgba(37,99,235,0.08) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.cta-network-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
}

.cta-divider {
  display: none;
}

.cta-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-content {
  width: 100%;
  max-width: 100%;
}

.cta-button-wrapper {
  display: flex;
  align-items: flex-start;
  padding-top: 32px;
}

.cta-label {
  font-family: var(--font-jp);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
}

.cta-title {
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-en);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
}


.cta-slogan-wrapper {
  position: absolute;
  bottom: var(--spacing-md);
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}

.cta-slogan {
  display: inline-flex;
  gap: var(--spacing-3xl);
  animation: ticker 25s linear infinite;
  will-change: transform;
}

.cta-slogan-text {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-black);
  color: rgba(37, 99, 235, 0.3);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-33.333% - var(--spacing-3xl) / 1.5));
  }
}

/* Consolidated into main 820px media query */

.voice-section {
  background: #0d1b3e;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  color: #fff;
}

.voice-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 40%),
    linear-gradient(-45deg, rgba(37,99,235,0.06) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.voice-container {
  position: relative;
  z-index: 3;
}

.voice-header {
  position: relative;
  text-align: center;
  margin-bottom: 80px;
}

.voice-label {
  font-family: var(--font-jp);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
  text-transform: none;
}

.voice-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: #fff;
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  margin: 0;
}

.voice-ticker-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.voice-ticker {
  display: flex;
  white-space: nowrap;
}

.voice-ticker-track {
  display: flex;
  gap: 32px;
  padding: 0 16px;
}

.voice-item {
  flex: 0 0 auto;
  width: 500px;
  height: 280px; /* 固定高さで統一 */
  padding: 48px;
  /* 透明感と光沢感を極限まで高める */
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.01) 40%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(8px); /* ぼかしを弱めて透明度を強調 */
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.6); /* エッジを鋭く光らせる */
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px; /* 余白を縮小 */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3); /* ガラスの厚み表現 */
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* 常時表示の光沢（上部の反射） */
.voice-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  pointer-events: none;
}

/* 光の反射（シマー）効果 - ホバー時 */
.voice-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: none;
  z-index: 1;
}

.voice-item:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.voice-item:hover::before {
  left: 200%;
  transition: left 0.8s ease;
}

.voice-meta {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  background: rgba(37, 99, 235, 0.5);
  padding: 8px 20px;
  border-radius: 50px;
  align-self: flex-start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.voice-item p {
  margin: 0;
  margin-top: 4px; /* メタ情報との間隔を最小限に */
  font-size: 1.15rem; /* サイズアップ */
  line-height: 1.8;
  color: #fff;
  white-space: normal;
  font-feature-settings: "palt";
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Animations */
.ticker-ltr .voice-ticker-track {
  animation: ticker-ltr 40s linear infinite;
}

.ticker-rtl .voice-ticker-track {
  animation: ticker-rtl 40s linear infinite;
}

@keyframes ticker-ltr {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 16px)); }
}

@keyframes ticker-rtl {
  0% { transform: translateX(calc(-50% - 16px)); }
  100% { transform: translateX(0); }
}

@media (max-width: 820px) {
  .voice-section {
    padding: 80px 0;
  }
  
  .voice-item {
    width: 320px;
    padding: 24px;
  }
  
  .voice-item p {
    font-size: 0.95rem;
  }
}

.problem-section {
  position: relative;
  background-image: url('../images/problem-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
  overflow: hidden;
}

.problem-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 27, 62, 0.92) 0%, rgba(26, 47, 92, 0.88) 50%, rgba(13, 27, 62, 0.92) 100%);
  z-index: 1;
}

.problem-section .container {
  position: relative;
  z-index: 2;
}

.problem-header {
  position: relative;
  text-align: center;
  padding: 20px 0;
  margin-bottom: var(--spacing-lg);
  will-change: transform;
  transition: transform 0.1s linear;
}

.problem-label {
  font-family: var(--font-jp);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
  text-transform: none;
}

.problem-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  margin: 0;
}

.problem-section .section-lead {
  color: rgba(255, 255, 255, 0.9);
}

.reason-header {
  position: relative;
  text-align: center;
  padding: 60px 0;
  margin-bottom: var(--spacing-2xl);
}

.reason-label {
  font-family: var(--font-jp);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(31, 41, 55, 0.7);
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
  text-transform: none;
}

.reason-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: var(--blue);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  margin: 0;
}

/* Service Section (Dynamic Strips) */
/* Custom Cursor for Service Section */
/* 究極のカスタムカーソルデザイン */
.service-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 70px; /* サイズを縮小 100px -> 70px */
  height: 90px; /* サイズを縮小 125px -> 90px */
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0) scale(0.6);
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
              visibility 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
              transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}

.service-cursor.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.cursor-doc {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 4px; /* 小さめサイズに合わせて調整 */
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(37, 99, 235, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px; /* 小さめサイズに合わせて調整 */
  position: relative;
  overflow: hidden;
  /* 立体感を出すための斜め配置 */
  transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) rotateZ(-5deg);
  transform-style: preserve-3d;
}

/* 書類表面を流れる光の反射 - アニメーションを洗練 */
.cursor-doc::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 55%
  );
  animation: cursorShine 6s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
  pointer-events: none;
}

@keyframes cursorShine {
  0% { transform: translate(-30%, -30%); }
  20% { transform: translate(30%, 30%); }
  100% { transform: translate(30%, 30%); }
}

/* 書類のような角の折れ - 立体感を強化 */
.cursor-doc::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px; /* サイズに合わせて縮小 28px -> 20px */
  height: 20px; /* サイズに合わせて縮小 28px -> 20px */
  background: linear-gradient(225deg, rgba(13, 27, 62, 0.1) 50%, #fff 50%);
  box-shadow: -2px 2px 4px rgba(0,0,0,0.1);
  border-bottom-left-radius: 3px;
  z-index: 5;
}

.cursor-lines {
  position: absolute;
  top: 25px; /* サイズに合わせて調整 40px -> 25px */
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 2px;
  box-shadow: 
    0 6px 0 rgba(37, 99, 235, 0.1), 
    0 12px 0 rgba(37, 99, 235, 0.1), 
    0 18px 0 rgba(37, 99, 235, 0.3); /* アクセント */
}

.cursor-text {
  font-family: var(--font-en);
  font-size: 0.55rem; /* サイズに合わせて縮小 0.7rem -> 0.55rem */
  font-weight: 900;
  color: var(--blue);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.service-section {
  position: relative;
  overflow: hidden;
  background: #0d1b3e;
}

.service-header-sticky {
  position: sticky;
  top: 80px;
  z-index: 10;
  text-align: center;
  padding: 80px 0 40px;
  pointer-events: none;
}

.service-strip {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.service-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(13, 27, 62, 0.94) 0%, rgba(13, 27, 62, 0.4) 100%);
  z-index: 1;
}

.service-strip.recruit { background-image: url('../images/service-1.png'); }
.service-strip.evaluate { background-image: url('../images/service-2.png'); }
.service-strip.growth { background-image: url('../images/service-3.png'); }

.strip-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
  padding: 60px 0;
}

/* 反転レイアウト (02 評価テンプレート用) */
.service-strip.reverse .container {
  display: flex;
  justify-content: flex-end;
}

.service-strip.reverse .strip-content {
  text-align: left; /* テキスト自体は左揃えを維持 */
}

/* 背景グラデーションも反転させて右側の視認性を確保 */
.service-strip.reverse::after {
  background: linear-gradient(-90deg, rgba(13, 27, 62, 0.94) 0%, rgba(13, 27, 62, 0.4) 100%);
}

.strip-num {
  font-family: var(--font-en);
  font-size: 6rem; /* インパクトのあるサイズに変更 */
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4); /* アウトライン化 */
  display: block;
  margin-bottom: -30px; /* タイトルに重ねてデザインの一部に */
  letter-spacing: 0.05em;
  opacity: 0.6;
  line-height: 1;
  position: relative;
  z-index: 0;
}

.strip-content h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding-left: 0;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-list li {
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 1;
  background: none;
  padding: 0;
  border-radius: 0;
  border: none;
  backdrop-filter: none;
  transition: none;
}

.service-list li:hover {
  background: none;
  border-color: transparent;
  transform: none;
}

.service-list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.service-label {
  font-family: var(--font-jp);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
  text-transform: none;
}

.service-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: #fff;
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  margin: 0;
}

.flow-header {
  position: relative;
  text-align: center;
  padding: 60px 0;
  margin-bottom: var(--spacing-2xl);
}

.flow-label {
  font-family: var(--font-jp);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(31, 41, 55, 0.7);
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
  text-transform: none;
}

.flow-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: var(--blue);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  margin: 0;
}

.flow-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.flow-images {
  display: flex;
  flex-direction: column;
  gap: 60px;
  justify-content: space-between;
  height: 100%;
  min-height: 1400px;
  padding-top: 40px;
}

.flow-image-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-image-item img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-image-item:hover img {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
}

.flow-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 0 30px;
  height: 100%;
  min-height: 1400px;
}

.flow-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  width: 4px;
  height: 100%;
  background: var(--blue);
  z-index: 1;
  border-radius: 2px;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-line.animate-line::before {
  transform: translateX(-50%) scaleY(1);
}

.flow-line-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding-top: 0;
}

.flow-step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 12px;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
  opacity: 0;
  font-family: var(--font-en);
  line-height: 1;
  margin: 0;
}


.flow-step-number .step-label {
  font-size: 0.65rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1px;
  margin-top: 0;
}

.flow-step-number .step-num {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.flow-step-number:first-child {
  opacity: 1;
}

.flow-step-number.visible {
  opacity: 1;
}

.flow-animated-arrow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 2;
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.1s linear;
  pointer-events: none;
  will-change: transform;
}

.flow-animated-arrow svg {
  display: block;
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.5));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-animated-arrow.active {
  opacity: 1;
}

.flow-animated-arrow.active svg {
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(4px);
    opacity: 0.8;
  }
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding-top: 40px;
  max-width: 480px;
  width: 100%;
}

.flow-steps .step-card {
  margin: 0;
  padding: 28px 32px 28px 24px;
  transition: all 0.3s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}

.flow-steps .step-card::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-light) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flow-steps .step-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  border-left-color: var(--blue-light);
}

.flow-steps .step-card:hover::before {
  opacity: 1;
}

.plan-header {
  position: relative;
  text-align: center;
  padding: 60px 0;
  margin-bottom: var(--spacing-2xl);
}

.plan-label {
  font-family: var(--font-jp);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(31, 41, 55, 0.7);
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
  text-transform: none;
}

.plan-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: var(--blue);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  margin: 0;
}

/* Company Section */
.company-header {
  position: relative;
  text-align: center;
  padding: 30px 0 20px;
  margin-bottom: var(--spacing-lg);
  z-index: 1;
}

.company-label {
  font-family: var(--font-jp);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
  text-transform: none;
}

.company-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: #fff;
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  margin: 0;
}

/* SP対応 */
/* Company Section (Blue Gradient Theme) */
.company-section {
  background: linear-gradient(180deg, rgba(26, 47, 92, 0.90) 0%, rgba(13, 27, 62, 0.98) 100%);
  position: relative;
  overflow: visible; 
  color: #fff;
}

.company-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 40%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.08), transparent 40%);
  z-index: 0;
  pointer-events: none;
}

.company-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.company-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px 40px 30px;
  position: relative;
  z-index: 1;
}

.company-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.company-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  gap: 15px;
}

.company-item dt {
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.company-item dd {
  margin: 0;
  color: #fff;
  font-weight: 400;
  line-height: 1.8;
  font-size: 0.95rem;
}

.company-copyright {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-align: left;
}

.company-map {
  flex: 0 0 450px;
  width: 450px;
  height: 450px;
  background: #1f2937;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.company-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .company-wrapper {
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
  }

  .company-info {
    padding: 25px 20px 25px;
  }

  .company-map {
    flex: 0 0 auto;
    width: 100%;
    height: 350px;
    max-width: 100%;
  }
  
  .company-item {
    grid-template-columns: 100px 1fr;
    gap: 10px;
    padding: 8px 0;
  }

  .company-item dt {
    font-size: 0.85rem;
  }

  .company-item dd {
    font-size: 0.9rem;
  }
}

.site-footer {
  background: #ffffff;
  color: #1f2937;
  padding: 32px 0;
  margin-top: 0;
  margin-bottom: 100px; /* フローティングバーの高さ分を確保 */
  position: relative;
  z-index: 10;
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

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

.footer-logo-img {
  height: 50px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--font-en);
  flex: 1;
}

.footer-links a {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 4px 12px;
}

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

.footer-separator {
  color: #d1d5db;
  font-size: 0.85rem;
  padding: 0 4px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* 820px styles consolidated above */

@media (max-width: 640px) {
  .section {
    padding: var(--spacing-2xl) 0;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .card,
  .step-card,
  details {
    padding: 16px;
  }

  .flow-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 0;
  }

  .flow-images {
    display: none;
  }

  .flow-line {
    display: none;
  }

  .flow-steps {
    order: 1;
    gap: 20px;
    max-width: 100%;
    padding: 0 10px 0 20px;
    position: relative;
  }

  .flow-steps::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(37, 99, 235, 0.15);
    z-index: 0;
  }

  .flow-steps .step-card {
    padding: 20px 20px 20px 55px;
    min-height: auto;
    border-left: none;
    background: var(--white);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .flow-steps .step-card::after {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 20px;
    width: 26px;
    height: 26px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: bold;
    transform: translateX(-50%);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    z-index: 2;
  }

  .flow-steps .step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .flow-steps .step-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
  }

  .flow-steps .step-card:hover {
    transform: none;
  }

  .flow-steps .step-card::before {
    display: none;
  }

  .footer-cta {
    justify-content: flex-start;
  }
}

/* ============================================
   Contact Section (お問い合わせ)
   ============================================ */
.contact-section {
  background-image: url('../images/cta-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: visible;
  color: #fff;
  padding: 120px 0 100px;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(13, 27, 62, 0.96) 0%, rgba(26, 47, 92, 0.90) 100%);
  z-index: 0;
  pointer-events: none;
}

.contact-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    linear-gradient(-45deg, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.contact-network-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-label {
  font-family: var(--font-jp);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
}

.contact-title {
  font-family: var(--font-en);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
}

.contact-lead {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-xl);
}

.contact-benefits {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  flex-shrink: 0;
}

.benefit-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--white);
}

.benefit-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

.contact-form-panel {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.contact-form {
  width: 100%;
}

.contact-form .form-group {
  margin-bottom: 20px;
  width: 100%;
}

.contact-form .form-group--checkbox {
  margin-bottom: 24px;
}

.contact-form .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.contact-form .required {
  color: #f87171;
  margin-left: 4px;
}

.contact-form .form-input,
.contact-form .form-textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-jp);
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form .form-input::placeholder,
.contact-form .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  background: rgba(255, 255, 255, 0.08);
}

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

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-radio input {
  display: none;
}

.radio-mark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: relative;
}

.form-radio input:checked + .radio-mark {
  border-color: var(--blue-light);
}

.form-radio input:checked + .radio-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--blue-light);
  border-radius: 50%;
}

.radio-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.form-checkbox {
  display: flex;
  gap: 10px;
  cursor: pointer;
  align-items: flex-start;
}

.form-checkbox input {
  display: none;
}

.checkbox-mark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-checkbox input:checked + .checkbox-mark {
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.form-checkbox input:checked + .checkbox-mark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
}

.form-checkbox .checkbox-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.form-checkbox .checkbox-label a {
  color: var(--blue-light);
  text-decoration: underline;
}

.form-checkbox .checkbox-label a:hover {
  color: var(--white);
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.contact-submit-btn {
  width: 100%;
  justify-content: center;
}

.contact-slogan-wrapper {
  position: absolute;
  bottom: var(--spacing-md);
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}

.contact-slogan {
  display: inline-flex;
  gap: var(--spacing-3xl);
  animation: ticker 25s linear infinite;
  will-change: transform;
}

.contact-slogan-text {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-black);
  color: rgba(37, 99, 235, 0.3);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Contact Section Responsive */
@media (max-width: 992px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info-panel {
    text-align: center;
    align-items: center;
  }

  .contact-lead {
    text-align: center;
  }

  .contact-benefits {
    align-items: center;
  }

  .benefit-item {
    max-width: 400px;
  }
}

@media (max-width: 820px) {
  .contact-section {
    padding: 80px 0 80px;
  }

  .contact-split {
    padding: 0 16px;
  }

  .contact-form-panel {
    padding: 32px 24px;
  }

  .form-row--half {
    grid-template-columns: 1fr;
  }
}
