/* Rekam料金表 - 完全版CSS */
.rekam-pricing-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.rekam-pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.rekam-pricing-header h2 {
    font-size: 2.5rem;
    color: #1976D2;
    margin-bottom: 10px;
    font-weight: 700;
}

.rekam-pricing-header p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* 頻度選択セクション */
.frequency-selector {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.1);
}

.frequency-selector h3 {
    color: #1976D2;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.frequency-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.frequency-btn {
    padding: 12px 24px;
    border: 2px solid #2196F3;
    background: white;
    color: #2196F3;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.frequency-btn:hover {
    background: #2196F3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.frequency-btn.active {
    background: #1976D2;
    color: white;
    border-color: #1976D2;
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4);
}

/* 料金カードグリッド */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* 料金カード基本スタイル */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2196F3, #21CBF3);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
}

/* 人気プランのスタイル */
.pricing-card.popular {
    border-color: #FF9800;
    box-shadow: 0 15px 35px rgba(255, 152, 0, 0.2);
}

.pricing-card.popular::before {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #FF9800;
    color: white;
    padding: 8px 20px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

/* カード内容 */
.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1976D2;
    margin-bottom: 10px;
}

.plan-description {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.price-display {
    margin: 25px 0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1976D2;
    line-height: 1;
}

.price-unit {
    font-size: 1rem;
    color: #666;
    margin-left: 5px;
}

.price-period {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-top: 5px;
}

/* 機能リスト */
.features-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.features-list li {
    padding: 8px 0;
    color: #555;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.features-list li::before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* ボタン */
.cta-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background: linear-gradient(135deg, #1976D2, #2196F3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.popular .cta-button {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
}

.popular .cta-button:hover {
    background: linear-gradient(135deg, #F57C00, #FF9800);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .rekam-pricing-header h2 {
        font-size: 2rem;
    }
    
    .frequency-buttons {
        gap: 10px;
    }
    
    .frequency-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}

.pricing-card:nth-child(2) { animation-delay: 0.1s; }
.pricing-card:nth-child(3) { animation-delay: 0.2s; }
.pricing-card:nth-child(4) { animation-delay: 0.3s; }
.pricing-card:nth-child(5) { animation-delay: 0.4s; }

/* オプション料金表のスタイル */
.rekam-options-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #E3F2FD;
}

.table-02 {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table-02 th,
.table-02 td {
    padding: 15px 12px;
    text-align: center;
    border-bottom: 1px solid #E3F2FD;
}

.table-02 th {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.table-02 td {
    color: #333;
    font-size: 0.9rem;
}

.table-02 tr:hover {
    background: #F8FBFF;
}

.section_price__text {
    background: #F8FBFF;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.section_price__text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

.section_price__text a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 600;
}

.section_price__text a:hover {
    text-decoration: underline;
}

/* レスポンシブ用クラス */
.sp-show {
    display: none;
}

.sp-hide {
    display: block;
}

@media (max-width: 768px) {
    .sp-show {
        display: block;
    }
    
    .sp-hide {
        display: none !important;
    }
    
    .table-02 th,
    .table-02 td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

.img-table-price {
    text-align: center;
    margin: 20px 0;
}

.img-slide-arrow {
    text-align: center;
    margin-bottom: 20px;
}

/* オプションテーブルのコンパクト化 - フォントサイズ維持版 */
.table-02 th,
.table-02 td {
    padding: 6px 10px; /* 余白を大幅削減（元15px → 6px） */
    text-align: center;
    border-bottom: 1px solid #E3F2FD;
    line-height: 1.1; /* 行間を最小限に */
    vertical-align: middle; /* 縦方向の配置を中央に */
}

.table-02 th {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    font-weight: 600;
    font-size: 0.95rem; /* 元のサイズを維持 */
    padding: 8px 10px; /* ヘッダーのみ若干余裕 */
}

.table-02 td {
    color: #333;
    font-size: 0.9rem; /* 元のサイズを維持 */
}

/* br タグの余白も削減 */
.table-02 td br,
.table-02 th br {
    line-height: 0.5; /* 改行の余白を最小限に */
}

.table-price-img {
    max-width: 100px; /* 50px → 100px（2倍） */
    max-height: 70px; /* 35px → 70px（2倍） */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* 中央寄せ */
    position: relative;
    z-index: 2; /* 他の要素より前面に表示 */
}

/* 画像を含むセルの設定 */
.table-02 td:has(.table-price-img), 
.table-02 td img {
    overflow: visible; /* はみ出しを許可 */
    position: relative;
}

/* テーブル全体のはみ出し許可 */
.table-02 {
    margin: 15px 0;
    border-spacing: 0;
    overflow: visible; /* はみ出しを許可 */
}
/* セクション間の余白を大幅削減 */
.rekam-options-section {
    margin-top: 40px; /* 80px → 40px */
    padding-top: 25px; /* 60px → 25px */
    border-top: 2px solid #E3F2FD;
}

.rekam-options-section .rekam-pricing-header {
    margin-bottom: 20px; /* 40px → 20px */
}

.rekam-options-section .rekam-pricing-header h2 {
    margin-bottom: 5px; /* デフォルトの余白を削減 */
}

.rekam-options-section .rekam-pricing-header p {
    margin-bottom: 15px; /* デフォルトの余白を削減 */
}

.table-02 {
    margin: 15px 0; /* 30px → 15px */
    border-spacing: 0; /* セル間の余白を削除 */
}

.section_price__text {
    background: #F8FBFF;
    padding: 15px; /* 25px → 15px */
    border-radius: 10px;
    margin-top: 15px; /* 30px → 15px */
}

.section_price__text p {
    margin-bottom: 8px; /* 15px → 8px */
    line-height: 1.4; /* 1.6 → 1.4 */
    color: #555;
    font-size: 0.95rem; /* 元のサイズを維持 */
}

.section_price__text p:last-child {
    margin-bottom: 0; /* 最後の段落の下余白を削除 */
}

/* コンテナの余白も調整 */
.container, .container-xs {
    padding: 10px; /* デフォルトの余白を削減 */
}

/* Swiperコンテナの余白調整 */
.swiper-container {
    margin: 10px 0; /* デフォルトの余白を削減 */
}

/* レスポンシブ - フォントサイズ維持版 */
@media (max-width: 768px) {
    .table-02 th,
    .table-02 td {
        padding: 5px 6px; /* さらに余白削減 */
        line-height: 1.1;
    }
    
    .table-02 th {
        padding: 6px 6px;
        font-size: 0.9rem; /* わずかに小さく（可読性維持） */
    }
    
    .table-02 td {
        font-size: 0.85rem; /* わずかに小さく（可読性維持） */
    }
    
    .table-price-img {
        max-width: 40px;
        max-height: 28px;
    }
    
    .section_price__text {
        padding: 12px;
        margin-top: 12px;
    }
    
    .section_price__text p {
        margin-bottom: 6px;
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .rekam-options-section {
        margin-top: 30px;
        padding-top: 20px;
    }
}

/* ボタン位置統一 - CSS簡単版 */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    
    /* Flexbox でボタン位置を統一 */
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 580px; /* 全カードの最小高さを統一 */
}

/* ボタンを下部に固定 */
.cta-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto; /* 自動的に一番下に配置 */
}

/* グリッドで高さ統一を強化 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    align-items: stretch; /* カード高さを統一 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pricing-card {
        min-height: 500px; /* スマホでは少し小さく */
    }
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    .pricing-card {
        min-height: 550px; /* タブレットサイズ */
    }
}

Copy/* CTA ボタンのリンクスタイル修正 */
.cta-button,
.cta-button:link,
.cta-button:visited,
.cta-button:active {
    color: white !important; /* 白文字を強制 */
    text-decoration: none !important; /* 下線を削除 */
    background: linear-gradient(135deg, #2196F3, #21CBF3) !important;
}

.cta-button:hover {
    color: white !important; /* ホバー時も白文字 */
    background: linear-gradient(135deg, #1976D2, #2196F3) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
    text-decoration: none !important;
}

/* 人気プランのボタンも同様に */
.popular .cta-button,
.popular .cta-button:link,
.popular .cta-button:visited,
.popular .cta-button:active {
    color: white !important;
    background: linear-gradient(135deg, #FF9800, #FFB74D) !important;
    text-decoration: none !important;
}

.popular .cta-button:hover {
    color: white !important;
    background: linear-gradient(135deg, #F57C00, #FF9800) !important;
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
    text-decoration: none !important;
}

/* ボタン内のテキストも白色に */
.cta-button * {
    color: white !important;
}

/* aタグとしてのボタンスタイル */
a.cta-button {
    display: inline-block;
    width: 100%;
    padding: 15px;
    color: white !important;
    text-decoration: none !important;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: auto;
    box-sizing: border-box;
}