/* モバイルファーストの基本スタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    text-align: center; /* テキストの中央揃え */
}

.container {
    width: 95%; /* または必要に応じて適切な幅 */
    margin: 0 auto; /* 左右のマージンを自動に設定して中央に配置 */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* ブロックレベル要素にする */
    margin: auto; /* 左右のマージンを自動に設定して中央に配置 */
}

/* 画面サイズが大きいデバイス向けのスタイル */
@media (min-width: 600px) {
    h1 {
        font-size: 24px;
    }
    p {
        font-size: 18px;
    }
}

video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9のアスペクト比の場合 */
    height: 0;
    overflow: hidden;
}

.video-wrapper video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px; /* 再生ボタンのサイズ */
    height: 60px; /* 再生ボタンのサイズ */
    background-color: rgba(0, 0, 0, 0.5); /* 再生ボタンの背景色 */
    border-radius: 50%; /* 円形にする */
    transform: translate(-50%, -50%); /* 中心に配置 */
    display: block; /* 初期表示状態を明示 */
}

.play-button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px; /* 三角形の形 */
    border-color: transparent transparent transparent white; /* 三角形の色 */
    transform: translate(-50%, -50%); /* 中心に配置 */
}

.video-wrapper:hover .play-button {
    visibility: visible;
}

.image-container {
    position: relative; /* このコンテナ内の子要素を絶対位置で配置できるようにします */
}

.addfriend-button {
    position: absolute;
    top: 87%; /* 画像の上部からの位置を指定 */
    left: 50%; /* 画像の左部からの位置を指定 */
    transform: translate(-50%, -50%); /* ボタンの中心を正確に画像の中央に合わせます */
    z-index: 10; /* ボタンが画像より上に表示されるようにします */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
}

.background-container {
    position: relative;
    background-image: url('../image/flower.png'); /* 背景画像のパス */
    background-size: cover; /* 背景画像をコンテナにフィットさせる */
    background-attachment: fixed; /* 背景画像を固定 */
    background-repeat: no-repeat; /* 背景画像を繰り返さない */
    background-position: center center; /* 背景画像の位置を中央に設定 */
    /* height: 2150px;  *//* 要素の高さを500ピクセルに設定 */
    width: 100%; /* 要素の幅を親要素の幅に合わせる */
    /* 必要に応じてコンテナの高さや幅を設定 */
}

.background-container img {
    max-width: 100%;
    height: auto;
    display: block; /* ブロックレベル要素にする */
    margin: auto; /* 左右のマージンを自動に設定して中央に配置 */
}

.background-container p {
    position: relative; /* テキストを前面に表示 */
    color: rgb(18, 8, 8); /* テキストの色を設定（背景に合わせて変更） */
    /* その他のテキストスタイルを設定 */
}