@charset "UTF-8";

/* =========================================================
   legal.css
   プライバシーポリシー / 運営者情報 など下層ページ共通スタイル
   ========================================================= */

html {
    scroll-padding-top: 80px;
}

body {
    background-color: #FFFFFF;
    font-family: "Noto Sans JP", sans-serif;
    color: #000000;
}

/* header -------------------------------------------------- */
.legal__header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E6E6E6;
}

.legal__header-inner {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 120px 0 105px;
}

.legal__header-logo {
    flex-shrink: 0;
    display: block;
    width: 122px;
    transition: opacity 0.3s ease;
}

.legal__header-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.legal__header-nav {
    margin: 0 0 0 auto;
}

.legal__header-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal__header-link {
    position: relative;
    display: block;
    padding: 0 16px 0 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0;
    white-space: nowrap;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.legal__header-link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #0044FF;
    border-right: 2px solid #0044FF;
    transform: translateY(-50%) rotate(45deg);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .legal__header-logo:hover,
    .legal__header-link:hover {
        opacity: 0.7;
    }
}

.legal__header a:focus-visible {
    outline: 2px solid #0044FF;
    outline-offset: 3px;
}

/* main ---------------------------------------------------- */
.legal {
    width: 100%;
    background-color: #FFFFFF;
}

.legal__inner {
    box-sizing: border-box;
    width: calc(100% - 120px);
    max-width: 880px;
    margin: 0 auto;
    padding: 80px 0 120px;
}

.legal__title {
    display: flex;
    justify-content: center;
    margin: 0 0 56px;
}

.legal__title-line {
    position: relative;
    display: inline-block;
}

.legal__title-line::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 14px;
    background: linear-gradient(90deg, #9AE1FF 0%, #95CCFF 55.77%, #6D8CFF 100%);
    z-index: 0;
}

.legal__title-line-text {
    position: relative;
    z-index: 1;
    font-weight: 800;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: 0;
    background: linear-gradient(90deg, #41A3FF 0%, #183EC9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.legal__lead {
    font-weight: 400;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0;
    margin: 0 0 48px;
}

.legal__section {
    margin: 0 0 40px;
}

.legal__heading {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0;
    padding: 0 0 10px;
    margin: 0 0 16px;
    border-bottom: 2px solid #E6E6E6;
}

.legal__text {
    font-weight: 400;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0;
    margin: 0 0 12px;
}

.legal__text:last-child {
    margin-bottom: 0;
}

.legal__list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    counter-reset: legal-item;
}

.legal__list > li {
    position: relative;
    counter-increment: legal-item;
    padding: 0 0 0 2em;
    font-weight: 400;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0;
}

.legal__list > li::before {
    content: counter(legal-item) ".";
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8em;
    text-align: right;
    padding-right: 0.3em;
    box-sizing: border-box;
}

.legal__list--bracket > li::before {
    content: "(" counter(legal-item) ")";
}

.legal__list-title {
    font-weight: 700;
}

.legal__sublist {
    list-style: none;
    margin: 4px 0 8px;
    padding: 0;
}

.legal__sublist > li {
    position: relative;
    padding: 0 0 0 1.2em;
    font-weight: 400;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0;
}

.legal__sublist > li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
}

.legal__link {
    color: #0044FF;
    text-decoration: underline;
    word-break: break-all;
}

/* 定義リスト（窓口情報など） */
.legal__dl {
    margin: 16px 0 0;
}

.legal__dl-row {
    display: flex;
    gap: 16px;
    font-size: 15px;
    line-height: 2;
}

.legal__dl-row dt {
    flex-shrink: 0;
    width: 11em;
    font-weight: 700;
}

.legal__dl-row dd {
    margin: 0;
    font-weight: 400;
}

.legal__date {
    margin: 48px 0 0;
    text-align: right;
    font-weight: 400;
    font-size: 15px;
    line-height: 2;
}

/* 運営者情報テーブル */
.legal__table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #D9D9D9;
    font-size: 15px;
    line-height: 1.8;
}

.legal__table th,
.legal__table td {
    box-sizing: border-box;
    padding: 20px 24px;
    border-bottom: 1px solid #D9D9D9;
    text-align: left;
    vertical-align: middle;
}

.legal__table tr:last-child th,
.legal__table tr:last-child td {
    border-bottom: none;
}

.legal__table th {
    width: 26%;
    font-weight: 700;
    text-align: center;
    background-color: #F5F8FC;
    border-right: 1px solid #D9D9D9;
}

.legal__table td {
    font-weight: 400;
}

/* responsive --------------------------------------------- */
@media (max-width: 1440px) {
    html {
        scroll-padding-top: 5.556vw;
    }

    .legal__header-inner {
        height: 5.556vw;
        padding: 0 8.333vw 0 7.292vw;
    }

    .legal__header-logo {
        width: 8.472vw;
    }

    .legal__header-list {
        gap: 1.944vw;
    }

    .legal__header-link {
        font-size: 0.972vw;
    }

    .legal__inner {
        width: calc(100% - 8.333vw);
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 14.925vw;
    }

    .legal__header-inner {
        height: 14.925vw;
        padding: 0 4.975vw 0 3.483vw;
    }

    .legal__header-logo {
        width: 29.851vw;
    }

    .legal__header-nav {
        min-width: 0;
        margin: 0 0 0 2.5vw;
    }

    .legal__header-list {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 1vw 2.5vw;
    }

    .legal__header-link {
        font-size: 2.687vw;
        padding-right: 2.687vw;
    }

    .legal__header-link::after {
        width: 1.493vw;
        height: 1.493vw;
        border-width: 0.373vw;
    }

    .legal__inner {
        width: 100%;
        max-width: none;
        padding: 10.945vw 5.909vw 14.925vw;
    }

    .legal__title {
        margin: 0 0 8.955vw;
    }

    .legal__title-line::before {
        height: 2.488vw;
    }

    .legal__title-line-text {
        font-size: 6.468vw;
    }

    .legal__lead,
    .legal__text,
    .legal__list > li,
    .legal__sublist > li,
    .legal__dl-row,
    .legal__date,
    .legal__table {
        font-size: 3.483vw;
        line-height: 1.9;
    }

    .legal__lead {
        margin: 0 0 8.955vw;
    }

    .legal__section {
        margin: 0 0 8.955vw;
    }

    .legal__heading {
        font-size: 4.229vw;
        padding: 0 0 1.99vw;
        margin: 0 0 2.985vw;
    }

    .legal__dl-row {
        flex-direction: column;
        gap: 0;
        margin: 0 0 1.99vw;
    }

    .legal__dl-row dt {
        width: auto;
    }

    .legal__date {
        margin: 8.955vw 0 0;
    }

    .legal__table th,
    .legal__table td {
        display: block;
        width: 100%;
        padding: 2.985vw 3.98vw;
        border-right: none;
    }

    .legal__table th {
        text-align: left;
        border-bottom: none;
    }

    .legal__table tr:last-child th {
        border-bottom: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legal__header-logo,
    .legal__header-link {
        transition: none;
    }
}
