@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;800&family=Dela+Gothic+One&display=swap');
@import url('mobile_menu.css');

:root {
    --primary-color: #FF9F1C;
    /* Vitamin Orange */
    --secondary-color: #FFBF00;
    /* Sunshine Yellow */
    --accent-color: #2EC4B6;
    /* Fresh Teal */
    --text-color: #2B2D42;
    /* Soft Black */
    --white: #ffffff;
    --pop-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
    --border-radius-pop: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: var(--text-color);
    background-color: #FAFAFA;
    background-image: radial-gradient(var(--secondary-color) 2px, transparent 2px);
    background-size: 30px 30px;
    /* Polka dot pattern */
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
.pop-font {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 0.05em;
    /* Added spacing for better readability */
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--primary-color);
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: 0.2s;
}

.nav-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: rotate(-3deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    /* details for nav */
    background: #fff;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw;
    height: 150vw;
    background: repeating-conic-gradient(transparent 0deg 10deg,
            rgba(255, 191, 0, 0.2) 10deg 20deg);
    animation: spin 60s linear infinite;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

/* "Comic Cloud" Bubble */
.hero-bubble {
    background: var(--white);
    border: 6px solid var(--text-color);
    border-radius: 30px;
    padding: 3rem 2rem;
    box-shadow: 15px 15px 0px var(--primary-color);
    position: relative;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
    -webkit-text-stroke: 2px var(--text-color);
    text-shadow: 4px 4px 0px var(--white);
}

.hero p {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-lead .hero-line {
    display: inline;
}

.note-idea {
    font-weight: 800;
    color: #E65100;
}

.feature-badge {
    color: white;
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-weight: 800;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-badge--secondary {
    background: var(--secondary-color);
}

.feature-badge--accent {
    background: var(--accent-color);
}

.btn-cta {
    display: inline-block;
    padding: 1.5rem 4rem;
    background-color: var(--primary-color);
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 2rem;
    border-radius: 100px;
    border: 4px solid var(--white);
    box-shadow: 0 10px 0px #C77000, 0 20px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s, box-shadow 0.1s;
    position: relative;
    top: 0;
}

.btn-cta:active {
    top: 10px;
    box-shadow: 0 0px 0px #C77000, 0 0px 0px rgba(0, 0, 0, 0);
}

.btn-cta::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    animation: bounce 1s infinite alternate;
}

/* Sections */
section {
    padding: 8rem 5%;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: -10px;
    width: 110%;
    height: 20px;
    background: var(--secondary-color);
    z-index: -1;
    border-radius: 10px;
    transform: rotate(-2deg);
    opacity: 0.7;
}

/* Menu Grid (Sticker Style) */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--white);
    border: 4px dashed var(--primary-color);
    border-radius: 30px;
    padding: 3rem;
}

.menu-image img {
    width: 100%;
    border-radius: 30px;
    border: 6px solid var(--white);
    box-shadow: var(--pop-shadow);
    transform: rotate(-3deg);
}

/* Flow (Horizontal Cards) */
.flow-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.flow-step {
    background: var(--white);
    padding: 2rem;
    width: 250px;
    border-radius: 20px;
    border: 3px solid var(--text-color);
    text-align: center;
    position: relative;
    box-shadow: 8px 8px 0px var(--accent-color);
    transition: transform 0.2s;
}

.flow-step:hover {
    transform: translateY(-10px) rotate(2deg);
}

.flow-step span {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    border: 3px solid var(--white);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}

/* Feature Cards */
.features {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 400px;
}

.feature-card img {
    border-radius: 15px;
    border: 4px solid var(--secondary-color);
}

/* FAQ */
.faq {
    background: #FFF8E1;
    /* Light Yellow bg */
    border-radius: 50px;
    margin: 2rem 5%;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.faq-question {
    font-weight: 800;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    margin-top: 1rem;
    display: none;
    color: #666;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-question span {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Store Info */
.store-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.store-info {
    background: var(--white);
    padding: 2rem;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    text-align: center;
    flex: 1 1 320px;
    max-width: 520px;
}

/* Ensure section title in FAQ is centered (avoid left/transform centering method) */
#faq .section-title {
    left: auto;
    transform: none;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--white);
    padding: 4rem;
    text-align: center;
    border-top: 10px solid var(--accent-color);
}

/* Animation */
@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.5;
        word-break: keep-all;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero p {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-lead .hero-line {
        display: block;
    }

    .hero-bubble {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.9rem !important;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 90%;
    }

    h2, h3, h4 {
        word-break: keep-all;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .pop-font {
        font-size: 1.2rem !important;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-badge {
        width: fit-content;
        max-width: 100%;
        padding: 0.25rem 0.9rem;
        margin-left: auto;
        margin-right: auto;
        display: block;
        text-align: center;
    }

    .btn-cta {
        font-size: 1.7rem;
        padding: 1.2rem 2.2rem;
        white-space: nowrap;
    }

    .note-idea {
        /* hanging indent: align wrapped lines to the start of "スマホ..." (after "💡 ") */
        padding-left: 1.6em;
        text-indent: -1.6em;
    }

    .flow-step:not(:last-child)::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -2rem;
        transform: translateX(50%);
    }

    .flow-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .flow-step h4,
    .flow-step p {
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .store-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .store-info {
        max-width: none;
        width: 100%;
        flex: 0 0 auto;
        padding: 1.25rem;
    }

    #stores {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}