@charset "utf-8";

/* トップメッセージ */
.top-message {
    background: linear-gradient(135deg, #004A78, #006AAB);
    color: #fff;
    padding: 60px 5%;
    text-align: center;
    margin-bottom: 60px;
}

.top-message h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.top-message p {
    font-size: 16px;
    opacity: 0.9;
}

/* 利用規約コンテンツ */
.terms-container {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.terms-section {
    margin-bottom: 40px;
}

.terms-section h2 {
    font-size: 24px;
    color: #004A78;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #004A78;
}

.terms-section h3 {
    font-size: 20px;
    color: #333;
    margin: 30px 0 15px;
}

.terms-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.terms-section ol {
    counter-reset: terms-counter;
    list-style-type: none;
    padding-left: 0;
}

.terms-section ol > li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    counter-increment: terms-counter;
}

.terms-section ol > li::before {
    content: counter(terms-counter) ".";
    position: absolute;
    left: 0;
    color: #004A78;
    font-weight: bold;
}

.terms-section ul {
    list-style-type: none;
    padding-left: 20px;
}

.terms-section ul > li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
}

.terms-section ul > li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #004A78;
}

/* レスポンシブ対応 */
/* モバイル: 767px以下 */
@media screen and (max-width: 767px) {
    .top-message {
        padding: 40px 5%;
        margin-bottom: 40px;
    }

    .top-message h1 {
        font-size: 28px;
    }

    .terms-container {
        margin-bottom: 60px;
    }

    .terms-section h2 {
        font-size: 22px;
    }

    .terms-section h3 {
        font-size: 18px;
    }

    .terms-section p,
    .terms-section li {
        font-size: 15px;
    }
}

/* 小さなモバイル: 479px以下 */
@media screen and (max-width: 479px) {
    .top-message {
        padding: 30px 5%;
    }

    .top-message h1 {
        font-size: 24px;
    }

    .terms-section h2 {
        font-size: 20px;
    }

    .terms-section h3 {
        font-size: 17px;
    }
}
