/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS PMincho', serif;
  background-color: #1a1f36;
  color: #f0f0f0;
  line-height: 1.8;
  font-size: 22px;
  font-weight: 500;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ===== 1. Scroll Fade-In ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child elements */
.fade-in-up:nth-child(2) { transition-delay: 0.08s; }
.fade-in-up:nth-child(3) { transition-delay: 0.16s; }
.fade-in-up:nth-child(4) { transition-delay: 0.24s; }
.fade-in-up:nth-child(5) { transition-delay: 0.32s; }
.fade-in-up:nth-child(6) { transition-delay: 0.40s; }

/* ===== 3. Header — Glassmorphism ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #141828;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

.site-header.is-scrolled {
  background-color: rgba(20, 24, 40, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.site-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* ===== Navigation ===== */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a,
.main-nav > ul > li > .nav-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 18px 20px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  color: #e0e0e0;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > .nav-toggle:hover {
  color: #fff;
}

.nav-toggle .arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.nav-toggle.active .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(30, 35, 64, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.dropdown.show {
  display: block;
  animation: dropdownFade 0.25s ease;
}

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

.dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: 500;
  color: #ccc;
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #e0e0e0;
  cursor: pointer;
  padding: 8px;
  font-size: 24px;
}

/* ===== 2. Hero Section — Text Animation ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  --hero-scroll-offset: 0px;
  --hero-content-offset: 0px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroSlowZoom 60s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform: scale(1) translate3d(0, var(--hero-scroll-offset), 0);
  transform-origin: 42% 48%;
  will-change: transform;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20, 24, 40, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(20, 24, 40, 0.55) 100%
  );
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 12%,
    rgba(255, 255, 255, 0.22) 12.08%,
    rgba(255, 255, 255, 0.22) 12.18%,
    transparent 12.28%,
    transparent 32%,
    rgba(92, 224, 210, 0.16) 32.08%,
    rgba(92, 224, 210, 0.16) 32.2%,
    transparent 32.3%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50.08%,
    rgba(255, 255, 255, 0.2) 50.18%,
    transparent 50.28%,
    transparent 68%,
    rgba(92, 224, 210, 0.14) 68.08%,
    rgba(92, 224, 210, 0.14) 68.18%,
    transparent 68.28%,
    transparent 88%,
    rgba(255, 255, 255, 0.22) 88.08%,
    rgba(255, 255, 255, 0.22) 88.18%,
    transparent 88.28%,
    transparent 100%
  );
  opacity: 0;
  animation: heroRuleFade 1s ease 0.25s forwards;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  transform: translate3d(0, var(--hero-content-offset), 0);
  will-change: transform;
}

.hero-content h1,
.hero-content p {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.5;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Hero line animation */
.hero-line {
  display: block;
  animation: heroLineIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-line:nth-child(1) { animation-delay: 0.05s; }
.hero-line:nth-child(2) { animation-delay: 0.32s; }

@keyframes heroLineIn {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translate3d(0, 12px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroSlowZoom {
  from {
    transform: scale(1) translate3d(0, var(--hero-scroll-offset), 0);
  }
  to {
    transform: scale(1.1) translate3d(0, var(--hero-scroll-offset), 0);
  }
}

@keyframes heroRuleFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.12;
  }
}

/* ===== 5. Gradient Divider ===== */
.gradient-divider {
  height: 1px;
  border: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #5ce0d2 30%,
    #5ce0d2 50%,
    transparent 100%
  );
  opacity: 0.5;
  margin: 0;
}

/* ===== Page Header ===== */
.page-header {
  padding-top: 100px;
  padding-bottom: 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.page-header h1::after,
.info-block h2::after,
.cta-section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(92, 224, 210, 0.28) 10%, #8fb6c9 50%, rgba(92, 224, 210, 0.28) 90%, transparent);
  opacity: 0.72;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-header h1::before,
.info-block h2::before,
.cta-section h2::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.page-header h1.is-visible::after,
.info-block h2.is-visible::after,
.info-block.is-visible h2::after,
.cta-section h2.is-visible::after,
.cta-section.is-visible h2::after {
  transform: translateX(-50%) scaleX(1);
}

/* ===== Main Content ===== */
.main-content {
  padding-top: 60px;
  min-height: calc(100vh - 60px);
}

.home-main,
.estimate-main {
  min-height: 0;
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.home-main.content-section,
.home-main .content-section {
  padding-bottom: 20px;
}

.home-main .info-block {
  padding-bottom: 16px;
}

/* ===== Info Block ===== */
.info-block {
  padding: 40px 0;
}

.info-block h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.info-block p {
  margin-bottom: 16px;
  line-height: 2;
  color: #ddd;
}

/* ===== 4. Button Links — Hover Depth ===== */
.btn-link,
.cta-btn {
  display: block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              color 0.3s ease,
              background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-link::before,
.cta-btn::before {
  content: '';
  position: absolute;
  inset: -2px auto -2px -45%;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  opacity: 0;
  transform: skewX(-18deg);
  transition: opacity 0.28s ease, left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-link {
  text-align: center;
  padding: 16px 24px;
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 22px;
  font-weight: 600;
  color: #e0e0e0;
}

.btn-link:hover,
.btn-link:focus-visible,
.btn-link.is-touched {
  transform: translateY(-2px);
  background-color: rgba(92, 224, 210, 0.04);
  border-color: rgba(92, 224, 210, 0.4);
  box-shadow: 0 4px 20px rgba(92, 224, 210, 0.1);
  color: #fff;
}

.btn-link:hover::before,
.btn-link:focus-visible::before,
.btn-link.is-touched::before,
.cta-btn:hover::before,
.cta-btn:focus-visible::before,
.cta-btn.is-touched::before {
  left: 108%;
  opacity: 1;
}

/* ===== 6. Accordion — Smooth Grid Animation ===== */
.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  user-select: none;
}

.accordion-header h2 {
  font-size: 26px;
  font-weight: 700;
}

.accordion-header .icon {
  font-size: 20px;
  color: #888;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
  margin-left: 16px;
}

.accordion-item.open .accordion-header .icon {
  transform: rotate(180deg);
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-item.open .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-body-inner {
  overflow: hidden;
}

.accordion-body-inner > div {
  padding-bottom: 24px;
  opacity: 0;
  transition: opacity 0.35s ease 0.05s;
}

.accordion-item.open .accordion-body-inner > div {
  opacity: 1;
}

.accordion-body p {
  line-height: 2;
  color: #ddd;
}

/* ===== Q&A Page ===== */
.page-kicker {
  margin-bottom: 10px;
  color: #8fb6c9;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.qa-page {
  max-width: 920px;
}

.qa-lead {
  padding: 0 0 28px;
}

.qa-lead p {
  margin-bottom: 14px;
  color: #ddd;
  line-height: 2;
}

.qa-list {
  display: grid;
  gap: 28px;
}

.qa-item {
  position: relative;
  padding: 28px 30px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.qa-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgba(92, 224, 210, 0.8), rgba(143, 182, 201, 0.14));
}

.qa-item-final {
  border-color: rgba(92, 224, 210, 0.28);
  background: linear-gradient(145deg, rgba(92, 224, 210, 0.09), rgba(255, 255, 255, 0.025));
}

.qa-number {
  margin-bottom: 8px;
  color: #5ce0d2;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.qa-item h2 {
  margin-bottom: 18px;
  font-size: 26px;
  line-height: 1.55;
}

.qa-answer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qa-answer p {
  margin-bottom: 14px;
  color: #ddd;
  line-height: 2;
}

.qa-answer p:last-child {
  margin-bottom: 0;
}

.qa-inline-link {
  display: inline-block;
  margin-top: 4px;
  color: #9ee9df;
  font-weight: 700;
  border-bottom: 1px solid rgba(158, 233, 223, 0.5);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.qa-inline-link:hover,
.qa-inline-link:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* ===== Profile Section ===== */
.profile-image {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 40px;
  display: block;
  border-radius: 8px;
}

.greeting-text {
  padding: 20px 0;
}

.greeting-text p {
  line-height: 2.2;
  color: #ddd;
}

.greeting-text .indent {
  padding-left: 2em;
}

.profile-detail {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-detail h2 {
  font-size: 29px;
  font-weight: 700;
  margin-bottom: 12px;
}

.profile-detail p {
  line-height: 2;
  color: #ddd;
}

/* ===== 4. Pricing Cards — Enhanced Hover ===== */
.pricing-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 224, 210, 0.3);
  box-shadow: 0 8px 32px rgba(92, 224, 210, 0.08),
              0 2px 12px rgba(0, 0, 0, 0.2);
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 34px;
  font-weight: 700;
  color: #5ce0d2;
  margin-bottom: 16px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
}

.pricing-card li {
  padding: 4px 0;
  color: #ccc;
}

.pricing-card li::before {
  content: '\00B7\00A0';
  color: #5ce0d2;
  font-weight: bold;
}

/* ===== Graph Pricing ===== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.plan-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 224, 210, 0.3);
  box-shadow: 0 8px 32px rgba(92, 224, 210, 0.08),
              0 2px 12px rgba(0, 0, 0, 0.2);
}

.plan-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.plan-card .price {
  font-size: 29px;
  font-weight: 700;
  color: #5ce0d2;
  margin-bottom: 16px;
}

.plan-card p {
  color: #bbb;
  line-height: 1.8;
}

/* ===== Privacy Policy ===== */
body.privacy-page {
  font-size: 18px;
}

body.privacy-page .page-header h1 {
  font-size: 38px;
}

.policy-section {
  margin-bottom: 32px;
}

.policy-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-section p,
.policy-section li {
  font-size: 18px;
  color: #ccc;
  line-height: 2;
}

.policy-section ul {
  padding-left: 1.5em;
  margin-top: 8px;
}

.policy-section .policy-lead {
  margin-bottom: 24px;
}

/* Google Slides Embed */
.slides-embed {
  margin: 30px 0;
}

.slides-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: none;
  border-radius: 8px;
}

/* ===== Slide Gallery ===== */
.slide-gallery {
  margin: 6px 0 52px;
}

.slide-stage {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
}

.slide-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.slide-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.slide-frame figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 68px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(20, 24, 40, 0.86);
  color: #f5f5f5;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}

.slide-nav {
  width: 48px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #f4f4f4;
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.slide-nav:hover {
  transform: translateY(-1px);
  background: rgba(92, 224, 210, 0.09);
  border-color: rgba(92, 224, 210, 0.42);
}

.slide-thumb-strip {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 4px 2px 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.slide-thumb {
  position: relative;
  flex: 0 0 122px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  scroll-snap-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.72;
}

.slide-thumb:hover,
.slide-thumb.is-active {
  transform: translateY(-1px);
  border-color: rgba(92, 224, 210, 0.75);
  opacity: 1;
}

.slide-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.slide-thumb span {
  position: absolute;
  right: 6px;
  bottom: 5px;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(20, 24, 40, 0.84);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

/* ===== Section Descriptions ===== */
.section-desc {
  padding: 20px 0 30px;
}

.section-desc p {
  line-height: 2;
  color: #ddd;
}

.section-desc .note {
  color: #999;
  margin-top: 12px;
}

/* ===== Case Commentary ===== */
.case-commentary-page {
  max-width: 880px;
}

.tax-column-page {
  max-width: 880px;
}

.tax-saving-page {
  max-width: 1040px;
}

.case-list {
  margin-top: 12px;
}

.tax-column-list {
  margin-top: 12px;
}

.case-card {
  padding: 32px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.tax-column-card {
  padding: 32px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.tax-column-card-compact {
  padding-top: 28px;
}

.case-card-label {
  margin-bottom: 8px;
  color: #5ce0d2;
  font-size: 18px;
  font-weight: 700;
}

.tax-column-card-label {
  margin-bottom: 8px;
  color: #5ce0d2;
  font-size: 18px;
  font-weight: 700;
}

.case-card h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.tax-column-card h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.case-card p {
  color: #ddd;
  line-height: 2;
}

.tax-column-card p {
  color: #ddd;
  line-height: 2;
}

.note-embed-wrap {
  margin: 24px 0 20px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.note-embed-wrap iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

/* ===== Simulator Embed ===== */
.simulator-embed {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.simulator-embed iframe {
  width: 100%;
  border: none;
  min-height: calc(100vh - 200px);
  border-radius: 8px;
}

.estimate-simulator-embed {
  padding-bottom: 0;
}

.estimate-simulator-embed iframe {
  display: block;
  min-height: 0;
}

.estimate-note {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0 24px;
  text-align: center;
  color: #ccc;
  font-size: 18px;
  line-height: 1.8;
}

.service-limited-notice {
  max-width: 820px;
  margin: 0 auto 18px;
  color: #f8c36a;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.cta-section .cta-limited-notice {
  margin-top: 14px;
  margin-bottom: 0;
  color: #f8c36a;
  font-size: 14px;
}

.lp-limited-notice {
  margin-top: -18px;
  margin-bottom: 26px;
}

/* ===== Contact Form ===== */
.contact-main {
  min-height: 0;
}

.contact-form-panel {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 32px;
  border: 1px solid rgba(92, 224, 210, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(20, 24, 40, 0.95), rgba(30, 35, 64, 0.88)),
    #141828;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  text-align: center;
}

/* ===== 7. CTA Section ===== */
.cta-section {
  position: relative;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
  background:
    linear-gradient(
      160deg,
      rgba(20, 24, 40, 0.85) 0%,
      rgba(26, 31, 54, 0.75) 50%,
      rgba(20, 24, 40, 0.85) 100%
    ),
    url('../images/hero.jpg') center / cover no-repeat fixed;
}

.cta-section h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.cta-section p {
  color: #ddd;
  margin-bottom: 32px;
}

.cta-btn {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, #5ce0d2, #4ab8ac);
  color: #141828;
  border-radius: 8px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.cta-btn:hover,
.cta-btn:focus-visible,
.cta-btn.is-touched {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(92, 224, 210, 0.3),
              0 0 60px rgba(92, 224, 210, 0.1);
}

.cta-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: #666;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
    opacity: 0.12;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(20, 24, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
  }

  .main-nav > ul > li > a,
  .main-nav > ul > li > .nav-toggle {
    padding: 16px 24px;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown {
    position: static;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .dropdown a {
    padding-left: 40px;
  }

  .hero-content h1,
  .hero-content p {
    font-size: 40px;
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      transparent 0%,
      transparent 10%,
      rgba(255, 255, 255, 0.3) 10.12%,
      rgba(255, 255, 255, 0.3) 10.34%,
      transparent 10.46%,
      transparent 30%,
      rgba(92, 224, 210, 0.2) 30.12%,
      rgba(92, 224, 210, 0.2) 30.34%,
      transparent 30.46%,
      transparent 50%,
      rgba(255, 255, 255, 0.28) 50.12%,
      rgba(255, 255, 255, 0.28) 50.34%,
      transparent 50.46%,
      transparent 70%,
      rgba(92, 224, 210, 0.18) 70.12%,
      rgba(92, 224, 210, 0.18) 70.34%,
      transparent 70.46%,
      transparent 90%,
      rgba(255, 255, 255, 0.3) 90.12%,
      rgba(255, 255, 255, 0.3) 90.34%,
      transparent 90.46%,
      transparent 100%
    );
  }

  .page-header h1 {
    font-size: 36px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 60px 20px;
    background-attachment: scroll;
  }

  .cta-section h2 {
    font-size: 29px;
  }

  .slides-embed iframe {
    aspect-ratio: 4 / 3;
  }

  .slide-stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .slide-frame {
    order: 1;
  }

  .slide-nav {
    order: 2;
    width: 100%;
    height: 48px;
  }

  .slide-nav-prev {
    order: 2;
  }

  .slide-nav-next {
    order: 3;
  }

  .slide-thumb {
    flex-basis: 104px;
  }

  .qa-item {
    padding: 24px 22px 26px;
  }

  .qa-item h2 {
    font-size: 23px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
  }

  .hero-content h1,
  .hero-content p {
    font-size: 31px;
  }

  .page-header {
    padding-top: 80px;
    padding-bottom: 24px;
  }

  .page-header h1 {
    font-size: 31px;
  }

  .content-section {
    padding: 0 16px 40px;
  }

  .page-kicker {
    font-size: 13px;
  }

  .qa-list {
    gap: 20px;
  }

  .qa-item {
    padding: 22px 18px 24px;
  }

  .qa-item h2 {
    font-size: 21px;
    line-height: 1.55;
  }

  .qa-answer p,
  .qa-lead p {
    line-height: 1.9;
  }
}
