/* ランディングページ専用CSS */

/* 価格カード横並びレイアウト */
.pricing-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 明示的に2列に設定 */
    gap: 30px;
    margin: 50px auto;
    max-width: 1000px;
    align-items: stretch; /* カードの高さを揃える */
}

.pricing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* グリッドセルの高さを使用 */
    border: 2px solid #e0e0e0; /* 薄いグレーの枠線で輪郭を明確に */
    align-self: stretch; /* グリッドセルに完全にストレッチ */
    min-width: 0; /* グリッドアイテムの幅制限を解除 */
    width: 100%; /* グリッドセル幅に完全に合わせる */
    position: relative;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    flex-shrink: 0; /* サイズを固定 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* グラデーション背景 */
    margin: -30px -30px 30px -30px; /* カードのpaddingを相殺してヘッダー全体に背景適用 */
    padding: 30px 30px 20px 30px;
    border-radius: 12px 12px 0 0; /* 上部のみ角丸 */
    min-height: 290px; /* 最小高さを設定して高さを統一 */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 要素を縦方向に均等配置 */
    position: relative;
}

.pricing-header h3 {
    color: white; /* タイトルを白色にして視認性向上 */
    font-weight: bold;
    margin-top: 25px; /* バッジとの距離を完全に確保 */
    font-size: 24px;
    margin-bottom: 10px;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 25px;
}

.pricing-features .feature-item {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #333; /* 機能リストを濃いグレーに戻す */
}


.pricing-action {
    flex-shrink: 0; /* サイズを固定 */
    text-align: center;
}

.pricing-action .pricing-note {
    margin-top: 20px;
    color: #333; /* 団体情報を元の色に戻す */
    font-size: 12px;
}

/* ボタンスタイル統一 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--medical-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--medical-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: white;
    color: var(--medical-blue);
    border: 2px solid var(--medical-blue);
}

.btn-secondary:hover {
    background-color: var(--medical-blue);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1ba785);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* 団体プラン特別スタイル */
.group-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.group-info h4,
.group-info ul,
.group-info li {
    color: #333; /* 全ての団体情報テキストを元の色に戻す */
}

.group-info h4 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.group-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.group-info li {
    padding: 4px 0;
    font-size: 14px;
}

.group-info li::before {
    content: "•";
    color: var(--medical-blue);
    font-weight: bold;
    margin-right: 8px;
}

/* ホバーエフェクト */
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pricing-card.group-plan {
    border-color: #e0e0e0 !important; /* 個人プランと同じ枠線色に統一 */
}

.pricing-card:first-child {
    margin-top: 32px; /* 個人プランカードを下に移動 */
}

/* バッジ */
.pricing-badge {
    display: inline-block;
    background: #1976D2; /* より濃い青 */
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 30px; /* バッジとタイトルの間隔を大幅に増やす */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pricing-badge.group-badge {
    background: #2E7D32; /* より濃い緑 */
    color: white;
}

/* 価格表示 */
.pricing-price {
    margin: 20px 0;
}

.price-amount {
    font-size: 36px;
    font-weight: bold;
    color: white; /* 価格を白色にしてheaderと調和 */
}

.price-note {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9); /* 半透明白色でheaderエリアに適応 */
    margin-top: 5px;
}

.price-comparison {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9); /* 価格比較テキストをheaderエリア用に白色に */
}

.savings {
    color: #FFE082; /* 明るい黄色で目立つように（白背景で見やすい） */
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pricing-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px auto;
        padding: 0 20px;
    }
    
    .pricing-card {
        height: auto;
    }
    
    .pricing-card:first-child {
        margin-top: 0; /* モバイルでは位置調整なし */
    }
    
    .pricing-header {
        min-height: auto; /* モバイルでは高さ制限なし */
    }
    
    .pricing-header h3 {
        font-size: 20px;
        margin-top: 15px;
    }
}