/* ==============================================
   料金ページ - 全セクション
   ============================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #222;
}

.lower_pricettl_icon{
    background-color: var(--accent-color01);
    border-radius: 2em;
    width: 48px;
    height: 4px;
    display: inline-block;
}


/* =============================================
   3つのプラン + 星取り表
   ============================================= */
.price-plans-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 100px 24px;
  background: #fff;
  gap: 40px;
}

.price-sec-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  gap:18px;
}

.price-sec-title {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 8px;
}

.price-sec-deco {
  width: 46px;
  height: 4px;
  margin: 0 auto 12px;
  display: block;
}

.price-sec-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: #222;
  text-align: center;
  line-height: 1.6;
}

.price-sec-subtitle--sm {
  font-size: 18px;
}


/* ── プランカード ── */
.plan-cards {
  display: flex;
  gap: 15px;
  align-items: stretch;
  flex-wrap: nowrap;          /* PC：3枚を1行に固定 */
  justify-content: center;
  width: 100%;
  max-width: 990px;
  padding-top: 28px;          /* おすすめバッジ分の余白 */
  margin-bottom: 10px;
}

.plan-card {
  flex: 1;                    /* 均等に伸縮 */
  min-width: 0;               /* flex child が縮めるように */
  max-width: 320px;           /* 大画面で広がりすぎない */
  border: 1px solid #d0d4d8;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card--featured {
  border: 2px solid #3f7cde;
  overflow: visible;          /* バッジをカード外に出す */
}

/* カードのヘッダー角丸（overflow:visible 時に必要） */
.plan-card--featured .plan-card-header {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

/* おすすめバッジ（カード外・絶対配置） */
.plan-card__badge {
  position: absolute;
  top: -34px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #3f7cde;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.plan-card__badge-deco {
  opacity: 0.5;
  margin: 0 4px;
}

.plan-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-card-header--essential { background: #79a3e8; }
.plan-card-header--standard  { background: #3f7cde; }
.plan-card-header--ai {
  background: linear-gradient(90deg, #3f7cde 0%, #e7468c 84.615%);
}

/* plan-card-name = プラン名（h3） */
.plan-card-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  text-align: center;
  line-height: 1.6;
  padding: 10px 0;
  margin:0;
}

.plan-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-card-headline {
  font-size: 20px;
  font-weight: 500;
  color: #222;
  text-align: center;
  line-height: 1.6;
}

.plan-card-desc {
  font-size: 16px;
  font-weight: 400;
  color: #222;
  line-height: 1.5;
}


/* ── 星取り表 ── */
.feature-table-wrap {
  width: 100%;
  max-width: 990px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 10px;
}

.feature-table thead th {
  padding: 12px 8px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  vertical-align: middle;
  line-height: 1;
}

.feature-table__name-col {
  width: 52%;
  background: #f0f2f5;
  color: #222 !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-align: center;
  padding-left: 16px !important;
  border-radius: 8px 0 0 0;
}

.feature-table__plan-col { width: 16%; }
.feature-table__plan-col--essential { background: #79a3e8; }
.feature-table__plan-col--standard  { background: #3f7cde; }
.feature-table__plan-col--ai {
  background-color: #E7468C;
  border-radius: 0 8px 0 0;
}

.feature-table tbody tr {
  border-bottom: 1px solid #A0A9B0;
}

.feature-table tbody tr:last-child {
  border-bottom: 1px solid #A0A9B0;
}

.feature-table__name {
  padding: 13px 12px 13px 16px;
  vertical-align: middle;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-table__name strong {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
}

.feature-table__name span {
  font-size: 14px;
  font-weight: 400;
  color: #555;
  line-height: 1.5;
}

.feature-table__cell {
  text-align: center;
  vertical-align: middle;
  padding: 14px 8px;
}

/* ● ドット */
.dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.dot--paleblue { background: #79a3e8; }
.dot--blue { background: #3f7cde; }
.dot--pink { background: #e7468c; }

/* — ダッシュ */
.dash {
  font-size: 14px;
  color: #A0A9B0;
  font-weight: 500;
}

/* 表の注釈 */
.table-notes {
  list-style: disc;
  font-size: 12px;
  color: #555;
  line-height: 1.7;
}


/* ── その他オプション ── */
.other-options {
  width: 100%;
  max-width: 990px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto 40px;
}

.other-options__title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  line-height: 1.6;
  text-align: center;
}

.option-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.option-card {
  flex: 1;
  min-width: 240px;
  border: 1px solid #d0d4d8;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-card__name {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
}

.option-card__desc {
  font-size: 14px;
  font-weight: 400;
  color: #555;
  line-height: 1.5;
}
.option-card__link {
  font-size: 14px;
  color: #3f7cde;
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}
.option-card__link:hover {
  text-decoration: underline;
}

/* =============================================
   料金体系
   ============================================= */
.price-howto-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  background: #f8f9fa;
  margin-bottom: 70px;
  gap: 40px;
}

.price-howto__inner {
  width: 100%;
  max-width: 739px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.price-howto__steps-wrap {
  background: #e8effb;
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

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

.price-howto__step {
  background: #fff;
  border-radius: 16px;
  padding: 16px 24px;
  width: 304px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-howto__step-title {
  font-size: 20px;
  font-weight: 500;
  color: #0046eb;
  text-align: center;
  line-height: 1.6;
}

.price-howto__step-divider {
  height: 1px;
  background: #d0d4d8;
}

.price-howto__step-text {
  font-size: 16px;
  font-weight: 400;
  color: #222;
  text-align: center;
  line-height: 1.5;
}

.price-howto__step-arrow {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

.price-howto__notes {
  list-style: disc;
  padding-left: 18px;
  font-size: 12px;
  color: #222;
  line-height: 1.7;
}

.price-howto__notes li + li {
  margin-top: 2px;
}


/* ==============================================
   レスポンシブ（990px以下）
   ============================================== */
@media screen and (max-width: 990px) {

  /* ── プランカード ── */
  .plan-cards {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
  }

  .plan-card--featured {
    margin-top: 28px;
  }

  .plan-card {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  /* ── 星取り表：横スクロール ── */
  .feature-table-wrap {
    width: auto;
    gap: 0;
    padding-bottom: 4px;
  }

  .feature-table {
    width: 560px;
    min-width: 560px;
  }

  .feature-table thead th {
    padding: 9px 8px;
  }

  .table-notes {
    margin-top: 12px;
  }

  /* ── その他オプション ── */
  .option-cards {
    flex-direction: column;
  }

  /* ── 料金体系 ── */
  .price-howto__steps {
    flex-direction: column;
  }

  .price-howto__step {
    width: 100%;
    max-width: 400px;
  }

  .price-howto__step-arrow {
    transform: rotate(90deg);
  }
}

/* ==============================================
   レスポンシブ　表専用（560px以下）
   ============================================== */
@media screen and (max-width: 560px) {
  /* ── 星取り表：横スクロール ── */
  .feature-table-wrap {
    display: block;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    /* ↓ SPで左右の余白なくす */
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
  }
}