/* ページ遷移アニメーション用スタイル */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #bbb498;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.loading-content {
    text-align: center;
}

.loading-animation {
    width: 70vw;
    height: 70vh;
    max-width: 1000px;
    max-height: 800px;
    min-width: 400px;
    min-height: 400px;
    object-fit: contain;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .loading-animation {
        width: 80vw;
        height: 80vh;
        max-width: 500px;
        max-height: 500px;
        min-width: 300px;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .loading-animation {
        width: 90vw;
        height: 90vh;
        max-width: 400px;
        max-height: 400px;
        min-width: 250px;
        min-height: 250px;
    }
}

.main-content-hidden {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

header {
    background-color: #fff8dc;
    padding: 15px;
    border-bottom: 2px solid #8B4513;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    min-height: 80px;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fff8dc;
    min-height: 100vh;
    font-family: "vdl-v7gothic", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
    height: 50px;
}

.logo-link {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
}

.top-logo {
    max-height: 100px;
    width: auto;
}

.food-info {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 15px;
}

.food-icon {
    max-height: 45px;
    width: auto;
}

h1 {
    margin: 0;
    margin-right: 20px;
}

/* ヘッダー内のh1は元のスタイルを維持 */
header h1 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    margin-right: 20px;
}

.food-name {
    font-size: 2em;
    font-weight: 900;
    color: #8B4513;
    margin: 0;
    font-family: "vdl-v7gothic", sans-serif;
    font-style: normal;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 60px;
    height: 50px;
    z-index: 1001;
}

.hamburger-line {
    width: 45px;
    height: 4px;
    background-color: #8B4513;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff8dc;
    border: 2px solid #8B4513;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    z-index: 1002;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #8B4513;
    font-weight: 900;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    font-family: "vdl-v7gothic", sans-serif;
    font-style: normal;
}

.dropdown-menu a:hover {
    background-color: #f0e68c;
}

.dropdown-menu a:last-child {
    border-bottom: none;
    border-radius: 0 0 6px 6px;
}

nav {
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 10px;
}

nav a {
    text-decoration: none;
    color: #007bff;
    font-weight: 900;
    padding: 10px 20px;
    border: 1px solid #007bff;
    border-radius: 5px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    font-family: "vdl-v7gothic", sans-serif;
    font-style: normal;
}

nav a:hover {
    background-color: #007bff;
    color: white;
}

.content {
    margin: 15px 0;
    text-align: left;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main {
    margin-top: 120px;
    padding: 15px 0;
    margin-left: 40px;
    margin-right: 40px;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
}

/* 新しい写真レイアウト */
.photo-layout {
    display: flex;
    gap: 15px;
    margin: 20px auto;
    align-items: stretch;
    height: auto;
    max-height: none;
    max-width: 1200px;
    width: 90%;
}

.main-image {
    flex: 3;
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3; /* 縦横比を4:3に固定 */
    max-width: 1000px;
    width: 100%;
    height: 0; /* height: auto を height: 0 に変更してaspect-ratioを確実に適用 */
    padding-bottom: 75%; /* 4:3の比率を確保（3/4 * 100% = 75%） */
    position: relative;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.thumbnail {
    width: 100%;
    flex: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.thumbnail.active {
    border-color: #007bff;
    transform: scale(1.02);
}

/* 重複している .thumbnail-list の定義を統一 */
.thumbnail-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 25%;
    height: 100%;
    max-height: 90vh; /* サムネイルエリアの最大高さを設定 */
    overflow-y: auto; /* 縦スクロールを有効にする */
    overflow-x: hidden; /* 横スクロールを無効にする */
    padding: 10px;
    background-color: #fff8dc;
    border-radius: 8px;
    scrollbar-width: thin; /* Firefox用：スクロールバーを細くする */
    scrollbar-color: #ccc #f5f5f5; /* Firefox用：スクロールバーの色 */
}

/* Webkit系ブラウザ（Chrome, Safari）用のスクロールバーカスタマイズ */
.thumbnail-list::-webkit-scrollbar {
    width: 8px;
}

.thumbnail-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.thumbnail-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* サムネイル画像のスタイルを統一 */
.thumbnail {
    width: 100%;
    flex: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0; /* アイテムが縮小されないようにする */
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.thumbnail.active {
    border-color: #007bff;
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0,123,255,0.3);
}

/* content2以降のスクロールアニメーション */
.content2, .content3, .content4 {
    margin: 15px 0;
    text-align: left;
    opacity: 1;
    transform: translateY(0);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 見出しのスタイル */
h1, h2, h3, h4, h5, h6 {
    font-size: 1.6em;
    font-weight: 900;
    margin: 0;
    cursor: default;
    color: #8B4513;
    text-align: left;
    padding-left: 20px;
    font-family: "vdl-v7gothic", sans-serif;
    font-style: normal;
}

/* 店名のスタイル */
.store-name {
    font-size: 1.4em;
    font-weight: 900;
    color: #8B4513;
    text-align: left;
    padding-left: 20px;
    margin: 0;
    font-style: normal;
    font-family: "vdl-v7gothic", sans-serif;
}

/* 文字情報コンテナ */
.text-info-container {
    max-width: 1200px;
    width: 90%;
    margin: 15px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.store-name-container {
    max-width: 1200px;
    width: 90%;
    margin: 15px auto;
}

.product-title-container {
    max-width: 1200px;
    width: 90%;
    margin: 15px auto;
}

/* 具材の割合と感想を横並びにするスタイル */
.info-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 15px 0;
}

.info-row h2, .info-row h3, .info-row h4, .info-row h5, .info-row h6 {
    flex: 1;
    margin: 0;
    text-align: left;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #8B4513;
    border: 2px solid #f0f0f0;
    font-size: 1.2em;
}

/* スクロール時のフェードアップアニメーション */
@keyframes scrollFadeUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 筆者のおすすめセクション */
.author-recommendation {
    max-width: 1200px;
    width: 90%;
    margin: 30px auto;
    padding: 20px;
    background: transparent;
    border-radius: 15px;
    box-shadow: none;
    border: none;
}

.author-recommendation h2 {
    color: #8B4513;
    text-align: left;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding: 0;
    font-family: "vdl-v7gothic", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.recommendation-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.recommendation-text {
    flex: 2;
    text-align: left;
}

.recommendation-text p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #333;
    font-family: "vdl-v7gothic", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.recommendation-text strong {
    color: #8B4513;
    font-weight: 900;
    font-family: "vdl-v7gothic", sans-serif;
    font-style: normal;
}

.recommendation-highlight {
    flex: 1;
    background: #fff8dc;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #f0f0f0;
}

.recommendation-highlight h3 {
    color: #8B4513;
    text-align: left;
    margin-bottom: 15px;
    padding: 0;
    font-size: 1.3em;
    font-family: "vdl-v7gothic", sans-serif;
    font-weight: 900;
    font-style: normal;
}

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

.recommendation-highlight li {
    padding: 8px 0;
    color: #333;
    position: relative;
    padding-left: 20px;
    font-family: "vdl-v7gothic", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.recommendation-highlight li:before {
    content: "★";
    color: #FFD700;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 該当商品ボタン */
.recommendation-button-container {
    text-align: center;
    margin-top: 20px;
}

.recommendation-button {
    background: white;
    color: #333;
    padding: 12px 25px;
    border: 2px solid #8B4513;
    border-radius: 20px;
    font-size: 1em;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "vdl-v7gothic", sans-serif;
    font-style: normal;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.recommendation-button:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
}

.recommendation-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

/* 他の商品も見るセクション */
.other-products-section {
    max-width: 1200px;
    width: 90%;
    margin: 30px auto;
    padding: 0 20px;
}

.other-products-label {
    color: #333;
    font-size: 1.4em;
    font-weight: 900;
    margin-bottom: 20px;
    text-align: left;
    font-family: "vdl-v7gothic", sans-serif;
    font-style: normal;
}

.top-link:hover {
    color: #666;
}

.food-container {
    display: flex;
    width: 100%;
    margin: 0;
    gap: 15px;
    padding: 0;
}

.food-link {
    flex: 1;
    text-decoration: none;
    color: #333;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
}

.food-name-label {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    font-family: "vdl-v7gothic", sans-serif;
    font-size: 1.1em;
    font-weight: 900;
    font-style: normal;
    text-align: center;
    white-space: nowrap;
    z-index: 4;
}

.food-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.food-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.arrow-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: #333;
    z-index: 3;
    transition: all 0.3s ease;
}

.food-link:hover .arrow-icon {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

.food-logo {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.4s ease-out;
    z-index: 2;
}

.food-logo img {
    max-width: 120px;
    max-height: 120px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.food-link:hover .food-logo {
    bottom: 50%;
    transform: translate(-50%, 50%);
}

.food-link:hover .food-overlay {
    background: rgba(0, 0, 0, 0.2);
}
