@charset 'utf-8';

body {
    margin: 0;
    padding: 0;
    background: url(../images/bg-text.jpg) center center / auto repeat;
    background-position: -204px 0px, 0px 0px;
}
header {
    background: #b9f7b9;
    background-size:
        auto,
        auto 100%;
    background-position-x: 88%;
    height: 100%;
    padding: 3.3em 3em 1em 1em;
    position: fixed;
    text-align: right;
    width: 30%;
    overflow-y: auto;
}
.head .ttl {
    text-decoration: none;
}
.head img {
    width: 70px;
    padding-bottom: 10px;
}
.head h2 {
    font-size: 2.5em;
    line-height: 1;
    color: black;
}
.head h1 span {
    display: block;
    font-size: 1.5rem;
}

.head p {
    font-size: 1.2em;
    margin: 20px auto 50px;
    line-height: 1.4;
    color: black;
}
header nav ul {
    font-size: 1.4em;
    float: right;
}
header nav::after {
    content: "";
    clear: both;
    display: block;
}
header nav ul li {
    width: 165px;
    padding-top: 15px;
    box-sizing: border-box;
}
header nav ul li a:hover { 
    text-decoration: underline;
}
.contact,
.contact_ft {
    margin: 70px auto 0;
}
.contact_ft {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    text-align: right;
    margin: 0;
}
.contact_ft p {
    margin: 0 !important;
}
.contact {
    margin-top: 85px;
    font-size: 1.1em;
    letter-spacing: 1px;
}
.contact_ft a {
    color: #000000;
    text-decoration: none;
    margin-top: 5px;
    font-size: 0.9em;
    letter-spacing: 1px;
}
a.pt {
    cursor: pointer;
    display: block;
    width: 360px;
    margin: 0 auto 35px;
    padding: 0.5em 0;
    background: #fff;
    border: 2px solid #000;
    border-bottom: 4px solid #000;
    border-radius: 30px;
    color: #000;
    text-decoration: none;
    font-size: 18px;
    text-align: center;
}
.main {
    margin-left: 30%;
    padding: 2em 1em 1em 3em;
    width: calc(100%-30%);
    max-width: 750px;
}
.contact_btn {
    border: 1px solid #000;
    display: inline-block;
    border-radius: 5px;
    width: 200px;
    text-align: center;
    transition: all 0.3s;
    position: absolute;
    top: 30px;
    right: 50px;
}
.contact_btn a {
    color: #000;
    text-decoration: none;
    font-size: 1.3em;
    letter-spacing: 5px;
    width: 100%;
}
.contact_btn:hover {
    -webkit-filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

.index_title {
    text-align: center;
}

.main_area {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 7em);
    justify-content: space-between;
}
.content {
    font-size: 1.2em;
    margin-bottom: 35px;
}
.content h2.initial {
    padding-left: 0;
}
.content h2.initial:before,
.content h2.initial:after {
    content: initial;
}
.content .index_title h1 {
    /*index h1 用*/
    font-size: clamp(17px, 6vw, 36px);
    margin-bottom: 20px;
}
.content h2.green {
    color: #009c4a;
}
.content h1 {
    font-size: 1.4em;
    padding: 5px 10px;
    margin-bottom: 1rem;
}
.content h2 {
    font-size: 1.2em;
    position: relative;
    padding-left: 31px;
    margin-bottom: 10px;
    margin-top: 20px;
}
.content h2::before {
    content: "";
    background-color: #000;
    width: 20px;
    height: 20px;
    position: absolute;
    z-index: 2;
    top: 3px;
    left: 0;
}
.content h2:after {
    content: "";
    background-color: #9e9e9e;
    height: 10px;
    width: 10px;
    position: absolute;
    z-index: 1;
    left: 15px;
    top: 18px;
}
.content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    background-color: #ccc;
    padding: 3px 10px 3px 13px;
    position: relative;
}
.content h3:before,
.content h3:after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    position: absolute;
}
.content h3:before {
    border-bottom: solid 15px transparent;
    border-left: solid 13px #fff;
    left: -1px;
    top: -1px;
}
.content h3:after {
    border-top: solid 15px transparent;
    border-right: solid 13px #fff;
    right: -1px;
    bottom: -1px;
}
.content ul li {
    list-style: disc;
    margin-left: 1.8rem;
    margin-bottom: 0.5rem;
}
.content p {
    margin-bottom: 1em;
}
.content p.c_copy {
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 0.5em;
}
.news_area {
    max-height: 230px;
    overflow-y: scroll;
    margin-bottom: 46px;
}
.news_area table {
    width: 100%;
    margin-top: -10px;
}
.news_area table tr {
    border-bottom: 1px dotted #000;
}
.news_area table tr td {
    padding: 18px 0 3px 0;
}
.date {
    width: 100px;
}
.news_area table tr td time {
    margin-right: 10px;
}
.news_area table tr td time::before {
    font-family: FontAwesome;
    content: "\f017";
    font-size: 0.8em;
    margin-right: 2px;
}
.link_area ul {
    display: flex;
    margin-bottom: 50px;
    width: 100%;
}
.link_area ul li {
    width: 33.3333%;
}
.link_area ul li a {
    margin-right: 10px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 90px;
    text-decoration: none;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
    padding-right: 50px;
    padding-left: 5px;
    font-size: 1.2em;
}
.link_area ul li:nth-child(1) a {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/01.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}
.link_area ul li:nth-child(2) a {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/02.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}
.link_area ul li:nth-child(3) a {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/03.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.link_area ul li a::before {
    content: "";
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 60%;
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    margin-top: 8%;
}
.link_area ul li a::after {
    font-family: FontAwesome;
    content: "\f178";
    color: #fff;
    font-size: 2em;
    position: absolute;
    z-index: 2;
    top: 25%;
    right: 9px;
}
.link_area ul li a img {
    width: 100%;
}
footer {
}

footer p,
a {
    text-align: right;
}

img {
    max-width: 100%;
}
.sp_nav_trigger {
    display: none;
}
/*---member---*/
.member_img img {
    display: block;
    width: 50%;
    margin: 0 auto;
}
ul.member_list {
    margin-top: 20px;
    margin-bottom: 30px;
}
ul.member_list li {
    list-style: none;
    margin-left: 0 !important;
}
ul.member_list li span.year {
    display: inline-block;
    margin-right: 1rem;
    min-width: 5.7rem;
}

/*---papers---*/
ul.papers_list {
    margin-bottom: 30px;
}
ul.papers_list li {
    border-bottom: 1px dotted #888;
    padding-bottom: 0.3rem;
}
ul.papers_list li u {
    color: rgb(0, 112, 192);
}

/*---contact---*/
.contact_box {
    background-color: #e4e4e4;
    border-radius: 10px;
    padding: 15px;
    margin: 0 10px 20px;
}

@media screen and (max-width: 769px) {
    header {
        width: 100%;
        position: static;
        text-align: left;
        background-size: cover;
        padding: 1.5em;
    }
    header {
        background-position-y: 88%;
    }
    .head {
        display: inline-block;
    }
    .head h1 {
        font-size: 2.2em;
        margin-right: 10px;
    }
    .head img {
        display: block;
    }
    .head h1,
    .head p {
        display: inline-block;
    }
    .head img {
        width: 47px;
    }
    .head p {
        margin-bottom: 0;
        font-size: 1.4em;
    }
    header nav {
        position: fixed;
        width: 200px;
        height: 100%;
        background: rgb(185, 247, 185,0.8);
        top: 0;
        right: -200px;
        z-index: 1000;
    }
    header nav ul {
        margin-top: 80px;
        padding: 0 20px;
    }
    .contact {
        display: inline-block;
        margin: 0;
        float: right;
    }
    a.pt {
        width: min(360px, 100%);
    }
    .main {
        margin: 0;
        padding: 2em;
        position: relative;
    }
    .contact_btn {
        position: absolute;
        top: -75px;
        right: 1.5em;
        background: rgba(255, 255, 255, 0.6);
        width: 100px;
        height: 30px;
    }
    .contact_btn a {
        display: flex;
        justify-content: center;
        align-items: center;
        letter-spacing: 2px;
        font-size: 1.2em;
    }
    .link_btn::after {
        font-size: 1.5em;
    }
    footer p {
        text-align: center;
    }

    .sp_nav_open {
        right: 0 !important;
    }
    .sp_nav_trigger {
        display: block;
        cursor: pointer;
        z-index: 1000;
        position: fixed !important;
        top: 25px;
        right: 15px;
        margin-top: -5px;
        width: 42px;
        height: 30px;
        padding: 10px;
        border-radius: 5px 5px 0 0;
    }
    .sp_nav_trigger span {
        display: inline-block;
        position: absolute;
        left: 3px;
        width: 36px;
        height: 4px;
        background-color: #333;
        border-radius: 4px;
        box-sizing: border-box;
        z-index: 1;
    }
    .sp_nav_trigger span:nth-of-type(1) {
        top: 4px;
    }
    .sp_nav_trigger span:nth-of-type(2) {
        top: 14px;
    }
    .sp_nav_trigger span:nth-of-type(3) {
        bottom: 2px;
    }
    .sp_nav_trigger::after {
        position: absolute;
        left: 0;
        bottom: -17px;
        content: "MENU";
        display: block;
        width: 100%;
        padding-top: 20px;
        color: #333;
        font-size: 10px;
        text-decoration: none;
        text-align: center;
        border-radius: 0 0 5px 5px;
    }
    .sp_nav_trigger.sp_active::after {
        content: "CLOSE";
        bottom: -25px;
        color: #333;
    }
    .sp_nav_trigger.sp_active span:nth-of-type(1) {
        transform: translateY(10px) rotate(-45deg);
    }
    .sp_nav_trigger.sp_active span:nth-of-type(2) {
        opacity: 0;
    }
    .sp_nav_trigger.sp_active span:nth-of-type(3) {
        transform: translateY(-10px) rotate(45deg);
    }
    .tbl_con {
        position: relative;
        overflow: auto;
        height: 80vh;
    }
    .scroll-hint {
        position: absolute;
        z-index: 3;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        font-size: 1.2em;
        line-height: 1.4;
        display: none;
    }
    .scroll-hint::before {
        display: block;
        content: "";
        background: url(../images/all-scroll.svg) center/contain no-repeat;
        width: 50px;
        height: 85px;
        -webkit-animation: scroll-hint-animation 5s infinite ease;
        animation: scroll-hint-animation 5s infinite ease;
    }
    @-webkit-keyframes scroll-hint-animation {
        5% {
            transform: translateY(0);
        }
        27% {
            transform: translateY(-50%);
        }
        50% {
            transform: translateY(0);
        }
        55% {
            transform: translateY(0);
        }
        77% {
            transform: translateX(-100%);
        }
        100% {
            transform: translatex(0);
        }
    }
    @keyframes scroll-hint-animation {
        5% {
            transform: translateY(0);
        }
        27% {
            transform: translateY(-50%);
        }
        50% {
            transform: translateY(0);
        }
        55% {
            transform: translateY(0);
        }
        77% {
            transform: translateX(-100%);
        }
        100% {
            transform: translatex(0);
        }
    }
    .scroll-hint--show {
        display: flex;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
}
@media screen and (max-width: 579px) {
    .contact {
        float: none;
        display: block;
    }
    .link_btn::after {
        font-size: 1em;
    }
    .head p {
        font-size: 1.2em;
        margin-top: 10px;
    }
    .content p,
    .content ul li,
    .content ol li {
        font-size: 1.1rem;
        margin-bottom: 0.8em;
    }
    .link_area ul {
        display: block;
    }
    .link_area ul li {
        width: 100%;
        margin: 10px 0;
    }
    .link_area ul li a {
        margin: 0 !important;
    }
    .sp_fs_s {
        font-size: 0.9em;
    }

    /*---member---*/
    .member_img img {
        width: 70%;
    }
    ul.member_list li {
        margin-bottom: 5px;
        border-bottom: 1px dotted #888;
        font-size: 1rem;
    }
    ul.member_list li span {
        display: block;
    }
}
