@charset "UTF-8";

/* ====================================
   1. CSSリセットと変数定義
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* メインカラー: #c3f1ff (明るい水色) */
    --color-primary: #c3f1ff;
    /* サブカラー: #8ef1ad (緑色系) */
    --color-subcolor: #8ef1ad;
    /* アクセントカラー: #FF7A00 (元気なオレンジ) */
    --color-accent: #FF7A00;
    /* テキストカラー */
    --color-text: #333333;
    /* 背景色 (コンテンツ部分) */
    --color-bg-content: #FFFFFF;
    /* サブテキスト */
    --color-secondary-dark: #666666;
}

/* ====================================
   2. 全体のスタイル
   ==================================== */

body {
    font-family: 'M PLUS 1', sans-serif;
    background-color: var(--color-primary);
    color: var(--color-text);
    overflow-x: hidden; /* 横スクロール防止 */
}

/* リンクのデフォルト設定 */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

/* スクロールバーが消えたことによるコンテンツのズレを補正するクラス */
.modal-open {
    padding-right: 17px !important;
}

/* ====================================
   3. ヘッダーのスタイル
   ==================================== */

header {
    width: 100vw; 
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s ease-out;
}

.header-hidden {
    transform: translateY(-100%);
}

.header_logo img {
    height: 70px;
    width: auto;
    display: block;
}

.header_menubar {
    display: flex;
    gap: 20px;
}

.header_menubar a p {
    font-weight: 900;
    font-size: 18px;
    color: var(--color-text);
    background-color: var(--color-subcolor);
    padding: 5px 20px;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.header_menubar a:hover p {
    color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    background-color: #ffffff;
}

/* ====================================
   4. メインビジュアル (topsec) のスタイル
   ==================================== */

.topsec {
    width: 100%;
    /* 全幅・全高に対応 */
    height: 100vh;
    max-width: none;
    margin: 0 0 60px 0; /* 下だけ余白を空ける */
    padding: 0;
    background-color: #ffffff; /* 背景白 */
    border-radius: 0;
    box-shadow: none;
}

/* style.css の .parallax-container 修正箇所 */
.parallax-container {
    position: relative;
    width: 100%;
    height: 100vh; 
    overflow: hidden;
    background-color: #ffffff; /* ベースの背景色を白に維持 */
    perspective: 1000px; 
    
    /* ★修正: 縦線と横線を別々に定義し、背景サイズを調整して重ねて描画★ */
    background-image: 
        /* 縦線 (Vertical Grid Lines) */
        repeating-linear-gradient(
            to right, 
            #f0ed5f 0, 
            #f0ed5f 1px, 
            transparent 1px, 
            transparent 30px /* 縦線の間隔を30pxに設定 */
        ),
        /* 横線 (Horizontal Grid Lines) */
        repeating-linear-gradient(
            to bottom, 
            #f0ed5f 0, 
            #f0ed5f 1px, 
            transparent 1px, 
            transparent 30px /* 横線の間隔を30pxに設定 */
        );
        
    /* ★修正: background-size をグリッドの間隔に合わせる（両方に適用される）★ */
    background-size: 30px 30px; 
    
    /* 最後の背景色（これが見えてはいけない） */
    background-color: #ffffff;
}

/* --- パララックス演出用のスタイル --- */

/* レイヤー共通設定 */
.parallax-layer {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* マウスイベントを透過 */
    transition: transform 0.1s ease-out;
}

/* ① 最下層（タイトル＆日時場所） - 固定レイヤー */
.parallax-layer.layer-base {
    z-index: 1; /* 最下層 */
    flex-direction: column;
    justify-content: space-between;
    
    /* ★修正: パディングを調整して上下に詰める */
    padding: 20px 0 10px 0; 
}

.hero_title_base {
    font-size: 48px; 
    font-weight: 900;
    color: var(--color-accent);
    text-align: center;
    width: 100%;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 1), 0 0 10px rgba(255,255,255,0.8);
}

.top_static_info {
    width: 100%;
    text-align: center;
    /* ★修正: 下のマージンを詰める */
    margin-bottom: 5px; 
    z-index: 10;
}

.hero_date_place {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333333;
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 50px;
}

.hero_thanks {
    font-size: 3rem;
    font-weight: 900;
    color: #028b2d; 
    text-shadow: 1px 1px 0 #fff; 
    margin-bottom: 50px;
}

/* ② 奥（ロゴ） */
.layer-back {
    z-index: 2;
    /* ★修正: パディングボトムを追加してロゴを上に押し上げる */
    padding-bottom: 120px; 
}
.layer-back img {
    width: 60%;
    height: auto;
}

/* --- 手前（キャラ） --- */
.layer-front {
    z-index: 3;
    align-items: flex-end; 
    padding-bottom: 180px; 
}

.chars-group {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    
    /* gap は廃止し、マージンで制御します */
    /* gap: 0; */
    
    width: 100%;
    height: 100%;
}

.chars-group img {
    /* ★修正: 画像の幅を広げる (例: 25% -> 28%) */
    width: auto; 
    height: 60%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    
    /* ★修正: 画像同士を近づける/重ねる設定 */
    /* 隣り合う画像を少し重ねるためにネガティブマージンを設定 */
    margin-left: -2%; 
    margin-right: -2%;
    
    /* 重なり順序を制御（必要であれば） */
    position: relative;
    z-index: 1;
}

/* 真ん中のキャラを手前に出すなどの微調整（任意） */
.chars-group img:nth-child(2),
.chars-group img:nth-child(3) {
    z-index: 2; /* 両端より手前に表示 */
}

/* ====================================
   5. お知らせ (newssec) のスタイル
   ==================================== */

.newssec {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 30px;
    background-color: var(--color-bg-content);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.section_title {
    font-size: 32px;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 30px;
    padding-bottom: 5px;
    border-bottom: 4px solid var(--color-accent);
    display: inline-block;
    width: 100%;
}

.newsfield {
    text-align: left;
}

.news_list {
    list-style: none;
    border-top: 1px solid #ddd;
}

.news_item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.news_date_box {
    flex-shrink: 0;
    width: 120px;
    text-align: center;
}

.news_date {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-secondary-dark);
}

.news_content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding-right: 15px;
}

.news_category {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-bg-content);
    padding: 4px 10px;
    border-radius: 3px;
    background-color: var(--color-accent);
}

.news_title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text);
}

.news_content a:hover .news_title {
    color: var(--color-accent);
}

.news_more {
    margin-top: 30px;
}

.more_button {
    display: inline-block;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.more_button:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-content);
}

/* ====================================
   6. モーダルウィンドウ (News) のスタイル
   ==================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding-top: 60px;
}

.modal_content {
    background-color: var(--color-bg-content);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close_button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close_button:hover {
    color: #000;
}

#modalTitle {
    color: var(--color-accent);
    margin-bottom: 10px;
}

#modalCategoryDate {
    font-size: 14px;
    color: var(--color-secondary-dark);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#modalBody {
    line-height: 1.6;
    white-space: pre-wrap;
}

/* ====================================
   7. フェードインエフェクト
   ==================================== */

.fadein {
    opacity: 0;
    transition: opacity 1s, transform 1s;
    transition-timing-function: ease-out;
}

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

/* ====================================
   8. イベント概要 (About) のスタイル
   ==================================== */

.aboutsec {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 30px;
    background-color: var(--color-bg-content);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.about_content {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.about_text_block {
    flex-basis: 60%;
}

.about_text_block p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about_slideshow {
    flex-basis: 40%;
    position: relative;
    width: 100%;
    padding-top: 40%;
}

.slide_item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: block;
    border-radius: 8px;
}

.slide_item.fit-contain {
    object-fit: contain;
}

.is-active-slide {
    opacity: 1;
    z-index: 10;
}

/* ====================================
   8.5. 公式アンバサダー (Ambassador) のスタイル
   ==================================== */

.ambassadorsec {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 30px;
    background-color: var(--color-bg-content);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.ambassadorsec .section_title {
    width: 100%;
    margin-bottom: 30px;
}

.ambassador_item {
    width: 22%;
    min-width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 20px 10px 15px;
    background-color: var(--color-bg-content);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.ambassador_item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    cursor: pointer;
}

.ambassador_trigger {
    cursor: pointer;
    padding: 5px;
    border-radius: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: none;
}

.amb_setousayume,
.amb_udonnomiko,
.amb_sanakasakana,
.amb_yatsuyosui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.ambassador_item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ambassador_item img:first-child {
    max-height: 200px;
    width: auto;
    object-fit: contain;
}

.ambassador_item img:nth-child(2) {
    height: 60px;
    max-width: 180px;
    width: 100%;
    object-fit: cover;
}

/* ====================================
   8.6. アンバサダー ポップアップ
   ==================================== */

.ambassador_popup {
    display: none;
    position: fixed;
    z-index: 1010;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
    justify-content: center;
    align-items: center;
}

.ambassador_popup img {
    display: block;
    margin: 0 auto;
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    object-fit: contain;
    background-color: var(--color-bg-content);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.close_popup_btn {
    position: fixed;
    z-index: 1020;
    top: 5vh;
    right: 10vw;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close_popup_btn:hover {
    color: var(--color-accent);
}

/* ====================================
   9. フッター
   ==================================== */

footer {
    width: 100%;
    background-color: var(--color-subcolor);
    padding: 20px 20px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    font-size: 14px;
    color: var(--color-secondary-dark);
    font-weight: 500;
}

/* ====================================
   11. ハンバーガーメニュー (PCでは非表示)
   ==================================== */
.hamburger_btn,
.sp_nav {
    display: none;
}