
html{
    scroll-behavior: smooth;
}

body{
    font-family: "Roboto", sans-serif;
}

img{
    max-width:100%;
    height:auto;
}

:root{
    --main-color: #023084;
    --sub-color: #E11D48;
    --base-color:#F3F0EA;

    --fs-h2: 40px;
    --fs-h3: 32px;
    --fs-h4: 24px;
    --fs-body: 20px;
    --fs-small: 16px;
}

/*-----header-----*/

header{
    position: fixed;
    height: 110px;
    z-index: 1000;
    background-color: #fff;
    width: 100%;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.158);
}

.header_wrapper{
    max-width: 1140px;
    height: 100%;
    margin: 0 auto;
    align-items: center;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 110px;
}


.header_logo{
    width: 71px;
    grid-column: 1;
}

.header_name{
    width: fit-content;
    grid-column: 2 / span 4;
    line-height: 1.1;
    padding-top: 16px;
}

.name_small{
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.4%;
    margin-bottom: 9px;
}

.name_normal{
    color: #023084;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 0.4%;
}

.header_tel{
    text-align: right;
    padding-right: 30px;
    grid-column: 6 / span 3;
    line-height: 1.15;
}

.tel_text{
    color: #E11D48;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 0;
}

.tel_number{
    font-weight: bold;
    font-size: 31px;
    letter-spacing: 0;
    position: relative;
    padding-left: 40px;
}

.tel_number::before{
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 31px;
    height: 31px;
    background: url("../images/tel.png") no-repeat center / contain;
}

.header_apply,
.header_mail{
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5%;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header_apply a,
.header_mail a{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header_apply p,
.header_mail p{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    margin: 0;
}

.header_apply{
    background-color: #F28251;
    grid-column: 9 / span 2;
	transition: all 0.3s ease 0s;
}

.header_apply:hover{
    opacity: 0.6;
}


.header_mail{
    background-color: #023084;
    grid-column: 11 / span 2;
	transition: all 0.3s ease 0s;
}

.header_mail:hover{
    opacity: 0.6;
}

.header_apply p::before{
    content: "";
    width: 46px;
    height: 40px;
    background: url("../images/search.png") no-repeat center / contain;
    margin-bottom: 6px;
}

.header_mail p::before{
    content: "";
    width: 27px;
    height: 21px;
    background: url("../images/mail.png") no-repeat center / contain;
    margin: 10px 0 14px;
}

/*追記 野畑*/
header.entry-header{
    position: static;
    height: auto;
    background: none;
    width: auto;
    box-shadow: none;
}

.wrapper {
    padding: 150px 0 100px;
    z-index: 0 !important;
}

a,a:hover,a:focus{
  color: inherit;
  text-decoration: none;
}



/*-----page to top-----*/

.page_top{
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 74px;
    height: 74px;
    z-index: 1000;
}

.tablet_contact{
    display: none;
}

/*-----footer contact-----*/

.footer_contact{
    background: var(--main-color);
    padding: 27px 0 20px;
    text-align: center;
}
.footer_contact h3 {
    font-size: var(--fs-h3);
    color: var(--base-color);
    text-align: center;
    padding: 30px 0 30px 0;
}
.footer_contact img {
    width: 26px;
}
footer {
  width: 100%;
  font-family: "Noto Sans JP", sans-serif;
  color: #222;
}


/*-----footer-----*/

.footer_above {
  background: #fff;
  padding: 40px 0;
}

.footer_above > .flex_inner_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 750px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 左側：ロゴと社名--- */
.footer_left {
  text-align: left;
}

.footer_logo_unit {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer_logo img {
  width: 70px;
  height: auto;
}

.footer_name {
  text-align: left;
}

.name_lead {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.footer_company {
  font-weight: 700;
  color: var(--main-color);
  font-size: 18px;
  margin: 0;
}

footer address {
  font-style: normal;
  font-size: var(--fs-small);
  margin-top: 5px;
  color: #333;
}
.footer_right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer_tel_lead {
  font-size: var(--fs-small);
  font-weight: 700;
  margin-bottom: 5px;
}

.tel_flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tel_icon {
  width: 32px;
  height: auto;
  margin-right: 10px;
}

.footer_right a[href^="tel"] {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: #000;
  text-decoration: none;
  line-height: 1;
}

.footer_tel_text {
  font-size: var(--fs-small);
  font-weight: regular;
  margin-top: 8px;
  cursor: pointer;
}
/* ===== 下段（コピーライト） ===== */
.footer_under {
  background: #8a8a8a;
  color: var(--base-color);
  text-align: center;
  padding: 15px 10px;
}
.footer_under p {
  font-size: var(--fs-small);
}



/*--------------------animation--------------------*/

/*-----fadeUp animation-----*/

.js-fadeUp {
    opacity: 0;
}

.js-fadeUp.is-active {
    animation: fadeUp 1.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

@keyframes fadeUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/*-----slidein animation(from right)-----*/


.js-slidein_right{
    opacity: 0;
}

.js-slidein_right.is-active {
    animation: slideIn_right 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
 
@keyframes slideIn_right {
  0% {
    transform: translateX(180px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
  }
  40%,100% {
    opacity: 1;
  }
}

/*-----slidein animation(from left)-----*/

.js-slidein_left{
    opacity: 0;
}

.js-slidein_left.is-active {
    animation: slideIn_left 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
 
@keyframes slideIn_left {
  0% {
    transform: translateX(-180px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
  }
  40%,100% {
    opacity: 1;
  }
}

/*-----slidein animation(up)-----*/

.js-slidein_up{
    opacity: 0;
}

.js-slidein_up.is-active {
    animation: slideIn_up 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
 
@keyframes slideIn_up {
  0% {
    transform: translateY(180px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
  }
  40%,100% {
    opacity: 1;
  }
}


/*-----worries section-----*/

.js-fadeUp:nth-child(1){
    animation-delay: 0s;
}

.js-fadeUp:nth-child(2){
    animation-delay: 0.15s;
}

.js-fadeUp:nth-child(3){
    animation-delay: 0.3s;
}

.js-fadeUp:nth-child(4){
    animation-delay: 0.45s;
}

/*--------------------tablet&mobile（960px以下）--------------------*/

.tm_header,
.tm_hamburger,
.tm_drawer,
.tm_overlay,
.tm_bottom_bar{
  display: none;
}

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

    header{
        display: none;
    }

    /*-----header-----*/

    .tm_header{
        display: block;
        background: #fff;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.158);
        padding: 12px 16px;
    }

    .tm_brand{
        display: flex;
        gap: 24px;
        align-items: center;
    }

    .tm_logo{
        width: 52px;
        height: auto;
        flex: 0 0 auto;
    }

    .tm_name_small{
        font-size: 12px;
        margin: 0 0 4px;
    }

    .tm_name_normal{
        font-size: 15px;
        font-weight: 700;
        color: var(--main-color);
        margin: 0;
    }

    /*-----hamburger menu-----*/

    .tm_hamburger{
        display: inline-flex;
        position: fixed;
        right: 14px;
        top: 12px;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: var(--main-color);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        z-index: 2000;
    }

    .tm_hamburger span{
        width: 22px;
        height: 2px;
        background: #fff;
        display: block;
        border-radius: 99px;
        transition: transform .25s ease, opacity .2s ease;
    }

    /*-----overlay-----*/

    .tm_overlay{
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 1900;
    }

    /*-----drawer-----*/

    .tm_drawer{
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: min(84vw, 360px);
        height: 100%;
        background: #fff;
        z-index: 1950;
        box-shadow: -12px 0 40px rgba(0,0,0,.18);
        padding: 16px;
    }

    .tm_drawer_head{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .tm_drawer_title{
        font-weight: 700;
        margin: 0;
    }

    .tm_close{
        width: 40px;
        height: 40px;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,.12);
        background: #fff;
        font-size: 22px;
        line-height: 1;
    }

    .tm_nav{
        list-style: none;
        padding: 0;
        margin: 12px 0 0;
    }

    .tm_nav a{
        display: block;
        padding: 14px 10px;
        text-decoration: none;
        color: #222;
        border-bottom: 1px solid rgba(0,0,0,.08);
        font-weight: 600;
    }

    /*-----下固定バー-----*/

    .tm_bottom_bar{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 12px 12px;
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(6px);
        z-index: 1800;
        box-shadow: 0 -8px 20px rgba(0,0,0,.10);
    }

    .tm_bottom_btn{
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px 10px;
        border-radius: 14px;
        text-decoration: none;
        font-weight: 700;
        color: #fff;
        letter-spacing: .02em;
    }

    .tm_bottom_btn.apply{
        background: #F28251;
    }

    .tm_bottom_btn.tel{
        background: #023084;
    }

    body{
        /*padding-bottom: 76px;*/
    }

    /*-----開いたときの状態-----*/

    body.is-drawer-open .tm_overlay{
        display: block;
    }

    body.is-drawer-open .tm_drawer{
        display: block;
    }

    body.is-drawer-open .tm_hamburger span:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }

    body.is-drawer-open .tm_hamburger span:nth-child(2){
        opacity: 0;
    }

    body.is-drawer-open .tm_hamburger span:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }

    .page_top{
        /*bottom: calc(76px + 10px);*/
        bottom: 14px;
        right: 14px;
        z-index: 1850;  
    }

    
}

/*--------------------tablet（768px〜960px）--------------------*/


@media screen and (min-width:768px) and (max-width:960px){


    /*-----Global style-----*/

    .wrapper{
        margin: 0 20px;
    }

    :root{
        --fs-h2: 32px;
        --fs-h3: 26px;
        --fs-h4: 24px;
        --fs-body: 18px;
        --fs-small: 14px;
    }



/*--------------------mobile（428px以下）--------------------*/

.pc-only { display: block; }
.sp-only { display: none; }

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

    :root {
        --fs-h2: 32px;
        --fs-h3: 20px;
        --fs-h4: 18px;
        --fs-body: 16px;
        --fs-small: 14px;
    }
    .pc-only {
        display: none !important;
    }
    .sp-only {
        display: block;
    }
    h2{
        background-size: 76px 76px;
        padding:100px 0 20px 36px;
    }

    .wrapper,.case_wrapper, 
    .case_inner, .case_inner ul, 
    .case_inner p, .lease,
    .housemaker,.floor_plan,
    .service_inner,.header_wrapper,
    .header_name,.header_tel,.company_table,
    .flow_box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}
