@charset "UTF-8";

/* CSS Document */
/* 変数を宣言し、格納する。 */
:root {
    --white: #fff;
    --black: #000;
    --red: #ff0000;/* 赤 */
    --green: #00ff00;/* 緑 */
    --blue: #0000ff;/* 青 */
    --yellow: #ffff00;/* 黄 */
    --gray: #808080;/* 灰色 */
    --sans: yakuhanjp, "Noto Sans JP", sans-serif;
    --serif: "Noto Serif JP", serif;
}

/* 変数の呼び出し例
 body {
 background-color: ver(--white);
 color: var(--black);
 font-family: var(--sans);
}*/

/*header*/
header .bg_white {
    height: 103px;
}
.header_band {
    gap: 20px;
}
.header_band li:first-child  {
    max-width: 260px;
}
.header_band li:nth-child(2)  {
    max-width: 240px;
}
/*画像幅がデバイスより広い場合*/
.mv {
    height: 650px;
}
.full {
    overflow: hidden;
    position: relative;
}
.full .pc {
    width: auto !important;
    max-width: unset;
    height: 100%;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}
/*area_link*/
.link {
    text-align: center;
}

.link a {
    margin-inline: auto;
    display: inline-block;
    overflow: hidden;
    transition: 0.5s;
}
.btn_wrap {
    position: relative;
}
.link_tel {
    position: absolute;
    right: 5%;
    bottom: 25px;
    max-width: 529px;
    width: 62%;
}

a:hover {
    opacity: 0.7;
}

@media screen and (max-width: 1100px) {
    .mv {
        height: 490px;
    }
    header .bg_white {
        height: auto;
    }
}

/*area1*/
.area_1 ul {
    gap: 20px 50px;
}
/*area_2*/
.danger {
    position: relative;
    background: url(../images/danger_back@2x.jpg);
    background-size: cover;
}
.area_2 .full {
    height: 566px;
    margin-top: -67px;
    z-index: 1;
}
/*area_3*/
/*area_4*/
.area_4 {
    position: relative;
    z-index: 0;
}
.area_4:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../images/background_graph.png) ;
    background-size: 15px;
    opacity: 0.4;
    z-index: -1;
}
/*area_5*/
.area_5 {
    position: relative;
    background-color: #fcdb01;
    z-index: 0;
}
.area_5::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/background_hexagon.png);
    background-size: 120px;
    opacity: 0.5;
    z-index: -1;
}
.voice {
    max-width: 900px;
    margin-inline: auto;
}
.voice li {
    padding: 40px;
    border-radius: 20px;
    align-items: center;
    gap: 20px 30px;
}
.voice li h3 {
    letter-spacing: -1px;
}
.text {
    width: 560px;
    flex-grow: 1;
}
.text p {
    font-size: 16px;
}
/*area_6*/
.area6_h2 {
    position: relative;
}
.danger::before,.area6_h2::before {
    position: absolute;
    content: "";
    background: url(../images/decoration01@2x.jpg);
    background-repeat: repeat-x;
    top: 0;
    width: 100%;
    height: 20px;
    z-index: 1;
}
.danger::after,.area6_h2::after {
    position: absolute;
    content: "";
    background: url(../images/decoration01@2x.jpg);
    background-repeat: repeat-x;
    bottom: 0;
    width: 100%;
    height: 20px;
    z-index: 1;
}
.qa li {
    border: 5px solid;
    border-radius: 20px;
    overflow: hidden;
    background-color: #fff;
}
.question {
    background-color: #fcdb01;
    padding: 40px;
}
.question p {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 24px;
    font-weight: 700;
}
.question P::before {
    display: grid;
    place-items: center;
    content: "Q";
    color: #FFF;
    background-color: #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding-bottom: 4px;
    line-height: 1;
    flex-shrink: 0;
}
.answer {
    padding: 40px;
}
.answer p {
    display: flex;
    gap: 30px;
}
.answer P::before {
    display: grid;
    place-items: center;
    content: "A";
    color: #000;
    background-color: #fcdb01;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding-bottom: 4px;
    line-height: 1;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 24px;
}

.contact {
    max-width: 640px;
    margin-inline: auto;
    position: relative;
}
form.formrun {
    max-width: 600px;
    margin: 0 auto;
    font-family: sans-serif;
  }
  
  .formrun div {
    margin-bottom: 24px;
  }
  
  .formrun label {
    font-size: 16px;
    display: flex ;
     align-items: center;
     gap: 2px;
    font-weight: bold;
    color: #000;
    position: relative;
    margin-bottom: 5px;
  }
  
  .formrun label::after {
    content: "必須";
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
  }
  
  .formrun input[type="text"],
  .formrun input[type="email"],
  .formrun input[type="tel"],
  .formrun textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #333;
    border-radius: 0;
    box-sizing: border-box;
    color: #333;
  }
  
  .formrun textarea {
    height: 120px;
    resize: vertical;
  }
  
  .formrun input::placeholder,
  .formrun textarea::placeholder {
    color: #aaa;
  }
  
  .formrun div[data-formrun-show-if-error] {
    color: red;
    font-size: 14px;
    margin-top: 5px;
  }
  
  .formrun button[type="submit"] {
    display: block;
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
   text-align: center;
    padding: 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #e60000;
    border: 3px solid black;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .formrun button[type="submit"]:hover {
    background-color: #c40000;
  }
  
/*footer*/
.footer {
    padding-bottom: 120px;
}
#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    height: 120px;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    transform: translateZ(0); /* ハードウェアアクセラレーション */
}
#footer.show {
    transform: translateY(0);
}
.f_tel a {
    display: block;
    width: 340px;
}

#page-top {
    position: fixed;
    bottom: 30px;
    right: 10px;
    font-size: 12px;
    z-index: 1000;
}

#page-top a {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    font-weight: bold;
    color: #fff;
    letter-spacing: -0.5px;
    text-decoration: none;
    border-radius: 10px;
}

#page-top p {
    padding: 0;
}

@media screen and (max-width: 780px) {
    .area_2 .full {
        height: 376px;
        margin-top: -25px;
    }
    .area_2 .full .pc {
        display: none;
    }
    .estimate_sp {
        display: block;
        width: auto !important;
        max-width: unset;
        height: 100%;
        text-align: center;
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }
}

/*スマホ==========================================================================================================*/
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .margin {
        margin-bottom: 20px;
    }

    .sp {
        display: block;
    }

    .pc {
        display: none;
    }

    img {
        vertical-align: bottom;
    }
    a:hover {
        opacity: 1;
    }
    .inner {
        max-width: 400px;
    }

    header .bg_white {
        padding-block: 12px !important;
    }
    h1 {
        max-width: 165px;
    }
    h2 {
        font-size: 26px;
    }
    .header_band {
        gap: 10px;
    }

    .btn_wrap {
        max-width: 345px;
    }
    .link_tel {
        right: 5%;
        bottom: 9%;
        max-width: 228px;
        width: 66%;
    }
    .link.pt100 {
        padding-top: 20px !important;
    }
    .full {
        height: unset;
    }

    .area_1 ul {
        width: 80%;
        max-width: 240px;
        margin-inline: auto;
    }
    .area_2 h2 {
        margin-bottom: 0 !important;
    }
    .area_3 {
        padding-bottom: 40px;
    }

    .area_4:before {
        background-size: 10px;
    }

    .area_5::before {
        background-size: 50px;
    }
    .voice li {
        padding: 30px clamp(20px, calc(20px + (10 * ((100vw - 320px) / 80))), 30px);
        border-radius: 10px;
    }
    .voice li  div:has(img) {
        max-width: 140px;
    }
    .voice li h3 {
        font-size: clamp(1rem, 0.2917rem + 3.3333vw, 1.125rem);
        text-align: center;
        letter-spacing: -1px;
    }
    .voice li .text p {
        font-size: 14px;
    }
    .danger::before,.area6_h2::before,.danger::after,.area6_h2::after{
        height: 12px;
        background-size: contain;
    }
    .qa li {
        border-radius: 10px;
        border: 3px solid;
    }
    .question,.answer {
        padding: 30px 15px;
    }
    .question p {
        gap: 10px;
        font-size: 18px;
        letter-spacing: -1px;
    }
    .answer p {
        gap: 10px;
    }
    .question P::before,.answer P::before {
        width: 30px;
        height: 30px;
        font-size: 20px;
        letter-spacing: normal;
    }

    /*footer*/
    .f_logo {
        max-width: 240px;
        margin-inline: auto;
    }
    .f_tel a {
        width: 100%;
        max-width: 170px;
    }
    .footer {
        padding-bottom: 90px;
    }
    small.t18 {
        font-size: 14px;
    }
    #footer  {
        height: 90px;
        box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.3);
    }
    #footer .inner {
        justify-content: space-between;
        max-width: 340px;
        gap: 15px;
        padding-bottom: 10px;
    }
    #footer .inner li {
        width: calc(50% - 7.5px);
    }
    #footer .inner li img {
        width: 100%;
        max-width: unset;
    }

    #page-top {
        display: none !important;
    }
}

@media screen and (max-width: 360px) {
    .header_band  .sp,.estimate_sp {
        display: none;
    }
    .sp2 {
        display: block;
    }
    .area_2 .full {
        height: unset;
        margin-top: -7%;
    }
    #footer .inner {
        gap: 10px;
    }
    #footer .inner li {
        width: calc(50% - 5px);
    }
}