/* ============================================
   ONEPATH COMPARE
============================================ */

.compare-page-hero {
    padding: 88px 0 54px;
    background: #f6f8f8;
}

.compare-en {
    display: inline-block;
    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;

    color: #168d98;
}

.compare-page-hero h1 {
    margin: 0;

    font-size: clamp(
        38px,
        6vw,
        76px
    );

    line-height: 1.02;
    letter-spacing: -.04em;
}

.compare-page-hero h1 em {
    font-style: normal;
    color: #159ca5;
}

.compare-page-hero p {
    max-width: 720px;

    margin-top: 22px;

    color: #666;

    font-size: 16px;
    line-height: 1.9;
}


/* ============================================
   SECTION
============================================ */

.compare-section {
    padding: 60px 0 100px;
}

.compare-toolbar {
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}

.compare-toolbar strong {
    margin-right: 4px;

    font-size: 30px;

    color: #159ca5;
}

.compare-clear {
    min-height: 42px;

    padding: 0 15px;

    border:
        1px solid
        #d7dfe2;

    border-radius: 9px;

    background: #fff;

    color: #444;

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}


/* ============================================
   SCROLL
============================================ */

.compare-scroll {
    overflow-x: auto;
    overflow-y: hidden;

    border:
        1px solid
        #dfe5e7;

    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.04);

    -webkit-overflow-scrolling: touch;
}


/* ============================================
   TABLE
============================================ */

.compare-table {
    width: 100%;

    min-width: 920px;

    border-collapse: separate;
    border-spacing: 0;

    table-layout: fixed;
}

.compare-table th,
.compare-table td {
    padding: 22px 18px;

    border-right:
        1px solid
        #e6ebed;

    border-bottom:
        1px solid
        #e6ebed;

    vertical-align: top;

    text-align: left;
}

.compare-table th:last-child,
.compare-table td:last-child {
    border-right: 0;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
    border-bottom: 0;
}


/* ============================================
   FIRST COLUMN
============================================ */

.compare-table th:first-child,
.compare-label-cell {
    width: 170px;

    position: sticky;
    left: 0;

    z-index: 4;

    background: #f7f9fa;
}

.compare-table thead th:first-child {
    z-index: 6;
}

.compare-table tbody th {
    color: #444;

    font-size: 13px;
    font-weight: 800;

    line-height: 1.6;
}


/* ============================================
   SCHOOL COLUMN
============================================ */

.compare-table thead th:not(:first-child) {
    min-width: 250px;

    background: #fff;

    vertical-align: top;
}

.compare-school-head {
    position: relative;
}

.compare-school-head img,
.compare-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;

    display: block;

    border-radius: 12px;

    object-fit: cover;
}

.compare-image-placeholder {
    display: grid;
    place-items: center;

    background: #edf1f2;

    color: #9ba5a9;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.compare-school-location {
    margin-top: 14px;

    color: #168d98;

    font-size: 11px;
    font-weight: 800;
}

.compare-school-head h2 {
    margin:
        6px 0
        0;

    font-size: 20px;
    line-height: 1.35;
}

.compare-school-head p {
    margin:
        5px 0
        0;

    color: #777;

    font-size: 13px;
}

.compare-school-head > a {
    margin-top: 14px;

    display: inline-flex;

    color: #159ca5;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;
}


/* ============================================
   REMOVE
============================================ */

.compare-remove {
    position: absolute;

    top: -10px;
    right: -10px;

    width: 34px;
    height: 34px;

    border:
        1px solid
        #dfe5e7;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: #fff;

    color: #666;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 5px 16px
        rgba(0,0,0,.08);

    z-index: 2;
}


/* ============================================
   CELL TEXT
============================================ */

.compare-table td {
    color: #444;

    font-size: 13px;
    line-height: 1.75;
}

.compare-table td small {
    margin-top: 9px;

    display: block;

    color: #777;

    font-size: 11px;
    line-height: 1.7;
}

.compare-cost {
    display: inline-block;

    color: #222;

    font-size: 18px;
}


/* ============================================
   TAGS
============================================ */

.compare-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

.compare-tags span {
    padding:
        6px 9px;

    border-radius: 999px;

    background: #edf8f8;

    color: #147b84;

    font-size: 11px;
    font-weight: 700;
}


/* ============================================
   DNA
============================================ */

.compare-dna-list {
    display: grid;

    gap: 9px;
}

.compare-dna {
    padding:
        10px 11px;

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    background: #f7f9fa;
}

.compare-dna span {
    min-width: 0;

    font-size: 11px;
    line-height: 1.5;
}

.compare-dna strong {
    flex-shrink: 0;

    color: #159ca5;

    font-size: 12px;
}


/* ============================================
   ACTION
============================================ */

.compare-action-row th,
.compare-action-row td {
    background: #fbfcfc;
}

.compare-action-buttons {
    display: grid;

    gap: 8px;
}

.compare-detail-btn,
.compare-request-btn {
    min-height: 42px;

    padding:
        0 12px;

    border-radius: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;
}

.compare-detail-btn {
    background: #edf3f4;

    color: #333;
}

.compare-request-btn {
    background: #159ca5;

    color: #fff;
}


/* ============================================
   BOTTOM ACTIONS
============================================ */

.compare-bottom {
    margin-top: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 12px;
}

.compare-back-btn,
.compare-main-btn {
    min-height: 48px;

    padding:
        0 18px;

    border-radius: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;
}

.compare-back-btn {
    border:
        1px solid
        #dce2e5;

    background: #fff;

    color: #333;
}

.compare-main-btn {
    background: #159ca5;

    color: #fff;
}


/* ============================================
   EMPTY
============================================ */

.compare-empty {
    padding:
        65px
        30px;

    border-radius: 20px;

    background: #fff;

    text-align: center;

    box-shadow:
        0 10px 35px
        rgba(0,0,0,.05);
}

.compare-empty > span {
    color: #159ca5;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.compare-empty h2 {
    margin:
        10px 0
        0;

    font-size: 30px;
}

.compare-empty p {
    max-width: 560px;

    margin:
        18px auto
        0;

    color: #666;

    line-height: 1.9;
}

.compare-empty .compare-main-btn {
    margin-top: 24px;
}


/* ============================================
   HOVER
============================================ */

@media (hover: hover) {

    .compare-remove:hover {
        background: #f6f6f6;
    }

    .compare-clear:hover {
        background: #f7f9fa;
    }

    .compare-school-head > a:hover {
        text-decoration: underline;
    }

    .compare-detail-btn:hover,
    .compare-back-btn:hover {
        opacity: .8;
    }

    .compare-request-btn:hover,
    .compare-main-btn:hover {
        opacity: .88;
    }

}


/* ============================================
   TABLET
============================================ */

@media (max-width: 900px) {

    .compare-page-hero {
        padding:
            68px 0
            44px;
    }

    .compare-section {
        padding:
            45px 0
            80px;
    }

    .compare-table {
        min-width: 860px;
    }

    .compare-table th:first-child,
    .compare-label-cell {
        width: 145px;
    }

}


/* ============================================
   MOBILE
============================================ */

@media (max-width: 600px) {

    .compare-page-hero {
        padding:
            52px 0
            36px;
    }

    .compare-page-hero h1 {
        font-size: 40px;
    }

    .compare-page-hero p {
        font-size: 14px;
    }

    .compare-section {
        padding:
            32px 0
            65px;
    }

    .compare-toolbar {
        align-items: flex-start;
    }

    .compare-toolbar strong {
        font-size: 26px;
    }

    .compare-clear {
        min-height: 38px;

        padding:
            0 12px;

        font-size: 11px;
    }

    .compare-scroll {
        margin-right: -14px;

        border-radius:
            14px 0 0 14px;
    }

    .compare-table {
        min-width: 800px;
    }

    .compare-table th,
    .compare-table td {
        padding:
            16px 13px;
    }

    .compare-table th:first-child,
    .compare-label-cell {
        width: 120px;
    }

    .compare-table thead th:not(:first-child) {
        min-width: 215px;
    }

    .compare-school-head h2 {
        font-size: 17px;
    }

    .compare-school-head img,
    .compare-image-placeholder {
        border-radius: 9px;
    }

    .compare-bottom {
        display: grid;

        grid-template-columns:
            1fr;
    }

    .compare-back-btn,
    .compare-main-btn {
        width: 100%;
    }

    .compare-empty {
        padding:
            45px
            20px;
    }

    .compare-empty h2 {
        font-size: 24px;
    }

}


/* ==========================================================================
   MOBILE SCROLL GUIDE
   ========================================================================== */

@media (max-width: 768px) {

    .compare-table-wrap::before {
        content: "← 横にスワイプして比較できます →";

        display: block;

        position: sticky;
        left: 0;

        width: fit-content;

        margin:
            0 0
            12px;

        padding:
            7px 11px;

        border-radius: 999px;

        background: #f1f5f6;

        color: #667075;

        font-size: 11px;

        font-weight: 700;

        letter-spacing: 0.02em;
    }

}