@charset "utf-8";

/* --------------------------------------------

contact-form ※202501追加

---------------------------------------------- */
.form__contents {
    margin-bottom: 5rem;
}

.contact-form dl {
    display: flex;
    align-items: center;
    padding: 3rem 0;
    border-bottom: solid 1px rgba(167, 183, 13, 0.8);
}

.contact-form dl:first-child {
    padding-top: 0;
}

.contact-form dt {
    display: flex;
	align-items: center;
	justify-content: space-between;
	padding-right: 5rem;
    width: 31%;
}

.contact-form dt span {
	color: var(--c-accent);
	display: inline-block;
	line-height: 1;
	margin-left: 1rem;
    font-weight: var(--fw-bold);
	white-space: nowrap;
}

.contact-form dd {
    width: 69%;
}

.contact-form ul li {
	display: inline-block;
	margin-right: 1rem;
}

.contact-form dd p {
    margin: 0.5rem 0 0;
}

/* --------------------------------------------
各パーツの設定
---------------------------------------------- */
/* テキストエリア */
.textarea {
    width: 100%;
    height: 100px;
    min-height: 100px;
    padding: 0.4rem 0.8rem;
    color: inherit;
    font-family: inherit;
    background-color: transparent;
    background-image: none;
    border: solid 1px rgba(167, 183, 13, 0.4);
    border-radius: 0;
    resize: vertical;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

.textarea:focus {
    border: solid 1px rgba(167, 183, 13, 0.6);
    box-shadow: none;
    outline: none;
}

/* テキスト */
.text {
    width: 100%;
    padding: 0.4rem 0.8rem;
    color: inherit;
    font-family: inherit;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    background-image: none;
    border: solid 1px rgba(167, 183, 13, 0.4);
    border-radius: 0;
}

.text:focus {
    border: solid 1px rgba(167, 183, 13, 0.6);
    box-shadow: none;
    outline: none;
}

.num .text {
    max-width: 200px;
    width: 80%;
}

.text.w250 {
    max-width: 250px;
}

.text.w200 {
    max-width: 200px;
}

.text.w150 {
    max-width: 150px;
}

.text.w100 {
    max-width: 100px;
}

.text.w50 {
    max-width: 50px;
}

.text::placeholder {
    color: var(--c-gray);
}

/* ラジオボタン */
.radio {
	position: absolute;
	opacity: 0;
}

.radio + span {
    position: relative;
    display: inline-block;
    margin: 0 0em 0;
    padding: 0 0 0 2rem;
    cursor: pointer;
}

.radio + span::before {
    position: absolute;
    content: "";
    display: block;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    left: 0;
    width: 1.6rem;
    height: 1.6rem;
    background: #fff;
    border: 1px solid rgba(167, 183, 132, 0.6);
    border-radius: 50%;
}

.radio + span::after {
    position: absolute;
    content: "";
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    left: 4px;
    width: 0.8rem;
    height: 0.8rem;
    padding: 2px;
    background: rgba(167, 183, 13, 0.8);
    border: 1px solid transparent;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease 0s;
}

.radio:checked + span::after {
    opacity: 1;
}

/* セレクトボックス */
.select {
    width: 100%;
    max-width: 180px;
    padding: 0.4rem 0.8rem;
    color: inherit;
    font-family: inherit;
    background: transparent url(../img/common/form-arrow.svg) no-repeat center right 3px/20px 20px;
    border: 1px solid rgba(167, 183, 13, 0.4);
    border-radius: 0;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.select::-ms-expand {
    display: none;
}

.select:focus {
    border: 1px solid rgba(167, 183, 13, 0.6);
    box-shadow: none;
    outline: none;
}

.select.w150 {
    max-width: 120px;
}

/* チェックボックス */
.check {
    display: none;
}

.check + span {
    position: relative;
    display: inline-block;
    margin: 0 0.2rem 0;
    padding: 0 0 0 1.8rem;
    cursor: pointer;
}

.check + span::before {
    position: absolute;
    content: "";
    display: block;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--c-white);
    border: 1px solid rgba(45, 80, 102, 0.2);
    border-radius: 2px;
}

.check + span::after {
    position: absolute;
    content: "";
    display: block;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    -webkit-transform: translateY(-50%) rotate(-45deg);
    left: 0;
    width: 1.5rem;
    height: 0.6rem;
    margin-top: -0.2rem;
    border-bottom: 3px solid rgba(45, 80, 102, 0.3);
    border-left: 3px solid rgba(45, 80, 102, 0.3);
    transition: all 0.3s ease 0s;
    opacity: 0;
}

.check:checked + span::after {
    opacity: 1;
}

/* ボタン */
button {
    border: 0;
    background-color: transparent;
}

.submit {
    position: relative;
    display: inline-block;
    width: 280px;
    height: 60px;
    padding: 1.5rem 2rem;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-align: center;
    color: var(--c-white);
    font-weight: var(--fw-medium);
    background: var(--c-main);
    border: solid 2px #A7B70D;
    transition: all 0.5s;
    cursor: pointer;
    z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
    .submit:hover {
        color: var(--c-main);
        background: var(--c-white);
    }
}

/* 内容確認（前画面に戻る） */
.submit-btn.-back {
    display: block;
}

.submit-btn.-back .button {
    width: 100%;
    height: 60px;
    padding: 1.5rem 2rem;
    color: var(--c-main);
    font-weight: var(--fw-medium);
    background: var(--c-white);
    border: solid 2px #A7B70D;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .submit-btn.-back .button:hover {
        color: var(--c-white);
        background: var(--c-main);
        border: solid 2px #A7B70D;
    }
}

/* form__footer */
.form__footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 10rem;
    text-align: center;
}

.error .text_block p {
    text-align: center;
}

/* エラー */
p.is-error span {
    background: var(--c-sub-light);
    color: var(--c-accent);
    display: block;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.5rem;
    margin: 0.5rem 0;
}


@media only screen and (max-width:640px) {
    .contact-form {
        width: 100%;
        margin: 6rem auto 0;
    }

    .form__contents {
        margin-bottom: 6rem;
    }

    .contact-form dl {
        display: block;
    }

    .contact-form dt {
        display: block;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .contact-form dd {
        width: 100%;
    }

    .contact-form ul li {
        display: block;
        margin: 0 0 0.5rem 0;
    }

    .form__contents dl:nth-child(5) ul li {
        display: inline-block;
        margin-right: 1.5rem;
    }

    .select {
        max-width: 300px;
        background: transparent url(../_image/contact/form-arrow.svg) no-repeat center right 5px/20px 20px;
    }

    .select.w150 {
        max-width: 150px;
    }

    .submit__wrapper {
        display: inline-block;
        width: 65%;
        height: auto;
    }

    .submit-btn.-back + .submit__wrapper {
        width: 45%;
    }
    
    .submit {
        width: 100%;
        height: 100px;
        padding: 0;
    }

    .submit-btn.-back {
        display: inline-block;
        width: 45%;
        margin: 0;
    }

    .submit-btn.-back .button {
        padding: 10px 10px;
        height: 100px;
    }

    .form__footer {
        gap: 1rem;
        text-align: left;
    }
}


/* --------------------------------------------

	文中リンク

---------------------------------------------- */
.contact-form p a {
    color: var(--c-main-deep);
    text-decoration: underline;
    text-decoration-color: var(--c-main);
    text-underline-offset: 0.2em;
    padding: 0 0.2em;
    transition: opacity 0.3s;
}

@media (hover) {

    .contact-form p a:hover {
        opacity: 0.6;
    }

}