@charset "UTF-8";

*{
    margin:0;
    padding:0;
}

p{
    line-height:1.8;
}


html{
    font-family: "Kiwi Maru", serif;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3000; /* mainコンテンツより手前に表示 */
    pointer-events: none;
}

header .logo{
    width:10%;
    position:absolute;
    top: 20px;
    left: 60px;
    z-index: 100; /* スライダーより手前に表示 */
}
header a{
    text-decoration: none;
    color: #41320c;

}

.mainvisual{
    width: 80%;
    /* height: 100vh; */
    margin-left: auto;
    position:fixed;
    top:0;
    right:0;    
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.mainvisual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left; /* 画像の右側を基準に表示 */
    opacity: 0;
    animation: fadeIn 1.5s ease 0.5s forwards;
}

.mainvisual p{
    font-family: "Zen Maru Gothic", sans-serif;;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem); /* AguRokkaの文字サイズをさらに大きく調整 */
    /* font-size: clamp(1.5rem, 4vw, 3rem); */
    /* font-size: clamp(1.2rem, 3vw, 2.5rem); 画面幅に応じて文字サイズを調整（少し小さく） */
    font-weight: 500;
    color:#fff;
    position:absolute;
    top: 20%; /* 画像の上から20%の位置に調整 */
    right: 3%; /* 画像の右から5%の位置 */
    /* top: 20%; */
    /* right: 5%; */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* 文字の視認性を上げるための影 */
}

.mainvisual p span {
    /* display: block; 改行させる */
    display: block;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}
.mainvisual p span:nth-child(1) {
    animation-delay: 2s; /* 1行目の出現タイミング */
    animation-delay: 2s;
}
.mainvisual p span:nth-child(2) {
    animation-delay: 4s; /* 2行目の出現タイミング（2秒遅らせる） */
    animation-delay: 4s;
    letter-spacing: 1px;
}

.mainvisual-highlight{
    font-size:59px;
}
.mainvisual img {
    width: 100%;
    height: auto;
}
#active{
    background-color:  #eaf5ea; 

}
#why {
    background-color: #f0f8f0; /* 薄い緑色 */
}
/* 波線での装飾 */
#active,
#why {
    position: relative;
    overflow: visible;
    padding-top: 10rem;
    padding-bottom: 10rem; 
    z-index: 1; 
}
#active h2,
#why h2 {
    padding-top: 0;
}
#active::before,
#why::before,
#active::after,
#why::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px; 
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
/* #activeの波の色 */
#active::before,
#active::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3e%3cpath fill='%23eaf5ea' fill-opacity='1' d='M0,32L48,37.3C96,43,192,53,288,53.3C384,53,480,43,576,37.3C672,32,768,32,864,37.3C960,43,1056,53,1152,58.7C1248,64,1344,64,1392,64L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3e%3c/path%3e%3c/svg%3e");
}
/* #whyの波の色 */
#why::before,
#why::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3e%3cpath fill='%23f0f8f0' fill-opacity='1' d='M0,32L48,37.3C96,43,192,53,288,53.3C384,53,480,43,576,37.3C672,32,768,32,864,37.3C960,43,1056,53,1152,58.7C1248,64,1344,64,1392,64L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3e%3c/path%3e%3c/svg%3e");
}        
/* 上の波 */
#active::before,
#why::before {
    top: 0;
    transform: translateY(-100%) rotate(180deg);
}        
/* 下の波 */
#active::after,
#why::after {
    bottom: 0;
    transform: translateY(100%);
}




        /* @keyframes zoomUp {
            0% { transform: scale(1); }
            100% { transform: scale(1.15); }
        }
        .mainvisual .slider li {
            overflow: hidden;
        }
        .mainvisual .slider .slick-active img {
           
        
            animation: zoomUp 10s linear 0s normal both;
        } */

        /* .line-back内の画像アニメーション */
        .line-back img {
            display: flex;
            flex-direction: column;
            opacity: 0;
            max-width: 800px; 
            width: 100%;
            /* margin: 10px auto;  */
            /* border-radius: 20px;
            box-shadow:0 4px 10px rgba(0,0,0,.2); */

        }
        .line-back img.with-transition {
            transition: all 1.5s ease; /* アニメーション時間を調整 */
        }
        .line-back img .active:nth-child(1) {
            opacity:1;
            transform: translateX(-120px); /* 1枚目は左から */
        }
        .line-back img:nth-child(2) {
            opacity:0;
            transform: translateX(120px); 
            transition-delay: 0.5s; 
            margin-left:10rem;
        }
        .line-back img.active {
            opacity: 1;
            transform: translate(0);
            /* margin-top:2rem; */
            padding-left:20rem;
        }

        /* メンバー紹介スライダーの矢印を内側に */
        .peaples .slick-prev {
            left: 30px;
            z-index: 1;
        }
        .peaples .slick-next {
            right: 30px;
            z-index: 1;
        }



/* ナビゲーションエリア */
nav{
    position: absolute;
    width: 10%; /* 左の余白部分の幅 */
    left: 3%;
    top: 48%;
    transform: translateY(-50%);
    background: #f7f7f1; /* 背景色を追加 */
    padding: 20px;       /* 内側の余白 */
    border-radius: 20px; /* 角丸 */
    z-index: 100; /* スライダーより手前に表示 */
    pointer-events: auto;
}
nav ul {
  display: flex;
  flex-direction: column; /* 縦並びにする */
  align-items: center;
  gap: 0; /* 線を入れるためgapはリセット */
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}
nav ul li{
    width: 100%;
    margin: 0;
    padding: 15px 0; /* 上下の間隔 */
    border-bottom: 1px solid #ccc; /* 区切り線 */
    text-align: center;
    list-style: none;
}
nav ul li a {
    text-decoration: none;
    color: #41320c;
    padding-bottom: 5px;
}

        /* ナビゲーションのホバーエフェクト */
        nav ul li a {
            position: relative;
            text-decoration: none;
            display: inline-block;
            padding-bottom: 5px;
        }

        /* 下線 */
        nav ul li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #28a745; /* 緑色 */
            transition: width 0.4s ease;
        }

        nav ul li a:hover::after {
            width: 100%;
        }

        /* 芽（葉っぱ） */
        nav ul li a::before {
            content: '';
            position: absolute;
            bottom: 0; /* 線の高さに合わせる */
            left: 100%; /* 線の右端（終点）に配置 */
            width: 12px;
            height: 12px;
            background-color: #28a745;
            border-radius: 100% 0;
            transform: rotate(0deg) scale(0);
            transform-origin: bottom left;
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
            transition-delay: 0.3s;
            opacity: 0;
            margin-left: -2px; /* 線と少し重ねてつながりを自然にする */
        }

        nav ul li a:hover::before {
            transform: rotate(0deg) scale(1);
            opacity: 1;
        }



.maru{
    position: fixed;
    bottom: 20px;
    right: 20px; /* 右端から少し離す */
    width: 120px; /* ボタンのサイズを固定 */
    height: 120px;
    z-index: 100; /* スライダーより手前に表示 */
    background-color: #f2c2c9; /* 控えめなピンク色に変更 */
    border: 5px dotted #ffffff; /* 白い点線で可愛らしい花の形に */
    border-radius: 50%; /* 正円にする */
    color: #5e2d36; /* ピンクに馴染む濃い赤茶色に変更 */
    text-shadow: none; /* 影を消してフラットに */
    font-weight: bold;
    font-size: 1.2rem; /* 文字サイズを少し大きく */
    line-height: 1.3;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 0;
    /* シャボン玉のようにふわふわ動くアニメーション */
    animation: bubble-float 6s ease-in-out infinite;
    box-shadow: 0 0 0 5px #f2c2c9, 0 5px 15px rgba(0, 0, 0, 0.15); /* 外枠を本体と同じ色にして、ポップな花のバッジ風に */
    text-decoration: none; /* リンクの下線を消す */
    transition: all 0.3s ease; /* ホバー時のアニメーション */
}
.maru:hover {
    background-color: #e6aeb6; /* ホバー時は少し濃く */
    box-shadow: 0 0 0 5px #e6aeb6, 0 8px 20px rgba(0, 0, 0, 0.2); /* 外枠の色も合わせる */
    transform: scale(1.05); /* 少し拡大 */
}


/* .touroku{
    text-orientation: upright;
    position:fixed;
    bottom: 40px;
    right: 150px;
    z-index: 100; 
} 
 */


main{
    /* スタイルを#versionセクションに移動 */
    margin-top: 100vh; /* ファーストビューの高さ(100vh)に合わせる */
    position: relative;
    /* z-index: 10; */
    /* z-index: 2; */
overflow: clip;
}
h1 {
    font-size: 3rem;
}

#version{
    padding-top:6rem;
    background-color: #f7f7f1;
    border-radius: 60% 60% 0 0 / 500px 500px 0 0;
    box-shadow: none;

    /* margin-top: -15vh;  */
    /* padding-top: 15vh;  */
    padding-bottom: 8rem; 
}
/* 背景色が設定されていないセクションの背景を維持 */
.slider-wrapper, #member, section[id="＃AgRokka"] {
    background-color: #f7f7f1;
    /* background-color: #eaf2e5; 波セクションと同じ色に統一 */
}
.agu{
    /* line-height: 2.5; */
    font-size:22px;
}
.setumei{
    line-height: 2.3;
}
#version span{
    font-size: 18px;
}

/* #version内の要素を順番に表示 */
#version h2 {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 2s ease-out 0.5s, transform 2s ease-out 0.5s; /* ゆっくり表示 */
}
#version p {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 2s ease-out 1.2s, transform 2s ease-out 1.2s; /* さらに遅れてゆっくり表示 */
}

/* JSでis-visibleクラスが付与されたらアニメーション開始 */
#version.is-visible h2,
#version.is-visible p,
#version.is-visible .mauntain {
    opacity: 1;
    transform: translateY(0);
}

main h1,h2{
        color:#7fbf37;
        text-align: center;
}
/* インスタグラムのタイトルをグラデーションにする */
#instagram h2 {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}


h1,p{
    text-align: center;
}
.slider{
    position:relative;
    width:100%;
    height:90vh;
}
.slider li{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    opacity:0;/*デフォルトで消しとく*/
    transition: opacity 2s ease-in-out; /* ふわっと切り替わる設定 */
}

.slider li.is-active{
    opacity:1;/*表示*/
    z-index: 1;
}

.sliders{
    overflow: hidden;
}
/* アクティブな時に画像を拡大するアニメーション */
.slider li.is-active img {
    animation: zoomUp 8s linear forwards;
}

@keyframes zoomUp {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); } /* 1.15倍までゆっくり拡大 */
}
.slider img{
    object-fit: cover;
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}
/*山の画像の配置*/
.mauntain{
    width:500px;
    /* position: absolute; */
    /* left: 850px; */
    bottom:70px;
    /* padding: right 100px; */
    display: block;
    /* width: 400px; */
    max-width: 100%;
    margin: 2rem 0 0 0; /* 左寄せに変更 */
    position: relative;
    z-index: 5;
    
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 3.5s ease-out 1.9s, transform 3.5s ease-out 1.9s; /* 最後にゆっくり表示 */
    /* overflow: hidden; */
    padding-left: 60rem;
}
img .mauntain{
    overflow: hidden;
}
/* メンバー紹介とインスタグラムセクションの余白 */
#member,
#instagram {
    padding-top: 5rem;
    padding-bottom: 8rem; 
}



 .enjoy{
    line-height:2.5;
 }
h1{
    padding-bottom:5rem;
}
h2{
    padding-top:10rem;
    padding-bottom:3rem;
    font-size: 32px;
    margin-bottom: 4rem;

}
h3{
    font-size: 22px;
}
p{
    font-size: 16px;
}
#version p{
    padding-bottom:3rem;
}
/* span{
    font-size: 80px;;
} */
rt{
    font-size: medium;
}
@keyframes slider-1 {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  4.16% {
    opacity: 1;
  }
  33.33% {
    opacity: 1;
  }
  41.66% {
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
  opacity: 0;
  }
}

/* 登録ボタンのアニメーション（シャボン玉風） */
@keyframes bubble-float {
    0% {
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-15px) scale(1.03);
    }
    50% {
        transform: translateY(0px) scale(0.98);
    }
    75% {
        transform: translateY(-7px) scale(1.02);
    }
    100% {
        transform: translateY(0px) scale(1);
    }
}

/* スクロールでふわっと表示させるためのアニメーション定義 */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline{
    width:800px;
    margin:0 auto;
    position:relative;

}
.item-left-text p{
    text-align: left;
    padding-top:10px;
}
.item-left-text{
    background-color: #eaf5ea;
    padding-left: 40px;
}
 .sen{
    width:1px;
    height:100%;
    position:absolute;
    top:0;
    left:50%;
    background-color:#aaa;
    z-index:10;
 }

.top,
.second,
.third{
    display: flex;
    /* width:500px; */
    color:#41320c;
    /* justify-content: left; */
    z-index: 20;
    margin:0 auto;
    margin-top: 100px;
    position:relative;
}
.top-inner,
.second-inner,
.third-inner{
    display: flex;
    column-gap: 40px;
}
.second-inner{
    padding-top:20px;
}
.second{
    justify-content: flex-end;
}
.second,
.third{
    background-color: #eaf5ea;
    min-height: 200px;
}
.timeline img{
    width:240px;
    border-radius: 6px;;
}
/*ループスライダー*/
.slide{
    display: flex;
    width:100vw;
    height:200px;
    overflow: hidden;

    img {
        width:auto;
        height:100%;

        &:first-child {
            animation: slide1 60s -30s linear infinite;
        }
        &:last-child {
            animation: slide2 60s linear infinite;
        }
    }
}

@keyframes slide1 {
  0% {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes slide2 {
  0% {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200%);
  }
}
.peaples{
    width:100%;
    margin:0 auto;
    /* display: flex; */
}
/*メンバーカードのデザイン*/
.peaple{
    width:360px;
    background-color: #fff;
    border-radius:32px;
    display: flex;
    flex-direction: column;
    gap:16px;
    padding:24px;
    margin: 2rem 3rem; /* 上下に余白を追加して、拡大時に切れないようにする */
    transition: transform 0.3s; /* アニメーション設定 */
    transform: scale(0.9); /* 通常時は少し小さく */
    position: relative; /* 靄をかけるための基準位置 */

    /* background-color: #fff; */
    /* border-radius: 20px; */
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* ふんわりとした影 */
    /* padding: 2rem; */
    /* margin: 20px 15px; スライダーの余白調整 */
    text-align: center; /* 全体を中央揃えベースに */

}
/* メンバーの顔写真 */
.peaple > img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 5px solid #f0f8f0; /* テーマカラーの枠線 */
}
/* 名前とSNSアイコン */
.member-header {
    display: flex;
    justify-content: flex-end; /* アイコンを右端に寄せる */
    align-items: center;
    gap: 0.5rem; /* アイコン同士の間隔 */
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed #e0e0e0; /* 点線で区切る */
    position: relative; /* h3を中央配置するための基準 */
    min-height: 2rem; /* 高さを確保 */
}
.member-header .Instagram {
    width: 24px;
    height: auto;
    display: block;
}






.morimoto,.matunaga{
    width: 100%;
    /* height: 240px;*/
    object-fit: cover;
    border-radius: 20px;
}
.member-header h3{
font-size: 24px;
  /* font-weight: bold; */

  position: absolute; /* 絶対配置で中央へ */
  left: 50%;
  transform: translateX(-50%);
  /* font-size: 1.25rem; */
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
  white-space: nowrap; /* 名前が折り返されないようにする */

}
.member-header span{
    font-size:small;
}
.member-text {
    text-align: left; /* テキストは左寄せ */
    font-size: 0.95rem;
}

.member-text span{
    font-size:large;
}
.member-text p{
    padding:0.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #555;
}
/* スライダーのドット（丸）の位置をカードから離す */
.slick-dots {
    bottom: -50px !important;
}
/* スライダーの影が見切れないように調整 */
.slick-list {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}
/* 真ん中のスライドを最前面に */
.slick-center {
    z-index: 10;
    position: relative;
}
.peaple.slick-center {
  transform: scale(1.1); /* 真ん中に来た時は大きく */
  z-index: 1; /* 重なり順を手前に */
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

        /* main: ファーストビューの要素より手前に表示 */
        main {
            position: relative;
            z-index: 10;
        }
        /* nav: mainコンテンツより手前に表示 */
        /* nav {
            z-index: 9999 !important;
        } */
        /* hamburger: すべての要素の最前面に表示 */
        /* .hamburger {
            z-index: 10000 !important;
        } */


/* 左右のスライドに白い靄をかける */
.peaple::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6); /* 白い半透明の膜 */
    border-radius: 32px;
    pointer-events: none; /* 下のリンクなどをクリックできるように */
    transition: opacity 0.3s ease;
    z-index: 10;
}
/* 中央のスライドだけ靄を消す */
.peaple.slick-center::after {
    opacity: 0;
}
.peaple li{
    list-style: none;
}
.peaple ul{
    padding:1rem;
}
.peaple h3{
    border-bottom:solid #135720 1px;
    padding:0.5rem;

}
/* カード内のテキストを左揃えにする */
.peaple p {
    text-align: left;
}
.peaple .Instagram{
    width:30px;
}
.h3 .Instagram{
    display: flex;
}
#instagram {
  padding: 100px 20px;
  background: #fdfcf8; /* 背景を少し明るく温かみのある色に */
  text-align: center;
  margin-bottom:2rem;
}

.insta-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* レスポンシブなグリッド */
  gap: 40px; /* ポラロイド風にするため間隔を広げる */
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* ポラロイド風のデザイン */
.insta-grid a {
    display: block;
    background: #fff;
    padding: 12px 12px 45px 12px; /* 下の余白を広くしてポラロイドっぽく */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* ふんわりした影 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 弾むようなアニメーション */
    text-decoration: none;
    transform: rotate(0deg);
}

.insta-grid img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形にトリミング */
    object-fit: cover;
}

/* ランダムに傾ける（擬似的に） */
.insta-grid a:nth-child(odd) { transform: rotate(-2deg); }
.insta-grid a:nth-child(even) { transform: rotate(2deg); }
.insta-grid a:nth-child(3n) { transform: rotate(1deg) translateY(10px); }

/* ホバー時の動き */
.insta-grid a:hover {
    transform: scale(1.1) rotate(0deg); /* 拡大して真っ直ぐに */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* 影を濃くして浮き上がり感を強調 */
    z-index: 10;
}

/* item2（ロゴ部分）はポラロイド風スタイルを解除 */
.insta-grid .item2 {
    background: none;
    padding: 0;
    box-shadow: none;
    transform: none !important; /* 回転を無効化 */
}
.insta-grid .item2:hover {
    background: none;
    box-shadow: none;
    transform: scale(1.1) !important; /* 拡大のみ */
}

/* item2（葉っぱ）だけ余白を入れて小さく表示 */
.insta-grid .item2 img {
    padding: 20%;
    box-sizing: border-box;
    object-fit: contain;
    animation: floating 3s ease-in-out infinite;
}

.lines{
    /* text-align: center; */
    display: flex;
    flex-direction: column;
}
/* .lines{
    position:relative;
    top:0;
    left:20%;
} */
.line-back{
    width:800px;
}
.green {
    padding-left: 300px;
    width:500px;
    margin:0 auto;
}
.form p{
    background-color: #135720;
    border-radius: 20px;;
    color:#fff;
    width:max-content;
    padding:10px;
    margin:auto;
}

footer{
    position: relative;
    background-color: #e6dccb; /* 土っぽい背景色 */
    /* padding: 60px 20px; 上下の余白を調整 */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* ロゴとコピーライトの間隔 */
    border-radius: 0; /* 丸みを削除 */
    overflow: visible; /* 波がはみ出しても表示されるように */
}

footer p{
    padding-bottom: 1rem;
}

/* フッター上部の波線（SVGで滑らかな波） */
footer::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px; /* 波の高さ */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3e%3cpath fill='%23e6dccb' fill-opacity='1' d='M0,32L48,37.3C96,43,192,53,288,53.3C384,53,480,43,576,37.3C672,32,768,32,864,37.3C960,43,1056,53,1152,58.7C1248,64,1344,64,1392,64L1440,64L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3e%3c/path%3e%3c/svg%3e");
    top: 0;
    transform: translateY(-100%) rotate(180deg);
}

footer img{
    width: 100px; /* ロゴをもっと大きく */
    cursor: pointer;
}

/* フッター内のナビゲーションリンク */
footer ul {
    display: flex;
    justify-content: center;
    gap: 2rem; /* リンク同士の間隔 */
    list-style: none;
    padding: 0;
    margin: 10px 0;
    flex-wrap: wrap; /* スマホで折り返せるように */
}
footer ul li a {
    text-decoration: none;
    color: #41320c;
    font-weight: bold;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}
footer ul li a:hover {
    opacity: 0.6; /* ホバー時に少し薄く */
}

/* フッターSNSアイコン */
.footer-sns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0; /* 横並びにするためマージンを削除 */
}
/* ロゴとSNSを横並びにするためのラッパー */
.footer-row {
    display: flex;
    align-items: center;
    gap: 30px; /* ロゴとSNSの間隔 */
}
.footer-sns a {
    display: block;
    width: 32px; /* アイコンサイズ */
    transition: transform 0.3s ease;
}
.footer-sns a:hover {
    transform: scale(1.1); /* ホバー時に少し拡大 */
}
.footer-sns img {
    width: 100%; /* ロゴのスタイル(width: 200px)を上書き */
    height: auto;
}

footer .copyright {
    font-size: 12px;
    color: #41320c;
    margin: 0;
}

/* ページトップへ戻るボタン */
#page_top {
    position: fixed;
    bottom: 160px; /* 登録ボタンの上に配置 */
    right: 20px;
    z-index: 90; /* 登録ボタンより下、スライダーより上 */
}
#page_top a {
    display: block;
    width: 40px;
    height: 60px; /* 縦長にしてスタイリッシュに */
    background-color: transparent; /* 背景色なし */
    border-radius: 0;
    text-decoration: none;
    position: relative;
    box-shadow: none;
    opacity: 0.6; /* 少し透けさせる */
    transition: opacity 0.3s, transform 0.3s;
}
#page_top a:hover {
    opacity: 1;
    transform: translateY(-5px); /* ホバー時に少し浮く */
}
#page_top a::before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 2px solid #135720; /* テーマカラーの線 */
    border-right: 2px solid #135720;
    transform: rotate(-45deg); /* 上向き矢印 */
    position: absolute;
    top: 0;
    left: 14px;
}
/* 矢印の棒線を追加 */
#page_top a::after {
    content: "";
    width: 1px;
    height: 50px;
    background-color: #135720;
    position: absolute;
    top: 0;
    left: 20px;
}

/* スライダーの矢印カスタマイズ */
.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px !important;
    height: 50px !important;
    background-color: #135720 !important; /* サイトのテーマカラー（濃い緑） */
    border-radius: 50% !important; /* 丸くする */
    z-index: 100 !important;
    cursor: pointer;
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 0; /* デフォルトの文字（Previousなど）を隠す */
    border: none;
    opacity: 0.8; /* 少し透けさせる */
    transition: opacity 0.3s;
}

.slick-prev:hover,
.slick-next:hover {
    opacity: 1; /* ホバー時はくっきり */
}

/* 矢印のマーク（白線で描画） */
.slick-prev::before,
.slick-next::before {
    content: "" !important;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff; /* 白い線 */
    border-right: 3px solid #fff;
    display: block;
}

.slick-prev::before {
    transform: rotate(-135deg); /* 左向き */
    margin-left: 5px; /* 真ん中に見えるように微調整 */
}

.slick-next::before {
    transform: rotate(45deg); /* 右向き */
    margin-right: 5px; /* 真ん中に見えるように微調整 */
}

/* 矢印の位置 */
.slick-prev {
    left: 10px; /* 左端からの距離 */
}
.slick-next {
    right: 10px; /* 右端からの距離 */
}


/* スライダーの高さを揃える設定 */
.peaples .slick-track {
    display: flex;
    align-items: stretch;
}
.peaples .slick-slide {
    height: auto;
    display: flex; /* 子要素(.peaple)の高さを揃えるため */
    justify-content: center;
}

/* ============================================
   Hamburger Menu 
   ============================================ */
.hamburger {
    display: none; /* PCでは非表示 */
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 200; /* ナビゲーションより手前 */
    flex-direction: column;
    justify-content: space-between;
    pointer-events: auto;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #41320c;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* スクロールでふわっと表示させる共通クラス */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}
.fade-up.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ対応(スマホサイズ)*/

@media screen and (max-width: 768px) {
    /* 活動内容セクションのスマホレイアウトをPC版に近づける */
    #active .timeline-inner .top-inner,
    #active .timeline-inner .second-inner,
    #active .timeline-inner .third-inner {
        display: flex;
        flex-direction: row; /* 横並びを維持 */
        align-items: center;
        gap: 1rem; /* 要素間のスペース */
    }

    .maru{
        width:100px;
        height:100px;
    }

    #active .timeline-inner .item,
    #active .timeline-inner .item-left-text {
        min-width: 0; /* flexアイテムの縮小を許可 */
    }

    #active .timeline-inner .item { /* 画像コンテナ */
        flex: 2; /* 画像の幅の比率を2に設定 */
    }
    #active .timeline-inner .item-left-text { /* テキストコンテナ */
        flex: 3; /* テキストの幅の比率を3に設定し、より多くのスペースを確保 */
        text-align: left !important; /* スマホ表示ではすべて左寄せにする(強制) */
    }

    #active .timeline-inner .item-left-text p {
        font-size: 0.75rem; /* テキストサイズを調整 (12px相当) */
        line-height: 1.5;
        margin: 0.5em 0;
        word-break: break-all; /* 長い単語がはみ出るのを防ぐ */
        text-align: left !important; /* p要素自体に右寄せが指定されている場合に備えて強制的に左寄せ */
    }

    #active .timeline-inner .item img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* .line-backの画像をスマホで収まるように調整 */
    #why .lines {
        display: block;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    #why .lines .green {
        max-width: 100%;
        height: auto;
        margin: 0 auto 20px;
    }
    #why .line-back {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 30px;
    }
    #why .line-back img {
        width: 100%;
        height: auto;
    }
    /* 2枚目の写真を少し左に寄せる */
    #why .line-back img:nth-of-type(2) {
        margin-left: -10px;
    }

    /* ハンバーガーボタンを表示 */
    .hamburger {
        display: flex;
    }

    /* ナビゲーションのスタイル上書き */
    nav {
        position: fixed; /* 画面に固定 */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* 全画面 */
        transform: none; /* 中央寄せ解除 */
        background-color: #fff; /* 背景を不透明な白に変更 */
        border-radius: 0;
        padding: 0;
        
        /* フレックスボックスで中身を中央寄せ */
        display: flex;
        justify-content: center;
        align-items: center;

        /* アニメーション用：最初は隠す */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        pointer-events: none; /* クリック無効化 */
    }

    /* クラスが付与されたら表示 */
    nav.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        /* overflow: hidden; */
    }

    nav ul {
        flex-direction: column; /* 縦並び */
        gap: 15px;
        text-align: center;
        width: 100%;
    }

    nav ul li {
        margin: 0;
        border-bottom: none; /* スマホ時は線を消す */

        .marker {
  display: inline;
  background-image: linear-gradient(90deg, #fcf69f, #fcf69f); /* マーカーの色を指定 */
  background-repeat: no-repeat;
  background-position: left bottom; /* マーカーの発生位置を左下に設定 */
  background-size: 0 40%; /* マーカーの横幅 / 縦幅 */
  transition: all 0.8s ease; /* マーカーを引く速度 */
  cursor: pointer; /* ホバー時のカーソルをポインターにする */
}

/* マーカーホバー時 */
.marker:hover {
  background-size: 100% 40%; /* マーカーの横幅を100%にする */
}


    }
    nav ul li a {
        font-size: 1.2rem;
        font-weight: bold;
        display: block;
        padding: 10px;
    }
    nav ul li a:hover {
        background-image: none; /* スマホでは波線を消す */
    }

    /* スマホではホバー時の下線と葉っぱを出さない */
    nav ul li a:hover::after {
        width: 0;
    }
    nav ul li a:hover::before {
        opacity: 0;
    }

    /* ハンバーガーボタンのアニメーション（×印） */
    .hamburger.is-active span:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }
    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }

    /* --- ヘッダー & ファーストビュー --- */
    header {
        height: 60vh; /* スマホでは少し高さを抑える */
    }
    main {
        margin-top: 60vh; /* スマホのファーストビューの高さ(60vh)に合わせる */
    }
    .mainvisual {
        width: 100%;
        height: 50%;
        position:fixed;
        top:0;
        left:0;
    }
    header .logo {
        width: 80px; /* ロゴを少し小さくして顔への干渉を減らす */
        left: 15px;
        top: 15px;
    }

    /* テキストが顔に被らないように下部に移動 */
    .mainvisual p {
        top: 70%; /* PC版の上位置指定を解除 */
        bottom: 10%; /* 下から10%の位置に配置 */
        right: 5%;
        text-align: right;
        font-size: 1.5rem; /* ベースの文字サイズを少し大きく */
    }

    /* スマホではハイライトテキストも小さくする */
    .mainvisual-highlight {
        font-size: 2.2rem; /* PC版の59pxから調整 */
    }

    /* .mauntainをスマホ画面内に収める */
    .mauntain {
        width: 50%;       /* サイズを調整 */
        left: auto;       /* PC版の固定位置を解除 */
        right: 0;         /* 右端に配置 */
        bottom: 20px;     /* 位置調整 */
        padding-left: 0;  /* PC版の大きな余白をリセット */
        margin-left: auto; /* 右寄せにする */
    }

    /* --- タイムライン --- */
    .timeline {
        width: 90%; /* 画面幅に合わせて調整 */
    }
    .sen {
        display: none; /* 中央の線は非表示 */
    }
    .top,
    .second,
    .third {
        margin-top: 40px;
    }
    .top-inner,
    .second-inner,
    .third-inner {
        flex-direction: column; /* 縦並びに変更 */
        align-items: center;    /* 中央揃え */
        gap: 20px;
    }
    .second {
        justify-content: center; /* 右寄せを解除 */
    }
    .second-inner {
        flex-direction: column-reverse; /* 画像が上に来るように順番を入れ替え */
    }
    .item-left-text {
        background-color: transparent; /* 背景を透過 */
        padding-left: 0;
        width: 100%;
    }
    .item-left-text p {
        text-align: center; /* テキストを中央揃えに */
        padding-top: 5px;
    }
    .timeline img {
        width: 100%;
        max-width: 320px;
    }

    /* --- メンバー紹介 --- */
    /* メンバー紹介：タブレット以下は1枚表示用にレイアウト調整 */
    .peaple {
        width: 85vw !important;
        max-width: 360px;
        margin: 2rem auto !important;
    }
    /* 拡大エフェクトをリセット（画面からはみ出さないようにするため） */
    .peaple.slick-center {
        transform: scale(1);
    }

    /* 矢印ボタンをスマホ用に小さく調整して表示 */
    .peaples .slick-prev,
    .peaples .slick-next {
        display: flex !important; /* 表示する */
        width: 30px !important;   /* ボタンサイズを小さく */
        height: 30px !important;
    }

    /* 矢印の中身の線も小さく */
    .peaples .slick-prev::before,
    .peaples .slick-next::before {
        width: 8px;
        height: 8px;
        border-width: 2px; /* 線の太さも少し細く */
    }

    /* --- なぜメンバーになったのか聞いてみた！ --- */
    .lines {
        left: 0; /* PC版の左位置指定を解除 */
        width: 100%; /* 幅を画面に合わせる */
        padding: 0 20px; /* 左右に余白を持たせる */
        box-sizing: border-box;
    }
    .green {
        padding-left: 0; /* PC版の余白を解除 */
        width: 100%; /* 画像を幅いっぱいに */
        margin: 0 auto 20px; /* 中央寄せ */
        display: block;
    }
    .line-back {
        width: 100%; /* 固定幅を解除 */
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* 画像のスタイルをリセットして画面内に収める */
    .line-back img,
    .line-back img:nth-child(1),
    .line-back img:nth-child(2),
    .line-back img.active {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important; /* アニメーションの移動を無効化して表示 */
        opacity: 1 !important;      /* 強制的に表示 */
    }

    /* --- インスタグラム --- */
    .instagram {
        padding: 60px 20px; /* 上下の余白を調整 */
    }
    .insta-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホでは2列表示に */
        grid-template-rows: auto; /* 高さを自動調整に変更 */
        gap: 15px;
    }

    /* スマホでは回転や位置ずらしを解除して重なりを防ぐ */
    .insta-grid a:nth-child(odd),
    .insta-grid a:nth-child(even),
    .insta-grid a:nth-child(3n) {
        transform: none;
    }

    /* フッターのロゴとSNSをスマホでは縦並びに戻す */
    .footer-row {
        flex-direction: column;
        gap: 1rem;
    }
}