/* =========================================================
   費用について（page-pricing.php）
   配色トークン（--blue 等）は lower-style.css で定義済みのものを利用
   ========================================================= */
.pricing-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) 0 clamp(80px, 11vw, 130px);
}

/* 導入 */
.pricing-intro {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.pricing-intro .section-kicker {
  color: var(--blue);
}

.pricing-intro h2 {
  margin: 10px 0 16px;
  color: #102032;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.5;
}

.pricing-intro p {
  margin: 0;
  color: #25364a;
  font-weight: 500;
  line-height: 1.9;
}

/* 料金プランカード */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 28px 32px;
  background: #fff;
  border: 1px solid rgba(214, 229, 241, 0.9);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(4, 22, 38, 0.08);
}

.pricing-plan.is-featured {
  border-color: var(--blue);
  box-shadow: 0 26px 60px rgba(6, 118, 244, 0.2);
  transform: translateY(-8px);
}

.pricing-plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 22px;
  color: #fff;
  background: linear-gradient(135deg, #238fff, #005be4);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 91, 228, 0.3);
}

.pricing-plan-en {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pricing-plan-name {
  margin: 4px 0 14px;
  color: #102032;
  font-size: 1.3rem;
  font-weight: 900;
}

.pricing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 14px;
  color: #102032;
}

.pricing-plan-amount {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
}

.pricing-plan-amount::before {
  content: "¥";
  margin-right: 2px;
  font-size: 1.1rem;
  font-weight: 900;
}

.pricing-plan-unit {
  color: #5f6f82;
  font-size: 0.95rem;
  font-weight: 700;
}

.pricing-plan-lead {
  margin: 0 0 20px;
  color: #25364a;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.8;
}

.pricing-plan-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 20px 0 0;
  border-top: 1px solid #e4edf4;
  display: grid;
  gap: 12px;
}

.pricing-plan-features li {
  position: relative;
  padding-left: 28px;
  color: #25364a;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.pricing-plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.pricing-plan-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  color: var(--blue);
  background: #fff;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.pricing-plan-btn:hover {
  color: #fff;
  background: var(--blue);
}

.pricing-plan.is-featured .pricing-plan-btn {
  color: #fff;
  background: linear-gradient(135deg, #238fff, #005be4);
  border-color: transparent;
}

.pricing-plan.is-featured .pricing-plan-btn:hover {
  filter: brightness(1.06);
}

.pricing-note {
  margin: 22px 0 0;
  color: #5f6f82;
  font-size: 0.82rem;
  line-height: 1.7;
  text-align: center;
}

/* ブロック共通見出し */
.pricing-block {
  margin-top: clamp(56px, 8vw, 92px);
}

.pricing-block-head {
  margin-bottom: clamp(28px, 4vw, 40px);
  text-align: center;
}

.pricing-block-head .section-kicker {
  color: var(--blue);
}

.pricing-block-head h3 {
  margin: 8px 0 0;
  color: #102032;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.4;
}

/* 料金テーブル */
.pricing-tablewrap {
  overflow-x: auto;
  border: 1px solid rgba(214, 229, 241, 0.9);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(4, 22, 38, 0.08);
}

.pricing-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
}

.pricing-table th,
.pricing-table td {
  padding: 22px 24px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #eef4f9;
}

.pricing-table tr:last-child th,
.pricing-table tr:last-child td {
  border-bottom: 0;
}

.pricing-table th {
  width: 34%;
  color: #102032;
  font-size: 1rem;
  font-weight: 900;
}

.pricing-td-price {
  width: 24%;
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}

.pricing-td-desc {
  color: #25364a;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.7;
}

/* お見積もりの流れ */
.pricing-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.pricing-flow-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid rgba(214, 229, 241, 0.9);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(4, 22, 38, 0.06);
}

.pricing-flow-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #238fff, #005be4);
  font-size: 1.2rem;
  font-weight: 900;
}

.pricing-flow-copy h4 {
  margin: 0 0 6px;
  color: #102032;
  font-size: 1.1rem;
  font-weight: 900;
}

.pricing-flow-copy p {
  margin: 0;
  color: #25364a;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.75;
}

/* FAQ */
.pricing-faq {
  display: grid;
  gap: 14px;
}

.pricing-faq-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(214, 229, 241, 0.9);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(4, 22, 38, 0.06);
}

.pricing-faq-item summary {
  position: relative;
  padding: 22px 56px 22px 26px;
  color: #102032;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

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

.pricing-faq-item summary::before {
  content: "Q";
  margin-right: 12px;
  color: var(--blue);
  font-weight: 900;
}

.pricing-faq-item summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}

.pricing-faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.pricing-faq-item p {
  margin: 0;
  padding: 0 26px 24px;
  color: #25364a;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.85;
}

/* レスポンシブ */
@media (max-width: 980px) {
  .pricing-plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .pricing-plan.is-featured {
    transform: none;
  }
}

@media (max-width: 700px) {
  .pricing-flow-item {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .pricing-flow-num {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 16px;
  }
}
