/*==========================
 リセット・基本設定
==========================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Yu Gothic", "ヒラギノ角ゴ Pro", Meiryo, sans-serif;
}

/*==========================
 ナビゲーション全体
==========================*/

div#dropdown {
    margin-top: 10px;
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu a {
    text-decoration: none;
    display: block;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/*==========================
 メインメニュー
==========================*/

.dropdown-menu > ul {
    display: flex;
    justify-content: center;
    background-color: #DB6010;
}

.dropdown-menu > ul > li {
    position: relative;
}

.dropdown-menu > ul > li > a {
    padding: 12px 20px;
    color: #FFEEDB;
    font-weight: bold;
    border-right: 1px solid #FFEEDB;
}

.dropdown-menu > ul > li:last-child > a {
    border-right: none;
}

.dropdown-menu > ul > li:hover > a {
    background-color: #FFEED8;
    color: #5B2908;
}

/*==========================
 サブメニュー
==========================*/

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background-color: #DB6010;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.submenu li a {
    position: relative;
    color: #FFEEDB;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.submenu li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #FFEEDB;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.submenu li a:hover::after {
    width: 100%;
    background-color: #5B2908;
}

.has-submenu:hover > .submenu {
    visibility: visible;
    opacity: 1;
}

.submenu li a:hover {
    background-color: #FFEED8;
    color: #5B2908;
}