/*
 * 既存LPのデザインを維持したまま、料金プランと新しい購入導線だけを補う。
 * 本番の style.css は変更せず、ステージング専用HTMLから最後に読み込む。
 */

.license {
  padding: min(58px, 4vw) 0 min(64px, 4.5vw);
  scroll-margin-top: 96px;
}

.pricing-terms {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 14px;
  padding: 0;
  color: #38526a;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.5;
}

.pricing-terms li {
  position: relative;
  padding-left: 22px;
}

.pricing-terms li::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 0;
  width: 13px;
  height: 7px;
  border-bottom: 2px solid #00aebb;
  border-left: 2px solid #00aebb;
  transform: rotate(-45deg);
}

.pricing-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(410px, 100%);
  margin: 14px auto 0;
  padding: 4px;
  border: 1px solid #cddce9;
  border-radius: 999px;
  background: #f4f8fb;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
}

.pricing-switch__button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  color: #52667a;
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.35;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pricing-switch__button span {
  display: inline-block;
  margin-left: 5px;
  color: #087f6b;
  font-size: 1.05rem;
}

.pricing-switch__button.is-active {
  color: #fff;
  background: linear-gradient(to right, #0068b7, #00aebb);
  box-shadow: 0 5px 14px rgba(0, 104, 183, 0.24);
}

.pricing-switch__button.is-active span {
  color: #fff;
}

.pricing-switch__button:focus-visible {
  outline: 3px solid rgba(0, 104, 183, 0.28);
  outline-offset: 3px;
}

.pricing-switch__caption {
  min-height: 20px;
  margin: 9px auto 0;
  color: #64748b;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
}

.pricing-plan-tabs[hidden],
.plan-card[hidden] {
  display: none !important;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  margin-top: 20px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.plan-card--featured {
  border: 2px solid #0b69c9;
  box-shadow: 0 18px 42px rgba(11, 105, 201, 0.15);
}

.plan-card h3 {
  font-size: 2.2rem;
}

.plan-card .badge {
  top: 18px;
  right: 18px;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 10px;
  color: #0b69c9;
  line-height: 1.2;
}

.plan-card__price strong {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.plan-card__price span {
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 800;
}

.plan-card__annual {
  align-self: flex-start;
  min-height: 0;
  margin-top: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #31506c;
  background: #f0f7fd;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
}

.plan-card__summary {
  min-height: 44px;
  margin-top: 10px;
  color: #475569;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.55;
}

.plan-card .plan-card__features {
  min-height: 106px;
  margin: 10px 0 12px;
  padding: 12px 0 0;
  border-top: 1px solid #e2e8f0;
  gap: 6px;
  font-size: 1.25rem;
  line-height: 1.45;
}

.plan-card .plan-card__features li {
  padding-left: 22px;
}

.plan-card__actions {
  margin-top: auto;
}

.plan-card__actions .btn {
  margin-top: 0;
}

.plan-card__text-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-top: 3px;
  padding: 3px 10px;
  color: #0b69c9;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.plan-card__text-link:hover {
  color: #004d8c;
}

.plan-card__text-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(0, 104, 183, 0.25);
  outline-offset: 2px;
}

.pricing-license-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 15px 18px;
  border: 1px solid #cfe1ed;
  border-radius: 12px;
  background: linear-gradient(120deg, #f7fbff 0%, #f2fbfb 100%);
}

.pricing-license-actions p {
  flex: 1 1 auto;
  margin: 0;
  color: #475569;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.65;
}

.pricing-license-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #0b69c9 0%, #0aa2ff 100%);
  box-shadow: 0 6px 14px rgba(11, 105, 201, 0.2);
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.pricing-license-actions .btn:hover {
  color: #fff;
  filter: brightness(1.05);
}

.pricing-license-actions .btn:focus-visible {
  outline: 3px solid rgba(0, 104, 183, 0.28);
  outline-offset: 3px;
}

.pricing-comparison {
  margin-top: 14px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.pricing-comparison summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 52px 10px 20px;
  color: #0b69c9;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.45;
  list-style: none;
  text-align: center;
}

.pricing-comparison summary::-webkit-details-marker {
  display: none;
}

.pricing-comparison summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center / 10px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 10px no-repeat,
    linear-gradient(to right, #0068b7, #00aebb);
  transform: translateY(-50%);
}

.pricing-comparison[open] summary::after {
  content: "";
  background:
    linear-gradient(#fff, #fff) center / 10px 2px no-repeat,
    linear-gradient(to right, #0068b7, #00aebb);
}

.pricing-comparison summary small {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 700;
}

.pricing-comparison summary:focus-visible {
  outline: 3px solid rgba(0, 104, 183, 0.25);
  outline-offset: -3px;
}

.pricing-comparison__scroll {
  padding: 0 18px 18px;
  overflow-x: auto;
}

.pricing-comparison table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: #334155;
  font-size: 1.25rem;
  line-height: 1.5;
}

.pricing-comparison th,
.pricing-comparison td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.pricing-comparison th:first-child {
  width: 28%;
  text-align: left;
}

.pricing-comparison thead th {
  color: #1e293b;
  background: #f0f7fd;
  font-weight: 900;
}

.pricing-comparison tbody th {
  color: #475569;
  background: #f8fafc;
  font-weight: 800;
}

.enterprise-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 14px;
  padding: 16px 20px;
  border: 1px solid #cfe1ed;
  border-radius: 14px;
  background: linear-gradient(120deg, #f6fbff 0%, #f1fbfb 100%);
}

.enterprise-panel__content {
  min-width: 0;
}

.enterprise-panel__eyebrow {
  color: #0b69c9;
  font-size: 1.15rem;
  font-weight: 900;
}

.enterprise-panel h3 {
  margin-top: 3px;
  color: #0f172a;
  font-size: 2.1rem;
  font-weight: 900;
}

.enterprise-panel__content > p:last-of-type {
  margin-top: 5px;
  color: #475569;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.55;
}

.enterprise-panel .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 min(270px, 32%);
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #0b69c9 0%, #0aa2ff 100%);
  box-shadow: 0 6px 14px rgba(11, 105, 201, 0.2);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
}

.license__footnote {
  margin-top: 10px;
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.license__footnote a {
  color: #0b69c9;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.u-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.fv__button,
.new-feature__button,
.trial__step-btn,
.sales__buttons .btn,
.plan-card .btn,
.contact__button a,
.trial-choice__buttons .btn {
  max-width: 100%;
  height: auto;
  min-height: 50px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.plan-card .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 16px;
  font-size: 1.2rem;
}

.trial__step-btn,
.trial-choice__buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: top;
}

body.modal-open {
  overflow: hidden;
}

.trial-choice__requirements {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  color: #52667a;
  background: #f4f8fb;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.55;
}

.trial-choice__buttons {
  gap: 10px;
  margin-top: 16px;
}

.trial-choice__buttons .btn {
  flex-direction: column;
  min-height: 58px;
  padding: 10px 24px;
  line-height: 1.35;
}

.trial-choice__buttons .btn small {
  margin-top: 2px;
  font-size: 1.05rem;
  font-weight: 700;
  opacity: 0.9;
}

#trial-modal p.trial-choice__issued {
  margin-top: 16px;
  color: #52667a;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

#purchase-guide-modal .modal-body {
  width: min(94%, 660px);
  max-width: 660px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

#purchase-guide-modal .modal-content {
  padding: 48px 38px 34px;
  border-radius: 16px;
}

.purchase-guide {
  text-align: left;
}

.purchase-guide__eyebrow {
  margin: 0;
  color: #00aebb;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
}

#purchase-guide-modal .purchase-guide h3 {
  margin: 4px 0 0;
  color: #1e293b;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.purchase-guide__lead {
  margin: 9px 0 0;
  color: #52667a;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.purchase-guide__steps {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.purchase-guide__steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid #dbe7ef;
  border-radius: 9px;
  background: #f8fbfd;
}

.purchase-guide__steps li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0068b7, #00aebb);
  font-size: 1.15rem;
  font-weight: 900;
}

.purchase-guide__steps strong {
  display: block;
  color: #1e3a55;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.5;
}

.purchase-guide__steps p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.6;
}

.purchase-guide__offline-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 4px solid #00aebb;
  border-radius: 6px;
  color: #3d5d6c;
  background: #edf9fa;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.65;
}

.purchase-guide__offline-note strong {
  display: block;
  color: #1d5962;
  font-weight: 900;
}

.purchase-guide__close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(320px, 100%);
  min-height: 48px;
  margin: 18px auto 0;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #0b69c9 0%, #0aa2ff 100%);
  box-shadow: 0 6px 14px rgba(11, 105, 201, 0.2);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1.45;
}

.purchase-guide__close-button:hover {
  filter: brightness(1.05);
}

.purchase-guide__close-button:focus-visible {
  outline: 3px solid rgba(0, 104, 183, 0.28);
  outline-offset: 3px;
}

.trial-choice__issued a {
  color: #0068b7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 18px;
}

.footer__links a {
  color: #52667a;
  text-decoration: none;
}

.footer__links a:hover {
  color: #0068b7;
}

.contact__button {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.contact__button a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 72px;
  margin-left: 0 !important;
  padding: 14px 28px;
  line-height: 1.45;
}

.contact__button a:first-child {
  flex: 0 1 240px;
  width: 240px;
}

.contact__button a:last-child {
  flex: 0 1 320px;
  width: 320px;
}

.plan-card > .btn,
.plan-card__actions {
  margin-top: auto;
}

.plan-card__actions .btn:first-child {
  margin-top: 0;
}

.inquiry__staging-note {
  margin-top: 10px;
  color: #64748b;
  font-size: 1.25rem;
  font-weight: 600;
}

@media (max-width: 1279px) {
  .plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .plan-card {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .license {
    padding: 46px 0 50px;
    scroll-margin-top: 72px;
  }

  .pricing-terms {
    gap: 7px 14px;
    margin-top: 17px;
    font-size: 1.15rem;
  }

  .pricing-switch {
    margin-top: 14px;
  }

  .pricing-switch__button {
    min-height: 42px;
    padding-inline: 8px;
    font-size: 1.25rem;
  }

  .pricing-switch__caption {
    margin-top: 7px;
    font-size: 1.1rem;
  }

  .pricing-plan-tabs:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 14px;
    padding: 4px;
    border: 1px solid #d4e1eb;
    border-radius: 12px;
    background: #f4f8fb;
  }

  .pricing-plan-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
    min-height: 52px;
    padding: 7px 3px;
    border: 0;
    border-radius: 9px;
    color: #52667a;
    background: transparent;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.3;
  }

  .pricing-plan-tab small {
    margin-top: 2px;
    font-size: 0.95rem;
    font-weight: 800;
  }

  .pricing-plan-tab.is-active {
    color: #fff;
    background: linear-gradient(to right, #0068b7, #00aebb);
    box-shadow: 0 4px 10px rgba(0, 104, 183, 0.18);
  }

  .pricing-plan-tab:focus-visible {
    outline: 3px solid rgba(0, 104, 183, 0.25);
    outline-offset: 2px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .plan-card {
    padding: 18px;
  }

  .plan-card__summary,
  .plan-card .plan-card__features {
    min-height: auto;
  }

  .plan-card__price strong {
    font-size: 2.7rem;
  }

  .plan-card__annual {
    min-height: auto;
  }

  .plan-card .plan-card__features {
    margin-bottom: 18px;
  }

  .pricing-comparison {
    margin-top: 10px;
  }

  .pricing-license-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    padding: 14px;
  }

  .pricing-license-actions .btn {
    width: 100%;
  }

  .pricing-comparison summary {
    flex-direction: column;
    gap: 1px;
    min-height: 56px;
    padding-left: 12px;
    font-size: 1.25rem;
  }

  .pricing-comparison__scroll {
    padding: 0 12px 12px;
  }

  .enterprise-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
    padding: 16px;
  }

  .enterprise-panel .btn {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    white-space: normal;
  }

  .license__footnote {
    margin-top: 9px;
    font-size: 1.05rem;
  }

  .contact__button {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .contact__button a:first-child,
  .contact__button a:last-child {
    flex: none;
    width: 100%;
    min-height: 58px;
    padding: 14px 20px;
  }

  .footer__links {
    font-size: 1.2rem !important;
  }

  #purchase-guide-modal .modal-content {
    padding: 48px 20px 24px;
  }

  #purchase-guide-modal .purchase-guide h3 {
    font-size: 1.9rem;
  }

  .purchase-guide__lead {
    font-size: 1.15rem;
  }

  .purchase-guide__steps li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 11px;
  }

  .purchase-guide__steps li > span {
    width: 28px;
    height: 28px;
    font-size: 1.05rem;
  }

  .venture-seal {
    right: 8px;
  }

  .case__profile {
    gap: 12px;
    margin-left: 0;
  }

  .case__profile > img {
    flex: 0 0 30%;
  }

  .case__profile-content {
    width: calc(70% - 12px);
    min-width: 0;
    margin-left: 0;
  }

  .case__profile-logo {
    width: 100%;
    max-width: 187px;
  }
}

@media (max-width: 359px) {
  .header__contact:last-child {
    display: none;
  }

  .header__contact:first-child a {
    font-size: 1rem;
  }

  .pricing-switch__button span {
    display: block;
    margin: 1px 0 0;
  }
}
