@charset "utf-8";

/* 004b88 */
html {
    scroll-behavior: smooth;
}

/*==================================================
ふわっ
===================================*/
/* fadeUp */

.fadeUp{
    animation-name:fadeUpAnime;
    animation-duration:1s;
    animation-fill-mode:forwards;
    opacity:0;
    }
    
    @keyframes fadeUpAnime{
      from {
        opacity: 0;
      transform: translateY(250px);
      }
    
      to {
        opacity: 1;
      transform: translateY(0);
      }
    }
    /* スクロールをしたら出現する要素にはじめに透過0を指定　*/
     
    .fadeUpTrigger{
        opacity: 0;
    }
/* Loading背景画面設定==================================*/
#splash {
    /*fixedで全面に固定*/
      position: fixed;
      width: 100%;
      height: 100%;
      z-index: 999;
      background:#333;
      text-align:center;
      color:#fff;
    }
    
    /* Loading画像中央配置　*/
    #splash_logo {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    
    /* Loading アイコンの大きさ設定　*/
    #splash_logo img {
      width:100px;
    }
    
    /* fadeUpをするアイコンの動き */
    .splash_fadeUp{
    animation-name: splash_fadeUpAnime;
    animation-duration:0.5s;
    animation-fill-mode:forwards;
    opacity: 0;
    }
    
    @keyframes splash_fadeUpAnime{
      from {
        opacity: 0;
      transform: translateY(100px);
      }
    
      to {
        opacity: 1;
      transform: translateY(0);
      }
    }
 /* ==================================  */

/*　↓ ボックスサイジング */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* デフォルトのmarginを削除 */
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
  color: #333;
}
/* a,ul,ol,li設定 */
a:link,
a:visited {
    color: inherit;
    text-decoration: none;
}
/* a:hover {
    opacity: .8;
} */
ul,
ol {
  padding: 0;
}
li {
    list-style: none;
}
/* ↑a,ul,ol,li設定 */

/* .fadeInUpTrigger{
	opacity: 0;
} */

/* body:全体設定 */
body {
    font-family: 'Shippori Mincho', serif;
    line-height: 1.5;
    background-image: url(../images/background.jpg);
    min-height:100vh;
    background-attachment:fixed;
    background-size:cover;
    background-position:center;
    z-index: -100;
}
/* フォント：ゴシック指定用クラス */
body .Gothic {
    font-family: 'Zen Kaku Gothic New', sans-serif;
}
/* >　アイコンcssにて作成クラス */
.arrow_r {
    position: relative;
    display: inline-block;
  }
  .arrow_r:before {
    content: '';
    width: 12px;
    height: 12px;
    border: 0;
    border-top: solid 1px ;
    border-right: solid 1px ;
    position: absolute;
    transform: rotate(45deg);
    margin-top: 8px;
  }
/* ↑body:全体設定 */

/* container:グリッド設定 */
#container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 200px 1fr 400px 50px; 
}
/* ↓nav設定 */
header {
    grid-area: 1 / 1 / 2 / 3; 
    padding-left: 50px;
    padding-top: 50px;
    z-index: 4;
    background-image: url(../images/background_ele.svg);
    background-repeat: no-repeat;
    background-position: top 5px left -100px;
}
nav {
    grid-area: 1 / 1 / 2 / 3; 
    padding-top: 50px;
    padding-right: 5%;
    z-index: 5;
    width: 50%;
    justify-self: end;
}
nav ul {
    display: flex;
    flex-direction: row-reverse;
    padding-right: 30px;
}
nav ul li  {
    padding-right: 25px;
    writing-mode: vertical-rl;
    text-align: left;
}
nav ul li a {
    position: relative;
    display: inline-block;
    text-decoration: none;
}
nav ul li a:hover {
    color: #004b88;
    opacity: .8;
}
/* ↑nav設定 */
.side_l {
    position: absolute;
    top: 50vh;
    left: 50px;
    z-index: 10;
}
/**************** index変更点 **********************************************/

main {
    grid-area: 1 / 1 / 3 / 3;
    margin-left: 30px;
    z-index: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px calc(100vh - 200px) 100vh auto;
    z-index: 1;
    background-image: url(../images/background_ele.svg);
    background-repeat: no-repeat;
    background-position: bottom 5px right -50px;
    background-size:50vw;
}
.mainvisial_text {
    grid-row: 2;
    grid-column: 1;
    padding: 0vh 5vw 5vh 10vw;
    font-size: 1rem;
    line-height: 6.6vh;
    z-index: 10;
    word-break: keep-all;
}
.white_box{
    grid-row: 1 / 3;
    grid-column: 2;
    z-index: 5;
}
.white_box::before{
    content: "";
    width: 100%;
    height: 300px;
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,0.93) 10%,rgba(255,255,255,0.5) 75%,rgba(255,255,255,0) 100%);
}
.mainvisual_img {
    grid-row: 1 / 3;
    grid-column: 2;
    overflow: hidden;
    position: relative;
    z-index: -1;
}
.mainvisual_img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 70%;
}
/* ふわっとアニメーション */
  @keyframes anime {
    0% { 
      opacity: 1;
    }
    50% { 
      opacity: 1;
    }
    60% {  
      opacity: 0;
      transform: scale(1.15) ;
      z-index: 10;
    }
    100%{ 
      opacity: 0;
      transform: scale(1.15) ;
    }
  }

.mainvisual_img img{
    position: absolute;
    left: 0;
    top: 0;
    animation: anime 14s 0s infinite;
    opacity: 0;
}
.mainvisual_img img:nth-of-type(2){
    animation-delay: 7s;
}
.abouts {
    grid-row: 3 / -1;
    grid-column: 1 / -1;
    margin: 30vh 30px 5% 0;
    z-index: -100;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.about {
    max-width: 950px;
    width: 95%;
    margin-bottom: 150px;
}
.about a{
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
}
.about a img {
    grid-row: 1;
    grid-column: 1;
    width: 70%;
    height: 100%;
    object-fit: cover;
    max-width: 636px;
    max-height: 367px;
    margin-left: 5vw;
    box-shadow:  0px 0px 8px #bbbaba8e;
}
.textbox{
    grid-row: 1;
    grid-column: 1;
    max-width: 636px;
    max-height: 367px;
    width: 80%;
    height: 100%;
    font-size: .85rem;
    position: relative;
    writing-mode: vertical-rl;
    z-index: -1;
    padding: 5vw 8%;
    box-shadow:  0px 0px 6px #bbbaba54;
}
.textbox::after {
    content: "";
    width: 22px;
    height: 22px;
    border: 1px solid;
    border-color: #231815 #231815 transparent transparent;
    transform: rotate(45deg);
    position: absolute;
    top: calc(50% - 16px);
    right: 3vw;
}
.textbox h2 {
    font-weight: 500;
    letter-spacing: .2vh;
}
.about1 .textbox{
    background-color: #a7baca;
    justify-self: end;
    top:50px;
}
.about2 .textbox{
    background-color: rgb(212, 200, 200);
    justify-self: start;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    top: 50px;
}
.about2 .textbox h2 {
    height: 100%;
}
.about2 .textbox::after {
    content: "";
    width: 22px;
    height: 22px;
    border: 1px solid;
    border-color: #231815 #231815 transparent transparent;
    transform: rotate(-135deg);
    position: absolute;
    top: calc(50% - 16px);
    right: 92%;
}
.about2 a img {
    justify-self: flex-end;
    margin-right: 5vw;
}
.about3 a {
    margin-top: 50px;
}
.about3 .textbox{
    background-color: #a7baca;
    justify-self: end;
    top: -50px;
}
/**************** index変更点 **********************************************/
.main_btn {
    background-color: #004b88;
    width: 90%;
    height: 100px;
    text-align: center;
    line-height: 100px;
    font-size: 18px;
    position: relative;
    margin-bottom: 8vw;
}
.main_btn a {
    font-size: 1.2rem;
    color: white;
    display: block;
    margin-left: -10px;
}
.main_btn::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 1px solid;
    border-color: white white transparent transparent;
    right: 10%;
    top: 42px;
    transform: rotate(45deg);
    position: absolute;
}
.form_btn {
    background-color: #4E4E4E;
}
.main_btn span {
    margin-left: 10px;
}
footer {
    grid-area: 3 / 1 / 4 / 3;
    background-color: #d1d1d1;
    padding:30px 50px;
    height: 400px;
}
footer a:hover {
    opacity: .8;
}
.foot_nav {
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
    border-bottom: #333 1px solid;
}
.parentmenu {
    width: 25%;
    font-weight: 500;
    letter-spacing: .1rem;
    margin-bottom: 30px;
}
.childmenu {
    display: flex;
    flex-flow: column;
    font-weight: 300;
    font-size: .95rem;
    letter-spacing: normal;
    margin-top: 5px;
}
.childmenu li {
    padding-top: 5px ;
}
.footer_map {
    border-bottom: #333 1px solid;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .05rem;
}
.copyright {
    grid-area: 4 / 1 / 5 / 2;
    font-size: .85em;
    align-self: center;
    text-align: center;
    font-size: .8rem;;
    letter-spacing: .05rem;
}
.sp,
.sp_nav_address,
.sp_nav_logo,
.page-btn,
.page-btn-close {
    display: none;
}
.page_top {
    width: 50px;
    height: 50px;
    position: fixed;
    right: 30px;
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}
.page_top a {
    background-color: #004b88;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
}
.page_top a:hover{
    opacity: 1;
}
.fa-chevron-up {
    color: white;
    text-align: inherit;
}
.min_sp{
    display: none;
}

.info_culm{
    display: flex;
    justify-content: space-between;
    margin: 0 5%;
}
.privacy_link {
    text-decoration: underline;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: .9rem;
    text-align: right;
}
.privacy_link:hover{
    opacity: .8;
}
@media(max-width:925px){
    .info_culm{
        display: block;
        justify-content: space-between;
        margin: 0 5%;
    }
    .info_base {
        width: 100%;
        margin: 80px 0;
    }
    .swiper{
        width:87vw;
        height: 506.2px;
    }
    .calendar_base {
        width: 100%;
        margin-bottom: 80px;
    }
}

/* スマホ設定↓ ***********************/
@media(max-width:767px){
    #container {
        grid-template-rows: 150px 1fr 400px 50px; 
    }
    /* spクラスはスマホのみ表示 */
    .sp {
        display:inline-block;
    }
    .pc {
        display: none;
    }
    header {
        padding-left: 8%;
        padding-top: 50px;
        background-image:none;
    }
    header .logo {
        margin-top: -25px;
        margin-left: -10px;
    }
    nav{
        display: none;
    }
    nav ul li a::after {
        display: none;
    }
    .side_l {
        display: none;
    }
    main {
        margin: 0;
    }
    .open nav {
        display: block;
        grid-row: 1 / -1;
        justify-self: end;
        background-color: #4E4E4E;
        z-index: 10;
        width: 75%;
    }
    .open nav ul {
        display: grid;
        margin: 10%;
        padding-bottom: 30px;
        border-bottom: 1px solid white;
    }
    .open nav ul li {
        writing-mode:horizontal-tb;
        color: white;
        padding: 20px 0;
        display: flex;
        justify-content: space-between;
    }
    .open nav ul li a {
        width: 100%;
        color: white;
        font-size: 1.1rem;
        letter-spacing: .1rem;
    }
    .open .sp_nav_logo {
        display: block;
        padding-left: 10%;
    }
    .open .sp_nav_address {
        display: block;
        padding: 20px 10%;
        font-size: .9rem;
    }
    .sp_nav_address p{
        color:white;
    }
    .sp_nav_address .tel_fax{
        font-size: 1.1rem;
        letter-spacing: .1rem;
        margin-top: 20px;
    }
    .sp_nav_address .address a {
        color: white;
        border-bottom: white 1px solid;
    }
    .page-btn,
    .page-btn-close {
        display: block;
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        align-self: flex-start;
        padding: 30px 40px;
        border: none;
        background-color: transparent;
        color: #333;
        font-size: 28px;
        cursor: pointer;
        z-index: 20;
    }
    .page-btn-close {
        display: none;
        color: white;
    }
    .open .page-btn {
        display: none;
    }
    .open .page-btn-close {
        display: block;
    }
    .parentmenu {
        width: 50%;
        text-align: center;
    }
    .childmenu{
        display: none;
    }
    footer {
        display: grid;
        grid-template-rows: auto auto auto auto;
    }
    .foot_logo {
        text-align: center;
        grid-row: 1;
        margin-bottom: 20px;
    }
    footer address {
        grid-row: 2;
    }
    
    footer .tel_fax {
        grid-row: 3;
    }
    .foot_nav{
        grid-row: 4;
        border-bottom: none;
        border-top: #A1A1A1 1px solid;
        margin: 30px 0 0;
        padding-top: 30px;
    } 
    .copyright {
        background-color: white;
        padding: 20px 0;
        font-size: .7rem;
    }
    .privacy_link {
        text-align: center;
    }
    /************ indexスマホ設定 *************************/
    .mainvisial_text {
        grid-row: 3;
        grid-column: 1 / -1;
        font-size: 1rem;
        line-height: 4rem;
        padding: 5vh 10vw;
        display: grid;
        align-content: center;
        text-align: center;
    }
    .white_box{
        grid-row: 1;
        grid-column: 1 / -1;
    }
    .white_box::before{
        content: "";
        width: 100%;
        height: 250px;
    }
    .mainvisual_img {
        grid-row: 1 / 3;
        grid-column: 1 / -1;
        margin: 0;
    }
    .mainvisual_img img{
        object-position: 80% 100%;
    }
    .abouts {
        grid-row: -2 / -1;
        grid-column: 1 / -1;
        margin: 0;
    }
    .about {
        width: 100%;
        margin-bottom: 150px;
    }
    .about a img {
        grid-row: 1;
        grid-column: 1;
        justify-self: center;
        width: 90%;
        height: 90%;
        object-fit: cover;
        margin: 0;
        box-shadow:  0px 0px 8px #bbbaba8e;
    }
    .textbox{
        grid-row: 1;
        grid-column: 1;
        max-width:none;
        width: 100%;
        height: 100%;
        font-size: .85rem;
        position: relative;
        writing-mode:horizontal-tb;
        align-self: flex-end;
        z-index: -1;
        padding: 7vw;
        box-shadow:  0px 0px 6px #bbbaba54;
        display: grid;
        align-content: flex-end;
    }
    .textbox::after,
    .about2 .textbox::after  {
        content: "";
        width: 22px;
        height: 22px;
        border: 1px solid;
        border-color: #231815 #231815 transparent transparent;
        transform: rotate(45deg);
        position: absolute;
        top: calc(75% - 16px);
        right: 5vw;
    }
    .textbox h2 {
        font-weight: 500;
        letter-spacing: .2vh;
    }
    .about1 .textbox,
    .about2 .textbox,
    .about3 .textbox{
        justify-self: stretch;
        top:100px;
    }
    .about2 .textbox{
        display: grid;
    }
    .about2 .textbox h2 {
        height: auto;
    }
    .about2 a img {
        justify-self: center;
        margin-right: 0;
    }
    .about3 a {
        margin-top: 0px;
    }
}
@media(max-width:490px){
    .mainvisial_text {
        word-break:normal;
        line-height: 9vw;
    }
    .min_sp{
        display: inline;
    }
}
@media(max-width:374px){
    header .logo a img {
        width: 70%;
    }
    footer {
        grid-area: 3 / 1 / 4 / 3;
        background-color: #d1d1d1;
        padding: 10vw;
        height: 400px;
    }
    .copyright {
        background-color: white;
        padding: 30px 0;
        font-size: .65rem;
      }
      nav.sp_nav_logo img {
        height: 30px;
      }
      .mainvisial_text {
          font-size: 4.3vw;
          line-height: 10vw;

      }
      
}