* {
    box-sizing: border-box;
}

html,
body {
    font-family:
        "Noto Sans JP",
        /* Google Fonts font */
        -apple-system,
        /* macOS/iOS font */
        BlinkMacSystemFont,
        /* Chrome on macOS/iOS */
        "Hiragino Kaku Gothic ProN",
        /* macOS font */
        "Hiragino Sans",
        /* macOS font */
        "Meiryo",
        /* Windows font */
        "Yu Gothic",
        /* Windows 10+ font */
        "MS PGothic",
        /* Old Windows */
        "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    color: #222;
    line-height: 1.6;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

header,
.sitemap-container,
footer {
    flex-shrink: 0;
}

header {
    width: 100%;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

header .header-inner {
    max-width: 1200px;
    margin: auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-btn-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-right: .5rem;
}

.nav-btn-group a {
    color: #222;
    text-decoration: none;
    font-weight: 300;
    font-size: 15px;
    border-left: solid 1px lightgray;
    line-height: 1rem;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 2px;
}

.nav-btn-group a:hover {
    text-decoration: underline solid 1px gray;
}

header .nav-bar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    background-image: repeating-linear-gradient(-45deg,
            #3A6BD1 0,
            #3A6BD1 2px,
            #3364CA 2px,
            #3364CA 4px);
}

header .nav-btn {
    display: none;
}

header .nav-bar-inner {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .nav-bar-inner>.nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

header .nav-bar-inner>.nav-item>a,
header h4 {
    width: 100%;
    height: 100%;
    line-height: 50px;
    margin: 0;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    color: #fff;
    outline: none;
    background-color: transparent;
    border: none;
    font-weight: bold;
    white-space: nowrap;
    font-size: clamp(10.5px, 2vw, 17px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

header .nav-bar-inner>.nav-item>a:hover,
header h4:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width:767px) {
    .side .nav-item {
        display: none;
    }
}

.side ul {
    min-width: 100%;
    background: white;
    margin: 0;
    margin-top: -1rem;
    padding: 0;
    list-style-type: none;
    border-radius: 0 0 5px 5px;
}

.side ul li {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    text-align: start;
}

.side ul li a {
    color: #333;
    display: block;
    text-decoration: none;
    padding: .8rem 0;
    padding-left: 1rem;
}

.side ul li a:hover {
    background: #f5f5f5;
}


@media (min-width: 768px) {

    header .nav-item.has-sub {
        position: relative;
    }

    header .nav-item ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 100%;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.15);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
        z-index: 200;
        margin: 0;
        padding: 0;
        list-style-type: none;
        border-radius: 0 0 5px 5px;
    }

    header .nav-item.has-sub:hover ul {
        display: block;
    }

    header ul li {
        border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
        /* padding: .5rem; */
        text-align: center;
    }

    header ul li:last-child {
        border-bottom: none;
    }

    header ul li a {
        color: #333;
        display: block;
        text-decoration: none;
        padding: .8rem 0;
        /* padding-left: 1rem; */
    }

    header ul li:hover {
        background: #f5f5f5;
    }
}

@media (max-width:767px) {
    header .nav-bar {
        position: relative;
        height: 50px;
        display: flex;
        align-items: center;
    }

    header .nav-btn {
        display: flex;
        background-color: rgba(255, 255, 255, .1);
        outline: none;
        text-wrap: nowrap;
        border: solid 1px rgba(255, 255, 255, .3);
        color: white;
        min-height: 2rem;
        min-width: 5rem;
        line-height: 2rem;
        border-radius: 5px;
        cursor: pointer;
        margin-left: auto;
        margin-right: 1rem;
        margin-top: auto;
        margin-bottom: auto;
        gap: .2rem;
        justify-content: center;
    }

    header .nav-btn:hover {
        background-color: rgba(255, 255, 255, .3)
    }


    header .nav-btn:active {
        background-color: rgba(0, 0, 0, .2)
    }

    header .nav-btn svg {
        align-self: center;
    }

    header .nav-bar-inner {
        display: block;
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: calc(100vh - 120px);
        overflow-y: auto;
        background-color: rgba(255, 255, 255, 0.9);
        opacity: 0;
        transition: opacity .35s ease;
        -webkit-overflow-scrolling: touch;
        z-index: 999 !important;
    }

    header .nav-bar-inner.active {
        top: 120px;
        opacity: 1;
    }

    header .nav-bar-inner>.nav-item>a,
    header h4 {
        display: block;
        width: 100%;
        height: auto;
        line-height: 2.5rem;
        background: linear-gradient(to right, #daeffe, #e0e8f7);
        text-align: center;
        color: #333;
        outline: none;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        text-shadow: none;
        padding: .5rem 0;
        font-size: large;
        font-weight: 500;
        position: relative;
        cursor: pointer;
    }

    header .nav-item.has-sub>h4::after {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: .5rem;
        width: 2rem;
        height: 2rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320458d' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M6 9l6 6l6 -6' /%3E%3C/svg%3E");
        background-size: contain;
        pointer-events: none;
        transition: transform .25s ease;
    }

    header .nav-item.has-sub.active>h4::after {
        transform: translateY(-50%) rotate(180deg);
    }

    body.menu-open {
        overflow: hidden;
        height: 100vh;
    }

    .nav-btn svg {
        display: inline-block;
    }

    .nav-btn .close-icon {
        display: none;
    }

    .nav-btn.active .menu-icon {
        display: none;
    }

    .nav-btn.active .close-icon {
        display: inline-block;
    }

    header .nav-item {
        width: 100%;
    }

    header ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        width: 100%;
        overflow: hidden;
        list-style: none;
        background: white;
        transition: max-height .35s ease;
    }

    header ul li {
        padding: 0;
        text-align: center;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
        position: relative;
    }

    header ul li a {
        text-decoration: none;
        color: #000;
        font-size: medium;
        padding: 1rem 0;
        display: block;
        text-align: center;
    }

    header ul li::after {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: .5rem;
        width: 2rem;
        height: 2rem;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320458d' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 12l14 0'/%3E%3Cpath d='M13 18l6 -6'/%3E%3Cpath d='M13 6l6 6'/%3E%3C/svg%3E") no-repeat center right;
        background-size: contain;
        pointer-events: none;
    }

    header .nav-item.active ul {
        max-height: 500px;
    }

}

footer {
    height: 40px;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.05);
    color: gray;
    text-wrap: nowrap;
    font-size: small;
    z-index: 100;
}

/* hr {
    border: none;
    height: 1px;
    background-color: lightgray;

} */

.container {
    width: 100vw;
    max-width: 1200px;
    margin: auto;
    flex: 1;
}

.main {
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.title {
    box-shadow: inset 0 -1px 0 0 lightgray;
    position: sticky;
    top: 120px;
    line-height: 50px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
}

.title>h3 {
    padding: 0;
    margin: 0;
    white-space: nowrap;
    font-size: clamp(18px, 2vw, 20px);
}

.title a {
    text-decoration: none;
    color: #00598f;
}

.title a:hover {
    text-decoration: underline;
    text-shadow: 0 0 1px currentColor;
}

.title.breadcrumb {
    display: block;
    min-height: 50px;
    padding: 0 .5rem;
    position: initial !important;
}

.title.breadcrumb * {
    display: inline;
}

.title.breadcrumb *::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 1rem;
    height: 1.5rem;
    background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='1'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3E%3Cpath%20d='M9%206l6%206l-6%206'/%3E%3C/svg%3E") no-repeat center left;
    background-size: contain;
}

.title.breadcrumb *:last-child::after {
    background: none;
}

.caption {
    border-top: 4px solid transparent;
    border-image: linear-gradient(to right, #0595f8, #3264c9) 1;
    color: #3264c9;
    padding-left: 1rem;
    z-index: 99;
    position: inherit !important;
}

.caption>.more {
    margin-left: auto;
    margin-right: .5rem;
    display: flex;
    align-items: center;
}

.logo {
    margin-inline-start: 10px;
    user-select: none;
}

.logo>img {
    display: block;
    height: 44px;
}

.side,
.side-group {
    margin-top: 1rem;
    flex-basis: 30%;
    order: 1;
}

section.side,
.side-group {
    flex-basis: 25%;
}

.content {
    margin-top: 1rem;
    flex: 1;
    order: 2;
}

@media (max-width: 1023px) {
    .logo {
        width: 94px;
        overflow: hidden;
    }

    .logo>img {
        height: 35px;
        padding: 5px auto;
    }

    .container {
        flex-direction: column;
    }

    .side,
    .content,
    .side-group {
        margin-top: 1rem;
        max-width: 100%;
        min-width: 100%;
        flex-basis: 100%;
    }

    .content {
        order: 1;
    }

    .side,
    .side-group {
        order: 2;
    }

}

.top-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    /* background: linear-gradient(to right, #0595f8 0%, #0595f8 40%, #3264c9 60%, #3264c9 100%); */
    background: linear-gradient(to right, #0595f8, #3264c9);
}

@media (max-width:767px) {
    .top-image-container {
        display: none;
    }
}

.sitemap-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background: linear-gradient(to right, #0595f8, #3264c9);
}

.center {
    margin: 0 auto;
    text-align: center;
}

.w-50 {
    width: 50%;
}

.w-75 {
    width: 75%;
}

.w-100 {
    width: 100%;
}

.top-image {
    max-width: 900px;
    width: 100vw
}

.side-container {
    padding: 1rem;
    margin: 1rem;
    border: solid 1px #eeeeee;
}

table.calendar {
    border-collapse: collapse;
    width: 100%;
    border-radius: 5px;
    text-align: center;
    vertical-align: middle;
}

.side-container h4 {
    margin: 0;
    text-align: start;
    font-size: 16px;
    font-weight: 700;
    padding: .5rem 0;
}

table.calendar a svg {
    vertical-align: middle
}

table.calendar th {
    background-color: #eeeeee;
}

table.calendar,
table.calendar th,
table.calendar td {
    border: solid 1px #000;
    font-size: clamp(5px, 1vw, 12px);
}

@media (max-width:1023px) {

    table.calendar caption {
        font-size: 1rem;
    }

    ul.menu-list li a,
    table.calendar,
    table.calendar th,
    table.calendar td {
        font-size: clamp(12px, 3vw, 15px);
    }
}

.closed {
    background-color: #FCD5B4;
}

.weekday-closed {
    background-color: #D8E4BC;
}

.temporary-closed {
    background-color: #92CDDC;
}

.side-container figcaption {
    font-size: small;
    line-height: 1rem;
    padding: 2px 0;
}

figcaption span {
    display: inline-block;
    width: 2rem;
    height: 1rem;
    margin-right: 2px;
    vertical-align: middle
}


ul.menu-list {
    list-style-type: "-";
    /* color: #fff; */
    padding: 0;
    margin: 0;
    margin-left: 1rem;
    display: block;
}

ul.menu-list li {
    padding: .1rem .5rem;
}

ul.menu-list li a {
    text-decoration: none;
    /* color: #fff; */
    color: #000;
    font-size: clamp(12px, 1vw, 15px);
}

ul.menu-list li a:hover {
    text-decoration: underline;
}


.part-container {
    margin: 1rem;
    /* padding: 1rem; */
}

#OpacSearch {
    background: linear-gradient(to bottom, rgba(249, 8, 0, .7), #FF7F50);
    margin: 1rem 0;
    padding: 2rem;
    border-top: none;
    border-radius: 5px;
}

#OpacSearch>form {
    width: 100%;
    text-align: center;
}

#OpacSearch h3 {
    margin: 0 auto;
    padding: 0;
    color: #fff;
    font-weight: normal;
    font-size: clamp(15px, 1vw, 18px);
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.3);
}


#OpacSearch_input {
    outline: none;
    height: 2rem;
    line-height: 2rem;
    flex: 1;
    border: none;
    border-radius: 5px;
    padding: 1rem;
}

#OpacSearch_submit {
    background-color: transparent;
    outline: none;
    text-wrap: nowrap;
    border: solid 1px white;
    color: white;
    height: 2rem;
    width: 5rem;
    line-height: 2rem;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 1rem;
}

#OpacSearch_submit:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#OpacSearch_submit:active {
    background-color: white;
    color: #F90800;
}

#OpacSearch .bar {
    margin: 1rem auto;
    width: 100%;
    display: flex;
}

.link {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(368px, 1fr));
    text-wrap: nowrap;
    font-size: 16px;
}

.newslist+.btn-more {
    width: 100%;
    margin: .5rem auto;
    width: 50%;
}


@media (max-width:767px) {
    .link {
        display: flex;
        text-wrap: wrap;
        font-size: 16px;
    }

    .link .btn-more {
        max-width: calc(100vw - 48px);
        margin: .5rem;
    }

    .newslist+.btn-more {
        width: 100%;
        max-width: calc(100vw - 48px);
        margin: .5rem;
    }
}

#OpacSearch .nav-btn-group a {
    color: #fff;
    font-size: normal;
    font-weight: bold;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.3);
}

.newslist,
.list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: block;
}

.newslist li,
.list li {
    border-bottom: solid 1px #f0f0f0;
    padding: .5rem 1rem;
}

.newslist li a {
    display: inline;
    color: #000;
    font-weight: normal;
}

.new::after {
    content: "new";
    display: inline-flex;
    padding: 0 5px;
    line-height: 1rem;
    background-color: orangered;
    color: white;
    border-radius: 10px;
    margin-left: 0.2rem;
    /* vertical-align: baseline; */
    font-size: 12px;
    align-items: center;
    justify-content: center;
}

.btn-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    padding-right: 2.5rem;
    margin: 1rem;
    text-decoration: none;
    border: solid 2px #3264c9;
    color: #20458d;
    background-image: repeating-linear-gradient(-45deg,
            #f5f5f5 0,
            #f5f5f5 2px,
            #F0F0F8 2px,
            #F0F0F8 4px);
    border-radius: 5px;
    position: relative;
}

.btn-more:hover {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        repeating-linear-gradient(-45deg,
            #f5f5f5 0,
            #f5f5f5 2px,
            #F0F0F8 2px,
            #F0F0F8 4px);
}

.btn-more::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: .5rem;
    width: 2rem;
    height: 2rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2320458d' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M5 12l14 0'/%3E%3Cpath d='M13 18l6 -6'/%3E%3Cpath d='M13 6l6 6'/%3E%3C/svg%3E") no-repeat center right;
    background-size: contain;
    pointer-events: none;
}


.sitemap-container {
    display: flex;
}

.sitemap-inner {
    display: flex;
    width: 100%;
    margin: 2rem .5rem;
    gap: .5rem;
    max-width: 1200px;
    flex: 1;
}

@media (max-width:767px) {
    .sitemap-inner {
        flex-direction: column;
    }
}

.sitemap-container section.nav-item {
    display: none;
}

.sitemap-container section.nav-item.has-sub {
    display: block;
    flex: 1;
}

.sitemap-container h4 {
    margin: 0;
    padding-bottom: .5rem;
    padding-left: 2rem;
    color: #fff;
    font-weight: normal;
    border-bottom: solid 1px #fff;
    position: relative;
}

.sitemap-container h4::before {
    position: absolute;
    content: "";
    top: 40%;
    transform: translateY(-50%);
    left: .5rem;
    width: .8rem;
    height: .8rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0'/%3E%3C/svg%3E") no-repeat center left;
    background-size: contain;
}

.sitemap-container ul {
    list-style-type: "-";
    color: #fff;
    padding: 0;
    padding-left: 1rem;
    margin-top: 1rem;
    margin-bottom: 0;
    margin-left: 1rem;
    display: block;
}

.sitemap-container li {
    padding: .25rem .5rem;
}

.sitemap-container li a {
    text-decoration: none;
    color: #fff;
    font-size: .8rem;
}

.sitemap-container li a:hover {
    text-decoration: underline;
}