@charset "UTF-8";

/* ========================================
   Design System & Variables
   ======================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
  /* ヘッダーの高さ分のスクロール位置を調整 */
}

:root {
  /* Brand Colors */
  --color-main: #005A9C;
  /* Trust Blue */
  --color-main-dark: #004070;
  --color-accent: #F39C12;
  /* Yuhigaoka Orange */
  --color-cta: #2ecc71;
  /* Vibrant Green from LP_3 */
  --color-cta-dark: #27ae60;
  --color-text-primary: #333333;
  --color-text-secondary: #666666;
  --color-bg-light: #F9F9F9;
  --color-bg-secondary: #f0f7ff;
  --color-white: #ffffff;

  /* Supreme Colors */
  --primary-color: #004080;
  /* Trust Blue */
  --accent-color: #d4af37;
  /* Supreme Gold */
  --text-color: #333;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --warning: #e74c3c;
  --success: #27ae60;

  /* Shadow & Transitions */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition-base: all 0.3s ease;

  /* Typography */
  --font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-rounded: "M PLUS Rounded 1c", "Hiragino Maru Gothic Pro", "Yu Gothic", sans-serif;

  /* Spacing */
  --container-width: 1100px;
  --section-padding: 100px 0;
  --section-padding-sp: 60px 0;

  /* Executive Effects */
  --glow-accent: 0 0 20px rgba(243, 156, 18, 0.3);
  --glass-surface: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);

  --bg-white: #ffffff;
}

.nowrap-phrase {
  display: inline-block;
}

/* Executive Micro-interactions */
.btn-primary,
.header-cta-btn,
.btn-secondary,
.form-submit,
.btn-diag {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.header-cta-btn::after,
.btn-secondary::after,
.form-submit::after,
.btn-diag::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 45%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 55%);
  transform: rotate(-45deg);
  transition: transform 0.6s ease, opacity 0.6s ease, background-color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, color 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover::after,
.header-cta-btn:hover::after,
.btn-secondary:hover::after,
.form-submit:hover::after,
.btn-diag:hover::after {
  left: 100%;
  top: 100%;
}

.executive-card {
  background: var(--color-white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.executive-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

/* -----------------------------------------
   Step-type Diagnosis Tool Styles
   ----------------------------------------- */
.diag-section {
  padding: 100px 0;
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

.diag-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 30px;
  padding: 50px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.diag-progress-container {
  margin-bottom: 40px;
}

.diag-progress-bar {
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.diag-progress-fill {
  height: 100%;
  background: var(--color-main);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.diag-step {
  display: none;
  animation: fadeIn 0.5s ease both;
}

.diag-step.is-active {
  display: block;
}

.diag-question {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-main);
  margin-bottom: 30px;
  text-align: center;
}

.diag-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.diag-option {
  padding: 25px;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
  background: #F8FAFC;
}

.diag-option:hover {
  border-color: var(--color-accent);
  background: rgba(243, 156, 18, 0.05);
  transform: scale(1.02);
}

.diag-option i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.diag-option span {
  font-weight: 700;
  font-size: 1.1rem;
}

.diag-result {
  text-align: center;
}

.diag-result-title {
  font-weight: 800;
  font-size: 2rem;
  color: var(--color-main);
  margin-bottom: 20px;
}

.diag-result-desc {
  font-size: 1.1rem;
  margin-bottom: 35px;
  line-height: 1.8;
}

/* [OLD FLOATING CTA BLOCK REMOVED AND CONSOLIDATED AT END] */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .diag-options {
    grid-template-columns: 1fr;
  }

  .diag-question {
    font-size: 1.4rem;
  }

    .floating-cta {
        display: none !important;
    }
}

.executive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--color-accent);
  transition: height 0.4s ease;
}

.executive-card:hover::before {
  height: 100%;
}

/* Counter Animation Styles */
.stat-number {
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--color-main);
  line-height: 1;
  display: block;
}

.stat-unit {
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 4px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Base Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-primary);
  line-height: 1.6;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: var(--color-main);
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

ul,
ol {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-sp);
  }
}

h1,
h2,
h3 {
  font-family: var(--font-rounded);
  line-height: 1.4;
}

.section-title {
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-main);
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 60px;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }
}

/* ========================================
   Header & Navigation (Floating Glassmorphism)
   ======================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

header.is-scrolled,
body.is-subpage header {
  top: 20px;
}

.header-container {
  pointer-events: auto;
  transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110px;
  padding: 10px 40px;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-radius: 0;
  box-shadow: none;
  border: 1px solid transparent;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.is-scrolled .header-inner,
body.is-subpage header .header-inner {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  min-height: 90px;
}

body.is-subpage main {
  padding-top: 140px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(0, 90, 156, 0.1);
}

.header-bottom {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 5px;
}

/* Logo (Fixed for consistency) */
.header-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-main);
  text-decoration: none;
}

.logo-img {
  height: 45px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  display: none;
  /* 画像内に事務所名があるため、テキストを非表示に */
}

.logo-text .office-name {
  font-size: 0.8rem;
  color: var(--color-main);
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* PC Navigation */
.gnav.pc-only {
  display: flex;
}

.gnav ul {
  display: flex;
  gap: 15px;
}

.gnav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--color-text-primary);
  transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gnav-link span {
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
}

.gnav-link small {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-main);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.gnav-link:hover {
  background: rgba(0, 90, 156, 0.05);
  transform: translateY(-2px);
  color: var(--color-main);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.1;
  text-align: right;
}

.header-tel-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.header-tel-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-main);
  letter-spacing: 0.02em;
}

.header-cta-btn {
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-cta-dark) 100%);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
  white-space: nowrap;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
  filter: brightness(1.05);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
  background: none;
  border: none;
  pointer-events: auto;
  /* 確実にクリック可能にする */
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-main);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  border-radius: 2px;
}

.hamburger span:nth-child(1) {
  top: 12px;
}

.hamburger span:nth-child(2) {
  top: 20px;
}

.hamburger span:nth-child(3) {
  top: 28px;
}

.hamburger.is-active span:nth-child(1) {
  transform: translate(-50%, 8px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translate(-50%, -8px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.nav-sp {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1050;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 100px 20px 80px;
  transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  pointer-events: none;
  /* 髱櫁｡ｨ遉ｺ譎・蜈･蜉帙ｒ辟｡蜉ｹ蛹・*/
}

.nav-sp.is-active {
  left: 0;
  pointer-events: auto;
  /* 陦ｨ遉ｺ譎・蜈･蜉帙ｒ譛牙柑蛹・*/
}

.nav-sp .gnav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  text-align: left;
}

.nav-sp .gnav-link {
  font-size: 1.3rem;
  padding: 10px 10px 10px 0;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .header-inner {
    padding: 10px 20px;
  }

  .gnav ul {
    gap: 5px;
  }
}

@media (max-width: 768px) {

  header.is-scrolled,
  body.is-subpage header {
    top: 10px;
  }

  .header-inner {
    min-height: 75px;
    padding: 5px 20px;
    position: relative;
    z-index: 1200;
  }

  header.is-scrolled .header-inner,
  body.is-subpage header .header-inner {
    min-height: 65px;
    border-radius: 30px;
  }

  .header-bottom {
    display: none;
  }

  .header-logo .logo-main {
    font-size: 1.1rem;
  }

  .logo-img {
    height: 35px;
  }

  .header-right {
    gap: 15px;
  }

  .header-contact {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 18px 50px;
  border-radius: 100px;
  font-weight: 900;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  border: none;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-cta-dark) 100%);
  color: var(--color-white) !important;
  box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(46, 204, 113, 0.5);
  filter: brightness(1.08);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-dark) 100%);
  color: var(--color-white) !important;
  box-shadow: 0 10px 25px rgba(0, 90, 156, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 90, 156, 0.4);
  filter: brightness(1.08);
}

/* Hero Dots (Navigation) */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}





/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 120px;
  overflow: hidden;
  background: #f0f0f0;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  padding-top: 120px;
  box-sizing: border-box;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-background {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.slide-background video,
.slide-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.hero-content {
  max-width: 680px;
  margin-left: 8%;
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.hero-slide.is-active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-title,
.hero-content h1 {
  font-family: var(--font-rounded);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--color-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
}

.hero-description {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .hero-content {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
    border-radius: 0;
  }

  .hero-title,
  .hero-content h1 {
    font-size: 1.8rem;
  }
}

/* ========================================
   Pain Points Section
   ======================================== */
/* [NEW] Warning Section */
.warning-section {
  padding: 60px 0;
}

.warning-box {
  background: #fff;
  border: 3px solid var(--warning);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  box-shadow: 0 10px 30px rgba(231, 76, 60, 0.15);
  max-width: 900px;
  margin: 0 auto;
}

.warning-icon-wrapper {
  background: #fff0f0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.warning-icon {
  font-size: 3rem;
}

.warning-content {
  flex: 1;
}

.warning-title {
  color: var(--warning);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.3;
}

.warning-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.marker-red {
  background: linear-gradient(transparent 60%, rgba(231, 76, 60, 0.3) 0%);
  font-weight: bold;
}

@media (max-width: 768px) {
  .warning-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }

  .warning-title {
    font-size: 1.5rem;
  }

  .warning-text {
    font-size: 1rem;
    text-align: left;
  }
}

.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.pain-point-item {
  background: var(--color-white);
  padding: 40px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s;
  border: 1px solid #eee;
}

.pain-point-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.pain-point-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
}



@media (max-width: 1024px) {
  .pain-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pain-points-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Solution Section
   ======================================== */
.solution {
  background: var(--color-bg-secondary);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.solution-item {
  background: var(--color-white);
  padding: 50px 30px;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s;
}

.solution-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.solution-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
}

.solution-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--color-main);
}

.solution-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .solution-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Timeline & Conditions
   ======================================== */
.timeline {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-diagram {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.condition-item {
  background: #fff;
  padding: 40px 25px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.condition-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.condition-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--color-main);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .conditions-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Flow Section
   ======================================== */
.flow-container {
  max-width: 850px;
  margin: 0 auto;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  background: #fff;
  padding: 35px;
  border-radius: 25px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.flow-item::after {
  content: "\2193";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #ddd;
  font-size: 1.5rem;
}

.flow-item:last-child {
  margin-bottom: 0;
}

.flow-item:last-child::after {
  display: none;
}

.flow-number {
  font-weight: bold;
  color: var(--color-accent);
  font-size: 0.9rem;
  position: absolute;
  top: 15px;
  left: 20px;
}

.flow-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
}

.flow-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--color-main);
}

@media (max-width: 600px) {
  .flow-item {
    flex-direction: column;
    text-align: center;
    padding-top: 50px;
  }

  .flow-icon {
    width: 80px;
    height: 80px;
  }
}

/* ========================================
   Cost Cards
   ======================================== */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.cost-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #eee;
  transition: transform 0.3s;
}

.cost-card:hover {
  transform: translateY(-5px);
}

.cost-card-header {
  background: var(--color-main);
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
}

.cost-card-body {
  padding: 40px 30px;
  text-align: center;
}

.cost-card-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
}

.cost-card-price {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-main);
  margin-bottom: 10px;
  line-height: 1;
}

.cost-card-price span {
  font-size: 1.3rem;
  margin-left: 5px;
}

.cost-badge {
  display: inline-block;
  background: var(--color-bg-secondary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.cost-list {
  text-align: left;
  font-size: 1rem;
}

.cost-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.cost-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-cta);
  font-weight: 900;
}

@media (max-width: 768px) {
  .cost-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-item {
  background: #fff;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid #eee;
}

.faq-question {
  padding: 20px 60px 20px 30px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  transition: background 0.3s;
  min-height: 64px;
}

.faq-question::before {
  content: "Q";
  color: var(--color-main);
  font-size: 1.4rem;
  font-weight: 900;
  flex-shrink: 0;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  line-height: 1;
}

.faq-question.is-open::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, color 0.3s ease-out;
  background: var(--color-bg-light);
  opacity: 0;
}

.faq-answer.is-open {
  padding: 25px 30px 40px;
  opacity: 1;
  border-top: 1px solid #eee;
  display: flex;
  gap: 15px;
}

.faq-answer::before {
  content: "A";
  color: var(--color-accent);
  font-size: 1.4rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form {
  background: var(--color-bg-secondary);
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 60px;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .form-wrapper {
    padding: 30px 20px;
  }
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 900;
  margin-bottom: 12px;
}

.form-label .required {
  background: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: middle;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--color-main);
  outline: none;
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: #1a202c;
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 25px;
}

.footer-info {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.8;
}

.footer-links {
  margin-bottom: 30px;
}

.footer-links a {
  color: #fff;
  margin: 0 15px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copyright {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ========================================
   Utilities
   ======================================== */
.pc-only {
  display: block !important;
}

.sp-only {
  display: none !important;
}

.tb-sp-only {
  display: none !important;
}

@media (max-width: 1024px) {
  .tb-sp-only {
    display: block !important;
  }

  .gnav ul {
    gap: 8px;
  }

  .gnav-link {
    padding: 8px 6px;
  }

  .gnav-link span {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: block !important;
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.6s ease, opacity 0.6s ease, background-color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, color 0.6s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-main);
  color: #fff;
  padding: 8px;
  z-index: 2000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   Sticky Footer (Mobile)
   ======================================== */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
    /* Space for sticky footer */
  }

  .sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex !important;
    z-index: 2000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  }

  .sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    color: #fff !important;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    gap: 8px;
    letter-spacing: 0.02em;
  }

  .sticky-tel {
    background: var(--color-main);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .sticky-mail {
    background: var(--color-cta);
  }

  .sticky-btn:active {
    filter: brightness(0.9);
  }
}

@media (min-width: 769px) {
  .sticky-footer {
    display: none !important;
  }
}

.hero-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}



/* ========================================
   Lawyer Profile Section
   ======================================== */
.lawyer-profile {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--color-white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
}

.lawyer-img img {
  width: 250px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.lawyer-info {
  flex: 1;
}

.lawyer-title {
  font-size: 0.9rem;
  color: var(--color-main);
  font-weight: 700;
  margin-bottom: 5px;
  opacity: 0.8;
}

.lawyer-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

.lawyer-info h3 small {
  font-size: 1rem;
  font-weight: 600;
  margin-left: 10px;
}

@media (max-width: 768px) {
  .lawyer-profile {
    flex-direction: column;
    text-align: center;
  }

  .lawyer-img img {
    width: 200px;
    margin-bottom: 20px;
  }
}

/* Accent Button (Orange) */
.btn-accent {
  background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
  color: #fff !important;
  box-shadow: 0 10px 25px rgba(243, 156, 18, 0.4);
}

.btn-accent:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(243, 156, 18, 0.5);
  filter: brightness(1.08);
}

/* Impact Enhancements */
.marker-yellow {
  background: linear-gradient(transparent 60%, rgba(255, 235, 59, 0.7) 60%);
  font-weight: bold;
}

.text-highlight {
  color: #e74c3c;
  font-weight: 900;
  font-size: 1.2em;
}

/* Consolidated into global definition */

.pain-point-item,
.solution-item {
  border: 2px solid transparent;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.pain-point-item:hover,
.solution-item:hover {
  border-color: var(--color-main);
  transform: scale(1.02);
}

.hero-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Difference Page (Comparison Table)
   ======================================== */
.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 40px 0;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  background: #fff;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  /* Ensure readability on mobile with scroll */
}

.comparison-table th,
.comparison-table td {
  padding: 20px;
  border-bottom: 1px solid #eee;
  text-align: center;
  vertical-align: middle;
}

.comparison-table th {
  background: #f8f9fa;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

.col-lawyer {
  background: rgba(0, 90, 156, 0.05) !important;
  color: var(--color-main) !important;
  font-size: 1.3rem !important;
  width: 35%;
}

.col-scrivener {
  background: rgba(243, 156, 18, 0.05) !important;
  color: var(--color-text-secondary) !important;
  width: 35%;
}

.feature-name {
  text-align: left !important;
  font-weight: bold;
  background: #fff;
  width: 30%;
}

.cell-lawyer {
  background: rgba(0, 90, 156, 0.03);
  font-size: 1.1rem;
}

.cell-scrivener {
  color: var(--color-text-secondary);
}

.mark-circle {
  color: var(--color-main);
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1;
  display: block;
  margin-bottom: 5px;
}

.mark-triangle {
  color: var(--color-accent);
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  display: block;
  margin-bottom: 5px;
}

.mark-cross {
  color: #e74c3c;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  display: block;
  margin-bottom: 5px;
}

.cell-desc {
  display: block;
  font-size: 0.85rem;
  margin-top: 5px;
  opacity: 0.8;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.detail-item {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.detail-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.detail-item h3 {
  font-size: 1.3rem;
  color: var(--color-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.detail-item p {
  text-align: left;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Dropdown Menu Styles */
.gnav ul li {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 100;
}

.gnav ul li:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: var(--color-bg-secondary);
  color: var(--color-main);
}

/* Mobile Submenu */
/* Mobile Submenu Styling (Refined) */
.sp-only .dropdown-menu {
  display: block;
  position: static;
  transform: none;
  box-shadow: none;
  background-color: #f9f9f9;
  /* Slight background distinction */
  padding: 0;
  min-width: auto;
  border-radius: 8px;
  /* Rounded block */
  margin-top: 5px;
  margin-bottom: 10px;
}

.sp-only .dropdown-menu a {
  display: block;
  padding: 12px 15px 12px 25px;
  /* Larger tap area, clear indent */
  font-size: 1.0rem;
  /* Larger font for readability */
  color: var(--color-text-primary);
  font-weight: 500;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.sp-only .dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--color-main);
  border-bottom: 2px solid var(--color-main);
  transform: translateY(-50%) rotate(-45deg);
  opacity: 0.7;
}

.sp-only .dropdown-menu a:last-child {
  border-bottom: none;
}

/* Merit Demerit Blocks */
.merit-demerit-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.md-block {
  width: 48%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.md-header {
  padding: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 1.3rem;
  color: #fff;
}

.md-header.merit {
  background-color: var(--color-main);
}

.md-header.demerit {
  background-color: #e74c3c;
}

.md-content {
  padding: 25px;
}

.md-content ul {
  padding-left: 20px;
  margin: 0;
}

.md-content ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.md-content ul li:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .merit-demerit-container {
    flex-direction: column;
    gap: 20px;
  }

  .md-block {
    width: 100%;
  }
}

/* 2 Column Grid Modifier */
.detail-grid.is-2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 768px) {
  .detail-grid.is-2col {
    grid-template-columns: 1fr;
  }
}

/* CTA Friendly Image Style */
.cta-illust {
  width: 200px;
  height: auto;
  border-radius: 30px;
  border: 5px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background-color: #fff;
}

.cta-illust:hover {
  transform: scale(1.05) rotate(-2deg);
}

/* ========================================
/* Check Section */
.check-section {
  background-color: #f9fbfd;
}

.check-container {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.check-illust {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

/* Creditor List Tags */
.creditor-tag {
  display: inline-block;
  background: #f1f3f5;
  color: #333;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  border: 1px solid #e1e1e1;
  margin-bottom: 5px;
}

/* Check Steps (Enhanced) */
.check-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background: #fff;
}

/* Success Card Link */
.success-card-link:hover .success-card {
  border: 1px solid var(--color-main);
}

/* Cases Page Hero */
.page-hero--cases {
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  margin-bottom: 60px;
}

.page-hero--cases h1 {
  font-family: var(--font-rounded);
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.05em;
}

.page-hero--cases p {
  font-size: 1.1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .page-hero--cases {
    height: 200px;
  }

  .page-hero--cases h1 {
    font-size: 2rem;
  }
}

.check-illust img {
  border-radius: 12px;
  max-width: 100%;
}

.check-content {
  flex: 1.5;
  min-width: 300px;
}

.check-list li {
  margin-bottom: 15px;
  font-size: 1.15rem;
  padding-left: 35px;
  position: relative;
  font-weight: bold;
}

/* Merit Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}

/* Success Stories */
.success-stories {
  background-color: #f9fbfd;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.success-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
}

.success-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.success-img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.success-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .check-container {
    padding: 20px;
  }

  .check-illust {
    min-width: 100%;
  }
}

/* ==========================================================================
   Page Hero Styles (Stylish Refinement)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  /* Dark Tech Vibe base, overridden by image */
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: -30px;
  /* Adjust for existing layout */
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: var(--font-rounded);
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  color: #fff !important;
  letter-spacing: 0.05em;
  transform: translateZ(0);
  /* Ensure hardware acceleration rendering */
}

.page-hero p {
  font-size: 1.3rem;
  opacity: 0.95;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Page Specific Backgrounds */
.page-hero--about::before {
  background-image: url('assets/images/lp5_hero_about_time_1767805304293.webp');
}

.page-hero--flow::before {
  background-image: url('assets/images/lp5_hero_flow_path_1767805322919.webp');
}

.page-hero--cost::before {
  background-image: url('assets/images/lp5_hero_cost_freedom_1767805343910.webp');
}

.page-hero--qa::before {
  background-image: url('assets/images/lp5_hero_qa_dialogue_1767805361965.webp');
}

.page-hero--difference::before {
  background-image: url('assets/images/lp5_hero_difference_scale_1767805378804.webp');
}

.page-hero--court::before {
  background-image: url('assets/images/lp5_hero_court_gavel_1767805588455.webp');
}

.page-hero--deceased::before {
  background-image: url('assets/images/lp5_hero_deceased_legacy_1767805608895.webp');
}

.page-hero--inheritance::before {
  background-image: url('assets/images/lp5_hero_inheritance_family_1767805627559.webp');
}


/* ========================================
   Supreme Comparison Table
   ======================================== */
.comparison-wrapper {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  background: #fff;
  margin-top: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th {
  background: #f8f9fa;
  padding: 25px 15px;
  font-weight: bold;
  color: #444;
  border-bottom: 2px solid #eee;
  vertical-align: middle;
}

.comparison-table td {
  padding: 25px 15px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  text-align: center;
  transition: background 0.2s;
}

/* Feature Column */
.comparison-table .feature-name {
  text-align: left;
  font-weight: bold;
  color: #2c3e50;
  font-size: 1.1rem;
  padding-left: 30px;
}

/* Lawyer Column (Highlight) */
.comparison-table .col-lawyer,
.comparison-table .cell-lawyer {
  background: #fffcf0;
  /* Light Gold Tint */
  border-left: 2px solid #f1c40f;
  border-right: 2px solid #f1c40f;
  position: relative;
}

.comparison-table .col-lawyer {
  background: #f1c40f;
  color: #fff;
  font-size: 1.3rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border: none;
  box-shadow: 0 -5px 20px rgba(241, 196, 15, 0.3);
}

.comparison-table .cell-lawyer {
  font-weight: bold;
  color: #2c3e50;
  font-size: 1.1rem;
}

.cell-lawyer::after {
  content: '';
  position: absolute;
  inset: 0;
  border-left: 2px solid rgba(241, 196, 15, 0.3);
  border-right: 2px solid rgba(241, 196, 15, 0.3);
  pointer-events: none;
}

/* Other Columns */
.col-scrivener {
  background: #ecf0f1;
  color: #7f8c8d;
}

.col-admin {
  background: #bdc3c7;
  color: #fff;
}

/* Marks */
.mark-circle {
  font-size: 2rem;
  color: #27ae60;
  display: inline-block;
  filter: drop-shadow(0 2px 5px rgba(39, 174, 96, 0.3));
}

.cell-lawyer .mark-circle {
  font-size: 2.5rem;
  color: #f39c12;
  /* Gold for Lawyer */
  animation: pulseGold 2s infinite;
}

.mark-triangle {
  font-size: 1.8rem;
  color: #f39c12;
}

.mark-cross {
  font-size: 1.8rem;
  color: #c0392b;
  opacity: 0.7;
}

.cell-desc {
  display: block;
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-top: 5px;
  font-weight: normal;
}

@keyframes pulseGold {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(243, 156, 18, 0));
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(243, 156, 18, 0.4));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(243, 156, 18, 0));
  }
}

/* ========================================
   Visual Diagram Styles (Timeline & Cards)
   ======================================== */
/* CSS Timeline */
.visual-timeline-container {
  position: relative;
  padding: 60px 20px 30px;
  margin: 40px 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.css-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
}

.css-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 4px;
  background: #e0e0e0;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-point {
  position: relative;
  z-index: 2;
  text-align: center;
  background: #fff;
  padding: 0 10px;
}

.tp-circle {
  width: 20px;
  height: 20px;
  background: #bdc3c7;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px #bdc3c7;
}

.tp-circle.active {
  background: #27ae60;
  box-shadow: 0 0 0 2px #27ae60;
  width: 30px;
  height: 30px;
}

.tp-circle.start {
  background: #3498db;
  box-shadow: 0 0 0 2px #3498db;
}

.tp-label {
  font-weight: bold;
  color: #555;
  font-size: 0.9rem;
}

.tp-highlight {
  color: #27ae60;
  font-size: 1.1rem;
}

.timeline-arrow-annot {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: #f1c40f;
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(241, 196, 15, 0.3);
  white-space: nowrap;
  z-index: 5;
}

/* Interruption Cards */
.interruption-visual {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.interruption-item {
  flex: 1;
  min-width: 200px;
  padding: 30px 20px;
  border: 2px solid #ffebee;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  transition: transform 0.3s;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.05);
}

.interruption-item:hover {
  transform: translateY(-5px);
  border-color: #e74c3c;
  box-shadow: 0 15px 30px rgba(231, 76, 60, 0.15);
}

.interruption-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  display: inline-block;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.1));
}

.interruption-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #c0392b;
}

.interruption-desc {
  font-size: 0.9rem;
  color: #7f8c8d;
  line-height: 1.6;
}

/* Responsive Table */
@media (max-width: 600px) {
  .comparison-table .feature-name {
    font-size: 0.9rem;
    padding-left: 10px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 15px 5px;
    font-size: 0.9rem;
  }

  .mark-circle,
  .mark-triangle,
  .mark-cross {
    font-size: 1.4rem;
  }

  .cell-lawyer .mark-circle {
    font-size: 1.8rem;
  }

  .comparison-table .col-lawyer {
    font-size: 1rem;
  }
}


/* ========================================
   Supreme Case Cards
   ======================================== */
.cases-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.supreme-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
}

.supreme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px 40px;
  border-bottom: 1px solid #e1e4e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.case-tag {
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.05em;
}

.tag-finance {
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  box-shadow: 0 4px 10px rgba(255, 126, 95, 0.3);
}

.tag-card {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 4px 10px rgba(79, 172, 254, 0.3);
}

.tag-agency {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.card-body {
  padding: 40px;
  display: flex;
  gap: 40px;
}

.before-after-visual {
  flex: 0 0 280px;
  background: #fafbfc;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ba-row {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 5px;
}

.ba-arrow {
  font-size: 2rem;
  color: #ccc;
  margin: 5px 0;
  line-height: 1;
}

.ba-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--warning);
  line-height: 1.2;
  display: block;
}

.ba-price.zero {
  color: var(--accent-color);
  /* Gold */
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
  font-size: 2.5rem;
}

.case-desc h4 {
  font-size: 1.1rem;
  color: var(--color-main);
  margin-bottom: 10px;
  margin-top: 20px;
  border-left: 4px solid var(--accent-color);
  padding-left: 12px;
  font-weight: bold;
}

.case-desc h4:first-of-type {
  margin-top: 0;
}

@media (max-width: 900px) {
  .card-body {
    flex-direction: column;
  }

  .before-after-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
    padding: 15px;
  }

  .ba-arrow {
    transform: rotate(-90deg);
    margin: 0 10px;
  }
}

@media (max-width: 600px) {
  .before-after-visual {
    flex-direction: column;
  }

  .ba-arrow {
    transform: rotate(0deg);
    margin: 10px 0;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
  }

  .btn-diag {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* ========================================
   Diagnosis Section Styles (Supreme Upgrade)
   ======================================== */
.btn-diag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 18px 40px;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 60px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: none;
  line-height: 1;
  margin: 10px;
  position: relative;
  overflow: visible;
  /* changed from hidden to allow shadow/transform context */
}

/* Yes Button */
.btn-yes {
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-cta-dark) 100%);
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.btn-yes:before {
  content: "✓";
  font-size: 1.2rem;
  margin-right: 10px;
  filter: brightness(2);
}

.btn-yes:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(46, 204, 113, 0.4);
}

/* No Button */
.btn-no {
  background: #fff;
  color: var(--color-text-secondary);
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-no:before {
  content: "×";
  font-size: 1.0rem;
  margin-right: 10px;
  opacity: 0.6;
}

.btn-no:hover {
  background: #f8f9fa;
  border-color: #ccc;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile Adjustments override */
@media (max-width: 480px) {
  .diag-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn-diag {
    width: 100%;
    margin: 0;
    padding: 20px;
  }
}

/* ========================================
   Shimmer Effect
   ======================================== */
.shimmer-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.shimmer-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(30deg);
  animation: shimmer 3s infinite;
  will-change: left;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -60%;
  }

  100% {
    left: 150%;
  }
}

/* Fix Floating CTA overlaps on Mobile */
@media (max-width: 768px) {
  .floating-cta {
    display: none !important;
  }
}

/* ========================================
   Mouse Follow Glow
   ======================================== */
.mouse-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  margin-left: -300px;
  /* Center adjustment */
  margin-top: -300px;
  /* Center adjustment */
  background: radial-gradient(circle at center, rgba(65, 105, 225, 0.6) 0%, transparent 60%);
  /* Royal Blue for high visibility on light bg */
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: normal;
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  /* Force GPU */
}

.hero:hover .mouse-glow {
  opacity: 1;
}









/* ========================================
   Section Navigation (Right Side Dots)
   ======================================== */
.section-nav-container { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 10020; display: flex; flex-direction: column; gap: 12px; }
.section-nav-dot { width: 12px; height: 12px; background: rgba(0,0,0,0.2); border: 2px solid #fff; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; position: relative; }
.section-nav-dot:hover { background: var(--color-cta, var(--accent-orange, #f39c12)); transform: scale(1.2); }
.section-nav-dot.is-active { background: var(--color-cta, var(--accent-orange, #f39c12)); transform: scale(1.3); }
.section-nav-label { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.8); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.3s ease; }
.section-nav-dot:hover .section-nav-label { opacity: 1; right: 28px; }

/* ==========================================================================
   Floating UI & Navigation (Strict Viewport Control)
   ========================================================================== */

/* 1. Base Styles & Transitions */
.page-top-btn, 
.mobile-nav-container, 
.floating-cta {
  position: fixed !important;
  z-index: 10020 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 2. PC Mode (> 992px) */
@media (min-width: 993px) {
  /* Page Top - Bottommost */
  .page-top-btn {
    bottom: 30px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    background: var(--color-main) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    opacity: 0;
    visibility: hidden;
  }
  .page-top-btn.is-visible { opacity: 1 !important; visibility: visible !important; }
  .page-top-btn:hover { background: var(--color-accent) !important; transform: translateY(-5px) !important; }

  /* Floating CTA - Above Page Top */
  .floating-cta {
    bottom: 110px !important;
    right: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  /* Remove Phone CTA on PC */
  .f-cta-btn.tel { display: none !important; }
  
  /* Force Hide Mobile Menu on PC */
  .mobile-nav-container { display: none !important; }
  .sticky-footer { display: none !important; }
}

/* 3. Mobile Mode (< 992px) */
@media (max-width: 992px) {
  /* Sticky Footer - Bottommost */
  .sticky-footer {
    display: flex !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 70px !important;
    z-index: 10025 !important;
    background: #fff !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
  }

  /* Mobile Nav Trigger - Above Sticky Footer */
  .mobile-nav-container {
    bottom: 85px !important;
    right: 15px !important;
    display: block !important;
    z-index: 10022 !important;
  }

  /* Page Top - Above Mobile Nav */
  .page-top-btn {
    bottom: 160px !important;
    right: 15px !important;
    width: 50px !important;
    height: 50px !important;
    background: var(--color-main) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    opacity: 0;
    visibility: hidden;
    z-index: 10021 !important;
  }
  .page-top-btn.is-visible { opacity: 1 !important; visibility: visible !important; }

  .hero-content {
    margin: 0 15px !important;
    padding: 30px 20px !important;
    padding-top: 100px !important;
    text-align: center !important;
    max-width: calc(100% - 30px) !important;
  }

  .hero-title,
  .hero-content h1 {
    font-size: 1.8rem !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.4) !important;
  }

  .hero-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
  }

  /* Hide Floating CTA on Mobile */
  .floating-cta { display: none !important; }
}

/* Shared Helpers & Mobile Menu Base */
.f-cta-btn {
  width: 70px !important; height: 70px !important; border-radius: 35px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: white !important; box-shadow: var(--shadow-lg) !important; text-decoration: none !important;
}
.f-cta-btn.form { background: var(--color-cta) !important; }
.f-cta-btn.tel { background: var(--color-main) !important; }
.f-cta-label {
  position: absolute !important; right: 85px !important; background: white !important; color: #333 !important;
  padding: 8px 15px !important; border-radius: 8px !important; white-space: nowrap !important;
  font-weight: 700 !important; box-shadow: var(--shadow-md) !important; opacity: 0;
  transform: translateX(20px) !important; transition: 0.3s !important; pointer-events: none !important;
}
.f-cta-btn:hover .f-cta-label { opacity: 1 !important; transform: translateX(0) !important; }

/* Mobile Menu Trigger & Dropdown Styles */
.mobile-nav-trigger { width: 60px; height: 60px; background: var(--accent-orange, #f39c12); color: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); border: 2px solid #fff; cursor: pointer; padding-top: 4px; }
.trigger-icon { width: 24px; height: 2px; background: #fff; position: relative; transition: all 0.3s; margin-bottom: 2px; }
.trigger-icon::before, .trigger-icon::after { content: ''; width: 24px; height: 2px; background: #fff; position: absolute; left: 0; transition: all 0.3s; }
.trigger-icon::before { top: -8px; }
.trigger-icon::after { top: 8px; }
.trigger-label { font-size: 10px; font-weight: bold; margin-top: 14px; letter-spacing: 0.05em; }
.mobile-nav-container.is-open .trigger-icon { background: transparent; }
.mobile-nav-container.is-open .trigger-icon::before { transform: rotate(45deg); top: 0; }
.mobile-nav-container.is-open .trigger-icon::after { transform: rotate(-45deg); top: 0; }

.mobile-nav-menu { position: absolute; bottom: 70px; right: 0; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); width: 220px; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.9); transition: all 0.3s cubic-bezier(0.16,1,0.3,1); overflow: hidden; }
.mobile-nav-container.is-open .mobile-nav-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mobile-nav-list { padding: 10px 0; list-style: none; margin: 0; }
.mobile-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: #333; text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 1px solid #f0f0f0; }
.mobile-nav-item:last-child { border-bottom: none; }
.mobile-nav-item:active { background: #f8f9fa; }

/* 電話受付時間追加に伴う調整 */
.header-tel-label, .contact-label {
  display: block;
  font-size: 12px !important;
  color: var(--main-blue, #003366);
  margin-bottom: 2px;
  font-weight: 500;
  white-space: nowrap;
}
