body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-y: auto;
}
body  {
    font-family: "Noto Sans JP", sans-serif;
    margin: 0;
    position: relative;
    min-height: 100vh;
}

.header {
    background-color: #8cfcb7;
    height: 120px;
    display: flex;         
    align-items: center;
}
.img-right {
    background-color: #fff;
}
.collab-container {
    display: flex;         
    align-items: center;   /* ロゴと「with」の縦の中心を揃える */
    justify-content: flex-start; /* 全体を左揃えに配置 */
    gap: 20px;             /* 要素同士の間隔を20pxに固定 */
    width: 100%;
    padding: 0 80px;       
    box-sizing: border-box;
}


.collab-img {
    height: 60px;          
    width: auto;           
    object-fit: contain;
    margin-top: 0 !important; /* 個別マージンをリセット */
}

.img-left {
    margin-left: 0 !important; /* 左マージンを解除して中央に寄せやすく */
}

.collab-text {
    font-size: 42px; 
    font-weight: bold;
    color: #fff;              
    line-height: 1;
}
/* 画面全体のコンテナ設定 */
.falling-container {
    position: absolute;      /* fixed から absolute に戻す（ページ全体の高さに合わせる） */
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;        /* 画面の高さ、またはコンテンツ全体の高さに合わせる */
    background-color: transparent; /* 背景を透明にする場合 */
    pointer-events: none;
    z-index: -1;
    overflow: hidden;        /* はみ出しによるスクロールバーの発生を防ぐ */
}
/* 三角形の作成とアニメーションの初期設定 */
.triangle {
    position: absolute;
    top: -40px; /* 画面の外（上）からスタート */
    width: 0;
    height: 0;
  /* CSSで三角形を作るテクニック */
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid #2f9c91; /* 三角形の色 */

  /* アニメーションの設定 */
    animation-name: fallAndRotate;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/* 上から下へ、回転しながら落ちるアニメーション */
@keyframes fallAndRotate {
0% {
    top: -50px;
    transform: rotate(0deg);
}
100% {
    top: 100%;            /* 100vh（画面の高さ）から100%（コンテナ全体の高さ）まで落とす */
    transform: rotate(360deg);
}
}

/* --- 【レスポンシブ対応】スマホ表示（画面幅が狭い時） --- */
@media screen and (max-width: 600px) {
    .header {
        height: auto;      /* スマホ時は要素の高さに合わせて自動調整 */
        padding: 15px 0;
    }
    
    .collab-container {
        justify-content: center; /* スマホ画面では中央寄せ */
        flex-wrap: wrap;         /* 画面幅が足りない場合は綺麗に折り返し */
        gap: 12px;
        padding: 0 20px;
    }

    .collab-img {
        height: 40px;      /* スマホ用にロゴを縮小 */
    }

    .collab-text {
        font-size: 24px;   /* スマホ用に「with」を縮小 */
    }
}

/* メインエリア */
.main-img {
    height: auto;
    aspect-ratio: 5 / 3; /* アスペクト比 5:3 を維持 */
    max-width: 750px;
    width: 90%;          /* 画面幅が狭いときは画面の90%幅に縮小 */
    margin: 80px auto 0;
    overflow: hidden;    
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* スライダー内の画像をコンテナに追従させる */
.slider-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(100%); /* 初期位置を親要素の右外に配置 */
    animation: innerSlideLoop 16s infinite; 
}

/* タイトル見出し */
.main h1 {
    font-size: clamp(1.2rem, 4vw, 24px); /* 画面幅に合わせてフォントサイズを動的に変更 */
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.5;
}

/* アニメーション時間差 */
.slide-img:nth-child(1) { animation-delay: 0s; }
.slide-img:nth-child(2) { animation-delay: 4s; }
.slide-img:nth-child(3) { animation-delay: 8s; }
.slide-img:nth-child(4) { animation-delay: 12s; }

/* 枠内スライドアニメーション */
@keyframes innerSlideLoop {
    0% { transform: translateX(100%); }     
    6.25% { transform: translateX(0); }       
    25% { transform: translateX(0); }         
    31.25% { transform: translateX(-100%); } 
    100% { transform: translateX(-100%); }   
}

/* --- YK・コラボ & ランプ浜松 エリア --- */
.yk-collab, .ramp {
    margin-bottom: 50px;
}
.yk-collab h2, .ramp h2 {
    font-size: 24px;
    display: inline-block; 
    border-bottom: 5px solid #8cfcb7; 
    margin-left: 80px;
}
.yk-collab p, .ramp p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 1120px;   
    width: 100%;         
    margin-left: auto;   
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
p a{
    font-size: 1.25rem; 
    font-weight: bold; 
}

/* --- メンバー紹介エリア --- */
.member h2 {
    font-size: 24px;
    display: inline-block; 
    border-bottom: 5px solid #8cfcb7; 
    margin-left: 80px;
    margin-bottom: 50px;
}
.circle-container {
    display: flex;
    justify-content: center; 
    gap: 50px;               
    flex-wrap: wrap;         
}
.member-container {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;         
    gap: 80px;               
    width: 100%;
}
.member-box {
    display: flex;
    flex-direction: column; 
    align-items: center;    
}
.member-img {
    width: 320px;           
    height: 320px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #8cfcb7;
    padding: 32px; 
    box-sizing: border-box; 
}
.member-txt {
    font-size: 16px;
    width: 250px;           
    margin-top: 15px;
    text-align: left;       
    white-space: normal;
    word-wrap: break-word;
}
.member-txt strong {
    display: block;      
    text-align: center;
    margin-bottom: 5px;
}
.yk-collab h2, .ramp h2, .member h2 {
    margin-left: 5%; /* 左マージンをパーセントにして余白を確保 */
}
.footer{
    background-color: #2f9c91;
    height: 100px;
    margin-top: 80px;
}

/* ==========================================
    メディアクエリ（レスポンシブ対応）
   ========================================== */

/* タブレット・スマホサイズ（幅 768px 以下） */
@media screen and (max-width: 768px) {
    .header {
        height: auto; /* 高さを自動調整にして折り返しに対応 */
        padding: 15px 0;
    }

    .collab-container {
        gap: 15px;
    }

    .collab-text {
        font-size: 24px;
    }

    .collab-img {
        max-height: 45px;
    }

    /* メンバー紹介エリアの余白調整 */
    .member-container {
        gap: 40px; /* 縦並びになった際の間隔を調整 */
    }

    .member-img {
        width: 260px; /* 丸画像を少しスケールダウン */
        height: 260px;
        padding: 24px;
    }
}

/* スマホサイズ（幅 480px 以下） */
@media screen and (max-width: 480px) {
    .collab-container {
        gap: 10px;
    }

    .collab-text {
        font-size: 20px;
    }

    .collab-img {
        max-height: 35px;
    }

    /* 見出し余白 */
    .yk-collab h2, .ramp h2, .member h2 {
        margin-left: 20px;
        font-size: 20px;
    }

    /* テキストの読みやすさ向上 */
    .yk-collab p, .ramp p {
        font-size: 14px;
        line-height: 1.6;
    }

    p a {
        font-size: 1.1rem;
    }
}
