/* ========================================
   合同オンライン説明会記事専用スタイル
   ======================================== */

/* 記事タイトル */
.article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.title-sub {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-top: 10px;
}

.article-meta {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 20px;
}

.article-date,
.article-readtime {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* メインビジュアル */
.article-hero {
    width: 100%;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 導入文 */
.article-intro {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
    padding: 35px 40px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 50px;
}

.article-intro p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 15px;
}

.article-intro p:last-child {
    margin-bottom: 0;
}

/* セクションタイトル */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 22px;
    flex-shrink: 0;
}

/* ハイライトボックス */
.highlight-box {
    background: linear-gradient(135deg, #fff5f8 0%, #f8f9ff 100%);
    padding: 30px 40px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    margin: 30px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.6;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.highlight-text i {
    font-size: 18px;
    opacity: 0.7;
}

/* チェックリスト */
.check-list {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.check-list li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
}

/* blog.css の ::before を無効化 */
.check-list li::before {
    content: none !important;
}

.check-list li i {
    position: absolute;
    left: 0;
    top: 0;
    color: #4CAF50;
    font-size: 20px;
    line-height: 1.8;
}

/* 情報カード */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.info-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(10, 186, 181, 0.15);
}

.info-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.info-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.info-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.note-text {
    font-size: 13px;
    color: var(--text-light);
    display: block;
    margin-top: 8px;
}

/* ポイントボックス */
.point-box {
    background-color: #FFF4E5;
    border-left: 5px solid #FF9800;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.point-box p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.point-box i {
    color: #FF9800;
    margin-right: 8px;
}

/* メリットアイテム */
.merit-item {
    background-color: var(--bg-light);
    padding: 35px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
}

.merit-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(10, 186, 181, 0.1);
}

.merit-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.merit-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.merit-content {
    margin-top: 20px;
}

.merit-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.merit-text p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* アローリスト */
.arrow-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.arrow-list li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

/* blog.css の ::before を無効化 */
.arrow-list li::before {
    content: none !important;
}

.arrow-list li i {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 16px;
    line-height: 1.8;
}

.result-text {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 5px solid #4CAF50;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 25px;
}

.result-text i {
    color: #4CAF50;
    margin-right: 8px;
}

/* 比較テーブル */
.comparison-table {
    overflow-x: auto;
    margin: 25px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
}

.comparison-table th {
    padding: 20px 15px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.comparison-table td {
    padding: 18px 15px;
    font-size: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-label {
    font-weight: 700;
    color: var(--dark-color);
    text-align: left !important;
}

.text-gray {
    color: #999;
}

.text-primary {
    color: var(--primary-color);
}

/* 負担軽減比較 */
.burden-reduction {
    margin: 25px 0;
}

.burden-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.burden-before,
.burden-after {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.burden-before {
    border-color: #ff5252;
}

.burden-after {
    border-color: #4CAF50;
}

.burden-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.burden-before ul,
.burden-after ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.burden-before li,
.burden-after li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 28px;
    position: relative;
}

/* blog.css の ::before を無効化 */
.burden-before li::before,
.burden-after li::before {
    content: none !important;
}

.burden-before li i {
    position: absolute;
    left: 0;
    top: 0;
    color: #ff5252;
    font-size: 16px;
    line-height: 1.8;
}

.burden-after li i {
    position: absolute;
    left: 0;
    top: 0;
    color: #4CAF50;
    font-size: 16px;
    line-height: 1.8;
}

.burden-arrow {
    font-size: 32px;
    color: var(--primary-color);
}

/* フローステップ */
.flow-steps {
    margin: 30px 0;
}

.flow-step {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.step-title i {
    color: var(--primary-color);
    margin-right: 8px;
}

.step-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.flow-arrow {
    text-align: center;
    font-size: 28px;
    color: var(--primary-color);
    margin: 15px 0;
}

/* おすすめグリッド */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.recommend-item {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.recommend-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(10, 186, 181, 0.15);
}

.recommend-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.recommend-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.recommend-item p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

/* まとめボックス */
.summary-box {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
    padding: 35px 40px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    margin: 30px 0;
}

.summary-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-box h3 i {
    color: var(--primary-color);
    font-size: 24px;
}

/* まとめリスト */
.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.summary-list li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 12px;
    padding-left: 35px;
    position: relative;
}

/* blog.css の ::before を無効化 */
.summary-list li::before {
    content: none !important;
}

.summary-list li i {
    position: absolute;
    left: 0;
    top: 0;
    color: #4CAF50;
    font-size: 20px;
    line-height: 1.8;
}

/* CTAボックス */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 45px 50px;
    border-radius: 12px;
    text-align: center;
    color: var(--bg-white);
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(10, 186, 181, 0.3);
}

.cta-box h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-box h3 i {
    font-size: 28px;
}

.cta-box p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--bg-white);
    opacity: 1;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.cta-note {
    font-size: 14px;
    color: var(--bg-white);
    opacity: 1;
    margin-top: 20px;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    font-weight: 500;
}

/* 関連記事 */
.related-articles {
    margin-top: 60px;
}

.related-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.related-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.related-card:hover {
    box-shadow: 0 8px 30px rgba(10, 186, 181, 0.15);
}

.related-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 画像読み込み失敗時のフォールバック */
.related-image img:not([src]),
.related-image img[src=""],
.related-image img[src*="placeholder"] {
    opacity: 0;
}

.related-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238B1538"><path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>');
    background-size: contain;
    opacity: 0.2;
    z-index: 0;
}

.related-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.related-content {
    padding: 25px;
}

.related-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.related-card:hover .related-card-title {
    color: var(--primary-color);
}

.related-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .article-title {
        font-size: 28px;
    }

    .title-sub {
        font-size: 20px;
    }

    .section-title {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .title-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .merit-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .merit-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .merit-item {
        padding: 25px;
    }

    .burden-item {
        grid-template-columns: 1fr;
    }

    .burden-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .recommend-grid,
    .info-cards {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 35px 25px;
    }

    .cta-box h3 {
        font-size: 22px;
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 24px;
    }

    .title-sub {
        font-size: 18px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-intro,
    .highlight-box,
    .summary-box {
        padding: 25px;
    }

    .section-title {
        font-size: 20px;
    }

    .merit-title {
        font-size: 18px;
    }

    .flow-step {
        padding: 20px;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .cta-box h3 {
        font-size: 20px;
    }
}

/* ========================================
   関連記事カード hover 強制無効化
   ======================================== */
.related-card:hover {
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    background-color: var(--bg-white) !important;
}

.related-card:hover .related-image img {
    transform: none !important;
    scale: 1 !important;
}

.related-card:hover .related-category {
    background-color: var(--primary-color) !important;
    color: var(--bg-white) !important;
}

.related-card:hover .related-card-title,
.related-card:hover h4 {
    color: var(--dark-color) !important;
}

/* ========================================
   CTAボタン 視認性統一修正
   ======================================== */
/* CTAボックス内のボタン：通常時は白背景・赤文字で明確に */
.cta-box .btn.btn-primary,
.cta-box .btn.btn-outline {
    background-color: var(--bg-white) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

/* アイコンも赤色に統一 */
.cta-box .btn.btn-primary i,
.cta-box .btn.btn-outline i {
    color: var(--primary-color) !important;
}

/* hover時：背景赤・文字白で反転 */
.cta-box .btn.btn-primary:hover,
.cta-box .btn.btn-outline:hover {
    background-color: var(--primary-color) !important;
    color: var(--bg-white) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(10, 186, 181, 0.4) !important;
}

/* hover時：アイコンも白色に */
.cta-box .btn.btn-primary:hover i,
.cta-box .btn.btn-outline:hover i {
    color: var(--bg-white) !important;
}

/* グローバル a:hover の影響を無効化 */
.cta-box .btn:hover {
    text-decoration: none !important;
}