:root {
    --base__color: #c5c59c;
    --light__base: #f0f0dd;
    --heavy__base: #CCCCA0;
    --logo__base: #cccc99;
    --logo__orange: #ff9933;
    --logo__font: #666;
    --font__color: #303030;
    --red: #ee3b3b;
    --pink: #ffb2c4;
    --trans__bg: rgba(255, 255, 255, 0.2);
    --white: #ffffff;
    --yellow: #ffe433;
    --button__yellow: #f7ff9a;
    --blue: #d7e7f7;
}

body {
    font-family: ta-kotodama-r, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--font__color);
    background-color: hsla(60, 100%, 88%, 1);
    background-image:
        radial-gradient(at 24% 40%, hsla(43, 100%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 31% 64%, hsla(166, 31%, 75%, 1) 0px, transparent 50%),
        radial-gradient(at 77% 9%, hsla(51, 100%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 82% 47%, hsla(168, 31%, 75%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(22, 57%, 71%, 1) 0px, transparent 50%),
        radial-gradient(at 4% 92%, hsla(200, 69%, 89%, 1) 0px, transparent 50%),
        radial-gradient(at 41% 11%, hsla(181, 29%, 73%, 1) 0px, transparent 50%);
    background-size: 200% 200%;
    background-repeat: no-repeat;
    animation: moveBackground 20s ease infinite;
}

@keyframes moveBackground {
    0% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 0% 100%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 0%;
    }
}

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 1rem 0 1rem;
}

.contents {
    width: 500px;
    height: 500px;
    margin: 1rem auto;
    background: #fff;
}

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

h2 {
    font-size: clamp(1.383rem, 1.231rem + 0.76vw, 1.802rem);
}

h3 {
    font-size: clamp(1.296rem, 1.185rem + 0.56vw, 1.602rem);
}

h4 {
    font-size: clamp(1.215rem, 1.139rem + 0.38vw, 1.424rem);
}

h5 {
    font-size: clamp(1.138rem, 1.091rem + 0.23vw, 1.266rem);
}

h6 {
    font-size: clamp(1.067rem, 1.046rem + 0.11vw, 1.125rem);
}

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

.small {
    font-size: 0.8em;
}

.bold {
    font-weight: 600;
}

em {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 60%, var(--yellow) 60%, var(--yellow));
}

/* 共通項目 */

.section {
    scroll-margin-top: 110px;
    /* 固定ヘッダーの高さ */
}

.pc__hidden {
    display: none;
}

.br1000px {
    display: none;
}

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

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

.fade__up__animation {
    animation: fade__up 0.8s ease-out forwards;
}

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

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

.fade {
    opacity: 0;
}

.fade__animation {
    animation: fade 0.8s ease-out forwards;
}

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

    100% {
        opacity: 1;
    }
}

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

.fade__left__animation {
    animation: fade__left 0.8s ease-out 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.8s ease-out 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.8s ease-out forwards;
}

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

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


/* form ＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊*/

input[type=text],
input[type=email],
input[type=tel] {
    width: 100%;
    max-width: 30rem;
    border: 1px solid var(--logo__font);
    border-radius: 5px;
    padding: 0.5em;
    white-space: wrap;
    background: var(--white);
}

textarea {
    width: 100%;
    height: 20em;
    border: 1px solid var(--logo__font);
    border-radius: 5px;
    padding: 0.5em;
    background: var(--white);
}

input[type="radio"],
input[type="checkbox"] {
    position: relative;
    width: 16px;
    height: 16px;
    border: 1px solid var(--font__color);
    border-radius: 50%;
    vertical-align: -2px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="radio"]:checked:before,
input[type="checkbox"]:checked:before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e86a09;
    content: '';
}

input[type="range"] {
    -webkit-appearance: none;
    /* 🚩これ無しだとスタイルがほぼ全く反映されないので注意 */
    appearance: none;
    cursor: pointer;
    /* カーソルを分かりやすく */
    outline: none;
    /* スライダーのアウトラインは見た目がキツイので消す */
    height: 14px;
    /* バーの高さ */
    width: 100%;
    /* バーの幅 */
    background: #ffcb8f;
    /* バーの背景色 */
    border-radius: 10px;
    /* バーの両端の丸み */
    border: solid 3px #fbfbfb;
    /* バー周囲の線 */
}

/* WebKit向けのつまみ */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    /*  🚩デフォルトのつまみのスタイルを解除 */
    background: #e86a09;
    /* 背景色 */
    width: 24px;
    /* 幅 */
    height: 24px;
    /* 高さ */
    border-radius: 50%;
    /* 円形に */
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.15);
    /* 影 */
}

/* Moz向けのつまみ */
input[type="range"]::-moz-range-thumb {
    background: #e86a09;
    /* 背景色 */
    width: 24px;
    /* 幅 */
    height: 24px;
    /* 高さ */
    border-radius: 50%;
    /* 円形に */
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.15);
    /* 影 */
    border: none;
    /* デフォルトの線を消す */
}

/* Firefoxで点線が周りに表示されてしまう問題の解消 */
input[type="range"]::-moz-focus-outer {
    border: 0;
}

/* つまみをドラッグしているときのスタイル */
input[type="range"]:active::-webkit-slider-thumb {
    box-shadow: 0px 5px 10px -2px rgba(0, 0, 0, 0.3);
}

.check__btn {
    width: fit-content;
    padding: 0.5em 1em;
    border-radius: 2em;
    background: var(--logo__orange);
    font-weight: 700;
}

.check__btn:hover {
    background: var(--white);
    color: var(--logo__orange);
    box-shadow: 0px 0px 3px var(--logo__orange);
}

.submit {
    background: var(--logo__orange);
    padding: 0.3em 1em;
    border-radius: 2em;
}

.submit:hover {
    background: var(--white);
    box-shadow: 0px 0px 3px var(--logo__orange);
}

.close__modal {
    background: var(--light__base);
    padding: 0.3em 1em;
    border-radius: 2em;
}

.close__modal:hover {
    background: var(--white);
    box-shadow: 0px 0px 3px var(--font__color);
}

.form__alert {
    color: var(--red);
    font-size: 0.9rem;
    margin-top: 4px;
    display: block;
}

.form__alert__input {
    background: var(--pink);
}

/* header＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */
header {
    width: fit-content;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 1rem auto;
    z-index: 10;
    padding: 1rem 4rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: end;
    border-radius: 5rem;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 80%);
    backdrop-filter: blur(10px);
    box-shadow: inset 0px 0px 20px rgba(255, 255, 255, 0.351),
        0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.8s;
}

header img {
    width: 100%;
    max-width: 180px;
}

header p {
    line-height: 1.6em;
}

.header__contents__right {
    position: fixed;
    top: 0;
    right: 1rem;
    z-index: 11;
    display: flex;
    gap: 2rem;
}

.main__title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: var(--white);
    padding: 0.5em 0;
    text-wrap: nowrap;
}

.header__nav {
    font-size: clamp(1.138rem, 1.091rem + 0.23vw, 1.266rem);
    line-height: 1.8em;
    padding-top: 1rem;
}

.header__contents__right a {
    transition: all 0.3s ease;
}

.header__contents__right a:hover {
    color: var(--logo__orange);
}

/* バーガーメニュー */

.burger__button {
    width: 45px;
    height: 45px;
    background: var(--white);
    position: fixed;
    top: 1rem;
    right: 1rem;
    border-radius: 5px;
    box-shadow: var(--box__shadow);
    cursor: pointer;
    z-index: 11;
}

.burger__button span {
    width: 35px;
    height: 4px;
    border-radius: 2px;
    background: var(--logo__font);
    position: absolute;
    left: 5px;
}

.burger__button span:nth-child(1) {
    top: 10.5px;
}

.burger__button span:nth-child(2) {
    top: 20.5px;
}

.burger__button span:nth-child(3) {
    top: 30.5px;
}

.burger__menu {
    height: 0;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s;
}

.header__burger__open {
    animation: header__open 0.5s ease forwards;
}

.header__burger__close {
    animation: header__close 0.5s ease forwards;
}

@keyframes header__open {
    0% {
        height: 0;
    }

    100% {
        height: 170px;
    }
}

@keyframes header__close {
    0% {
        height: 170px;
    }

    100% {
        height: 0;
    }
}

/* footer＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */
footer {
    width: 100%;
    padding: 4rem 1rem 0 1rem;
    position: relative;
}

.scroll__up__button {
    width: 60px;
    height: 60px;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 80%);
    backdrop-filter: blur(10px);
    box-shadow: inset 0px 0px 20px rgba(255, 255, 255, 0.351),
        0px 0px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    border-radius: 45px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.scroll__up__button i {
    font-size: 40px;
    color: var(--logo__font);
}

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

.footer__inner img {
    width: 150px;
}

.line__banner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.line__banner img {
    width: 100%;
}

@media screen and (max-width: 1000px) {
    .hidden1000px {
        display: none;
    }

    .br1000px {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .pc__hidden {
        display: block;
    }

    .sp__hidden {
        display: none;
    }

    main {
        padding: 60px 1rem 0 1rem;
    }

    header {
        width: fit-content;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 1rem;
        gap: 0;
        border-radius: 2rem;
    }

    header img {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
    }

    header p {
        text-align: center;
        line-height: 1.6em;
        margin-top: 1rem;
    }

    .header__contents__right {
        display: none;
    }

    .header__nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .main__title {
        writing-mode: horizontal-tb;
        background: var(--white);
        padding: 0 0.5em;
        text-wrap: wrap;
        margin-top: 1rem;
        font-size: 1.4rem
    }

    .contact__link__button {
        width: fit-content;
    }

    .contact__link__button div {
        width: 100%;
        background: linear-gradient(115deg, var(--blue), var(--blue), var(--button__yellow), var(--blue), var(--blue));
        background-size: 1000%;
        background-repeat: no-repeat;
        background-position: 0%;
        padding: 0.5em 1em;
        border-radius: 2em;
        animation: button__animation 3s linear infinite;
        transition: all 0.3s linear;
        margin: 1rem auto;
        font-size: clamp(1.296rem, 1.185rem + 0.56vw, 1.602rem);
    }
}