:root {
    --primary: #ff5722;
    --secondary: #2196f3;
    --dark: #333;
    --light: #f4f4f4;
    --white: #fff;
    --accent: #ffeb3b;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
}


.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('cafe_work.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
}

.badge {
    background: var(--primary);
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .highlight {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: 0.3s;
}

.cta-btn:hover {
    transform: scale(1.05);
    background: #e64a19;
}


.flex-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.flex-row.reverse {
    flex-direction: row-reverse;
}

.text-content { flex: 1; }
.image-content { flex: 1; }

.image-content img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


.check-list {
    list-style: none;
    margin-bottom: 30px;
}

.check-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
}

.bold { font-weight: bold; color: var(--primary); }


.dark { background: #222; color: var(--white); }
.dark h2 { color: var(--white); }

.image-stack {
    background: var(--primary);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.stack-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.stack-item.accent {
    background: var(--accent);
    color: var(--dark);
    font-weight: bold;
    font-size: 1.2rem;
}


.safety-tag {
    margin-top: 30px;
    background: var(--light);
    padding: 25px;
    border-radius: 10px;
}

.safety-tag h3 { color: var(--secondary); margin-bottom: 10px; }


.testimonials { background: var(--light); }

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.persona-card {
    min-width: 300px;
    background: var(--white);
    margin: 10px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.p-header {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.icon.male { background: #2196f3; }
.icon.female { background: #e91e63; }

.p-solve { color: var(--primary); font-weight: bold; margin-top: 10px; }

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-nav button {
    background: var(--dark);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}


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

.dream-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
}

.dream-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.dream-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.dream-item:hover img { transform: scale(1.1); }


.message { text-align: center; background: var(--accent); }
.message-box { max-width: 800px; margin: 0 auto; }
.final-text { font-size: 2rem; font-weight: bold; margin-top: 20px; color: var(--primary); }


.registration { background: var(--light); }
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover { background: #e64a19; }


footer { text-align: center; padding: 40px; background: #222; color: #888; }


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse { animation: pulse 2s infinite; }


@media (max-width: 768px) {
    .flex-row, .flex-row.reverse { flex-direction: column; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .form-container { padding: 30px 20px; }
}






         /* =============================================
           よくある質問
        ============================================= */
        .faq { background: var(--light); }

        .faq-list {
            max-width: 750px;
            margin: 0 auto;
        }

        .faq-item {
            background: var(--white);
            border-radius: 10px;
            margin-bottom: 15px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.06);
            overflow: hidden;
        }

        .faq-question {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 22px 25px;
            cursor: pointer;
            font-weight: bold;
            font-size: 1.05rem;
            user-select: none;
            transition: background 0.2s;
        }

        .faq-question:hover { background: #fafafa; }

        .faq-q-label {
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            font-weight: bold;
        }

        .faq-icon {
            margin-left: auto;
            font-size: 1.3rem;
            color: var(--primary);
            transition: transform 0.3s;
            flex-shrink: 0;
        }

        .faq-item.open .faq-icon { transform: rotate(45deg); }

        .faq-answer {
            height: 0;
            overflow: hidden;
            transition: height 0.4s ease;
        }

        .faq-item.open .faq-answer {
            /* heightはJSのscrollHeightで制御 */
        }

        .faq-answer-inner {
            display: flex;
            gap: 15px;
            align-items: flex-start;
            border-top: 1px solid #f0f0f0;
            padding: 15px 25px 22px;
            color: #555;
            line-height: 1.7;
        }

        .faq-a-label {
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            background: var(--secondary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            font-weight: bold;
        }

        /* =============================================
           プライバシーポリシー リンク
        ============================================= */
        .privacy-link-wrap {
            text-align: center;
            margin-bottom: 15px;
            font-size: 0.9rem;
            color: #666;
        }

        .privacy-link-wrap a {
            color: var(--secondary);
            text-decoration: underline;
            cursor: pointer;
        }

        /* =============================================
           プライバシーポリシー モーダル
        ============================================= */
        .privacy-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .privacy-modal.active { display: flex; }

        .privacy-modal-inner {
            background: var(--white);
            border-radius: 15px;
            width: 100%;
            max-width: 700px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }

        .privacy-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 25px;
            border-bottom: 1px solid #eee;
        }

        .privacy-modal-header h3 {
            font-size: 1.1rem;
            font-weight: bold;
        }

        .privacy-modal-close {
            background: none;
            border: none;
            font-size: 1.8rem;
            cursor: pointer;
            color: #888;
            line-height: 1;
            padding: 0;
            transition: color 0.2s;
        }

        .privacy-modal-close:hover { color: var(--dark); }

        .privacy-modal-body {
            overflow-y: auto;
            padding: 25px;
            line-height: 1.8;
            color: #444;
            font-size: 0.9rem;
        }

        .privacy-modal-body h1,
        .privacy-modal-body h2,
        .privacy-modal-body h3 {
            margin: 1.2em 0 0.5em;
            color: var(--dark);
        }

        .privacy-modal-body p { margin-bottom: 0.8em; }

        /* エラーメッセージ */
        .err_msg {
            color: #e53935;
            font-size: 0.85rem;
            margin-top: 5px;
            min-height: 1.2em;
            font-weight: bold;
        }