/* ========================================
   Variables (LP Specific)
   ======================================== */
:root {
  --color-main: #1e3a8a;
  --color-main-light: #3b82f6;
  --color-main-dark: #1e3a8a;
  --color-accent: #f59e0b;
  --color-text-primary: #1f2937;
  --color-bg-light: #f3f4f6;
  --bg-white: #ffffff;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition-base: all 0.3s ease;

  --white: #ffffff;
}

.nowrap-phrase {
  display: inline-block;
}

/* Executive Micro-interactions */
.btn-primary,
.header-cta,
.header-line-btn,
.btn-submit,
.sp-nav-cta {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.header-cta::after,
.header-line-btn::after,
.btn-submit::after,
.sp-nav-cta::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:hover::after,
.btn-submit:hover::after,
.sp-nav-cta:hover::after {
  left: 100%;
  top: 100%;
}

.executive-card {
  background: var(--bg-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(--accent-orange);
}

.executive-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-orange);
}

/* -----------------------------------------
   Step-type Diagnosis Tool Styles
   ----------------------------------------- */
.diag-section {
  padding: 100px 0;
  background: var(--main-blue-light);
  position: relative;
  overflow: hidden;
}

.diag-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-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(--main-blue);
  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-weight: 800;
  font-size: 1.8rem;
  color: var(--main-blue);
  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(--accent-orange);
  background: var(--accent-orange-light);
  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(--main-blue);
  margin-bottom: 20px;
}

.diag-result-desc {
  font-size: 1.1rem;
  margin-bottom: 35px;
  line-height: 1.8;
}

/* Floating Interactive CTA */
.floating-cta {
  position: fixed;
  bottom: 220px; /* Moved up to avoid overlapping with new navigation buttons on PC */
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 992px) {
  .floating-cta { display: none !important; } /* Hidden on mobile in favor of sticky footer */
}

.f-cta-btn {
  width: 70px;
  height: 70px;
  border-radius: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  text-decoration: none;
  position: relative;
}

.f-cta-btn.tel {
  background: var(--main-blue);
  display: none;
}

.f-cta-btn.line {
  background: #06C755;
}

.f-cta-btn.form {
  background: var(--accent-orange);
}

.f-cta-btn:hover {
  transform: scale(1.1) rotate(5deg);
}

.f-cta-label {
  position: absolute;
  right: 85px;
  background: white;
  color: #333;
  padding: 8px 15px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(20px);
  transition: var(--transition-base);
  pointer-events: none;
}

.f-cta-btn:hover .f-cta-label {
  opacity: 1;
  transform: translateX(0);
}

@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 {
    bottom: 20px;
    right: 20px;
  }

  .f-cta-btn {
    width: 60px;
    height: 60px;
  }

  .f-cta-btn.tel {
    display: flex;
  }
}

.executive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-orange);
  transition: height 0.4s ease;
}

.executive-card:hover::before {
  height: 100%;
}

/* Counter Animation Styles */
.stat-number {
  font-family: inherit;
  font-weight: 900;
  font-size: 3.5rem;
  color: var(--main-blue);
  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
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--base-font-size);
  line-height: var(--base-line-height);
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

a {
  color: var(--main-blue);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--accent-orange);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul,
ol {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-sm {
  max-width: 900px;
}

section {
  padding: 120px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 60px;
  color: var(--main-blue);
}

/* ==========================================================================
   Header & Navigation (Neoindex Style)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
  pointer-events: none;
  will-change: top;
}

/* Gradient Overlay for Video readability */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body:not(.is-subpage) header:not(.is-scrolled)::before {
  opacity: 1;
}

header.is-scrolled,
body.is-subpage header {
  top: 20px;
}

.header-container {
  pointer-events: auto;
  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-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  min-height: 110px;
  padding: 10px 40px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid transparent;
  max-width: 100%;
  margin: 0 auto;
  transition: background-color 0.4s ease, border-radius 0.4s ease, box-shadow 0.4s ease, max-width 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.8);
  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);
  max-width: 1200px;
}

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, 51, 102, 0.05);
}

.header-bottom {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 5px;
}

.logo img {
  height: 45px;
  transition: height 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

header.is-scrolled .logo img,
body.is-subpage header .logo img {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35)) !important;
  height: 40px;
}

body:not(.is-subpage) header:not(.is-scrolled) .logo img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  opacity: 0.9;
}

body.is-subpage header:not(.is-scrolled) .logo img {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35)) !important;
  opacity: 1;
}

.gnav ul {
  display: flex;
  gap: 8px;
}

.gnav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 12px;
  color: var(--text-dark);
  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;
}

header.is-scrolled .gnav-link,
body.is-subpage header .gnav-link {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32) !important;
  color: var(--text-dark);
}

body:not(.is-subpage) header:not(.is-scrolled) .gnav-link {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

body.is-subpage header:not(.is-scrolled) .gnav-link {
  color: var(--text-dark);
  text-shadow: none !important;
}

.gnav-link span {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.gnav-link small {
  font-size: 10px;
  font-weight: 600;
  color: var(--main-blue);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
  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;
}

body:not(.is-subpage) header:not(.is-scrolled) .gnav-link small {
  color: #fff;
  opacity: 0.8;
}

.gnav-link:hover {
  background: rgba(0, 90, 156, 0.05);
  transform: translateY(-2px);
}

body:not(.is-subpage) header:not(.is-scrolled) .gnav-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--main-blue);
  margin-bottom: -2px;
  transition: color 0.4s ease, text-shadow 0.4s ease, opacity 0.4s ease;
}

body:not(.is-subpage) header:not(.is-scrolled) .contact-label {
  color: #fff;
  opacity: 0.9;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

header.is-scrolled .contact-label {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

.contact-tel {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 140px;
  text-align: right;
  transition: color 0.4s ease;
}

body:not(.is-subpage) header:not(.is-scrolled) .contact-tel {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

header.is-scrolled .contact-tel {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.38) !important;
}

header .header-cta {
  background: var(--resolve-green);
  color: #fff !important;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.header-cta:hover {
  background: var(--resolve-green-dark);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
}

header .header-line-btn {
  background: #06c755;
  color: #fff !important;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

header .header-line-btn:hover {
  background: #05b04b;
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.45);
}

@media screen and (max-width: 1024px) {
  .gnav ul {
    gap: 4px;
  }

  .gnav-link {
    padding: 8px 10px;
  }

  .gnav-link span {
    font-size: 13px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  /* Fill screen to give more room for slider content */
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: #000;
  /* Backdrop for loading */
}

/* --- Hero Slider Base --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* Mini Diagnosis Styles */
.diagnosis-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chk-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.chk-q {
  font-weight: bold;
  font-size: 1.05rem;
  margin: 0;
}

.chk-btns {
  display: flex;
  gap: 10px;
}

.btn-yes,
.btn-no {
  padding: 8px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.btn-yes:hover,
.btn-yes.active {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

.btn-no:hover,
.btn-no.active {
  background: #3498db;
  color: #fff;
  border-color: #3498db;
}

@media (max-width: 768px) {
  .chk-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .chk-btns {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

.btn-primary.pulse-anim {
  animation: pulse 2s infinite;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Background Media Handling */
.hero-video-wrap,
.hero-image-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-image: url('assets/images/hero_video_poster.webp');
  background-size: cover;
  background-position: center;
}

.hero-video,
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ken Burns Effect */
.hero-image-animate {
  animation: kenBurns 20s ease-out infinite alternate;
  transform-origin: center center;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}



.hero .container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .hero .container {
    justify-content: center;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin-left: 8%;
  margin-top: 60px;
  padding: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.6s, transform 1s ease 0.6s;
}

.hero-slide.is-active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

/* Slide Adjustment for Right-Aligned Videos */
.hero-slide.hero-slide-adjust-left .hero-content {
  margin-left: 3%;
}

.hero-content h1,
.hero-content .hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-content .highlight {
  color: var(--accent-orange);
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

.hero-content .highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(243, 156, 18, 0.3);
  z-index: -1;
}

.hero-content p,
.hero-content .hero-description {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 1;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  color: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--resolve-green) 0%, var(--resolve-green-dark) 100%);
  color: #fff !important;
  padding: 24px 64px;
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 100px;
  box-shadow: 0 15px 35px rgba(46, 204, 113, 0.45), 0 5px 15px rgba(0, 0, 0, 0.2);
  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);
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(46, 204, 113, 0.5), 0 12px 25px rgba(0, 0, 0, 0.2);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

/* Hero Dots (Navigation) */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}





/* ==========================================================================
   Point Section
   ========================================================================== */
.points {
  background: var(--bg-light);
  margin-top: -60px;
  position: relative;
  z-index: 20;
  padding: 0;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.point-card {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.point-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.point-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--main-blue);
  opacity: 0.1;
  position: absolute;
  top: 10px;
  right: 20px;
}

.point-card h3 {
  font-size: 1.4rem;
  color: var(--main-blue);
  margin-bottom: 15px;
  font-weight: 800;
}

/* ==========================================================================
   Secondary Sections
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.feature-card {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.feature-card h3 {
  text-align: center;
}

.feature-card p {
  text-align: left;
}

.feature-card img {
  margin: 0 auto;
  display: block;
}

/* Manga Section */
.manga-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.manga-panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.manga-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.manga-panel img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-bottom: 3px solid var(--main-blue);
}

.manga-panel p {
  padding: 15px;
  font-weight: 700;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.panel-num {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-orange);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 5;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 900px) {
  .manga-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto 40px;
  }
}

@media (max-width: 480px) {
  .manga-grid {
    gap: 15px;
  }

  .manga-panel p {
    font-size: 0.9rem;
    padding: 12px;
  }
}

/* Case Study Enhancements */
.case-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-result {
  margin-top: auto;
  background: #f0fff4;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #c6f6d5;
  color: #22543d;
}

.case-result-label {
  display: inline-block;
  background: var(--resolve-green-dark);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.fraud-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-block {
  display: flex;
  align-items: center;
  gap: 60px;
}

.feature-img {
  flex: 1;
}

.feature-text {
  flex: 1;
}

.badge {
  display: inline-block;
  background: var(--main-blue-light);
  color: var(--main-blue);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}

.feature-text h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--main-blue);
  font-weight: 800;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.voice-card {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.voice-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.voice-name {
  font-weight: 700;
}

.voice-rating {
  color: #f1c40f;
}

.cta-section {
  background: linear-gradient(rgba(0, 90, 156, 0.95), rgba(0, 90, 156, 0.95)),
    url("assets/images/consultation_scene_reliable.webp") center/cover;
  color: #fff;
  text-align: center;
}

.cta-inner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.cta-inner p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Footer & Form */
footer {
  background: #0f172a;
  color: #fff;
  padding: 100px 0;
}

.footer-contact-info {
  text-align: center;
  margin-bottom: 60px;
}

.footer-contact-info h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.contact-form {
  background: #fff;
  color: var(--text-dark);
  padding: 60px;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: inherit;
}

.form-privacy {
  margin-bottom: 30px;
  text-align: center;
}

.form-submit {
  text-align: center;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--resolve-green) 0%, var(--resolve-green-dark) 100%);
  color: #fff;
  padding: 20px;
  font-size: 1.3rem;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(46, 204, 113, 0.4);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-info {
  min-width: 300px;
}

.footer-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
}

.footer-info p {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.9;
}

.footer-cta {
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-cta p {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  font-size: 14px;
  opacity: 0.6;
}

.u-nobrk {
  display: inline-block;
}

.sp-only {
  display: none !important;
}

br.sp-only {
  display: none !important;
}

br.pc-only {
  display: inline !important;
}

@media (max-width: 992px) {

  .points-grid,
  .card-grid,
  .card-grid-2,
  .voice-grid {
    grid-template-columns: 1fr;
  }

  .feature-block {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .pc-only {
    display: none !important;
  }

  br.pc-only {
    display: none !important;
  }

  .sp-only {
    display: block !important;
  }

  br.sp-only {
    display: inline !important;
  }

  header {
    top: 0 !important;
    transition: none !important;
    z-index: 1100 !important;
  }

  header.is-scrolled {
    top: 0 !important;
  }

  .header-container {
    transition: none !important;
    position: relative;
    z-index: 1100;
  }

  .header-inner {
    height: 60px !important;
    min-height: auto !important;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 20px;
    background: #fff !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: none;
    position: relative;
    z-index: 1100;
  }

  .logo img {
    height: 40px;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .hamburger {
    display: block;
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
    margin-right: 0;
    z-index: 1200;
  }

  .hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--main-blue);
    border-radius: 2px;
    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;
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    top: 8px;
  }

  .hamburger span:nth-child(3) {
    top: 16px;
  }

  .hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .gnav-sp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1050;
    padding: 85px 24px 100px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    box-sizing: border-box;
  }

  .gnav-sp.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* メニュー展開時は下部追従バーを非表示にして全メニューを見やすくする */
  body.nav-open .sp-floating-cta,
  body.nav-open .floating-cta,
  body.nav-open .floating-cta-container,
  body.nav-open .floating-banner,
  body.nav-open .sp-fixed-cta {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease;
  }

  .gnav-sp ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .gnav-sp ul li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .gnav-sp ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark, #003366);
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .gnav-sp ul li a:active,
  .gnav-sp ul li a:hover {
    color: var(--accent-orange, #f39c12);
    padding-left: 14px;
    background: rgba(243, 156, 18, 0.05);
  }

  .sp-nav-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f39c12, #d35400) !important;
    color: #fff !important;
    text-align: center;
    padding: 15px 20px !important;
    border-radius: 30px !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    margin-top: 24px !important;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.35) !important;
    text-decoration: none !important;
  }

  .hero {
    min-height: auto;
    padding: 0;
    display: block;
  }

  .container {
    padding: 0 20px;
  }

  .hero-video,
  .hero-image,
  .slide-background video,
  .slide-background img {
    object-position: 50% center !important;
  }


  .hero-content {
    padding: 30px 15px !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 100px !important;
  }

  .hero-content h1,
  .hero-content .hero-title {
    font-size: 1.35rem !important;
    line-height: 1.45 !important;
    margin-bottom: 20px !important;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .hero-content p,
  .hero-content .hero-description {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .hero-cta-area {
    width: 100%;
    margin-top: 20px;
  }

  .hero-content .btn-primary {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    white-space: normal;
    /* Changed from nowrap to allow natural wrapping for buttons if needed */
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 30px 20px;
  }

  body {
    padding-bottom: 64px !important;
  }

  .sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    z-index: 2000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    background: #111;
  }

  .sticky-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    line-height: 1.2;
    padding: 6px 4px;
    letter-spacing: 0.02em;
    transition: filter 0.2s ease;
  }

  .sticky-tel {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .sticky-mail {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  }

  .sticky-btn:active {
    filter: brightness(0.9);
  }
}

/* ==========================================================================
   Responsive Adjustments for New Sections
   ========================================================================== */

/* QA Section Mobile Optimization */
@media screen and (max-width: 768px) {
  .qa-box {
    padding: 24px !important;
  }

  .qa-q {
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
  }

  .qa-q h3 {
    font-size: 1.1rem !important;
  }

  /* Stack Answer Icon and Text on Mobile */
  .qa-a {
    display: block !important;
  }

  .qa-icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: flex-start;
  }

  .qa-icon img {
    width: 50px !important;
    height: 50px !important;
  }
}

/* Fraud Types & FAQ responsive fixes */
@media screen and (max-width: 768px) {
  .section-title {
    font-size: 1.5rem !important;
    line-height: 1.45 !important;
    margin-bottom: 30px !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }

  .btn-primary {
    padding: 14px 20px !important;
    font-size: 1.05rem !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  .red-flags-card {
    padding: 24px 16px !important;
    border-radius: 12px !important;
  }

  .fraud-card {
    flex-direction: column;
  }

  /* 代表弁護士挨拶セクションのスマホ最適化 */
  #lawyer .lawyer-card {
    padding: 30px 20px !important;
    gap: 30px !important;
    border-radius: 20px !important;
  }

  #lawyer .lawyer-card h3 {
    font-size: 1.45rem !important;
    margin-bottom: 16px !important;
    line-height: 1.4 !important;
    border-left: 4px solid var(--accent-orange) !important;
    padding-left: 12px !important;
    word-break: keep-all !important;
  }

  /* スマホ用 比較カードスタイル */
  .comparison-cards-sp {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
  }

  .comp-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    box-sizing: border-box;
  }

  .comp-card-gray {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
  }

  .comp-card-highlight {
    border: 2px solid var(--main-blue);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.12);
    padding-top: 28px;
  }

  .comp-recommend-ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
    white-space: nowrap;
    letter-spacing: 0.04em;
  }

  .comp-card-header {
    text-align: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
  }

  .comp-card-badge {
    display: inline-block;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 4px 12px;
    border-radius: 6px;
  }

  .badge-gray {
    color: #475569;
    background: #edf2f7;
    font-size: 0.98rem;
    padding: 6px 14px;
    border-radius: 8px;
  }

  .badge-blue {
    color: #ffffff !important;
    background: linear-gradient(135deg, #003366 0%, #002244 100%) !important;
    font-size: 1.15rem !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    letter-spacing: 0.03em !important;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.25) !important;
  }

  .comp-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .comp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-size: 0.92rem;
  }

  .comp-card-gray .comp-row {
    background: #ffffff;
    border: 1px solid #edf2f7;
  }

  .comp-card-highlight .comp-row {
    background: #f0f7ff;
    border: 1px solid #d0e7ff;
  }

  .comp-label {
    font-weight: 700;
    color: #4a5568;
    font-size: 0.86rem;
    flex-shrink: 0;
  }

  .comp-val {
    font-weight: 700;
    text-align: right;
  }

  .val-bad {
    color: #e53e3e;
  }

  .val-warn {
    color: #d69e2e;
  }

  .val-good {
    color: var(--main-blue);
    font-weight: 800;
  }
}


/* ==========================================================================
   Page Hero Styles (Unified Cool Design)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  /* Dark Tech Vibe */
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.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.3;
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Page Specific Backgrounds */
.page-hero--cases::before {
  background-image: url('assets/images/hero_recruit_fraud.webp');
}

.page-hero--flow::before {
  background-image: url('assets/images/lp1_hero_speed_resolution_clock_1767770796967.webp');
}

.page-hero--cost::before {
  background-image: url('assets/images/hero_freedom.webp');
}

.page-hero--check::before {
  background-image: url('assets/images/lp1_hero_check_diagnosis_abstract_1767802351237.webp');
  background-position: center;
}

.page-hero--qa::before {
  background-image: url('assets/images/consultation_scene_reliable.webp');
}

/* Trust Badges */
.trust-badge-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--main-blue);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.trust-badge::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 900;
  margin-right: 8px;
}

/* Micro-Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Fraud Types Mobile Optimization */
@media screen and (max-width: 768px) {
  .feature-card h3 {
    /* Ensure header icon and text wrap properly */
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }

  .feature-card h3 span {
    font-size: 2.5rem !important;
    /* Make icon larger when stacked */
  }
}

/* Ken Burns Animation */
@keyframes kenBurns {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.ken-burns {
  animation: kenBurns 20s infinite alternate ease-in-out;
  transform-origin: center center;
}

/* Mechanism Flow Styles (HTML Based) */
.mech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.mech-step {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mech-step.is-danger {
  border: 2px solid var(--alert-red);
  background: #fff5f5;
}

.mech-icon-area {
  position: relative;
  margin-bottom: 15px;
}

.mech-num {
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--main-blue);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

.mech-img-placeholder {
  background: #f0f4f8;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mech-content h4 {
  color: var(--main-blue);
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.mech-content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.mech-arrow {
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ccc"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>') center/contain no-repeat;
  z-index: 2;
}

.mech-step:last-child .mech-arrow {
  display: none;
}

@media (max-width: 900px) {
  .mech-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mech-arrow {
    right: 50%;
    top: auto;
    bottom: -35px;
    transform: translateX(50%) rotate(90deg);
  }
}

/* Fraud Card Layout Fix (Explicit horizontal class) */
.fraud-card-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-card-horizontal {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--alert-red);

  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  padding: 30px;
  text-align: left;
}

.feature-card-horizontal .card-icon {
  flex-shrink: 0;
  width: 100px;
  text-align: center;
}

.feature-card-horizontal .card-body {
  flex-grow: 1;
}

.feature-card-horizontal .card-body h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
  display: block;
  text-align: left;
  color: var(--alert-red);
}

.feature-card-horizontal .card-body p {
  text-align: left;
}

@media (max-width: 768px) {
  .feature-card-horizontal {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-card-horizontal .card-body h3,
  .feature-card-horizontal .card-body p {
    text-align: center;
  }
}

/* ========================================
   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(0, 255, 200, 0.25) 0%, transparent 70%);
  z-index: 6;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  /* Force GPU */
}

.hero:hover .mouse-glow {
  opacity: 1;
}

/* ========================================
   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;
  }
}








/* Premium Global Navigation Styles */
.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(--accent-orange, #f39c12); transform: scale(1.2); }
.section-nav-dot.is-active { background: 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; }

.page-top-btn { position: fixed; right: 30px; bottom: 30px; width: 60px; height: 60px; background: var(--main-blue, #003366); color: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; z-index: 10021; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: all 0.3s ease; border: none; cursor: pointer; opacity: 0; visibility: hidden; }
.page-top-btn.is-visible { opacity: 1; visibility: visible; }
.page-top-btn:hover { background: var(--accent-orange, #f39c12); transform: translateY(-5px); }
.page-top-btn svg { width: 24px; height: 24px; margin-bottom: 2px; }
.page-top-btn span { font-size: 10px; font-weight: bold; }

.mobile-nav-container { position: fixed; right: 30px; bottom: 110px; z-index: 10022; }
.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; }

@media (max-width: 992px) { 
  .section-nav-container { display: none; } 
  .page-top-btn { bottom: 150px; right: 15px; width: 50px; height: 50px; } 
  .mobile-nav-container { bottom: 85px; right: 15px; } 
}

/* Fix Inheritance LP Floating Footer layout and overlap */
.floating-nav { left: 0 !important; right: 0 !important; margin: 0 auto !important; width: 95% !important; max-width: 500px !important; bottom: 90px !important; z-index: 10015 !important; transform: translateY(150%) !important; position: fixed !important; }
.floating-nav.is-visible { transform: translateY(0) !important; }
.read-progress-bar { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--accent-orange, #f39c12); transition: width 0.1s; border-radius: 0 0 40px 40px; }

/* 電話受付時間追加に伴う調整 */
.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;
}

/* ========================================
   Wizard Form Styles (Step-by-Step)
   ======================================== */
.step-form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.step-progress-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.step-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #eee;
  z-index: 1;
  transform: translateY(-50%);
}

.step-line-active {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-orange);
  z-index: 1;
  transform: translateY(-50%);
  transition: width 0.4s ease;
}

.step-indicator {
  width: 35px;
  height: 35px;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #aaa;
  z-index: 2;
  position: relative;
  transition: all 0.4s ease;
  cursor: pointer;
}

.step-indicator.active {
  border-color: var(--accent-orange);
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 10px rgba(243, 156, 18, 0.4);
}

.step-indicator.completed {
  border-color: var(--accent-orange);
  background: #fff;
  color: var(--accent-orange);
}

.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  font-size: 1rem;
}

.form-step {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.form-step.active {
  display: block;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.category-btn {
  display: block;
  cursor: pointer;
  position: relative;
}

.hidden-radio {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.category-content {
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 20px 10px;
  text-align: center;
  transition: all 0.3s ease;
  background: #fafafa;
  font-weight: bold;
  color: #555;
  height: 100%;
}

.category-btn:hover .category-content {
  border-color: var(--accent-orange);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.hidden-radio:checked ~ .category-content {
  border-color: var(--accent-orange);
  background: #fff8f0;
  color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
}

.payment-choice-btn .payment-choice-content {
  transition: all 0.25s ease;
}

.payment-choice-btn:hover .payment-choice-content {
  border-color: #003366 !important;
  background: #f8fafc !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 51, 102, 0.08);
}

.payment-choice-btn .hidden-radio:checked ~ .payment-choice-content {
  border-color: #003366 !important;
  background: #f0f7ff !important;
  color: inherit !important;
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.3) !important;
}

.input-error {
  border: 2px solid #e74c3c !important;
  background-color: #fdf5f5 !important;
  border-radius: 12px;
  padding: 10px;
}

@keyframes shakeError {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake-error {
  animation: shakeError 0.4s ease-in-out;
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  .step-form-wrapper {
    padding: 25px 20px;
  }
}

/* Mobile Form Actions - Horizontal Layout */
@media (max-width: 768px) {
  .step-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: space-between !important;
  }
  .step-actions .btn-secondary,
  .step-actions .btn-primary,
  .step-actions button {
    flex: 1 !important;
    width: 100% !important;
    padding: 12px 10px !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
}

/* Ensure wizard navigation is clickable */
.step-indicator {
    pointer-events: auto !important;
    cursor: pointer !important;
}
.step-labels span {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* ==========================================================================
   Hero Cinematic Slider & CVR Styles (葬儀詐欺LP 特化)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active,
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-bg,
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  /* 左側の見出し・テキスト領域の可読性をしっかり確保しつつ、右側の映像・人物の視認性を保つバランス調整 */
  background: 
    linear-gradient(90deg, rgba(2, 12, 28, 0.85) 0%, rgba(4, 18, 38, 0.70) 30%, rgba(5, 15, 30, 0.40) 55%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.05) 100%),
    radial-gradient(circle at 75% 50%, transparent 45%, rgba(0, 5, 15, 0.45) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  margin-left: 5%;
  margin-top: 60px;
  padding: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.6s, transform 1s ease 0.6s;
}

.hero-slide.is-active .hero-content,
.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

/* Slide Adjustment for Left-Aligned Focus */
.hero-slide.hero-slide-adjust-left .hero-content {
  margin-left: 4%;
}

.hero-content h1,
.hero-content .hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-content .highlight {
  color: #f39c12;
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

.hero-content .highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(243, 156, 18, 0.3);
  z-index: -1;
}

.hero-content p,
.hero-content .hero-description {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.7;
  opacity: 1;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  color: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-cta-area {
  margin-top: 25px;
}

.hero-content .btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #fff !important;
  padding: 20px 48px;
  font-size: 1.3rem;
  font-weight: 900;
  border-radius: 100px;
  box-shadow: 0 15px 35px rgba(46, 204, 113, 0.45), 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s, background-color 0.4s, box-shadow 0.4s;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.hero-content .btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(46, 204, 113, 0.5), 0 8px 20px rgba(0, 0, 0, 0.25);
  filter: brightness(1.08);
}

.hero-price-tag:hover {
  transform: translateY(-2px);
  background: rgba(0, 25, 55, 0.92) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Hero Dots (Navigation) */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

/* スマホ表示最適化（求人広告詐欺LPと完全一致） */
@media screen and (max-width: 768px) {
  .hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 640px;
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  .hero-slide {
    align-items: center !important;
  }

  .hero .container {
    justify-content: center;
    padding: 0 16px;
  }

  .hero-slide-bg,
  .hero-video {
    object-position: 50% center !important;
  }

  .hero-slide-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 15, 35, 0.4) 40%, rgba(5, 15, 30, 0.88) 100%) !important;
  }

  .hero-content {
    padding: 20px 10px !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 60px !important;
    padding-bottom: 40px !important;
  }

  .hero-content h1,
  .hero-content .hero-title {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
    margin-bottom: 14px !important;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .hero-content p,
  .hero-content .hero-description {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .hero-cta-area {
    width: 100%;
    margin-top: 15px !important;
  }

  .hero-price-tag {
    width: 100% !important;
    max-width: 320px;
    padding: 8px 12px !important;
    font-size: 0.82rem !important;
  }

  .hero-content .btn-primary {
    width: 100% !important;
    max-width: 340px;
    padding: 14px 16px !important;
    font-size: 1.05rem !important;
    white-space: normal;
  }

  .hero-dots {
    bottom: 95px !important;
  }
}

/* Notice Banner */
.target-notice-banner {
  background: #fef2f2;
  border-bottom: 2px solid #fecaca;
  padding: 12px 16px;
  color: #991b1b;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

/* Sections Common */
.py-8 {
  padding: 60px 0;
}
.bg-light {
  background-color: #f8fafc;
}
.text-center {
  text-align: center;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 12px;
  line-height: 1.4;
}
.section-lead {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Trouble Cards */
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.trouble-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-left: 4px solid #ef4444;
}
.trouble-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin: 10px 0 8px;
}
.trouble-card p {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.6;
}
.trouble-callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.trouble-callout h3 {
  color: #b45309;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.trouble-callout p {
  color: #78350f;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Logic Steps */
.logic-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.logic-step-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
  border-top: 4px solid #1e3a8a;
}
.step-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #3b82f6;
  line-height: 1;
  margin-bottom: 12px;
}
.logic-step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 10px;
  line-height: 1.4;
}
.logic-step-card p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Price Card Main */
.price-card-main {
  max-width: 650px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 2px solid #1e3a8a;
  text-align: center;
}
.price-badge {
  display: inline-block;
  background: #1e3a8a;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.price-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 16px;
}
.price-num-wrap {
  margin-bottom: 20px;
}
.price-main-val {
  font-size: 3.2rem;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
}
.price-main-tax {
  font-size: 1.2rem;
  font-weight: 700;
  color: #4b5563;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}
.price-features li {
  font-size: 0.98rem;
  color: #374151;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.5;
}
.price-notice {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Attorney Box */
.attorney-box {
  max-width: 750px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.attorney-profile {
  display: flex;
  gap: 24px;
  align-items: center;
}
.attorney-img {
  width: 180px;
  height: 225px;
  object-fit: cover;
  border-radius: 10px;
}
.attorney-info {
  flex: 1;
}
.attorney-title {
  font-size: 0.82rem;
  color: #6b7280;
  display: block;
  margin-bottom: 4px;
}
.attorney-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 12px;
}
.attorney-sub {
  font-size: 0.88rem;
  font-weight: normal;
  color: #4b5563;
}
.attorney-bio {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 14px;
}
.attorney-points {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.point-tag {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}
@media (max-width: 768px) {
  .attorney-profile {
    flex-direction: column;
    text-align: center;
  }
  .attorney-img {
    width: 140px;
    height: 175px;
    margin: 0 auto;
  }
  .attorney-points {
    justify-content: center;
  }
}

/* FAQ Items */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-q {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.q-badge {
  background: #1e3a8a;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.q-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.45;
}
.faq-a {
  padding-left: 38px;
  font-size: 0.93rem;
  color: #4b5563;
  line-height: 1.6;
}

/* CTA Banner Card */
.cta-banner-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 40px 30px;
  color: #ffffff;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.cta-banner-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-banner-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 24px;
}
.cta-btn-wrap {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.btn-line-lg {
  background: #06c755;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 14px rgba(6,199,85,0.4);
}
.btn-line-lg:hover {
  background: #05b04b;
  transform: translateY(-2px);
}
.btn-mail-lg {
  background: #ffffff;
  color: #1e3a8a;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s;
}
.btn-mail-lg:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .cta-btn-wrap {
    flex-direction: column;
  }
  .btn-line-lg, .btn-mail-lg {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* Two Column Layout (Knowledge) */
.two-column-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.main-content {
  flex: 1;
  min-width: 0;
}
.service-sidebar {
  width: 340px;
  flex-shrink: 0;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.article-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.article-category {
  display: inline-block;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.article-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.5;
  margin-bottom: 10px;
}
.article-desc {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 14px;
}
.article-date {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ==========================================================================
   Subpage Shared Header Styles (.page-header)
   ========================================================================== */
.page-header {
  background: linear-gradient(135deg, #003366 0%, #001a33 100%);
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
  position: relative;
  border-bottom: 4px solid var(--accent-orange, #f39c12);
}
.page-header .page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.page-header .page-subtitle {
  font-size: 1.05rem;
  color: #e2e8f0;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.95;
}

/* ==========================================================================
   Flow Page Styles (/flow/)
   ========================================================================== */
.flow-steps-section {
  background: #f8fafc;
  padding: 60px 0 80px;
}
.flow-list {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.flow-list::before {
  content: '';
  position: absolute;
  top: 35px;
  bottom: 35px;
  left: 27px;
  width: 4px;
  background: #cbd5e1;
  border-radius: 2px;
}
.flow-step-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 80px;
}
.flow-step-item:last-child {
  margin-bottom: 0;
}
.flow-step-header {
  margin-bottom: 12px;
}
.flow-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003366 0%, #001a33 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 51, 102, 0.25);
  border: 4px solid #ffffff;
  z-index: 2;
  box-sizing: border-box;
}
.flow-step-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.85;
  color: #93c5fd;
  margin-bottom: 2px;
}
.flow-step-digit {
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
}
.flow-num--complete {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.flow-num--complete .flow-step-label {
  color: #fef3c7;
}
.flow-step-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #003366;
  margin: 0;
  line-height: 1.45;
  padding-top: 14px;
}
.flow-step-body {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.flow-step-body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #334155;
}

/* ==========================================================================
   Cost Page Styles (/cost/) - Mobile-First Luxury Refined Design
   ========================================================================== */
.cost-detail-section {
  background: #f8fafc;
  padding: 50px 0 80px;
}
.cost-page-container {
  max-width: 920px;
  margin: 0 auto;
}

/* 1. Main Price Card */
.cost-main-card {
  background: #ffffff;
  border-radius: 24px;
  border: 2px solid #003366;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.08);
  padding: 40px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}
.cost-card-header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 2px dashed #e2e8f0;
  margin-bottom: 30px;
}
.cost-plan-badge {
  display: inline-block;
  background: #003366;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.cost-plan-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #003366;
  margin-bottom: 16px;
  line-height: 1.4;
}
.cost-price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}
.cost-price-val {
  font-size: 3.8rem;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
}
.cost-price-tax {
  font-size: 1.3rem;
  font-weight: 800;
  color: #475569;
}
.cost-zero-notice {
  font-size: 0.95rem;
  color: #16a34a;
  font-weight: 700;
  margin: 0;
}

/* 2. Cost Items List (No clumsy table cells!) */
.cost-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.cost-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.cost-item-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.cost-item-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.cost-item-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.cost-item-badge.free {
  background: #dcfce7;
  color: #15803d;
}
.cost-item-badge.fixed {
  background: #e0f2fe;
  color: #0369a1;
}
.cost-item-badge.zero {
  background: #ffedd5;
  color: #c2410c;
}
.cost-item-badge.normal {
  background: #f1f5f9;
  color: #475569;
}
.cost-item-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  flex: 1;
  min-width: 140px;
}
.cost-item-amount {
  font-size: 1.25rem;
  font-weight: 900;
  color: #334155;
  white-space: nowrap;
  margin-left: auto;
}
.cost-item-amount small {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  margin-left: 2px;
}
.cost-item-amount.highlight-green {
  color: #15803d;
}
.cost-item-amount.highlight-blue {
  color: #003366;
}
.cost-item-amount.highlight-orange {
  color: #d97706;
}
.cost-item-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #64748b;
}

/* 3. Cost Points Box */
.cost-points-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 16px;
  padding: 28px 30px;
  text-align: left;
}
.cost-points-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 16px;
}
.cost-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cost-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.point-check {
  font-size: 1.1rem;
  color: #16a34a;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}
.point-text strong {
  display: block;
  font-size: 1rem;
  color: #14532d;
  margin-bottom: 2px;
}
.point-text p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #166534;
}

/* 3.5. Cost Notice Box (求人広告詐欺LP準拠) */
.cost-notice-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 26px;
  margin-top: 24px;
  text-align: left;
}
.cost-notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cost-notice-list li {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* 4. Cost Reduction Simulation */
.simulation-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  padding: 36px 30px;
  margin-bottom: 50px;
  text-align: center;
}
.simulation-tag {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.simulation-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #003366;
  margin-bottom: 28px;
}
.simulation-compare-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.simulation-box {
  flex: 1;
  min-width: 250px;
  padding: 24px 20px;
  border-radius: 16px;
  text-align: center;
}
.simulation-box--danger {
  background: #fff5f5;
  border: 1.5px solid #fecaca;
}
.simulation-box--success {
  background: #f0fdf4;
  border: 2px solid #86efac;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}
.simulation-box-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}
.simulation-box-amount {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 6px;
}
.simulation-box-amount.text-danger {
  color: #dc2626;
}
.simulation-box-amount.text-success {
  color: #15803d;
}
.simulation-box-sub {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}
.simulation-arrow {
  font-size: 2rem;
  color: #003366;
  font-weight: 900;
  flex-shrink: 0;
}
.simulation-result {
  margin-top: 24px;
  padding: 16px 20px;
  background: #fefce8;
  border: 1.5px solid #fef08a;
  border-radius: 12px;
  display: inline-block;
}
.simulation-result-text {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #854d0e;
}
.simulation-result-highlight {
  font-size: 1.6rem;
  color: #b45309;
  font-weight: 900;
}

/* 5. Comparison Section */
.comparison-section {
  margin-bottom: 50px;
}
.comparison-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #003366;
  text-align: center;
  margin-bottom: 8px;
}
.comparison-lead {
  font-size: 0.95rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 20px;
}
.table-scroll-hint {
  display: none;
}
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  background: #ffffff;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  text-align: left;
}
.comparison-table th {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}
.col-item {
  width: 25%;
  background: #003366;
  color: #ffffff;
}
.col-other {
  width: 37.5%;
  background: #475569;
  color: #ffffff;
  text-align: center;
}
.col-our {
  width: 37.5%;
  background: #f39c12;
  color: #ffffff;
  text-align: center;
  font-size: 1.05rem !important;
}
.comparison-table td {
  padding: 18px 20px;
  font-size: 0.95rem;
  line-height: 1.55;
  border-bottom: 1px solid #edf2f7;
  border-right: 1px solid #edf2f7;
  vertical-align: middle;
}
.comparison-table td:last-child {
  border-right: none;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.td-item {
  font-weight: 800;
  color: #1e293b;
  background: #f8fafc;
}
.td-other {
  text-align: center;
  color: #64748b;
}
.td-our {
  text-align: center;
  background: #fffdf5;
}
.td-highlight {
  font-weight: 900;
  color: #003366;
  font-size: 1.15rem;
}
.td-highlight small {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}
.text-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  display: block;
  margin-top: 4px;
}

/* 6. CTA Banner on Cost Page */
.cost-cta-banner {
  background: linear-gradient(135deg, #003366 0%, #001a33 100%);
  border-radius: 20px;
  padding: 40px 30px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 51, 102, 0.2);
}
.cost-cta-banner h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f39c12;
  margin-bottom: 10px;
  line-height: 1.4;
}
.cost-cta-banner p {
  font-size: 0.95rem;
  color: #e2e8f0;
  max-width: 650px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.cost-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cost-line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #06c755;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
  transition: transform 0.2s, background-color 0.2s;
}
.cost-line-btn:hover {
  background: #05b04b;
  transform: translateY(-2px);
}
.cost-web-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f39c12, #d35400);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(243, 156, 18, 0.35);
  transition: transform 0.2s;
}
.cost-web-btn:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Styles for Subpages
   ========================================================================== */
@media (max-width: 900px) {
  .two-column-layout {
    flex-direction: column;
    gap: 40px;
  }
  .service-sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 35px 16px;
  }
  .page-header .page-title {
    font-size: 1.65rem;
  }
  .page-header .page-subtitle {
    font-size: 0.92rem;
  }

  /* Flow Page Mobile */
  .flow-list::before {
    left: 22px;
  }
  .flow-step-item {
    padding-left: 60px;
    margin-bottom: 28px;
  }
  .flow-num {
    width: 48px;
    height: 48px;
    border-width: 3px;
    left: 0;
  }
  .flow-step-label {
    font-size: 0.55rem;
    margin-bottom: 1px;
  }
  .flow-step-digit {
    font-size: 0.95rem;
  }
  .flow-step-header h3 {
    font-size: 1.05rem;
    padding-top: 10px;
  }
  .flow-step-body {
    padding: 18px 18px;
  }
  .flow-step-body p {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  /* Cost Page Mobile */
  .cost-detail-section {
    padding: 30px 0 60px;
  }
  .cost-main-card {
    padding: 24px 16px;
    border-radius: 18px;
    margin-bottom: 36px;
  }
  .cost-card-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .cost-plan-title {
    font-size: 1.25rem;
  }
  .cost-price-val {
    font-size: 2.9rem;
  }
  .cost-price-tax {
    font-size: 1.1rem;
  }
  .cost-item-card {
    padding: 16px 14px;
  }
  .cost-item-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .cost-item-name {
    font-size: 1.02rem;
    min-width: auto;
  }
  .cost-item-amount {
    font-size: 1.1rem;
    width: 100%;
    text-align: right;
    margin-top: 4px;
  }
  .cost-item-desc {
    font-size: 0.86rem;
    margin-top: 4px;
  }
  .cost-points-box {
    padding: 20px 16px;
  }
  .cost-points-title {
    font-size: 1.08rem;
  }
  .point-text strong {
    font-size: 0.94rem;
  }
  .point-text p {
    font-size: 0.84rem;
  }
  .cost-notice-box {
    padding: 16px 14px;
    margin-top: 18px;
  }
  .cost-notice-list li {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  /* Simulation Mobile */
  .simulation-card {
    padding: 24px 16px;
    border-radius: 18px;
    margin-bottom: 36px;
  }
  .simulation-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }
  .simulation-arrow {
    transform: rotate(90deg);
    margin: -8px 0;
  }
  .simulation-box {
    min-width: 100%;
    padding: 18px 14px;
  }
  .simulation-box-amount {
    font-size: 1.9rem;
  }
  .simulation-result {
    width: 100%;
    padding: 14px;
  }
  .simulation-result-text {
    font-size: 0.98rem;
  }
  .simulation-result-highlight {
    font-size: 1.35rem;
  }

  /* Comparison Table Mobile */
  .table-scroll-hint {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
  }
  .table-scroll-hint-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
  }
  .comparison-title {
    font-size: 1.25rem;
  }
  .comparison-lead {
    font-size: 0.86rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
    font-size: 0.86rem;
  }

  /* CTA Banner Mobile */
  .cost-cta-banner {
    padding: 28px 18px;
    border-radius: 16px;
  }
  .cost-cta-banner h3 {
    font-size: 1.2rem;
  }
  .cost-cta-banner p {
    font-size: 0.88rem;
  }
  .cost-cta-btns {
    flex-direction: column;
    gap: 12px;
  }
  .cost-line-btn,
  .cost-web-btn {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.95rem;
  }
}
