/* ====================
   リセット & 基本設定
==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ハロウィンカラーパレット */
    --primary-orange: #FF6B35;
    --dark-orange: #E85D00;
    --purple: #8B4789;
    --dark-purple: #5D2E5A;
    --black: #1A1A1D;
    --dark-gray: #2D2D30;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --accent-yellow: #FFD93D;
    --accent-green: #6BCF7F;

    /* グラデーション */
    --gradient-halloween: linear-gradient(135deg, var(--primary-orange) 0%, var(--purple) 100%);
    --gradient-dark: linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 100%);

    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-halloween: 0 8px 32px rgba(255, 107, 53, 0.3);
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ====================
   ハロウィン装飾要素
==================== */
.halloween-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-pumpkin,
.floating-ghost,
.floating-bat {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.pumpkin-1 { top: 10%; left: 5%; animation-delay: 0s; }
.pumpkin-2 { top: 60%; right: 10%; animation-delay: 2s; }
.ghost-1 { top: 30%; right: 5%; animation-delay: 1s; }
.ghost-2 { top: 70%; left: 10%; animation-delay: 3s; }
.bat-1 { top: 20%; left: 50%; animation-delay: 0.5s; font-size: 1.5rem; }
.bat-2 { top: 50%; right: 20%; animation-delay: 1.5s; font-size: 1.5rem; }
.bat-3 { top: 80%; left: 30%; animation-delay: 2.5s; font-size: 1.5rem; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ====================
   ヘッダー
==================== */
.header {
    position: relative;
    z-index: 10;
    padding: 1.5rem 0;
    background: var(--gradient-dark);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-halloween);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* レスポンシブ対応 - 狭い画面でもタイトルを見やすく */
@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 1.2rem;
    }
}

.tagline {
    font-size: 0.9rem;
    color: var(--accent-yellow);
    opacity: 0.9;
}

.header-banner {
    width: 100%;
    max-width: 1200px;
    height: 250px;
    margin: 1.5rem auto 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.header-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* PC表示で顔の部分がより見えるように調整 */
}

.header-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

@media (max-width: 768px) {
    .header-banner {
        height: 150px;
    }
}

/* ====================
   ヒーローセクション
==================== */
.hero {
    position: relative;
    z-index: 10;
    padding: 3rem 1rem;
    text-align: center;
    background: var(--gradient-halloween);
    overflow: hidden;
    max-height: 60vh;
    min-height: 400px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 20px 20px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: block;
}

.title-line.highlight {
    font-size: 3rem;
    color: var(--accent-yellow);
    text-shadow:
        0 0 20px rgba(255, 217, 61, 0.8),
        4px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-image {
    margin-top: 2rem;
}

.hero-placeholder {
    display: inline-block;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.emoji-large {
    font-size: 4rem;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ====================
   タブナビゲーション
==================== */
.tab-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    background: var(--dark-gray);
    padding: 0.5rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.tab-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    background: transparent;
    color: var(--white);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--gradient-halloween);
    border-color: var(--accent-yellow);
    box-shadow: var(--shadow-halloween);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--primary-orange);
}

/* ====================
   メインコンテンツ
==================== */
.main-content {
    position: relative;
    z-index: 10;
    min-height: 60vh;
}

.content-section {
    display: none;
    padding: 2rem 1rem;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

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

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    background: var(--gradient-halloween);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================
   キャストグリッド
==================== */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cast-card {
    background: var(--dark-gray);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cast-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-halloween);
}

.cast-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--purple), var(--primary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    overflow: hidden;
}

.cast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.cast-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 1;
}

.cast-info {
    padding: 1.5rem;
}

.cast-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary-orange);
}

.cast-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cast-tag {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent-yellow);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.cast-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ====================
   イベントカード
==================== */
.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.event-card {
    background: var(--dark-gray);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.event-card:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-halloween);
    transform: translateY(-5px);
}

.event-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

/* イベント画像スタイル */
.event-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

/* オプション画像スタイル */
.option-image {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.option-card:hover .option-image img {
    transform: scale(1.05);
}

.event-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.event-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.event-card strong {
    color: var(--accent-yellow);
    font-weight: 800;
}

.event-badge {
    display: inline-block;
    background: var(--gradient-halloween);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* ====================
   レビューフォーム
==================== */
.review-form-container {
    max-width: 600px;
    margin: 3rem auto 3rem;
    background: var(--dark-gray);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.review-form-container h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-orange);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-yellow);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--black);
    border: 2px solid var(--dark-gray);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
}

.star {
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: var(--accent-yellow);
    transform: scale(1.2);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-halloween);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-halloween);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ====================
   レビュー表示
==================== */
.reviews-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: var(--dark-gray);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.review-stars {
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.review-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.3rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ====================
   フッター
==================== */
.footer {
    position: relative;
    z-index: 10;
    background: var(--gradient-dark);
    padding: 3rem 0 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-orange);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-halloween);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1.5rem;
}

/* ====================
   レスポンシブ対応
==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .title-line.highlight {
        font-size: 2.5rem;
    }

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

    .event-cards {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 0.7rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .review-form-container {
        padding: 1.5rem;
    }
}

/* ====================
   ハンバーガーメニュー
==================== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ナビゲーションメニュー */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-gray);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding-top: 80px;
}

.nav-menu.active {
    right: 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item:hover {
    background: rgba(255, 107, 53, 0.2);
    padding-left: 2.5rem;
}

.nav-item.active {
    background: var(--gradient-halloween);
    border-left: 4px solid var(--accent-yellow);
}

/* モバイル表示 */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .header-content {
        position: relative;
        padding-right: 60px;
    }
}

/* ====================
   固定フッターナビゲーション
==================== */
.fixed-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1200px;
    width: 100%;
    display: flex;
    background: var(--dark-gray);
    border-top: 3px solid var(--primary-orange);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    padding: 0.5rem 0;
}

@media (max-width: 1200px) {
    .fixed-bottom-nav {
        left: 0;
        transform: none;
    }
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-halloween);
    transition: width 0.3s ease;
}

.nav-btn.active {
    color: var(--primary-orange);
}

.nav-btn.active::before {
    width: 60%;
}

.nav-btn:hover {
    color: var(--white);
    background: rgba(255, 107, 53, 0.1);
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease;
}

.nav-btn.active .nav-icon {
    transform: scale(1.2);
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* メインコンテンツの下部余白を追加（固定ナビゲーションに隠れないように） */
body {
    padding-bottom: 80px;
}

/* レスポンシブ調整 */
@media (max-width: 480px) {
    .nav-icon {
        font-size: 1.3rem;
    }

    .nav-label {
        font-size: 0.7rem;
    }

    .nav-btn {
        padding: 0.6rem 0.3rem;
    }
}

/* ====================
   TOPセクション - ブログ風レイアウト
==================== */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-article {
    background: var(--dark-gray);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.blog-article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-halloween);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--purple), var(--primary-orange));
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-article:hover .blog-image img {
    transform: scale(1.05);
}

.blog-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-orange);
    padding: 1.5rem 2rem 1rem;
    margin: 0;
}

.blog-content {
    padding: 0 2rem 2rem;
    text-align: left;
}

.blog-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    text-align: left;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .blog-image {
        height: 250px;
    }

    .blog-title {
        font-size: 1.5rem;
        padding: 1.2rem 1.5rem 0.8rem;
    }

    .blog-content {
        padding: 0 1.5rem 1.5rem;
    }

    .blog-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .blog-container {
        gap: 2rem;
    }

    .blog-image {
        height: 200px;
    }

    .blog-title {
        font-size: 1.3rem;
        padding: 1rem 1.2rem 0.6rem;
    }

    .blog-content {
        padding: 0 1.2rem 1.2rem;
    }
}
