/* ========================================
   ストーリーページ専用スタイル
   ======================================== */

/* ストーリーヒーロー */
.story-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.95), rgba(45, 106, 79, 0.9)),
                url('../images/hero-papaya.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    margin-top: 70px;
}

.story-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(244, 162, 97, 0.1), transparent 70%);
}

.story-hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.story-hero__title {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-accent);
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.story-hero__subtitle {
    font-size: 1.4rem;
    line-height: 2;
    opacity: 0.95;
}

/* ストーリー詳細 */
.story-detail {
    padding: 100px 0;
    background: white;
}

.chapter {
    max-width: 900px;
    margin: 0 auto 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.chapter.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.chapter:last-of-type {
    margin-bottom: 60px;
}

.chapter__header {
    margin-bottom: 40px;
}

.chapter__number {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    background: var(--bg-light);
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.chapter__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-accent);
    line-height: 1.4;
}

.chapter__content {
    background: var(--bg-light);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}

.chapter__text p {
    font-size: 1.1rem;
    line-height: 2.2;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.chapter__text p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin: 30px 0 !important;
}

.quote {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-style: italic;
    padding: 30px 40px;
    background: white;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color);
    margin: 30px 0;
    line-height: 2;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 3px;
}

.analysis-credit {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(45, 106, 79, 0.2);
}

.analysis-credit small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.analysis-credit i {
    color: var(--accent-color);
}

.info-box {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.1), rgba(64, 145, 108, 0.05));
    padding: 30px;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    margin: 30px 0;
}

.info-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box h3 i {
    font-size: 1.6rem;
}

.info-box p {
    font-size: 1.05rem;
    line-height: 2;
    margin: 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.menu-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.menu-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.menu-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.menu-card p {
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    margin-bottom: 12px !important;
}

.menu-card p:last-child {
    margin-bottom: 0 !important;
}

.timeline-item {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
}

.timeline-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-item p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* 最終チャプター（特別デザイン） */
.chapter--final .chapter__content {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-left: 5px solid var(--accent-color);
}

.chapter--final .chapter__text p {
    color: rgba(255, 255, 255, 0.95);
}

.final-message {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-color);
    margin: 30px 0;
    text-align: center;
}

.final-message h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    line-height: 1.6;
}

.final-message .highlight {
    color: var(--accent-color);
    font-size: 2.2rem;
    font-weight: 900;
}

.final-message p {
    font-size: 1.2rem !important;
    line-height: 2.2 !important;
    margin-bottom: 20px !important;
}

/* CTAセクション */
.story-cta-section {
    max-width: 800px;
    margin: 80px auto 0;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--bg-light), white);
    border-radius: var(--border-radius);
    border: 3px solid var(--primary-color);
}

.story-cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 35px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* レスポンシブ */
@media (max-width: 968px) {
    .story-hero__title {
        font-size: 3rem;
    }

    .story-hero__subtitle {
        font-size: 1.2rem;
    }

    .chapter__title {
        font-size: 2rem;
    }

    .chapter__content {
        padding: 35px 25px;
    }

    .quote {
        font-size: 1.2rem;
        padding: 25px 30px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .story-hero {
        height: 50vh;
        min-height: 400px;
    }

    .story-hero__title {
        font-size: 2.2rem;
    }

    .story-hero__subtitle {
        font-size: 1rem;
    }

    .story-detail {
        padding: 60px 0;
    }

    .chapter {
        margin-bottom: 60px;
    }

    .chapter__number {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

    .chapter__title {
        font-size: 1.6rem;
    }

    .chapter__content {
        padding: 25px 20px;
    }

    .chapter__text p {
        font-size: 1rem;
    }

    .highlight-text {
        font-size: 1.1rem !important;
        padding: 15px;
    }

    .quote {
        font-size: 1.1rem;
        padding: 20px;
    }

    .info-box {
        padding: 20px;
    }

    .info-box h3 {
        font-size: 1.2rem;
    }

    .final-message {
        padding: 25px;
    }

    .final-message h3 {
        font-size: 1.5rem;
    }

    .final-message .highlight {
        font-size: 1.7rem;
    }

    .final-message p {
        font-size: 1rem !important;
    }

    .story-cta-section {
        padding: 40px 20px;
    }

    .story-cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}