/* ========================================
   輪音祭 -Rionsai- スタイルシート
   ======================================== */

/* CSS Reset & Basic Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Zen Maru Gothic', sans-serif; /* 丸ゴシックで柔らかさを */
    background-color: #010a18; /* さらに深い紺色 */
    color: #e0eaf3; /* やや青みがかった白 */
    line-height: 1.8;
    overflow-x: hidden; /* 横スクロールを防止 */
    scroll-behavior: smooth; /* スムーズスクロール */
    -webkit-text-size-adjust: 100%; /* iOSで文字サイズが勝手に変わるのを防止 */
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(1, 10, 24, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 15px 20px;
    padding-top: max(15px, env(safe-area-inset-top));
}
nav {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
nav a {
    color: #e0eaf3;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}
nav a:hover { color: #ffd700; }

/* Hero Section - メインビジュアル */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* 背景のグラデーションと星空風ドット */
    background: 
        radial-gradient(circle at 50% 10%, rgba(255, 223, 0, 0.2) 0%, transparent 40%), /* 月の光の表現 */
        linear-gradient(180deg, #010a18 0%, #031e3d 50%, #010a18 100%); /* 深い夜空→明るい青→自然に下へフェード */
    animation: starryNight 30s linear infinite; /* 星空アニメーション */
}

/* 星空アニメーションのキーフレーム */
@keyframes starryNight {
    from { background-position: 0 0, 0 0; }
    to { background-position: 100% 100%, 0 0; }
}

.moon {
    width: 180px;
    height: 180px;
    background: #fff8e1; /* クリーム色に近い月 */
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.7), 0 0 120px rgba(255, 215, 0, 0.3); /* より強い輝き */
    margin-bottom: 30px;
    position: relative;
    z-index: 2; /* 文字より上に */
    animation: floatMoon 8s ease-in-out infinite alternate; /* 月の浮遊アニメーション */
}

@keyframes floatMoon {
    from { transform: translateY(-10px); }
    to { transform: translateY(10px); }
}

.hero h1 {
    font-family: 'Shippori Mincho', serif; /* 明朝体で品格を */
    font-size: 5rem;
    letter-spacing: 0.3em;
    margin: 10px 0;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 223, 0, 0.8); /* 月の光を反射 */
    z-index: 2;
}

.hero p {
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    opacity: 0.85;
    color: #f0e68c; /* 少し金色がかった色 */
    z-index: 2;
}

/* 水面の波紋 */
.ripple-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30vh; /* 画面の下部30%を占める */
    background: linear-gradient(to top, rgba(1, 10, 24, 0.95) 0%, rgba(3, 30, 61, 0.5) 40%, transparent 100%); /* 水面から自然にフェード */
    z-index: 1;
}

.ripple {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: createRipple 8s ease-out infinite;
}
.ripple:nth-child(2) { animation-delay: 2s; }
.ripple:nth-child(3) { animation-delay: 4s; }
.ripple:nth-child(4) { animation-delay: 6s; }

@keyframes createRipple {
    0% { width: 0; height: 0; opacity: 0; border-width: 8px; }
    15% { opacity: 0.7; }
    100% { width: 600px; height: 300px; opacity: 0; border-width: 0px; }
}


/* Section common styles */
section {
    padding: 100px 20px;
    max-width: 900px; /* 少し広めに */
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* より繊細なボーダー */
    opacity: 0; /* 初期状態は非表示 */
    transform: translateY(30px); /* 少し下にずらす */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* アニメーション */
}

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

h2 {
    font-family: 'Shippori Mincho', serif;
    text-align: center;
    color: #ffd700;
    font-size: 2.8rem;
    margin-bottom: 50px;
    position: relative;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, transparent, #ffd700, transparent);
    margin: 20px auto 0;
}

/* Content Styles */
.concept-box {
    background: rgba(255, 255, 255, 0.07); /* より透過度の高い背景 */
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid #ffd700; /* より太いボーダー */
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1); /* ほんのり光るシャドウ */
}
.concept-box p {
    font-size: 1.1rem;
    color: #c9d6e4;
}
.concept-box strong {
    color: #ffe066; /* 明るい金色 */
}

.concept-partner-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #c9d6e4;
    margin-top: 40px;
    margin-bottom: 12px;
    line-height: 1.6;
}
.concept-partner-banner {
    display: block;
    text-align: center;
    margin-bottom: 10px;
}
.concept-partner-banner img {
    width: 200px;
    height: auto;
    max-width: 50%;
    border-radius: 6px;
    transition: opacity 0.3s;
}
.concept-partner-banner:hover img {
    opacity: 0.9;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 1.1rem;
}

.info-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
}

.info-table td:first-child {
    font-family: 'Shippori Mincho', serif;
    font-weight: bold;
    color: #ffd700;
    width: 35%; /* 少し広めに */
}

/* Button */
.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(45deg, #ffd700, #ffec8b); /* 金色のグラデーション */
    color: #010a18; /* 背景色に合わせた濃い色 */
    border: none;
    text-decoration: none;
    border-radius: 35px;
    transition: all 0.4s ease-in-out;
    margin-top: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
    background: linear-gradient(45deg, #ffec8b, #ffd700);
}

/* Image & Placeholder Styles */
.section-image {
    width: 100%;
    max-width: 700px;
    height: 280px;
    margin: 0 auto 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.section-image .section-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.timetable-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1rem;
}
.timetable-table td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.timetable-table td:first-child {
    font-family: 'Shippori Mincho', serif;
    font-weight: bold;
    color: #ffd700;
    width: 90px;
}

.performer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 25px;
}
.performer-card {
    text-align: center;
}
.performer-photo {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
}
.performer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.performer-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 215, 0, 0.3);
}
.performer-photo--placeholder span {
    color: rgba(255, 215, 0, 0.4);
    font-size: 1.5rem;
}
.performer-name {
    font-size: 0.95rem;
    color: #e0eaf3;
    line-height: 1.4;
}

.coming-soon-box {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 215, 0, 0.6);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(3, 30, 61, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 215, 0, 0.6);
    font-size: 1rem;
    letter-spacing: 0.1em;
    border: 2px dashed rgba(255, 215, 0, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .image-placeholder {
    min-height: 150px;
    font-size: 0.85rem;
}

.map-wrapper {
    margin: 40px auto;
    max-width: 700px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.map-wrapper iframe {
    width: 100%;
    height: 350px;
    display: block;
}

footer {
    text-align: center;
    padding: 60px;
    padding-bottom: max(60px, env(safe-area-inset-bottom));
    font-size: 0.95rem;
    opacity: 0.7;
    color: #a0a0a0;
}

/* ========================================
   Responsive - タブレット
   ======================================== */
@media (max-width: 768px) {
    .performer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    header {
        padding: 12px 15px;
    }
    nav {
        gap: 20px;
    }
    nav a {
        font-size: 0.9rem;
    }
    .hero h1 {
        font-size: 3.5rem;
        letter-spacing: 0.2em;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .moon {
        width: 140px;
        height: 140px;
    }
    h2 {
        font-size: 2.2rem;
    }
    section {
        padding: 60px 15px;
    }
    .concept-box {
        padding: 25px 20px;
    }
    .info-table td {
        display: block;
        width: 100%;
        border-bottom: none;
        padding: 10px 0;
    }
    .info-table td:first-child {
        width: 100%;
        padding-bottom: 5px;
    }
    .timetable-table td {
        padding: 10px 15px;
        font-size: 1rem;
    }
    .timetable-table td:first-child {
        width: 70px;
    }
    .info-table tr {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 20px;
        display: block;
    }
    .cta-button {
        padding: 16px 32px;
        font-size: 1rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .section-image {
        height: 200px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .map-wrapper {
        margin: 30px 0;
    }
    .map-wrapper iframe {
        height: 280px;
    }
}

/* ========================================
   Responsive - スマートフォン
   ======================================== */
@media (max-width: 480px) {
    header {
        padding: 10px 12px;
    }
    nav {
        gap: 12px;
    }
    nav a {
        font-size: 0.85rem;
    }
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 0.15em;
    }
    .hero p {
        font-size: 1rem;
    }
    .moon {
        width: 110px;
        height: 110px;
        margin-bottom: 20px;
    }
    h2 {
        font-size: 1.8rem;
    }
    section {
        padding: 50px 12px;
    }
    .concept-box {
        padding: 20px 16px;
    }
    .concept-box p {
        font-size: 1rem;
    }
    .performer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .section-image {
        height: 180px;
    }
    .gallery-grid {
        gap: 10px;
    }
    .map-wrapper iframe {
        height: 250px;
    }
    footer {
        padding: 40px 20px;
        font-size: 0.9rem;
    }
    @keyframes createRipple {
        0% { width: 0; height: 0; opacity: 0; border-width: 8px; }
        15% { opacity: 0.7; }
        100% { width: 380px; height: 190px; opacity: 0; border-width: 0px; }
    }
}

/* ========================================
   タッチデバイス向け
   ======================================== */
@media (hover: none) {
    .cta-button:active {
        transform: scale(0.98);
    }
    nav a {
        padding: 8px 4px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}
