/* ==========================================================================
   Plan Page（/plan/）
   デザイン元: _designfile/plan-2026-10/canvas/Main.dc.html（A案）
   ヒーロー・節の見出し・ボタンはサービスページの services.css（.sv-*）を使い、
   料金ページだけの部品をここに置く。CTA は common.css の .offer--soft
   ========================================================================== */

.pl {
    --pl-red-soft: #fdf2f2;
    --pl-red-line: #f6d3d3;
}

.pl-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pl details > summary {
    list-style: none;
    cursor: pointer;
}

.pl details > summary::-webkit-details-marker {
    display: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.pl-hero__title {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.45;
}

.pl-hero__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    font-size: 22px;
    font-weight: 900;
    animation: svFade .8s ease .3s both;
}

.pl-hero__price b {
    font-size: clamp(48px, 5.4vw, 72px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.pl-hero__price small {
    padding-left: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sv-subtle);
}

.pl-btn--apply {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 12px;
    background: var(--sv-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.pl-btn--apply:hover {
    background: #000;
    color: #fff;
}

.pl-hero__jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

/* 赤い斜面の上に載る Starter のカード */
.pl-starter-card {
    position: relative;
    overflow: hidden;
    flex: 0 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(60, 0, 0, 0.22);
    animation: svFade .9s ease .55s both;
}

.pl-starter-card > *:not(.pl-wakaba) {
    position: relative;
}

.pl-starter-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}

.pl-starter-card__head span {
    padding: 4px 12px;
    border-radius: 999px;
    background: #fdecec;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}

.pl-starter-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 16px;
    font-weight: 700;
}

.pl-starter-card__price b {
    font-size: 60px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.pl-starter-card__note {
    font-size: 13px;
    color: var(--sv-subtle);
}

.pl-starter-card__specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #ededed;
    font-size: 13px;
}

.pl-starter-card__specs dt {
    color: var(--sv-subtle);
}

.pl-starter-card__specs dd {
    margin: 0;
    font-weight: 700;
}

/* 初心者マーク（装飾） */
.pl-wakaba {
    position: absolute;
    transform: rotate(-12deg);
    pointer-events: none;
}

.pl-wakaba--hero {
    right: -24px;
    bottom: -40px;
    width: 170px;
    height: 243px;
    opacity: 0.2;
}

.pl-wakaba--plan {
    right: 18px;
    bottom: 18px;
    width: 92px;
    height: 132px;
    opacity: 0.22;
}

/* ==========================================================================
   料金の考え方
   ========================================================================== */

.pl-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pl-point {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px;
    border: 1px solid var(--sv-line);
    border-radius: 20px;
}

.pl-point--accent {
    border: 2px solid var(--color-primary);
    box-shadow: 0 20px 50px rgba(203, 33, 33, 0.08);
}

.pl-point__num {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--color-primary);
}

.pl-point h3 {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.5;
}

.pl-point p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--sv-body);
}

/* ==========================================================================
   プランと料金
   ========================================================================== */

.pl-plans-container {
    gap: 40px;
}

.pl-head__lead--wide {
    max-width: 520px;
}

.pl-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.pl-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 24px 28px;
    border: 1px solid var(--sv-line);
    border-radius: 20px;
    background: #fff;
}

.pl-plan--entry {
    border: 2px solid var(--color-primary);
    box-shadow: 0 20px 50px rgba(203, 33, 33, 0.12);
}

.pl-plan > *:not(.pl-wakaba):not(.pl-plan__badge) {
    position: relative;
}

.pl-plan__badge {
    position: absolute;
    top: -13px;
    left: 24px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.pl-plan__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pl-plan__head h3 {
    font-size: 22px;
    font-weight: 900;
}

.pl-plan__head p {
    min-height: 42px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--sv-muted);
}

.pl-plan__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 0;
    border-top: 1px solid #ededed;
    border-bottom: 1px solid #ededed;
}

.pl-plan__price p {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-size: 14px;
    font-weight: 700;
}

.pl-plan__price b {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.pl-plan--entry .pl-plan__price b {
    color: var(--color-primary);
}

.pl-plan__price span {
    font-size: 12px;
    line-height: 1.6;
    color: var(--sv-subtle);
}

.pl-plan__points {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13px;
    line-height: 1.6;
}

.pl-plan__points li {
    display: flex;
    gap: 8px;
}

.pl-plan__points i {
    flex: none;
    margin-top: 2px;
    font-size: 16px;
    color: var(--color-primary);
}

.pl-plan__foot {
    margin-top: auto !important;
    font-size: 12px;
    line-height: 1.7;
    color: var(--sv-subtle);
}

.pl-note {
    margin-top: -16px !important;
    font-size: 13px;
    line-height: 1.8;
    color: var(--sv-subtle);
}

/* 機能の比較（開閉） */
.pl-compare {
    border: 1px solid var(--sv-line);
    border-radius: 16px;
    background: #fff;
}

.pl-compare > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 900;
}

.pl-compare > summary i {
    font-size: 20px;
    transition: transform var(--transition-fast);
}

.pl-compare[open] > summary i {
    transform: rotate(180deg);
}

.pl-compare__scroll {
    overflow-x: auto;
    border-top: 1px solid #ededed;
}

.pl-compare__table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
}

.pl-compare__table thead th {
    padding: 16px 10px;
    background: #f4f4f5;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
}

.pl-compare__table thead th:first-child {
    width: 24%;
}

.pl-compare__table thead th.is-entry {
    color: var(--color-primary);
}

/* Starter の見出しの下の「初期12ヶ月限定」 */
.pl-compare__badge {
    display: block;
    width: fit-content;
    margin: 6px auto 0;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pl-compare__table tbody tr {
    border-top: 1px solid #ededed;
}

.pl-compare__table tbody th {
    padding: 14px 24px;
    font-weight: 500;
    text-align: left;
    color: #333;
}

.pl-compare__table td {
    padding: 14px 10px;
    font-weight: 500;
    text-align: center;
}

.pl-yes {
    font-size: 20px;
    color: var(--color-primary);
}

.pl-no {
    font-weight: 700;
    color: #a3a3a3;
}

/* 申込みの帯 */
.pl-apply {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding: 24px 32px;
    border: 1px solid var(--pl-red-line);
    border-radius: 18px;
    background: var(--pl-red-soft);
}

.pl-apply__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pl-apply__title {
    font-size: 17px;
    font-weight: 700;
}

.pl-apply__note {
    font-size: 13px;
    line-height: 1.7;
    color: var(--sv-muted);
}

.pl-apply__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 32px;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(203, 33, 33, 0.24);
    transition: background-color var(--transition-fast);
}

.pl-apply__btn:hover {
    background: #b01c1c;
    color: #fff;
}

/* ==========================================================================
   アクセス数による差額・オプション
   ========================================================================== */

.pl-fees-container {
    gap: 56px;
}

.pl-fees {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px 64px;
}

.pl-fees__text {
    flex: 1 1 360px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pl-fees__text h2 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.4;
    font-weight: 900;
}

.pl-fees__text p:not(.sv-eyebrow) {
    font-size: 15px;
    line-height: 1.9;
    color: var(--sv-body);
}

.pl-fees__text .pl-fees__small {
    font-size: 13px;
    line-height: 1.8;
    color: var(--sv-subtle);
}

.pl-table-wrap {
    flex: 1 1 520px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sv-line);
    border-radius: 16px;
}

.pl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.pl-table thead th {
    padding: 16px 24px;
    background: #f4f4f5;
    font-size: 13px;
    color: var(--sv-muted);
    text-align: left;
}

.pl-table thead th:last-child,
.pl-table td {
    text-align: right;
}

.pl-table tbody tr {
    border-top: 1px solid #ededed;
}

.pl-table tbody th {
    padding: 18px 24px;
    font-weight: 500;
    text-align: left;
}

.pl-table td {
    padding: 18px 24px;
}

.pl-table td b {
    display: block;
    font-size: 18px;
    font-weight: 900;
}

.pl-table td small {
    display: block;
    font-size: 12px;
    color: var(--sv-subtle);
}

.pl-table .is-plus b {
    color: var(--color-primary);
}

.pl-table .is-quote b {
    color: var(--sv-muted);
}

.pl-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pl-h2--small {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.4;
    font-weight: 900;
}

.pl-options__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.pl-option {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--sv-line);
    border-radius: 18px;
}

.pl-option__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.pl-option__head h3 {
    font-size: 18px;
    font-weight: 900;
}

.pl-option__head b {
    font-size: 15px;
}

.pl-option__head small {
    font-size: 12px;
    font-weight: 500;
    color: var(--sv-subtle);
}

.pl-option p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--sv-body);
}

/* ==========================================================================
   月額のなかで、できること（黒地）
   ========================================================================== */

.pl-dark {
    background-color: var(--sv-ink);
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
    background-size: 22px 22px;
    color: #fff;
}

.pl-dark .sv-eyebrow {
    color: #ff8a8a;
}

.pl-dark .sv-head h2 {
    color: #fff;
}

.pl-dark .sv-head__lead {
    color: #d4d4d4;
}

.pl-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.pl-feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.pl-feature__num {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #ff8a8a;
}

.pl-feature h3 {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.5;
}

.pl-feature p {
    font-size: 14px;
    line-height: 1.8;
    color: #d4d4d4;
}

.pl-btn--ghost {
    align-self: flex-start;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1.5px solid #fff;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.pl-btn--ghost:hover {
    background: #fff;
    color: var(--sv-ink);
}

/* ==========================================================================
   導入までの流れ
   ========================================================================== */

.pl-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.pl-flow li {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
    border: 1px solid #ebebee;
    border-radius: 18px;
    background: var(--sv-gray);
}

.pl-flow__num {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.pl-flow h3 {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.5;
}

.pl-flow p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--sv-body);
}

.pl-flow__note {
    margin-top: auto;
    font-size: 12px;
    font-weight: 700;
    color: #a51b1b;
}

/* ==========================================================================
   料金についてのよくある質問
   ========================================================================== */

.pl-faq-container {
    max-width: 960px;
    gap: 32px;
}

.pl-faq__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.pl-faq__head h2 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.4;
    font-weight: 900;
}

.pl-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pl-faq__item {
    padding: 0 24px;
    border: 1px solid var(--sv-line);
    border-radius: 14px;
    background: #fff;
}

.pl-faq__item > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.pl-faq__item > summary i {
    margin-left: auto;
    flex: none;
    color: var(--sv-subtle);
    transition: transform var(--transition-fast);
}

.pl-faq__item[open] > summary i {
    transform: rotate(45deg);
}

.pl-faq__q {
    flex: none;
    font-weight: 900;
    color: var(--color-primary);
}

.pl-faq__item p {
    padding: 0 0 20px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--sv-body);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1060px) {
    .pl-starter-card {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .pl-hero__price b {
        font-size: 48px;
    }

    .pl-starter-card {
        padding: 24px 20px;
    }

    .pl-starter-card__price b {
        font-size: 48px;
    }

    .pl-wakaba--hero {
        width: 130px;
        height: 186px;
    }

    .pl-point,
    .pl-option,
    .pl-feature {
        padding: 22px;
    }

    .pl-apply {
        padding: 22px 20px;
    }

    .pl-apply__btn {
        width: 100%;
        justify-content: center;
    }

    .pl-table thead th,
    .pl-table tbody th,
    .pl-table td {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pl-options__grid {
        grid-template-columns: 1fr;
    }

    .pl-faq__item {
        padding: 0 18px;
    }
}
