:root {
    --white: #fff;
    --light__base: #f7f3e8;
    --base__color: #c7b299;
    --heavy__base: #7e7e7b;
    --font__color: #372700;
    --orange: #ea7c22;
    --yellow: #fcee21;
    --green: #517262;
    --button__gradient: linear-gradient(135deg, #f15a24 0%, #fbb03b 100%);
    --box__shadow: rgba(0, 0, 0, 0.1);
    --light__gray: #fafafa;
    --gray: #585858;
    --heavy__gray: #323232;
}

html {
    background: #e6e6e6;
}

.roboto {
    font-family: "Roboto", sans-serif;
    font-weight: 800;
}

body {
    width: 100%;
    max-width: 800px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    margin: 0 auto;
    color: var(--font__color);
}

h1 {
    font-size: clamp(1.476rem, 1.109rem + 1.84vw, 2.027rem);
}

h2 {
    font-size: 1.802rem;
}

h3 {
    font-size: 1.602rem;
}

h4 {
    font-size: 1.424rem;
}

h5 {
    font-size: 1.266rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    font-size: 1rem;
    line-height: 1.6em;
}

em {
    color: var(--orange);
    font-style: normal;
}

.small {
    font-size: 0.8em;
}

.large {
    font-size: 1.2em;
}

/* 共通 */

.hidden__contents {
    display: none;
}

.contact--button {
    display: grid;
    place-items: center;
    width: fit-content;
    height: 100%;
    padding: 0.3em 1em;
    background: var(--orange);
    color: var(--white);
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: 0px 0px 20px var(--box__shadow);
    font-family: "Noto Sans JP", serif;
    font-weight: 700;
    transition: all 0.3s;
}

.contact--button:hover {
    box-shadow: none;
}

.contact__section {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.contact__section p {
    font-family: "Noto Sans JP", serif;
    font-weight: 800;
    font-size: clamp(1rem, 0.647rem + 1.51vw, 1.4rem);
}

.contact__section .contact--button {
    font-size: clamp(1.6rem, 0.806rem + 3.39vw, 2.5rem);
}

.contact__section .contact__comment {
    background: var(--green);
    color: var(--white);
    padding: 0.2em 1em;
    border-radius: 2em;
    font-size: clamp(1.4rem, 0.871rem + 2.26vw, 2rem);
    letter-spacing: 0.1em;
    position: relative;
}

.contact__section .contact__comment em {
    color: var(--yellow);
    font-size: 1.2em;
}

.contact__comment__arrow {
    background: url(../images/flow__arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    height: clamp(1.4rem, 1.224rem + 0.75vw, 1.6rem);
    width: auto;
    aspect-ratio: 2/1;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0 auto;
}

/* section__title */

.section__title__wrap {
    width: 100%;
    padding: 0 1rem;
}

.section__title__wrap h2 {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: var(--green);
    color: var(--white);
    padding: 0.2em 1em;
    position: relative;
    text-align: center;
    font-size: clamp(2rem, 1.118rem + 3.76vw, 3rem);
    letter-spacing: 0.1em;
}

.section__title__bg1,
.section__title__bg2 {
    height: 100%;
    position: absolute;
}

.section__title__bg1 {
    top: 0;
    left: 0;
}

.section__title__bg2 {
    top: 0;
    right: 0;
    transform: rotate(180deg);
}

/* header */

header {
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
}

.header__inner {
    width: 100%;
    max-width: calc(800px - 2rem);
    background: var(--white);
    box-shadow: 0px 0px 5px var(--box__shadow);
    margin: 0 auto;
    padding: 0.5em 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header__logo {
    width: 40%;
}

.header__inner img {
    width: 100%;
}

.header__inner .contact--button {
    font-size: clamp(0.9rem, 0.459rem + 1.88vw, 1.4rem);
}

/* main */

main {
    background: var(--white);
}

/* mv　＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */

.mv {
    width: 100%;
}

.mv__image {
    width: 100%;
}

/* 解体ワークスなら　＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */

.about {
    background: var(--base__color);
}

.about h1 {
    width: 100%;
    text-align: center;
    padding: 1rem 2em;
    position: relative;
}

.about__title__image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.about__title__bg1,
.about__title__bg2 {
    position: absolute;
    top: 0;
    height: 100%;
}

.about__title__bg1 {
    left: 0;
}

.about__title__bg2 {
    right: 0;
    transform: rotate(180deg);
}

.about__items1 {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 0.118rem + 3.76vw, 2rem);
    padding: 1rem;
}

.about__items1 .about__item {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1rem;
    align-items: center;
    border-radius: 1rem;
}

.about__items1 .about__item img {
    width: 100%;
}

.about__items1 .about__item h2 {
    font-size: clamp(1.35rem, 0.335rem + 4.33vw, 2.5rem);
}

.about__items2 {
    width: 100%;
    max-width: calc(600px + 2rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: clamp(1rem, 0.118rem + 3.76vw, 2rem);
    padding: 1rem;
}

.about__items2 .about__item {
    background: var(--white);
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    line-height: 1.1em;
    font-size: clamp(2.2rem, 0.171rem + 8.66vw, 4.5rem);
}

.about__caption__wrap {
    padding: 1rem;
}

.about__caption {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    background: var(--green);
    color: var(--white);
    text-align: center;
    font-size: clamp(1.6rem, 1.247rem + 1.51vw, 2rem);
    position: relative;
}

.about__caption em {
    color: var(--yellow);
    letter-spacing: 0.1em;
    font-size: clamp(2.5rem, 1.176rem + 5.65vw, 4rem);
}

.about__caption__bg1,
.about__caption__bg2 {
    position: absolute;
    width: clamp(2rem, 1.118rem + 3.76vw, 3rem);
}

.about__caption__bg1 {
    top: 0;
    left: 0;
}

.about__caption__bg2 {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

/* 施工事例　＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */

.work {
    padding: 1rem 0 0 0;
}

.work__img {
    width: 100%;
}

/* 工事の流れ ＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊*/

.flow {
    padding: 2rem 1rem;
    background: url(../images/flow__bg.webp);
    background-size: cover;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flow__inner {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 0.118rem + 3.76vw, 2rem);
    position: relative;
    z-index: 0;
}

.flow__inner::after {
    content: "";
    width: clamp(1rem, 0.118rem + 3.76vw, 2rem);
    height: 100%;
    background: var(--yellow);
    position: absolute;
    top: 0;
    left: 10%;
    z-index: -1;
}

.flow__item {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1rem;
    border-radius: 100px 1rem 1rem 100px;
    box-shadow: 0px 0px 10px var(--box__shadow);
    position: relative;
}

.flow__item:nth-child(1) {
    background: #f7f3e8;
}

.flow__item:nth-child(2) {
    background: #ede6d8;
}

.flow__item:nth-child(3) {
    background: #e4d9c8;
}

.flow__item:nth-child(4) {
    background: #daccb9;
}

.flow__item:nth-child(5) {
    background: #d1bfa9;
}

.flow__item:nth-child(6) {
    background: #c7b299;
}

.flow__arrow {
    background: url(../images/flow__arrow.svg);
    background-size: cover;
    height: clamp(1rem, 0.118rem + 3.76vw, 2rem);
    width: auto;
    aspect-ratio: 2/1;
    position: absolute;
    top: 100%;
    left: 50%;
}

.flow__image {
    width: 100%;
    border-radius: 100%;
}

.flow__text {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 0.247rem + 1.51vw, 1rem);
    justify-content: center;
    padding: clamp(0.5rem, 0.059rem + 1.88vw, 1rem) 0;
    font-weight: 800;
    font-size: clamp(1.6rem, 0.365rem + 5.27vw, 3rem);
}

.flow__comment {
    background: var(--orange);
    width: fit-content;
    padding: 0.2em 0.8em;
    border-radius: 2em;
    position: relative;
    color: var(--white);
    font-size: clamp(1rem, 0.118rem + 3.76vw, 2rem);
}

.flow__comment img {
    height: clamp(0.8rem, 0.447rem + 1.51vw, 1.2rem);
    position: absolute;
    top: 85%;
    left: 1rem;
}

/* faq ＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */

.faq {
    padding: 2rem 1rem;
}

.faq__title {
    width: 100%;
    max-width: 500px;
    background: var(--green);
    border-radius: 2em;
    margin: 0 auto;
    padding: 0.1em 1em;
    text-align: center;
    color: var(--white);
    font-size: clamp(2rem, 1.118rem + 3.76vw, 3rem);
    position: relative;
}

.question {
    height: clamp(3.5rem, 2.176rem + 5.65vw, 5rem);
    width: auto;
    aspect-ratio: 1/1.6;
    background: url(../images/question.svg);
    background-size: auto-fit;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    left: 7%;
    transform: rotate(14deg);
}

.faq__items {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: end;
}

.faq__item {
    width: 100%;
    max-width: 900px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0px 0px 10px var(--box__shadow);
    border: 2px solid var(--base__color);
    transition: all 0.3s;
}

.faq__item:hover {
    box-shadow: none;
}

.faq__item h3 {
    display: flex;
    justify-content: space-between;
    align-items: first baseline;
    font-size: clamp(1.2rem, 0.494rem + 3.01vw, 2rem);
}

.faq__item h3 span {
    display: flex;
    align-items: first baseline;
    gap: clamp(0.5rem, 0.059rem + 1.88vw, 1rem);
}

.faq__item h3 i.fa-solid {
    transition: transform 0.8s ease;
}

.faq__answer__wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease;
}

.faq__answer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

.faq__answer h4 {
    color: var(--green);
    display: flex;
    gap: clamp(0.5rem, 0.059rem + 1.88vw, 1rem);
    align-items: center;
    font-size: clamp(1.2rem, 0.671rem + 2.26vw, 1.8rem);
}

.faq__answer p {
    font-size: clamp(1rem, 0.912rem + 0.38vw, 1.1rem);
}

/* 料金表 ＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊*/

.price {
    background: var(--light__base);
    padding: 2rem 1rem;
    position: relative;
    z-index: 0;
}

.price__bg1,
.price__bg2 {
    width: clamp(2rem, -0.647rem + 11.29vw, 5rem);
    height: clamp(2rem, -0.647rem + 11.29vw, 5rem);
    position: absolute;
    top: 0;
}

.price__bg1 {
    background: url(../images/price__bg1.svg);
    left: 0;
}

.price__bg2 {
    background: url(../images/price__bg2.svg);
    right: 0;
}

.price__inner {
    padding: clamp(1rem, 0.118rem + 3.76vw, 2rem) 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.price__item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price__item img {
    width: 50%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 1rem;
}

.price__item table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price__item table caption {
    text-align: center;
    font-size: clamp(1.6rem, 1.247rem + 1.51vw, 2rem);
}

.price__item table tr {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-bottom: 2px solid var(--base__color);
    margin: 0 auto;
    padding: 0.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 0.118rem + 3.76vw, 2rem);
    font-size: clamp(1.3rem, 0.859rem + 1.88vw, 1.8rem);
}

.price__item table tr:nth-child(3) {
    border: none;
}

/* お問い合わせ ＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊*/

.contact__leading {
    width: 100%;
}

.contact__arrow {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.contact__wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact {
    background: var(--light__base);
    padding: 0 1rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact h3 {
    width: fit-content;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1.602rem, 0.986rem + 2.63vw, 2.3rem);
    font-weight: 800;
}

.contact__tel {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    align-items: center;
}

.contact__tel a {
    font-size: 1.8rem;
    color: var(--orange);
}

.contact__tel a i {
    margin-right: 0.5em;
    color: var(--green);
}

.company__contact__button {
    width: fit-content;
    margin-left: auto;
    padding: 0.2em 0.5em;
    background: var(--yellow);
    font-size: clamp(1.2rem, 0.935rem + 1.13vw, 1.5rem);
}

form {
    width: 100%;
    max-width: 600px;
    background: var(--white);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    background: var(--light__gray);
    border: 1px solid var(--base__color);
    padding: 0.4em;
    border-radius: 0.5rem;
    margin-bottom: 1em;
}

.contact__button {
    width: fit-content;
    margin: 0 auto;
    padding: 0.2em 1em;
    background: var(--orange);
    color: var(--white);
    border-radius: 3em;
    font-size: 2rem;
}

.submit__disabled {
    background: var(--gray);
}

.line__contact {
    padding: 1rem;
}

/* footer　＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */

footer {
    padding: 2rem 2rem 0 2rem;
}

.footer__inner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    border-radius: 1rem;
}

.footer__inner img {
    width: 100%;
    max-width: 200px;
}

small {
    line-height: 1.6em;
    display: grid;
    place-items: center;
}

/* プライバシーポリシーのモーダル　＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */

.privacy {
    width: fit-content;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.privacy__button {
    width: fit-content;
    padding: 0.2em 1em;
    border-radius: 2em;
    background: var(--yellow);
    color: var(--font__color);
    cursor: pointer;
    box-shadow: 0px 0px 5px var(--box__shadow);
    transition: all 0.3s;
}

.privacy__button:hover {
    box-shadow: none;
}

.checkbox {
    width: fit-content;
    margin: 0 auto;
    cursor: pointer;
    padding-left: 1.5em;
    position: relative;
}

.checkbox::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 1px solid var(--box__shadow);
    border-radius: 16px;
    position: absolute;
    top: 0.1em;
    left: 0;
}

.checkbox::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--orange);
    border-radius: 12px;
    opacity: 0;
    position: absolute;
    top: 3.6px;
    left: 2px;
    transition: all 0.3s;
}

input[type=checkbox]:checked+.checkbox::after {
    opacity: 1;
}

.privacy__modal {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--box__shadow);
    flex-direction: column;
    gap: 1em;
    z-index: 9999;
    padding: 5% 1rem;
    display: none;
}

.privacy__modal__display {
    display: flex;
}

.privacy__modal__inner {
    width: 100%;
    height: 90vh;
    max-width: 1000px;
    background: var(--white);
    margin: 0 auto;
    padding: 1rem;
    border-radius: 1rem;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.privacy__modal__inner h3 {
    text-align: center;
}

.privacy__modal__inner ol {
    padding: 0.5em 0 0 2em;
}

.privacy__modal__inner ol li {
    list-style: decimal;
    line-height: 1.6em;
}


.privacy__modal__close {
    width: fit-content;
    padding: 0.5em 1em;
    background: var(--green);
    color: var(--white);
    border-radius: 0.5em;
    margin: 0 auto;
    box-shadow: 0px 0px 5px var(--box__shadow);
    transition: all 0.3s;
}

.privacy__modal__close:hover {
    box-shadow: none;
}

/* 送信結果のモーダル　＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */

#contact__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.contact__dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 99;
}

.contact__dialog__content {
    width: 100%;
    max-width: 800px;
    background: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
    justify-content: center;
}

.close__dialog {
    width: fit-content;
    margin: 0 auto;
    padding: 8px 16px;
    border: none;
    background: var(--font__color);
    color: var(--white);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.close__dialog:hover {
    background: var(--gray);
}

/* スクロールアニメーション　＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */

.fade__up {
    opacity: 0;
    transform: translateY(50px);
}

.fade__up__animation {
    animation: fade__up 0.5s forwards;
}

@keyframes fade__up {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade {
    opacity: 0;
}

.fade__animation {
    animation: fade 0.5s forwards;
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fade__left {
    opacity: 0;
    transform: translateX(-200px);
}

.fade__left__animation {
    animation: fade__left 0.5s forwards;
}

@keyframes fade__left {
    0% {
        opacity: 0;
        transform: translateX(-200px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade__right {
    opacity: 0;
    transform: translateX(-200px);
}


.fade__right__animation {
    animation: fade__right 0.5s forwards;
}

@keyframes fade__right {
    0% {
        opacity: 0;
        transform: translateX(200px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade__down {
    opacity: 0;
    transform: translateY(-200px);
}


.fade__down__animation {
    animation: fade__down 0.5s forwards;
}

@keyframes fade__down {
    0% {
        opacity: 0;
        transform: translateY(-200px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}