/* ==================== Header ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  padding: 0 1rem;
}

.header-logo img {
  width: 150px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--color-muted-foreground); 
  text-align: center;
  position: relative;
  transition: color 0.2s ease-out;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

@media (hover: hover) {
.nav-link:hover::after {
  opacity: 1;
}

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

.nav-link .en {
  display: block;
  font-size: var(--fs-nav);
  font-weight: 500;
  color: var(--color-foreground);
  transition: color 0.2s ease-out;
}

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

.nav-link .ja {
  display: block;
  font-size: var(--fs-nav);
  color: var(--color-muted-foreground);
  transition: color 0.2s ease-out;
}

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

.header-cta {
  margin-left: 8px;
  font-size: var(--fs-nav);
  padding: 12px 24px;
}

.header-cta .btn-arrow { font-size: var(--fs-nav); }

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header responsive */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .hamburger-btn { display: flex; }
}

@media (max-width: 767px) {
  .header-inner { height: 64px; }
  .header-logo img { 
    width: 110px;
  }
}


/* ==================== Mobile Navigation ==================== */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.is-open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  height: 100vh;
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
  background: var(--color-white);
  flex-shrink: 0;
}

.mobile-nav-header img {
  width: 150px;
  height: auto;
}

.mobile-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  line-height: 1;
}

.mobile-close-btn svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
}

.mobile-nav-links {
  padding: 2rem 7vw;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
  transition: opacity 0.2s;
  font-weight: 700;
  font-size: var(--fs-lead);
  letter-spacing: 0.05em;
}

.mobile-nav-link:hover { opacity: 0.7; }
.mobile-nav-link .arrow { font-size: var(--fs-lead); }

.mobile-nav-ctas {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

@media screen and (max-width: 1024px) {
.mobile-cta-btn {
  max-width: 300px;
}
}
/* ==================== Hero ==================== */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 97%), hsl(199, 100%, 44%);
}

.hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  user-select: none;
  height: 700px;
  margin: 0px 0px 0px 0px;
  width: 700px;
  max-width: 100%;
}

.hero-watermark img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%; 
  max-width: 1500px;
  justify-content: center;
  margin: 0 auto;
  padding: 1rem 4vw;
  gap: 1.875rem;
  height: calc(clamp(20vh, 80vh, 90vh) - 80px);
}

.hero-text {
  flex: 1;
  min-width: 0;
  padding: 80px 0;
}

.hero-headline {
  font-size: var(--fs-hero-h);
  font-weight: 300;
  color: #fff;
  line-height: 1.4;
  letter-spacing: 0.2em;
  white-space: pre-line;
  /* white-space: nowrap; */
  width: fit-content;
}

.hero-sub-headline {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-body);
  line-height: 1.4;
  white-space: pre-line;
  margin-top: 10px;
  width: 100%;
}

.hero-logo {
  margin-top: 24px;
}

.hero-logo img {
  max-height: 4.375rem;
  height: 100%;
  width: auto;
}

.hero-img {
  flex: 1.25;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  padding-bottom: 0;
  /* align-self: flex-start; */
}

.hero-img img {
  width: 100%;
}

.hero-cta-area {
  background: #fff;
  height: 20vh;
  position: relative;
  z-index: 1;
}

.hero-cta-inner {
  padding: 2rem 7vw;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 24px;
}

/* Hero responsive */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    height: 75vh;
    min-height: unset;
    padding: 0 2rem;
    gap: 1rem;
  }

  .hero-text {
    padding: 48px 0 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
  }

  .hero-headline {
    font-size: 2rem;
    text-align: start;
    width: fit-content;
  }

  .hero-sub-headline {
    text-align: start;
  }

  .hero-logo {
    display: flex;
    justify-content: start;
  }

  .hero-img {
    justify-content: center;
    align-items: center;
    padding-bottom: 32px;
    width: 100%;
    flex: 1;
  }

  .hero-img img {
    max-width: 480px;
    width: 100%;
    height: auto;
  }
  .hero-cta-inner {
    align-items: center;
    justify-content: center;
    padding: 3.125rem 2rem;
  }
}

@media (max-width: 767px) {
  .hero-text {
    text-align: center;
    align-items: center;
  }
  .hero-headline,
  .hero-sub-headline {
    text-align: center;
  }
  .hero-headline {
    font-size: 1.25rem;
  }
  .hero-logo img {
    height: 3.125rem;
  }

  .hero-inner {
    width: 100%;
    padding: 0 1.25rem;
  }

  .hero-img img {
    max-width: 360px;
  }
  .hero-watermark {
    width: 100%;
    margin-left: 0;
    padding: 0 1.25rem;
  }
  .hero-cta-inner {
    padding: 2rem 1.25rem;
    gap: 0.625rem;
  }
}

/* ==================== Problem (PROBLEM) ==================== */
.problem-container {
  max-width: 1500px;
  margin: 0 auto;
}
.feature-intro { background: var(--color-background); }

.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
}

.problem-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 20px;
  height: 150px;
  justify-content: center;
  padding: 10px;
  width: 100%;
  max-width: 350px;
}

.problem-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: hsl(0, 0%, 87%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}

.problem-text {
  font-size: var(--fs-problem-text);
  font-weight: 400;
  color: var(--color-foreground);
  line-height: 1.7;
}
.problem-text strong {
  font-weight: 700;
}
.problem-illustration {
  margin-top: 2.5rem;
}
.problem-illustration img {
  width: 100%;
  height: auto;
}

/* Problem responsive */
@media (max-width: 1024px) {
  .problem-cards { 
    grid-template-columns: 1fr; 
  }
  .problem-card {
    justify-content: flex-start;
  }
}
@media (max-width: 767px) {
  .problem-icon {
    width: 20px;
    height: 20px;
  }
  
  .problem-icon svg {
    width: 14px;
    height: 14px;
  }
  .problem-card {
    padding: 10px 30px;
  }
}

/* ==================== Service Detail (SOLUTION) ==================== */

.service-subtitle {
  color: var(--color-primary);
  font-size: var(--fs-section-sub);
  font-weight: 600;
  margin-top: 24px;
}

.service-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.service-title-row img { 
  width: 50% ;
  height: auto; 
}

.service-title-suffix {
  font-size: var(--fs-section-h);
  font-weight: 700;
  line-height: 1;
}

.service-desc {
  margin-top: 4.375rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.service-desc p {
  font-size: var(--fs-lead);
  line-height: 1.8;
  margin: 10px 0;
  color: var(--color-foreground);
}

.service-screenshot {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.service-screenshot img {
  width: 80%;
  max-width: 1920px;
}
.service-detail.section-py {
  background: #E5F0F8;
}

/* Service Detail responsive */
@media screen and (max-width: 1024px) {
  .service-detail.section-py {
    padding: 3rem 7vw 0;
  }
  .service-detail {
    padding: 0 0 0;
  }
  .service-desc {
    margin-top: 3.125rem;
  }
  .service-title-row img { 
    height: 46px; 
  }
 .service-screenshot img {
  width: 100%;
  }
}

@media (max-width: 767px) {
  .service-detail {
    padding: 0 1.25rem 0;
  }
  .service-title-row img {
    height: auto;
}
}


/* ==================== Merit ==================== */
.merit-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 90%;
  margin: 0 auto;
}

.merit-card-wrap {
  flex: 1;
  position: relative;
  padding-top: 20px;
}

.merit-check-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.merit-check-icon svg {
  width: 21px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}

.merit-card {
  background: var(--color-secondary);
  border-radius: 16px;
  box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.2);
  padding: 50px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 350px;
  gap: 1.25rem;
}

.merit-card img {
  height: 160px;
  object-fit: contain;
}

.merit-card p {
  font-size: var(--fs-body);
  font-weight: 400;
  white-space: pre-line;
  line-height: 1.7;
}

/* Merit responsive */
@media (max-width: 1024px) {
  .merit-card-wrap { 
    width: 100%; 
  }
  
  .merit-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  .merit-cards .merit-card-wrap:nth-child(3) {
    grid-column: span 2;
    width: 332.5px;
    margin: 0 auto;
  }
  .merit-card {
    width: 100%;
    margin: 0 auto;
    gap: 2.5rem;
  }
}
@media screen and (max-width: 768px) {
  .merit-cards {
    grid-template-columns: 1fr;
  }
  .merit-cards .merit-card-wrap:nth-child(3) {
    grid-column: auto;
    width: 100%;
  }
}

/* ==================== Use Case (SERVICE) ==================== */
.usecase-section { background: var(--color-background); }

.usecase-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 6.25rem;
}

.usecase-card-wrap {
  position: relative;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
}

.usecase-number {
  position: absolute;
  top: 0;
  left: 20%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: clamp(64px, 8vw, 64px);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
}

.usecase-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 0px 10px #aaaaaa;;
  margin-top: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.usecase-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 24px 8px;
}

.usecase-card-img img {
  height: 112px;
  object-fit: contain;
}

.usecase-card-body {
  padding: 8px 1.5rem 2.5rem;
  text-align: center;
}

.usecase-card-body h3 {
  font-size: var(--fs-usecase-card-title);
  font-weight: 600;
  color: var(--color-primary);
}

.usecase-card-body p {
  font-size: var(--fs-body);
  font-weight: 400; 
  color: var(--color-muted-foreground);
  line-height: 1.6;
  margin-top: 1rem;
}

/* Use Case responsive */
@media (max-width: 1024px) {
  .usecase-cards { grid-template-columns: 1fr; }

  .usecase-card-wrap {
    width: 100%;
    margin: 0 auto;
  }
  .usecase-card-img img {
    width: 180px;
    height: auto;
  }
}

@media (max-width: 767px) {
  .usecase-card-body h3 { font-size: var(--fs-usecase-card-title-sp); }
}


/* ==================== Pricing ==================== */
.pricing-section { background: var(--color-secondary); }

.pricing-container {
  max-width: 1300px;
  margin: 0 auto;
}

.pricing-inner {
  background: #fff;
  border-radius: 16px;
  padding: 3.125rem 6.25rem;
  box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.2);
}

.pricing-subtitle {
  text-align: center;
  font-size: var(--fs-lead-responsive);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-muted-foreground);
  white-space: pre-line;
}

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

.plan-card {
  border-radius: 8px;
  border: 5px solid;
  overflow: hidden;
  text-align: center;
}

.plan-card--1 { border-color: var(--color-price-1); }
.plan-card--2 { border-color: var(--color-price-2); }
.plan-card--3 { border-color: var(--color-price-3); }

.plan-header {
  font-size: 32px;
  font-weight: 500;
  padding: 0.25rem 1rem;
  color: #fff;
}

.plan-header--1 { background: var(--color-price-1); }
.plan-header--2 { background: var(--color-price-2); }
.plan-header--3 { background: var(--color-price-3); }

.plan-price-area { 
  padding: 2.5rem 2rem 1.75rem; 
}

.plan-price {
  font-size: clamp(28px, 4vw, 3.5rem);
  font-weight: 550;
  color: var(--color-foreground);
  line-height: 1;
  font-family: var(--font-noto-sans);
  letter-spacing: 0;
}

.plan-price .unit { 
  font-size: 2rem; 
  font-weight: 600; 
}
.plan-price .unit-yen { 
  font-size: 2.5rem; 
  font-weight: 500; 
  padding-right: 0.25rem;
}

.plan-tax {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-muted-foreground);
  margin-top: 4px;
}

.plan-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  margin: 0 24px;
}

.plan-seats {
  padding: 16px 24px 2rem;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-foreground);
}

.plan-seats .seats-num { 
  font-size: 3.5rem; 
  font-weight: 500; 
}

.pricing-note { 
  font-size: var(--fs-copyright); 
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-muted-foreground); 
  margin-top: 1.25rem;
}

.pricing-checks {
  margin-top: 3.125rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pricing-check-item > svg {
  width: 2.1875rem;
  height: 2.1875rem;
  flex-shrink: 0;
  background: var(--color-primary);
  border-radius: 50%;
  padding: 5px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  margin-top: 2px;
}

.check-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.check-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
}

.check-sub {
  font-size: var(--fs-body);
  color: var(--color-muted-foreground);
}

.pricing-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3.125rem;
  height: 200px;
}

.pricing-badges img {
  width: auto;
  height: 250px;
  object-fit: contain;
}

.laws-table {
  margin-top: 40px;
  border: 5px solid var(--color-primary);
  border-radius: 16px;
  background: var(--color-primary);
}

.laws-table-header {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  background: var(--color-primary);
  padding: 4px;
  text-align: center;
  border-radius: 11px 11px 0 0;
}

.laws-table-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  background: #fff;
  border-radius: 16px 16px 11px 11px;
}

.laws-subtitle {
  text-align: center;
  font-size: var(--fs-lead);
  font-weight: 500;
}

.laws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.5rem;
  row-gap: .5rem;
  width: fit-content;
  margin-top: 1.5rem;
}

@media (min-width: 1921px) {
  .laws-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1600px) {
  .laws-grid { grid-template-columns: repeat(2, 1fr); }
}

.laws-grid p { 
  font-size: var(--fs-body); 
  color: var(--color-foreground); 
}

.laws-etc {
  text-align: right;
  font-size: var(--fs-body);
  color: var(--color-muted-foreground);
  align-self: flex-end;
}

.laws-note { 
  font-size: 15px; 
  color: var(--color-muted-foreground); 
  margin-top: 1.25rem; 
}

.pricing-ctas {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 6.25rem 0 3.125rem;
}

.pricing-more-text {
  font-size: var(--fs-lead-responsive);
  font-weight: 600;
  color: var(--color-muted-foreground);
  text-align: center;
  margin-top: 3.125rem;
}

.pricing-arrow { 
  display: flex; 
  justify-content: center; 
  margin-top: 3.125rem; 
}

.pricing-arrow img { 
  width: 110px;
}

/* Pricing responsive */
@media (max-width: 1024px) {
  .pricing-ctas { 
    flex-direction: column; 
  }
  .laws-grid { grid-template-columns: 1fr; }

  /* pricing – 3カラムを維持しつつ崩れを防ぐ */
  .pricing-inner { padding: 2.5rem 7vw; }
  .plan-header { font-size: 1rem; }
  .plan-price-area { padding: 1.25rem 0.5rem 1rem; }
  .plan-price { font-size: clamp(18px, 3vw, 2.25rem); }
  .plan-price .unit-yen { font-size: 1.5rem; padding-right: 0.1rem; }
  .plan-price .unit { font-size: 1.125rem; }
  .plan-tax { font-size: 1rem; }
  .plan-divider { margin: 0 12px; }
  .plan-seats { font-size: 1rem; padding: 12px 8px 1.5rem; }
  .plan-seats .seats-num { font-size: clamp(18px, 3vw, 2.25rem); }
}

@media (max-width: 767px) {
  .pricing-inner { padding: 32px; }
  .pricing-plans { grid-template-columns: 1fr; }
  .pricing-badges { 
    gap: 5px;
    height: 150px;
  }
  .pricing-badges img { width: 112px; height: 112px; }
  .laws-table-body { padding: 24px; }
  .pricing-arrow img { width: 48px; }
  .pricing-ctas {
    margin: 3.125rem 0 2.5rem;
  }
  .pricing-more-text { font-size: 20px; }
}


/* ==================== Sub Service (Knowledge Desk) ==================== */
.sub-service-section {
  position: relative;
  overflow: hidden;
  background: var(--color-lp-bg-light);
  padding: 3.125rem 0 10rem;
}

.sub-service-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, #e5f0f7 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.sub-service-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.sub-service-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 15%, black 50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 15%, black 50%);
}

.sub-service-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: var(--container-pad);
  /* このセクションだけ横並びを大きく見せる */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.sub-service-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0rem;
}

.sub-service-text {
  width: 100%;
  max-width: 450px;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.sub-service-text img.knowledge-logo {
  width: 100%;
}

.sub-service-text p {
  font-size: var(--fs-body);
  color: var(--color-foreground);
  line-height: 1.6;
  font-weight: 400;
  margin-top: 1.5rem;
  letter-spacing: 0.08em;
}

.sub-service-img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 760px;
}

.sub-service-img img {
  width: min(46vw, 760px);
  max-width: 100%;
}

.sub-service-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 40px;
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
}

.btn-knowledge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
  font-weight: 500;
  font-size: var(--fs-lead);
  padding: 0.75rem 3rem;
  border-radius: 24.5px;
  background: #0071bd;
  letter-spacing: 0.2rem;
  box-shadow: 8px 7px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

@media screen and (hover: hover) {
  .btn-knowledge:hover {
    transform: translate(0px, 2px);
    transition-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2);
  }
}

/* Sub Service responsive */
@media (max-width: 1024px) {
  .sub-service-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
  }

  .sub-service-text {
    max-width: 600px;
    justify-self: auto;
  }

  .sub-service-text p {
    padding: 0;
    text-align: center;
  }

  .sub-service-img img {
    width: min(70vw, 500px);
    max-width: 100%;
  }

  .btn-knowledge {
    padding: 0.75rem 1.5rem;
    letter-spacing: 0;
  }
  .sub-service-section {
    padding: 3.125rem 0 4rem;
  }
  .sub-service-section::before {
    background: linear-gradient(180deg, #e5f0f7 0%, rgba(255, 255, 255, 0) 50%);
  }

  .sub-service-cta {
    margin-top: 2rem;
    justify-content: center;
  }

  .sub-service-text img.knowledge-logo {
    width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .sub-service-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .sub-service-text {
    max-width: 480px;
    justify-self: auto;
    align-items: center;
    text-align: center;
  }

  .sub-service-text p {
    padding: 0 10vw;
  }

  .sub-service-img img {
    width: 90%;
  }
  .btn-knowledge {
    margin-top: 2rem;
  }

  .sub-service-text img.knowledge-logo {
    width: 100%;
    max-width: none;
    padding: 0 10vw;
  }

}


/* ==================== Flow ==================== */
.flow-section { 
  background: #fff; 
  overflow: hidden; 
}

.flow-layout { 
  position: relative; 
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin-top: 5.625rem;
}

.flow-circle-img {
  display: block;
  position: relative;
  height: 750px;
  width: auto;
  pointer-events: none;
}

.flow-step-img {
  display: block;
  position: absolute;
  right: 0;
  bottom: 2rem;
  width: 440px;
  object-fit: contain;
  pointer-events: none;
  margin-right: 2.5rem;
}

.flow-steps-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  padding-top: 8px;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.flow-step-mobile {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 480px;
  position: relative;
}

.flow-step-num {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-flow-step-num);
  font-weight: 700;
}

.flow-step-num--1 { background: hsl(200, 70%, 85%); color: #fff; }
.flow-step-num--2 { background: hsl(200, 80%, 55%); color: #fff; }
.flow-step-num--3 { background: hsl(205, 75%, 50%); color: #fff; }
.flow-step-num--4 { background: hsl(210, 60%, 40%); color: #fff; }
.flow-step-num--5 { background: hsl(215, 40%, 30%); color: #fff; }

.flow-step-card {
  background: #fff;
  border-radius: 1rem;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 4px 3px 13px rgba(0, 0, 0, 0.2);
  height: 100px;
  flex: 1;
  position: relative;
}

.flow-step-card svg,
.flow-step-card-img {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

.flow-step-card svg {
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
}

.flow-step-card span {
  font-size: var(--fs-lead-responsive);
  font-weight: 400;
  color: var(--color-foreground);
}

.flow-steps-desktop {
  display: flex;
  position: relative;
  z-index: 10;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2.25rem;
  max-width: 380px;
  margin-left: 100px;
  padding-top: 8px;
  height: 750px;
}

.flow-step-desktop {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 4px 3px 13px rgba(0, 0, 0, 0.2);
  height: 100px;
  justify-content: center;
}

.flow-step-desktop img {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

.flow-step-desktop span {
  font-size: var(--fs-lead-responsive);
  font-weight: 400;
  color: var(--color-foreground);
}

.flow-step-desktop--1 { width: 320px; margin-left: 0; position: relative;}
.flow-step-desktop--2 { width: 320px; margin-left: 50px; }
.flow-step-desktop--3 { width: 320px; margin-left: 80px; }
.flow-step-desktop--4 { width: 320px; margin-left: 50px; }
.flow-step-desktop--5 { width: 320px; margin-left: 0; }

.flow-subtitle {
  position: absolute;
  top: -3rem;
  left: 10%;
  font-size: var(--fs-body);
  color: var(--color-muted-foreground);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.flow-subtitle--mobile {
  display: none;
}

.flow-subtitle__num {
  font-size: 2.125rem !important;
  font-weight: 400 !important;
  color: var(--color-primary) !important;
  line-height: 1 !important;
}

.flow-subtitle__text {
  font-weight: 600 !important;
  color: var(--color-primary) !important;
  line-height: 1 !important;
}


/* Flow responsive */
@media (max-width: 1024px) {
  .flow-section.section-py { 
    padding: 6.25rem 0 1.875rem; 
  }
  .flow-steps-desktop {
    margin-left: 0;
    margin-top: -2rem;
  }
  .flow-step-desktop--3 { 
    margin-left: 50px; 
  }

  .flow-step-img { display: none; }
}

@media (max-width: 767px) {
  .flow-circle-img {
    display: none;
  }

  .flow-subtitle--mobile {
    display: flex;
    position: absolute;
    top: -1.8rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .flow-steps-mobile {
    display: flex;
    padding: 8px var(--container-pad) 0;
  }

  .flow-step-mobile {
    justify-content: center;
  }

  .flow-steps-desktop { 
    display: none; 
  }

  .flow-layout {
    justify-content: center;
    margin-top: 2.5rem;
  }
  .flow-step-card span { 
    font-size: var(--fs-flow-step-card-sp); 
  }

  .flow-step-card { flex: 0.8; }
}


/* ==================== Contact ==================== */
.contact-section {
  position: relative;
  background: linear-gradient(to bottom, #fff 60%, hsl(203, 53%, 93%) 60%);
  padding: 12.5rem 0 6.25rem;
}

.contact-card {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 7px 5px 22px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.contact-card .section-label {
  margin-bottom: 16px; 
}

.contact-title {
  font-size: var(--fs-section-h);
  font-weight: 700;
  color: var(--color-primary);
  margin: 16px 0;
}

.contact-subtitle { 
  font-size: var(--fs-lead-responsive); 
}
.contact-info {
  margin-top: 3.125rem; 
}

.contact-company-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-bar {
  width: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  align-self: stretch;
}

.contact-company-text { 
  text-align: left; 
}

.contact-company-label { 
  font-size: var(--fs-copyright); 
  color: var(--color-muted-foreground); 
}

.contact-company-name { 
  font-size: var(--fs-lead-responsive); 
  font-weight: 500; 
}

.contact-tel {
  font-size: var(--fs-hero-h-responsive);
  font-weight: 350;
  line-height: 1.4;
  margin: 10px 0 32px;
}
.contact-tel-icon  {
  display: inline-block;
  margin-right: 1rem;
}

.contact-ctas {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin: 3.125rem 0;
}

/* Contact responsive */
@media (max-width: 1024px) {
  .contact-ctas { 
    flex-direction: column; 
  }
  #contact .contact-ctas {
    margin: 3.125rem auto 0;
  }
  .contact-section {
    padding: 6.25rem 12vw 1.875rem;
  }
  .contact-tel-icon  {
    margin-right: 0.5rem;
    width: 36px;
  }
}

@media (max-width: 767px) {
  .contact-card { padding: 32px; }
}


/* ==================== Footer ==================== */
.site-footer { 
  background: var(--color-lp-bg-light); 
}

.footer-upper {
  padding: 2.5rem 0 2.5rem;
  text-align: center;
}

.footer-logo { 
  height: 100px; 
  margin: 0 auto 32px; 
}

.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

.footer-nav-link {
  text-align: center;
  transition: color 0.3s ease;
}


.footer-nav-link .en { 
  display: block; 
  font-size: var(--fs-nav); 
  font-weight: 500; 
  line-height: 1.4;
  color: var(--color-primary); 
}

.footer-nav-link .ja { 
  display: block; 
  font-size: var(--fs-body); 
  line-height: 1.4;
  color: var(--color-primary); 
}

@media (hover: hover) {
.footer-nav-link:hover { 
  color: var(--color-foreground); 
}
.footer-nav-link:hover .en { 
  color: var(--color-foreground); 
}
.footer-nav-link:hover .ja { 
  color: var(--color-foreground); 
}
}

.footer-bottom { 
  background: var(--color-primary); 
  padding: 1.5rem 0; 
}

.footer-bottom-inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
}

.footer-copy { 
  font-size: var(--fs-copyright); 
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-privacy {
  font-size: var(--fs-copyright);
  color: #fff;
  transition: color 0.2s;
}

@media (hover: hover) {
.footer-privacy:hover { color: rgba(255, 255, 255, 0.8); }
}

/* Footer responsive */
@media (max-width: 1024px) {
  .footer-nav {
    gap: 2rem;
  }
  .footer-nav-link .en { font-size: 12px; }
  .footer-nav-link .ja { font-size: 14px; }
}
@media (max-width: 767px) {
  .footer-logo { height: 64px; }

  .footer-nav {
    flex-direction: column;
    gap: 24px;
  }
  .footer-bottom {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 639px) {
  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}


/* ========================================
  FLOATING BUTTON & POPUP
======================================== */

.floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  cursor: pointer;
  text-decoration: none;
  display: block;
  width: 300px;
}

.floating-btn .outline {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 3rem;
  padding: 0.75rem 1.5rem 0.75rem 1.5rem;
  box-shadow:0 3.363px 11.209px 0 rgba(0, 0, 0, 0.25), 0 -4.484px 6.726px 0 rgba(65, 47, 14, 0.30) inset;
  border: 2px solid #fff;
  transition: all .2s cubic-bezier(.175,.885,.32,1.275);
}
@media (hover: hover) {
  .floating-btn:hover .outline {
    transform: translateY(-3px);
    opacity: 0.8;
} 
}

.floating-btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.floating-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.floating-btn-sub {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #fff;
}

.floating-btn-main {
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.5;
  color: #fff;
}

.floating-btn-cta {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #fff;
  font-weight: 500;
  margin-top: 0.15rem;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Popup Container */
.popup-container {
  position: fixed;
  top: 4%;
  right: 0;
  transform: translateX(100%);
  z-index: 201;
  height: auto;
  overflow-y: auto;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  /* padding: 2rem; */
}

.popup-container.is-visible {
  transform: translate(0%, 0%) scale(1);
  visibility: visible;
}

.popup-card {
  background: #fff;
  border-radius: 1rem 0 0 1rem;
  overflow: hidden;
  position: relative;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-close-btn {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s;
  line-height: 1;
  color: #fff;
}

@media (hover: hover) {
  .popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
  }
}

.popup-close-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.popup-header {
  background: #fff;
  color: #000;
  padding: 4rem 1.5rem 0;
  text-align: center;
}

.contact-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.875rem;
  border-radius: 2rem;
  margin-bottom: 0.875rem;
}

.ttl_txt {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000;
}

.ttl_underline {
  width: 3rem;
  height: 5px;
  background: var(--color-primary);
  margin:0 auto 0.75rem;

}

.contact_detail {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.6;
  color: #000;
}

.contact_detail .bold {
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.popup-body {
  padding: 2rem 4rem 4rem;
}

/* SP */
@media (max-width: 767px) {
  .floating-btn {
    bottom: 1rem;
    right: 1rem;
    width: 215px;
  }

  .floating-btn .outline {
    padding: 0.625rem 1rem 0.625rem 1rem;
    gap: 0.75rem;
    border-radius: 2.5rem;
  }

  .floating-btn-icon {
    width: 2rem;
    height: 2rem;
  }

  .floating-btn-main {
    font-size: 0.875rem;
  }

  .floating-btn-sub,
  .floating-btn-cta {
    font-size: 0.625rem;
  }

  .popup-container {
    width: 100%;
  }

  .popup-header {
    padding: 1.25rem 1.25rem 1rem;
  }

  .popup-body {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .ttl_txt {
    font-size: 1.1rem;
  }
}

.footer-recaptcha-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 13px;
  text-align: center;
  color: #fff;
}

.footer-recaptcha {
  text-align: center;
  color: #fff;
}