/* Services ページ固有スタイル */

/* 制作料金表見出し（service_heading より控えめ） */
h4.pricing_list_heading {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    letter-spacing: 0.16rem;
    width: 88%;
    margin: 2.75rem auto 0.1rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #ccc;
    color: #555;
    box-sizing: border-box;
    font-weight: 500;
}
.wrapper p.pricing_list_heading_en {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0.25rem 0 1.25rem;
    letter-spacing: 0.12em;
}

.web_production > .service_heading:first-of-type {
    margin-top: 0;
}

.wrapper .guide_cards--single {
    margin-top: 2.5rem;
}

/* ---------- Webサイト製作セクション ---------- */
.web_production {
    /* プラン別テーマカラー */
    --plan-light: #7fb56a;
    --plan-light-bg: #eef7ec;
    --plan-light-tint: rgba(127, 181, 106, 0.06);
    --plan-standard: #4a86b8;
    --plan-standard-bg: #e8f1f8;
    --plan-standard-tint: rgba(74, 134, 184, 0.07);
    --plan-premium: #9b6b9d;
    --plan-premium-bg: #f4ebf5;
    --plan-premium-tint: rgba(155, 107, 157, 0.06);
    --pricing-accent: #4a86b8;
    --pricing-accent-soft: #239dda;
    --pricing-bg-label: #f7f8fa;
    --pricing-bg-highlight: #eaf3fb;
    --pricing-bg-highlight-label: #dfeaf5;
    --pricing-text: #333;
    --pricing-text-muted: #666;
    width: min(1100px, 100%);
    color: var(--pricing-text);
}

.web_production .pricing_description {
    margin: 1.75rem auto 0;
    max-width: 960px;
}
.web_production .pricing_description .pricing_intro {
    margin: 0 auto 1.5rem;
    max-width: 42rem;
    text-align: center;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.9;
    letter-spacing: 0.03em;
    color: #555;
}

/* 強みカード（横並び・均等配置） */
.strength_cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.strength_card {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.15rem 1.1rem;
    border-radius: 12px;
    background: #f0f5fa;
    box-shadow: 0 1px 3px rgba(47, 95, 138, 0.08);
    box-sizing: border-box;
    text-align: left;
}
.strength_icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: 0.1rem;
    color: #4a86b8;
}
.strength_body {
    min-width: 0;
}
.strength_title {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    color: #2f5f8a;
    line-height: 1.4;
}
.web_production .pricing_description .strength_text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: #555;
}

/* ---------- プラン比較表 ---------- */
.pricing_table_wrap {
    margin: 3.25rem 0 0;
    padding: 1.15rem 0 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: transparent;
}

/* スマホ用プランカード（PC・タブレットでは非表示） */
.pricing_cards {
    display: none;
}

.pricing_table {
    width: 100%;
    min-width: 780px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: transparent;
    font-size: 0.9rem;
    line-height: 1.7;
    letter-spacing: 0.02em;
    text-align: center;
}

.pricing_table th,
.pricing_table td {
    padding: 1.1rem 0.85rem;
    border: none;
    border-bottom: 1px solid #e9edf1;
    vertical-align: middle;
    word-break: break-word;
}

.pricing_table .pricing_label_col,
.pricing_table tbody th[scope='row'] {
    width: 20%;
    text-align: left;
    font-weight: bold;
    color: #5a6370;
    background-color: var(--pricing-bg-label);
    letter-spacing: 0.04em;
}
/* 項目列の見出し（空セル）はページ背景に合わせる */
.pricing_table thead th.pricing_label_col {
    background-color: transparent;
    border-bottom: none;
}

.pricing_table thead th.plan_col {
    width: 26.66%;
    padding: 0;
    vertical-align: bottom;
    background: transparent;
    border-bottom: none;
    font-weight: normal;
}

/*
  プラン列の背景色は plan_tint--* クラスで明示する。
  nth-child / 隣接セレクタは使わない（rowspan や連続チェック行で列がずれるため）。
*/
.pricing_table td.plan_tint--light {
    background-color: var(--plan-light-tint);
}
.pricing_table td.plan_tint--standard {
    background-color: var(--plan-standard-tint);
}
.pricing_table td.plan_tint--premium {
    background-color: var(--plan-premium-tint);
}

.pricing_table td.is-center,
.pricing_table tr.is-center > td {
    text-align: center;
}

.pricing_table small {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.8em;
    line-height: 1.55;
    color: var(--pricing-text-muted);
    letter-spacing: 0.01em;
}

.pricing_table .pricing_note_cell {
    text-align: center;
    font-size: 0.88rem;
    color: #555;
    background-color: #fafbfc !important;
}

.pricing_table .price_value {
    font-weight: bold;
    letter-spacing: 0.03em;
    color: #222;
}

.pricing_table .sub_label {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: normal;
    letter-spacing: 0.02em;
    color: var(--pricing-text-muted);
    line-height: 1.45;
}
.pricing_table .note_mark {
    margin-left: 0.15em;
    font-size: 0.68em;
    font-weight: normal;
    letter-spacing: 0;
    color: #a0a6ad;
    vertical-align: super;
    line-height: 1;
}
.pricing_table tr.row_highlight .sub_label {
    color: #4a7194;
    font-weight: bold;
}
.pricing_table tr.row_highlight .note_mark {
    color: #9aadb8;
}

/* ---------- プランヘッダー（テーマ色＋SVGアイコン） ---------- */
.plan_header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 9.25rem;
    margin: 0;
    padding: 1.5rem 0.75rem 1.2rem;
    border-top: 3px solid transparent;
    border-radius: 0;
    box-sizing: border-box;
}
.plan_col--light .plan_header {
    border-top-color: var(--plan-light);
    background: var(--plan-light-bg);
    border-radius: 12px 0 0 0;
}
.plan_col--standard .plan_header {
    border-top-color: var(--plan-standard);
    background: var(--plan-standard-bg);
}
.plan_col--premium .plan_header {
    border-top-color: var(--plan-premium);
    background: var(--plan-premium-bg);
    border-radius: 0 12px 0 0;
}

.plan_col--standard.is-recommend {
    /* 上方向への余白のみ確保（下端は表本体と隙間なく接続） */
    padding-top: 0.4rem;
}
.plan_col--standard.is-recommend .plan_header {
    border-top-width: 4px;
    padding-top: 1.7rem;
    /* 上へ伸ばして浮かせ、下端はセル底面に密着させる */
    position: relative;
    z-index: 2;
    margin-top: -0.4rem;
    min-height: calc(9.25rem + 0.4rem);
    border-radius: 10px 10px 0 0;
    box-shadow:
        0 6px 18px rgba(74, 134, 184, 0.18),
        0 2px 6px rgba(47, 95, 138, 0.1);
}

.recommend_badge {
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    background: var(--plan-standard);
    color: #fff;
    font-size: 0.62rem;
    font-weight: bold;
    letter-spacing: 0.14em;
    line-height: 1.35;
    white-space: nowrap;
}

.plan_icon {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    margin-bottom: 0.15rem;
}
.plan_col--light .plan_icon {
    color: var(--plan-light);
}
.plan_col--standard .plan_icon {
    color: var(--plan-standard);
}
.plan_col--premium .plan_icon {
    color: var(--plan-premium);
}

.plan_name_en {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: bold;
    letter-spacing: 0.16em;
    line-height: 1.25;
}
.plan_col--light .plan_name_en {
    color: var(--plan-light);
}
.plan_col--standard .plan_name_en {
    color: var(--plan-standard);
}
.plan_col--premium .plan_name_en {
    color: var(--plan-premium);
}

.plan_name_jp {
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.14em;
    color: #333;
}

/* ---------- 強調行（デザイン・制作手法 / 保守セット制作費） ---------- */
/*
  横帯の塗りは使わない（プラン列の縦カラー軸を遮らない）。
  直前行の下線を消して、強調行の上下線だけが区切りになるようにする。
*/
.pricing_table tr:has(+ tr.row_highlight) > th,
.pricing_table tr:has(+ tr.row_highlight) > td {
    border-bottom: none;
}
.pricing_table tr.row_highlight th[scope='row'],
.pricing_table tr.row_highlight td {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-top: 1px solid #8b959f;
    border-bottom: 1px solid #8b959f;
}
.pricing_table tr.row_highlight th[scope='row'] {
    color: #4a5563;
}

/* 価格・制作手法：文言下のマーカー（対象幅のみ / PC・スマホ共通） */
.pricing_table .plan_price,
.pricing_table .marker_text,
.pricing_card .plan_price,
.pricing_card .marker_text {
    display: inline-block;
    position: relative;
    z-index: 0;
    padding: 0 0.06em 0.05em;
}
.pricing_table .plan_price,
.pricing_card .plan_price {
    font-weight: bold;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    line-height: 1.25;
}
.pricing_table .plan_price {
    font-size: clamp(1.45rem, 2.4vw, 1.75rem);
}
.pricing_table .plan_price::after,
.pricing_table .marker_text::after,
.pricing_card .plan_price::after,
.pricing_card .marker_text::after {
    content: '';
    position: absolute;
    left: -0.06em;
    right: -0.06em;
    bottom: 0.1em;
    height: 0.36em;
    z-index: -1;
    border-radius: 1px;
    transform: skewX(-8deg);
    pointer-events: none;
}
.pricing_table td.plan_tint--light .plan_price,
.pricing_card--light .plan_price {
    color: #3d6b35;
}
.pricing_table td.plan_tint--light .plan_price::after,
.pricing_table td.plan_tint--light .marker_text::after,
.pricing_card--light .plan_price::after,
.pricing_card--light .marker_text::after {
    background-color: rgba(127, 181, 106, 0.48);
}
.pricing_table td.plan_tint--standard .plan_price,
.pricing_card--standard .plan_price {
    color: var(--plan-standard);
}
.pricing_table td.plan_tint--standard .plan_price::after,
.pricing_table td.plan_tint--standard .marker_text::after,
.pricing_card--standard .plan_price::after,
.pricing_card--standard .marker_text::after {
    background-color: rgba(74, 134, 184, 0.42);
}
.pricing_table td.plan_tint--premium .plan_price,
.pricing_card--premium .plan_price {
    color: var(--plan-premium);
}
.pricing_table td.plan_tint--premium .plan_price::after,
.pricing_table td.plan_tint--premium .marker_text::after,
.pricing_card--premium .plan_price::after,
.pricing_card--premium .marker_text::after {
    background-color: rgba(155, 107, 157, 0.42);
}

/* ---------- チェックアイコン行（上下を他行より狭く） ---------- */
.pricing_table tr.row_check > th,
.pricing_table tr.row_check > td {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
.pricing_table tr.row_check .check_icon {
    width: 1.75rem;
    height: 1.75rem;
}
/* rowspan 続きの説明行（背景は plan_tint--* を付与すること） */
/* チェック色は .check_icon の color（utilities.css）を上書き */
.check_icon--light {
    color: var(--plan-light);
}
.check_icon--standard {
    color: var(--plan-standard);
}
.check_icon--premium {
    color: var(--plan-premium);
}

/* ---------- オプション料金表（プラン比較表とトーンを揃える） ---------- */
.service_table_wrap {
    margin: 2.5rem 0 0;
    padding: 0.35rem 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: transparent;
}
.option_accordion_body .service_table_wrap {
    margin-top: 0;
}

.service_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 0.9rem;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: var(--pricing-text, #333);
    text-align: left;
    background: transparent;
}

.service_table th,
.service_table td {
    padding: 1.1rem 0.85rem;
    border: none;
    border-bottom: 1px solid #e9edf1;
    vertical-align: middle;
    word-break: break-word;
}

.service_table thead th {
    font-weight: bold;
    letter-spacing: 0.04em;
    color: #2f5f8a;
    background: var(--plan-standard-bg, #e8f1f8);
    border-top: 3px solid var(--plan-standard, #4a86b8);
    border-bottom: 1px solid #d4e4f2;
    text-align: center;
    vertical-align: middle;
}
.service_table thead th:first-child {
    text-align: left;
    border-radius: 12px 0 0 0;
}
.service_table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.service_table th[scope='row'] {
    font-weight: bold;
    color: #5a6370;
    text-align: left;
    vertical-align: middle;
    letter-spacing: 0.04em;
    background-color: var(--pricing-bg-label, #f7f8fa);
}

.service_table tbody td {
    color: #444;
    background-color: transparent;
}

.service_table .price_value {
    font-weight: bold;
    letter-spacing: 0.03em;
    color: #222;
    text-align: right;
}
.service_table .sub_label {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: normal;
    letter-spacing: 0.02em;
    color: var(--pricing-text-muted, #666);
    line-height: 1.45;
}
.service_table .option_free_badge {
    display: block;
    width: fit-content;
    margin: 0.45rem 0 0 auto;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: var(--plan-standard, #4a86b8);
    color: #fff;
    font-size: 0.68rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    line-height: 1.35;
    white-space: nowrap;
}

.service_table--options {
    min-width: 560px;
}
.service_table--options th[scope='row'] {
    width: 28%;
}
.service_table--options td:nth-child(2) {
    width: 48%;
}
.service_table--options td:nth-child(3) {
    width: 24%;
    white-space: nowrap;
}

/* ---------- オプション料金（アコーディオン） ---------- */
.option_accordion {
    margin: 2.75rem 0 0;
    text-align: left;
    border-top: 1px solid #d8dde3;
    border-bottom: 1px solid #d8dde3;
}
.option_accordion_summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.35rem 2.25rem;
    user-select: none;
    transition: background-color 0.2s ease;
}
.option_accordion_summary:hover {
    background-color: rgba(74, 134, 184, 0.04);
}
.option_accordion_summary::-webkit-details-marker {
    display: none;
}
.option_accordion_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
}
.option_accordion_title_jp {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #444;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #c5cdd6;
}
.option_accordion_title_en {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: #9aa3ad;
}
.option_accordion_summary::after {
    content: '';
    position: absolute;
    right: 0.85rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: -0.45rem;
    border-right: 2px solid #6a8499;
    border-bottom: 2px solid #6a8499;
    transform: rotate(45deg);
    transition:
        transform 0.25s ease,
        margin-top 0.25s ease;
}
.option_accordion[open] > .option_accordion_summary::after {
    transform: rotate(-135deg);
    margin-top: -0.15rem;
}
.option_accordion[open] > .option_accordion_summary {
    background-color: rgba(74, 134, 184, 0.05);
}
.option_accordion_body {
    padding: 0.35rem 0 1.5rem;
}

/* ---------- 料金表注記 ---------- */
.pricing_footnotes {
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #666;
}
.pricing_footnotes li {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0.3rem 0 0;
}
.pricing_footnotes li:first-child {
    margin-top: 0;
}
.pricing_footnote_mark {
    flex-shrink: 0;
}
.pricing_footnote_body {
    min-width: 0;
}
.pricing_footnotes strong {
    font-weight: bold;
    color: #2f5f8a;
}
.pricing_footnotes .pricing_footnote--accent {
    color: #2f5f8a;
}
.option_footnotes {
    margin-top: 1rem;
}

@media (width < 767px) {
    .web_production .pricing_description .pricing_intro {
        font-size: 0.92rem;
        line-height: 1.8;
        margin-bottom: 1.25rem;
    }
    .strength_cards {
        flex-direction: column;
        gap: 0.75rem;
    }
    .strength_card {
        flex: 1 1 auto;
        padding: 1rem 0.95rem;
    }

    /* ---- プラン比較表：カード型レイアウト ---- */
    .pricing_table_wrap {
        display: none;
    }
    .pricing_cards {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
        margin: 2.5rem 0 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* プラン切替タブ（価格表閲覧中はヘッダー直下に Sticky 固定） */
    .pricing_plan_tabs {
        position: sticky;
        top: var(--header-height, 60px);
        z-index: 100;
        align-self: flex-start; /* flex 内で Sticky を有効にする */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        width: 100%;
        margin: 0;
        padding: 0.35rem 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        box-sizing: border-box;
    }
    .pricing_plan_tab {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 2.7rem;
        margin: 0;
        padding: 0.55rem 0.35rem;
        border: 2px solid #d5dce5;
        border-radius: 8px;
        background: #fff;
        color: #8a93a0;
        font-size: 0.72rem;
        font-weight: bold;
        letter-spacing: 0.1em;
        line-height: 1.2;
        text-align: center;
        cursor: pointer;
        user-select: none;
        transition:
            background-color 0.2s ease,
            color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
        box-sizing: border-box;
    }
    /* タブ内ラジオは見た目に影響させず、フォーカス位置もタブ上に留める */
    .pricing_plan_tab .pricing_plan_radio {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        opacity: 0;
        pointer-events: none;
    }
    .pricing_plan_tab:has(.pricing_plan_radio:checked) {
        color: #fff;
        transform: translateY(-1px);
    }
    .pricing_plan_tab--light:has(.pricing_plan_radio:checked) {
        background: var(--plan-light);
        border-color: var(--plan-light);
        box-shadow: 0 2px 8px rgba(127, 181, 106, 0.4);
    }
    .pricing_plan_tab--standard:has(.pricing_plan_radio:checked) {
        background: var(--plan-standard);
        border-color: var(--plan-standard);
        box-shadow: 0 2px 8px rgba(74, 134, 184, 0.42);
    }
    .pricing_plan_tab--premium:has(.pricing_plan_radio:checked) {
        background: var(--plan-premium);
        border-color: var(--plan-premium);
        box-shadow: 0 2px 8px rgba(155, 107, 157, 0.4);
    }

    /* カード＋共通アコーディオンを1枚に見せる */
    .pricing_card_stack {
        display: flex;
        flex-direction: column;
        width: 100%;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(47, 95, 138, 0.08);
        box-sizing: border-box;
        /* 縦スクロールはブラウザに任せ、横スワイプは JS で判定 */
        touch-action: pan-y;
    }
    /* RECOMMENDバッジが上端で切れないよう余白を確保 */
    .pricing_cards:has(#pricing_tab_standard:checked) .pricing_card_stack {
        margin-top: 0.55rem;
    }

    /* 選択プランのカードのみ表示（初期は STANDARD） */
    .pricing_cards_panels {
        width: 100%;
    }
    .pricing_cards .pricing_card {
        display: none;
    }
    .pricing_cards:has(#pricing_tab_light:checked) .pricing_card--light,
    .pricing_cards:has(#pricing_tab_standard:checked) .pricing_card--standard,
    .pricing_cards:has(#pricing_tab_premium:checked) .pricing_card--premium {
        display: block;
    }

    .pricing_card {
        width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
        box-sizing: border-box;
    }
    .pricing_card--standard.is-recommend {
        overflow: visible;
        margin-top: 0;
    }
    .pricing_card .plan_header {
        min-height: auto;
        margin: 0;
        padding: 1.35rem 1rem 1.1rem;
        border-radius: 12px 12px 0 0;
        box-shadow: none;
    }
    .pricing_card--light .plan_header {
        border-top-color: var(--plan-light);
        background: var(--plan-light-bg);
    }
    .pricing_card--standard .plan_header {
        border-top-color: var(--plan-standard);
        background: var(--plan-standard-bg);
    }
    .pricing_card--premium .plan_header {
        border-top-color: var(--plan-premium);
        background: var(--plan-premium-bg);
    }
    .pricing_card--standard.is-recommend .plan_header {
        border-top-width: 4px;
        padding-top: 1.7rem;
        position: relative;
        z-index: 1;
        margin-top: 0;
        min-height: auto;
        border-radius: 12px 12px 0 0;
        box-shadow: none;
    }
    .pricing_card .plan_icon {
        width: 2rem;
        height: 2rem;
    }
    .pricing_card .plan_name_en {
        font-size: 1.05rem;
        letter-spacing: 0.12em;
    }
    .pricing_card .plan_name_jp {
        font-size: 0.72rem;
    }
    .pricing_card .recommend_badge {
        top: -0.55rem;
        z-index: 2;
        font-size: 0.55rem;
        padding: 0.15rem 0.5rem;
    }

    .pricing_card_list {
        margin: 0;
        padding: 0;
    }
    .pricing_card_row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.25rem;
        margin: 0;
        padding: 0.85rem 1rem 1.2rem;
        border-bottom: 1px solid #e9edf1;
        box-sizing: border-box;
        text-align: left;
    }
    .pricing_card_list > .pricing_card_row:last-child {
        border-bottom: none;
    }
    .pricing_card--light .pricing_card_row,
    .pricing_spec_panel--light .pricing_card_row {
        background-color: var(--plan-light-tint);
    }
    .pricing_card--standard .pricing_card_row,
    .pricing_spec_panel--standard .pricing_card_row {
        background-color: var(--plan-standard-tint);
    }
    .pricing_card--premium .pricing_card_row,
    .pricing_spec_panel--premium .pricing_card_row {
        background-color: var(--plan-premium-tint);
    }
    .pricing_card_row dt {
        position: relative;
        margin: 0;
        padding-left: 0.5rem;
        font-size: 0.75rem;
        font-weight: 400;
        letter-spacing: 0.02em;
        color: #777;
        line-height: 1.45;
    }
    .pricing_card_row dt::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.2em;
        width: 3px;
        height: 1em;
        border-radius: 1px;
        background-color: var(--pricing-accent);
    }
    .pricing_card_row dd {
        margin: 0;
        font-size: 0.97rem;
        font-weight: 600;
        line-height: 1.7;
        letter-spacing: 0.02em;
        color: #111;
        word-break: break-word;
        text-align: left;
    }
    .pricing_card_row--center dd {
        text-align: left;
    }
    .pricing_card_row--check {
        padding-top: 0.75rem;
        padding-bottom: 1rem;
    }
    .pricing_card_row--check dd {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .pricing_card_row--check .check_icon {
        width: 1.75rem;
        height: 1.75rem;
    }
    .pricing_card_detail {
        display: block;
        font-size: 0.88rem;
        font-weight: 500;
        line-height: 1.6;
        color: #333;
    }
    .pricing_card_row small {
        display: inline-block;
        margin-top: 0.25rem;
        font-size: 0.8em;
        font-weight: 400;
        line-height: 1.55;
        color: var(--pricing-text-muted);
    }
    .pricing_card_row .note_mark {
        margin-left: 0.15em;
        font-size: 0.68em;
        font-weight: normal;
        color: #a0a6ad;
        vertical-align: super;
    }
    .pricing_card_row .sub_label {
        display: inline-block;
        margin-top: 0.15rem;
        font-size: 0.72rem;
        font-weight: 400;
        color: var(--pricing-text-muted);
        line-height: 1.45;
    }
    .pricing_card_row .price_value {
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        color: #111;
        line-height: 1.3;
    }
    /* 強調行：横帯塗りなし（プラン色の縦軸を保つ） */
    .pricing_card_row:has(+ .pricing_card_row--highlight) {
        border-bottom: none;
    }
    .pricing_card_row--highlight {
        padding-top: 1.05rem;
        padding-bottom: 1.25rem;
        border-top: 1px solid #8b959f;
        border-bottom: 1px solid #8b959f;
    }
    .pricing_card_list > .pricing_card_row--highlight:last-child {
        border-bottom: 1px solid #8b959f;
    }
    .pricing_card_row--highlight .sub_label {
        color: #4a7194;
    }
    .pricing_card_row--highlight .note_mark {
        color: #9aadb8;
    }
    .pricing_card .plan_price {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    /* スペック詳細（共通アコーディオン内） */
    .pricing_spec_list .pricing_card_row:last-child {
        border-bottom: none;
    }
    .pricing_spec_panel {
        display: none;
    }
    .pricing_cards:has(#pricing_tab_light:checked) .pricing_spec_panel--light,
    .pricing_cards:has(#pricing_tab_standard:checked) .pricing_spec_panel--standard,
    .pricing_cards:has(#pricing_tab_premium:checked) .pricing_spec_panel--premium {
        display: block;
    }

    /* 詳細仕様・機能一覧（デフォルト閉じ・プラン間で開閉を共有） */
    .pricing_spec_accordion {
        margin: 0;
        background: #fff;
    }
    .pricing_spec_accordion_summary {
        list-style: none;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.05rem 2.4rem;
        background: #f7f8fa;
        color: #2f5f8a;
        font-size: 0.88rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        line-height: 1.45;
        text-align: center;
        user-select: none;
        box-sizing: border-box;
        transition: background-color 0.2s ease;
    }
    .pricing_spec_accordion:not([open]) > .pricing_spec_accordion_summary {
        border-radius: 0 0 12px 12px;
    }
    .pricing_spec_accordion_summary::-webkit-details-marker,
    .pricing_spec_accordion_summary::marker {
        display: none;
        content: none;
    }
    .pricing_spec_accordion_summary::after {
        content: '';
        position: absolute;
        right: 0.95rem;
        top: 50%;
        width: 0.5rem;
        height: 0.5rem;
        margin-top: -0.4rem;
        border-right: 2px solid #6a8499;
        border-bottom: 2px solid #6a8499;
        transform: rotate(45deg);
        transition:
            transform 0.25s ease,
            margin-top 0.25s ease;
    }
    .pricing_spec_accordion[open] > .pricing_spec_accordion_summary {
        background-color: rgba(74, 134, 184, 0.05);
        border-bottom: 1px solid #e9edf1;
    }
    .pricing_spec_accordion[open] > .pricing_spec_accordion_summary::after {
        transform: rotate(-135deg);
        margin-top: -0.12rem;
    }
    .pricing_spec_accordion_body {
        padding: 0;
    }
    .pricing_spec_accordion .pricing_footnotes {
        margin: 0;
        padding: 0.85rem 1rem 1.15rem;
        background: #fafbfc;
        border-top: 1px solid #e9edf1;
        border-radius: 0 0 12px 12px;
        font-size: 0.78rem;
        line-height: 1.55;
    }

    /* PC用注記はスマホでは共通アコーディオン内へ表示 */
    .pricing_cards + .pricing_footnotes {
        display: none;
    }

    /* ---- オプション料金表：カード型レイアウト ---- */
    .service_table_wrap {
        overflow-x: visible;
        margin-top: 0.5rem;
    }
    .service_table--options {
        min-width: 0;
        width: 100%;
        table-layout: auto;
        font-size: 0.88rem;
    }
    .service_table--options thead {
        display: none;
    }
    .service_table--options,
    .service_table--options tbody,
    .service_table--options tr,
    .service_table--options th,
    .service_table--options td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .service_table--options tbody {
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
    }
    .service_table--options tr {
        margin: 0;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1px 4px rgba(47, 95, 138, 0.08);
    }
    .service_table--options th[scope='row'] {
        width: 100%;
        padding: 0.95rem 1rem;
        border: none;
        border-top: 3px solid var(--plan-standard, #4a86b8);
        border-bottom: 1px solid #e9edf1;
        background: var(--plan-standard-bg, #e8f1f8);
        color: #2f5f8a;
        font-size: 0.92rem;
        letter-spacing: 0.04em;
    }
    .service_table--options td {
        width: 100%;
        padding: 0.85rem 1rem;
        border: none;
        border-bottom: 1px solid #e9edf1;
        background: transparent;
        text-align: left;
        white-space: normal;
    }
    .service_table--options td:last-child {
        border-bottom: none;
    }
    .service_table--options td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.3rem;
        font-size: 0.72rem;
        font-weight: bold;
        letter-spacing: 0.04em;
        color: #5a6370;
        line-height: 1.4;
    }
    .service_table--options .price_value {
        text-align: left;
    }
    .service_table--options .option_free_badge {
        margin-left: 0;
        margin-right: auto;
    }
    .service_table--options th[scope='row'],
    .service_table--options td:nth-child(2),
    .service_table--options td:nth-child(3) {
        width: 100%;
    }
}
