/* 
    ファミリー・子供向けの明るくPOPなデザイン（えんとつ町のプペル風カラフル感）
*/

/* 変数定義（デザインシステム） */
:root {
    --color-bg-base: #F8FBFE; /* 明るい空のような非常に薄いブルー */
    --color-bg-white: #FFFFFF;
    --color-accent-orange: #FF9F1C; /* ポップなオレンジ */
    --color-accent-blue: #2EC4B6;   /* ポップなシアンブルー */
    --color-accent-red: #E71D36;    /* ポップなレッド */
    --color-text-main: #2B2D42;     /* 濃いネイビーグレー（可読性重視） */
    --color-text-sub: #6C757D;
    
    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

/* リセット & ベース */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(#FF9F1C 1px, transparent 1px), radial-gradient(#2EC4B6 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    background-attachment: fixed; /* ドットパターンの背景でPOPさを演出 */
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent-orange);
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent-red);
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.1); /* 前より断然明るく */
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* うっすらと黒いグラデーションを入れて文字を見やすくするだけ */
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    text-align: center;
    padding: 0 20px;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.75rem; /* 元の5remから3/4サイズへ縮小 */
    line-height: 1.3;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.scroll-indicator .arrow {
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, white 0%, transparent 100%);
    animation: scroll-bobbing 2s infinite;
}

@keyframes scroll-bobbing {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* セクション共通 */
.section {
    padding: 100px 0;
    position: relative;
    /* 背景パターンを上書きしてセクション内は見やすく */
    background-color: rgba(255, 255, 255, 0.85); 
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent-blue);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 4px;
}
.section-title.text-red {
    color: var(--color-accent-red);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: currentColor;
    margin: 15px auto 0;
}

/* 新着ハイライトセクション */
.highlight-section {
    background: linear-gradient(135deg, rgba(255,159,28,0.1) 0%, rgba(46,196,182,0.1) 100%);
    padding: 80px 0;
}

.highlight-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.highlight-image {
    flex: 1;
    display: flex;
}

.coming-soon-box {
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(255, 159, 28, 0.8) 0%, rgba(255, 123, 0, 0.8) 100%), url('contestgrand\ prix.png');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(255, 159, 28, 0.3);
    position: relative;
    overflow: hidden;
}

.coming-soon-box h3 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.coming-soon-box p {
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.highlight-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.pop-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.news-card {
    background: white;
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-left: 6px solid var(--color-bg-base);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.pop-card-1 { border-color: var(--color-accent-blue); }
.pop-card-2 { border-color: var(--color-accent-orange); }
.pop-card-3 { border-color: var(--color-accent-red); }

.news-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    min-width: 50px;
    text-align: center;
}

.pop-card-1 .news-number { color: rgba(46, 196, 182, 0.2); }
.pop-card-2 .news-number { color: rgba(255, 159, 28, 0.2); }
.pop-card-3 .news-number { color: rgba(231, 29, 54, 0.2); }

.news-text h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--color-text-main);
}
.pop-card-1 h4 { color: var(--color-accent-blue); }
.pop-card-2 h4 { color: var(--color-accent-orange); }
.pop-card-3 h4 { color: var(--color-accent-red); }

.news-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-main);
}

/* プロフィールセクション */
.profile-section {
    background-color: var(--color-bg-white);
}

.profile-layout {
    background: var(--color-bg-white);
    border-radius: 24px;
    padding: 3rem 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 4rem;
    border: 2px solid #EAF4FC;
}

.profile-text h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--color-accent-blue);
}

.profile-text h3 span {
    font-size: 1.1rem;
    color: var(--color-text-sub);
    font-weight: normal;
    margin-left: 10px;
}

.profile-text .history {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

.message-box {
    background: #FFF9F2;
    border-left: 5px solid var(--color-accent-orange);
    padding: 1.5rem 2rem;
    border-radius: 0 12px 12px 0;
}

.message-box strong {
    color: var(--color-accent-orange);
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

/* ストーリーセクション */
.story-section {
    background: var(--color-bg-base);
}

.story-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(231, 29, 54, 0.1);
}

.story-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent-red);
}

.story-desc {
    font-size: 1.15rem;
    line-height: 2;
    text-align: justify;
    color: var(--color-text-main);
}

.btn-process {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent-red) 0%, #FF3D5A 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(231, 29, 54, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-heading);
}

.btn-process:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 29, 54, 0.6);
}

/* 無限ローラースライダー共通 */
.slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.slider-wrapper::before,
.slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-white), rgba(255, 255, 255, 0));
}

.slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-white), rgba(255, 255, 255, 0));
}

.story-section .slider-wrapper::before {
    background: linear-gradient(to right, var(--color-bg-base), rgba(255, 255, 255, 0));
}
.story-section .slider-wrapper::after {
    background: linear-gradient(to left, var(--color-bg-base), rgba(255, 255, 255, 0));
}

.slider-title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--color-accent-red);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.slider-track {
    display: flex;
    width: calc(300px * 14); /* 調整 */
}

.slider-track.profile-slider {
    animation: scroll-left 40s linear infinite;
    width: calc(320px * 8); 
}

.slider-track.rough-slider {
    animation: scroll-left 50s linear infinite;
}

.slide {
    padding: 0 15px;
}

.profile-slider .slide {
    width: 320px;
    height: 380px;
}

.rough-slider .slide {
    width: 300px;
    height: 220px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.08) translateY(-10px);
    z-index: 3;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* 応援サポーターセクション */
.supporter-content {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(231, 29, 54, 0.1);
    margin-bottom: 4rem;
    border: 3px dashed var(--color-accent-orange);
}
.supporter-layout {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 20px;
}
.supporter-img {
    flex: 1;
    width: 50%;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.supporter-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.btn-pop {
    display: inline-block;
    background: var(--color-accent-orange);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255,159,28,0.4);
    transition: transform 0.2s, background 0.2s;
}
.btn-pop:hover {
    transform: translateY(-3px);
    background: #FF8B00;
}

/* スタッフ紹介セクション */
.staff-section {
    background: var(--color-bg-white);
}
.staff-layout {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.staff-card {
    background: var(--color-bg-base);
    border-radius: 20px;
    padding: 30px;
    width: 30%;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.staff-card:hover {
    transform: translateY(-5px);
}
.staff-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.staff-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent-blue);
    margin-bottom: 10px;
}
.staff-role {
    font-size: 0.95rem;
    color: var(--color-text-main);
}

/* フッター */
.footer {
    padding: 3rem 0;
    text-align: center;
    background: var(--color-text-main);
    color: white;
}

/* フェードインアニメーション用のクラス */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

/* -------------------------------------
   高度なレスポンシブ対応（スマホ・PCの最適化） 
   ------------------------------------- */

@media (max-width: 900px) {
    .highlight-layout {
        flex-direction: column;
    }
    .coming-soon-box {
        min-height: 300px;
    }
    .supporter-layout {
        flex-direction: column;
    }
    .supporter-img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* ヘッダー全体を少しコンパクトに */
    .header {
        flex-direction: column;
        gap: 10px;
        padding: 0.8rem 1rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.85rem;
    }

    /* ヒーロー見出しを画面に収める */
    .hero-title {
        font-size: 1.8rem;
    }

    /* 各セクションの余白を少し詰める */
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Box内側のゆとりをスマホ向けに調節 */
    .coming-soon-box {
        min-height: 250px;
        padding: 1.5rem;
    }
    .coming-soon-box h3 {
        font-size: 1.8rem;
    }
    .coming-soon-box p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .pop-title {
        font-size: 1.5rem;
        text-align: center;
    }

    /* スマホで横幅を食うカードの内側パディングや文字サイズを調整 */
    .news-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 10px;
    }
    .news-number {
        font-size: 2.5rem; /* 星や数字を少し小さく */
    }
    
    .profile-layout {
        padding: 1.5rem 1rem;
    }
    .profile-text h3 {
        font-size: 1.5rem;
    }
    .profile-text .history {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .message-box {
        padding: 1rem;
    }
    
    /* スライダー画像をスマホ向けにおさめる */
    .profile-slider .slide {
        width: 200px;
        height: 250px;
    }
    .rough-slider .slide {
        width: 200px;
        height: 140px;
    }

    .story-content {
        padding: 1.5rem;
    }
    .story-desc {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .supporter-content {
        padding: 1.5rem;
    }
    .supporter-text p {
        font-size: 0.95rem;
    }
    
    /* ボタン類は幅を100%にしてタップしやすく */
    .btn-pop, .btn-process {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
    
    /* スタッフカードも画面幅に合わせて縦積み */
    .staff-layout {
        gap: 15px;
    }
    .staff-card {
        width: 100%;
        min-width: unset;
        padding: 20px 15px;
    }
    .staff-img {
        width: 110px;
        height: 110px;
    }
    .staff-card h4 {
        font-size: 1.3rem;
    }
    .staff-role {
        font-size: 0.85rem;
    }
}
