/*共通*/
:root {
    --main-color: rgb(232, 124, 42)
}


body {
    margin: 0;
    padding: 0;
    background-color: #fffaf5;
    font-size: 18px;
    font-family: 'Noto Sans JP', sans-serif;
}

section {
    padding-top: 80px;
    padding-bottom: 30px;
    max-width: 1000px;
    margin: auto;
}

section h3 {
    text-align: center;
    font-size: 25px;
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid #e0c9b6;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

section h3 span {
    letter-spacing: 2px;
}





/*-----------------ヘッダー---------------*/
/*ヘッダーの外側（画面上の固定等）*/
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 250, 245, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/*ヘッダーの中身（要素の配置等）*/
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/*ロゴ*/
a.logo {
    display: flex;
    align-items: center;
    margin-left: 50px;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 80px;
    width: auto;
}

/*店名*/
a.logo h1 {
    white-space: nowrap;
    font-size: 1.5rem;
    margin: 0;
}

.english {
    font-family: 'Crimson Text', serif;
    font-size: 1.6em;
    vertical-align: middle;
}

.japanese {
    font-family: 'Playfair Display', serif;
    font-size: 0.3em
}


/*ハンバーガーメニュー*/
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    z-index: 1001;
    color: #333;
}

.hamburger::before {
    content: "☰";
}

.hamburger.open::before {
    content: "✕";
}


/*ナビゲーション*/
.main-nav {
    margin-left: auto;
}

.main-nav>ul {
    list-style: none;
    display: flex;
    gap: 40px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 100px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--main-color)
}




/*---ドロップダウン---*/
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    flex-direction: column;
    background: white;
    padding: 10px;
}

.has-submenu.open .dropdown-content {
    display: flex;
}

.dropdown-content {
    list-style: none;
    display: none;
    padding: 0 10px;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(198, 150, 110, 0.95);
    border-radius: 12px;
    z-index: 1;
    width: max-content;
    max-height: 50px;
}


.dropdown-content::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(198, 150, 110, 0.95) transparent;
}


.dropdown-content a {
    color: inherit;
    padding: 10px;
    text-decoration: none;
    display: inline-block;
}



.dropdown-content a:hover {
    color: inherit;
    text-decoration: underline;
}




.dropdown-content li {
    display: flex;
    align-items: center;
}

.dropdown-content li+li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 20px;
    background-color: white;
    margin: 0 8px;
}



.has-submenu:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}


.has-submenu:hover .dropdown-content,
.has-submenu.open .dropdown-content {
    opacity: 1;
    visibility: visible;
}


/*-----------------フッター-----------------*/
footer {
    background-color: #f2e8dc;
    text-align: center;
    padding: 30px;
    font-size: 0.9em;
}

footer a {
    display: inline-block;
    padding: 10px;
}



/*---------------レスポンシブ対応----------------*/
/*iPad Air等でハンバーガーメニューが表示されないため1024pxに変更*/
@media (max-width: 1024px) {

    /*----------共通-------------*/
    body {
        overflow-x: hidden;
    }

    section {
        padding-left: 10px;
        padding-right: 10px;
    }


    /*-----------ヘッダー--------------*/
    .header-container {
        justify-content: space-between;
        padding-right: 5px;
        z-index: 1010;
    }

    h1 {
        text-align: center;
    }

    a.logo {
        justify-content: center;
        margin-left: 0;
    }

    /*---------ハンバーガーメニュー------------*/
    .hamburger {
        display: block;
    }

    .main-nav {
        flex-direction: column;
        background-color: rgba(255, 250, 245, 0.95);
        position: fixed;
        top: 80px;
        width: 100vw;
        z-index: 1005;
        gap: 15px;
        text-align: center;
        padding-bottom: 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.5s ease;
    }

    .main-nav a {
        writing-mode: horizontal-tb;
        white-space: nowrap;
    }


    .main-nav.active {
        flex-direction: column;
        right: 0;

        max-height: 80vh;
        opacity: 1;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .main-nav li a {
        text-decoration: none;
        color: inherit;
        writing-mode: horizontal-tb;
        white-space: nowrap;
        font-size: 18px;
        padding-left: 10px;
    }


    .dropdown-content {
        width: 100vw;
        left: 0;
        transform: none;
        flex-direction: column;
        position: static;
        border: none;
        background-color: rgba(255, 255, 255, 0.95);
        text-align: center;
        color: inherit;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease;
    }


    .dropdown-content.show {
        gap: 0;
        max-height: 40vh;
        opacity: 1;
    }

    .dropdown-content li+li::before {
        content: none;
        height: 0;
        width: 1ch;
    }


    .dropdown-content::before {
        content: none;
    }


    .overlay {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 900;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .main-nav.active+.overlay {
        opacity: 1;
        pointer-events: auto;
    }

}