/* 基本スタイルとリセット */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Noto Sans JP', '游ゴシック', YuGothic, 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    color: #fff;
    text-align: center;
    min-width: 320px;
    overflow-x: hidden;
}

h1 {
    font-size: calc(2em + 2vw);
    line-height: 120%;
    margin: 15px auto;
}

h2 {
    font-size: calc(1em + .5vw);
    margin: 0;
    text-align: left;
}

.slide h2 {
    text-align: center;
}

/* セクションとスライドの背景設定 */
.fp-section,
.slide {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    min-height: 100vh;
}

/* オーバーレイ基本スタイル */
.overlay {
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* コンテンツ領域スタイル */
.content {
    width: 80%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

/* 区切り線スタイル */
hr {
    border: none;
    height: 2px;
    background-color: #fff;
    margin: 20px auto 40px;
    width: 15%;
}

/* セクションごとの背景画像 */
#section0 {
    background-image: url(http://ondorupang.com/images/background02.jpg);
}

#section1, #section2, #section3 {
    background-image: url(http://ondorupang.com/images/background03.jpg);
}

/* スライドごとの背景画像 */
#slide0 {
    background-image: url(http://ondorupang.com/images/background01.jpg);
}

#slide1 {
    background-image: url(http://ondorupang.com/images/background05.jpg);
}

#slide2 {
    background-image: url(http://ondorupang.com/images/background02.jpg);
}

#menu0 {
    background-image: url(http://ondorupang.com/images/background02.jpg);
}

/* slide0 ロゴスタイル */
#slide0 logo {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto;
}

#slide0 logo img {
    width: 80%;
    max-width: 500px;
}

/* section1 画像リストスタイル */
#section1 ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 0;
    list-style: none;
    margin: 30px 0;
}

#section1 ul > li {
    position: relative;
    padding-bottom: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

#section1 ul > li > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6);
}

/* メニュースライド画像スタイル */
#menu1 img, #menu2 img, #menu3 img, #menu4 img, #menu7 img, #menu8 img, #menu9 img, #menu10 img {
    width: 100%;
    height: calc(100vh * 5 / 6);
    width: 100%;
    object-fit: contain;
}

/* section3 iframeスタイル */
#section3 iframe {
    width: 100%;
    height: calc(100vh * 1 / 2);
    display: block;
    margin: 0 auto 20px;
    border: none;
    overflow: hidden;
}

/* ヘッダーとフッターの固定 */
#header,
#footer {
    position: fixed;
    width: 100%;
    z-index: 9;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    top: 0;
    height: 80px;
    padding: 0 20px;
    box-sizing: border-box;
}

#header logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

#header logo img {
    width: 20vw;
    max-width: 338px;
    min-width: 238px;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* デスクトップナビゲーションメニュー */
#menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: 100%;
}

#menu li {
    color: #000;
    margin-left: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px 0 0;
}

#menu li a {
    text-decoration: none;
    color: #000;
    display: block;
    height: 100%;
    display: flex;
    align-items: center;
}

#menu li.active a,
#menu li.active:hover a {
    color: #d32f2f;
}

/* 予約ボタンのスタイル */
#menu li.reservation {
    background-color: #d32f2f;
    border: none;
    padding: 9px 18px;
    border-radius: 5px;
}

#menu li.reservation a {
    color: #fff;
}

#menu li.reservation:hover {
    background-color: #000;
}

#menu li.reservation:hover a {
    color: #fff;
}

/* フッター */
#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    height: 80px;
    padding: 0 20px;
    box-sizing: border-box;
    bottom: 0;
    color: #fff;
}

#footer .logo {
    display: none;
}

/* フッターリンクスタイル */
#link {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

#link li {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-left: 20px;
    background-color: #d32f2f;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 0.3s ease;
}

#link li.hitosara {
    background-image: url('../images/link01.png');
}

#link li.tabelog {
    background-image: url('../images/link02.png');
}

#link li.instagram {
    background-image: url('../images/link03.png');
}

#link li:hover {
    background-color: #000;
}

#link li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: transparent;
    font-size: 0;
}

/* ハンバーガーメニューアイコン */
.hamburger-menu {
    width: 30px;
    height: 25px;
    position: absolute;
    right: 20px;
    top: 27px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
}

/* モバイルメニューオーバーレイ */
#mobile-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99;
    transition: right 0.3s ease-in-out;
    padding-top: 60px;
    box-sizing: border-box;
    overflow-y: auto;
}

#mobile-menu.open {
    right: 0;
}

/* 閉じるボタン */
.close-menu-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 101;
    line-height: 1;
    padding: 5px;
}

.close-menu-button:hover {
    opacity: 0.7;
}

/* モバイルメニューリスト */
#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#mobile-menu ul li {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu ul li:last-child {
    border-bottom: none;
}

#mobile-menu ul li a {
    display: block;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

#mobile-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* モバイルメニュー予約ボタン */
#mobile-menu ul li.reservation {
    margin-top: 20px;
    background-color: #d32f2f;
    border-radius: 5px;
    border: none;
    padding: 0;
    display: inline-block;
    width: calc(100% - 40px);
    box-sizing: border-box;
    overflow: hidden;
}

#mobile-menu ul li.reservation a {
    color: #fff;
    transition: background-color 0.3s ease;
}

#mobile-menu ul li.reservation a:hover {
    background-color: #333;
    color: #fff;
}

/* 767px以下の画面に適用されるスタイル (メディアクエリ) */
@media (max-width: 767px) {
    /* ヘッダーロゴのサイズ調整 */
    #header logo img {
        width: 35vw;
        min-width: 150px;
        max-width: 250px;
    }

    #menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        top: 20px; /* ハンバーガーアイコン位置調整 */
    }

    #header {
        justify-content: space-between;
    }

    /* slide0 ロゴスタイル調整 */
    #slide0 logo {
        margin: 20px auto;
    }

    #slide0 logo img {
        width: 80%;
    }

    /* フッター調整 */
    #footer {
        position: relative;
        flex-direction: column-reverse;
        height: auto;
        padding: 10px 0;
    }

    #footer .logo {
        display: block;
        width: 100%;
        margin: 20px auto 10px;
    }

    #footer .logo hr {
        margin: 30px auto;
    }

    #footer .logo img {
        margin: 20px auto;
        width: 80%;
    }

    #footer p {
        margin: 20px auto 40px;
        font-size: 0.9em;
    }

    #footer p span {
        display: block;
    }

    #link {
        justify-content: center;
        margin: 20px 0;
    }

    #link li {
        margin: 0 10px;
        width: 40px;
        height: 40px;
    }

    /* fullpage.js レスポンシブ設定 */
    .fp-responsive .fp-section.fp-auto-height,
    .fp-responsive .fp-slide.fp-auto-height {
        height: auto !important;
    }

    /* セクションコンテンツのパディング調整 */
    .content {
        padding: 10px;
    }

    /* テキストサイズ調整 */
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1em;
    }

    /* section1 画像比率調整 */
    #section1 ul > li {
        padding-bottom: 75%;
    }

    /* メニュー画像高さ調整 */
    #menu1 img, #menu2 img, #menu3 img, #menu4 img, #menu7 img, #menu8 img, #menu9 img, #menu10 img {
        height: auto;
        max-height: 80vh;
    }

    /* 地図の高さ調整 */
    #section3 iframe {
        height: 300px;
    }
}

/* 480px以下の画面に適用されるスタイル (メディアクエリ) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 0.9em;
    }

    #section1 .overlay {
        height: 100%;
    }

    #section1 .content {
        padding: 100px 0;
    }

    #header {
        height: 60px;
    }

    #header logo img {
        min-width: 120px;
    }

    .hamburger-menu {
        width: 25px;
        height: 20px;
        top: 20px;
    }

    .hamburger-menu .bar {
        height: 2px;
    }

    #mobile-menu {
        width: 200px;
        right: -200px;
    }

    #mobile-menu ul li a {
        font-size: 1em;
        padding: 12px 0;
    }

    #link li {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }

    #footer p {
        font-size: 0.8em;
    }
}