/* 料金ページ — 日本の法人サイトに沿った料金表中心の構成 */
.pricing-page {
  --price-navy: #172641;
  --price-gold: #9a7838;
  --price-line: #d8dee7;
  --price-pale: #f4f1ea;
}

.pricing-page main > section,
.pricing-page footer {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

.price-page-head {
  position: relative;
  min-height: auto !important;
  display: block !important;
  padding: calc(var(--nav-h) + 26px) 0 54px !important;
  overflow: hidden !important;
  background: #f7f5f0;
  border: 0;
  color: var(--price-navy);
}
.price-page-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  pointer-events: none;
  background: linear-gradient(90deg,var(--price-navy) 0 78%,var(--price-gold) 78% 100%);
}
.price-page-head .wrap { position: relative; z-index: 2; }

.price-breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 30px;
  color: #737d8d;
  font-size: .72rem;
}
.price-breadcrumb a { color: inherit; text-decoration: none; }
.price-breadcrumb a:hover { color: var(--price-navy); text-decoration: underline; }

.price-title { margin: 0 0 30px; }
.price-hero-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--price-gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
}
.price-title h1 {
  margin: 0;
  color: var(--price-navy);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: .055em;
}
.price-title-rule { width: 44px; height: 1px; margin: 13px 0 12px; background: var(--price-gold); }
.price-title p { margin: 0; color: var(--text-mid); font-size: .78rem; letter-spacing: .02em; }
.price-title p span { margin-left: 14px; padding-left: 14px; border-left: 1px solid #cfc8bb; color: var(--text-dim); font-size: .7rem; }

.quote-card {
  max-width: none;
  background: #fff;
  border: 1px solid #d8d3c9;
  border-top: 3px solid var(--price-navy);
  box-shadow: 0 12px 30px rgba(23,38,65,.09);
}
.quote-card-head {
  display: flex;
  gap: 20px 30px;
  align-items: baseline;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--price-line);
}
.quote-card-head h2 { color: var(--price-navy); font-family: var(--serif); font-size: 1.25rem; font-weight: 400; letter-spacing: .035em; }
.quote-card-head p { color: var(--text-dim); font-size: .76rem; }

.quote-tabs {
  display: flex;
  padding: 0 26px;
  border-bottom: 1px solid var(--price-line);
  background: #fafbfc;
}
.quote-tab {
  min-width: 150px;
  padding: 14px 28px 13px;
  border: 0;
  border-right: 1px solid var(--price-line);
  background: transparent;
  color: var(--text-mid);
  font: 500 .86rem var(--sans);
  cursor: pointer;
}
.quote-tab:first-child { border-left: 1px solid var(--price-line); }
.quote-tab[aria-selected="true"] {
  margin-bottom: -1px;
  background: #fff;
  color: var(--price-navy);
  border-bottom: 2px solid var(--price-gold);
}

.quote-panel { padding: 24px 26px 18px; }
.quote-panel[hidden] { display: none; }
.quote-fields { display: grid; gap: 16px; align-items: end; }
.quote-fields--translation { grid-template-columns: .8fr 1.45fr .75fr; }
.quote-fields--interpretation { grid-template-columns: 1fr 1fr; max-width: 570px; }
.quote-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: .76rem;
  font-weight: 500;
}
.quote-field select,
.quote-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bfc8d4;
  border-radius: 2px;
  background-color: #fff;
  color: var(--text);
  font: .86rem var(--sans);
}
.quote-field input { font-variant-numeric: tabular-nums; }
.quote-field input::placeholder { color: #8a919b; }
.quote-field select:focus,
.quote-field input:focus { outline: 2px solid rgba(154,120,56,.2); border-color: var(--price-gold); }
.quote-unit-wrap { position: relative; }
.quote-unit-wrap input { padding-right: 58px; }
.quote-unit { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: .76rem; pointer-events: none; }

.quote-result {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid var(--price-line);
  border-left: 3px solid var(--price-gold);
  background: #f8f5ee;
}
.quote-result-label { color: var(--text-mid); font-size: .75rem; font-weight: 500; }
.quote-result-price { color: var(--price-navy); font-size: 1.35rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.quote-result-tax { color: var(--text-dim); font-size: .68rem; }
.quote-result.is-empty { border-left-color: var(--price-line); background: #fafbfc; }
.quote-result.is-empty .quote-result-price { color: var(--text-dim); font-size: .82rem; font-weight: 400; }
.quote-result.is-empty .quote-result-tax { visibility: hidden; }
.quote-summary { margin: 10px 0 0; color: var(--text-mid); font-size: .72rem; line-height: 1.7; }

.quote-card-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 0 26px 24px;
}
.quote-card-actions .btn { flex: 0 0 auto; }
.quote-disclaimer { color: var(--text-dim); font-size: .69rem; line-height: 1.6; }

.price-index { background: #fbfaf7; border-bottom: 1px solid #ded8cc; }
.price-index .wrap { display: flex; padding-top: 18px; padding-bottom: 18px; }
.price-index a {
  min-width: 150px;
  padding: 7px 22px;
  border-right: 1px solid var(--price-line);
  color: var(--text);
  font-size: .8rem;
  text-align: center;
  text-decoration: none;
}
.price-index a:first-child { border-left: 1px solid var(--price-line); }
.price-index a::after { content: " ↓"; color: var(--price-gold); }
.price-index a:hover { color: var(--price-gold); }

.price-section { padding: 76px 0; background: #fff; }
.price-section--subtle { background: var(--price-pale); border-top: 1px solid #ded8cc; border-bottom: 1px solid #ded8cc; }
.price-section-head { margin-bottom: 28px; }
.price-section-head .label { display: block; margin-bottom: 10px; color: var(--ink-soft); }
.price-section-head h2 {
  color: var(--price-navy);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.7vw, 1.9rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: .04em;
}
.price-section-head .rule-accent { margin: 13px 0 18px; background: var(--price-gold); }
.price-section-head p { margin: 0; color: var(--text-mid); font-size: .86rem; }

.price-table-wrap { overflow-x: auto; border-top: 1px solid var(--price-line); }
.price-table-wrap:focus-visible { outline: 2px solid var(--price-gold); outline-offset: 3px; }
.price-table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; table-layout: fixed; }
.price-table th,
.price-table td { padding: 18px 20px; border-right: 1px solid var(--price-line); border-bottom: 1px solid var(--price-line); text-align: left; vertical-align: middle; font-size: .82rem; line-height: 1.65; }
.price-table tr > :first-child { border-left: 1px solid var(--price-line); }
.price-table thead th { padding-top: 13px; padding-bottom: 13px; background: #eef1f5; color: var(--price-navy); font-size: .75rem; font-weight: 500; }
.price-table tbody th { width: 22%; background: #fafbfc; color: var(--price-navy); font-weight: 500; }
.price-table tbody tr { transition: background .2s; }
.price-table tbody tr:hover { background: #fbfaf7; }
.price-table th:nth-child(1) { width: 23%; }
.price-table th:nth-child(2) { width: 49%; }
.price-table th:nth-child(3) { width: 28%; }
.price-table--plans th:nth-child(1) { width: 22%; }
.price-table--plans th:nth-child(2) { width: 19%; }
.price-table--plans th:nth-child(3) { width: 43%; }
.price-table--plans th:nth-child(4) { width: 16%; }
.price-cell strong { display: block; color: var(--price-navy); font-size: 1rem; font-weight: 500; white-space: nowrap; }
.price-cell span { display: block; margin-top: 1px; color: var(--text-dim); font-size: .68rem; }

.price-detail-list { margin: 22px 0 0; border-top: 1px solid var(--price-line); }
.price-detail-list > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-bottom: 1px solid var(--price-line); }
.price-detail-list dt,
.price-detail-list dd { margin: 0; padding: 13px 16px; font-size: .78rem; line-height: 1.7; }
.price-detail-list dt { background: #fafbfc; color: var(--price-navy); font-weight: 500; }
.price-detail-list dd { color: var(--text-mid); }
.price-text-link { display: inline-block; margin-top: 24px; padding: 11px 23px; background: var(--price-navy); color: #fff; font-size: .78rem; font-weight: 500; letter-spacing: .04em; text-decoration: none; transition: background .2s; }
.price-text-link::after { content: "  →"; color: #d9c18a; }
.price-text-link:hover { background: var(--price-gold); }
.price-text-link:hover::after { color: #fff; }

.pricing-page #contact { background: var(--price-pale); border-top: 1px solid #ded8cc; padding-top: 80px; }
.pricing-page #contact .section-head { margin-bottom: 30px; }
.pricing-page #contact .section-head .label { color: var(--ink-soft); }
.pricing-page #contact .section-head .rule-accent { margin: 13px 0 18px; }
.pricing-page .contact-form,
.pricing-page .form-success { box-shadow: none; }
.pricing-page .contact-side { border-top: 3px solid var(--price-navy); }

.footer-row { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 26px; padding: 0; list-style: none; }
.footer-row a { color: #cfd6e2; font-size: .8rem; text-decoration: none; }

@media (max-width: 900px) {
  .quote-fields--translation { grid-template-columns: 1fr 1fr; }
  .quote-fields--translation .quote-field:last-child { grid-column: 1 / -1; max-width: 280px; }
  .price-index .wrap { overflow-x: auto; }
  .price-index a { flex: 0 0 auto; }
}

@media (max-width: 700px) {
  .price-page-head { padding: calc(var(--nav-h) + 20px) 0 38px !important; }
  .price-breadcrumb { margin-bottom: 22px; }
  .price-title { margin-bottom: 24px; }
  .price-hero-kicker { font-size: 10px; letter-spacing: .16em; }
  .price-title p { font-size: .75rem; line-height: 1.7; }
  .price-title p span { display: block; margin: 3px 0 0; padding: 0; border: 0; }
  .quote-card-head { display: block; padding: 18px 18px 14px; }
  .quote-card-head p { margin-top: 5px; line-height: 1.6; }
  .quote-tabs { padding: 0 18px; }
  .quote-tab { flex: 1; min-width: 0; padding: 13px 12px; }
  .quote-panel { padding: 20px 18px 15px; }
  .quote-fields--translation,
  .quote-fields--interpretation { grid-template-columns: 1fr; max-width: none; }
  .quote-fields--translation .quote-field:last-child { grid-column: auto; max-width: none; }
  .quote-result { grid-template-columns: 1fr auto; gap: 5px 12px; }
  .quote-result-label { grid-column: 1 / -1; }
  .quote-result-price { font-size: 1.18rem; }
  .quote-card-actions { display: block; padding: 0 18px 20px; }
  .quote-card-actions .btn { width: 100%; text-align: center; }
  .quote-disclaimer { margin-top: 9px; }
  .price-index .wrap { padding: 12px 16px; }
  .price-index a { min-width: 118px; padding: 6px 14px; }
  .price-section { padding: 56px 0; }
  .price-section-head { margin-bottom: 22px; }
  .price-section-head p { font-size: .8rem; line-height: 1.75; }
  .price-table th,
  .price-table td { padding: 15px 14px; }
  .price-detail-list > div { grid-template-columns: 1fr; }
  .price-detail-list dt,
  .price-detail-list dt { padding-bottom: 5px; background: #fff; border-top: 0; }
  .price-detail-list dd { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-page .reveal { transition: none; }
}
