﻿/****** 04今治市 ******/

/** font **/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500&family=Zen+Old+Mincho:wght@500&display=swap');

:root{
    --font-jp: 'Zen Old Mincho', "游明朝", "YuMincho", "ＭＳ Ｐ明朝", "MS PMincho","ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "Sawarabi Mincho", "serif";
    --font-en: 'Playfair Display', 'Zen Old Mincho', "游明朝", "YuMincho", "ＭＳ Ｐ明朝", "MS PMincho","ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "Sawarabi Mincho", "serif";
}
body, .font_sans-serif, h1, h2, h3, h4, h5, h6, #main_menu ul li a, .blur span.contents2_txt, .cms_title::before, .banner, #contents1 p, #contents2 p, #contents3 p, a[href^="tel:"], #contents1 h2 span{
    font-family: var(--font-jp)!important;
    font-weight: normal!important;
}
.font_en{
    font-family: var(--font-en);
}

.font_bold{
    font-weight: normal!important;
}

/** color **/

:root{
    --color1: #991132;
    --color1s: #124f45;
    --color2: #ededeb;
    --color3: #4c7f2a;
    --color4: #dddddb;
    --black: #333333;
    --base: #f7f7f7
}

/** other **/

body{
    background-image: url('./Dup/img/bg_img.jpg');
    background-size: 1000px;
}

#loading img{
    max-width: 150px;
}

.link_box ul li, .link_box li.grid_1{
    width: auto!important;
    margin: 0 10px!important;
    max-width: inherit;
}

header{
    background-image: url(./Dup/img/img3.png), url(./Dup/img/bg_img2.jpg);
    background-size: 300px, 1000px;
    background-repeat: no-repeat, repeat;
    background-position: left -60px bottom -20px, top left;
}
header .head_box .link_box ul{
    justify-content: center;
}

#logo{
    max-width: 200px;
}
#logo img{
    width: 100%!important;
}

#main_img {
    max-height: inherit;
    min-height: inherit;
}
.contents1_wrap{
    background-image: url('./Dup/img/img5.png');
    background-size: 400px;
    background-position: top 0 right -50px;
    background-repeat: no-repeat;
}
#contents1 h2, #contents1 h2 span{
    transform: none;
    border-left: none;
    padding: 0;
    border-bottom: none;
    color: var(--black);
}
#contents1 h2:before{
    display: none;
}
#contents_box{
    position: relative;
}
#contents_box::before{
    position: absolute;
    content: "";
    width: 200px;
    height: 200px;
    background-image: url(./Dup/img/img1.png);
    background-size: contain;
    background-repeat: no-repeat;
    right: 20px;
    bottom: -150px;
    z-index: 1;
}
#contents2{
    position: relative;
}
#contents2::before{
    position: absolute;
    content: "";
    width: 200px;
    height: 200px;
    left: -50px;
    bottom: -100px;
    background-image: url('./Dup/img/img2.png');
    background-size: contain;
    background-repeat: no-repeat;
}
#contents2 > .d_flex{
    position: relative;
}

.banner{
    background-color: var(--color3);
}
.button:hover{
    color: #fff!important;
    border-color: var(--color1s);
}
.button:hover::after, header .button:hover::after{
    box-shadow: inset 0 0 0 15em var(--color1s);
}
.button2{
    color: var(--color1s);
    border-color: var(--color1s);
}
.button2:hover{
    color: #fff;
    background-color: var(--color1s);
}

.top_cms_wrap .top_cms_before, .all main.scrollin .all_bg, .footer_back .f_before{
    display: none;
}

#top_cms .box{
    background-color: transparent;
    box-shadow: none;
    padding: 20px 0;
}

.all article section{
    background-color: transparent;
    padding: 0;
    max-width: 1280px;
    margin-bottom: 0;
}
.all main{
    background-image: url('./Dup/img/img5.png');
    background-size: 400px;
    background-position: top 230px right -50px;
    background-repeat: no-repeat;
}

.cms_2-a .cate_box:nth-of-type(even){
    flex-direction: row-reverse
}
.cms_2-a .cate_box:last-of-type{
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

#cms_6-a .cate_box_h .box_title1::before{
    position: absolute;
    content: "";
    width: 2px;
    height: 100%;
    top: 0;
    left: -20px;
    background-color: var(--color1);
}

#page7 .box{
    border-color: var(--color4);
}
#page7 .box .txt_color1{
    color: var(--black);
    letter-spacing: 1px;
}
#page7 .box .txt_color3{
    color: var(--color1);
    letter-spacing: 1px;
}

#page8 .con_tel_box a[href^="tel:"]{
    background-color: var(--color3);
    border: none;
    color: #fff;
    padding: 20px 0;
    margin-top: 20px;
}
#page8 .con_tel_box a[href^="tel:"]:hover{
    opacity: 1;
    background-color: var(--color1s);
}

#page9 .top_txt{
    text-align: left;
}

.footer_back{
    background-color: #fff;
}
footer .link_box ul li{
    padding: 10px;
    background-color: var(--color1);
    border-radius: 50px;
}


/** tablet 780 **/
@media screen and (max-width: 768px){
.all main {
    background-position: top 100px right -50px;
}
header {
    background-size: 200px, 1000px;
    background-position: left -40px bottom -70px, top left;
}
#logo{
    max-width: 100px;
}
.hamburger {
    top: 28px;
}
.main_box{
    padding-top: 100px;
}
#contents2 > .d_flex{
    flex-direction: column-reverse;
}
#contents2 > .d_flex > .grid_6{
    width: 100%!important;
}
#contents2 > .d_flex > figure{
    width: 100%!important;
    margin-top: 0;
    margin-bottom: 30px;
}
#page_title .title_img{
    height: 160px;
}
}

/** mobile 750 **/
@media screen and (max-width: 667px){
body{
    background-size: 600px;
}
.all main {
    background-size: 300px;
    background-position: top 100px right -30px;
}
header {
    background-size: 150px, 600px;
    background-position: left -30px bottom -40px, top left;
}
#logo {
    max-width: 80px;
}
#contents_box::after {
    top: -80px;
}
#contents1{
    padding-top: 50px;
}
#contents2::before {
    width: 150px;
    height: 150px;
    left: -20px;
    bottom: -50px;
}
#contents_box::before {
    width: 150px;
    height: 150px;
    right: -10px;
    bottom: -150px;
}
.hamburger {
    top: 18px;
}
.contents1_wrap {
    background-size: 300px;
}
.main_box{
    padding-top: 80px;
}
.banner {
    bottom: 0;
    font-size: 18px;
    letter-spacing: 2px;
    width: 100%;
}
}