/* **********************
PC
********************** */

@media (min-width:600px) {
    .wrapper {
        max-width: 1260px;
    }

    .mv_wrap {
        max-width: 1260px;
        margin: 0 auto;
    }

    .banner_wrap {
        max-width: 900px;
        margin: 40px auto 30px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }

    .input_section_title br {
        display: none;

    }

}

@media (min-width:1015px) {

    /* PC逕ｨ繝翫ン */
    .sp-button {
        display: none;
    }

    .header_nav_wrap {
        max-width: 1080px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header_nav {
        background-color: inherit;
        width: 100%;
        color: inherit;
        transform: translateX(0);
        position: initial;
    }

    .header_nav ul {
        display: flex;
        position: initial;
        gap: 18px;
        justify-content: end;
    }

    .header_nav a {
        padding: 6px 30px;
    }

    .header_nav li {
        margin-bottom: 0;
        padding: 6px 0;
        border-radius: 6px;
        transition: .3s ease-in-out;
    }


    .header_nav li:nth-child(1) {
        background-color: #D9EAE7;

    }

    .header_nav li:nth-child(2) {
        background-color: #FF9299;
    }

    .header_nav li:nth-child(3) {
        background-color: #FFF89B;
    }


    .header_nav li:nth-child(1):hover {
        background-color: #77C0B3;
    }

    .header_nav li:nth-child(2):hover {
        background-color: #fb606a;

    }

    .header_nav li:nth-child(3):hover {
        background-color: #ffee00;
    }

    .header_nav li:nth-child(4) {
        display: none;
    }

    .active .header_nav::after {
        display: none;
    }

    .inner {
        padding: 80px 0;
    }

    .header_text {
        text-align: center;
    }

    .input_section_title:before {
        display: inline-block;
        content: var(--img-arrow-pc);
        position: absolute;
        top: -115px;
        left: 48%;
    }

    .submit_button:hover {
        transform: scale(1.05, 1.05);
    }

    .twitter_share_button:hover {
        transform: scale(1.05, 1.05);
    }
}


@media (max-width: 860px) {
    .footer {
        padding: 30px 0 60px; /* UPボタン分の下部余白 */
        text-align: center;
    }

    .footer_wrap {
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .footer_logo {
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer_nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-left: 0;
    }

    .footer_nav li {
        width: 100%;
        text-align: center;
    }

    .footer_nav a {
        display: block;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .footer_up {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }

    .footer_up img {
        height: 40px;
    }

    .copy {
        font-size: 11px;
        margin-top: 40px;
    }
}

.terms_of_service {
    background-color: #f9f9f9;
    padding: 60px 20px;
    color: #666;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    line-height: 1.8;
}

.terms_of_service .wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.terms_of_service .title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.terms_of_service .sub_title_wrap {
    text-align: center;
    margin-bottom: 40px;
}

.terms_of_service .sub_title {
    font-size: 18px;
    color: #888;
    letter-spacing: 0.05em;
}

.terms_of_service_text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 12px;
    color: #555;
    border-left: 4px solid #FF5A64;
    padding-left: 12px;
}

.terms_of_service_text p {
    margin-bottom: 24px;
    font-size: 16px;
}

.terms_of_service_text ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 12px;
}

.terms_of_service_text li {
    margin-bottom: 8px;
    font-size: 16px;
}

.terms_of_service_text ol {
    list-style: decimal;
    padding-left: 20px;
    margin-top: 12px;
}

.terms_of_service_text ol li {
    margin-bottom: 8px;
    font-size: 16px;
}

.terms_of_service_text ol.number_paren {
    list-style: none;
    counter-reset: item;
    padding-left: 20px;
    margin-top: 12px;
}

.terms_of_service_text ol.number_paren li {
    counter-increment: item;
    margin-bottom: 8px;
    font-size: 16px;
    position: relative;
    padding-left: 28px;
}

.terms_of_service_text ol.number_paren li::before {
    content: "(" counter(item) ")";
    position: absolute;
    left: 0;
    color: #333;
}

/* - 表記のリスト */
.terms_of_service_text ul.hyphen_list {
    list-style: none;
    padding-left: 20px;
    margin-top: 12px;
}

.terms_of_service_text ul.hyphen_list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 16px;
}

.terms_of_service_text ul.hyphen_list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #333;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .terms_of_service {
        padding: 40px 16px;
    }

    .terms_of_service .title {
        font-size: 26px;
    }

    .terms_of_service .sub_title {
        font-size: 16px;
    }

    .terms_of_service_text h3 {
        font-size: 18px;
    }

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

/* home banner slider */
.banner-slider-margin {
    margin-top: 20px;
}

/* 横にスライド */
.banner-slider-wrapper {
    width: 100%;
    max-width: 728px;
    aspect-ratio: 728 / 90;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.banner-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-slide {
    flex: 0 0 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 728px) {
    .banner-slider-margin {
        margin-top: 0;
    }
}

/* フッター上バナー */
.banner-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.banner-item {
    width: 100%;
    max-width: 540px;
    background-color: #eee;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid #ccc;
}

@media (max-width: 640px) {
    .banner-grid {
        grid-template-columns: 1fr;
    }
    .banner-item {
        margin: 0 auto;
    }
}

/* キャンペーン用ポップアップ */
.campaign-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 90vw;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    z-index: 10000;
}

.campaign-popup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.popup-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #FFF;
    font-weight: bold;
    text-shadow: 0 0 2px black, 0 0 4px black; /* 黒い縁取り */
}

@media (max-width: 640px) {
    .campaign-popup {
        width: 90vw;
        bottom: 10px;
        right: 5vw;
    }
}
