/* =====================================
   RESET
===================================== */

body {
    margin: 0;
    overflow-x: hidden;
    font-family:
        "うつくし明朝体",
        "游明朝",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "Hiragino Mincho Pro",
        "Noto Serif JP",
        "MS P明朝",
        "MS 明朝",
        serif;
}

html {
    scroll-behavior: auto;
}


/* =====================================
   HEADER
===================================== */

header {
    padding: 16px;
    background-color: #ab3033;
    margin-bottom: 60px;
    text-align: center;
}

header h1 {
    width: 460px;
    margin: 0 auto;
}

@media (max-width: 750px) {

    header h1 {
        width: 260px;
    }

}


/* ========================================
   CONTACT
======================================== */

.contact {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.contact-h2 {
    text-align: center;
    color: #ab3033;
}

.contact-h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #ab3033;
    margin: 15px auto 0;
}

.contact-p {
    text-align: center;
    margin: 40px 0 100px;
}

.contact-inner {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

/* ----------------------------------------
   STEP
---------------------------------------- */

.contact-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 330px;
    margin: 0 auto 80px;
}

.contact-step__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.contact-step__label {
    position: absolute;
    top: -25px;
    color: #ab3033;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
}

.contact-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ab3033;
    border-radius: 50%;
    color: #ab3033;
    font-size: 0.75rem;
    font-weight: 400;
}

.contact-step__item.is-current .contact-step__number {
    background-color: #ab3033;
    color: #fff;
}

.contact-step__line {
    width: 85px;
    height: 1px;
    background-color: #ab3033;
}


/* ----------------------------------------
   FORM
---------------------------------------- */

.contact-form {
    width: 100%;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 250px 1fr;
    align-items: center;
    margin-bottom: 28px;
    gap: 15px;
}

.contact-form__row label {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-form__row>label>span {
    font-size: 1.2rem;
    color: #ab3033;
}

.contact-form__row label em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    background-color: #ab3033;
    color: #fff;
    font-size: 1rem;
    font-style: normal;
    line-height: 1;
}

.contact-form__row input:not([type="file"]),
.contact-form__row textarea {
    width: 100%;
    border: 0;
    border-radius: 0;
    background-color: #f1f1f1;
    color: #000;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.contact-form__row input:not([type="file"]) {
    height: 68px;
    padding: 0 15px;
}

.contact-form__row textarea {
    height: 100px;
    padding: 15px;
    resize: vertical;
}

.contact-form__row input:focus,
.contact-form__row textarea:focus {
    outline: 1px solid #ab3033;
}


/* 郵便番号 */
.contact-form__row--zip input {
    width: 300px;
}

.email-input {
    position: relative;
}

.email-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin: 5px 0 0;
    padding: 0;
    background: #fff;
    border: 1px solid #ab3033;
    list-style: none;
    z-index: 10;
}

.email-suggestions.is-active {
    display: block;
}

.email-suggestions li {
    padding: 10px 15px;
    color: #ab3033;
    cursor: pointer;
}

.email-suggestions li:hover {
    background-color: #ab3033;
    color: #fff;
}

.quantity-input {
    display: block;
}

.quantity-input__field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-input__field input {
    width: 132px !important;
    max-width: 132px;
    box-sizing: border-box;
    flex: 0 0 132px;
}

.quantity-input__field span {
    display: inline-block;
    white-space: nowrap;
    flex: 0 0 auto;
}

.quantity-input .contact-form__note {
    margin-top: 5px;
}

.contact-form__note {
    font-size: 0.8rem;
}

.contact-form__radio {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.contact-form__radio label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.contact-form__radio input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #ab3033;
    outline: none;
}

.contact-form__radio input[type="radio"]:focus {
    outline: none;
    box-shadow: none;
}

.contact-form__radio label span {
    display: inline-block;
    white-space: nowrap;
}

.contact-form__row--address-title {
    display: block;
    margin-bottom: 15px;
}

.contact-form__row--address-title label {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
}

.contact-form__row--address-title label span {
    font-size: 1.2rem;
    color: #ab3033;
}

.contact-form__row--address-title label em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    background-color: #ab3033;
    color: #fff;
    font-size: 1rem;
    font-style: normal;
    line-height: 1;
}

/* ファイル添付 */
.contact-form__row--attachment {
    align-items: start;
}

.attachment-input {
    min-width: 0;
}

.attachment-input input[type="file"] {
    width: 100%;
    height: auto;
    padding: 0;
    box-sizing: border-box;
}

.attachment-input .contact-form__note {
    margin: 10px 0 0;
    line-height: 1.7;
}

@media (max-width: 750px) {

    .contact-form__row {
        grid-template-columns: none;
        gap: 0;
    }

    .contact-form__row label {
        margin-bottom: 10px;
    }

    .contact-form__row label span {
        font-size: 1rem;
    }

    .contact-form__row label em {
        font-size: 0.7rem;
    }

    .contact-form__row input {
        height: 50px;
    }

    .contact-form__row--zip input {
        width: 260px;
    }

    .contact-form__row--address-title label {
        margin-bottom: 0;
    }

    .contact-form__radio {
        gap: 5px;
    }

}

.cf-turnstile {
    display: flex;
    justify-content: center;
}


/* ----------------------------------------
   PRIVACY
---------------------------------------- */

.contact-privacy {
    margin-top: 95px;
    padding-top: 95px;
    border-top: 1px solid #000;
}

.contact-privacy__text {
    padding: 30px 40px;
    background-color: #b2b2b2;
    color: #fff;
    line-height: 1.8;
    height: 200px;
    box-sizing: border-box;
    overflow-y: auto;

    /* Safari対策 */
    scrollbar-gutter: stable;
}

.contact-privacy__text p {
    margin: 0 0 25px;
}

.contact-privacy__text p:last-child {
    margin-bottom: 0;
}

.contact-privacy__text h2 {
    font-size: 1rem;
    font-weight: 400;
}

@media (max-width: 750px) {

    .contact-privacy {
        margin-top: 55px;
        padding-top: 55px;
    }

    .contact-privacy__text {
        padding: 20px;
        height: 160px;
    }

    .contact-privacy__text p,
    .contact-privacy__text h2 {
        font-size: 0.9rem;
    }

}

.contact-privacy__text::-webkit-scrollbar {
    width: 12px;
}

.contact-privacy__text::-webkit-scrollbar-track {
    background: transparent;
}

.contact-privacy__text::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 10px;
}


/* ----------------------------------------
   AGREEMENT
---------------------------------------- */

.contact-agreement {
    margin: 45px 0;
    text-align: center;
    color: #ab3033;
}

.contact-agreement p {
    margin: 0 0 35px;
}

.contact-agreement__check {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1.4rem;
}

.contact-agreement__check input {
    appearance: none;
    position: relative;
    width: 14px;
    height: 14px;
    margin: 0;
    border: 1px solid #ab3033;
    background-color: #fff;
    cursor: pointer;
}

.contact-agreement__check input:checked::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 8px;
    left: 4px;
    top: 1px;
    border-right: 2px solid #ab3033;
    border-bottom: 2px solid #ab3033;
    transform: rotate(45deg);
}

@media (max-width: 750px) {

    .contact-agreement {
        margin: 30px 0;
    }

    .contact-agreement p {
        font-size: 0.9rem;
    }

    .contact-agreement__check {
        font-size: 1.2rem;
    }

}

/* ----------------------------------------
   SUBMIT
---------------------------------------- */

.contact-submit {
    display: flex;
    justify-content: center;
    margin-top: 55px;
}

.contact-submit button {
    width: 326px;
    height: 68px;
    background-color: #cfa463;
    color: #fff;
    border: 1px solid #cfa463;
    font-family: inherit;
    font-size: 1.8rem;
    cursor: pointer;
    letter-spacing: 0.3em;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.contact-submit button:hover {
    background: #fff;
    color: #cfa463;
}

@media (max-width: 750px) {

    .contact-submit {
        margin-top: 55px;
    }

    .contact-submit button {
        width: 260px;
        height: 60px;
        font-size: 1.5rem;
        letter-spacing: 8;
    }
}


/* ----------------------------------------
   footer
---------------------------------------- */

footer {
    margin-top: 80px;
    text-align: center;
    background-color: #ab3033;
    padding: 40px 0 10px;
}

.footer-img {
    padding-bottom: 40px;
}

.footer-img img {
    display: block;
    width: 150px;
    margin: 0 auto;
}

.copyright-04 {
    font-size: 0.75rem;
    font-weight: 400;
    color: #cfa463;
}

/* ----------------------------------------
   確認画面
---------------------------------------- */

.contact-confirm {
    margin-top: 80px;
    border-top: 1px solid #000;
}

.contact-confirm__row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    min-height: 75px;
    border-bottom: 1px solid #000;
}

.contact-confirm__row>span {
    font-size: 1rem;
    color: #ab3033;
}

.contact-confirm__row>p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
}

.contact-confirm__row--message {
    align-items: start;
    padding: 25px 0;
}

.contact-confirm__row--message>p {
    white-space: normal;
}

.contact-confirm__form {
    margin-top: 70px;
}

.contact-confirm__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

.contact-confirm__buttons button {
    width: 220px;
    height: 60px;
    border: 1px solid #cfa463;
    background: #cfa463;
    color: #fff;
    font-family: inherit;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.contact-confirm__buttons button[value="back"] {
    background: #fff;
    color: #cfa463;
}

.contact-confirm__buttons button:hover {
    background: #fff;
    color: #cfa463;
}

.contact-confirm__buttons button[value="back"]:hover {
    background: #cfa463;
    color: #fff;
}

/* ----------------------------------------
   送信完了
---------------------------------------- */

.contact-complete {
    margin-top: 120px;
    padding: 100px 20px;
    text-align: center;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.contact-complete h1 {
    margin: 0 0 40px;
    color: #ab3033;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1;
}

.contact-complete p {
    margin: 0 0 10px;
    line-height: 1.8;
}

.contact-complete__link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 60px;
    margin-top: 55px;
    border: 1px solid #ab3033;
    background: #ab3033;
    color: #fff;
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.contact-complete__link:hover {
    background: #fff;
    color: #ab3033;
}

/* ----------------------------------------
   エラー
---------------------------------------- */

.contact-error {
    margin: 40px 0;
    padding: 20px;
    border: 1px solid #ab3033;
    color: #ab3033;
    line-height: 1.8;
}

/* ----------------------------------------
   スマホ
---------------------------------------- */

@media (max-width: 750px) {

    /* 確認画面 */
    .contact-confirm {
        margin-top: 55px;
    }

    .contact-confirm__row {
        grid-template-columns: 100px 1fr;
        min-height: 65px;
        gap: 15px;
    }

    .contact-confirm__row>span {
        font-size: 0.85rem;
    }

    .contact-confirm__row>p {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .contact-confirm__row--message {
        padding: 20px 0;
    }

    .contact-confirm__form {
        margin-top: 50px;
    }

    .contact-confirm__buttons {
        gap: 15px;
        margin-top: 40px;
    }

    .contact-confirm__buttons button {
        width: 50%;
        height: 55px;
        font-size: 0.9rem;
    }

    /* 送信完了 */
    .contact-complete {
        margin-top: 70px;
        padding: 70px 15px;
    }

    .contact-complete h1 {
        margin-bottom: 30px;
        font-size: 3rem;
    }

    .contact-complete p {
        font-size: 0.9rem;
    }

    .contact-complete__link {
        width: 200px;
        height: 55px;
        margin-top: 40px;
        font-size: 0.9rem;
    }

}