﻿
/* ---------- font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Shippori+Mincho:wght@400;500;600;700;800&display=swap');
:root{
    --font-base:  "Shippori Mincho", "游明朝", "YuMincho", "ＭＳ Ｐ明朝", "MS PMincho","ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "Sawarabi Mincho", "serif";
    --font-jp:  "Noto Serif", "游明朝", "YuMincho", "ＭＳ Ｐ明朝", "MS PMincho","ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "Sawarabi Mincho", "serif";
}
body, .font_sans-serif, .font_serif, .font_Quick{
    font-family: var(--font-jp)!important;
    font-weight: 500;
}
#top_contents1 h2, #top_contents2 h2, #top_contents2 h2, #t_cms_banner .box_title span, .top_cms_title .cms_title_inner, .top_info_title .info_title_inner, .font_shi {
    font-family: var(--font-base)!important;
}
.linehight_2 {
    line-height: 1.7;
}
.font_bold {
    font-weight: 500;
}
.font_2dw {
    font-size: -webkit-calc(1rem - 0px);
    font-size: calc(1rem - 0px);
}



/* ---------- color ---------- */
.top_cms_title .before, .top_info_title .before {
    color: #b92a17;
}


/* ---------- all ---------- */
#footer::before {
    background: rgb(59 59 59 / 82%);
}
#logo2 {
    max-width: 350px;
    width: 30% !important;
    filter: brightness(0) invert(1);
}
#logo {
    left: 29px;
    width: 319px;
    height: 100%;
    text-align: left;
}
h1 img, h1.logo{
    width: 100%!important;
}
.bg_color4{
    background: url( "../img/bg1.jpg" ) center / 500px repeat ;
}
.bg_color2:not(input,textarea) {
    background: url( "../img/bg2.jpg" ) center / 400px repeat ;
}



/* ---------- top ---------- */
.fv_txt {
    z-index: 2;
    width: min(40%, 800px);
    left: 50%;
    top: 51%;
    transform: translate(-50%, -50%);
}

#top_contents1 {
    background-image: url(../img/bg2.png), url(../img/bg3.png);
    background-repeat: no-repeat;
    background-position: left top 20px, right bottom 20px;
    background-size: 25%, 17%;
}

#top_contents2, #top_contents2 .top_cms_title{
    position: relative;
}
#top_contents2:before, #top_contents2 .top_cms_title:before {
    content: "";
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
}
#top_contents2:before {
    background-image: url(../img/item1.png);
    background-size: 100%;
    width: 30vw;
    height: 21vw;
    bottom: -15vw;
    left: -126px;
}
#top_contents2 .top_cms_title:before {
    background-image: url(../img/item1.png);
    background-size: 100%;
    width: 27vw;
    height: 21vw;
    top: 2vw;
    right: 0;
}

#footer_info .contact_box a .contact_bg{
    transition-property: opacity, transform;
    opacity: 0.3;
}
#footer_info .contact_box a:hover .contact_bg{
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.1);
}
#footer_info .bg_white{
    background-color: #878787;
}
#loading_logo{
    max-width: 400px;
}

#top_contents1 h2, #top_contents2 h2 {
    font-size: 30px;
    color: var(--normal);
}

#top_contents1 h2{
    position: relative;
}
#top_contents1 h2::before {
    position: absolute;
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--color3);
    left: 0;
    right: 0;
    bottom: -9px;
    margin: auto;
}



/* ----------　TOPCMSリンク　---------- */
#t_cms_banner .cate_box {
	padding: 0 30px;
}
#t_cms_banner .img_box {
	padding-top: 144%;
}
#t_cms_banner .bg_color {
    width: 80%;
    right: 0;
    top: 0;
}
#t_cms_banner .bg_color img {
	object-fit: cover;
	max-width: initial;
	opacity: 1;
}
#t_cms_banner .box_title {
    height: max-content;
    top: -33px;
    right: -28px;
}
#t_cms_banner .box_title span{
    padding: 15px 7px;
    transition: 0.8s cubic-bezier(0.77, 0, 0.18, 1) background-color;
}
#t_cms_banner .box_txt {
    right: -8%;
    bottom: 8%;
	line-height: 1.7;
}
#t_cms_banner .img_box:hover .box_title span {
    color: #fff;
}
#t_cms_banner .imo_motion {
	-webkit-transition: 0.8s cubic-bezier(0.77, 0, 0.18, 1) width, 0.8s cubic-bezier(0.77, 0, 0.18, 1) opacity;
    transition: 0.8s cubic-bezier(0.77, 0, 0.18, 1) width, 0.8s cubic-bezier(0.77, 0, 0.18, 1) opacity;
    transition: 1s cubic-bezier(0.77, 0, 0.18, 1) width, 1s cubic-bezier(0.77, 0, 0.18, 1) opacity;
}
#t_cms_banner .img_box:hover .bg_color {
	width: 100%;
}
#t_cms_banner .img_box:hover .bg_color img {
    width: 100%;
    opacity: 1;
    -ms-filter: "alpha(opacity=100)";
    filter: alpha(opacity=100);
}
#t_cms_banner .img_box:hover .box_txt{
	opacity: 0
}
#t_cms_banner .box_title {
    background-color: #ffffff;
    transition: .3s;
    box-shadow: 0px 3px 10px rgba(2, 2, 2, 0.1);
}
#t_cms_banner .img_box:hover .box_title{
    background-color: var(--color1);
}
/*#t_cms_banner .img_box:hover .box_title{
    transition: .5s;
}*/
#t_cms_banner .bg_color{
    width: 90%;
}
#t_cms_banner .img_box {
    padding-top: 163%;
}
#t_cms_banner .bg_color {
    /*border: 4px solid*/;
    margin-inline: auto;
    border-image: linear-gradient(to right, var(--color1), var(--color1));
    border-image-slice: 1;
    background-color: #494949;
}


/* ---------- under ---------- */
#cms_2-g .cate_title {
    line-height: 1.5;
}
#cms_2-g .cate_txt1 {
    font-size: 18px;
}
#cms_2-g .cate_img1 {
    height: 100vh;
    max-height: 450px;
}
#cms_2-g .cate_txt2:empty {
    display: none;
}



/* ---------- tablet ---------- */
@media screen and (max-width: 768px){
#logo h1.logo {
    top: 156%;
    left: 0;
    transform: translateY(-50%);
    max-width: 200px;
}
.fv_txt {
    z-index: 2;
    width: min(48%, 800px);
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
}
#top_contents1 h2, #top_contents2 h2 {
    font-size: 24px;
}
#top_contents1 {
    background-image: url(../img/bg2.png), url(../img/bg3.png);
    background-repeat: no-repeat;
    background-position: left top 20px, right bottom 20px;
    background-size: 23%, 26%;
}
#top_contents2 .top_cms_title:before {
    background-image: url(../img/item1.png);
    background-size: 100%;
    width: 43vw;
    height: 21vw;
    top: -4vw;
    right: -69px;
}
#top_contents2:before {
    background-image: url(../img/item1.png);
    background-size: 100%;
    width: 43vw;
    height: 21vw;
    bottom: -9vw;
    left: -126px;
}
#cms_2-g .cate_img1 {
    height: 100vh;
    max-height: 300px;
}

/* ----------　TOPCMSリンク　---------- */
#t_cms_banner .img_box {
    padding-top: 114%;
}
#t_cms_banner .bg_color {
    width: 90%;
    right: 5%;
}
#t_cms_banner .box_txt {
    font-size: 16px;
}
#t_cms_banner .img_box:hover .bg_color {
    width: 90%;
}
}

/* ---------- mobile ---------- */
@media screen and (max-width: 667px){
footer{
    background: url(../img/bg2.jpg) center / 400px repeat;
}

#logo h1.logo {
    top: 124%;
    left: 0;
    transform: translateY(-50%);
    max-width: 200px;
}
#logo {
    left: 16px;
    width: 319px;
    height: 100%;
    text-align: left;
    width: 62% !important;
}
#logo img{
    width: 100% !important;
}
.button_container {
    height: 29px;
    width: 27px;
}
#top_contents1 {
    background-image: url(../img/bg2.png), url(../img/bg3.png);
    background-repeat: no-repeat;
    background-position: left top -20px, right bottom -10px;
    background-size: 38%, 40%;
    padding-bottom: 88px;
}
#top_contents1 h2, #top_contents2 h2 {
    font-size: 22px;
}
#top_contents2 .top_cms_title:before {
    background-image: url(../img/item1.png);
    background-size: 100%;
    width: 59vw;
    height: 21vw;
    top:-10vw;
    right: -69px;
}
#top_contents2:before {
    background-image: url(../img/item1.png);
    background-size: 100%;
    width: 72vw;
    height: 31vw;
    bottom: -9vw;
    left: -93px;
}
#top_contents2 {
    padding-bottom: 49px;
}
#logo2 {
    max-width: 350px;
    width: 49% !important;
    filter: brightness(0) invert(1);
}
#top_cms .font_6dw_sp {
    font-size: -webkit-calc(1rem - 2px);
    font-size: calc(1rem - 2px);
}

#t_cms_banner .cate_box {
    padding: 0 10px;
}
#t_cms_banner .img_box {
    padding-top: 150%;
}
#t_cms_banner .box_txt {
    font-size: -webkit-calc(1rem - 2px);
    font-size: calc(1rem - 2px);
}
#cms_2-g .cate_txt1 {
    font-size: 16px;
}
#cms_2-g .cate_img1 {
    max-height: 172px;
}
#cms_2-g .box_title1 {
    font-size: -webkit-calc(1rem + 2px);
    font-size: calc(1rem + 2px);
}
}


/* fix_bnr ---------------------------------------------------------------------------------------------*/
#fix_bnr {
    bottom: 10px;
    right: 99px;
    z-index: 10;
    width: 70%;
    max-width: 353px;
    transition: 0.5s;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}
#fix_bnr.scroll{
    opacity: 1;
pointer-events: auto;
}
#fix_bnr.close{
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}
@media screen and (max-width: 768px){
#fix_bnr {
    bottom: 10px;
    right: 0;
    left: 0;
    margin: auto;
    z-index: 10;
    width: 70%;
    max-width: 353px;
    transition: 0.5s;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}
}
@media screen and (max-width: 667px){
#fix_bnr {
    width: 70%!important;
    right: 0;
    left: 0;
    margin: auto;
    bottom: 10px;
}
}
/* fix_bnr end ---------------------------------------------------------------------------------------------*/






