#overlay {
    /*オーバーレイのCSS*/
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    display: none;
    background: rgba(0, 0, 0, 0.6);
}

.overlay-menu-btn.btn1 {
    position: absolute;
    cursor: pointer;
    z-index: 100001;
}

.overlay-menu-btn.btn1 {
    top: 10px;
    right: 2%;
    height: 50px;
}

.overlay-menu-btn.btn2 {
    text-align: center;
    padding: 2%;
}

.overlay-menu-btn.btn2 button {
    padding: 5px 20px;
}

.overlay-menu-inner {
    padding: 2%;
}

.overlay-menu-header {
    width: 100%;
    height: 30px;
    line-height: 30px;
    color: #37538C;
    font-size: 20px;
    text-align: center;
}

.overlay-menu-item ul {
    padding: 0;
    list-style-type: none;
}

.overlay-menu-item ul li {
    border-top: 1px solid #cccccc;
}

.overlay-menu-item ul li:nth-child(2n+1) {
    background-color: #e9ebee;
}

.overlay-menu-item ul li:last-child {
    border-bottom: 1px solid #cccccc;
}

.overlay-menu-item ul li a {
    display: block;
    padding: 5px;
    color: #337ab7;
    text-decoration: none;
    transition: 0.5s;
}

.overlay-menu-item ul li a:hover {
    color: #fff;
    background-color: #666666;
}

.overlay-outer {
    /*オーバーレイ内の要素を上下・左右中央揃え*/
    width: 100%;
    max-width: 600px;
    height: 100%;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.overlay-inner {
    position: relative;
    background-color: #FFF;
    border-radius: 10px;
}

.overlay-inner::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 160px;
    width: 0px;
    height: 0px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    border-width: 20px 20px 20px 20px;
    transform: rotate(45deg);
}

.close-btn {
    background-color: #eee;
    border: solid #ccc 1px;
    cursor: pointer;
}

.close-btn:hover {
    background-color: #37538C;
    color: #FFF;
}

.flex {
    display: flex;
    border: 1px solid #333;
}

.overlay-menu-item {
    overflow: auto;
    max-height: 600px;
}

.h-header-topics {
    position: relative;
}

#h-header-topics-btn {
    width: 50px;
    height: 50px;
    border: none;
    background-color: transparent;
    background-image: url('../img/bell_hd.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
}

#h-header-topics-btn:hover {
    background-color: #444;
}

#h-header-topics-btn .num {
    padding: 0 5px;
    font-weight: bold;
    font-size: 80%;
    color: #fff;
    background: #f00;
    border-radius: 50px;
    position: absolute;
    right: 0px;
    top: 5px;
}

#h-header-topics-area {
    /*width: 500px;*/
    position: absolute;
    margin-top: 5px;
    background-color: #fff;
    text-align: center;
    border: 2px #37538C solid;
    display: none;
}

.h-fadeout {
    visibility: hidden;
    opacity: 0;
}

.h-hidden {
    opacity: 0;
    visibility: hidden;
}

#h-header-topics-rooms {
    display: grid;
    gap: 1px;
    padding-inline-start: 0px;
    grid-template-columns: auto auto auto;
}

#h-header-topics-rooms li {
    list-style: none;
}

.h-header-topic-list {
    box-sizing: border-box;
    width: 100%;
}

/* Header topics grid layout: responsive display for title and meta info */
.topic-link {
    display: block;
    padding: 0.5rem 0.6rem;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
    width: 100%;
}

/* Use minmax(0,1fr) so the title column can shrink and allow ellipsis */
.topic-grid {
    display: grid;
    /* grid-template-columns: minmax(0, 1fr) auto; */
    grid-template-columns: 70% 30%;
    gap: 0.5rem;
    /* Top-align meta (.topics-info) so it stays at the title's first line */
    align-items: center;
    padding-right: 0.5em;
}

/* Allow title to wrap to multiple lines instead of truncating */
.topic-title {
    margin: 0;
    white-space: normal;
    /* allow wrapping */
    word-break: break-word;
    /* break long words if needed */
    overflow: visible;
}

.topics-info {
    display: grid;
    /* Two columns for meta; cells may wrap content */
    grid-template-columns: auto auto;
    gap: 0.25em;
    align-items: start;
    /* top-align items so meta sits at title's top */
    font-size: 75%;
    color: #333;
    /* allow wrapping inside cells when text is long */
    white-space: normal;
    align-self: start;
    /* ensure .topics-info aligns to top of the grid cell */
}

.topics-info div,
.topics-info span {
    /* allow the grid cell to shrink and let text wrap */
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.topics-info .category,
.topics-info .publish_start {
    text-align: end;
}

.topics-summary {
    margin: 0.5rem 0 0 0;
    color: #468CF0;
    font-size: 75%;
    overflow: hidden;
}

.topic-link:focus,
.topic-link:hover {
    background: #f5f5f5;
    outline: none;
}

/* モバイル */
@media (max-width: 599px) {
    #h-header-topics-rooms {
        grid-template-columns: auto auto;
    }

    .topic-grid {
        display: block;
    }

    .topics-info .category {
        text-align: start;
    }

    .topics-info {
        gap: 0.25rem;
        white-space: normal;
        grid-template-columns: 40% 20% 20% auto;
    }

    .topics-summary {
        margin-top: 0.5rem;
    }
}