/* =====================================================================
   Font — Inter unicode-range subset (英数字のみ)
   ===================================================================== */

@font-face {
  font-family: 'Inter-Subset';
  src: local('Inter'), local('Inter-Regular');
  unicode-range: U+0020-007E;
}

/* =====================================================================
   Animations  (src/styles/animations.css)
   ===================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.fade-up.visible        { opacity: 1; transform: translateY(0); }
.fade-up-delay-1        { transition-delay: 0.1s; }
.fade-up-delay-2        { transition-delay: 0.2s; }
.fade-up-delay-3        { transition-delay: 0.45s; }
.fade-up-delay-4        { transition-delay: 0.6s; }


body {
  background-color: var(--bg);
}

/* =====================================================================
   Shared utilities
   ===================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.section-head { text-align: center; margin-bottom: var(--space-14); }
.section-head h2 {
  font-family: var(--font-family);
  font-size: var(--text-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);;
  color: var(--navy);
  margin: 0;
  text-align: center;
  margin-inline: auto;
}
.section-sub {
  font-family: var(--font-family);
  font-size: var(--text-body-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-body-lg);
  letter-spacing: var(--ls-body-lg);
  color: var(--color-main);
  margin: 0 0 var(--space-8);
  text-align: center;
}
.section-sub-deco {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.section-sub-deco::before {
  content: '╲';
  font-weight: var(--fw-regular);
  color: var(--navy);
  opacity: 0.6;
  font-size: var(--text-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);;
}
.section-sub-deco::after {
  content: '╱';
  font-weight: var(--fw-regular);
  color: var(--navy);
  opacity: 0.6;
  font-size: var(--text-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);;
}

/* =====================================================================
   Line break control utilities
   ===================================================================== */

.pc-only     { display: inline; }
.tablet-only { display: none;   }
.sp-only     { display: none;   }

@media (max-width: 1023px) and (min-width: 768px) {
  .pc-only     { display: none;   }
  .tablet-only { display: inline; }
  .sp-only     { display: none;   }
}

@media (max-width: 767px) {
  .pc-only     { display: none;   }
  .tablet-only { display: none;   }
  .sp-only     { display: inline; }
}

/* =====================================================================
   GlobalNav
   ===================================================================== */

#global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease;
  width: 100%;
}
#global-nav.is-scrolled {
  background: var(--bg);
}
#global-nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bg);
  z-index: 101;
  transition: opacity 0.3s ease;
}
#global-nav.is-scrolled::after {
  opacity: 0;
}

.nav-inner {
  margin-inline: auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .nav-inner { padding: var(--space-4) var(--space-10); }
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img {
  height: var(--logo-h-sm);
  width: auto;
}
@media (min-width: 768px) {
  .nav-logo img { height: var(--logo-h-md); }
}
@media (min-width: 1024px) {
  .nav-logo img { height: var(--logo-h-lg); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-5);
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a, .nav-links button {
  font-size: var(--text-caption);

  letter-spacing: var(--ls-caption);

  line-height: var(--lh-caption);;;
  color: var(--color-body);
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-links a:hover, .nav-links button:hover { color: var(--navy); text-decoration: underline; }

.nav-divider {
  display: block;
  width: 1px;
  height: 16px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-cta {
  display: none;
  background: var(--navy);
  color: var(--white) !important;
  border: none;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caption);
  line-height: var(--lh-caption);;;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: filter 0.2s ease;
}
.nav-cta:hover { filter: brightness(1.2); }
@media (min-width: 768px) { .nav-cta { display: inline-block; } }

/* Login button (mobile only — shown left of hamburger) */
.nav-login-mobile {
  display: flex;
  align-items: center;
  font-size: var(--text-caption);
  letter-spacing: var(--ls-caption);
  line-height: var(--lh-caption);;;
  color: var(--color-body);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-login-mobile:hover { color: var(--navy); }
@media (min-width: 768px) { .nav-login-mobile { display: none; } }

/* Hamburger */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1);
  color: var(--color-main);
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
  position: relative;
}
.nav-hamburger span::before,
.nav-hamburger span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: currentColor;
  left: 0;
  transition: transform 0.25s;
}
.nav-hamburger span::before { top: -7px; }
.nav-hamburger span::after  { top:  7px; }

/* Mobile menu */
.nav-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-mobile-menu.is-open { max-height: 400px; }
.nav-mobile-menu li { position: relative; }
.nav-mobile-menu button,
.nav-mobile-menu a {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-body);
  letter-spacing: var(--ls-body);
  line-height: var(--lh-body);;;
  color: var(--color-main);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
}
.nav-mobile-menu button:hover,
.nav-mobile-menu a:hover { background: var(--surface); }

/* =====================================================================
   HeroSection
   ===================================================================== */

#hero-section {
  background: var(--bg);
  width: 100%;
}

/* SP: flex column */
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--section-py) var(--section-px);
  overflow: hidden;
}
/* PC: grid */
@media (min-width: 769px) {
  .hero-inner {
    display: grid;
    grid-template-areas:
      "top illustration"
      "bottom illustration";
    grid-template-columns: 580px 1fr;
    row-gap: var(--space-12);
    align-items: start;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    position: relative;
  }
}

/* Text blocks */
.hero-text-top {
  display: flex;
  flex-direction: column;
}
@media (min-width: 769px) {
  .hero-text-top {
    grid-area: top;
    margin-left: var(--section-py);
    margin-top: var(--space-12);
  }
}

.hero-text-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
@media (min-width: 769px) {
  .hero-text-bottom {
    grid-area: bottom;
    margin-left: var(--section-py);
    gap: var(--space-12);
  }
}

.hero-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-lead {
  font-family: var(--font-family);
  font-size: var(--text-body-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-body-lg);
  letter-spacing: var(--ls-body-lg);;
  color: var(--navy);
  margin: 0;
}

.hero-h1 {
  font-family: var(--font-family);
  font-size: var(--text-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);;
  color: var(--navy);
  margin: 0;
  white-space: nowrap;
}

.hero-body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);;
  color: var(--color-body);
  margin: 0;
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--navy);
  color: var(--white);
  border: none;
  width: 178px;
  height: 50px;
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: var(--ls-caption);;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s ease;
}
.btn-primary:hover { filter: brightness(1.2); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-sizing: border-box;
  width: 178px;
  height: 50px;
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: var(--ls-caption);;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.btn-outline:hover { background: rgba(32, 56, 100, 0.08); }

.hero-checks {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.hero-check-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-regular);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);;
  color: var(--navy);
}

.hero-check-icon {
  flex-shrink: 0;
}

.hero-illustration {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}
@media (min-width: 769px) {
  .hero-illustration {
    grid-area: illustration;
    width: 660px;
    max-width: none;
    height: auto;
    margin: 0 -var(--section-py) 0 0;
    align-self: center;
  }
}

/* ===== Hero tablet overrides ===== */
@media (max-width: 1180px) and (min-width: 769px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
  }
  .hero-text-top,
  .hero-text-bottom {
    padding-left: var(--section-px);
  }
  .hero-illustration {
    width: 80%;
    margin: 0 auto;
  }
  .hero-inner {
    padding-bottom: var(--space-8);
  }
}

/* ===== Hero SP overrides ===== */
@media (max-width: 768px) {
  .hero-inner {
    padding: var(--space-8) var(--section-px) var(--section-py);
    gap: var(--space-6);
    padding-bottom: var(--space-8);
  }
  .hero-text-top,
  .hero-text-bottom { text-align: left; }
  .hero-illustration {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .btn-primary,
  .btn-outline { width: 100%; }
  .hero-ctas {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* =====================================================================
   Logo Band
   ===================================================================== */

#logo-band {
  background: var(--bg);
  padding: var(--space-6) var(--section-px);
  overflow: hidden;
}
@media (min-width: 768px)  { #logo-band { padding: var(--space-8) var(--section-px); } }
@media (min-width: 1024px) { #logo-band { padding: var(--space-10) var(--section-px); } }
@media (max-width: 767px) {
  #logo-band {
    padding-left: var(--section-px);
    padding-right: var(--section-px);
  }
}

.logo-band-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6) var(--space-10);
  align-items: center;
  justify-items: center;
  margin: 0 auto;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .logo-band-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5) var(--space-8);
  }
  #logo-band .logo-band-grid img {
    height: 32px;
  }
}

@media (max-width: 767px) {
  .logo-band-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) var(--space-6);
  }
  #logo-band .logo-band-grid img {
    height: 32px;
  }
}

.logo-band-grid img {
  height: 40px;
  width: auto;
  object-fit: contain;
  object-position: center;
}

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

.hero-lead,
.hero-body,
.hero-ctas,
.hero-checks,
.hero-illustration {
  opacity: 0;
  animation: heroFadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-lead         { animation-delay: 0ms; }
.hero-illustration { animation-delay: 300ms; }
.hero-body         { animation-delay: 300ms; }
.hero-ctas         { animation-delay: 450ms; }
.hero-checks       { animation-delay: 600ms; }

.hero-h1 {
  opacity: 1;
  animation: none;
}

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

.hero-char {
  display: inline-block;
  opacity: 0;
  animation: charFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* =====================================================================
   PainSection
   ===================================================================== */

#pain-section {
  background: var(--bg);
  width: 100%;
  padding: var(--section-py) var(--section-px);
  position: relative;
}
@media (min-width: 768px)  { #pain-section { padding: var(--section-py) var(--section-px); } }
@media (min-width: 1024px) { #pain-section { padding: var(--section-py) var(--section-px); } }

/* Risk cards 2×3 grid */
.pain-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1) var(--space-8);
  margin: 0 auto var(--space-16);
}
@media (min-width: 768px) {
  .pain-cards {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }
}

.pain-card {
  position: relative;
  background: var(--navy);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-8);
  margin-top: var(--space-6);
  width: 100%;
  box-sizing: border-box;
}

.pain-card-icon {
  position: absolute;
  top: -20px;
  left: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pain-card p {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: var(--white);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);;
  margin: 0;
}
.pain-card p .hl {
  color: var(--accent);
  font-weight: var(--fw-bold);
}

/* Advisor bubble area */
.pain-advisor {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-10) var(--space-8) 0;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.pain-advisor-text {
  flex: 1;
  align-self: center;
  margin-bottom: var(--space-10);
}

.pain-advisor-title {
  font-family: var(--font-family);
  font-size: var(--text-h3);
  font-weight: var(--fw-bold);
  color: var(--navy);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  margin: 0 0 var(--space-5);
}

.pain-advisor-highlight {
  display: inline;
  padding: 0 var(--space-1);
  background-image: linear-gradient(transparent 55%, rgba(8, 180, 234, 0.35) 55%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.pain-advisor-highlight.is-active {
  background-size: 100% 100%;
}

.pain-advisor-body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  margin: 0;
}

.pain-advisor-illust {
  width: 50%;
  height: 200px;
  max-width: 50%;
  object-fit: contain;
  object-position: bottom right;
  align-self: flex-end;
}
@media (max-width: 1023px) and (min-width: 768px) {
  .pain-advisor-illust {
    max-width: 280px;
  }
}
@media (max-width: 767px) {
  .pain-advisor {
    min-height: unset;
    flex-direction: column;
  }
  .pain-advisor-illust {
    position: static;
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    object-position: bottom center;
    margin: 0 auto;
  }
  .pain-advisor-text {
    max-width: 100%;
    margin-bottom: 0;
  }
}

/* =====================================================================
   EducateSection
   ===================================================================== */

#educate-section {
  background: var(--bg);
  padding: var(--section-py) var(--section-px);
  position: relative;
}
@media (min-width: 768px)  { #educate-section { padding: var(--section-py) var(--section-px); } }
@media (min-width: 1024px) { #educate-section { padding: var(--section-py) var(--section-px); } }



#educate-section .section-head {
  margin-bottom: var(--space-3);
}
#educate-section .section-sub {
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: var(--lh-body-lg);
  margin-bottom: var(--space-14);
}

.educate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin: 0 auto var(--space-16);
}
@media (min-width: 768px)  { .educate-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .educate-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

.educate-card {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.educate-card-icon {
  display: flex;
  justify-content: center;
  padding-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.educate-card-body {
  padding: 0 var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.educate-card-title {
  font-family: var(--font-family);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  color: var(--color-main);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  text-align: center;
  margin: 0 0 var(--space-3);
}

.educate-card-text {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);;
  color: var(--color-body);
  margin: 0;
  text-align: left;
}

/* Authority quote */
.educate-quote {
  position: relative;
  width: 100%;
  margin: 0 auto 0;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  padding: var(--space-14) var(--space-12);
  box-sizing: border-box;
}

.educate-quote-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--accent);
  border: 2px solid var(--navy);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: var(--ls-caption);
  color: var(--navy);
}

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

.educate-quote-content {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.advisor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.educate-quote-text {
  font-family: var(--font-family);
  font-size: var(--text-body-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-main);
  line-height: var(--lh-body-lg);
  letter-spacing: var(--ls-body-lg);
  margin: 0;
}
.educate-quote-highlight {
  display: inline;
  padding: 0 var(--space-1);
  background-image: linear-gradient(transparent 55%, rgba(8, 180, 234, 0.35) 55%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.educate-quote-highlight.is-active {
  background-size: 100% 100%;
}
@media (max-width: 767px) {
  .educate-quote {
    padding-top: var(--space-16);
  }
  .educate-quote-badge {
    white-space: normal;
    text-align: center;
    width: calc(100% - 32px);
  }
  .educate-quote-content {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
  .educate-quote-text {
    text-align: left;
  }
}

/* =====================================================================
   SolutionSection
   ===================================================================== */

#solution-section {
  background: var(--bg);
  padding: var(--section-py) var(--section-px);
  position: relative;
}
@media (min-width: 768px)  { #solution-section { padding: var(--section-py) var(--section-px); } }
@media (min-width: 1024px) { #solution-section { padding: var(--section-py) var(--section-px); } }

#solution-section .section-head { margin-bottom: var(--space-3); }
#solution-section .section-sub {
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: var(--lh-body-lg);
  margin-bottom: var(--space-14);
}

/* Mobile/tablet stacked layout */
.solution-stacked { margin-bottom: var(--space-12); }
@media (min-width: 1024px) { .solution-stacked { display: none; } }

.solution-panel-mobile {
  position: relative;
  padding: var(--space-10) var(--space-6) var(--space-8);
  text-align: left;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-sm);
}
.solution-panel-mobile--before {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: var(--space-8);
}
.solution-panel-mobile--after {
  background: var(--navy);
  border: none;
  border-radius: var(--radius-md);
}

/* Desktop side-by-side */
.solution-desktop {
  display: none;
  margin-top: var(--space-4);
  margin-bottom: 0;
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
}
@media (min-width: 1024px) { .solution-desktop { display: flex; } }

.solution-half {
  flex: 1;
  position: relative;
  padding: var(--space-12) var(--space-10);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.solution-half--before {
  background: var(--white);
  border-right: 2px solid var(--navy);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
.solution-half--after {
  background: var(--navy);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* Shared panel parts */
.solution-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caption);
  line-height: var(--lh-caption);;;
  color: var(--navy);
  border-radius: var(--radius-full);
  z-index: 1;
  white-space: nowrap;
  box-sizing: border-box;
}
.solution-label--after { background: var(--accent); }
.solution-label--before { background: var(--white); }

.solution-title-before {
  font-family: var(--font-family);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  color: var(--color-main);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);;
  margin: 0 0 var(--space-6);
}
.solution-title-after {
  font-family: var(--font-family);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  color: var(--white);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);;
  margin: 0 0 var(--space-6);
}

.solution-list { margin-bottom: var(--space-6); }
.solution-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.solution-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.solution-dot--before { background: var(--navy); }
.solution-dot--after  { background: var(--white); }

.solution-item-text-before {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);;
  color: var(--color-body);
}
.solution-item-text-after {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);;
  color: var(--white);
}

.solution-tag {
  align-self: flex-start;
  font-family: var(--font-family);
  font-size: var(--text-micro);
  font-weight: var(--fw-regular);
  color: var(--color-main);
  line-height: 1;
  letter-spacing: var(--ls-micro);;
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-2);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.solution-tag--before {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--color-main);
}
.solution-tag--after {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--navy);
  font-weight: var(--fw-semibold);
}

/* =====================================================================
   HowItWorksSection
   ===================================================================== */

#how-it-works {
  background: var(--bg);
  padding: var(--section-py) var(--section-px);
  position: relative;
}
@media (min-width: 768px)  { #how-it-works { padding: var(--section-py) var(--section-px); } }
@media (min-width: 1024px) { #how-it-works { padding: var(--section-py) var(--section-px); } }

#how-it-works .section-head { margin-bottom: var(--space-3); }
#how-it-works .section-sub {
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: var(--lh-body-lg);
  margin-bottom: var(--space-14);
}

/* Flow rows */
.flow-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}
@media (min-width: 1024px) { .flow-rows { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); } }

.flow-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  justify-content: center;
}
@media (min-width: 1024px) { .flow-row { flex-direction: row; align-items: stretch; gap: 0; justify-content: center; } }
@media (min-width: 1024px) { .flow-row:first-child { padding-left: calc(var(--space-2) * 2 + 1em); } }

.flow-node-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 224px;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .flow-node-wrap { flex-direction: row; align-items: stretch; }
}

.flow-node {
  width: 100%;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  position: relative;
  flex-shrink: 0;
}

/* タブレット・SP用に最大幅を広げる */
@media (max-width: 1023px) {
  .flow-node {
    width: 100%;
    align-self: stretch;
  }
  .flow-node-wrap {
    width: 100%;
  }
  .flow-rows {
    width: 100%;
  }
  .flow-row {
    width: 100%;
    align-items: center;
  }
}

.flow-node--active  { background: var(--white); border: 2px solid var(--navy); }
.flow-node--default { background: var(--white); border: 2px solid var(--navy); }

.flow-step-pill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-4);
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caption);
  line-height: var(--lh-caption);;;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-sizing: border-box;
  z-index: 1;
}

.flow-node-head {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-8) var(--space-6);
}

.flow-node-icon {
  font-size: var(--icon-step);
  line-height: 1;
}

.flow-node-label {
  font-family: var(--font-family);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  color: var(--color-main);
  text-align: center;
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);;
  margin: 0;
}

.flow-node-divider {
  width: 100%;
  padding: 0 var(--space-8);
}
.flow-node-divider hr {
  border: none;
  border-top: 1px solid var(--border);
}

.flow-node-sub {
  width: 100%;
  padding: var(--space-6) var(--space-8) var(--space-8);
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);;
  color: var(--color-body);
  text-align: center;
  margin: 0;
}

/* Arrows between nodes */
.flow-arrow {
  font-size: var(--text-body-lg);
  color: var(--navy);
  line-height: 1;
  letter-spacing: var(--ls-body-lg);;
  padding: var(--space-1) 0;
  transform: rotate(90deg);
}
@media (min-width: 1024px) {
  .flow-arrow { transform: rotate(0deg); padding: 0 var(--space-2); display: flex; align-items: center; }
}

/* Row connector arrow (between row 1 and row 2, desktop only) */
.flow-row-arrow {
  display: none;
  font-size: var(--text-body-lg);
  color: var(--navy);
  line-height: 1;
  letter-spacing: var(--ls-body-lg);;
  align-self: center;
}
@media (min-width: 1024px) { .flow-row-arrow { display: flex; align-items: center; padding: 0 var(--space-2); } }

/* Mobile row separator */
.flow-row-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
}
@media (min-width: 1024px) { .flow-row-sep { display: none; } }
@media (max-width: 1023px) {
  .flow-row-sep {
    margin-top: 0;
  }
}

/* Divider between consultation card and screenshots */
.flow-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-14) 0;
}

/* Plus separator */
.flow-plus {
  display: flex;
  justify-content: center;
  margin: var(--space-12) 0;
}

/* Consultation card */
.flow-consultation-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--accent);
  border: 2px solid var(--navy);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  margin: 0 auto;
  box-sizing: border-box;
}

.flow-consultation-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.flow-consultation-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
}

.flow-consultation-text {
  font-family: var(--font-family);
  font-size: var(--text-body-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-body-lg);
  line-height: var(--lh-body-lg);;;
  color: var(--color-main);
}

/* Screenshots area */
.screens-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  margin-top: 0;
  margin-inline: auto;
  box-sizing: border-box;
}

.screens-area-header {
  display: flex;
  justify-content: center;
}

.screens-area-logo {
  height: 28px;
  width: auto;
}

.screens-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.screen-frame {
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.screen-notch { display: none; }

.screen-inner {
  filter: drop-shadow(0 2px 6px rgba(32, 56, 100, 0.10))
          drop-shadow(0 8px 16px rgba(32, 56, 100, 0.18));
}

.screen-inner img {
  width: 155px;
  height: auto;
  display: block;
}

.screen-frame:hover {
  transform: scale(1.04);
}

.screens-note svg {
  flex-shrink: 0;
  display: block;
}

.screens-note {
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);;
  margin: var(--space-8) auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-2);
  width: fit-content;
  text-align: left;
}
@media (min-width: 768px) {
  .screens-note { align-items: center; max-width: none; text-align: center; margin-top: var(--space-10); }
}
@media (max-width: 767px) {
  .screens-note {
    align-items: flex-start;
  }
  .screens-note svg {
    flex-shrink: 0;
    margin-top: var(--space-1);
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: var(--radius-md);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: var(--text-h2);
  line-height: 1;
  letter-spacing: var(--ls-h2);;
  cursor: pointer;
}

/* =====================================================================
   WhyUsSection
   ===================================================================== */

#why-us {
  background: var(--bg);
  padding: var(--section-py) var(--section-px);
  position: relative;
}
@media (min-width: 768px)  { #why-us { padding: var(--section-py) var(--section-px); } }
@media (min-width: 1024px) { #why-us { padding: var(--section-py) var(--section-px); } }

#why-us .section-head { margin-bottom: var(--space-3); }
#why-us .section-sub { font-weight: var(--fw-regular); color: var(--color-body); line-height: var(--lh-body-lg); margin-bottom: var(--space-14); }

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: var(--section-py);
  margin-bottom: var(--section-py);
}
@media (min-width: 1024px) {
  .why-us-list { align-items: flex-start; }
}

.why-us-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 1024px) {
  .why-us-row {
    flex-direction: row;
    align-items: center;
    gap: var(--space-12);
    width: calc(100% * 2 / 3);
  }
  .why-us-row:nth-child(even) {
    align-self: flex-end;
  }
}

.why-us-illu {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .why-us-illu { width: 206px; }
}

.why-us-illust {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-width: 206px;
}

.why-us-text { flex: 1; }

.why-us-heading {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.why-us-num {
  font-family: var(--font-family);
  font-size: var(--text-deco);
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: var(--ls-deco);;
  color: var(--cyan);
  flex-shrink: 0;
}

.why-us-title {
  font-family: var(--font-family);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  color: var(--color-main);
  margin: 0;
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);;
}

.why-us-body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);;
  margin: 0 0 var(--space-5);
}

.why-us-badge {
  font-family: var(--font-family);
  font-size: var(--text-h3);
  font-weight: var(--fw-bold);
  color: var(--navy);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);;
  display: inline;
  padding: 0 var(--space-1);
  background-image: linear-gradient(transparent 55%, rgba(8, 180, 234, 0.35) 55%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-us-badge.is-active {
  background-size: 100% 100%;
}

/* Stats block */
.whyus-stats {
  display: grid;
  grid-template-columns: 1fr;
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
@media (min-width: 768px) { .whyus-stats { grid-template-columns: repeat(3, 1fr); } }

.whyus-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-14) var(--space-6);
}
@media (max-width: 767px) {
  .whyus-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--border);
  }
}
@media (min-width: 768px) {
  .whyus-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 56px;
    bottom: 56px;
    right: 0;
    width: 1px;
    background: var(--border);
  }
}

.whyus-stat-value {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin: 0;
}
@media (min-width: 768px) { .whyus-stat-value { min-height: 64px; } }

.whyus-stat-num {
  font-family: var(--font-family);
  font-size: var(--text-deco);
  font-weight: var(--fw-bold);
  color: var(--navy);
  line-height: 1;
  letter-spacing: var(--ls-deco);;
}

.whyus-stat-unit {
  font-family: var(--font-family);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  color: var(--navy);
  line-height: 1;
  letter-spacing: var(--ls-h3);;
}

.whyus-stat-value--text {
  font-family: var(--font-family);
  font-size: var(--text-h1);
  font-weight: var(--fw-bold);
  color: var(--navy);
  line-height: 1.5;
  letter-spacing: var(--ls-h1);;
  display: block;
  margin: 0;
}

.whyus-stat-label {
  font-family: var(--font-family);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  color: var(--color-main);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);;
  margin: 0;
}

.whyus-stat-desc {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);;
  margin: 0;
}

/* =====================================================================
   SocialProofSection
   ===================================================================== */

#cases {
  background: var(--bg);
  padding: var(--section-py) var(--section-px);
  position: relative;
}
@media (min-width: 768px)  { #cases { padding: var(--section-py) var(--section-px); } }
@media (min-width: 1024px) { #cases { padding: var(--section-py) var(--section-px); } }

#cases .section-head { margin-bottom: var(--space-3); }
#cases .section-sub { font-weight: var(--fw-regular); color: var(--color-body); line-height: var(--lh-body-lg); margin-bottom: var(--space-14); }

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) { .cases-grid { grid-template-columns: 1fr 1fr; } }

.case-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.case-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.case-company {
  font-family: var(--font-family);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  color: var(--color-main);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);;
  margin: 0;
}

.case-badge {
  font-family: var(--font-family);
  font-size: var(--text-micro);
  font-weight: var(--fw-regular);
  color: var(--color-main);
  line-height: 1;
  letter-spacing: var(--ls-micro);;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-2);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.case-card-body {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
@media (max-width: 1023px) { .case-card-body { flex-direction: column; } }

.case-avatar {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: block;
}

.case-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.case-quote {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);;
  margin: 0;
}

.case-person {
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);;
  margin: 0;
}

/* =====================================================================
   PricingSection
   ===================================================================== */

#pricing {
  background: var(--bg);
  padding: var(--section-py) var(--section-px);
  position: relative;
}
@media (min-width: 768px)  { #pricing { padding: var(--section-py) var(--section-px); } }
@media (min-width: 1024px) { #pricing { padding: var(--section-py) var(--section-px); } }

#pricing .section-head { margin-bottom: var(--space-3); }
#pricing .section-sub { font-weight: var(--fw-regular); color: var(--color-body); line-height: var(--lh-body-lg); margin-bottom: var(--space-14); }

.pricing-block-label {
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: 1;
  letter-spacing: var(--ls-caption);
  margin: var(--space-14) 0 var(--space-6);
}
.pricing-block-label:first-of-type {
  margin-top: 0;
}

/* Corp plans */
.pricing-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
@media (min-width: 768px) { .pricing-plans { grid-template-columns: 1fr 1fr; } }

.pricing-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-md);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pricing-badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pricing-badge {
  font-family: var(--font-family);
  font-size: var(--text-micro);
  font-weight: var(--fw-regular);
  color: var(--color-main);
  line-height: 1;
  letter-spacing: var(--ls-micro);;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.pricing-badge--primary { background: var(--white); }
.pricing-badge--gray { background: var(--white); }

.pricing-name {
  font-family: var(--font-family);
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  color: var(--color-main);
  line-height: 1;
  letter-spacing: var(--ls-h2);;
  margin: 0;
}

.pricing-price {
  font-family: var(--font-family);
  font-size: var(--text-body-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-main);
  line-height: 1;
  letter-spacing: var(--ls-body-lg);;
  margin: 0;
}

.pricing-sub-price {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);;
  margin: 0;
}

.pricing-note {
  font-family: var(--font-family);
  font-size: var(--text-micro);
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: var(--lh-micro);
  letter-spacing: var(--ls-micro);;
  margin: 0;
}

.pricing-card-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: var(--color-main);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);;
}

.pricing-feature svg {
  flex-shrink: 0;
}

.pricing-cta {
  width: 100%;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-body);
  line-height: var(--lh-body);;;
  cursor: pointer;
  transition: filter 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-cta:hover { filter: brightness(1.2); }

.pricing-card--allinone {
  border: 1px solid var(--border);
}

.pricing-price-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pricing-cta--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  transition: background 0.2s ease;
}
.pricing-cta--outline:hover { filter: none; background: rgba(32, 56, 100, 0.08); }

/* Enterprise banner */
.pricing-enterprise {
  background: var(--navy);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  border-radius: var(--radius-lg);
}
@media (min-width: 768px) {
  .pricing-enterprise { flex-direction: row; align-items: center; }
}

.pricing-enterprise-title {
  font-family: var(--font-family);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  color: var(--white);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);;
  margin: 0 0 var(--space-2);
}

.pricing-enterprise-desc {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);;
  margin: 0;
}

.pricing-enterprise-btn {
  background: var(--white);
  color: var(--navy);
  border: none;
  width: 196px;
  height: 48px;
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-body);
  line-height: var(--lh-body);;;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.2s ease;
}
.pricing-enterprise-btn:hover { filter: brightness(1.05); }

/* Personal divider */
.pricing-divider { border: none; border-top: 1px solid var(--border); margin: var(--space-14) 0 var(--space-6); }

/* Free plan link */
.pricing-free {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}



.pricing-free-desc {
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-regular);
  color: var(--color-body);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);;
  margin: 0;
  flex: 1;
}

.pricing-free-link {
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-regular);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pricing-free-link:hover { text-decoration: underline; }
.pricing-free-note {
  font-size: var(--text-micro);
  line-height: var(--lh-micro);
  letter-spacing: var(--ls-micro);
}
@media (max-width: 767px) {
  .pricing-free {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .pricing-free-link {
    white-space: normal;
  }
}

/* =====================================================================
   FaqSection
   ===================================================================== */

#faq {
  background: var(--bg);
  padding: var(--section-py) var(--section-px);
  position: relative;
}
@media (min-width: 768px)  { #faq { padding: var(--section-py) var(--section-px); } }
@media (min-width: 1024px) { #faq { padding: var(--section-py) var(--section-px); } }

#faq .section-head { margin-bottom: var(--space-3); }
#faq .section-sub { font-weight: var(--fw-regular); color: var(--color-body); line-height: var(--lh-body-lg); margin-bottom: var(--space-14); }

.faq-list {
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background-color 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-item:hover { background-color: var(--surface); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  padding: var(--space-5) var(--space-6);
  background: transparent;
  border: none;
  cursor: pointer;
  min-height: 69px;
  box-sizing: border-box;
}

.faq-question-text {
  font-family: var(--font-family);
  font-size: var(--text-body-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-main);
  line-height: var(--lh-body-lg);
  letter-spacing: var(--ls-body-lg);;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
  display: flex;
  align-items: center;
}
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

/* Grid-rows accordion (matches React grid-template-rows trick) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

.faq-answer-inner { overflow: hidden; }

.faq-answer-body {
  padding: 0 var(--space-6) var(--space-5);
}
.faq-answer-divider { border: none; border-top: 1px solid var(--border); margin-bottom: var(--space-4); }
.faq-answer-text { font-size: var(--text-body); font-weight: var(--fw-regular); color: var(--color-body); line-height: var(--lh-body);
  letter-spacing: var(--ls-body);; margin: 0; }

/* =====================================================================
   FinalCTASection
   ===================================================================== */

#final-cta {
  background: var(--bg);
  color: var(--navy);
  padding: var(--section-py) var(--section-px);
  text-align: center;
  position: relative;
}
@media (min-width: 768px)  { #final-cta { padding: var(--section-py) var(--section-px); } }
@media (min-width: 1024px) { #final-cta { padding: var(--section-py) var(--section-px); } }

.final-cta-inner {
  margin-inline: auto;
}

.final-cta-h2 {
  font-family: var(--font-family);
  font-size: var(--text-h1);
  font-weight: var(--fw-bold);
  color: var(--navy);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);;
  margin: 0 0 var(--space-3);
}

.final-cta-sub {
  font-family: var(--font-family);
  font-size: var(--text-body-lg);
  font-weight: var(--fw-regular);
  color: var(--navy);
  line-height: var(--lh-body-lg);
  letter-spacing: var(--ls-body-lg);;
  margin: 0 0 var(--space-14);
  text-align: center;
}

.final-cta-buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-14);
  flex-wrap: wrap;
}

.final-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 228px;
  height: 54px;
  background: var(--navy);
  color: var(--white);
  border: none;
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: var(--ls-caption);;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: filter 0.2s ease;
  flex-shrink: 0;
}
.final-cta-btn-primary:hover { filter: brightness(1.05); }

.final-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 228px;
  height: 54px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: var(--ls-caption);;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.final-cta-btn-outline:hover { background: rgba(32, 56, 100, 0.08); }

.final-trust {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}
.final-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-regular);
  color: var(--navy);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);;
}

.illustration-finalcta-left {
  position: absolute;
  left: 100px;
  top: 120px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.illustration-finalcta-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.illustration-finalcta-right {
  position: absolute;
  right: 100px;
  bottom: 120px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.illustration-finalcta-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1180px) {
  #final-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .final-cta-inner {
    position: static;
    width: 100%;
  }
  .illustration-finalcta-left {
    position: static;
    display: block;
    width: 200px;
    height: auto;
    margin-top: 0;
    margin-bottom: var(--space-4);
    margin-left: var(--space-6);
    margin-right: auto;
  }
  .illustration-finalcta-right {
    position: static;
    display: block;
    width: 200px;
    height: auto;
    margin-top: var(--space-4);
    margin-bottom: 0;
    margin-left: auto;
    margin-right: var(--space-6);
  }
}

/* =====================================================================
   Footer
   ===================================================================== */

#footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
}

.footer-grid {
  margin-inline: auto;
  padding: var(--space-12) var(--space-5);
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: var(--space-8) var(--space-10);
}
/* PC (1024px+) */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: auto auto auto auto;
    padding: var(--space-16) var(--space-10);
  }
}

/* Tablet (768px–1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    padding: var(--space-14) var(--space-8);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* SP (767px-) */
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

.footer-logo { height: 32px; width: auto; margin-bottom: var(--space-4); display: block; }
.footer-tagline { font-size: var(--text-caption); font-weight: var(--fw-regular); color: var(--white); line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);; margin: 0; }

.footer-col-heading {
  font-family: var(--font-family);
  font-size: var(--text-caption);
  font-weight: var(--fw-bold);
  color: var(--white);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col p:not(.footer-col-heading) { margin: 0 0 var(--space-2); }
.footer-col a, .footer-col button {
  font-size: var(--text-caption);
  font-weight: var(--fw-regular);
  color: var(--white);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.footer-col a:hover, .footer-col button:hover { text-decoration: underline; }


.footer-sns {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.footer-sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-out;
}
.footer-sns-link:hover { transform: scale(1.2); }

.footer-bottom {
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-5) 0;
  margin-inline: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}
@media (max-width: 1023px) and (min-width: 768px) {
  .footer-bottom { margin-inline: var(--space-8); }
}
@media (min-width: 1024px) {
  .footer-bottom {
    margin-inline: auto;
    padding-inline: var(--space-10);
    border-top: none;
    position: relative;
  }
  .footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 1px;
    background: rgba(255,255,255,0.1);
  }
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}
.footer-legal-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-caption);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-caption);
  line-height: var(--lh-caption);;;
  color: var(--white);
  text-decoration: none;
}
.footer-legal-links a:hover {
  text-decoration: underline;
}
.footer-copy {
  font-size: var(--text-caption);
  font-weight: var(--fw-regular);
  color: var(--white);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);;
}

/* =====================================================================
   Back to top FAB
   ===================================================================== */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(32, 56, 100, 0.3);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-2px);
}
