/* ==========================================================================
   JIMORUBA STORIES (EXPERIENCE REPORT) - CSS
   ========================================================================== */

/* Variables (Re-using brand colors) */
:root {
    --story-bg: #FFFFFF;
    --story-gray: #F9FAFB;
    --story-text-main: #333333;
    --story-text-sub: #6B7280;
    --story-border: #E5E7EB;
    --story-coral: #FD970F; /* Brand Coral */
    --story-teal: #1F9D83;  /* Brand Teal/Green */
    --story-pink: #E94C89;  /* Brand Pink */
}

/* Base Override */
body.stories-page {
    background-color: var(--story-bg);
    color: var(--story-text-main);
    font-family: 'Noto Sans JP', sans-serif;
}

/* -------------------------------------
   Hero Section
   ------------------------------------- */
.story-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    background-image: url('image/hero-bg.jpg'); /* Dummy background */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
}

.story-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%), rgba(0,0,0,0.3);
}

.story-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
}

.story-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--story-text-main);
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.story-hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--story-text-main);
}

/* -------------------------------------
   Tab Navigation
   ------------------------------------- */
.story-tabs-wrapper {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    padding: 0 5%;
    position: sticky;
    top: 70px; /* Below main header */
    z-index: 100;
    background: var(--story-bg);
}

.story-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    border-bottom: 2px solid var(--story-border);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Firefox */
}
.story-tabs::-webkit-scrollbar { display: none; /* Chrome */ }

.story-tab-item {
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--story-text-sub);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.story-tab-item:hover {
    color: var(--story-coral);
    background: var(--story-gray);
}

.story-tab-item.active {
    color: #FFF;
    background: var(--story-coral);
    border-color: var(--story-coral);
    box-shadow: 0 4px 10px rgba(253, 151, 15, 0.2);
}

/* -------------------------------------
   Content Area (1-Column Layout)
   ------------------------------------- */
.story-content-container {
    max-width: 860px; /* Immersive 1 column width */
    margin: 0 auto;
    padding: 0 5% 5rem 5%;
    min-height: 50vh;
}

/* Tab Panels */
.story-tab-pane {
    display: none;
    animation: fadeInPane 0.5s ease;
}

.story-tab-pane.active {
    display: block;
}

@keyframes fadeInPane {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------
   Story Cards (Participants & Hosts)
   ------------------------------------- */
.story-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.story-card {
    display: flex;
    flex-direction: column;
    background: var(--story-bg);
    border: 1px solid var(--story-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--story-text-main);
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.06);
    border-color: rgba(253, 151, 15, 0.3);
}

.story-card-image {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
}

.story-card-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.story-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.story-card-tag {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    background-color: var(--story-coral);
    color: #FFF;
}

.story-card-tag.host { background-color: var(--story-teal); }
.story-card-tag.topic { background-color: var(--story-pink); }

.story-card-attr {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--story-text-sub);
}

.story-card-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.story-card:hover .story-card-title {
    color: var(--story-coral);
}

.story-card-excerpt {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--story-text-main);
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Links inside Card */
.story-card-actions {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid var(--story-border);
    padding-top: 1.5rem;
    margin-top: auto;
}

.story-action-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--story-coral);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.story-action-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.story-action-link.green { color: var(--story-teal); }

@media (max-width: 768px) {
    .story-card-body { padding: 1.5rem; }
    .story-card-title { font-size: 1.3rem; }
    .story-card-actions { flex-direction: column; gap: 0.75rem; }
}

/* -------------------------------------
   Notice/News List (お知らせ)
   ------------------------------------- */
.notice-list {
    display: flex;
    flex-direction: column;
}

.notice-item {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px dashed var(--story-border);
    text-decoration: none;
    color: var(--story-text-main);
    transition: background-color 0.2s;
}

.notice-item:hover {
    background-color: var(--story-gray);
}

.notice-date {
    font-size: 0.95rem;
    color: var(--story-text-sub);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    flex-shrink: 0;
    width: 100px;
}

.notice-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .notice-item { flex-direction: column; gap: 0.5rem; }
    .notice-date { width: auto; }
}

/* -------------------------------------
   Dual Bottom CTA Section
   ------------------------------------- */
.dual-cta-section {
    background-color: var(--story-gray);
    padding: 5rem 5%;
    text-align: center;
}

.dual-cta-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.dual-cta-desc {
    font-size: 1.1rem;
    color: var(--story-text-sub);
    margin-bottom: 3rem;
}

.dual-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.btn-dual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 16px;
    text-decoration: none;
    color: #FFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.btn-dual:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.btn-dual i {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.btn-dual-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.btn-dual-sub {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.btn-participant { background: linear-gradient(135deg, var(--story-coral), #FF8533); }
.btn-host { background: linear-gradient(135deg, var(--story-teal), #23A970); }

@media (max-width: 768px) {
    .dual-cta-buttons { flex-direction: column; }
    .btn-dual { padding: 1.5rem; }
}
