/* OTA販売力診断の公開前候補。共通LPへ影響させないため、ota-* で局所化する。 */

.ota-page .container {
  width: min(100% - 2.5rem, 1120px);
}

.ota-page h1,
.ota-page h2 {
  text-wrap: pretty;
  line-break: strict;
}

#ota-diagnosis,
#deliverables,
#samples,
#pricing,
#consultation,
#contact {
  scroll-margin-top: 5rem;
}

.ota-page h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.25;
}

.ota-page h3 {
  font-size: 1.15rem;
  line-height: 1.45;
}

.ota-nav-cta {
  background: var(--primary);
  color: var(--on-primary) !important;
}

.ota-nav-cta:hover {
  background: var(--primary-strong) !important;
  color: var(--on-primary) !important;
}

.ota-button-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #1f251e;
}

.ota-button-accent:hover {
  border-color: #cb8d42;
  background: #cb8d42;
}

.ota-button-light {
  border-color: var(--surface);
  background: var(--surface);
  color: var(--primary-strong);
}

.ota-button-light:hover {
  background: var(--surface-muted);
}

.ota-button-block {
  width: 100%;
}

.ota-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.ota-hero {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background:
    linear-gradient(112deg, color-mix(in srgb, var(--surface) 90%, var(--surface-alt) 10%), var(--bg));
}

.ota-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(3rem, 5vw, 4.5rem);
  align-items: center;
}

.ota-hero-copy {
  animation: hero-in 500ms ease-out both;
}

.ota-service-label {
  margin: 0 0 0.8rem;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.ota-hero h1 {
  max-width: 46rem;
  margin-bottom: 1.35rem;
  color: var(--primary-strong);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.14;
}

.ota-hero-lede {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.ota-actions {
  margin: 2rem 0 1.4rem;
}

.ota-trust-line {
  max-width: 46rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.ota-trial-note {
  max-width: 46rem;
  margin: 0 0 0.65rem;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.ota-diagnosis-summary {
  padding: 2rem;
  border-left: 5px solid var(--accent);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(31, 55, 49, 0.1);
}

.ota-summary-kicker {
  margin: 0 0 0.7rem;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.ota-diagnosis-summary h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
}

.ota-diagnosis-summary dl {
  margin: 1.6rem 0 0;
}

.ota-diagnosis-summary dl div {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.ota-diagnosis-summary dt {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.ota-diagnosis-summary dd {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.ota-diagnosis-summary dd span {
  color: var(--muted);
  font-size: 0.84rem;
}

.ota-section-heading {
  max-width: 56rem;
  margin-bottom: 3rem;
}

.ota-section-heading-wide {
  max-width: 62rem;
}

.ota-section-heading h2 {
  margin-bottom: 1rem;
}

.ota-section-heading > p:last-child {
  max-width: 52rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.ota-deliverable-list {
  border-top: 1px solid var(--line);
}

.ota-deliverable-list article {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.ota-deliverable-list article > span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.ota-deliverable-list h3 {
  margin-bottom: 0.35rem;
}

.ota-deliverable-list p {
  margin: 0;
  color: var(--muted);
}

.ota-samples-section {
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.ota-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.ota-sample-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.ota-sample-card-detail {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}

.ota-sample-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1rem;
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface-alt) 28%);
  border-right: 1px solid var(--line);
}

.ota-sample-visual img {
  width: 100%;
  height: auto;
  max-height: 31rem;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 10px 24px rgba(31, 55, 49, 0.1);
}

.ota-sample-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.3rem, 2.5vw, 2rem);
}

.ota-sample-type {
  margin: 0 0 0.35rem;
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ota-sample-content h3 {
  margin-bottom: 0.8rem;
  color: var(--primary-strong);
  font-family: var(--font-head);
  font-size: 1.55rem;
}

.ota-sample-content > p:not(.ota-sample-type):not(.ota-sample-meta) {
  color: var(--muted);
}

.ota-sample-meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.ota-sample-content .button {
  width: 100%;
}

.ota-sample-actions {
  display: grid;
  width: 100%;
  gap: 0.65rem;
}

.ota-sample-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.ota-observation-section {
  background: var(--surface);
}

.ota-observation-grid,
.ota-process-grid,
.ota-safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.ota-observation-grid > div > p:last-child {
  color: var(--muted);
}

.ota-observation-grid h2,
.ota-process-grid h2,
.ota-safety-grid h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
}

.ota-observation-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.ota-observation-list div {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.ota-observation-list dt {
  color: var(--primary);
  font-weight: 800;
}

.ota-observation-list dd {
  margin: 0;
  color: var(--muted);
}

.ota-pricing-section {
  background: var(--surface-muted);
}

.ota-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.ota-light-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: 2.75rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border: 2px solid var(--accent);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(31, 55, 49, 0.08);
}

.ota-light-offer h3 {
  margin-bottom: 0.65rem;
  color: var(--primary-strong);
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.ota-light-offer-copy > p:not(.ota-plan-type):not(.ota-light-price) {
  max-width: 38rem;
  color: var(--muted);
}

.ota-light-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  color: var(--primary-strong);
}

.ota-light-price strong {
  font-size: clamp(2.35rem, 5vw, 3.4rem);
  line-height: 1;
}

.ota-light-price span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.ota-light-offer-details ul {
  margin: 0 0 1.4rem;
  padding-left: 1.2rem;
}

.ota-light-offer-details li {
  padding: 0.32rem 0;
  color: var(--muted);
}

.ota-paid-label {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ota-price-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border: 1px solid var(--line);
  background: var(--surface);
}

.ota-price-plan-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}

.ota-recommend-label {
  position: absolute;
  top: -0.95rem;
  right: 1.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.ota-plan-type {
  margin: 0 0 0.35rem;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.ota-plan-purpose {
  min-height: 3.6rem;
  color: var(--muted);
}

.ota-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 1.2rem 0 0;
  color: var(--primary-strong);
}

.ota-price strong {
  font-size: clamp(2.45rem, 5vw, 3.8rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.ota-price span {
  font-size: 0.85rem;
  font-weight: 700;
}

.ota-price-unit {
  color: var(--muted);
  font-size: 0.8rem;
}

.ota-saving {
  align-self: flex-start;
  margin-bottom: 0;
  padding: 0.25rem 0.6rem;
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
}

.ota-price-plan ul {
  flex: 1;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.ota-price-plan li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.25rem;
  border-top: 1px solid var(--line);
}

.ota-price-plan li::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--secondary);
}

.ota-pricing-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.ota-process-grid ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.ota-process-grid li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.ota-process-grid li > span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.ota-process-grid li p {
  margin-bottom: 0;
  color: var(--muted);
}

.ota-safety-section {
  background: var(--primary-strong);
  color: var(--on-primary);
}

.ota-safety-section .eyebrow {
  color: #b8c68c;
}

.ota-safety-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.ota-safety-columns div {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.ota-safety-columns p {
  color: #dce6e3;
}

.ota-contact-strip {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--accent);
  color: #1f251e;
}

.ota-contact-strip .eyebrow {
  color: var(--primary-strong);
}

.ota-contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
}

.ota-contact-inner h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
}

.ota-contact-inner p:last-child {
  max-width: 46rem;
  margin-bottom: 0;
}

.ota-contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.ota-contact-link {
  color: #1f251e;
  font-weight: 800;
  text-underline-offset: 0.25em;
}

/* トップページ上のサービス枠 */
.ota-service-bridge {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: var(--primary-strong);
  color: var(--on-primary);
}

.ota-service-bridge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
}

.ota-service-bridge .eyebrow {
  color: #b8c68c;
}

.ota-bridge-label {
  margin: 0 0 0.7rem;
  color: #d8dfd3;
  font-size: 0.9rem;
  font-weight: 700;
}

.ota-service-bridge h2 {
  max-width: 44rem;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.2;
  text-wrap: pretty;
}

.ota-bridge-lede {
  max-width: 43rem;
  color: #dce6e3;
  font-size: 1.04rem;
}

.ota-service-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.ota-service-facts div {
  padding: 1.1rem 0.65rem;
}

.ota-service-facts div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.ota-service-facts dt {
  color: #b8c68c;
  font-size: 0.75rem;
  font-weight: 800;
}

.ota-service-facts dd {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  word-break: keep-all;
}

.ota-bridge-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.ota-bridge-text-link {
  color: var(--on-primary);
  font-weight: 800;
  text-underline-offset: 0.25em;
}

.ota-report-preview {
  padding: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.ota-report-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--primary);
  font-weight: 800;
}

.ota-report-preview-head small {
  color: var(--muted);
  font-weight: 700;
}

.ota-preview-title {
  margin: 1.4rem 0;
  font-family: var(--font-head);
  font-size: 1.55rem;
  line-height: 1.35;
}

.ota-preview-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.ota-preview-index {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.ota-preview-row p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.ota-price-teaser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.2rem;
  background: var(--surface-alt);
}

.ota-light-teaser {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, var(--line));
  background: color-mix(in srgb, var(--surface-alt) 65%, var(--surface));
}

.ota-light-teaser span,
.ota-light-teaser small {
  color: var(--muted);
  font-size: 0.72rem;
}

.ota-light-teaser strong {
  color: var(--primary-strong);
  font-size: 1.05rem;
}

.ota-price-teaser > div {
  display: flex;
  flex-direction: column;
  padding: 0.95rem;
}

.ota-price-teaser > div + div {
  border-left: 1px solid var(--line);
}

.ota-price-teaser span,
.ota-price-teaser small {
  color: var(--muted);
  font-size: 0.7rem;
}

.ota-price-teaser strong {
  color: var(--primary-strong);
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .ota-sample-card {
    grid-template-columns: 1fr;
  }

  .ota-sample-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ota-sample-visual img {
    max-height: 27rem;
  }
}

@media (max-width: 900px) {
  .ota-hero-grid,
  .ota-observation-grid,
  .ota-process-grid,
  .ota-safety-grid,
  .ota-service-bridge-grid {
    grid-template-columns: 1fr;
  }

  .ota-pricing-grid,
  .ota-sample-grid,
  .ota-light-offer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ota-sample-card {
    grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.25fr);
  }

  .ota-sample-visual {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .ota-contact-inner {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .ota-contact-inner .button {
    justify-self: start;
  }

  .ota-contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .ota-page .container {
    width: min(100% - 1.5rem, 1120px);
  }

  .ota-hero {
    padding-top: 4rem;
  }

  .ota-hero h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.35rem);
    line-height: 1.2;
  }

  .ota-page h2,
  .ota-section-heading h2,
  .ota-diagnosis-summary h2,
  .ota-observation-grid h2,
  .ota-process-grid h2,
  .ota-safety-grid h2,
  .ota-contact-inner h2,
  .ota-service-bridge h2 {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  .ota-actions,
  .ota-bridge-actions,
  .ota-contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ota-actions .button,
  .ota-bridge-actions .button,
  .ota-bridge-actions .ota-bridge-text-link,
  .ota-contact-actions .button,
  .ota-contact-actions .ota-contact-link {
    width: 100%;
    text-align: center;
  }

  .ota-deliverable-list article {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .ota-sample-card {
    grid-template-columns: 1fr;
  }

  .ota-sample-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ota-observation-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .ota-price-plan {
    padding: 1.4rem 1.1rem;
  }

  .ota-plan-purpose {
    min-height: auto;
  }

  .ota-price strong {
    font-size: clamp(2.2rem, 12vw, 3.15rem);
  }

  .ota-safety-columns,
  .ota-service-facts,
  .ota-price-teaser {
    grid-template-columns: 1fr;
  }

  .ota-light-teaser {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .ota-service-facts div {
    padding: 0.8rem 0;
  }

  .ota-service-facts div + div,
  .ota-price-teaser > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .ota-service-facts div + div {
    border-top-color: rgba(255, 255, 255, 0.22);
  }

  .ota-contact-inner .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ota-hero-copy {
    animation: none;
  }
}
