/* ===== 基本 ===== */
:root {
    --rn-red: #b7282e;
    --rn-red-soft: rgba(183, 40, 46, 0.22);
    --rn-red-hover: rgba(183, 40, 46, 0.12);
    --line: #e6e6e6;
    }
    
    .pdo-container {
    width: 100%;
    margin: 0;
    padding: 60px 20px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.8;
    }
    
    /* セクション共通 */
    .pdo-section {
    margin-bottom: 100px;
    }
    
    .pdo-section > h1,
    .pdo-section > h2 {
    font-size: 2rem;
    color: var(--rn-red);
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
    }
    
    .pdo-section > h1::after,
    .pdo-section > h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--rn-red);
    }
    
    /* 課題解決（Pain & Gain） */
    .pain-gain-wrapper {
    background-color: #fffafb;
    padding: 50px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    }
    
    .pain-gain-content {
    flex: 1;
    text-align: left;
    }
    
    .pain-gain-text {
    font-size: 1.2rem;
    margin: 0;
    }
    
    .pain-gain-highlight {
    color: var(--rn-red);
    font-weight: bold;
    font-size: 1.4rem;
    display: block;
    margin-top: 20px;
    }
    
    .pain-gain-image {
    flex-shrink: 0;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    }
    
    /* 機能グリッド */
    .feature-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1行に1ボックス */
    gap: 40px;
    max-width: 900px; /* 最大幅を900pxに設定 */
    margin: 0 auto; /* 中央揃え */
    }
    
    .feature-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    width: 100%; /* 幅を最大限に使用 */
    }
    
    .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .feature-number {
    font-size: 3rem;
    font-weight: 900;
    color: #e0e0e0;
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
    }
    
    .feature-item h2 {
    color: var(--rn-red);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    font-weight: 700;
    text-align: left;
    }
    
    .feature-item p {
    color: #666;
    position: relative;
    z-index: 1;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    line-height: 1.6;
    }
    
    /* 価格ボックス */
    .pricing-simple-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    background: #fff;
    border: 2px solid var(--rn-red);
    border-radius: 12px;
    padding: 30px 40px;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    }
    
    .price-display {
    display: flex;
    align-items: baseline;
    color: #333;
    }
    
    .price-display .currency {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 5px;
    }
    
    .price-display .amount {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    color: var(--rn-red);
    }
    
    .price-display .period {
    font-size: 1.1rem;
    color: #888;
    margin-left: 10px;
    }
    
    .price-divider {
    width: 2px;
    height: 50px;
    background-color: #eee;
    }
    
    /* トライアルバッジコンテナ */
    .trial-badge-container {
    display: flex;
    align-items: center;
    gap: 15px;
    }
    
    /* トライアルバッジ */
    .trial-badge {
    background-color: var(--rn-red);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(183, 40, 46, 0.3);
    white-space: nowrap;
    }
    
    .trial-badge:hover {
    background-color: #a02328;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(183, 40, 46, 0.4);
    }
    
    .trial-badge img {
    height: 24px;
    width: auto;
    }
    
    /* 申込みボタン用のスタイル（必要に応じて色を変更可能） */
    .trial-badge-apply {
    background-color: var(--rn-red);
    }
    
    .trial-badge-apply:hover {
    background-color: #a02328;
    }
    
    /* ===== 月額/年間プラン切り替えトグル ===== */
    .pricing-toggle-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin: 30px 0 40px 0;
    }
    
    .pricing-toggle-btn {
        padding: 12px 30px;
        border: 2px solid var(--rn-red);
        background-color: white;
        color: var(--rn-red);
        border-radius: 50px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .pricing-toggle-btn:hover {
        background-color: var(--rn-red-hover);
    }
    
    .pricing-toggle-btn.active {
        background-color: var(--rn-red);
        color: white;
    }
    
    /* ===== 料金プラン（3カード横並び） ===== */
    .pricing-plans-container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px;
        max-width: 1200px;
        margin: 0 auto;
        align-items: stretch;
    }
    
    .pricing-plan-card {
        background: #fff;
        border: 2px solid var(--rn-red);
        border-radius: 12px;
        padding: 30px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.05);
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .pricing-plan-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .pricing-plan-recommended {
        border-width: 2px;
        background: linear-gradient(to bottom, #fffafb 0%, #ffffff 10%);
    }
    
    .recommended-badge {
        position: absolute;
        top: -12px;
        right: 20px;
        background: var(--rn-red);
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: bold;
    }
    
    .plan-name {
        font-size: 1.5rem;
        color: var(--rn-red);
        font-weight: bold;
        margin: 0 0 15px 0;
        text-align: center;
    }
    
    .plan-price {
        text-align: center;
        margin-bottom: 15px;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    
    .plan-price .currency {
        font-size: 1.5rem;
        font-weight: bold;
        color: #333;
        white-space: nowrap;
        margin-right: 0.25em;
    }
    
    .plan-price .price-amount {
        font-size: 2.5rem;
        font-weight: 300;
        color: var(--rn-red);
        line-height: 1;
        white-space: nowrap;
    }
    
    .plan-price .price-amount.small-text {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .plan-price .price-amount.price-amount-free {
        font-size: 2rem;
    }
    
    .plan-price .price-period {
        font-size: 1.1rem;
        color: #888;
        margin-left: 5px;
        white-space: nowrap;
    }
    
    .plan-price .price-subtitle {
        font-size: 0.9rem;
        color: #666;
        display: block;
        margin-top: 5px;
        white-space: normal;
    }
    
    .plan-price.has-subtitle {
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .plan-price.has-subtitle .price-amount {
        white-space: normal;
        text-align: center;
    }
    
    .plan-description {
        text-align: center;
        color: #666;
        font-size: 0.95rem;
        margin: 0 0 20px 0;
    }
    
    .plan-discount {
        background: #f9f9f9;
        padding: 15px;
        margin: 0 -10px 10px -10px;
        border-radius: 4px;
        width: calc(100% + 20px);
        box-sizing: border-box;
    }
    
    .plan-discount p {
        margin: 0 0 10px 0;
        font-weight: 600;
        color: #333;
    }
    
    .plan-discount .discount-label {
        font-weight: normal;
        color: var(--rn-red);
    }
    
    .plan-discount ul {
        margin: 0;
        padding-left: 20px;
    }
    
    .plan-discount li {
        margin-bottom: 5px;
        font-size: 0.9rem;
    }
    
    .plan-features {
        list-style: none;
        padding: 0;
        margin: 0 0 25px 0;
    }
    
    .plan-features li {
        padding: 8px 0;
        padding-left: 25px;
        position: relative;
        font-size: clamp(0.85rem, 1.8vw, 1rem);
        line-height: 1.6;
    }
    
    .plan-features li::before {
        content: "✓";
        position: absolute;
        left: 0;
        color: var(--rn-red);
        font-weight: bold;
    }
    
    .plan-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        margin-top: auto;
    }
    
    .plan-buttons-horizontal {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .plan-button {
        flex: 1;
        min-width: 140px;
        padding: 12px 20px;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid var(--rn-red);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        white-space: nowrap;
    }
    
    .plan-button img {
        height: 20px;
        width: auto;
    }
    
    .plan-button-primary {
        background-color: var(--rn-red);
        color: white;
        box-shadow: 0 4px 10px rgba(183, 40, 46, 0.3);
    }
    
    .plan-button-primary:hover {
        background-color: #a02328;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(183, 40, 46, 0.4);
    }
    
    .plan-button-secondary {
        background-color: white;
        color: var(--rn-red);
    }
    
    .plan-button-secondary:hover {
        background-color: var(--rn-red-hover);
    }
    
    .plan-note {
        text-align: center;
        font-size: 0.85rem;
        color: #888;
        margin: 30px 0 0 0;
    }
    .plan-note + .plan-note {
        margin-top: 5pt;
    }
    
    /* レスポンシブ対応 */
    @media (max-width: 1024px) {
        .pricing-plans-container {
            grid-template-columns: 1fr;
            max-width: 600px;
        }
    }
    
    @media (max-width: 768px) {
        .pricing-plans-container {
            max-width: 100%;
            padding: 0 10px;
        }
        
        .pricing-plan-card {
            padding: 25px 20px;
        }
        
        .plan-name {
            font-size: 1.3rem;
        }
        
        .plan-price .price-amount {
            font-size: 2rem;
        }
        
        .plan-button {
            width: 100%;
        }
        
        .plan-buttons-horizontal {
            flex-direction: column;
        }
    }
    
    
    /* ===== サイドバー レイアウト（PC） ===== */

.pdo-layout-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0; /* 変な右の空白を作らない */
    }
    
    /* サイドバー：箱なし、右の線だけ */
    .pdo-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    border-right: 1px solid var(--line);
    position: sticky;
    top: 90px;
    z-index: 1000;
    }
    
    /* メニュー */
    .pdo-side-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    }
    
    .pdo-side-menu li {
    margin: 0;
    }
    
    /* 重要：幅100%で "サイドバー全体" に背景が広がる */
    .pdo-side-menu a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    font-size: 14px;
    text-decoration: none;
    font-weight: normal;
    color: #333;
    border-radius: 0;
    transition: background 0.15s ease;
    position: relative;
    }
    
    .pdo-side-menu a:hover {
    background-color: var(--rn-red-hover);
    color: #111;
    }
    
    .pdo-side-menu a.active {
    background-color: rgba(183, 40, 46, 0.35);
    color: #111;
    font-weight: bold;
    }
    
    .pdo-side-menu a.active::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--rn-red);
    }
    
    /* 右側（本文） */
    .pdo-main-content {
    flex: 1;
    min-width: 0;
    padding-left: 40px; /* gapの代わり */
    }
    
    /* ===== ハンバーガーメニュー ===== */
    .pdo-menu-toggle {
        display: none;
        align-items: center;
        gap: 10px;
        background: none;
        border: 1px solid #ddd;
        border-radius: 6px;
        cursor: pointer;
        padding: 8px 14px;
        margin-bottom: 20px;
        color: #333;
        font-size: 0.95rem;
        font-weight: bold;
    }

    .pdo-menu-toggle .hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .pdo-menu-toggle .hamburger-icon span {
        display: block;
        width: 20px;
        height: 2px;
        background-color: #555;
    }

    .pdo-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1999;
    }

    .pdo-overlay.open {
        display: block;
    }

    .pdo-sidebar-close {
        display: none;
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        font-size: 1.4rem;
        cursor: pointer;
        color: #555;
        padding: 4px 8px;
        line-height: 1;
    }

    /* ===== サイドバー → ハンバーガー（867px以下） ===== */
    @media (max-width: 867px) {
        .pdo-menu-toggle {
            display: flex;
        }

        .pdo-sidebar {
            position: fixed;
            top: 60px;
            left: 0;
            width: 260px !important;
            height: calc(100% - 60px);
            background: #fff;
            box-shadow: 3px 0 15px rgba(0, 0, 0, 0.15);
            border-right: 1px solid var(--line);
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            overflow-y: auto;
            z-index: 2000;
            padding-top: 10px;
        }

        .pdo-sidebar.open {
            transform: translateX(0);
        }

        .pdo-sidebar-close {
            display: block;
        }

        .pdo-main-content {
            padding-left: 0;
        }
    }

    /* ===== スマホ（600px以下） ===== */
    @media (max-width: 600px) {
        .pricing-simple-box {
            flex-direction: column;
            gap: 20px;
            text-align: center;
        }

        .price-divider {
            display: none;
        }

        .trial-badge-container {
            flex-direction: column;
            width: 100%;
            gap: 15px;
        }

        .trial-badge {
            width: 100%;
            justify-content: center;
        }

        .pain-gain-wrapper {
            flex-direction: column;
            text-align: center;
        }

        .pain-gain-content {
            text-align: center;
        }

        .pain-gain-image {
            max-width: 150px;
            margin: 0 auto;
        }
    }
