:root {
    --gold: #c5a059;
    --black: #121212;
    --dark-gray: #1e1e1e;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
}

h1, h2, .en-title { font-family: 'Cinzel', 'Noto Serif JP', serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
    position: fixed; width: 100%; z-index: 100;
    padding: 30px 0; transition: 0.5s;
}

header.scrolled {
    background: rgba(18, 18, 18, 0.9);
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; letter-spacing: 4px; color: var(--gold); }
.pc-nav ul { display: flex; list-style: none; align-items: center; }
.pc-nav a { color: white; text-decoration: none; margin-left: 40px; font-size: 0.8rem; letter-spacing: 2px; }
.reserve-btn { border: 1px solid var(--gold); padding: 10px 25px; color: var(--gold) !important; }

/* Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('images/hero1.jpg') center center/cover;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}

.hero-sub { color: var(--gold); letter-spacing: 8px; margin-bottom: 20px; font-weight: 500; }
.hero-title { font-size: 5rem; letter-spacing: 15px; }

/* Sections */
.section { padding: 120px 0; }
.gray-bg { background-color: var(--dark-gray); }
.en-title { color: var(--gold); display: block; margin-bottom: 10px; font-size: 0.9rem; }
h2 { font-size: 2.2rem; margin-bottom: 30px; letter-spacing: 3px; }

.flex-box { display: flex; align-items: center; gap: 60px; }
.text-side { flex: 1; }
.img-side { flex: 1; }
.img-side img { width: 100%; height: auto; border-radius: 2px; }

/* Menu Grid */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.menu-img { overflow: hidden; margin-bottom: 20px; height: 300px; }
.menu-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.menu-img:hover img { transform: scale(1.1); }
.menu-item h3 { font-size: 1.1rem; margin-bottom: 5px; }
.menu-item p { color: var(--gold); }

/* Animation */
.reveal { opacity: 0; transform: translateY(50px); transition: 1.5s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Footer */
footer { padding: 80px 0 20px; border-top: 1px solid #333; }
.footer-grid { display: flex; justify-content: space-between; margin-bottom: 50px; }
.dummy-map { background: #333; height: 200px; width: 400px; display: flex; align-items: center; justify-content: center; }
.copy { text-align: center; font-size: 0.7rem; color: #666; }

@media (max-width: 768px) {
    .flex-box, .menu-grid, .footer-grid { grid-template-columns: 1fr; flex-direction: column; }
    .hero-title { font-size: 2.5rem; }
    .pc-nav { display: none; }
}

/* ロゴのサイズ調整 */
.logo img {
    height: 60px; /* お好みの高さに調整してください */
    width: auto;
    display: block;
}

/* YouTubeのレスポンシブ対応 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9の比率 */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 40px auto 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Instagramセクション */
.instagram-feed-wrapper {
    margin-top: 40px;
    min-height: 400px;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
}

.insta-placeholder {
    text-align: center;
}

.insta-link-btn {
    display: inline-block;
    margin-top: 20px;
    color: var(--gold);
    text-decoration: none;
    border: 1px solid var(--gold);
    padding: 10px 20px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.insta-link-btn:hover {
    background: var(--gold);
    color: var(--black);
}

.center-title {
    text-align: center;
    margin-bottom: 50px;
}

/* 姉妹店バナー */
.sister-shop-banner {
    height: 530px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('images/link.png') center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--gold);
    transition: 0.5s;
}

.sister-shop-banner:hover {
    transform: scale(1.02);
}

.banner-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.visit-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: 0.3s;
}

.visit-btn:hover {
    background: var(--gold);
    color: var(--black);
}

/* メニューページ専用スタイル */
.sub-page #header { background: rgba(18, 18, 18, 0.95); }

.page-header {
    padding: 180px 0 60px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.menu-page-content { padding: 80px 20px; max-width: 800px; }

.menu-category { margin-bottom: 80px; }

.category-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.menu-item-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dotted #444;
    font-size: 1.1rem;
}

.item-price { font-family: 'Cinzel', serif; color: var(--gold); }

.menu-note {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

/* Instagram グリッド */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.insta-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    filter: grayscale(30%);
}

.insta-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.center-btn { text-align: center; }

/* 店舗情報グリッド */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.info-details dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px 0;
}

.info-details dt {
    color: var(--gold);
    font-weight: bold;
    font-size: 0.9rem;
}

.info-details dd {
    color: var(--white);
    font-size: 1rem;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

/* Google Map レスポンシブ */
.info-map {
    position: relative;
    padding-bottom: 75%; /* 4:3の比率 */
    height: 0;
    overflow: hidden;
    border: 1px solid var(--gold);
}

.info-map iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* --- 店舗情報のレスポンシブ修正 --- */
@media (max-width: 768px) {
    .info-grid {
        display: block; /* グリッドを解除 */
    }

    .info-details dl {
        display: block; /* 縦並びに変更 */
        margin-bottom: 40px;
    }

    .info-details dt {
        font-size: 0.8rem;
        margin-bottom: 5px;
        letter-spacing: 2px;
        border-left: 3px solid var(--gold); /* 項目の左にアクセント線 */
        padding-left: 10px;
    }

    .info-details dd {
        font-size: 1.1rem; /* 文字を少し大きく */
        margin-bottom: 25px; /* 項目間の余白を広く */
        padding-left: 13px; /* アクセント線と合わせる */
        border-bottom: none; /* 下線を消してスッキリ */
        line-height: 1.6;
    }

    .info-map {
        width: 100%;
        aspect-ratio: 1 / 1; /* スマホでは地図を正方形にして見やすく */
        margin-top: 20px;
    }
}

/* --- 姉妹店バナーのレスポンシブ設定 --- */

/* PC版の基本設定 */
.sister-shop-banner {
    display: block;
    width: 100%;
    height: 350px; /* PCでの高さ */
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

/* 札幌本店（PC） */
.banner-1 {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/banner_sapporo_pc.jpg');
}

/* 小樽別邸（PC） */
.beittei-banner {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/link.png');
}

/* PC版（これまでの設定を維持） */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000; /* 読み込み前の背景色 */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 600px;
    text-align: center;
}

/* ★スマホ版の最適化（ここを修正） */
@media screen and (max-width: 767px) {
    .hero {
        height: auto; /* 画面いっぱいの指定を解除 */
        display: block; /* フレックスを解除 */
    }

    .hero-video {
        position: relative; /* 絶対配置を解除して、高さを確保する */
        width: 100%;
        height: auto; /* 動画の比率を維持 */
        display: block;
    }

    .hero-text {
        position: absolute; /* 動画の上に重ねる */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* 真ん中に配置 */
        width: 60%; /* ロゴを少し小さめに（お好みで） */
    }

    .scroll-down {
        display: none; /* スマホ版で動画が短い場合は非表示にしてもOK */
    }
}

/* Heroセクションのレイアウト設定 */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* 画面いっぱいの高さ */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ビデオを背景として全画面表示 */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* アスペクト比を維持して隙間なく表示 */
    z-index: 1;
}

/* ロゴなどのテキストを最前面へ */
.hero-text {
    position: relative;
    z-index: 2;
    width: 80%; /* 必要に応じて調整 */
    max-width: 600px;
}

/* スクロール表示も前面へ */
.scroll-down {
    z-index: 2;
}


/* --- ハンバーガーメニューのスタイル --- */

/* PCでは隠す */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001; /* メニューより上に配置 */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    position: absolute;
    transition: 0.4s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

/* クリックした時の「×」アニメーション */
.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* --- スマホ時のレイアウト変更 --- */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* スマホで表示 */
    }

    @media (max-width: 768px) {
    /* もし以前のコードで nav { display: none; } が残っていたら、これを「見える状態」に強制します */
    .pc-nav {
        display: block !important; /* 強制的に表示 */
        visibility: visible !important;
        position: fixed;
        top: 0;
        right: -100%; /* 最初は右側に隠れている */
        width: 80%;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98); /* 背景色 */
        padding-top: 100px;
        transition: 0.5s ease;
        z-index: 1000;
        border-left: 1px solid var(--gold);
    }

    /* JavaScriptで「open」クラスがついた瞬間に画面内にスライドさせる */
    .pc-nav.open {
        right: 0 !important;
    }

    /* メニュー内の文字が消えていないか確認（背景と同じ黒になっていないか） */
    .pc-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        list-style: none;
    }

    .pc-nav a {
        color: var(--white) !important; /* 文字を白に強制 */
        margin-left: 0;
        margin-bottom: 40px;
        font-size: 1.2rem;
        text-decoration: none;
        display: block;
    }
}}