body {
    display: flex;
    flex-direction: column;
    min-height: 1vh; /* ビューポートの高さに合わせる */
    font-family: Arial, sans-serif;
    background: #000;
    overflow-y: scroll;
    margin: 0;
    padding: 0;
}

/* デフォルトスタイル（PC向け） */
body {
    font-size: 16px; /* PCの標準フォントサイズ */
    margin: 0 auto; /* 両側の余白を中央揃え */
    max-width: 1200px; /* 全体の横幅を制限（必要に応じて変更） */
    padding: 20px; /* 内容の内側に余白を追加 */
}

/* モバイル対応（768px以下） */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* フォントサイズを小さくする */
        margin: 0 24px; /* 両側の余白を追加（15pxずつ） */
        max-width: 100%; /* 幅を画面いっぱいに */
        padding: 10px; /* 内容の内側の余白を少し狭く */
    }

    /* 見出しのフォントサイズを縮小 */
    h1 {
        font-size: 18px; /* 大見出しのサイズ */
    }

    h2 {
        font-size: 22px; /* 中見出しのサイズ */
    }

    h3 {
        font-size: 16px; /* 小見出しのサイズ */
    }

    h4 {
        font-size: 16px; /* 小見出しのサイズ */
    }

    h5 {
        font-size: 12px; /* 小見出しのサイズ */
    }

    p {
        font-size: 13px; /* 小見出しのサイズ */
    }

    button, .btn {
        padding: 10px 20px; /* 縦横の間隔を縮小 */
        font-size: 16px;    /* フォントサイズを小さく */
        border-radius: 4px; /* 角の丸みも微調整 */
    }

    /* ナビゲーションメニューのフォントサイズを調整 */
    .nav-menu a {
        font-size: 14px; /* メニューリンクの文字サイズ */
    }

    /* フッターのフォントサイズ */
    footer {
        font-size: 8px; /* フッターの文字サイズをさらに縮小 */
    }
}


/* セクションの余白調整 */
section {
    margin-bottom: 20px; /* セクション間に余白を追加 */
}

.nav-menu a,
.sns-section {
    padding: 10px 5px; /* 各リンクやSNSセクションも余白を調整 */
}

/* ヘッダーのスタイルもモバイル対応 */
header {
    padding: 10px 15px; /* ヘッダーの内側余白を調整 */
}




/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(50, 50, 50, 0.5);
    padding: 10px 0; /* 上下の余白を調整 */
    text-align: left; /* テキストを中央寄せ */
    z-index: 100;
}

/* ナビゲーションメニュー */
.nav-item {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-item:hover {
    color: #00bcd4;
    border-bottom: 2px solid #00bcd4;
}





/* 星空背景Canvas（動画の上に配置） */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* フッター */
footer {
    position: static; /* 固定を解除 */
    bottom: auto;     /* 自動で配置 */
    margin-top: auto; /* 残りスペースを埋める */
    left: 0;
    width: 100%;
    padding: 5px 0;
    background: alpha;
    color: #fff;
    text-align: center;
    z-index: 100;
    background-position: center; /* 背景画像・色を中央に配置 */
}

/* コンテンツ部分 */
main {
    flex: 1; /* コンテンツが増えても自動的に調整 */
    margin-top: 0vh; 
    color: #fff;
    font-size: 24px;
    text-align: center;
    background: transparent; /* Canvas の星空が透けるように設定 */
    height: 70vh; /* 仮の高さを設定（調整可能） */
    padding-bottom: 0px; /* フッター部分との間に適切な余白 */
}

.content-section h1{
    font-size: 60px;
    white-space: nowrap; /* テキストが折り返さないように */
    overflow: hidden;
}

.content-section h2 {
    font-size: 48px;
    white-space: nowrap; /* テキストが折り返さないように */
    overflow: hidden;
}

.content-section h3 {
    font-size: 36px;
    white-space: nowrap; /* テキストが折り返さないように */
    overflow: hidden;
}

.content-section h4{
    font-size: 30px;
    white-space: nowrap; /* テキストが折り返さないように */
    overflow: hidden;
}

.content-section h5{
    font-size: 25px;
    white-space: nowrap; /* テキストが折り返さないように */
    overflow: hidden;
}

.content-section p{
    font-size: 20px;
    white-space: nowrap; /* テキストが折り返さないように */
    overflow: hidden;
}

.content-block {
    margin-bottom: 80px; /* コンテンツ間の空白を調整 */
}

/* 詳細ボタン1 */
.detail-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #6a5acd, #00bcd4);
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

/* 詳細ボタン2 */
.detail-button2 {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #f15c33, #f75ff5);
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

/* 詳細ボタン3 */
.detail-button3 {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #56f133, #eff75f);
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

/* スマホ表示時にボタンサイズを小さくする */
@media (max-width: 768px) {
    .detail-button,
    .detail-button2,
    .detail-button3 {
        padding: 8px 16px; /* ボタンの間隔を小さく */
        font-size: 16px;   /* テキストのサイズを少し小さく */
        border-radius: 20px; /* 角の丸みをコンパクトに */
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); /* 影の調整 */
    }
}


/* ホバーエフェクト */
.detail-button:hover {
    background: linear-gradient(45deg, #00bcd4, #6a5acd);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.detail-button2:hover {
    background: linear-gradient(45deg, #f75ff5, #f15c33);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ボタンコンテナ */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}
/* ボタンコンテナ */
.button-container2 {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.button-container3 {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

/* エフェクト領域 */
.sparkle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* 星型エフェクト要素 */
.sparkle {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #ff0, rgba(255,255,0,0.8));
    opacity: 0;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkleAnimation 1s ease-out forwards;
}

/* ビビディバビディブー風アニメーション */
@keyframes sparkleAnimation {
    0% {
        transform: scale(0.2) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(3) rotate(360deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(5) translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* 動画上下余白調整（スマホのみ） */
@media (max-width: 768px) {
    .video-container {
        height: 50vh; /* 動画コンテンツを狭く表示 */
        padding: 0;
        margin: 0;
    }
    .video-container video {
        object-fit: cover;
        height: 100%;
    }
    main {
        flex: 1; /* コンテンツが増えても自動的に調整 */
        margin-top: 0vh; /* 動画の下に余白を追加 */
        color: #fff;
        font-size: 24px;
        text-align: center;
        background: transparent; /* Canvas の星空が透けるように設定 */
        height: 0vh; /* 仮の高さを設定（調整可能） */
        padding-bottom: 0px; /* フッター部分との間に適切な余白 */
    }

}

/* トップに戻るボタン */
html {
    scroll-behavior: smooth;
}
.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #354d65;
    border: solid 2px #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: translateY(20%) rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
    .pagetop:hover, .pagetop:hover .pagetop__arrow {
        border-color: #3293e7;
    }
}
@media (max-width: 768px) {
    .pagetop {
        height: 40px;
        width: 40px;
        position: fixed;
        right: 10px;
        bottom: 10px;
        background: #354d65;
        border: solid 2px #000;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
        box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
    }
    
    .pagetop__arrow {
        height: 10px;
        width: 10px;
        border-top: 3px solid #000;
        border-right: 3px solid #000;
        transform: translateY(20%) rotate(-45deg);
    }
}



.video-container img {
    width: 60vw;        /* 画面の60% → かなり大きい */
    max-width: 800px;   /* PCでの上限 */
    min-width: 300px;   /* 小さくなりすぎ防止 */
    height: auto;
    display: block;
    margin: 0 auto;
}

.video-container img {
    filter: drop-shadow(0 0 40px rgba(255,255,255,0.6));
}

@media (max-width: 768px) {
    .video-container img {
        width: 80vw;        /* ほぼ画面いっぱい */
        max-width: 500px;
        min-width: 250px;
    }
}



