/* @font-face {
    font-family: 'maru-gothic';
    src: url('fonts/ZenMaruGothic-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  } */
/* 必要に応じてグローバルクラスを定義（必須ではない） */
.zen-maru-gothic-regular {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 400;
    font-style: normal;
  }

  .zen-maru-gothic-medium {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 500;
    font-style: normal;
  }

  .zen-maru-gothic-bold {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 700;
    font-style: normal;
  }

/* グラフ位置調整用の変数 */
:root {
    --graph-top-percent: 12%; /* 上からの位置調整（コンテナ高さの20%） */
    --graph-bottom-percent: -3%; /* 下部の余白（0%でコンテナ下端まで表示） */
}

body {
    font-family: "Zen Maru Gothic", Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-weight: 500;
    background-color: black;
    /* 重要: 高さを固定しない、スクロール可能にする */
    overflow-y: auto;
}

.header {
    height: 12.5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: white;
    margin: 0 0 0.3vh 0;
    font-size: 5vh;
    font-weight: 500; /* 標準の太さ(400)から太く(700) */
    text-align: center;
}

.subtitle {
    color: rgb(211, 211, 211);
    font-size: 2.5vh; /* h1の半分の大きさ */
    font-weight: 700; /* 標準の太さ(400)から太く(700) */

    margin: 0;
    text-align: center;
}

.container {
    width: 100%;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* .video-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    transition: transform 0.1s ease;
    will-change: transform;
} */
/* 動画の代わりに表示する画像のスタイル */
#placeholderImage {
    height: 100%;
    width: auto; /* autoに変更して、コンテナのサイズに合わせて調整できるように */
    max-width: none; /* 画像サイズの制限を解除 */
    min-width: 100%; /* コンテナを満たすための最小幅 */
    object-fit: cover; /* カバーモードで表示 */
    aspect-ratio: 16/9; /* 動画と同じアスペクト比を維持 */
    pointer-events: auto; /* マウスイベントを受け取れるように */
    user-select: none; /* テキスト選択を防止 */
    -webkit-user-drag: none; /* ドラッグ中に画像がドラッグされることを防止 */
}

/* 必要に応じて調整するビデオラッパーのスタイル */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* 中央表示を維持 */
    height: 100%;
    transition: transform 0.1s ease;
    will-change: transform;
    cursor: grab; /* ドラッグ可能なことを示すカーソル */
}
/* ドラッグ中のカーソルスタイル */
.video-wrapper:active {
    cursor: grabbing;
}
.video-container iframe {
    height: 100%;
    width: auto;
    aspect-ratio: 16/9;
    min-width: 100%;
    border: none;
    pointer-events: none;
}

#graphCanvas {
    position: absolute;
    /* JavaScriptで直接top値を設定するのでここではコメントアウト */
    /* top: var(--graph-top-offset); */
    left: 0;
    width: 100%;
    /* heightはJavaScriptで直接設定 */
    z-index: 10;
    pointer-events: none;
}

.footer {
    height: 12.5vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer a {
    color: white;
    text-decoration: none;
    font-size: 3.75vh;
    text-align: center;
    padding: 10px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.footer a:hover {
    color: #f0f0f0;
}

.click-btn {
    background-color: white;
    color: black;
    border: none;
    border-radius: 10px;
    padding: 1px 10px;
    margin-left: 10px;
    font-size: 3vh;
    cursor: pointer;
    transition: background-color 0.2s;
}

.click-btn:hover {
    background-color: #f0f0f0;
}

@media (max-width: 767px) {
    h1 {
        font-size: 3vh;
    }

    .subtitle {
        font-size: 2.1vh;
    }

    .footer a {
        font-size: 3vh;
    }

    .click-btn {
        font-size: 3vh;
    }
}