:root {
    --bento-bg: #FDFBF7; /* 温かみのある背景 */
    --bento-beige: #F5F0E6;
    --bento-navy: #1d3b63; /* 既存サイトの紺 */
    --bento-midnight: #0B1221;
    --bento-accent: #cf243b; /* 既存カウンセリングボタンの赤に統一 */
    --bento-radius-lg: 2rem;
    --bento-radius-md: 1rem;
    --bento-gap: 1.5rem;
}

/* Base Wrapper - Bootstrapの干渉を抑える */
#plus2025 {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    line-height: 1.5;
    color: #18181B;
    background-color: var(--bento-bg);
    overflow-x: hidden;
}

#plus2025 * {
    box-sizing: border-box;
}

/* Container Refinement */
#plus2025 .bento-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography from Reference */
#plus2025 h1, #plus2025 h2, #plus2025 h3, #plus2025 h4 {
    font-weight: 900 !important;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

#plus2025 h1 { font-size: 4rem; }
#plus2025 h2 { font-size: 3rem; }

#plus2025 .text-vermilion { color: var(--bento-accent) !important; }
#plus2025 .bg-vermilion { background-color: var(--bento-accent) !important; }
#plus2025 .text-midnight { color: var(--bento-midnight) !important; }
#plus2025 .bg-midnight { background-color: var(--bento-midnight) !important; }
#plus2025 .bg-bento-beige { background-color: var(--bento-beige) !important; }
#plus2025 .font-weight-boldest { font-weight: 900 !important; }
#plus2025 .italic { font-style: italic !important; }
#plus2025 .shadow-none { box-shadow: none !important; }

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--bento-gap);
    margin-bottom: var(--bento-gap);
}

/* Bento Card System */
.bento-card {
    background: #ffffff;
    border-radius: var(--bento-radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.bento-card--navy { background-color: var(--bento-navy); color: #ffffff; }
.bento-card--accent { background-color: var(--bento-accent); color: #ffffff; }

/* Column Helpers */
.bento-col-12 { grid-column: span 12; }
.bento-col-6 { grid-column: span 6; }
.bento-col-4 { grid-column: span 4; }
.bento-col-3 { grid-column: span 3; }

@media (max-width: 991px) {
    .bento-col-6, .bento-col-4, .bento-col-3 { grid-column: span 12; }
}

/* Utilities */
.section-py { padding: 6rem 0; }
.section-px { padding: 0 2rem; }

@media (max-width: 768px) {
    .section-py { padding: 3rem 0; }
    .section-px { padding: 0 1rem; }
    .bento-card { padding: 1.5rem; border-radius: var(--bento-radius-md); }
    #plus2025 h1 { font-size: 2.5rem !important; }
    #plus2025 h2 { font-size: 2rem !important; }
    #plus2025 h3 { font-size: 1.5rem !important; }
}

/* Custom Components from Reference */
.badge-black {
    display: inline-block;
    background: #18181B;
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.check-icon {
    color: var(--bento-accent);
    font-weight: 900;
}

.diagnosis-chip-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

/* Step Flow from Reference */
.step-container {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
}
@media (max-width: 768px) { .step-container { flex-direction: column; } }

.step-box {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2rem;
    border-radius: var(--bento-radius-md);
    text-align: left;
}

.step-box--active {
    border: 4px solid var(--bento-accent);
    background: #0B1221;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Button Refinement */
.btn-bento-primary {
    background: var(--bento-accent);
    color: white !important;
    font-weight: 900;
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 10px 20px rgba(207, 36, 59, 0.2);
}

.btn-bento-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(207, 36, 59, 0.3);
}

/* ==========================================================================
   4つの誤解と新常識 セクション用スタイル（高級デザイン版）
   ========================================================================== */

.truth-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
}

.truth-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.75rem;
}

.truth-card-header .category-badge {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--bento-navy);
    background: var(--bento-beige);
    padding: 0.35rem 0.85rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.truth-card-header .card-number {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--bento-accent);
    opacity: 0.8;
    font-family: 'Outfit', sans-serif;
}

.contrast-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.block-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

/* 誤解ブロック：心の声・つぶやき風 */
.block-misconception {
    position: relative;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background-color: #FAF8F8; /* かすかに赤みがかった不安・過去のグレー */
    border: 1px dashed #CBD5E1;
    overflow: hidden;
}

.badge-misconception {
    font-size: 0.75rem;
    font-weight: 900;
    color: #64748B;
    background-color: #E2E8F0;
    padding: 0.25rem 0.65rem;
    border-radius: 0.25rem;
    position: relative;
    z-index: 2;
}

.icon-misconception {
    font-size: 1.1rem;
    color: #94A3B8;
    position: relative;
    z-index: 2;
}

.block-misconception .text {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin: 0.5rem 0 0 0 !important;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.quote-bg {
    position: absolute;
    right: 15px;
    bottom: -15px;
    font-size: 3.5rem;
    color: rgba(226, 232, 240, 0.35);
    pointer-events: none;
    z-index: 1;
    font-family: Georgia, serif;
}

/* 変革アロー（接続矢印） */
.shift-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -0.4rem 0;
    position: relative;
    z-index: 5;
}

.shift-arrow i {
    background: var(--bento-accent);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(207, 36, 59, 0.3);
    border: 2px solid #ffffff;
    animation: arrow-bounce 1.5s infinite alternate;
}

@keyframes arrow-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(3px); }
}

/* 新常識ブロック：深夜のディープネイビー ＋ 輝くゴールド電球 ➔ プレミアム感を最大化 */
.block-truth {
    position: relative;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--bento-navy) 0%, var(--bento-midnight) 100%); /* 深いネイビーグラデーション */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--bento-accent); /* 左側にアクセント赤の太線 */
    box-shadow: 0 10px 30px rgba(11, 18, 33, 0.15);
    overflow: hidden;
}

.badge-truth {
    font-size: 0.75rem;
    font-weight: 900;
    color: #ffffff;
    background-color: var(--bento-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(207, 36, 59, 0.4);
    position: relative;
    z-index: 2;
}

.icon-truth {
    font-size: 1.25rem;
    color: #FBBF24; /* 電球は輝くゴールドイエロー */
    position: relative;
    z-index: 2;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.4)); opacity: 0.8; }
    100% { transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8)); opacity: 1; }
}

.block-truth .text {
    position: relative;
    display: inline-block;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    color: #ffffff !important; /* テキストは白 */
    margin: 0.6rem 0 0.5rem 0 !important;
    line-height: 1.4;
    z-index: 2;
}

.highlight-line {
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 6px;
    background: rgba(251, 191, 36, 0.3); /* ゴールド（イエロー）の蛍光マーカー */
    z-index: -1;
    border-radius: 2px;
}

.block-truth .desc {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.85) !important; /* 説明文は少し不透明度のある白 */
    margin: 0 !important;
    position: relative;
    z-index: 2;
}

.check-bg {
    position: absolute;
    right: 15px;
    bottom: -20px;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05); /* うっすら白いチェックマーク */
    pointer-events: none;
    z-index: 1;
}

/* PC時はテーブル幅を600px以上に維持して見やすくする */
.qs-ranking-table {
    min-width: 600px;
}

/* QS世界大学ランキング表のスマホ最適化（可読性追求モデル） */
@media (max-width: 768px) {
    #plus2025 .table-responsive {
        overflow-x: hidden !important; /* 横スクロールを完全に禁止 */
        padding: 0 !important;
        margin: 0 !important;
    }
    #plus2025 .qs-ranking-table {
        min-width: auto !important; /* 横幅の強制を解除 */
        width: 100% !important;
        table-layout: fixed !important; /* 列幅を固定比率で配分 */
        font-size: 0.78rem !important; /* スマホ用フォントサイズを最適化 */
    }
    #plus2025 .qs-ranking-table th,
    #plus2025 .qs-ranking-table td {
        padding: 0.5rem 0.25rem !important; /* パディングを極限まで詰めて横幅を確保 */
        font-size: 0.78rem !important;
        line-height: 1.25 !important; /* 詰まりすぎず読みやすい行高に調整 */
        letter-spacing: -0.04em !important; /* 文字間を詰めて余分な改行を極小化 */
        word-break: break-all !important;
        word-wrap: break-word !important;
        vertical-align: middle !important;
    }
    #plus2025 .qs-ranking-table th:nth-child(1),
    #plus2025 .qs-ranking-table td:nth-child(1) {
        width: 20% !important; /* ランク列 (Top 50など) は狭くていい */
    }
    #plus2025 .qs-ranking-table th:nth-child(2),
    #plus2025 .qs-ranking-table td:nth-child(2) {
        width: 46% !important; /* 海外大学列 */
    }
    #plus2025 .qs-ranking-table th:nth-child(3),
    #plus2025 .qs-ranking-table td:nth-child(3) {
        width: 34% !important; /* 日本の大学列（MARCH等の改行を許容） */
    }
}

/* ==========================================================================
   比較表（日本vs海外）のスマホ最適化
   ========================================================================== */
.bento-comparison-table {
    min-width: 600px;
}

@media (max-width: 768px) {
    #plus2025 .bento-comparison-table {
        min-width: auto !important; /* 横幅の強制を解除 */
        width: 100% !important;
        table-layout: fixed !important; /* 列幅を固定比率で配分 */
        font-size: 0.78rem !important; /* スマホ用フォントサイズを最適化 */
    }
    #plus2025 .bento-comparison-table th,
    #plus2025 .bento-comparison-table td {
        padding: 0.5rem 0.25rem !important; /* パディングを極限まで詰めて横幅を確保 */
        font-size: 0.78rem !important;
        line-height: 1.25 !important; /* 詰まりすぎず読みやすい行高に調整 */
        letter-spacing: -0.04em !important; /* 文字間を詰めて余分な改行を極小化 */
        word-break: break-all !important;
        word-wrap: break-word !important;
        vertical-align: middle !important;
    }
    /* 比較項目、日本、海外名門の列幅比率 */
    #plus2025 .bento-comparison-table th:nth-child(1),
    #plus2025 .bento-comparison-table td:nth-child(1) {
        width: 25% !important;
    }
    #plus2025 .bento-comparison-table th:nth-child(2),
    #plus2025 .bento-comparison-table td:nth-child(2) {
        width: 35% !important;
    }
    #plus2025 .bento-comparison-table th:nth-child(3),
    #plus2025 .bento-comparison-table td:nth-child(3) {
        width: 40% !important;
    }
}

