:root {
    --off_white: #f7f1e2;
    --off_white2: #fff7e4de;
    --black: #555;
    --orange: #fca548;
    --main: #89bad4;
}

a:hover {
    opacity: 80%;
}

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

body {
    background-color: var(--off_white);
    background-image: linear-gradient(var(--off_white2), var(--off_white2)), url(/assets/img/noise.png);
    background-repeat: repeat;
    background-size: 100px;
    color: var(--black);
    font-family: "Josefin Sans", "Zen Kaku Gothic New", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 300;
}

p {
    font-size: 1rem;
    padding-bottom: 1rem;
}

h2 {
    font-size: 3rem;
    font-weight: 100;
    padding-bottom: 1rem;
    color: var(--main);
}

/* 遅延アニメーション */
.animate {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 1s ease-out,
        transform 1s ease-out;
}

.animate-active {
    opacity: 1;
    transform: translateY(0);
}
/* ===============================================
メイン
=============================================== */
.main {
    max-width: 900px;
    margin: auto;
    padding: 1rem;
}

/* ===============================================
セクション
=============================================== */
section {
    margin: 6rem 0 !important;
}

.block {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.item {
    flex-basis: calc(50% - 0.69rem);
    text-align: center;
    color: var(--main);
    margin-bottom: 1.3rem;
}

#Works .item {
    position: relative;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 5px 7px 10px 0px #2f2f2f31;
}

#Works .item::after {
    content: "";
    position: absolute;
    width: 0.1px;
    height: 43px;
    background-color: var(--main);
    top: -12px;
    left: 9px;
    transform: rotate(45deg);
}

#Works .item::before {
    content: "";
    position: absolute;
    width: 0.1px;
    height: 43px;
    background-color: var(--main);
    bottom: -12px;
    right: 10px;
    transform: rotate(45deg);
}

#sub-frame-error {
    background-color: var(--main) !important;
}

/* ===============================================
MV
=============================================== */
#Mv .inner {
    margin: 8rem auto;
    position: relative;
    max-width: 900px;
}

body::after {
    content: "";
    opacity: 12%;
    position: fixed;
    display: inline-block;
    top: -30px;
    right: -15px;
    width: 960px;
    height: 530px;
    background-image: url(/assets/img/leaves.png);
    background-size: cover;
    vertical-align: middle;
    z-index: -1;
    animation: move 10s linear infinite;
    -ms-filter: blur(3px);
    filter: blur(3px);
}
/* 木漏れ日効果 */
@keyframes move {
    0% {
        transform: perspective(400px) rotateX(0deg) rotateY(0deg) scale(1);
    }

    25% {
        transform: perspective(400px) rotateX(1deg) rotateY(2deg) scale(1.04);
    }

    50% {
        transform: perspective(400px) rotateX(-3deg) rotateY(-2deg) scale(0.97);
    }

    75% {
        transform: perspective(400px) rotateX(1deg) rotateY(-1deg) scale(1.02);
    }

    100% {
        transform: perspective(400px) rotateX(0deg) rotateY(0deg) scale(1);
    }
}
/* ===============================================
works
=============================================== */
#Service h2 {
    flex: 1;
}
#Service p {
    flex: 1;
}

#Skill img {
    max-width: 50px;
}
#Skill ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-block-start: 3rem;
}

#Another .block img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.block_second {
    max-width: 600px;
    margin: auto;
    margin-top: 60px;
}

.block_second img {
    border-radius: 20px;
}

.block_second h2 {
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
}

/* ===============================================
FAQ
=============================================== */
#Faq .item {
    width: 100%;
    margin: 1rem 0;
    padding: 0.5rem;
    border-bottom: solid 0.5px var(--black);
    color: var(--black);
    text-align: left;
}
#Faq dt,
#Faq dd {
    margin-bottom: 1rem;
}
#Faq dt::before {
    content: "Q.";
    color: var(--orange);
}
#Faq dd::before {
    content: "A.";
}

/* ===============================================
フッター
=============================================== */
footer {
    padding: 1rem;
}
footer ul {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

footer li:first-child {
    position: relative;
}
footer li:first-child:after {
    content: "";
    width: 0.5px;
    height: 19px;
    background-color: var(--black);
    position: absolute;
    left: 100px;
    top: 0;
}

footer p {
    font-size: 10px;
    padding-bottom: 0;
}

/* ===============================================
ポリシーページ
=============================================== */
.policy_wrapper h2 {
    font-size: 1.1rem;
    color: var(--black);
    font-weight: 400;
}

.policy_wrapper .inner {
    margin: 3rem 1rem;
}

.title_h2 {
    font-weight: 100 !important;
    font-size: 3rem !important;
    color: var(--main) !important;
}

.policy_wrapper {
    margin-top: 7rem;
}

.policy_wrapper ol {
    list-style: lower-roman;
    padding-left: 24px;
}

.contact_mark {
    color: var(--main);
}

.advertisement {
    width: 100%;
}

.example_responsive_1 {
    width: 320px;
    height: 100px;
}

/* スマホサイズ */

@media screen and (max-width: 768px) {
    .item {
        flex-basis: 100%;
    }

    #Mv .inner {
        margin: 1rem;
        height: calc(100vh / 1.3);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    #Mv .inner h2 {
        padding-bottom: 2rem;
    }

    body::after {
        width: 90% !important;
        height: 415px !important;
    }
    section#Mv {
        margin: 0 !important;
    }
    h2 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 428px) {
    footer li:first-child {
        font-size: 14px;
    }
    footer li:first-child:after {
        height: 30px;
        left: 60px;
    }
}

@media (min-width: 500px) {
    .example_responsive_1 {
        width: 468px;
        height: 60px;
    }
}
@media (min-width: 800px) {
    .example_responsive_1 {
        width: 728px;
        height: 90px;
    }
}

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

.form__item {
    margin-bottom: 2rem;
}

.form__required-mark {
    padding-left: 3px;
    color: rgb(234, 98, 98);
    font-size: 12px;
}

.form__item input,
.form__item textarea,
.form__item .form__select {
    width: 100%;
    color: #c6c6c6;
    padding: 0.5rem;
    border-bottom: 1px solid var(--black);
    border-right: solid 1px var(--black);
    /* background-color: #ffffff57; */
}

.form__item input:focus,
.form__item input:not(:placeholder-shown),
.form__item textarea:focus,
.form__item textarea:not(:placeholder-shown),
.form__item .form__select:focus,
.form__item .form__select:not([value=""]) {
    color: var(--black);
}

.form__label {
    margin-bottom: 0.5rem;
    margin-left: 0.3rem;
    display: block;
}

/* 送信 */
.form__submit-wrapper {
    text-align: center;
}

.form__submit-send {
    display: inline-block;
    background-color: var(--main);
    color: #fff;
    width: 100%;
    max-width: 300px;
    padding: 0.7rem 0;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.3s ease;
}

.form__submit-send:hover {
    opacity: 80%;
}

.form__submit-clear {
    display: inline-block;
    color: var(--main);
    padding: 0.7rem 0;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.3s ease;
    text-decoration: underline;
}

.form__submit-clear:hover {
    opacity: 80%;
}

/* サンクスページ */
.thanks_main h2 {
    font-size: 1.5rem;
}
.thanks_main {
    margin-top: 160px;
    margin-bottom: 200px;
}

.top_links {
    color: #6ca0e4;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .thanks_main {
        margin-top: 100px;
    }
}
