@charset "utf-8";
/* 全体のリセット */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ページ内リンクのスクロール位置をヘッダー高さ分調整 */
html {
    scroll-padding-top: 140px; /* ヘッダーの推定高さ（40px）+ 余白（20px） */
    scroll-behavior: smooth; /* スムーズスクロール */
}

/* <br>の高さを統一 */
body{
    font-size: 18px; /* ベースフォントサイズを固定 */
    line-height: 1.25; /* 約20pxの行間（16px * 1.25） */
            margin: 0;
            padding: 20px;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
}
/* <br>を含む要素の行間を制御 */
br{
    display: block; /* 改行として明示 */
    content: ""; /* 空のコンテンツを保証 */
    margin-top: 10px; /* 行間を固定（必要に応じて調整） */
}

/* 固定ヘッダー */
.fixed-header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 960px; 
    display: flex;
    background-color: #fff; /* 背景色 */
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000; /* 他の要素より手前に表示 */
}

/* ヘッダーの左画像（リンク付き） */
.header-logo-left img{
    width: 260px; /* ロゴのサイズ（適宜調整） */
    height: auto;
    display: block;
}

/* ヘッダーの右画像 */
.header-logo-right img{
    width: 60px; /* ロゴのサイズ（適宜調整） */
    height: auto;
    display: block;
}

/* メイン画像 */
.main-image{
    width: 100%;
    max-width: 960px; 
    margin: 0 auto; /* 中央配置と上下の余白 */
    margin-top: 80px; /* ヘッダーの高さに合わせて調整 */
}

.main-image img{
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}

/* メニューボタン */
.menu-buttons{
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 10px;
}

.menu-button{
    flex: 1; /* 均等な幅 */
    margin: 0 5px; /* ボタン間の隙間 */
}
.menu-button img{
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1/1; /* 正方形に統一（必要に応じて変更） */
    object-fit: cover; /* 画像をトリミングして枠に合わせる */
}
.menu-button:hover img {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.wide-image{
    width: 95%;
    max-width: 960px; 
    margin: 0 auto 20px auto; /* 中央配置と上下の余白 */
}
.wide-image img{
    width: 100%;
    height: auto; /* 高さ固定（必要に応じて調整） */
    display: block;
    object-fit: cover; /* 画像を枠に合わせてトリミング */
}

/* メニュー1のリンク画像（幅70%、最大960px） */
.menubar-image{
    width: 85%;
    max-width: 900px; /* 最大幅制限 */
    margin: 10px auto; /* 中央配置と上下の余白 */
}
.menubar-image img{
    width: 100%;
    height: auto; /* 高さは画像の比率に応じて */
    display: block;
}

.content-image{
    width: 80%;
    max-width: 870px; /* 最大幅制限 */
    margin: 20px auto; /* 中央配置と上下の余白 */
    text-align: right;
}
.content-image img{
    left: 0;
    width: 100%;
    margin: 30px 0 0 0;
    height: auto; /* 高さは画像の比率に応じて */
    display: block;
}

.navigation-top{
    width: 90%;
    display: flex;
    justify-content: flex-end;
    margin: 0 0 35px 0; /* 中央配置と上下の余白 */
}
.navigation-top img{
    width: 100px;
    height: auto; /* 高さは画像の比率に応じて */
    display: block;
}

.chousei{
    font-size: 8px;
    margin: 5px auto;
}

/* 動画コンテナ */
.video-container{
    margin: 20px auto;
    position: relative;
    width: 100%;
    max-width: 640px;
    overflow: hidden; /* 余分な部分を隠す */
}
.video-container video{
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover; /* アスペクト比を維持しつつコンテナにフィット */
    display: block; /* 余白を防ぐ */
}
.video-container img{
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover; /* アスペクト比を維持しつつコンテナにフィット */
    display: block; /* 余白を防ぐ */
}

.play-button{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-button:hover{
    background: rgba(0, 0, 0, 0.8);
}
.play-button.hidden{
    display: none;
}

/* <br>と動画の間隔調整 */
.video-container + br,
br + .video-container{
    margin-top: 10px;
}

/* レスポンシブデザイン（必要に応じて追加） */
@media (max-width: 600px) {
    .fixed-header{
        padding: 10px;
    }
    body{
        font-size: 14px; /* スマホではフォントサイズを少し小さく */
        line-height: 1.25; /* 行間をPCと同じに保つ */
    }
    br{
        margin-top: 6px; /* スマホでの行間を微調整（必要に応じて） */
    }
    .main-image{
        margin-top: 100px; /* ヘッダーの高さに合わせて調整 */
    }
   .wide-image{
        width: 95%; /* モバイルでは少し広げる */
    }
    .menubar-image{
        width: 95%; /* モバイルでは少し広げる */
        margin: 5px auto; /* 中央配置と上下の余白 */
    }
    .content-image{
        width: 90%;
        margin: 5px auto; /* 中央配置と上下の余白 */
    }
    .content-image img{
       margin: 10px 0 0 0;
    }
   .video-container{
        margin: 5px auto;
        padding: 0;
        width: 95%;
    }
   .navigation-top{
        margin: 0 0 15px 0; /* 中央配置と上下の余白 */
    }
   .navigation-top img{
        width: 50px;
        height: auto; /* 高さは画像の比率に応じて */
        display: block;
    }
    .chousei{
       font-size: 6px;
       margin: 0px auto;
    }
}