/*****************************************************************
全てに適用
*****************************************************************/
* {
    box-sizing: border-box;
}
body {
    background: url(../img/bg.jpg) top center / cover no-repeat;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.75;
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: strict;
}
ul.type1,
ol.type1 {
    padding: 0;
    margin: .8em 0;

    & li {
        margin: .6em 0 0 2em;
    }
}
ol.quotation {
    list-style: none;
    margin-left: 2em;
    counter-reset: li;

    & > li {
        position: relative;

        &::before {
            content: counter(li) "）";
            counter-increment: li 1;
            position: absolute;
            top: 0px;
            left: -1.3em;
            box-sizing: border-box;
            text-align: right !important;
            float: right !important;
        }
    }
}
.bold-number ::marker {
    font-weight: bold;
}
p {
    font-size: inherit;
    line-height: 1.75em
}
.btn-wrap {
    margin-top: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    gap: 3rem;

    @media (width <= 991px) {
        gap: 2rem;
    }

    &.m-top-0 {
        margin-top: 0;
    }
}
.btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    display: block;

    &.pointer-none {
        pointer-events: none;
        cursor: default;
        opacity: 0.5;
        color: #999 !important;
        background: #ccc !important;
        border: #ccc !important;
    }
}
.indent {
    padding-left: 1em;
    text-indent: -1em;
}
.list-indent {
    padding-left: 1.5em;
}
.indent1 {
    padding-left: 1em;
}
/* ラベル+本文 */
.meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0;
}
.label {
    white-space: nowrap;
}

/* ※の箇条書き（ulに指定　※が自動で入る） */
.notes {
    list-style: none;
    padding-left: 1em;

    & li::before {
        content: "※";
        margin-left: -1em;
        position: absolute;
    }
}

.text-narrow {
  max-width: 760px;
  margin-inline: auto;
}
.underline {
    text-decoration: underline;
}
.pointer-none {
    pointer-events: none;
    color: rgba(51, 51, 51, 0.4) !important;
    opacity: 0.5;
}
.red {
    color: red;
}
.blue {
    color: #004097;
}
.scrollable {
    overflow-x: scroll;
}
.xs-block {
    display: none;

    @media (width <= 991px) {
        display: block;
    }
}
.xs-none {
    display: block;

    @media (width <= 991px) {
        display: none;
    }
}
#nav_icon {
    width: 3em;
    height: 2.75em;
    background-color: #fff;
    top: 0.5rem;

    & .menu-ic {
        width: 2em;
        background-color: #004097;
        top: 1.2em;

        &:before {
            top: -0.6em;
            width: 2em;
        }
        &:after {
            bottom: -0.6em;
            width: 2em;
        }
    }
}
body.drawer-opened {
    & header {
        height: 60px;
    }
    & nav.type1 .nav-contents {
        top: 60px !important;
        height: auto;
        max-height: calc(100vh - 60px);
        background-color: #fff;
        overflow-y: scroll;

        & > ul {
            padding: 0 10px 100px 10px;
            font-size: 80%;
            overflow-y: scroll;

            & li {
                width: 100%;
            }
        }
    }
}
h3 {
    @media (width <= 991px) {
        font-size: 1.1rem;
    }
}

/*****************************************************************
header
*****************************************************************/
header {
    & h1 {
        & a {
            display: block;
            width: max-content;
            margin-inline: auto;

            & img {
                max-width: 900px;
                margin-inline: auto;
                padding: 32px 0;
                height: 150px;
            }
        }
    }

    @media (width <= 991px) {
        height: 60px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;

        & h1 {
            width: 85% !important;
            margin-left: 0 !important;

            & a {
                width: auto;

                & img {
                    max-width: 350px !important;
                    height: auto;
                    margin-left: 0 !important;
                    padding: 0;
                }
            }
        }
    }
}

/*****************************************************************
.container
*****************************************************************/
.container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-inline: auto;
    width: 100%;
    max-width: 1240px;
    gap: 20px;
}

/*****************************************************************
.menu
*****************************************************************/
.menu {
    width: 250px;

    @media (width <= 991px) {
        width: 100%;
        order: 2;
        margin-inline: 10px;
    }
}

/*****************************************************************
nav
*****************************************************************/
nav {
    & ul {
        box-sizing: border-box;
        margin: 0;
        width: 100%;
        display: block;

        & li {
            border-bottom: 1px solid #fff;

            &:last-of-type {
                border-bottom: none;
            }
        }
    }

    & a.language {
        display: block;
        text-align: center;
        background-color: #fff;
        border-radius: 20px;
        color: #0071BC;
        font-weight: bold;
        font-size: 1.25rem;
        padding: 10px 0;
        margin-bottom: 20px;

        @media (width <= 991px) {
            font-size: 1rem;
            border: 1px solid #0071BC;
            margin-top: 20px;
            margin-inline: 10px;
        }
    }

    &.type1 ul li > a {
        font-weight: bold;
        font-size: 1.25rem;
        line-height: 1.7em;
        color: #fff;
        background-color: #0071BC;
        padding: 0 18px;
        height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        font-feature-settings: "palt";
        position: relative;
        transition: opacity 0.3s ease;

        @media (width <= 991px) {
            font-size: 1rem;
            height: 50px;
        }

        &.long {
            height: 100px;

            @media (width <= 991px) {
                height: 50px;
            }
        }
        &:hover,
        &.current {
            background-color: #42210B;
        }
    }
}

/*****************************************************************
address
*****************************************************************/
address {
    font-size: 0.875rem;
    margin-inline: 0;
    margin-top: 30px;

    & p {
        padding-inline: 20px;

        &.role {
            font-size: 0.9rem;
            font-weight: bold;
            background-color: #42210B;
            color: #fff;
            padding: 3px 20px;
            border-radius: 10px;
        }
        &.name {
            font-weight: bold;
            margin-bottom: 0;
        }
    }
}

/*****************************************************************
.poster
*****************************************************************/
/* aside.poster {
    margin-top: 20px;
}
@media (width <= 991px ) {
    aside.poster {
        width: 230px;
        height: auto;
        margin-inline: auto;
    }
} */

/*****************************************************************
main
*****************************************************************/
main {
    width: calc(100% - 310px);
    min-height: calc(100vh - 200px);

    @media (width <= 991px) {
        width: 100%;
        min-height: calc(100vh - 330px);
        margin-right: 0;
        order: 1;
    }

    /* ニュース */
    & .news {
        max-width: 760px;
        margin-top: 20px;
        margin-bottom: 20px;
        margin-inline: auto;
        background-color: #fff;

        @media (width <= 991px) {
            margin-inline: auto;
        }

        & h2 {
            font-size: 1.25rem;
            font-weight: 500;
            color: #42210B;
            background-color: #FCDD88;
            padding: 0.5rem 1rem;
        }
        & .log-outer {
            font-size: 0.85rem;
            max-height: 200px;
            overflow-y: scroll;
            padding: 1rem 1.5rem;
        }
        & dl {
            & dt {
                width: 120px;

                @media (width <= 991px) {
                    width: 100%;
                }
            }
            & dd {
                width: calc(100% - 120px);
                margin: 0 0 1rem 0;

                @media (width <= 991px) {
                    width: 100%;
                }
            }
        }
    }
}

/*****************************************************************
footer
*****************************************************************/
footer {
    background-color: #fff;

    & .flex-wrap {
        width: 960px;
        margin-inline: auto;
        justify-content: center;
        gap: 50px;

        @media (width <= 991px) {
            width: 100%;
            padding-inline: 10px;
            gap: 0;
        }
    }
    & .copybg {
        height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;

        & p {
            font-size: 0.8rem;

            @media (width <= 991px) {
                font-size: 0.7rem;
            }
        }
    }
    & address a {
        color: #0000FF;
    }
}

/*****************************************************************
ホーム #home
*****************************************************************/
.banners {
    display: flex;
    justify-content: center;

    & .banner-wrap {
        margin: 20px 0;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 20px;

        & li {
            display: block;
            width: 250px;
        }
        
        & a img {
            display: block;
            width: 100%;
        }
    }
}

/*****************************************************************
サブページ .subpage
*****************************************************************/
.subpage {
    & .container {
        margin-bottom: 20px;
    }

    & main h2 {
        font-size: 1.75rem;
        font-weight: 500;
        padding: 1rem 2rem;
        margin-bottom: 1rem;
        background-color: #42210B;
        color: #fff;

        @media (width <= 991px) {
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }
    }

    & main .contents {
        margin-bottom: 1rem;

        & h3 {
            font-size: 1.25rem;
            font-weight: 500;
            line-height: 1.3;
            letter-spacing: .03em;
            /* border-bottom: 1px solid; */
            background-color: #a7d9f0;
            color: #42210B;
            padding: 0.5rem 1rem;
            border-radius: 10px 0;
        }
        & h4 {
            font-size: 1rem;
            font-weight: 500;
            line-height: 1.3;
            letter-spacing: .03em;
            color: #ca440c;
            border-bottom: solid 1px #e4a185;
            padding-bottom: 0.3em;
            margin-top: 1em;
            margin-bottom: 0.5em;
        }
        & table {
            width: 100%;
            margin: 1rem auto;

            & th,
            & td {
                padding: 0.5rem 1rem;
                border: 1px solid #ccc;
            }
            & th {
                vertical-align: middle;
                background-color: #eee;
            }
        }
        & section,
        & > div {
            padding: 1rem 1.5rem;

            @media (width <= 991px) {
                padding: 1rem;
            }
        }
    }
}

/*****************************************************************
会長挨拶 .subpage.greeting
*****************************************************************/
.subpage.greeting main .contents .profile {
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    align-items: end;
    gap: 2rem;
    margin-bottom: 2rem;

    @media (width <= 991px) {
        justify-content: center;
        gap: 1rem;

        & img {
            order: 1;
        }
        & p {
            order: 2;
            text-align: center;
        }
    }
}
