/* Move down content because we have a fixed navbar that is 50px tall */

html {}

li {
    padding: 0;
    margin: 0;
}

body {}

a {}

h2 {
    color: #FFF;
    text-align: center;
    font-size: 1.8em;
    background-color: #94252a;
    padding: 25px;
    margin-bottom: 30px;
}


h3 {
    font-size: 1.2em;
    font-weight: bold;
    padding: 0.8rem 1rem 0.8rem 0rem;
    border-bottom: 1px solid #000;

}

/* パソコンで見たときは"pc"のclassがついた画像が表示される */

.pc {
    display: block !important;
}

.sp {
    display: none !important;
}

/* スマートフォンで見たときは"sp"のclassがついた画像が表示される */

@media only screen and (max-width: 769px) {
    .pc {
        display: none !important;
    }

    .sp {
        display: block !important;
    }
}

@media only screen and (max-width: 769px) {
    .pc-only {
        display: none !important;
    }

}

/* 余白 */

.space15px {
    padding: 15px
}

.space30px {
    padding: 30px
}

.space50px {
    padding: 50px
}


/* 文字寄せ */

.c-txt {
    text-align: center;
}


/* 画像寄せ */

.c-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.l-img {
    display: block;
    margin-right: auto;
}

.r-img {
    display: block;
    margin-left: auto;
}

/* 改行 */

.text {
    display: inline-block;
}

/* 詳細リンク */

.more {
    float: right;
    padding-top: 10px;
    padding-bottom: 20px;
}

/* 左右背景 */

.bg-left {
    width: 5%;
    height: 100%;
    position: fixed;
    background-color: #d8dae5;
}

.bg-right {
    width: 5%;
    height: 100%;
    right: 0;
    position: fixed;
    background-color: #ead3d4;
}


/* コンテナ */
.container-home {
    width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden;
}

.container-top {
    background-color: #94252a;

}

.home-bg {
    width: 700px;
    height: 700px;
    position: absolute;
    top: -15%;
    right: -5%;
    background-image: url(../img/home-bg-1.png);
    background-size: contain;
    background-repeat: no-repeat;
    animation-name: rotate;
    animation-duration: 120s;
    animation-timing-function: cubic-bezier(0.5, 0.51, 0.51, 0.52);
    animation-iteration-count: infinite;
}


.home-bg2 {
    width: 500px;
    height: 500px;
    position: absolute;
    top: 3%;
    left: 3%;
    background-image: url(../img/home-bg-1.png);
    background-size: contain;
    background-repeat: no-repeat;
    animation-name: rotate;
    animation-duration: 90s;
    animation-timing-function: cubic-bezier(0.5, 0.51, 0.51, 0.52);
    animation-iteration-count: infinite;
}

.home-bg3 {
    width: 400px;
    height: 400px;
    position: absolute;
    top: 20%;
    right: 10%;
    background-image: url(../img/home-bg-1.png);
    background-size: contain;
    background-repeat: no-repeat;
    animation-name: rotate-r;
    animation-duration: 60s;
    animation-timing-function: cubic-bezier(0.5, 0.51, 0.51, 0.52);
    animation-iteration-count: infinite;
}

@keyframes rotate {
    0% {
        transform: rotateZ(0);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

@keyframes rotate-r {
    0% {
        transform: rotateZ(0);
    }

    100% {
        transform: rotateZ(-360deg);
    }
}


.container-page {
    width: 100%;
    margin: auto;
    background-image: url(../img/page-bg.jpg);
    background-position: top center;
    background-repeat: no-repeat;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ヘッダー */

.logoarea {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0px 30px;
    color: #FFF;
    background-color: #94252a;
}

.logoarea .logo {
    width: 200px;
}

h1 {
    font-size: 32px;
    color: #FFF;
}

h1 a {
    text-decoration: none;
    color: #FFF;
}

.logoarea .topbtn {
    float: right;
    margin: 5px;
}


.img-block {
    position: relative;
    display: flex;
    padding-top: 20px;
    margin-left: 40%;
}

.img-block > div {
    width: 100%;
}

.img-block-sp {
    padding-top: 10px;
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 20%;
}

@media (min-width: 769px) {
    .img-block-sp {
        display: none;
    }
}

.img-block-sp > div {
    width: 40%;
}



/* ナビバー pc*/

.inner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.inner:after {
    content: "";
    clear: both;
    display: block;
}

/* header */

#top-head {
    max-width: 1080px;
    margin: 0 auto;
    height: 45px;
    line-height: 1;
    z-index: 999;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: #94252a;
}

#top-head a,
#top-head {
    color: #FFF;
    text-decoration: none;
}

#top-head .inner {
    position: relative;
}

#global-nav ul {
    list-style: none;
    right: 0;
    bottom: 0;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

#global-nav ul li {
    width: 150px;
    padding: 15px 0px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}


a :hover {
    opacity: 0.7;
}


/* Fixed */

#top-head.fixed {
    margin-top: 0;
    top: 0;
    width: 100%;
    max-width: 1400px;
    position: fixed;
    padding-top: 5px;
    transition: top 1s ease-in;
    -webkit-transition: top 1s ease-in;
    -moz-transition: top 1s ease-in;
}

@media (max-width: 769px) {
    #top-head.fixed {
        width: 100%;
        height: 100px;
    }
}

#top-head.fixed .logo {
    font-size: 24px;
    color: #333;
}

#top-head.fixed #global-nav ul li a {
    color: #333;
}

/* Toggle Button */

#nav-toggle {
    display: none;
    position: absolute;
    right: 15px;
    top: 20px;
    width: 34px;
    height: 36px;
    cursor: pointer;
    z-index: 101;
}

#nav-toggle div {
    position: relative;
}

#nav-toggle span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: #FFF;
    left: 0;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
}

#nav-toggle span:nth-child(1) {
    top: 0;
}

#nav-toggle span:nth-child(2) {
    top: 11px;
}

#nav-toggle span:nth-child(3) {
    top: 22px;
}

/* ナビバー sp*/

@media screen and (min-width: 769px) {
    #mobile-head .logo {
        display: none
    }
}

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

    #top-head,
    .inner {
        width: 100%;
        padding: 0;
    }

    #top-head {
        top: 0;
        position: fixed;
        margin-top: 0;

    }

    /* Fixed reset */
    #top-head.fixed {
        padding-top: 0;
        background: transparent;
    }

    #mobile-head {
        background-color: #94252a;
        width: 100%;
        z-index: 999;
        position: relative;
    }

    #mobile-head .logo {
        width: 200px;
    }

    #top-head.fixed .logo,
    #top-head .logo {
        width: 200px;
        padding: 10px;
    }

    #global-nav {
        position: absolute;
        /* 開いてないときは画面外に配置 */
        top: -700px;
        background: #94252a;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
    }

    #global-nav ul {
        list-style: none;
        position: static;
        right: 0;
        bottom: 0;
        font-size: 14px;
    }

    #global-nav ul li {
        float: none;
        position: static;
        display: block;
    }

    #top-head #global-nav ul li a,
    #top-head.fixed #global-nav ul li a {
        width: 100%;
        display: block;
        color: #FFF;
        padding: 10px 0;
    }

    #nav-toggle {
        display: block;
    }

    /* #nav-toggle 切り替えアニメーション */
    .open #nav-toggle span:nth-child(1) {
        top: 11px;
        -webkit-transform: rotate(315deg);
        -moz-transform: rotate(315deg);
        transform: rotate(315deg);
    }

    .open #nav-toggle span:nth-child(2) {
        width: 0;
        left: 50%;
    }

    .open #nav-toggle span:nth-child(3) {
        top: 11px;
        -webkit-transform: rotate(-315deg);
        -moz-transform: rotate(-315deg);
        transform: rotate(-315deg);
    }

    /* #global-nav スライドアニメーション */
    .open #global-nav {
        /* #global-nav top + #mobile-head height */
        -moz-transform: translateY(750px);
        -webkit-transform: translateY(750px);
        transform: translateY(750px);
    }
}

.list li + li {
    position: relative;
}

.list li + li::before {
    content: "";
    display: block;
    height: 1em;
    border-left: 2px solid #999;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: rotate(15deg);
}

@media screen and (max-width: 769px) {
    .list li + li::before {
        display: none;

    }
}




/* コンテンツ共通 */

.page-contents {
    max-width: 960px;
    margin: auto;
    padding: 0 15px;
}

.content {
    text-align: center;
}

@media (max-width: 769px) {
    .content {
        text-align: left;
    }
}

.page-title-area {
    max-width: 1080px;
    margin: auto;
}

.page-title {
    width: 200px;
    padding: 125px 0 175px 30px;
}



/* homeページ */

.home-top {
    position: relative;
    width: 100%;
    margin: auto;
    overflow: hidden;
}

@media (max-width: 769px) {
    .home-top {
        padding-top: 3em;
    }
}


.home-top .bgImg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    animation: bgAnime 24s infinite;
    /* 4画像 × 各6s = 24s */
}

/* --- 段差で背景画像のアニメーションを実行 ----------------- */
.home-top .src1 {
    background-image: url(../img/home_top-img1.jpg);
    background-position: center;
    background-size: cover;
    /* 背景の画像を指定 */
}

.home-top .src2 {
    background-image: url(../img/home_top-img2.jpg);
    background-position: center;
    background-size: cover;
    /* 背景の画像を指定 */
    animation-delay: 6s;
}

.home-top .src3 {
    background-image: url(../img/home_top-img3.jpg);
    background-position: center;
    background-size: cover;
    /* 背景の画像を指定 */
    animation-delay: 12s;
}

.home-top .src4 {
    background-image: url(../img/home_top-img4.jpg);
    background-position: center;
    background-size: cover;
    /* 背景の画像を指定 */
    animation-delay: 18s;
}

.home-top .src1-sp {
    background-image: url(../img/home_top-img1-sp.jpg);
    background-position: center;
    background-size: cover;
    /* 背景の画像を指定 */
}

.home-top .src2-sp {
    background-image: url(../img/home_top-img2-sp.jpg);
    background-position: center;
    background-size: cover;
    /* 背景の画像を指定 */
    animation-delay: 6s;
}

.home-top .src3-sp {
    background-image: url(../img/home_top-img3-sp.jpg);
    background-position: center;
    background-size: cover;
    /* 背景の画像を指定 */
    animation-delay: 12s;
}

.home-top .src4-sp {
    background-image: url(../img/home_top-img4-sp.jpg);
    background-position: center;
    background-size: cover;
    /* 背景の画像を指定 */
    animation-delay: 18s;
}

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

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* --- 前面の文字定義---- */
.home-top .boxString {
    position: absolute;
    display: inline-block;
    padding: 20px;
    top: 40%;
    /* 中央寄せ */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

.news-top {
    position: relative;
    width: 100%;
    height: 20em;
    background-image: url(../img/news-top-bg.jpg);
    background-position: center;
    background-size: cover;
}


@media (max-width: 769px) {
    .news-top {
        padding-top: 3em;
    }
}

.news-top .boxString {
    position: absolute;
    display: inline-block;
    padding: 20px;
    top: 50%;
    /* 中央寄せ */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

.photo1-top {
    position: relative;
    width: 100%;
    height: 25em;
    background-image: url(../img/photo-top-bg1.jpg);
    background-position: center;
    background-size: cover;
}

.photo2-top {
    position: relative;
    width: 100%;
    height: 25em;
    background-image: url(../img/photo-top-bg2.jpg);
    background-position: center;
    background-size: cover;
}

.photo2-top .boxString,
.photo1-top .boxString {
    position: absolute;
    display: inline-block;
    padding: 20px;
    top: 3%;
    right: 3%;
    z-index: 11;
}

.home-message {
    width: 982px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.home-ayumi {
    background-color: #efefef;
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    padding: 2em;
}

.home-ayumi h3 {
    color: #94252a;
}

.ayumi td {
    vertical-align: text-top;
    padding: 15px 5px;
}

.news-p {
    font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

.news-p td {
    vertical-align: text-top;
    padding: 15px 5px;
}

.home-ayumi p {
    padding-top: 15px;
}

.home-news {
    width: 982px;
    max-width: 100%;
    margin: 0 auto;
}

.home-news ul {
    list-style: none;
}

h4 {
    color: #94252a;
    font-weight: bold;
    font-size: 1.5em;
}

.home-contents {
    width: 982px;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

.photo-contents {
    width: 982px;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 15px;
    border-left: solid 2px #94252a;
}

.photo-contents-nb {
    width: 982px;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

.photo-contents-nb img {
    width: 100%;
    padding-top: 30px;
    height: 18rem;
    object-fit: cover;
}

.photo-contents-nb video {
    width: 100%;
    padding-top: 30px;
}

.photo-contents h5 {
    padding-top: 15px;
    margin-left: -25px;
}

.photo-contents p {
    text-align: center;
    padding-top: 5px;
    padding-bottom: 15px;
}

.photo-contents img {
    width: 100%
}

.to_photo {
    text-align: center;
    width: 100px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.home-contents p {
    font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
}

.mincho-title {
    font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    font-size: 1.5em
}

.kouka ul {
    list-style: decimal;
}

.event-left1 {
    display: table;
    background-color: #006934;
    color: #FFF;
    font-weight: bold;
    text-align: center;
}

.event-left2 {
    display: table;
    background-color: #6a3906;
    color: #FFF;
    font-weight: bold;
    text-align: center;
}

.event-left3 {
    display: table;
    background-color: #601986;
    color: #FFF;
    font-weight: bold;
    text-align: center;
}

.event-inner {
    display: table-cell;
    vertical-align: middle;
    padding: 15px 0;
}

.event-right {
    padding-top: 15px;
}

.contact-title {
    background-color: #dcdddd;
    color: #171c61;
    font-weight: bold;
    padding: 5px 10px;
    margin-bottom: 15px;
}

.contact-tel {
    color: #171c61;
    padding-left: 50px;
    line-height: 1.3;
}

.contact-tel a {
    color: #171c61;
    text-decoration: none;
}

.home-blog ul {
    list-style: none;
}

.home-blog a {
    text-decoration: none;
}

.to-blog {
    text-align: right;
}

.kaicho {
    text-align: center;
}

.kaicho img {
    max-width: 300px;
}

.event img {
    width: 400px;
    max-width: 95%;
    margin-bottom: -1em;
}


.home-access p {
    padding-right: 150px;
}

.gaikan img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: right;
}

.bottom-img {
    position: relative;
}

.b-img {
    width: 100%;
    max-height: 65em;
    object-fit: cover;
}

.img-caption {
    position: absolute;
    bottom: 5%;
    right: 10%;
    color: #FFF;
    font-size: 0.8em;
    text-shadow: 1px 1px 0 #555, -1px -1px 0 #555,
        -1px 1px 0 #555, 1px -1px 0 #555,
        0px 1px 0 #555, 0-1px 0 #555,
        -1px 0 0 #555, 1px 0 0 #555;
}


/* 写真 */
.photo-btn {
    margin: 0;
    padding: 0;
}

.photo-btn1 {
    background-color: #3e487d;
}

.photo-btn2 {
    background-color: #94252a;
}

.photo-btn1 img,
.photo-btn2 img {
    width: 100%;
    height: 75px;
    object-fit: cover;
    object-position: center;
}


.link-bn {
    width: 90%;
    max-width: 400px;
    margin: auto;
}


/* フッター */

footer {
    background-color: #94242a;
}

.ft-data {
    width: 982px;
    margin: auto;
    color: #FFF;
    padding: 25px;
}

footer ul {
    text-align: center;
    width: 100%;
    list-style: none;
    right: 0;
    bottom: 0;
    font-size: 11px;
    margin: 0;
    padding: 0;
    background-color: #3e487d;
}

footer ul li {
    width: 125px;
    padding: 5px 0px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    color: #FFF;
}

footer .list li + li::before {
    content: "";
    display: block;
    height: 1em;
    border-left: 2px solid #FFF;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: rotate(15deg);
}


.copyright {
    text-align: center;
    background-color: #FFF;
    font-size: 0.8em;
    padding: 20px;
}


footer p {
    clear: both;
    text-align: center;
    color: #555;
    font-size: 0.8em;
}

footer a {
    text-align: center;
    color: #FFF;
    font-size: 1em;
    text-decoration: none;
}


/* top-stickyボタン */

.st-btn {
    position: fixed;
    bottom: 50px;
    right: 0;
}


/* 記事日付 */

.center {
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.date {
    text-align: center;
    position: relative;
    display: inline-block;
    padding: 0 55px;
    color: #999;
}

.date:before,
.date:after {
    content: '';
    position: absolute;
    top: 50%;
    display: inline-block;
    width: 45px;
    height: 1px;
    background-color: #999;
}

.date:before {
    left: 0;
}

.date:after {
    right: 0;
}
