@charset UTF-8;

body {
    position: relative;
}

#wrapper {
    max-width: 1600px;
    width: 100%;
    margin: auto;
    line-break: strict;
}

/*ヘッダー*/
a:hover {
    filter: alpha(opacity=70);
    -moz-opacity: 0.7;
    opacity: 0.7;
}

header {
    position: fixed;
    display: flex;
    top: 0;
    /*left: calc(50% - 1600px / 2);*/
    max-width: 1600px;
    width: 100%;
    justify-content: space-between;
    z-index: 999;
    background-color: #fff;
}

header h1 {
    margin: 0.5em 0;
}

header img {
    margin-left: 5px;
    max-height: 40px;
}

@media screen and (max-width:930px) {
    body {
        width: 100vw;
        overflow-x: hidden;
    }

    #wrapper {
        max-width: 930px;
        width: 100%;
        margin: auto;
    }

    header {
        position: relative;
        display: block;
        top: 0;
        left: 0;
        max-width: 930px;
        width: 100%;
        z-index: 999;
        background-color: #fff;
    }

    header a {
        display: flex;
    }

    header h1 {
        vertical-align: middle;
        max-width: 50%;
        display: inline-block;
        padding-left: 0.2rem;
        padding-top: 0.2rem;
        padding-bottom: 0;
    }

    header h1 img {
        width: 90%;
        margin-left: 5px;
    }

    .header-nav {
        display: none;
        /*アクセスたち非表示*/
    }
}

/*ヘッダー用メインメニュー*/
#head_menu {
    margin: 0.5em 0;
    display: none;
}

#head_menu ul li a {
    padding: 2em 1em;
}

#head_menu ul {
    position: relative;
    top: 0;
    background-color: transparent;
    font-size: 90%;
}

/*ヘッダーナビ*/
.header-nav {
    margin: 0.8em 0 0.7em 0;
}

header ul {
    display: flex;
    list-style-type: none;
}

header ul li:last-child {
    border: 0;
    padding: 0;
}

.header-nav li {
    margin: 10px;
    border-right: 1px solid #333;
    padding-right: 1em;
    font-size: 0.8em;
}

.header-nav a {
    text-decoration: none;
    color: #000000;
    vertical-align: super;
}
/*TW,FBアイコン*/
.sns_icon {
    margin-left: 10px;
}

.header-nav ul {
    padding-left: 0px;
}

.sp {
    display: none;
}

/*スマホ*/
@media screen and (max-width:930px) {

    #wrapper .pc {
        display: none;
    }

    #wrapper .sp {
        display: block;
    }

    #wrapper .sp img {
        max-width: 100vw;
    }

    .top_main ul {
        display: none;
        /*メインメニュー非表示*/
    }

    header {
        position: fixed;
        top: 0;
    }

    header ul li a {
        display: none;
        /*メインメニュー非表示*/
    }
}

/*Googleマテリアルアイコン*/
.material-icons {
    position: relative;
    top: 6px;
    left: -2px;
    padding: 0;
}

.material-icons.md-22 {
    font-size: 22px;
}

/*TOP画像のナビ*/
nav#main {
    margin-top: 6rem;
    position: relative;
    height: auto;
}

nav ul {
    display: flex;
    position: absolute;
    top: 2.6rem;
    right: 0em;
    list-style-type: none;
    padding: 1.3rem 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 100;
}

.top_main nav ul {
    top: 3rem;
    right: 0em;
}

nav ul li {
    border-right: 1px solid #333;
}

nav ul li:last-child {
    border: 0;
}

nav ul li a {
    padding: 2em;
    font-weight: bold;
}

/*ヘッダーメニュー2行のものがなくなった場合、以下の3要素を削除する*/
#main ul li {
    line-height: 2.6em;
}

#main ul li:last-child {
    line-height: 1.3em;
    text-align: right;
}

#main ul li a {
    padding: 1em 2em;
    display: block;
    height: 100%;
}

/*ヘッダーナビ調整*/
@media screen and (max-width:1460px) {
    #head_menu {
        font-size: 0.8em;
    }

    .header-nav li {
        padding-right: 0.8em;
        font-size: 0.7em;
    }

    .material-icons.md-22 {
        font-size: 18px;
    }
}

@media screen and (max-width:1380px) {
    header h1 {
        width: 160px;
    }

    header img {
        max-height: 25px;
    }

    #head_menu {
        min-width: 500px;
    }

    .header-nav {
        min-width: 350px;
    }
}

/*TOPスライドショー*/
.main_imgBox {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.main_img {
    z-index: -1;
    opacity: 0;
    width: 100%;
    height: 200px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-animation: anime 18s 0s infinite;
    animation: anime 18s 0s infinite;
}

.main_img:nth-of-type(2) {
    -webkit-animation-delay: 9s;
    animation-delay: 9s;
}

.main_img:nth-of-type(3) {
    -webkit-animation-delay: 18s;
    animation-delay: 18s;
}

@keyframes anime {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 0.5;
    }

    17% {
        opacity: 1;
    }

    25% {
        /*opacity: 0;*/
        /*transform: scale(1.2);*/
        z-index: 9;
    }

    100% {
        opacity: 0
    }
}


/* scroll */
#scroll {
    position: fixed;
    width: 5rem;
    height: 7vh;
    right: 1rem;
    z-index: 888;
    bottom: 0;
}

#scroll span.scroll-text {
    color: #9A1429;
    display: inline-block;
    font-size: 1.2rem;
    font-family: "Dosis", sans-serif;
    animation: flash 1.7s linear infinite;
}

#scroll:before {
    content: "";
    position: absolute;
    top: 0;
    left: -1.5em;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: #9A1429;
    animation: circlemove 1.5s ease-in-out infinite,
        cirlemovehide 1.5s ease-out infinite;
}


@keyframes circlemove {
    0% {
        top: 0;
    }

    100% {
        top: 1.3em;
    }
}

@keyframes cirlemovehide {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    80% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
    }
}

#scroll:after {
    content: "";
    position: absolute;
    top: 0;
    left: -1.3em;
    width: 2px;
    height: 28px;
    background: #9A1429;
}

@media screen and (max-width:930px) {
    
}



@media screen and (max-width:930px) {
    #scroll {
        display: none;
    }
    
    .main_imgBox {
        height: 300px;
        overflow: hidden;
        position: relative;
    }

    .main_img {
        z-index: -1;
        opacity: 0;
        width: 100%;
        height: 300px;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        position: absolute;
        left: 0;
        top: 0;
        -webkit-animation: anime 18s 0s infinite;
        animation: anime 18s 0s infinite;
    }

    .main_img:nth-of-type(2) {
        -webkit-animation-delay: 9s;
        animation-delay: 9s;
    }

    .main_img:nth-of-type(3) {
        -webkit-animation-delay: 18s;
        animation-delay: 18s;
    }

    header h1 {
        width: auto;
    }

    @keyframes anime {
        0% {
            opacity: 0;
        }

        8% {
            opacity: 0.5;
        }

        17% {
            opacity: 1;
        }

        25% {
            /*opacity: 0;*/
            /*transform: scale(1.2);*/
            z-index: 9;
        }

        100% {
            opacity: 0
        }
    }
}

/*contents*/
#contents {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 2.2em auto 8em;
}

#contents:after {
    content: "";
    display: block;
    width: 32%;
    /* .boxに指定したwidthと同じ幅を指定する */
    height: 0;
}

#contents .main {
    max-width: 800px;
}

#contents section {
    margin: 0 1rem;
}

#contents .section1 {
    width: 29%;
}

#contents .section1 .sns {
    width: 100%;
}

h2 {
    color: #E10B29;
    padding: 0em 0em 0.4em 0.8em;
    position: relative;
}

h2::before {
    bottom: -8px;
    content: url(../img/underline3.png);
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
}

h2::after {
    bottom: -8px;
    content: url(../img/underline2.png);
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
}

/*TOPページのh2アンダーライン*/
.top_underline {
    color: #E10B29;
    padding: 0em 0em 0.4em 0.8em;
    position: relative;
}

.top_underline::before {
    bottom: -8px;
    content: url(../img/underline.png);
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
}

dt {
    color: #E10B29;
}

dd {
    padding-bottom: 1em;
    border-bottom: solid 1px lightgray;
}

#contents a {
    text-decoration: underline;
    color: #333;
}

/*研究内容*/
.kenkyu {
    margin-bottom: 3.5em;
    position: relative;
    margin-top: 3em;
}

.kenkyu p {
    /*    display: block;*/
    width: 380px;
    height: auto;
    font-size: 1.3em;
    font-weight: bold;
    color: #9A1429;
    padding: 16px 10px 16px 10px;
    text-align: center;
    line-height: 1.2em;
    position: absolute;
    right: 10px;
    top: -30px;
    background: rgba(235, 235, 235, 0.5);
}

nav .title {
    background-color: #9a1429;
    padding: 0.7em;
}

nav .title h1 {
    width: 1200px;
    margin: auto;
    color: white;
}

/*公式SNS*/
.sns {
    width: 25%;
}

.sns img {
    float: left;
    margin-bottom: 1em;
}

.sns p {
    width: 150px;
    color: #333;
    font-size: 1.0rem;
    font-weight: normal;
    padding: 0.7em 0em 0.3em 2.5em;
    margin-left: 1em;
    /*    border-bottom: 3px solid #9A1429;*/
    /*    background-color: aliceblue;*/
}

.sns dd {
    width: auto;
    height: auto;
    border: 10px solid lightgray;
    margin-bottom: 1em;
}

.sns dt {
    position: relative;
}

.sns .bold {
    font-weight: bold;
}

.sns p::before {
    width: 35%;
    bottom: -12px;
    content: url(../img/underline_mini.png);
    left: 0;
    overflow: hidden;
    position: absolute;
    left: 3.5em;
    /*    background-color: aqua;*/
}

/* パンくずリスト */
ol#bread {
    display: flex;
    list-style-type: none;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0.5em auto;
    padding: 0;
}

ol#bread li::before {
    content: '>';
    padding: 0 0.3em;
    font-size: 1em;
    vertical-align: middle;
}

ol#bread li:first-child::before {
    content: 'home';
    font-size: 1em;
    vertical-align: middle;
    font-family: 'Material Icons';
}

ol#bread li a {
    font-size: 0.8em;
}

ol#bread li a.now {
    pointer-events: none;
    color: #000;
}


/*フッター*/
footer {
    position: relative;
}

footer img {
    margin: 0 0.5em 0.5em 0.5em;
    vertical-align: top;
}

footer h1 {
    text-align: center;
}

.footer-nav {
    max-width: 1600px;
    position: relative;
    margin: auto;
    height: auto;
}

.footer-nav ul {
    display: flex;
    list-style-type: none;
    position: absolute;
    top: -5em;
    right: 0;
    ;
}

.footer-nav li {
    margin: 10px;
    border-right: 1px solid #333;
    padding-right: 1em;
}

footer ul li:last-child {
    border: 0;
    padding: 0;
}

.footer-nav a {
    text-decoration: none;
    color: #000000;
}

/*コピーライト*/
.copyright {
    background-color: #9A1429;
    width: 100%;
    height: 120px;
    padding: 30px 0;
}

.copyright p {
    width: 58%;
    display: block;
    margin: auto;
    color: white;
    font-size: 0.8em;
    /*    overflow: hidden;*/
}

/*laptop*/
@media screen and (max-width:1400px) {
    #contents {
        margin: 0 0.5em;
    }

    #contents .main {
        margin: 0 1em;
    }

    footer h1 {
        margin: 2.5rem;
    }
}

/**/
@media screen and (max-width:1024px) {
    div.header-nav {
        min-width: 322px;
    }

    div.header-nav ul {
        padding-left: 0;
    }

    #head_menu {
        min-width: 465px;
    }

    .footer-nav ul {
        top: -3em;
    }

    .sns {
        display: flex;
    }

    #contents .section1 {
        width: 24%;
    }
}

/*スマホ対応*/
@media screen and (max-width:930px) {
    #wrapper {
        overflow: hidden;
    }

    ol#bread {
        width: 100%;
    }

    ol#bread li:last-child {
        word-break: break-all;
    }

    nav#main {
        margin-top: 4em;
    }

    nav#main ul {
        display: none;
    }

    nav#main img {
        width: 100%;
    }

    #contents {
        max-width: 930px;
        width: 100%;
        display: block;
    }

    #wrapper #contents .section1 {
        width: 90%;
    }

    #contents .kenkyu img {
        width: 100%;
    }

    .kenkyu p {
        width: 100%;
        top: 123px;
        right: 0;
        padding: 12px;
    }

    .kenkyu .k_sp {
        top: 99px;
    }

    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    /*SNS*/
    .sns {
        width: 100%;
    }

    /*フッター*/
    footer img {
        width: 50%;
    }

    .footer-nav {
        max-width: 900px;
        text-align: center;
    }

    .footer-nav ul {
        position: relative;
        display: block;
        padding: 1.5em 5em;
        top: 0;
    }

    .footer-nav li {
        margin: 1em auto;
        background-color: lightgray;
        border: none;
        padding: 1em;
        font-size: 0.8em;
    }

    footer ul li:last-child {
        padding: 1em;
    }

    footer .material-icons {
        float: left;
        top: -1px;
        left: 10px;
    }

    .copyright {
        height: auto;
        padding: 10px 30px;
    }

    .copyright p {
        width: 100%;
    }

    /*ハンバーガーメニュー*/
    /* チェックボックスは非表示に */
    .drawer-hidden {
        display: none;
    }

    /* ハンバーガーアイコンの設置スペース */
    .drawer-open {
        display: flex;
        height: 60px;
        width: 60px;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 100;
        /* 重なり順を一番上に */
        cursor: pointer;
    }

    /* ハンバーガーメニューのアイコン */
    .drawer-open span,
    .drawer-open span:before,
    .drawer-open span:after {
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background: #9a1429;
        transition: 0.5s;
        position: absolute;
    }

    /* 三本線のうち一番上の棒の位置調整 */
    .drawer-open span:before {
        bottom: 8px;
    }

    /* 三本線のうち一番下の棒の位置調整 */
    .drawer-open span:after {
        top: 8px;
    }

    /* アイコンがクリックされたら真ん中の線を透明にする */
    #drawer-check:checked ~ .drawer-open span {
        background: rgba(255, 255, 255, 0);
    }

    /* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
    #drawer-check:checked ~ .drawer-open span::before {
        bottom: 0;
        transform: rotate(45deg);
    }

    #drawer-check:checked ~ .drawer-open span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* メニューのデザイン*/
    .drawer-content {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 100%;
        /* メニューを画面の外に飛ばす */
        z-index: 99;
        background: #fff;
        transition: .5s;
        border: 5px solid #eee;
    }

    .drawer-content ul {
        display: block;
        width: 100%;
        top: auto;
        padding: 0.6em 2em;
    }

    .li_item {
        font-size: 90%;
    }

    .li_item a {
        color: #9a1429;
        padding: 0.2em;
    }

    .drawer-content li {
        border-right: none;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .drawer-content a {
        display: block;
        padding: 0.4em;
        font-size: 120%;
    }

    .snsicon {
        padding-right: 2px;
    }

    .drawer-content .sns_li {
        border-bottom: none;
        text-indent: -1.5em;
    }

    /* アイコンがクリックされたらメニューを表示 */
    #drawer-check:checked ~ .drawer-content {
        left: 0;
        /* メニューを画面に入れる */
    }

    .material-icons.md-22 {
        font-size: 22px;
    }


}
