@charset "UTF-8";

/* ==============================================
   ストーリー詳細ページ用レイアウト
============================================== */

/* メインビジュアル */
.story-top-visual {
    width: 100%;
    background-color: #f5f5f5;
    text-align: center;
    overflow: hidden;
}
.story-top-visual img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    vertical-align: bottom;
}

/* サブヘッダー */
.sub-header {
    text-align: center;
    padding: 50px 0;
    background: url('../img/bg_light.png') repeat;
}
.sub-header img {
	width: clamp(250px, 40vw, 600px);
    height: auto;
}

/* ナビゲーション */
.story-nav-area {
    width: 100%;
    background-color: var(--color-nav-bg);
    padding: 0;
}
.story-nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--color-white);
    box-sizing: border-box;
}
.story-nav-list li {
    flex: 1;
    border-right: 1px solid var(--color-white);
    box-sizing: border-box;
}
.story-nav-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(80px, 10vw, 110px);
    text-decoration: none;
    background: linear-gradient(to top left, var(--color-nav-bg) 0%, var(--color-nav-grad) 100%);
    transition: all 0.3s ease;
    position: relative;
}
.story-nav-list li a:hover {
    filter: brightness(1.3);
}
.story-nav-list li a::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 0;
    background-color: var(--color-yellow);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-nav-list li a:hover::after {
    width: 80%;
}
.nav-en-img {
    height: clamp(35px, 5vw, 60px);
    width: auto;
    display: block;
}
.nav-separator {
    color: var(--color-white, #ffffff);
    opacity: 0.4;
    font-size: 12px;
}

/* STORY本編 */
.story-layout-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0 20px;
}
.story-section-title {
    text-align: center;
    margin-bottom: 20px;
}
.story-section-title img {
    height: clamp(95px, 20vw, 150px);
    width: auto;
}

/* deco */
.deco-01-story { bottom: clamp(-120px, -8vw, -10px); right: 20px; width: clamp(180px, 30vw, 400px); max-width: none;}

.episode-content-body {
    width: 100%;
}
.episode-main-visual {
    text-align: center;
    margin-bottom: 30px;
}
.episode-main-visual img {
	width: 100%;
    max-width: 900px; 
    height: auto;
    border: 1px solid #ddd;
    box-sizing: border-box;
}
.episode-text-block {
    font-family: "Shippori Mincho B1", serif;
    font-size: 16px;
    line-height: 2.2;
    color: var(--color-text, #242424);
    margin-bottom: 40px;
    padding: 0 5%;
    text-align: justify;
}
.actor-name {
    color: var(--color-pink, #FF7AAF);
    font-weight: bold;
}
.episode-photo-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 100px auto;
    padding: 0;
}

.episode-photo-pair img {
    width: calc(50% - 10px);
    height: auto;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

/* バックナンバー */
#story-backnumber {
    padding-bottom: 60px;
}
#story-backnumber h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* FODバナー */
.fod-banner-container {
    text-align: center;
    margin: 60px auto 20px;
    width: 100%;
    max-width: 600px;
    padding: 0 15px;
    box-sizing: border-box;
}
.fod-banner-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2b2b2b;
    color: var(--color-white);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fod-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.fod-logo-img {
    height: clamp(20px, 5vw, 36px);
    width: auto;
    display: block;
    margin-right: 20px;
}

.fod-banner-text {
    font-family: "Shippori Antique B1", serif;
    font-size: clamp(16px, 4vw, 22px);
    letter-spacing: 0.05em;
    flex: 1;
    text-align: center;
}
.fod-banner-arrow {
    font-size: 24px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* ==============================================
   スマホ対応
============================================== */
@media screen and (max-width: 768px) {
    
    /* ナビゲーション */
    .story-nav-list {
        flex-wrap: wrap;
        border-left: none;
        padding: 0;
    }
    .story-nav-list li {
        width: 50%;
        flex: none;
        border-bottom: 1px solid var(--color-white);
    }
    .story-nav-list li:last-child {
        width: 100%;
        border-right: none;
        border-bottom: none;
    }
    .story-nav-list li:nth-child(2), .story-nav-list li:nth-child(4) {
        border-right: none;
    }
    .story-nav-list li a {
        display: flex;
        height: 70px;
        background: linear-gradient(to top left, var(--color-nav-bg) 0%, var(--color-nav-grad) 100%);
        padding: 0;
        border-radius: 0;
        position: relative;
    }
    .nav-separator {
        display: none;
    }
	
    /* deco */
    .deco-01-story {
        bottom: -20px; 
    }

    /* STORY本編 */
    .story-layout-container {
        padding: 40px 15px 0px;
    }
    .episode-text-block {
        padding: 0;
    }
    .episode-photo-pair {
        flex-direction: column;
        padding: 0;
        gap: 10px;
    }
    .episode-photo-pair img {
        width: 100%;
    }

    /* 最新話ピックアップ */
    .story-card-latest {
        padding: 20px;
    }

    /* FODバナー */
	.fod-banner-link {
        padding: 15px 20px;
    }
    .fod-logo-img {
        margin-right: 10px;
    }
}