/* ---------------------------------------------------------------------- */
/* モーダル用CSS */
/* ---------------------------------------------------------------------- */

.modal-area {
    /* visual */
    visibility: hidden; /* display:noneではtransitionは適用されない */
    opacity: 0;
    position: fixed;
    z-index: 999; /* 適宜調整 */
    top: 0;
    left: 0;
    /* box */
    width: 100%;
    height: 100%;
    padding: 20px ;
    /* background */
    background-color: rgba(0, 0, 0, 0.5);
    /* animation */
    transition: .2s ease-in-out;
}

.modal-area.is-active {
    visibility: visible;
    opacity: 1;
}

.modal-container {
    /* visual */
    position: fixed;
    /* box */
    max-width: var(--w-wrapper);
    width: 100%;
    height: 100%;
    inset: 0;
    margin: auto;
}

.modal-content {
    /* visual */
    visibility: hidden;
    position: absolute;
    bottom: 2.0rem;
    /* box */
    width: 100%;
    height: 85%;
    padding: 20px;
    overflow-y: auto;
    scroll-behavior: smooth;
    /* background */
    background-color: var(--c-white);
    /* animation */
    transition: .4s ease-in-out;
}

.modal-content.is-active {
    /* visual */
    visibility: visible;
}

/* ---------------------------------------------------------------------- */
/* モーダル内カテゴリのCSS */
/* ---------------------------------------------------------------------- */
ul.category-list {
    /* visual */
    display: flex;
    flex-wrap: wrap;  /* 折り返し */
    list-style: none;
    /* box */
    margin: 0px;
    padding: 0px;
}

.category-list li {
    /* visual */
    display: flex;
    justify-content: center;
    align-items: center;
    /* box */
    width: calc(100% / 3);
    height: 10rem;
    padding: 5px;
    border: 1px solid var(--c-gray);
    /* background */
    background-color: var(--c-white);
    /* font, text, color */
    font-size: var(--f-medium);
    font-weight: bold;
    text-align: center;
    /* UI */
    user-select: none;
}

.category-list li:hover {
    /* background */
    background-color: var(--c-gray);
}

/* ---------------------------------------------------------------------- */
/* モーダル内詳細カテゴリ用CSS */
/* ---------------------------------------------------------------------- */
ul.detail-category-list {
    /* visual */
    display: flex;
    flex-wrap: wrap;  /* 折り返し */

    list-style: none;
    /* box */
    margin: 0px;
    padding: 0px;
}

section.category-group {
    /* display */
    display: none;

    /* box */
    width: 100%;
    padding-top: 10px;
}

section.category-group.is-active {
    /* display */
    display: block;
}

.detail-category-list li {
    /* visual */
    display: flex;
    justify-content: left;
    align-items: center;
    /* box */
    width: calc(100% / 2);
    height: 5rem;
    padding: 5px;
    overflow: hidden;
    border: 1px solid var(--c-gray);
    /* background */
    background-color: var(--c-white);
    /* font, text, color */
    font-size: var(--f-medium);
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* UI */
    user-select: none;
}

.detail-category-list li:hover {
    /* background */
    background-color: var(--c-gray);
}

/* ---------------------------------------------------------------------- */
/* モーダル内マップのCSS */
/* ---------------------------------------------------------------------- */
.map-modal-content {
    /* box */
    padding: 0;
}
.modal-map-wrapper {
    /* box */
    width: 100%;
    height: 100%;
}

.modal-map {
    /* box */
    width: 100%;
    height: 100%;
}

.modal-map .leaflet-tile-pane {
    filter: grayscale(50%);
}

/* ボタン */
.map-modal-content button {
    /* visual */
    position: absolute;
    bottom: 5%;
    left: 50%; /* 水平中央に配置 */
    transform: translateX(-50%); /* 水平中央に配置 */
    z-index: 999; /* 適宜調整 */
    /* box */
    width: max-content;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    /* background */
    background-color: var(--c-red);
    /* font, text, color */
    color: var(--c-white);
    font-size: var(--f-medium);
    font-weight: bold;
}

/* ---------------------------------------------------------------------- */
/* モーダル内タブのCSS */
/* ---------------------------------------------------------------------- */
.tab-list-wrapper {
    /* visual */
    position: relative;

    /* box */
    width: 100%;
    overflow-y: auto;
}

ul.tab-list {
    /* visual */
    display: inline-flex;
    justify-content: flex-start;
    gap: 5px;
    list-style: none;

    /* box */
    margin: 0px;
    padding: 0px;
    overflow-x: auto;
    scrollbar-width: none;
}

ul.tab-list li {
    /* visual */
    display: flex;
    justify-content: left;
    align-items: center;

    /* box */
    width: 15rem;
    height: 5rem;
    padding: 5px 10px;
    overflow: hidden;
    border: 1px solid var(--c-gray);

    /* background */
    background-color: var(--c-gray);

    /* font, text, color */
    font-size: var(--f-medium);
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;

    /* UI */
    user-select: none;
}

ul.tab-list li.is-active {
    /* background */
    background-color: var(--c-blue);
    /* font, text, color */
    color: var(--c-white);
}

/* ---------------------------------------------------------------------- */
/* モーダルを閉じるボタンのCSS */
/* ---------------------------------------------------------------------- */
.modal-close-btn {
    display: block;
    position: relative;
    top: 4%;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 2px solid var(--c-white); /* 枠の調整 */
    border-radius: 50%;  /* 丸みの度合い */
    background: var(--c-white); /* ボタンの背景色 */
}

.modal-close-btn.is-active {
    /* visual */
    visibility: visible;
}

.modal-close-btn::before, .modal-close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px; /* 棒の幅（太さ） */
    height: 22px; /* 棒の高さ */
    background: var(--c-blue); /* バツ印の色 */
}
   
.modal-close-btn::before {
    transform: translate(-50%,-50%) rotate(45deg);
}
   
.modal-close-btn::after {
    transform: translate(-50%,-50%) rotate(-45deg);
}