/* ヒーロー */
.story-hero {
    background-color: #f0ebe4;
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.story-hero::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230, 220, 210, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.story-hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 220, 210, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.story-hero-inner {
    position: relative;
    z-index: 1;
}

.story-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: #4a3f35;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    line-height: 1.6;
}

.story-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: #8c7b6c;
    margin: 20px auto 0;
}

.story-note {
    font-size: 0.85rem;
    color: #998e82;
    line-height: 2;
}

/* メインコンテンツ */
.story {
    padding: 80px 0 60px;
    background-color: #faf9f6;
}

.story-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 区切り線 */
.story-divider {
    border: none;
    border-top: 1px solid #d6cfc6;
    margin: 56px auto;
    max-width: 60px;
}

/* 各セクション */
.story-section {
    margin-bottom: 16px;
    position: relative;
    padding-left: 48px;
}

.story-section::before {
    content: attr(data-chapter);
    position: absolute;
    top: 2px;
    left: 0;
    font-size: 0.75rem;
    color: #bfb5a8;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.story-heading {
    font-size: 1.2rem;
    font-weight: 500;
    color: #4a3f35;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    line-height: 1.9;
    position: relative;
    padding-bottom: 16px;
}

.story-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 1px;
    background-color: #c4b8a9;
}

.story-section p {
    margin-bottom: 24px;
    line-height: 2.4;
    color: #5a5a5a;
    font-size: 0.95rem;
}

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

/* トップへ戻る */
.story-back {
    text-align: center;
    margin-top: 72px;
    padding-top: 56px;
    border-top: 1px solid #e8e4df;
}

.story-back-link {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid #4a3f35;
    color: #4a3f35;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: background-color 0.3s, color 0.3s;
}

.story-back-link:hover {
    background-color: #4a3f35;
    color: #fff;
}

/* フッター */
.story-footer {
    text-align: center;
    padding: 40px 0;
    color: #aaa;
    font-size: 0.8rem;
    background-color: #faf9f6;
}

/* フェードインアニメーション */
.story-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .story-hero {
        padding: 100px 20px 60px;
    }

    .story-title {
        font-size: 1.4rem;
    }

    .story {
        padding: 60px 0 40px;
    }

    .story-section {
        padding-left: 36px;
    }

    .story-heading {
        font-size: 1.05rem;
    }

    .story-section p {
        font-size: 0.9rem;
        line-height: 2.2;
    }

    .story-divider {
        margin: 44px auto;
    }
}
