html,
body {
    /* min-height: 100%; */
    margin: 0;
    padding: 0;
    font-size: 10px;
    box-sizing: border-box;
    font-family: "Noto Sans JP", sans-serif;
    height: auto;
    min-height: auto;
}
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li {
    margin: 0;
}
*,
*:before,
*:after {
    box-sizing: inherit;
}
ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
    color: inherit;
}
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    /* min-height: 100%; */
    min-height: 100vh;
    margin: 0;
    position: relative;
}

body main {
    flex: 1;
    /* flex-grow: 1; */
    flex: 1 0 auto;
}
.font-noto-sans {
    font-family: "Noto Sans JP", sans-serif;
}
.font-noto-serif {
    font-family: "Noto Serif JP", serif;
}
.font-noto-bold {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
}
.font-garamond {
    font-family: "EB Garamond", serif;
}
.matome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 3rem auto 0;
}
.matome h1 {
    font-size: 3.6rem;
    font-weight: bold;
    margin-bottom: 2rem;
}
.matome .page-link-list {
    font-size: 2.4rem;
}
.matome .page-link-list a:hover {
    opacity: 0.8;
}
.pc {
    display: revert;
}
.sp {
    display: none;
}
@media screen and (max-width: 768px) {
    .pc {
        display: none;
    }
    .sp {
        display: revert;
    }
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8.8rem;
    padding-left: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}

.logo {
    width: 20%;
    max-width: 22.4rem;
    margin-left: 2.4rem;
}
.logo img {
    width: 100%;
}

.nav .flex li.active {
    background-color: #f5f5f5;
    border-bottom: 2px solid #f5f5f5;
    margin-bottom: -2px;
}
.nav ul li {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}
.nav ul li a:hover {
    opacity: 0.7;
}
.map {
    max-width: 13rem;
    width: 13rem;
    height: 100%;
}
.shop {
    max-width: 34.3rem;
    width: 34.3rem;
}
.area {
    max-width: 35.8rem;
    width: 35.8rem;
}
.menu-brand-top {
    min-width: 18.6rem;
}
.menu-brand-search {
    min-width: 36.7rem;
}
.menu-brand-search .item-name {
    margin-right: 1rem;
}

header {
    margin: 0;
}

.logo {
    font-size: 1.5rem;
}

.nav {
    display: flex;
    height: 100%;
}

.nav li {
    flex: 1;
    display: flex;
    align-items: center;
    border-left: 1px solid #ccc;
    padding: 0 1.6rem;
    height: 100%;
    cursor: pointer;
}

.nav li a {
    color: #333;
    text-decoration: none;
}
.nav .flex {
    display: flex;
    height: 100%;
    align-items: center;
}

input[type="text"].shop-name,
input[type="text"].area-name-header,
input[type="text"].brand-name-header {
    width: 20rem;
    height: 4.8rem;
    border: 1px solid #999999;
    border-radius: 4px;
    padding: 1rem;
    box-sizing: border-box;
    font-size: 1.5rem;
    font-weight: normal;
    position: relative;
    z-index: 5;
}
input[type="text"].shop-name {
    padding-left: 5rem;
}
.area > span,
.shop > span {
    margin-right: 1.5rem;
}

.select-wrapper {
    position: relative;
    display: inline-block;
}

.select-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 2px);
    z-index: 1;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 32rem;
    overflow-y: auto;
    width: 22rem;
}

.select-list li {
    display: flex;
    padding: 0 0.5rem;
    height: 3.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.nav .flex li .select-list li {
    font-weight: normal;
    /* padding: 2rem; */
    padding: 0;
    height: 4rem;
}
.nav .flex li .select-list li a {
    display: flex;
    padding: 0 2rem;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: left;
}

.select-list li:hover {
    background-color: #f5f5f5;
}

.select-list li.selected {
    background-color: #f5f5f5;
}

.select-list li.active {
    background-color: #f5f5f5;
}

.select-wrapper input {
    height: 2rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px 4px 0 0;
}

.select-wrapper input:focus + .select-list {
    display: block;
}
.footer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 20.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #ebebeb;
}
.footer-contents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.policy-link {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    margin-bottom: 4.8rem;
}
.policy-link > div > a:after {
    /* 矢印の画像を右端に表示 */
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1.2rem;
    background-image: url(./images/arrow2.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 1rem;
}
.policy-link > div + div {
    margin-left: 4rem;
}
.policy-link a:hover {
    opacity: 0.7;
}

html {
    position: relative;
}
.copy-right {
    font-size: 1.6rem;
    color: #999999;
}
@media screen and (max-width: 768px) {
    .copy-right {
        font-size: 1.4rem;
    }
    .policy-link {
        flex-direction: column;
    }
    .policy-link > div + div {
        margin-left: 0;
        margin-top: 2rem;
    }
}

/* modal */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}
.overlay {
    display: none;
}

.modal {
    background-color: #fff;
    border-radius: 10px;
    position: relative;
    max-width: 800px;
    padding: 3.2rem 5.6rem 5.6rem;
}

.close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background-color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.show {
    display: flex;
}

@media screen and (max-width: 768px) {
    .nav .flex {
        justify-content: center;
    }
    .modal {
        width: 90%;
        padding: 3.2rem 2.4rem;
        max-height: 90%;
        overflow: scroll;
    }
    .modal.flex {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    .modal.left {
        margin-bottom: 1rem;
    }
    .modal.right {
        width: 100%;
    }
    .music-player {
        margin-left: 0;
        width: 100%;
    }
    .volume {
        width: 4rem;
    }
    .play-button {
        width: 3rem;
    }
    .modal.close {
        padding: 0;
        width: 3rem;
        right: 1.2rem;
    }
}
.title-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 3.6rem;
}
.title-wrap .title {
    display: inline-block;
    font-size: 2.4rem;
}

@media (min-width: 768px) {
    .d-lg-none {
        display: none !important;
    }
}
@media (max-width: 767px) {
    .header.brand-header {
        border: none;
    }
    .brand-header .nav ul li {
        border: none !important;
    }
    /* .bs */
    .brand-header .nav ul li.menu-brand-top a,
    .brand-header .nav ul li.menu-brand-search a {
        padding: 0;
        font-size: 1.2rem;
    }
    .brand-header .select-wrapper {
        max-width: 168px;
        font-size: 1.4rem;
    }
    input[type="text"].brand-name-header {
        width: 100%;
        font-size: 1.4rem;
        padding: 0.5rem 1rem;
        border: 1px solid #ccc;
        /* border-radius: 4px 4px 0 0; */
    }
    .menu-brand-search {
        position: relative;
    }
    .menu-brand-search:before {
        content: "";
        position: absolute;
        display: inline-block;
        width: 1px;
        height: 50%;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        background: #cccccc;
    }
 
    .text-sm-center {
        text-align: center;
    }
}
