body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #0230fb; /* 全体的な文字色 */
    background-color: #f40505; /* 全体的な背景色 */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #c0392b; /* リンクの色（赤系） */
}

a:hover {
    opacity: 0.8; /* ホバー時の透明度 */
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* 画像がブロック要素として扱われるように */
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50; /* 見出しの色（ダーク系） */
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 2.5em;
    margin-top: 0;
}

.section-padding {
    padding: 80px 0; /* セクションの上下パディング */
}

.bg-light {
    background-color: #f0f0f0; /* 薄い背景色 */
}

/* ボタン */
.btn {
    display: inline-block;
    background-color: #c0392b; /* ボタンの背景色（赤系） */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease; /* ホバー時のアニメーション */
}

.btn:hover {
    background-color: #e74c3c;
}

.btn-secondary {
    background-color: #2c3e50;
}

.btn-secondary:hover {
    background-color: #34495e;
}


/* ヘッダー */
header {
    background-color: #fdbe02; /* ヘッダーの背景色 */
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 影 */
    position: sticky; /* スクロールしても上部に固定 */
    top: 0;
    z-index: 1000; /* 他の要素より手前に表示 */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 a { /* サイトタイトル */
    color: #061ef7; /* サイトタイトルの色 */
    font-weight: 700;
    font-size: 2em; /* サイトタイトルのフォントサイズ */
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    color: #555;
    font-weight: 700;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #c0392b;
}

/* ヒーローセクション */
.hero-wrapper {
      position: relative;
      width: 100%;
      overflow: hidden;
      background-color: #fff0f0; /* ヒーローセクションの背景色 */
      padding: 60px 0; /* マージと写真の間隔 */
    }

    .floating-text {
      position: absolute;
      top: 20%; /* 上から20%の位置 */
      left: 50%; /* 左から50%の位置 */
      transform: translate(-50%, -50%); /* 中央寄せ */
      z-index: 1;
      color: #fff; /* 文字色 */
      text-shadow: 2px 2px 8px rgba(0,0,0,0.6); /* 文字の影 */
      animation: fadeUp 3s ease-out both; /* フェードアップアニメーション */
    }

    .floating-text h2 {
      font-size: 3em;
      margin: 0 0 10px;
    }

    .floating-text p {
      font-size: 1.5em;
      margin: 0;
    }

    @keyframes fadeUp {
      0% {
        opacity: 0;
        transform: translate(-50%, 20%);
      }
      100% {
        opacity: 1;
        transform: translate(-50%, -50%);
      }
    }

    .image-marquee {
      overflow: hidden; /* はみ出した画像を隠す */
      width: 100%;
      box-sizing: border-box;
      /* padding: 60px 0; これはhero-wrapperに移しました */
    }

    .marquee-track {
      display: flex; /* 画像を横並びに */
      width: max-content; /* コンテンツの幅に合わせて自動調整 */
      animation: marqueeScroll 30s linear infinite; /* 無限スクロールアニメーション */
    }

    .marquee-track img {
      width: 200px;
      height: 140px;
      object-fit: cover; /* 画像をトリミングして要素に収める */
      margin-right: 20px; /* 画像間の余白 */
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    @keyframes marqueeScroll {
      0% {
        transform: translateX(0%); /* 開始位置 */
      }
      100% {
        transform: translateX(-50%); /* コンテンツの半分だけ移動してループ */
      }
    }


/* お品書きセクション（メニューアイテムのスライドショー対応） */
#menu {
    padding: 80px 0;
}

#menu .menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.menu-item {
    background-color: #FFF;
    border: 1px solid #EEE;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* メニューアイテム内のギャラリー */
.menu-item-gallery {
    position: relative;
    width: 100%;
    height: 200px; /* 画像の高さに合わせて調整 */
    overflow: hidden; /* はみ出した画像を隠す */
    margin-bottom: 15px; /* 画像とテキストの間の余白 */
    border-radius: 4px; /* 親要素にも角丸を適用 */
}

.menu-item-gallery img {
    position: absolute; /* 画像を重ねて配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をトリミングして要素に収める */
    opacity: 0; /* ✨ JavaScriptで表示を制御するため、初期状態では非表示 */
    transition: opacity 1s ease-in-out; /* フェードアニメーション */
}

/* ✨ JavaScriptで現在表示中の画像に適用するクラス */
.menu-item-gallery img.active {
    opacity: 1; /* activeクラスが付いた画像を完全に表示 */
}

.menu-item h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #2c3e50; /* テキストカラーを明示的に指定 */
    text-align: center;
    margin-top: 0; /* 画像との間隔調整 */
}

.menu-item .price {
    font-size: 1.5em;
    font-weight: bold;
    color: #c0392b; /* プライマリーカラーを明示的に指定 */
}


/* 店舗情報 */
.access-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.access-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.access-info strong {
    color: #2c3e50;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    display: block;
}

/* フッター */
footer {
    background-color: #2c3e50; /* ダーク系の色 */
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 50px; /* メインコンテンツとの間隔 */
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.social-links a {
    color: #fff;
    margin: 0 15px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #c0392b;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
    }

    header nav ul li {
        margin: 0 15px;
    }

    /* .hero h2 { の代わりに .floating-text h2 を使用 */
    .floating-text h2 {
        font-size: 2.5em;
    }

    /* .hero p { の代わりに .floating-text p を使用 */
    .floating-text p {
        font-size: 1em;
    }

    .section-padding {
        padding: 50px 0;
    }

    .menu-grid {
        grid-template-columns: 1fr; /* 1列表示 */
    }

    /* news-list はこのHTMLにはないためコメントアウトまたは削除 */
    /*
    .news-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-list li .date {
        margin-bottom: 5px;
    }
    */

    .map-container iframe {
        height: 300px;
    }

    /* ヒーローセクションの画像マーキーのレスポンシブ調整 */
    .marquee-track img {
        width: 150px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    h1 a { /* サイトタイトル */
        font-size: 1.5em;
    }

    header nav ul li {
        margin: 0 10px;
    }

    .floating-text h2 {
        font-size: 2em;
    }

    .floating-text p {
        font-size: 1.1em; /* 調整しました */
    }

    .hero-content { /* hero-contentはHTMLにないため、 floating-text に調整 */
        padding: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    h2 {
        font-size: 2em;
    }

    /* メニューアイテムギャラリーのレスポンシブ調整 */
    .menu-item-gallery {
        height: 150px; /* さらに小画面での画像高さ調整 */
    }
}

/* ギャラリーモーダルの背景 (今回の機能とは直接関係ないですが、元のCSSに含まれていたため維持) */
.gallery-modal {
    display: none; /* 初期状態では非表示 */
    position: fixed; /* 固定位置 */
    z-index: 1000; /* 他の要素より手前に表示 */
    left: 0;
    top: 0;
    width: 100%; /* 全幅 */
    height: 100%; /* 全高 */
    background-color: rgba(0,0,0,0.9); /* 黒っぽい半透明の背景 */
    display: flex; /* Flexboxでコンテンツを配置 */
    flex-direction: column; /* 縦方向に配置 */
    align-items: center; /* 水平方向の中央揃え */
    justify-content: center; /* 垂直方向の中央揃え */
    padding: 20px; /* 全体の余白 */
    box-sizing: border-box; /* パディングを幅に含める */
}

/* 閉じるボタン */
.gallery-modal .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001; /* モーダルコンテンツより手前に */
}

.gallery-modal .close:hover,
.gallery-modal .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* メイン画像とキャプションのラッパー */
.modal-content-wrapper {
    flex-grow: 1; /* 残りのスペースを埋める */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px; /* メイン画像の最大幅 */
    overflow: hidden; /* スクロールは画像自体で行うため */
}

/* モーダル内のメイン画像 */
.modal-main-image {
    width: auto; /* 幅は自動調整 */
    height: auto; /* 高さは自動調整 */
    max-width: 100%; /* 親要素の幅の100%が最大 */
    max-height: calc(100vh - 150px); /* ビューポートの高さからサムネイルと余白分を引く */
    display: block;
    object-fit: contain; /* アスペクト比を維持しつつ、要素内に収める */
    cursor: grab; /* ドラッグできるようなカーソル */
}

/* キャプション */
#modalCaption {
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 1.2em;
    margin-top: 10px;
}

/* サムネイルのラッパー */
.modal-thumbnails-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    overflow-x: auto; /* 水平スクロールを可能にする */
    white-space: nowrap; /* サムネイルが改行されないように */
    padding-bottom: 10px; /* スクロールバーのためのスペース */
}

/* サムネイルコンテナ */
.modal-thumbnails {
    display: inline-flex; /* サムネイルを横並びにする */
    gap: 10px; /* サムネイル間のスペース */
    padding: 5px;
}

/* 個々のサムネイル */
.modal-thumbnail {
    width: 80px; /* サムネイルの固定幅 */
    height: 60px; /* サムネイルの固定高さ */
    object-fit: cover; /* アスペクト比を維持しつつ、要素を覆う */
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s ease;
}

/* アクティブなサムネイルのスタイル */
.modal-thumbnail.active {
    border: 2px solid #007bff; /* アクティブなサムネイルの枠線 */
}

/* 画像にカーソルを合わせたときにポインタを表示 */
.gallery-image {
    cursor: pointer;
}

/* モーダル表示時にbodyのスクロールを無効にする */
.modal-open {
    overflow: hidden;
}

/* スマホでの表示調整 */
@media only screen and (max-width: 768px) {
    .gallery-modal .close {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }

    /* max-heightの計算式を修正しました。calc(100vh - 100px)など、適切な値に調整してください */
    .modal-main-image {
        max-height: calc(100vh - 100px); /* スマホでの高さ調整例 */
    }

    .modal-thumbnail {
        width: 60px;
        height: 45px;
    }
}