/* --- 基本設定とフォント --- */
body {
    background-color: #0d0d0d; /* 真っ黒に近い、深みのある黒背景 */
    color: #e0e0e0; /* 明るめのグレーでコントラストを出す */
    font-family: 'Shippori Mincho B1', 'Playfair Display', serif; /* 優先順位を指定 */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* --- ヘッダー --- */
header {
    background-color: #000000; /* ヘッダーは少し明るい黒で区別 */
    color: #fff;
    padding: 25px 0; /* 上下のパディングを少し増やす */
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* 影で立体感を出す */
}

header h1 {
    margin: 0;
    font-size: 3em;
    color: #ffffff; /* 金色 */
    /* ここを修正/追加 */
    font-family: 'Shippori Mincho B1', 'Playfair Display', serif; /* 優先順位を指定 */
    letter-spacing: 3px;
    text-shadow: 2px 2px 8px rgba(255, 204, 0, 0.3);
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0; /* マージンを調整 */
    display: flex;
    justify-content: center;
    gap: 30px; /* メニュー間のスペースを広げる */
}

nav ul li a {
    color: #ffffff; /* 少し青みがかった白 */
    text-decoration: none;
    font-family: 'Shippori Mincho B1', 'Playfair Display', serif; /* 優先順位を指定 */
    font-weight: bold;
    font-size: 1.2em; /* ナビリンクを少し大きく */
    padding: 8px 15px;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease; /* ホバーアニメーション追加 */
    border-radius: 5px;
}

nav ul li a:hover {
    color: #ffdde6; /* ホバーで淡い金色に */
    background-color: rgba(253, 134, 185, 0.1); /* 金色の薄い背景 */
    transform: translateY(-3px); /* 少し上に持ち上げる */
}

/* --- メインコンテンツ --- */
main {
    flex-grow: 1;
    padding: 60px 20px; /* 全体のパディングを調整 */
    max-width: 1200px; /* サイト全体の最大幅 */
    margin: 0 auto; /* 中央寄せ */
    box-sizing: border-box;
    display: flex; /* mainの子要素を縦に並べる */
    flex-direction: column;
    align-items: center; /* 中央揃え */
}

.intro-text {
    width: 100%;
    text-align: center;
    margin-bottom: 60px; /* 説明文とギャラリーの間に十分なスペース */
    font-size: 1.15em;
    color: #dcdcdc; /* 少し明るいグレー */
    line-height: 1.8; /* 行間を広げて読みやすく */
    max-width: 800px; /* 説明文の最大幅を制限 */
}

/* --- 写真ギャラリーセクション --- */
.photo-gallery {
    width: 100%;
    margin-bottom: 80px; /* セクションの下に余白 */
}

.photo-gallery h2 {
    text-align: center;
    font-size: 2.8em; /* セクションタイトルを大きく */
    color: #f7b7fd; /* 金色 */
    font-family: 'Shippori Mincho B1', 'Playfair Display', serif; /* 優先順位を指定 */
    letter-spacing: 2px;
    margin-bottom: 50px; /* タイトルの下に余白 */
    text-shadow: 1px 1px 6px rgba(255, 186, 247, 0.487);
}

.image-grid {
    display: grid; /* FlexboxからGridレイアウトに変更 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 最小幅300pxで、画面に合わせて列数を自動調整 */
    gap: 30px; /* 画像間のスペース */
    width: 100%;
}

.image-container {
    /* overflow: hidden; */
    /* aspect-ratio: 3 / 2; */
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out, border-color 0.4s ease-in-out;
    background-color: #1f1f1f;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    /* object-fit: cover; */
    transition: transform 0.4s ease-in-out;
}

.image-container:hover {
    transform: translateY(-12px); /* もっと上に持ち上げる */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8); /* ホバー時に影をより濃く */
    border-color: #fdfdfd00; /* ホバーで金色の枠線 */
}

.image-container img {
    display: block;
    width: 100%;
    height: auto; /* 高さを自動調整して縦横比を維持 */
    aspect-ratio: 3 / 2; /* 画像のアスペクト比を3:2に設定 */
    object-fit: cover;
    transition: transform 0.4s ease-in-out; /* 画像自体のズーム効果 */
}

.image-container:hover img {
    transform: scale(1.05); /* ホバーで画像を少しズーム */
}

/* --- ツールチップ（説明文）のスタイル --- */
.tooltip-text {
    visibility: hidden;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* より濃い半透明の黒背景 */
    color: #fff;
    text-align: center;
    padding: 12px 20px; /* パディングを増やす */
    font-size: 0.9em; /* フォントサイズ調整 */
    line-height: 1.6;
    box-sizing: border-box;
    position: absolute;
    z-index: 10;
    bottom: 0;
    left: 0; /* 調整 */
    transform: translateY(100%); /* 調整 */
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out; /* アニメーションを長く */
}

.image-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* 調整 */
}

/* --- レスポンシブデザイン --- */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }
    nav ul {
        flex-wrap: wrap; /* ナビリンクを折り返す */
        gap: 15px;
    }
    nav ul li a {
        font-size: 1em;
        padding: 6px 10px;
    }
    main {
        padding: 40px 15px;
    }
    .intro-text {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .photo-gallery h2 {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 小さい画面での画像の最小幅を調整 */
        gap: 20px;
    }
    .image-container {
        flex-basis: auto; /* flex-basisをautoに */
        max-width: 100%; /* 最大幅を100%に */
    }
    .image-container img {
        height: auto; /* 高さを自動調整 */
        aspect-ratio: 3 / 2; /* アスペクト比を維持 */
    }
}






/* --- 動画ギャラリーセクション --- */
.video-gallery {
    width: 100%;
    margin-bottom: 40px; /* 写真ギャラリーとの間隔を調整 */
}

.video-gallery h2 {
    text-align: center;
    font-size: 2.2em; /* 写真ギャラリーのタイトルと合わせる */
    color: #b7fde3;
    font-family: 'Shippori Mincho B1', 'Playfair Display', serif; /* 優先順位を指定 */
    letter-spacing: 2px;
    margin-bottom: 30px; /* タイトルの下の余白を調整 */
    text-shadow: 1px 1px 6px rgba(0, 255, 217, 0.487);
}

.video-grid {
    display: flex; /* 動画を横並びにする */
    justify-content: space-around; /* 動画間のスペースを調整 */
    align-items: center; /* 必要に応じて調整 */
    width: 100%;
}

.video-item {
    width: 48%; /* 動画の幅を調整（左右に少し余白を持たせる） */
    margin-bottom: 20px; /* 必要に応じて調整 */
}

.video-item h3 {
    text-align: center;
    color: #dcdcdc;
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 10px;
}

.video-item video {
    display: block;
    width: 100%;
    height: auto; /* アスペクト比を維持 */
    aspect-ratio: 16 / 9; /* 一般的な動画のアスペクト比 */
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.video-item p {
    text-align: center;
    color: #dcdcdc;
    font-size: 0.9em;
    margin-top: 5px;
}

/* 必要であれば、以前の動画コンテナのスタイルを削除またはコメントアウト */
/*
.videos-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.video-section {
    width: 48%;
    margin-bottom: 20px;
    height: 300px;
}

.videos-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
*/










