/* =========================================================
   price.css — 料金表ページ専用スタイル
   ========================================================= */

/* ---------- カテゴリナビ ---------- */
.price-nav {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(244, 248, 255, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.price-nav__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.price-nav__list::-webkit-scrollbar {
  display: none;
}
.price-nav__link {
  display: block;
  padding: 14px 22px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.price-nav__link:hover,
.price-nav__link.is-active {
  color: var(--brand-1);
  border-bottom-color: var(--brand-1);
}

/* ---------- 全体一覧テーブル ---------- */
.price-overview {
  background: var(--bg);
}
.price-overview__head {
  text-align: center;
  margin-bottom: 16px;
}
.price-overview__note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 48px;
}
.price-table-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table thead tr {
  background: var(--deep);
}
.price-table th {
  padding: 14px 20px;
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
}
.price-table td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink);
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.price-table tr:last-child td {
  border-bottom: none;
}
.price-table__row--featured td {
  background: rgba(31, 108, 255, 0.03);
}
.price-table__badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 40px;
  margin-right: 6px;
  vertical-align: middle;
}
.price-table__badge--ai {
  background: var(--grad);
  color: #fff;
}
.price-table__type {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 40px;
}
.price-table__type--once {
  background: rgba(31, 108, 255, 0.08);
  color: var(--brand-1);
  border: 1px solid rgba(31, 108, 255, 0.2);
}
.price-table__type--monthly {
  background: rgba(106, 60, 255, 0.08);
  color: var(--brand-3);
  border: 1px solid rgba(106, 60, 255, 0.2);
}
.price-table__price {
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-size: 18px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.price-table__link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-1);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(31, 108, 255, 0.25);
  border-radius: 6px;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.price-table__link:hover {
  background: var(--brand-1);
  color: #fff;
}

/* ---------- カテゴリセクション共通 ---------- */
.price-cat {
  border-bottom: 1px solid var(--line);
}
.price-cat--deep {
  background: var(--deep);
}
.price-cat--bg2 {
  background: var(--bg-2);
}
.price-cat__head {
  text-align: center;
  margin-bottom: 20px;
}
.price-cat__title--light {
  color: #fff;
}
.price-cat__lead {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 8px 0 48px;
  line-height: 1.8;
}
.price-cat__lead--light {
  color: rgba(255, 255, 255, 0.6);
}
.price-cat__note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 28px;
}
.price-cat__note a {
  color: var(--brand-1);
}
.price-cat__note--light {
  color: rgba(255, 255, 255, 0.45);
}
.price-cat__note--light a {
  color: var(--brand-2);
}

/* hp-pricing__grid の3列固定（月額エリア） */
.hp-pricing__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- ライト背景上の hp-plan 上書き（price-cat--deep 以外） ---------- */
.price-cat:not(.price-cat--deep) .hp-plan {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.price-cat:not(.price-cat--deep) .hp-plan:hover {
  border-color: var(--brand-1);
  box-shadow: 0 12px 40px rgba(31, 108, 255, 0.12);
}
.price-cat:not(.price-cat--deep) .hp-plan--popular {
  background: rgba(31, 108, 255, 0.05);
  border-color: var(--brand-1);
  transform: scale(1.02);
}
.price-cat:not(.price-cat--deep) .hp-plan--popular:hover {
  transform: scale(1.02) translateY(-4px);
}
.price-cat:not(.price-cat--deep) .hp-plan__head {
  border-bottom-color: var(--line);
}
.price-cat:not(.price-cat--deep) .hp-plan__label {
  color: var(--muted);
}
.price-cat:not(.price-cat--deep) .hp-plan__name {
  color: var(--ink);
}
.price-cat:not(.price-cat--deep) .hp-plan__price span {
  color: var(--ink-soft);
  -webkit-text-fill-color: var(--ink-soft);
}
.price-cat:not(.price-cat--deep) .hp-plan__list li {
  color: var(--ink-soft);
}
.price-cat:not(.price-cat--deep) .hp-plan__list li::before {
  color: var(--brand-1);
}
.price-cat:not(.price-cat--deep) .hp-plan__btn {
  background: rgba(31, 108, 255, 0.06);
  border-color: rgba(31, 108, 255, 0.2);
  color: var(--brand-1);
}
.price-cat:not(.price-cat--deep) .hp-plan__btn:hover {
  background: rgba(31, 108, 255, 0.12);
  border-color: var(--brand-1);
}
.price-cat:not(.price-cat--deep) .hp-plan--popular .hp-plan__btn {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}
.price-cat:not(.price-cat--deep) .hp-plan--popular .hp-plan__btn:hover {
  opacity: 0.88;
}

/* ---------- 月額プラングループ ---------- */
.price-monthly-group {
  margin-bottom: 64px;
}
.price-monthly-group:last-child {
  margin-bottom: 0;
}
.price-monthly-group--alt {
  margin-top: 0;
}
.price-monthly-group__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.price-monthly-group__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.price-monthly-group__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.price-monthly-group__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.price-monthly-group__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.price-monthly-group__link {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-1);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(31, 108, 255, 0.25);
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s;
}
.price-monthly-group__link:hover {
  background: var(--brand-1);
  color: #fff;
}

/* ---------- オプション料金 ---------- */
.price-option-section {
  background: var(--bg-2);
}
.price-option-section__head {
  text-align: center;
  margin-bottom: 20px;
}
.price-option-section__lead {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 48px;
}
.price-option-section__note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 32px;
}
.price-option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.price-option-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.price-option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(31, 108, 255, 0.1);
  border-color: var(--brand-1);
}
.price-option-card__name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.price-option-card__price {
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-size: 20px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.price-option-card__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ---------- 注意事項 ---------- */
.price-notice {
  background: var(--deep);
}
.price-notice__inner {
  max-width: 760px;
  margin: 0 auto;
}
.price-notice__title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 24px;
}
.price-notice__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.price-notice__list li {
  display: flex;
  align-items: flex-start;
  padding-left: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
}
.price-notice__list li::before {
  content: "※";
  color: var(--brand-2);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  left: -10px;
}
.price-notice__list li strong {
  color: #fff;
}

/* ---------- FAQ下部リンク ---------- */
.price-faq-more {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--ink-soft);
}
.price-faq-more a {
  color: var(--brand-1);
  text-decoration: underline;
  text-decoration-color: rgba(31, 108, 255, 0.3);
  text-underline-offset: 3px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1060px) {
  .price-option-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 860px) {
  .price-table th:nth-child(4),
  .price-table td:nth-child(4) {
    display: none;
  }
  .hp-pricing__grid--3 {
    grid-template-columns: 1fr;
  }
  .price-option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-monthly-group__head {
    flex-wrap: wrap;
  }
  .price-monthly-group__link {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .price-table th:nth-child(2),
  .price-table td:nth-child(2) {
    display: none;
  }
  .price-option-grid {
    grid-template-columns: 1fr;
  }
  .price-nav__link {
    padding: 10px 14px;
    font-size: 11px;
  }
}
