/* 基本設定 */
body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
    background-color: #FAF0E6; /* 柔らかいベージュ */
}

h1, h2, h3 {
    margin-top: 0;
}

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

a {
    text-decoration: none;
    color: #333;
}

/* ヘッダー */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

header h1 {
    margin: 0;
}

header h1 a {
    display: flex;
    align-items: center;
    gap: 1rem; /* ロゴ間の余白 */
}

.logo {
    height: 50px; /* ロゴの高さを指定 */
    width: auto; /* 幅は自動調整 */
}

/* カズさんロゴのサイズ調整 */
img[alt="カズさん"] {
    height: 70px;
    position: relative;
    top: -3px; /* 位置を少し上に微調整 */
}

header nav ul {
    display: flex;
    gap: 1rem;
}

header nav a {
    font-family: ta-yuka, sans-serif;
    font-weight: 400;
    font-style: normal;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

header .header-reservation-btn { /* 詳細度を上げてスタイルを優先 */
    background-color: #ff4500; /* より目立つオレンジレッド */
    padding: 0.6rem 1.5rem; /* 左右のパディングを少し広げる */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-family: ta-yuka, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem; /* フォントサイズを大きく */
    border-radius: 50px; /* ボタンの左右を丸くする */
}

header .header-reservation-btn:hover {
    background-color: #cc3700;
}

/* メインコンテンツ */
main {
    max-width: 960px;
    margin: 6rem auto; /* 上下のマージンを調整 */
    padding: 0 2rem;
}

section {
    margin-bottom: 6rem; /* セクション間の余白を調整 */
    padding: 3rem 0; /* セクション内の上下の余白を調整 */
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-family: ta-yuka, sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* コンセプトセクションのデフォルト（スマホ版）スタイル */
#concept {
    display: flex;
    flex-direction: column;
    align-items: center; /* 子要素を中央揃え */
}

#concept h2 {
    text-align: center;
    margin-top: 2rem;
}

#concept p {
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* コンセプトセクションのフェードインを遅らせる */
#concept.fade-in {
    transition-delay: 0.4s;
}

.concept-image-container {
    filter: drop-shadow(8px 8px 0 orange);
    width: 90%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    margin: 1rem auto;
    position: relative; /* 子要素のabsolute配置の基準 */
}



/* PC表示用のレイアウト */
@media (min-width: 769px) {
    #concept {
        display: grid;
        grid-template-columns: 400px 1fr;
        grid-template-areas:
            "image title"
            "image text";
        gap: 0 2rem;
        align-items: start;
    }

    #concept .concept-image-container {
        grid-area: image;
        margin: 0;
        width: 400px;
        height: 400px;
        position: relative; /* 子要素のabsolute配置の基準 */
    }

    #concept h2 {
        grid-area: title;
        text-align: left;
        margin-top: 5rem; /* タイトルを下に下げる */
    }

    #concept p {
        grid-area: text;
        text-align: left;
        max-width: none;
        margin: 0;
    }
}

/* 画像プレースホルダー */
.placeholder-image {
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
    object-fit: cover; /* 縦横比を維持してトリミング */
    display: block; /* 画像下の余白を削除 */
    background-color: #ccc; /* 画像読み込み失敗時の背景 */
}

#main-visual {
    position: relative;
    text-align: center;
}

/* メインビジュアルのコンテナ（影と配置基準） */
#main-visual .main-visual-container {
    filter: drop-shadow(8px 8px 0 #9ACD32);
    position: relative; /* 画像を重ねるための基準 */
    height: 500px; /* コンテナ自体に高さを指定 */
}

/* メインビジュアルの画像（共通スタイル） */
#main-visual .main-visual-image {
    height: 100%;
    width: 100%;
    clip-path: url(#puddle-clip);
    -webkit-clip-path: url(#puddle-clip); /* Safari対応 */
    object-fit: cover; /* 縦横比を維持してトリミング */
    position: absolute; /* 画像を重ねる */
    top: 0;
    left: 0;
}

/* 上に重ねる画像にアニメーションを適用 */
#main-visual .main-visual-image-top {
    animation: fadeAnimation 10s infinite;
    object-position: 50% 45%; /* 表示位置を少し上にずらす */
}

/* フェードイン・アウトのアニメーション定義 */
@keyframes fadeAnimation {
    0% { opacity: 0; } /* フェードイン開始 */
    10% { opacity: 1; } /* フェードイン完了 */
    50% { opacity: 1; } /* 表示維持 */
    60% { opacity: 0; } /* フェードアウト開始 */
    100% { opacity: 0; } /* フェードアウト完了（次のサイクルへ） */
}

#main-visual h2 {
    position: absolute;
    top: -2rem;
    right: 5rem;
    font-size: 2rem;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
    margin: 0;
    display: flex; /* Flexコンテナ化 */
    gap: 0.5rem; /* 行間の設定 */
    flex-direction: row-reverse; /* 列の順序を反転 */
    align-items: flex-start; /* アイテムの高さをコンテンツに合わせる */
}

#main-visual h2 span {
    writing-mode: vertical-rl; /* 各行を縦書きに */
    text-orientation: mixed;
    background-color: white;
    padding: 0.5em 0.3em;
    display: block;
}

/* 新しいメニューセクション */
.new-menu-container {
    display: flex;
    justify-content: center; /* 中央寄せに変更 */
    gap: 1.5rem;
}

.menu-image {
    width: 32%; /* サイズを調整 */
    height: auto;
    object-fit: cover;
    border-radius: 8px; /* 少し角を丸める */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 影を追加 */
    cursor: pointer; /* クリックできることを示すカーソル */
    transition: transform 0.2s; /* ホバー時のアニメーション */
}

.menu-image:hover {
    transform: scale(1.05); /* ホバー時に少し拡大 */
}

/* 店舗情報 */
#info .info-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* マップ側の比率を大きくする */
    gap: 2rem;
    align-items: center;
}

#info dt {
    font-weight: bold;
    margin-top: 0.5rem;
}

#info dd {
    margin-left: 0;
}

#info .shop-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem; /* 後続の項目との間に余白を追加 */
}

.map-container {
    filter: drop-shadow(8px 8px 0 #9ACD32);
}

#info .map {
    width: 100%;
    height: 380px; /* マップの高さを調整 */
    border: none; /* iframeのデフォルトボーダーを消す */
}



/* お知らせ */
#news ul li {
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

#news time {
    margin-right: 1rem;
    font-weight: bold;
}

/* フッター */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    background-color: #f8f8f8;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-right {
        flex-direction: column-reverse; /* ボタンが上に来るように変更 */
        align-items: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    /* メニューセクションのスマホ対応 */
    .new-menu-container {
        flex-direction: column;
        align-items: center;
    }
    .menu-image {
        width: 90%;
        max-width: 400px;
    }

    main {
        margin: 3rem auto; /* スマホ版のマージン */
    }

    section {
        margin-bottom: 4rem; /* スマホ版のセクション間マージン */
        padding: 2rem 0; /* スマホ版のセクション内パディング */
    }

    header {
        flex-direction: column;
    }

    #info .info-grid {
        grid-template-columns: 1fr;
    }

    #main-visual h2 {
        top: 6rem; /* 上からの位置を調整してヘッダーとの重なりを回避 */
        right: 1rem; /* 右側の余白を調整 */
        font-size: 1.6rem; /* 文字サイズを少し小さく調整 */
    }
}

/* 予約フォーム */
.reservation-desc {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reservation-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    -webkit-appearance: none; /* iOSでのデフォルトスタイルをリセット */
    -moz-appearance: none;
    appearance: none;
}

.form-group select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9l-6-6h12z'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
    background-size: 12px;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    background-color: orange;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

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

/* ライトボックス */
.lightbox {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* 背景を白に変更 */
    overflow: auto;
    text-align: center;
    padding: 50px 20px 20px 20px;
    box-sizing: border-box;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #333; /* 閉じるボタンの色を黒に変更 */
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #000; /* ホバー時の色も変更 */
    text-decoration: none;
}

/* コンセプトセクションのアニメーション画像 */
.concept-image.concept-image-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: url(#puddle-clip);
    -webkit-clip-path: url(#puddle-clip);
    opacity: 0; /* 初期状態は非表示 */
    animation: conceptFadeAnimation 15s infinite; /* アニメーションを適用 */
}

/* 各画像のアニメーション開始タイミングをずらす */
.concept-image-animated:nth-child(1) { animation-delay: 0s; }
.concept-image-animated:nth-child(2) { animation-delay: 5s; }
.concept-image-animated:nth-child(3) { animation-delay: 10s; }

/* メインビジュアルのfadeAnimationを流用し、時間を調整 */
@keyframes conceptFadeAnimation {
    0% { opacity: 0; }
    10% { opacity: 1; } /* フェードイン完了 */
    33% { opacity: 1; } /* 表示維持 */
    43% { opacity: 0; } /* フェードアウト開始 */
    100% { opacity: 0; }
}

/* スクロールフェードイン用 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}