body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../image/index/background2.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ホームページの背景画像 */
.page-home {
    min-height: 100vh;
}
/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.0); /* 透過した白色 */
    padding: 10px 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.0);
    z-index: 5;
}

.logo img {
    width: 300px;
    height: 80px;
    max-width: 100%; /* 枠からはみ出さないようにする */
}

/************************************
ハンバーガーメニュー
************************************/

/* ハンバーガーメニュー */
.menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background-color: #fa7aa5;
    color: #fff;
    transition: right 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    z-index: 8; /* menu の z-index を8に変更 */
}

/* メニューが開いたとき */
.menu.open {
    right: 0;
}

/* メニューが開いたときの背景を半透明の黒に */
.menu-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 6;
    pointer-events: none;
}

.menu-bg.active {
    opacity: 1;
    pointer-events: auto;
}

/* ハンバーガーボタン */
.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #fa7aa5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 9; /* z-indexを変更 */
    transition: background-color 0.3s;
}

/* ホバー時の変更（ボタンの背景を白に、三本線をピンクに） */
.hamburger:hover {
    background-color: #fff;
}

.hamburger:hover span {
    background-color: #fa7aa5;
}

/* 三本線 */
.hamburger span {
    display: block;
    height: 3px;
    width: 30px;
    background-color: #fff;
    transition: 0.4s;
}

/* メニューが開いたらハンバーガーを非表示 */
.hamburger.hidden {
    display: none;
}
/* バツボタン（メニューが開いたときのみ表示） */
.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #fa7aa5;
    font-size: 40px;  /* フォントサイズを大きく */
    font-weight: bold;
    border-radius: 20%;  /* 丸くする */
    cursor: pointer;
    display: none; /* 初期状態では非表示 */
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s;
}


.close-btn:hover {
    background-color: #ff9ac2;
}

/* メニューが開いたらバツボタンを表示 */
.menu.open ~ .close-btn {
    display: flex;
}

/* メニューリストのスタイル */
.menu ul {
    list-style-type: none;
    padding: 0;
    margin-top: 80px;
}

.menu li {
    padding: 20px 0;
    border-bottom: 1px solid #fff;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    display: block;
}

/************************************
スライドショー
************************************/

/* スライドショー */
.slideshow {
    margin-top: 80px;
    text-align: center;
    position: relative;
}

.slideshow-container {
    position: relative;
    max-width: 65%;  /* 画像の横幅に合わせて最大幅を設定 */
    margin: auto;
}

.slide {
    width: 100%;
    height: auto;
    display: none;
}

.active {
    display: block;
}

.controls {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
    z-index: 1;
}

.slide-btn {
    width: 15px;
    height: 15px;
    margin: 5px;
    background-color: gray;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.slide-btn.active {
    background-color: black;
}

/************************************
コンテンツ
************************************/

/* コンテンツ */
.content {
    padding: 20px;
    text-align: center;
    max-width: 65%;  /* 画像の横幅に合わせて最大幅を設定 */
    margin: auto;  /* 中央揃え */
}

.info-box {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    max-width: 100%;  /* 画像の横幅に合わせて最大幅を設定 */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.info-box h2 {
    font-size: 1.8em;  /* 見出しのフォントサイズを調整 */
    margin-bottom: 10px;
}

.info-box p {
    font-size: 1.1em;  /* パラグラフのフォントサイズを調整 */
}

/************************************
全体レイアウト
************************************/

/* 全体レイアウト */
.main-section {
    display: flex;
    justify-content: space-between;  /* 左右に配置 */
    gap: 20px;  /* 左右の間隔 */
    flex-wrap: wrap;  /* モバイル対応のためラップを許可 */
    margin-top: 20px;
    width: 100%;  /* 幅を100%に設定して、親要素に合わせる */
    max-width: 100%;  /* 画面幅を超えないように最大幅を設定 */
    box-sizing: border-box;  /* パディングやマージンを含めて幅を計算 */
    padding: 0 15%;  /* 左右に20pxの隙間を追加 */
    margin-bottom: 5%; /* タイトルとツイート内容の間隔 */
}

/* Twitterの表示セクション */
.twitter-section {
    flex: 0 0 30%;  /* Twitterの幅を30%に指定 */
    max-width: 30%;  /* 最大幅を30%に設定 */
    margin-left: 5%;
    box-sizing: border-box;  /* ボックスのサイズをパディングやマージンも含めて計算 */
    
    text-align: center;
    padding: 10px 20px; /* 内側の余白を調整 */
    background-color: #fff; /* 白い背景 */
    border: 1px solid #ddd; /* 枠線を細くする */
    border-radius: 10px; /* 角を丸くする */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* 軽い影 */
}

/* ★追加：Twitterセクションのタイトル用スタイル（例） */
.twitter-section h2 {
    text-align: center;
    background-color: #fa7aa5;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-size: 1.5em;
    margin-bottom: 15px; /* タイトルとツイート内容の間隔 */
}

/* Twitter埋め込み全体のスタイル */
.twitter-frame {
    width: 100%;
    max-width: 450px; /* PCでは最大450px */
    height: 600px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgb(255, 255, 255);
    background-color: #ffffff;
}

/* Twitterフォローボタン */
.link-twitter {
    text-align: center;
    background-color: #fa7aa5;/* 通常時の背景色 */
    color: #fff;/* 文字色 */
    padding: 0px 20px;
    border-radius: 10px;
    font-size: 1.2em;
    margin-top: 5%;
    margin-bottom: 2%;
    transition: background-color 0.3s ease, transform 0.2s ease; /* 変化をなめらかに */
}

/* リンクのテキストのスタイル */
.link-twitter a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    width: 100%;
    height: 100%;
}

/* マウスホバー時の色変更 */
.link-twitter:hover {
    background-color: #d14875; /* ホバー時の背景色 */
    transform: scale(1.05); /* 少し拡大して視覚的にアピール */
}

/* 右側の紹介文エリア */
.content-right {
    flex: 0 0 60%;  /* 右側はTwitterより広く、65%に指定 */
    max-width: 60%;  /* 最大幅を65%に設定 */
    box-sizing: border-box;  /* ボックスのサイズをパディングやマージンも含めて計算 */
}

.info-sub-box {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    margin-left: 8%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    width: 80%;  /* 幅を100%に設定して親要素にフィットさせる */
}

/* 右側のボックスの h2 スタイル */
.info-sub-box h2 {
    background-color: #fa7aa5; /* ピンクの背景 */
    color: #fff; /* 白い文字 */
    text-align: center;
    padding: 10px;
    border-radius: 15px; /* 角を丸く */
    font-size: 1.8em;
    margin-bottom: 10px;
}

/* 画像を枠内に収める */
.info-sub-box img {
    max-width: 100%; /* 枠からはみ出さないようにする */
    height: auto;
    display: block;
    margin: 10px auto; /* 中央配置 */
    border-radius: 10px; /* 角を丸くする */
}

.info-sub-box p {
    color: #4d4d4d; /* 白い文字 */
    padding: 5px;
    margin: 20px auto;
    font-size: 1.1em;
}

/************************************
リンク
************************************/
/* リンクのスタイル */
.links {
    text-align: center;
    padding: 10px 20px; /* 内側の余白を調整 */
    background-color: #fff; /* 白い背景 */
    border: 1px solid #ddd; /* 枠線を細くする */
    border-radius: 10px; /* 角を丸くする */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* 軽い影 */
    margin-left: 15%;
    margin-right: 15%;
    margin-bottom: 5%;
}

.links h2 {
    background-color: #fa7aa5;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px; /* タイトルとツイート内容の間隔 */
    margin-left: 30%;
    margin-right: 30%;
    font-size: 2.5em;
}

/* 2列レイアウト */
.link-box {
    display: flex;
    justify-content: flex-start; /* 左寄せに変更 */
    flex-wrap: wrap; /* モバイル対応 */
    gap: 20px; /* 要素間の間隔 */
}

/* 各リンク要素 */
.link-youtube,
.link-twitch,
.link-booth {
    text-align: center;
    width: calc(50% - 10px); /* 2列にするために幅を調整 */
    box-sizing: border-box; /* padding, border を含めた幅計算 */
}

/* 画像サイズ */
.link-item img {
    width: 100%; /* 画像をコンテナに合わせる */
    max-width: 50%; /* 最大幅を指定 */
    height: auto;
    margin-top: 5%;
    border-radius: 10px;
    transition: transform 0.3s ease; /* 画像にホバー効果 */
}

.link-youtube p,
.link-twitch p,
.link-booth p {
    font-size: 1.1em;
    margin-bottom: 5%;
    color: #333; /* テキストの色を調整 */
}

/* ホバー時に画像を少し拡大 */
.link-item img:hover {
    transform: scale(1.2);
}


/* レスポンシブデザイン（モバイル向け） */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
    }

    .logo img {
        width: auto;
        height: 40px;
    }

    .hamburger {
        top: 15px;
        right: 15px;
    }

    .menu {
        width: 250px;
    }

    .menu ul {
        margin-top: 60px;
    }

    .slideshow-container {
        width: 100%;
    }

    .slide-btn {
        width: 12px;
        height: 12px;
    }

    .info-box {
        max-width: 90%;
    }

    .main-section {
        flex-direction: column;  /* スマホでは縦並びに変更 */
    }

    .twitter-section,
    .content-right {
        max-width: 100%;  /* 両セクションが100%幅になるように設定 */
    }

    .twitter-frame {
        width: 100%;
    }

    .link-box a img {
        width: 100px;  /* モバイル向けに画像サイズ調整 */
    }

    .link-box {
        gap: 20px; /* モバイルでは少し間隔を狭くする */
    }

    .link-item {
        width: 150px; /* モバイルでは幅を縮小 */
    }

    .link-youtube,
    .link-twitch,
    .link-booth {
        width: 100%; /* 画面幅が小さい場合は1列に */
    }
    .links h2 {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        font-size: 1.8em; /* 少し小さくしてバランス調整 */
        box-sizing: border-box;
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}