﻿/** font **/
/** @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500&family=Ropa+Sans&display=swap'); **/


:root{
    --font-jp: "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium", YuGothic,"ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic",  sans-serif;
    --font-jp2: 'Noto Sans JP', "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium", YuGothic,"ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic",  sans-serif;
    --font-en: 'Ropa Sans', 'Noto Sans JP', "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium", YuGothic,"ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic",  sans-serif;
}
body, .font_sans-serif{
    font-family: var(--font-jp);
}
.font_jp, h2, h3, h4, h5, h6{
    font-family: var(--font-jp2);
}
.font_en, a[href^="tel:"], .en_font{
    font-family: var(--font-en);
}

.font_bold, .en_font{
    font-weight: normal;
}

/** color **/

:root{
    --color1: #000e40;
    --color2: #f2f2f2;
    --color3: #0066a5;
    --color4: #e4e4e4;
    --black: #222222;
}

/** other **/

#main_h .grid_container .grid_item{
    opacity: 0;
    transition: opacity 2s;
}
#main_h .grid_container .grid_item.fadeUp {
    opacity: 1;
}
#main_h .grid_container {
    display: grid;
    grid-template-columns: 50px repeat(2, 1fr) 50px 1fr 50px 1fr;
    grid-template-rows: 50px 1fr 50px 1fr 50px 1fr 50px;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    height: 100vh;
    min-height: 800px;
}
#main_h .grid_box1 { grid-area: 1 / 1 / 3 / 4; }
#main_h .grid_box2 { grid-area: 4 / 1 / 6 / 3; }
#main_h .grid_box3 { grid-area: 6 / 2 / 8 / 3; }
#main_h .grid_box4 { grid-area: 3 / 3 / 7 / 4; }
#main_h .grid_box5 { grid-area: 2 / 4 / 4 / 7; }
#main_h .grid_box6 { grid-area: 4 / 4 / 6 / 6; }
#main_h .grid_box7 { grid-area: 6 / 5 / 8 / 8; }
#main_h .grid_box8 { grid-area: 2 / 7 / 5 / 8; }

#main_h .top_catch{
    top: 50px;
    left: 50px;
    transition: 1s;
    transition-property: color;
}
#main_h .top_catch p{
    color: transparent;
    transition-delay: 0.5s;
}
#main_h .top_catch.active p{
    color: #fff;
    background-color: var(--color1);
}
#main_h .top_catch p::before{
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: #fff;
    top: 0;
    left: -100%;
}
#main_h .top_catch.active p::before{
    animation: txtAnim 1s cubic-bezier(.9,0,.1,1);
}
@keyframes txtAnim {
    0% {
        left: -100%;
    }
    50% {
        left: 0;
    }
    100% {
        left: 100%;
    }
}

.back_color{
    background-color: var(--color1);
    background-image: none!important;
}

#logo{
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0;
    filter: blur(5px);
    transition: 2s;
    transition-property: transform, opacity, filter;
}
#logo.active{
    transform: translate(-50%, -50%);
    opacity: 1;
    filter: none;
}
#logo img{
    width: 100%!important;
}

.g-menu-btn:after{
    border-color: var(--color1);
    background-color: rgba(255,255,255,0.9);
}
.g-menu-btn.active:after{
    background-color: transparent;
}
.g-menu-btn .dot span{
    background-color: var(--color1);
}

#intro{
    background-image: url('./Dup/img/bg_img.png');
    background-size: 1000px;
    background-position-x: 0;
    background-position-y: calc(100% - 200px);
    background-repeat: repeat-x;
    animation: anime1 50s linear infinite;
}
@keyframes anime1 {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -1000px;
    }
}
#intro .intro_title{
    background-image: linear-gradient(to bottom, #fff, #fff);
    background-size: 50px 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

#contents .box .box_item:after{
    display: none;
}

#contents .box .box_item h2{
    padding-bottom: 20px;
    margin-bottom: 30px;
    background-image: linear-gradient(to bottom, #fff, #fff);
    background-size: 50px 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
}
#contents .box .box_item p{
    line-height: 2;
}
#contents .box .no{
    background-image: linear-gradient(to bottom, #fff, #fff);
    background-size: 5px calc(100% - 60px);
    background-repeat: no-repeat;
    background-position: right center;
    line-height: 1;
}

#top_cms{
    background-image: url('./Dup/img/bg_img2.png');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: top;
    padding-top: 150px;
    padding-bottom: 1px;
    background-color: #fff;
}
#top_cms .top_cms_wrap {
    padding-bottom: 0;
}
#top_cms .top_cms_wrap .top_cms_box{
    background-color: transparent;
    padding-bottom: 0;
}
#top_cms .top_cms_wrap .top_cms_box .cms_wrap{
    width: 100%!important;
}
#top_cms .cms_title h2{
    font-size: 40px;
}
#top_cms .cms_title::before{
    font-size: 40px;
}

.more a, .date, .pager{
    font-family: var(--font-en);
}

#page_title{
    height: inherit;
    background-attachment: scroll;
    background-position: center;
    margin-bottom: 0;
}
#page_title:before{
    display: none;
}
#page_title:after{
    background-color: rgba(0,14,64,0.7);
    background-image: linear-gradient(to bottom, rgba(0,14,64,0), rgba(0,14,64,1));
    background-repeat: no-repeat;
    background-size: 100% 200px;
    background-position: bottom;
}
#page_title .page_title_box{
    color: #fff;
}
#page_title .page_title_box .wrap{
    width: 100%;
    text-align: center;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    padding: 150px 0 100px;
}
#page_title .page_title_box p:first-of-type{
    padding-right: 0;
}
#page_title .page_title_box p:last-of-type{
    padding-bottom: 50px;
    background-image: linear-gradient(to bottom, #fff, #fff);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 50px 2px;
    padding-right: 0;
}

.content_wrap{
    background-color: #fff!important;
}

.cate_list li{
    padding: 0;
    margin: 0 5px 10px;
    width: auto!important;
}
.cate_list li a{
    display: block;
    box-sizing: border-box;
    padding: 10px 20px;
    background-color: var(--color2);
}

#cms_3-h .box_item h4, .cms_3-h .box_item h4{
    min-width: inherit;
}

.page10 .more{
    width: 30%!important;
    margin: 0;
    margin-bottom: 20px;
}
.page10 .more a{
    font-size: 18px;
}

.footer_banner{
    right: 20px;
    bottom: 20px;
    transition: opacity 0.3s;
}
.footer_banner.active{
    opacity: 0;
    pointer-events: none;
}


/** tablet 780 **/
@media screen and (max-width: 768px){
#main_h .grid_container {
    grid-template-columns: 1fr 20px 1fr 20px 1fr 20px;
    grid-template-rows: 20px repeat(2, 1fr) 20px 1fr 20px 1fr 20px;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    height: 100vw;
    min-height: inherit;
}
#main_h .grid_box1 { grid-area: 1 / 1 / 3 / 5; }
#main_h .grid_box2 { grid-area: 3 / 1 / 4 / 2; }
#main_h .grid_box3 { grid-area: 3 / 2 / 4 / 4; }
#main_h .grid_box4 { grid-area: 2 / 5 / 5 / 7; }
#main_h .grid_box5 { grid-area: 4 / 2 / 6 / 5; }
#main_h .grid_box6 { grid-area: 5 / 5 / 7 / 6; }
#main_h .grid_box7 { grid-area: 7 / 3 / 9 / 6; }
#main_h .grid_box8 { grid-area: 5 / 1 / 8 / 2; }

#main_h .top_catch{
    top: 30px;
    left: 30px;
}

#intro {
    background-position-y: 50px;
}
#intro .intro_img{
    height: 50vw;
}
#top_cms{
    padding-top: 100px;
}
.page10 .more{
    width: 100%!important;
}
}

/** mobile 750 **/
@media screen and (max-width: 667px){
#main_h .grid_container {
    height: 150vw;
}
#main_h .top_catch{
    top: 20px;
    left: 20px;
}
#contents .box .box_item{
    padding: 50px 5%;
}
#contents .box .no {
    padding-bottom: 30px;
    background-size: calc(100% - 60px) 5px;
    background-position: bottom;
}
#contents .box .box_item h2{
    text-align: center;
    background-position: bottom;
    font-size: 20px;
}
#top_cms .cms_title h2{
    font-size: 30px;
}
#page_title .page_title_box p:first-of-type{
    font-size: 30px;
    letter-spacing: 2px;
}
.cate_list li{
    margin: 0 0 10px;
    width: 100%!important;
}
#footer .logo{
    text-align: center;
}
#footer .footer_cms {
    text-align: center;
}
.footer_banner{
    max-width: 120px;
}
}