/* style.css */

body {
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f8f6;
    margin: 0;
    scroll-behavior: smooth;
    overflow-wrap: break-word; /* Allow breaking long words if necessary */
    line-break: strict; /* Apply strict line-breaking rules for Japanese */
}

h1, h2, h3, h4 {
    font-family: 'Shippori Mincho', serif;
    font-weight: 600;
    color: #2c3e50;
}

header {
    text-align: center;
    padding: 20px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

header nav {
    margin-top: 15px;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

header nav ul li a {
    text-decoration: none;
    color: #34495e;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

header nav ul li a:hover {
    color: #c0a062;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

header h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 26px;
    font-weight: 400;
    margin: 0;
    color: #34495e;
    letter-spacing: 1px;
}

main {
    max-width: 800px;
    margin: 30px auto;
    padding: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

section {
    padding: 40px 30px;
    text-align: left;
    border-bottom: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

section p, section li {
    font-size: 16px;
}

.section-with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 40px;
    color: #fff;
    text-align: center;
    margin-left: -30px;
    margin-right: -30px;
}

main > .section-with-bg:first-child {
    margin-top: 0;
}
main > section:last-child {
    border-bottom: none;
}


.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.section-with-bg > * {
    position: relative;
    z-index: 2;
}

#hero {
    /* background-image is handled by video */
}

#reason {
    background-image: url('pain-image.png');
}

#introduction {
    background-image: url('design-image.png');
}

#cta {
    background-image: url('cta-background.png');
}

#cta::before {
    background-color: rgba(0, 0, 0, 0.3);
}

#benefits {
    background-image: url('benefits-background.png');
}

.section-with-bg h2, .section-with-bg h3, .section-with-bg p, .section-with-bg h4, .section-with-bg li {
    color: #fff;
}

.section-with-bg .benefit-item ul li::before {
    color: #fff;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    background-size: cover;
}

section h2, section h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
}

#hero h2 {
    font-size: 32px;
    line-height: 1.6;
}

.problem-list {
    font-style: italic;
    text-align: center;
    padding: 15px;
    margin: 20px auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    max-width: 90%;
}

strong {
    color: #c0a062;
}

#reason h3, #introduction h3, #benefits h3, #cta h3 {
    font-size: 30px;
    border-bottom: 2px solid #fff;
    display: inline-block;
    padding-bottom: 8px;
}

.benefit-item {
    margin-bottom: 25px;
    text-align: left;
}

.benefit-item h4 {
    font-size: 20px;
    color: #fff;
    border-left: 4px solid #fff;
    padding-left: 15px;
    margin-bottom: 15px;
}

.benefit-item ul {
    list-style-type: none;
    padding-left: 20px;
}

.benefit-item ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.benefit-item ul li::before {
    content: '✔';
    color: #fff;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cta-lead {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin: 30px 0 15px;
}

.cta-button {
    display: block;
    width: 80%;
    max-width: 500px;
    margin: 0 auto;
    background-color: #c0a062;
    color: #fff;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(192, 160, 98, 0.4);
}

.cta-button:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 126, 34, 0.6);
}

.disclaimer {
    font-size: 14px;
    color: #eee;
    text-align: center;
    margin-top: 15px;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 0;
    font-size: 12px;
    color: #888;
    background-color: #f9f8f6;
}

footer hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin-bottom: 15px;
}

.no-wrap {
    white-space: nowrap;
}

/* === RESPONSIVE DESIGN === */

@media (max-width: 900px) {
    main {
        margin: 20px;
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.7;
    }

    header {
        padding: 15px 0;
    }

    header nav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    main {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    section {
        padding: 30px 20px;
    }

    .section-with-bg {
        padding: 60px 20px;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    #hero h2 {
        font-size: 24px;
    }

    #reason h3, #introduction h3, #benefits h3, #cta h3 {
        font-size: 22px;
    }

    .benefit-item h4 {
        font-size: 18px;
    }

    .cta-button {
        width: 95%;
        padding: 18px;
        font-size: 18px;
    }

    .problem-list {
        padding: 15px;
        font-size: 15px;
    }

    footer {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }

    .newsletter-icon {
        width: 50px;
        height: 50px;
    }

    #hero h2 {
        font-size: 21px;
    }

    #reason h3, #introduction h3, #benefits h3, #cta h3 {
        font-size: 20px;
    }

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

    .cta-button {
        padding: 15px;
        font-size: 16px;
    }

    .section-with-bg {
        padding: 50px 15px;
    }
}
