
/* 全幅背景層 */
.applications-fullwidth {
    width: 100%;
    background-color: #f9fafb;
    border-radius: 24px;
    margin: 30px 0;
}
/* 内容センタリングコンテナ */
.applications-module {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    box-sizing: border-box;
}
.section-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #222222;
    text-align: center;
    margin-bottom: 12px;
}
.section-intro {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #555555;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 28px;
}
/* カルーセルスタイル */
.carousel-outer {
    position: relative;
    margin-bottom: 32px;
}
.carousel-container {
    overflow: hidden;
    width: 100%;
}
.carousel-track {
    display: flex;
    gap: 18px;
    transition: transform 0.4s ease;
    will-change: transform;
}
.app-card {
    flex: 0 0 calc(33.333% - 12px);
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    display: block;
}
.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}
.app-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}
.app-card h3 {
    font-weight: 700;
    font-size: 17px;
    color: #0047AB;
    margin-bottom: 8px;
}
.app-card p {
    font-size: 13px;
    line-height: 1.45;
    color: #555555;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
    color: #0047AB;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.2s;
    z-index: 10;
}
.carousel-btn:hover {
    background: #f8fafc;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.btn-left { left: -20px; }
.btn-right { right: -20px; }
/* テーブルスタイル */
.table-wrapper {
    margin-top: 32px;
}
.table-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #222222;
    text-align: center;
    margin-bottom: 20px;
}
.table-responsive {
    overflow-x: auto;
    border-radius: 16px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
}
.selection-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #555555;
    min-width: 700px;
}
.selection-table th,
.selection-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}
.selection-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #0047AB;
    border-bottom: 2px solid #cbd5e1;
}
.selection-table tr:last-child td {
    border-bottom: none;
}
.grade-link {
    color: #0047AB;
    text-decoration: none;
    font-weight: 500;
}
.grade-link:hover {
    text-decoration: underline;
    color: #002a6b;
}
/* レスポンシブ */
@media (max-width: 900px) {
    .applications-module { padding: 28px 20px; }
    .app-card { flex: 0 0 calc(50% - 9px); }
    .carousel-btn { width: 34px; height: 34px; font-size: 22px; }
    .btn-left { left: -14px; }
    .btn-right { right: -14px; }
}
@media (max-width: 640px) {
    .applications-module { padding: 24px 16px; }
    .app-card { flex: 0 0 100%; }
    .app-card img { height: 120px; }
    .carousel-btn { width: 30px; height: 30px; font-size: 20px; }
    .btn-left { left: -10px; }
    .btn-right { right: -10px; }
    .section-title { font-size: 26px; margin-bottom: 10px; }
    .section-intro { font-size: 14px; margin-bottom: 24px; }
    .table-subtitle { font-size: 22px; margin-bottom: 16px; }
    .selection-table, .selection-table thead, .selection-table tbody, .selection-table tr, .selection-table td {
        display: block;
        width: 100%;
    }
    .selection-table thead { display: none; }
    .selection-table tr {
        margin-bottom: 16px;
        border: 2px solid #cbd5e1;
        border-radius: 14px;
        overflow: visible;
        background: #ffffff;
    }
    .selection-table td {
        display: block;
        padding: 10px 12px;
        border-bottom: 1px solid #e2e8f0;
        word-break: break-word;
        white-space: normal;
    }
    .selection-table td:last-child { border-bottom: none; }
    .selection-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #0047AB;
        margin-bottom: 6px;
        font-size: 12px;
    }
}
