/* ====== 料金プランセクション ====== */
.p-price {
  --pp-black: #131313;
  --pp-black400: #515151;
  --pp-black300: #8B8B8B;
  --pp-line: #E7EBEE;
  --pp-blue: #15BDEB;
  --pp-blue600: #13AAD4;
  --pp-blue700: #1197BC;
  --pp-blue100: #D0F2FB;
  --pp-blue50: #EAF7FC;
  padding: 4.5rem 0;
  background: #fff;
  color: var(--pp-black);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
}
.p-price *,
.p-price *::before,
.p-price *::after { box-sizing: border-box; }

.p-price__inner {
  max-width: 63rem;
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* 見出し */
.p-price__head { text-align: center; }
.p-price__title {
  margin: 0;
  font-weight: 900;
  font-size: 2.55rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--pp-black);
}
.p-price__lead {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  font-size: 0.9rem;
  color: var(--pp-black400);
  text-wrap: pretty;
}

/* 費用構成 */
.p-price__fee {
  max-width: 50rem;
  margin: 3rem auto 2.6rem;
}
.p-price__feeDiagram {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #F5F7F8;
  border-radius: 1rem;
  padding: 1.5rem 1.7rem;
}
.p-price__feeBox {
  flex: 1;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.6rem 1rem;
  text-align: center;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 0.35rem 1rem -0.8rem rgba(15, 26, 31, 0.3);
}
.p-price__feePlus {
  flex: none;
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
}
.p-price__feeCap {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* テーブル */
.p-price__scroll { overflow-x: auto; }
.p-price__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 44rem;
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: 1rem;
  box-shadow: 0 1.1rem 2.4rem -2rem rgba(15, 26, 31, 0.35);
}
.p-price__table th,
.p-price__table td {
  text-align: center;
  vertical-align: middle;
  padding: 1.3rem 1.4rem;
  border-bottom: 1px solid var(--pp-line);
}
.p-price__table tbody tr:last-child th,
.p-price__table tbody tr:last-child td { border-bottom: 0; }

.p-price__corner,
.p-price__rowHead {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 9rem;
  background: #F7FAFB;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--pp-black);
  padding-left: 1.2rem;
  padding-right: 0.7rem;
  box-shadow: 1px 0 0 var(--pp-line);
}
.p-price__corner { border-radius: 1rem 0 0 0; }
.p-price__rowHead { white-space: nowrap; }

.p-price__plan {
  position: relative;
  padding: 1.6rem 1.1rem 1.4rem;
  vertical-align: bottom;
}
.p-price__plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.3rem;
  right: 1.3rem;
  height: 0.22rem;
  border-radius: 0 0 99px 99px;
}
.p-price__plan--light::before { background: var(--pp-blue100); }
.p-price__plan--std::before { background: var(--pp-blue); }
.p-price__plan--pro::before { background: var(--pp-black); }
.p-price__plan--std { background: var(--pp-blue50); }
.p-price__plan--std .p-price__planName { color: var(--pp-blue700); }
.p-price__planName {
  display: block;
  font-weight: 900;
  font-size: 1.1rem;
  white-space: nowrap;
}
.p-price__badge {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto 0.55rem;
  background: var(--pp-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.p-price__cell {
  font-size: 0.8rem;
  color: var(--pp-black400);
  line-height: 1.75;
  text-wrap: pretty;
}
.p-price__cell--mid {
  background: #F6FCFE;
  color: var(--pp-black);
}

/* 注記 */
.p-price__note {
  margin: 1.6rem auto 0;
  max-width: 42rem;
  text-align: center;
  background: var(--pp-blue50);
  border: 1.5px solid var(--pp-blue100);
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pp-black);
}
.p-price__noteLink {
  color: var(--pp-blue700);
  text-decoration: underline;
}
.p-price__noteLink:hover { color: var(--pp-blue600); }

/* CTA */
.p-price__cta {
  margin-top: 4rem;
  background: #F5F8FA;
  border-radius: 1.2rem;
  padding: 3rem 2rem;
}
.p-price__ctaHead { text-align: center; margin-bottom: 2rem; }
.p-price__ctaTitle {
  margin: 0;
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
}
.p-price__ctaLead {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--pp-black400);
}
.p-price__ctaGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
  max-width: 50rem;
  margin: 0 auto;
}
.p-price__ctaCard {
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: 1rem;
  padding: 1.9rem 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transition: 0.25s;
  box-shadow: 0 0.85rem 2rem -1.7rem rgba(15, 26, 31, 0.35);
}
.p-price__ctaCard:hover {
  transform: translateY(-0.25rem);
  border-color: var(--pp-blue);
  box-shadow: 0 1.6rem 3rem -1.9rem rgba(15, 26, 31, 0.4);
}
.p-price__ctaCardTitle {
  margin: 0;
  font-weight: 900;
  font-size: 1.05rem;
}
.p-price__ctaCardBody {
  margin: 0;
  font-size: 0.78rem;
  color: var(--pp-black400);
  text-wrap: pretty;
}
.p-price__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap;
}
.p-price__btn::after {
  content: "›";
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transform: translateY(-1px);
}
.p-price__btn--blue { background: var(--pp-blue); color: #fff; }
.p-price__btn--blue:hover { background: var(--pp-blue600); color: #fff; }
.p-price__btn--dark { background: var(--pp-black); color: #fff; }
.p-price__btn--dark:hover { background: #000; color: #fff; }

/* ====== SP（1rem = 16px @394px） ====== */
@media screen and (max-width: 960px) {
  .p-price { padding: 3rem 0; }
  .p-price__inner { padding: 0 1.25rem; }
  .p-price__title { font-size: 1.875rem; }
  .p-price__lead { font-size: 0.9rem; }
  .p-price__br { display: none; }

  .p-price__fee { margin: 2rem auto 2.25rem; }
  .p-price__feeDiagram { gap: 0.875rem; padding: 1.125rem 1rem; border-radius: 1rem; }
  .p-price__feeBox { padding: 1.125rem 0.5rem; font-size: 1rem; border-radius: 0.625rem; }
  .p-price__feePlus { font-size: 1.5rem; }
  .p-price__feeCap { font-size: 0.84rem; margin-top: 0.875rem; }

  .p-price__scroll {
    margin: 0 -1.25rem;
    padding: 0.375rem 0 0.875rem;
    -webkit-overflow-scrolling: touch;
  }
  .p-price__table {
    min-width: 45rem;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .p-price__table th,
  .p-price__table td { padding: 1.125rem 1rem; }
  .p-price__corner,
  .p-price__rowHead {
    width: 7.5rem;
    border-radius: 0;
    white-space: normal;
    font-size: 0.84rem;
    padding-left: 1.25rem;
    padding-right: 0.625rem;
  }
  .p-price__planName { font-size: 1.0625rem; }
  .p-price__badge { font-size: 0.6875rem; }
  .p-price__cell { font-size: 0.875rem; }

  .p-price__note {
    border-radius: 1.25rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.84rem;
  }

  .p-price__cta { margin-top: 2.5rem; padding: 2rem 1.25rem; border-radius: 1.25rem; }
  .p-price__ctaTitle { font-size: 1.5rem; }
  .p-price__ctaLead { font-size: 0.875rem; }
  .p-price__ctaGrid { grid-template-columns: 1fr; gap: 1rem; }
  .p-price__ctaCard { padding: 1.75rem 1.375rem; }
  .p-price__ctaCardTitle { font-size: 1.25rem; }
  .p-price__ctaCardBody { font-size: 0.875rem; }
  .p-price__btn { font-size: 0.875rem; padding: 0.75rem 1.375rem; }
}
