/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #C6E7F9;
    /* Global light blue background */
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

a {
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: block;
}

a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

a:active {
    transform: translateY(0);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
.header-inner {
    height: 57px;
    background: #0098D8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bottom-header {
    background: #003893;
    height: 13px;
}

/* Sections */
/* Hero */
.hero {
    overflow: hidden;
}

.hero-sp-text {
    display: none;
}

/* Premium Gift */
.premium-gift {
    /* Inherits body background */
    margin-top: -40px;
    margin-bottom: 30px;
}

.premium-gift>.container>picture>img, .welcome-gift>.container>picture>img {
    margin-left: -16px;
    max-width: calc(100% + 16px);
}

.premium-gift .container {
    position: relative;
}

.btn-wrapper {
    /* margin-top: 30px; */
    text-align: center;
}

.btn-wrapper a {
    display: inline-block;
    width: 83%;
}

.btn-apply {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 4%;
}

/* Welcome Gift */
.welcome-gift {
    /* Inherits body background */
    margin-bottom: 38px;
}

.welcome-gift-notes {
    display: none;
}

.no-application-needed {
    background-color: #F9E6E9;
    padding: 20px;
    margin-top: 20px;
}

.no-application-needed .highlight {
    color: #DE0073;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 5px;
}

.no-application-needed .sub-note {
    font-size: 2.3vw;
}

/* Campaign Info */
.campaign-info {
    padding: 35px 0 30px;
    background-color: #72b6d9;
    background-image: url('../images/8-bg-pattern.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.info-box {
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-group a {
    width: 83%;
}

.note-text {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

/* Simulation */
.simulation {
    padding: 65px 0 50px;
}

.notes-content {
    position: relative;
}

.notes-content:before, .notes-content:after {
    content: "";
    position: absolute;
    border-bottom: 2px solid #fff;
    height: 2px;
    width: calc(100% + 16px);
    top: -15px;
    left: -8px;
    margin: 0 auto;
}

.notes-content:after {
    top: auto;
    bottom: -20px;
}

/* Notes */
.notes {
    padding: 15px 0 0;
}

.notes-content {
    margin: 0 auto 50px;
    font-size: 10px;
    line-height: 1.2;
    color: #000;
    text-align: justify;
    column-count: 2;
    column-gap: 20px;
    font-weight: 500;
    margin-bottom: 50px;
}

.notes-content h3 {
    font-size: 10px;
    color: #0090D0;
    margin-bottom: 0;
    font-weight: bold;
    break-after: avoid;
    margin: 0.4em;
}

.notes-content h3:first-child {
    margin-top: 0;
}

.notes-content ul {
    list-style-type: none;
    padding-left: 0;
}

.notes-content li {
    position: relative;
    padding-left: 1em;
    margin-bottom: 0;
    line-height: 1.2;
}

.notes-content li::before {
    content: "●";
    position: absolute;
    left: 0.1em;
    color: #0090D0;
    font-size: 1.2em;
    top: 0.5px;
}

.notes-content a {
    font-size: 10px;
    display: inline;
    word-break: break-all;
    color: #000;
}

.notes-content strong {
    color: #0090D0;
}

/* Footer Banner */
.footer-banner {
    padding: 40px 0 10px;
    text-align: center;
}

.footer-banner picture {
    max-width: 687px;
    display: block;
    margin: 0 auto;
}

.footer-company-info {
    font-size: 12px;
    margin-top: 30px;
    border: 1px solid #000;
    padding: 4px 40px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
}

.banner-label {
    font-weight: bold;
    color: #0066b3;
    margin-bottom: 20px;
    font-size: 20px;
    letter-spacing: 0.05em;
}

.footer-banner a {
    display: inline-block;
}

/* Footer */
.footer-contact {
    border-top: 1px solid #eee;
    padding: 28px 0 12px;
    background-color: #fff;
    /* Explicit white background */
}

.footer-contact picture {
    max-width: 687px;
    display: block;
    margin: 0 auto;
}

.footer-contact .text-right {
    color: #000;
    font-size: 10px;
    font-weight: bold;
    text-align: right;
    padding-right: 36px;
}

.footer-bottom {
    background-color: #003893;
    padding: 30px 0;
    text-align: center;
}

.footer-logo {
    max-width: 200px;
    filter: brightness(0) invert(1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .header-inner {
        height: 20px;
    }

    .bottom-header {
        height: 5px;
    }

    .hero {
        padding-top: 15px;
        padding-bottom: 35px;
    }

    .hero-sp-text {
        display: block;
        padding: 0 15px;
        font-weight: bold;
        color: #000;
        font-size: 3vw;
        position: absolute;
        left: 0;
        width: 100%;
    }

    .period-1 {
        bottom: 14.4%;
    }

    .period-2 {
        bottom: -2%;
    }

    .hero-sp-text ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .hero-sp-text li {
        position: relative;
        padding-left: 1em;
        line-height: 1.2;
    }

    .hero-sp-text li::before {
        content: "●";
        color: #003893;
        position: absolute;
        left: 0;
    }

    .hero-sp-text .note {
        padding-left: 1em;
    }

    .period-block+.period-block {
        margin-top: 15px;
    }

    .container {
        padding: 0 10px;
        position: relative;
    }

    .campaign-info {
        padding: 30px 0 20px;
    }

    .info-box {
        margin-bottom: 20px;
    }

    .banner-label {
        font-size: 16px;
    }

    .notes-content {
        font-size: 11px;
        padding: 10px 0;
        column-count: 1;
        margin-bottom: 40px;
    }

    .notes-content li {
        padding-left: 1.2em;
    }

    .footer-logo {
        max-width: 80px;
    }

    .footer-company-info {
        font-size: 5.5px;
        width: 100%;
        display: block;
        padding: 0 2px;
        margin-top: 15px;
    }

    .premium-gift>.container>picture>img, .welcome-gift>.container>picture>img, .simulation>.container>picture>img {
        margin-left: -8px;
        max-width: calc(100% + 8px);
    }

    .welcome-gift-notes {
        display: block;
        font-size: 2.3vw;
        max-width: 88%;
        line-height: 1.2;
        position: absolute;
        bottom: 5%;
        left: 0;
        right: 0;
        margin: 0 auto;
        font-weight: 500;
    }

    .welcome-gift-notes ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .welcome-gift-notes li {
        position: relative;
        padding-left: 1em;
        margin-bottom: 2px;
    }

    .welcome-gift-notes li::before {
        content: "※";
        position: absolute;
        left: 0;
    }

    .no-application-needed {
        margin-top: 15px;
        padding: 12px 9px;
    }

    .no-application-needed .highlight {
        font-size: 2.5vw;
    }

    .btn-wrapper a {
        width: 96%;
    }

    .premium-gift .btn-wrapper a {
        width: 88%;
    }

    .btn-group {
        gap: 8px;
        margin-top: 0;
    }

    .btn-group a {
        width: 95%;
    }

    .premium-gift {
        padding-top: 40px;
    }

    .welcome-gift {
        margin-bottom: 30px;
    }

    .note-text {
        font-size: 14px;
    }

    .simulation {
        padding: 25px 0 25px;
    }

    .notes-content:before, .notes-content:after {
        width: 100%;
        left: 0;
    }

    .footer-banner{
        padding: 10px 0 5px;
    }
    .footer-contact{
        padding: 10px 0 5px;
    }
    .footer-contact picture{
        max-width: 90%;
    }
    .footer-banner picture{
        width: 90%;
    }
    .footer-contact .text-right{
        padding-top: 4px;
        padding-right: 4px;
        font-size: 5.5px;
    }
    .footer-bottom{
        padding: 10px 0;
    }
}
