/* ========================================
   Hero（メインビジュアル）
======================================== */
.hero { 
    padding: 60px 0 100px; 
    width: 100%; 
    overflow: hidden; 
    /* ★修正：背景色を白に変更 */
    background-color: #ffffff; 
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* --- 左側：メッセージ画像 --- */
.hero-message {
    width: 45%;
    position: relative;
    z-index: 2;
}
.hero-title { 
    margin: 0;
}
.hero-title img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block; 
}

/* --- 右側：ビジュアルエリア --- */
.hero-visual {
    width: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

/* ゆらゆら変形するメイン写真の枠（Blobアニメーション） */
.hero-image-blob {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    /* ★修正：周りの図形より「手前」に配置 */
    z-index: 2; 
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    /* 中央のフレームだけが変形し続けます */
    animation: morph 8s ease-in-out infinite alternate;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

@keyframes morph {
    0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 40% 60% 30% 70% / 40% 40% 60% 50%; }
}

/* 枠の中で画像をクロスフェードさせる設定 */
.fade-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fadeAnim 15s infinite;
}
.fade-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomAnim 15s infinite;
}

.fade-img:nth-child(1) { animation-delay: 0s; }
.fade-img:nth-child(1) img { animation-delay: 0s; }
.fade-img:nth-child(2) { animation-delay: 5s; }
.fade-img:nth-child(2) img { animation-delay: 5s; }
.fade-img:nth-child(3) { animation-delay: 10s; }
.fade-img:nth-child(3) img { animation-delay: 10s; }

@keyframes fadeAnim {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes zoomAnim {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* --- ★改修：まぜこぜカラーの装飾図形（個性分離＆奥行き表現） --- */
.hero-shape {
    position: absolute;
    /* ★修正：写真より「奥」に配置 */
    z-index: 1; 
    /* ★修正：共通の morph アニメーションと border-radius を削除 */
    
    /* 色が混ざる設定（乗算）。白背景でより綺麗に発色します */
    mix-blend-mode: multiply;
    opacity: 0.7; /* 白背景に合わせて少し濃く調整 */
}

/* ロゴカラーの定義 */
:root {
    --maze-green: #8cc63f;
    --maze-blue: #84D2E5;
    --maze-purple: #9e7bc1;
    --maze-yellow: #F7D070;
}

/* ★改修：各色の図形に異なる「形（個性）」と複雑な「まぜこぜ軌道」を設定 */

/* ① 緑（左上：湘南）：固有の形＝楕円 */
.shape-green {
    width: 120px; height: 100px;
    border-radius: 50%; /* 楕円 */
    background-color: var(--maze-green);
    top: 5%; left: 5%;
    /* 移動アニメーションのみを適用 */
    animation: floatGreen 18s ease-in-out infinite alternate;
}
@keyframes floatGreen {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    25%  { transform: translate(150px, 100px) rotate(90deg) scale(1.1); }
    50%  { transform: translate(80px, 250px) rotate(180deg) scale(1); }
    75%  { transform: translate(-100px, 150px) rotate(270deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

/* ② 水色（右上：まぜ）：固有の形＝歪んだ四角 */
.shape-blue {
    width: 160px; height: 140px;
    border-radius: 20px 50px 30px 40px; /* 歪んだ四角 */
    background-color: var(--maze-blue);
    top: 10%; right: -5%;
    animation: floatBlue 20s ease-in-out infinite alternate;
}
@keyframes floatBlue {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    25%  { transform: translate(-150px, 150px) rotate(-90deg) scale(1.15); }
    50%  { transform: translate(50px, 300px) rotate(-180deg) scale(1); }
    75%  { transform: translate(150px, 200px) rotate(-270deg) scale(0.85); }
    100% { transform: translate(0, 0) rotate(-360deg) scale(1); }
}

/* ③ 紫（左下：こぜ）：固有の形＝三角形っぽい角丸 */
.shape-purple {
    width: 110px; height: 110px;
    border-radius: 50% 10% 50% 50%; /* 三角形っぽい角丸 */
    background-color: var(--maze-purple);
    bottom: 15%; left: 0%;
    animation: floatPurple 22s ease-in-out infinite alternate;
}
@keyframes floatPurple {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    25%  { transform: translate(100px, -100px) rotate(90deg) scale(0.9); }
    50%  { transform: translate(250px, -50px) rotate(180deg) scale(1); }
    75%  { transform: translate(150px, 100px) rotate(270deg) scale(1.1); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

/* ④ 黄色（右下：計画）：固有の形＝大きめの不規則な丸 */
.shape-yellow {
    width: 190px; height: 170px;
    border-radius: 40% 60% 70% 30% / 50% 60% 30% 60%; /* 不規則な丸 */
    background-color: var(--maze-yellow);
    bottom: -5%; right: 5%;
    animation: floatYellow 25s ease-in-out infinite alternate;
}
@keyframes floatYellow {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    25%  { transform: translate(-150px, -100px) rotate(-90deg) scale(1.1); }
    50%  { transform: translate(-220px, 100px) rotate(-180deg) scale(1); }
    75%  { transform: translate(-100px, 200px) rotate(-270deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(-360deg) scale(1); }
}


/* ========================================
   Activities 
======================================== */
.activity-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    row-gap: 40px;
}

/* カード本体の装飾 */
.activity-item { 
    width: calc((100% - 75px) / 4);
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}
.activity-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(253, 210, 43, 0.25);
}
.activity-item:hover::after {
    height: 10px;
}

.activity-item .img-wrap {
    overflow: hidden; 
    position: relative; 
}
.activity-item img { 
    width: 100%; 
    aspect-ratio: 4/3; 
    object-fit: cover;
    transition: transform 0.6s ease;
}

.activity-item .img-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(253, 210, 43, 0.7);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.activity-item .img-wrap::after {
    content: '詳しく見る';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.05em;
    opacity: 0;
    z-index: 2;
    transition: all 0.4s ease;
}

.activity-item:hover img {
    transform: scale(1.08); 
}
.activity-item:hover .img-wrap::before {
    opacity: 1;
}
.activity-item:hover .img-wrap::after {
    opacity: 1;
    transform: translate(-50%, -50%); 
}

.activity-item .text-wrap {
    padding: 25px 15px;
    text-align: center;
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-item h3 { 
    color: var(--color-secondary); 
    font-size: 16px; 
    font-weight: bold; 
    position: relative;
    display: inline-block; 
    padding: 0 15px;
}
.activity-item:hover h3::before { transform: translate(-5px, -50%); }
.activity-item:hover h3::after { transform: translate(5px, -50%); }

/* ========================================
   News
======================================== */
.news-list { border-top: 1px solid #ddd; }
.news-list li { border-bottom: 1px solid #ddd; }
.news-list a {
    display: flex;
    align-items: center;
    padding: 25px 15px;
    transition: background-color 0.3s ease;
    position: relative;
}
.news-list a:hover {
    background-color: #fff;
}
.news-meta { display: flex; align-items: center; }
.news-date { width: 130px; font-size: 14px; color: #666; font-family: Arial, sans-serif;}
.news-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 30px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    margin-right: 30px;
    width: 100px;
    text-align: center;
}
.tag-green { background-color: #8cc63f; }
.tag-purple { background-color: #9e7bc1; }
.tag-yellow { background-color: #fdd22b; }
.news-text { flex: 1; font-size: 15px; font-weight: 500; }
.news-list a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-primary);
    border-right: 2px solid var(--color-primary);
    transform: rotate(45deg);
    margin-left: 15px;
    transition: transform 0.3s ease;
}
.news-list a:hover::after {
    transform: rotate(45deg) translate(3px, -3px); 
}

/* ========================================
   About
======================================== */
.about-content { display: flex; gap: 60px; align-items: center; }
.about-text { flex: 1; }
.about-desc { margin-bottom: 40px; font-size: 16px; }
.about-info { 
    display: flex; 
    flex-wrap: wrap; 
    font-size: 15px; 
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.about-info dt { width: 95px; font-weight: bold; margin-bottom: 13px; color: var(--text-brown); }
.about-info dd { width: calc(100% - 95px); margin-bottom: 15px; }
.about-image { width: 45%; }
.about-image img { border-radius: 20px; width: 100%; box-shadow: var(--shadow-sm); }


/* ========================================
   スマートフォン・タブレット用対応
======================================== */
@media screen and (max-width: 768px) {
    .section-inner { padding: 70px 5%; }
    .sec-title { font-size: 26px; margin-bottom: 40px; }
    
    .header {
        padding: 15px 0;
    }
    .logo img { height: 60px; }
    
    .hamburger {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 102;
    }
    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #555;
        transition: all 0.3s;
    }
    .hamburger span:nth-of-type(1) { top: 0; }
    .hamburger span:nth-of-type(2) { top: 9px; }
    .hamburger span:nth-of-type(3) { bottom: 0; }
    
    .hamburger.is-active span:nth-of-type(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.is-active span:nth-of-type(2) { opacity: 0; }
    .hamburger.is-active span:nth-of-type(3) { transform: translateY(-9px) rotate(-45deg); }

    .global-nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 101;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .global-nav.is-active { right: 0; } 
    .global-nav ul { flex-direction: column; gap: 40px; text-align: center; }
    .global-nav a { font-size: 18px; }

    /* スマホ版のヒーローエリアを縦並びに */
    .hero { 
        padding: 40px 0 60px; 
        /* ★修正：スマホ版背景色も白に */
        background-color: #ffffff;
    }
    .hero-inner {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .hero-message {
        width: 100%;
    }
    .hero-title img { 
        max-width: 350px; 
        margin: 0 auto;
    }
    .hero-visual {
        width: 100%;
        min-height: 350px;
    }
    .hero-image-blob {
        max-width: 90%;
        z-index: 2; /* 写真が手前 */
    }
    /* スマホ版の装飾図形調整 */
    .hero-shape {
        opacity: 0.5; /* スマホでは少し薄く */
    }
    .shape-green { width: 80px; height: 60px; top: -10px; left: -10px; }
    .shape-blue { width: 100px; height: 80px; top: 0; right: -20px; }
    .shape-purple { width: 70px; height: 70px; bottom: 20px; left: -10px; }
    .shape-yellow { width: 120px; height: 100px; bottom: -10px; right: -10px; }

    .activity-grid { 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 15px; 
        row-gap: 25px; 
    }
    .activity-item { 
        width: calc((100% - 15px) / 2);
    }
    .activity-item .text-wrap { padding: 15px 10px; }
    .activity-item h3 { font-size: 14px; }

    .news-list a { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 10px; }
    .news-meta { width: 100%; display: flex; align-items: center; }
    .news-tag { margin-right: 0; }
    .news-list a::after { display: none; } 
    
    .about-content { flex-direction: column-reverse; gap: 40px; }
    .about-image { width: 100%; }
    .about-info { padding: 20px; }
    .about-info dt { width: 80px; }
    .about-info dd { width: calc(100% - 80px); }
    
    .footer-nav ul { gap: 20px; flex-direction: column; align-items: center;}

    html {
        overflow-y: scroll; 
    }
}

/* =========================================
   オープニングアニメーション用スタイル
========================================= */
.opening-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fdfaf0; 
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s ease-out, visibility 1s ease-out;
    overflow: hidden;
}

.opening-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.maze-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.maze-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); 
    opacity: 0.35;       
    mix-blend-mode: multiply;
}

.blob-green { width: 450px; height: 450px; background-color: #b5d580; top: -50px; left: -50px; animation: bgFloat1 14s ease-in-out infinite alternate; }
.blob-blue { width: 500px; height: 500px; background-color: #84D2E5; top: -100px; right: -50px; animation: bgFloat2 12s ease-in-out infinite alternate; }
.blob-purple { width: 400px; height: 400px; background-color: #c090c0; bottom: -50px; left: 0px; animation: bgFloat3 15s ease-in-out infinite alternate; }
.blob-yellow { width: 480px; height: 480px; background-color: #f6c544; bottom: -80px; right: -50px; animation: bgFloat4 11s ease-in-out infinite alternate; }

@keyframes bgFloat1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(25px, 25px) scale(1.05); } }
@keyframes bgFloat2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-25px, 15px) scale(1.1); } }
@keyframes bgFloat3 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(20px, -20px) scale(1.05); } }
@keyframes bgFloat4 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-20px, -30px) scale(1.15); } }

.opening-message, .opening-logo, .skip-btn {
    z-index: 10;
}

.opening-message {
    position: absolute;
    width: 90%;
    max-width: 650px;
    text-align: center;
    transition: opacity 1s ease-out;
}

.op-text {
    color: #444;
    font-size: 1.15rem;
    line-height: 2.2;
    letter-spacing: 0.1em;
    font-weight: bold;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}
.op-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.opening-logo {
    position: absolute;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}
.opening-logo img {
    width: 280px;
    height: auto;
}
.opening-logo.is-visible {
    opacity: 1;
    transform: scale(1);
}

.skip-btn {
    position: absolute;
    top: 30px; right: 40px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.skip-btn:hover { background: #fff; color: #333; }

@media screen and (max-width: 768px) {
    .op-text { font-size: 0.95rem; line-height: 1.9; margin-bottom: 30px; }
    .opening-logo img { width: 220px; }
    .skip-btn { top: 20px; right: 20px; font-size: 0.85rem; padding: 6px 15px; }
    .maze-blob { filter: blur(50px); opacity: 0.25; }
    .blob-green { width: 250px; height: 250px; }
    .blob-blue { width: 300px; height: 300px; }
    .blob-purple { width: 250px; height: 250px; }
    .blob-yellow { width: 280px; height: 280px; }
}

.news-empty {
    text-align: center;
    color: #777777;
}