/**
 * 法人税務顧問ページ
 * 既存テーマへの影響を避けるため .cta-page 配下にスコープ
 */

.cta-page {
  --cta-ink: #17202a;
  --cta-muted: #65707c;
  --cta-line: #e4e8ec;
  --cta-soft: #f6f8fa;
  --cta-dark: #17202a;
  --cta-accent: #b69255;
  --cta-accent-dark: #8b6b38;
  --cta-white: #ffffff;
  color: var(--cta-ink);
  background: #fff;
  font-family: inherit;
  line-height: 1.85;
}

.cta-page *,
.cta-page *::before,
.cta-page *::after {
  box-sizing: border-box;
}

.cta-container {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

.cta-container--narrow {
  width: min(900px, calc(100% - 48px));
}

.cta-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--cta-accent-dark);
}

.cta-section {
  padding: 96px 0;
}

.cta-section--soft {
  background: var(--cta-soft);
}

.cta-section--dark {
  background: var(--cta-dark);
  color: var(--cta-white);
}

.cta-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.cta-heading--left {
  margin-left: 0;
  text-align: left;
}

.cta-heading--light .cta-eyebrow {
  color: #d7bc8b;
}

.cta-heading h2,
.cta-profile h2,
.cta-final h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  letter-spacing: .02em;
}

.cta-heading p:last-child {
  margin-bottom: 0;
  color: var(--cta-muted);
}

.cta-heading--light p:last-child {
  color: #c8d0d7;
}

/* Hero */
.cta-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 96px;
  background:
    radial-gradient(circle at 88% 14%, rgba(182,146,85,.12), transparent 26%),
    linear-gradient(135deg, #fff 0%, #fafbfc 100%);
  border-bottom: 1px solid var(--cta-line);
}

.cta-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -220px;
  bottom: -250px;
  border: 1px solid rgba(182,146,85,.26);
  border-radius: 50%;
}

.cta-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .75fr);
  gap: 72px;
  align-items: center;
}

.cta-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.12;
  letter-spacing: .03em;
  font-weight: 700;
}

.cta-hero__lead {
  margin: 0 0 22px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.55;
}

.cta-hero__lead strong {
  font-weight: 700;
}

.cta-hero__text {
  max-width: 680px;
  margin: 0;
  color: var(--cta-muted);
  font-size: 16px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.cta-btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 1px solid var(--cta-dark);
  border-radius: 2px;
  text-decoration: none !important;
  font-weight: 700;
  line-height: 1.4;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn--primary {
  background: var(--cta-dark);
  color: #fff !important;
}

.cta-btn--primary:hover {
  background: #283440;
  border-color: #283440;
}

.cta-btn--ghost {
  color: var(--cta-dark) !important;
  background: #fff;
}

.cta-btn--ghost:hover {
  background: var(--cta-soft);
}

.cta-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--cta-muted);
  font-size: 13px;
}

.cta-trust li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--cta-accent-dark);
  font-weight: 700;
}

.cta-hero__panel {
  position: relative;
  padding: 38px;
  background: var(--cta-dark);
  color: #fff;
  box-shadow: 0 20px 60px rgba(23,32,42,.14);
}

.cta-panel__label {
  margin: 0 0 10px;
  color: #d7bc8b;
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 700;
}

.cta-hero__panel h2 {
  margin: 0 0 28px;
  color: #fff;
  font-size: 24px;
  line-height: 1.5;
}

.cta-panel__items {
  border-top: 1px solid rgba(255,255,255,.15);
}

.cta-panel__items > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.cta-panel__items span {
  color: #d7bc8b;
  font-size: 12px;
}

.cta-panel__items p {
  margin: 0;
}

/* Problems */
.cta-problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cta-problem {
  min-height: 245px;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--cta-line);
}

.cta-problem > span {
  color: var(--cta-accent-dark);
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 700;
}

.cta-problem h3 {
  margin: 48px 0 12px;
  font-size: 19px;
  line-height: 1.55;
}

.cta-problem p {
  margin: 0;
  color: var(--cta-muted);
  font-size: 14px;
}

/* Features */
.cta-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--cta-line);
  border: 1px solid var(--cta-line);
}

.cta-feature {
  padding: 48px;
  background: #fff;
}

.cta-feature__number {
  margin-bottom: 28px;
  color: var(--cta-accent-dark);
  font-size: 13px;
  letter-spacing: .14em;
  font-weight: 700;
}

.cta-feature h3 {
  margin: 0 0 14px;
  font-size: 23px;
  line-height: 1.5;
}

.cta-feature p {
  margin: 0;
  color: var(--cta-muted);
}

/* Service */
.cta-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cta-service-card {
  padding: 34px 30px;
  background: #fff;
  color: var(--cta-ink);
}

.cta-service-card > span {
  color: var(--cta-accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.cta-service-card h3 {
  margin: 18px 0 18px;
  font-size: 20px;
}

.cta-service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cta-service-card li {
  position: relative;
  padding: 8px 0 8px 18px;
  border-top: 1px solid #edf0f2;
  color: var(--cta-muted);
  font-size: 14px;
}

.cta-service-card li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--cta-accent);
  border-radius: 50%;
}

.cta-note {
  margin: 22px 0 0;
  color: #aeb7bf;
  font-size: 12px;
}

/* Fee */
.cta-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cta-large-text {
  margin: 0 0 20px;
  font-size: 21px;
  line-height: 1.75;
}

.cta-text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--cta-ink) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--cta-ink);
  font-weight: 700;
}

.cta-fee-box {
  padding: 38px;
  border: 1px solid var(--cta-line);
  background: var(--cta-soft);
}

.cta-fee-box__title {
  margin: 0 0 16px;
  font-weight: 700;
}

.cta-fee-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cta-fee-box li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid #dde2e6;
}

.cta-fee-box li span {
  color: var(--cta-accent-dark);
  font-size: 12px;
  font-weight: 700;
}

/* Flow */
.cta-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cta-line);
  border-bottom: 1px solid var(--cta-line);
}

.cta-flow li {
  position: relative;
  padding: 34px 26px;
  border-right: 1px solid var(--cta-line);
}

.cta-flow li:last-child {
  border-right: 0;
}

.cta-flow span {
  color: var(--cta-accent-dark);
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
}

.cta-flow h3 {
  margin: 18px 0 10px;
  font-size: 18px;
}

.cta-flow p {
  margin: 0;
  color: var(--cta-muted);
  font-size: 14px;
}

/* Profile */
.cta-profile {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 80px;
  align-items: center;
}

.cta-profile__role {
  margin: 24px 0 2px;
  color: var(--cta-muted);
  font-size: 13px;
}

.cta-profile__main h3 {
  margin: 0 0 20px;
  font-size: 28px;
}

.cta-profile__stats {
  border-top: 1px solid var(--cta-line);
}

.cta-profile__stats > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--cta-line);
}

.cta-profile__stats strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
}

.cta-profile__stats span {
  color: var(--cta-muted);
  font-size: 14px;
}

/* FAQ */
.cta-section--faq {
  border-top: 1px solid var(--cta-line);
}

.cta-faq {
  border-top: 1px solid var(--cta-line);
}

.cta-faq details {
  border-bottom: 1px solid var(--cta-line);
}

.cta-faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.cta-faq summary::-webkit-details-marker {
  display: none;
}

.cta-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
}

.cta-faq details[open] summary::after {
  content: "−";
}

.cta-faq details > div {
  padding: 0 48px 24px 0;
  color: var(--cta-muted);
}

.cta-faq details p {
  margin: 0;
}

/* Final CTA */
.cta-final {
  padding: 74px 0;
  background: var(--cta-accent);
  color: #151515;
}

.cta-final__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
}

.cta-final .cta-eyebrow {
  color: #4d3c21;
}

.cta-final h2 {
  max-width: 760px;
  margin-bottom: 8px;
}

.cta-final p:last-child {
  margin-bottom: 0;
}

.cta-btn--light {
  min-width: 210px;
  background: #fff;
  color: var(--cta-ink) !important;
  border-color: #fff;
}

/* Theme collision prevention */
.cta-page h1,
.cta-page h2,
.cta-page h3,
.cta-page p,
.cta-page ul,
.cta-page ol {
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .cta-hero__grid,
  .cta-two-col,
  .cta-profile {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .cta-problem-grid,
  .cta-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-flow li:nth-child(2) {
    border-right: 0;
  }

  .cta-flow li:nth-child(-n+2) {
    border-bottom: 1px solid var(--cta-line);
  }

  .cta-final__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cta-container,
  .cta-container--narrow {
    width: min(100% - 32px, 1120px);
  }

  .cta-section {
    padding: 68px 0;
  }

  .cta-hero {
    padding: 72px 0 64px;
  }

  .cta-hero h1 {
    font-size: 40px;
  }

  .cta-hero__lead {
    font-size: 22px;
  }

  .cta-hero__panel,
  .cta-feature,
  .cta-fee-box {
    padding: 28px 22px;
  }

  .cta-actions {
    display: grid;
  }

  .cta-btn {
    width: 100%;
  }

  .cta-problem-grid,
  .cta-feature-grid,
  .cta-service-grid,
  .cta-flow {
    grid-template-columns: 1fr;
  }

  .cta-problem {
    min-height: 0;
  }

  .cta-problem h3 {
    margin-top: 28px;
  }

  .cta-flow li {
    border-right: 0;
    border-bottom: 1px solid var(--cta-line);
  }

  .cta-flow li:last-child {
    border-bottom: 0;
  }

  .cta-profile__stats > div {
    grid-template-columns: 90px 1fr;
  }

  .cta-final {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-page *,
  .cta-page *::before,
  .cta-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
