@charset "UTF-8";

/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
    --bg-color: #050505;       /* ほぼ完全な黒 */
    --card-bg: #1a1a1a;        /* コンテンツ背景 */
    --text-main: #ffffff;
    --text-sub: #aaaaaa;
    --accent-color: #ff9f1c;   /* 盆踊りの灯りをイメージしたオレンジ */
    --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --transition-speed: 0.5s;
}

*, *::before, *::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth; /* ページ内リンクをスムーススクロールにする */
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   Hero Section (Slideshow)
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100dvh; /* モバイルのアドレスバー考慮 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* スライドショー画像のコンテナ */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* ふんわり切り替え */
    filter: brightness(0.6); /* 文字を読みやすくするため少し暗く */
}

.hero-slide.active {
    opacity: 1;
}

/* テキストオーバーレイ */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s, transform 1s;

    /* 【追加】ここを調整して位置を変えます */
    /* 10vh〜20vh くらいがおすすめです */
    margin-bottom: 15vh; 
}

/* 最後の画像が表示された時にJSで付与するクラス */
.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    margin: 0;
    line-height: 1.3;
}

/* 最後に表示される固定画像 */
.hero-fixed-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* スライダー(z-index:1)と同じ階層だが、DOM順で上に重ねる */
    opacity: 0;
    transition: opacity 2.0s ease-in-out;
}

.hero-fixed-img.visible {
    opacity: 1;
}

/* テキストは固定画像より手前に表示するため z-index を調整 */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s, transform 1s;

    /* 【追加】ここを調整して位置を変えます */
    /* 10vh〜20vh くらいがおすすめです */
    margin-bottom: 15vh; 
}
/* ==========================================================================
   Scroll Button (Hero Section内に追加)
   ========================================================================== */
.hero-scroll-btn {
    position: absolute;
    /* iPhone等のホームバーに重ならないよう、セーフエリア分足す */
    bottom: calc(30px + env(safe-area-inset-bottom)); 
    left: 50%;
    transform: translateX(-50%);
    
    /* z-indexを非常に大きくして確実に一番上にする */
    z-index: 1000;
    
    /* クリックを確実に有効化 */
    cursor: pointer;
    pointer-events: auto;

    text-align: center;
    color: var(--text-main);
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-decoration: none; /* 下線を消す */
}

/* JSで付与されるクラス */
.hero-scroll-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* 下向き矢印のデザイン（CSSのみで作る場合） */
.arrow-down {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-main);
    border-bottom: 2px solid var(--text-main);
    transform: rotate(45deg);
    animation: bounce 2s infinite; /* 上下に揺れるアニメーション */
}

/* 矢印を揺らすキーフレーム */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-6px) rotate(45deg); }
    60% { transform: translateY(-3px) rotate(45deg); }
}
/* ==========================================================================
   Video Section (新規追加)
   ========================================================================== */
.video-section {
    padding: 4rem 1.5rem;
    background-color: #000; /* 黒背景 */
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    /* モダンなアスペクト比維持の記述 */
    aspect-ratio: 16 / 9; 
    background: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Merits Section
   ========================================================================== */
.section {
    padding: 4rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    letter-spacing: 0.05em;
}

.merits-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* スマホは1列 */
}

.merit-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
    transition: transform 0.3s;
}

.merit-card:hover {
    border-color: var(--accent-color);
}

.merit-number {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.merit-text {
    font-size: 1.1rem;
    font-weight: bold;
}

/* ==========================================================================
   CTA Button
   ========================================================================== */
.cta-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-join {
    background: linear-gradient(45deg, var(--accent-color), #ff5e62);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-join:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(255, 159, 28, 0.4);
}

/* ==========================================================================
   Modal (Popup)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #222;
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    border: 1px solid #444;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn-close {
    background: transparent;
    border: 1px solid #666;
    color: #ccc;
    padding: 0.5rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-close:hover {
    background: #333;
    color: #fff;
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-list {
    text-align: left;
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-sub);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    text-align: center;
    padding: 3rem 1rem;
    background: #000;
    border-top: 1px solid #222;
    color: var(--text-sub);
    font-size: 0.9rem;
}