/* ============================================
   選ばれる理由セクション - クリーンな実装
   ============================================
   v8.19 - シンプルなHTML/CSS、レスポンシブ対応
   縦書き問題を根本から解決
   ============================================ */

/* CRITICAL: 全デバイスで横書き強制 */
.reasons-section,
.reasons-section *,
.reasons-section h2,
.reasons-section h3,
.reasons-section p,
.reasons-section div,
.reasons-section span {
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb !important;
    direction: ltr !important;
}

/* セクション全体のスタイル */
.reasons-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
}

.reasons-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* セクションヘッダー */
.reasons-section .section-header {
    text-align: center;
    margin-bottom: 55px;
}

.reasons-section .section-title {
    font-size: 38px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 18px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.reasons-section .section-subtitle {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.65;
    max-width: 700px;
    margin: 0 auto;
}

/* カードグリッド - デスクトップ（1025px以上で横3列） */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media screen and (max-width: 1024px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }
}

/* カードスタイル */
.reason-card {
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(249, 115, 22, 0.2);
}

/* カード番号（右上） */
.reason-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 900;
    color: #d1d5db;
    opacity: 1;
}

/* アイコン */
.reason-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fcd34d 0%, #f97316 50%, #c2410c 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
    transition: transform 0.3s ease;
}

.reason-card:hover .reason-icon {
    transform: scale(1.05);
}

.reason-icon i {
    font-size: 36px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* カードタイトル */
.reason-title {
    font-size: 21px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 16px;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

/* カード説明 */
.reason-description {
    font-size: 15px;
    line-height: 1.85;
    color: #4b5563;
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

/* ハイライトバッジ */
.reason-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(252, 211, 77, 0.3);
    transition: transform 0.2s ease;
}

.reason-card:hover .reason-highlight {
    transform: translateX(4px);
}

.reason-highlight i {
    color: #f97316;
    font-size: 18px;
    flex-shrink: 0;
}

.reason-highlight span {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* ============================================
   タブレット対応（768px - 1024px）
   ============================================ */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .reasons-section {
        padding: 60px 20px;
    }

    .reasons-section .container {
        padding: 0 30px;
    }

    /* タブレットは縦1列 - 読みやすさ優先 */
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 700px;
        margin: 0 auto;
    }

    .reason-card {
        padding: 38px 30px;
    }

    .reason-title {
        font-size: 21px;
    }

    .reason-description {
        font-size: 15px;
        line-height: 1.8;
    }
}

/* ============================================
   モバイル対応（767px以下）
   ============================================ */
@media screen and (max-width: 767px) {
    /* CRITICAL: モバイルで縦書き完全防止 */
    .reasons-section,
    .reasons-section *,
    .reasons-section h2,
    .reasons-section h3,
    .reasons-section p,
    .reasons-section div,
    .reasons-section span {
        writing-mode: horizontal-tb !important;
        -webkit-writing-mode: horizontal-tb !important;
        -ms-writing-mode: lr-tb !important;
        direction: ltr !important;
        text-orientation: mixed !important;
    }

    .reasons-section {
        padding: 50px 0;
    }

    .reasons-section .container {
        max-width: 100%;
        padding: 0 20px;
    }

    /* セクションヘッダー */
    .reasons-section .section-header {
        margin-bottom: 35px;
    }

    .reasons-section .section-title {
        font-size: 26px;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .reasons-section .section-subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    /* カードグリッド - 縦1列に変更 */
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }

    /* カードスタイル - フル幅で美しく */
    .reason-card {
        padding: 35px 25px;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .reason-card:hover {
        transform: none; /* モバイルではホバー効果を無効化 */
    }

    /* カード番号 - 控えめに */
    .reason-number {
        font-size: 32px;
        top: 20px;
        right: 20px;
        color: #e5e7eb;
    }

    /* アイコン - 少し小さく */
    .reason-icon {
        width: 65px;
        height: 65px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .reason-icon i {
        font-size: 28px;
    }

    /* カードタイトル - 読みやすく */
    .reason-title {
        font-size: 19px;
        margin-bottom: 14px;
        line-height: 1.5;
        letter-spacing: 0.02em;
    }

    /* カード説明 - ゆとりのある行間 */
    .reason-description {
        font-size: 14px;
        line-height: 1.85;
        margin-bottom: 18px;
        color: #4b5563;
    }

    /* ハイライトバッジ - コンパクトに */
    .reason-highlight {
        padding: 12px 18px;
        border-radius: 8px;
    }

    .reason-highlight i {
        font-size: 16px;
    }

    .reason-highlight span {
        font-size: 13px;
        font-weight: 600;
    }
}

/* ============================================
   小型スマートフォン対応（480px以下）
   ============================================ */
@media screen and (max-width: 480px) {
    .reasons-section {
        padding: 45px 0;
    }

    .reasons-section .container {
        padding: 0 16px;
    }

    /* セクションヘッダー - コンパクトに */
    .reasons-section .section-header {
        margin-bottom: 30px;
    }

    .reasons-section .section-title {
        font-size: 23px;
        margin-bottom: 12px;
    }

    .reasons-section .section-subtitle {
        font-size: 14px;
        line-height: 1.7;
    }

    /* カードグリッド - 少し狭く */
    .reasons-grid {
        gap: 18px;
    }

    /* カードスタイル - コンパクトだけど読みやすく */
    .reason-card {
        padding: 30px 20px;
        border-radius: 14px;
    }

    /* カード番号 - 小さく */
    .reason-number {
        font-size: 28px;
        top: 16px;
        right: 16px;
    }

    /* アイコン - コンパクト */
    .reason-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .reason-icon i {
        font-size: 26px;
    }

    /* カードタイトル - バランス良く */
    .reason-title {
        font-size: 18px;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    /* カード説明 - 読みやすさ重視 */
    .reason-description {
        font-size: 13px;
        line-height: 1.8;
        margin-bottom: 16px;
    }

    /* ハイライトバッジ - コンパクト */
    .reason-highlight {
        padding: 10px 16px;
    }

    .reason-highlight i {
        font-size: 15px;
    }

    .reason-highlight span {
        font-size: 12px;
    }
}
