@charset "UTF-8";

/*==================================================
 入力フィールド
================================================== */

select,
textarea,
input[type="tel"],
input[type="text"],
input[type="email"],
input[type="url"] {
    max-width: 100%;
    padding: 1.5rem;
    font-size: 1em;
    font-family: var(--font-family-main);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
    border: 1px solid var(--color-gray);
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(150, 150, 150, 0.1) inset;
    box-sizing: border-box;
}

textarea,
input {
    width: 100%;
}

/* ボタン
-------------------------------------------------- */
button,
input[type="button"],
input[type="submit"] {
    letter-spacing: 0.1em;
    font-size: 2rem;
    font-weight: var(--fw-bold);
    color: var(--color-white);
    background: var(--color-secondary);
    padding: 1.5rem 4rem;
    border: 1px solid transparent;
    border-radius: 100vh;
    -webkit-appearance: none;
    transition: all 0.4s ease;
    cursor: pointer;
    width: fit-content;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background: var(--color-white);
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
}

button[disabled],
input[type="button"][disabled],
input[type="submit"][disabled] {
    background: var(--color-secondary);
    pointer-events: none;
}

.p-contact-form-table input:focus,
.p-contact-form-table textarea:focus {
  outline: 1px solid var(--color-primary);
}

/* チェックボックス・ラジオボタン
-------------------------------------------------- */

input[type="radio"],
input[type="checkbox"] {
    display: inline-block;
    margin-right: 0.6rem;
}

input[type="radio"]+label,
input[type="checkbox"]+label {
    position: relative;
    display: inline-block;
    margin-right: 1.2rem;
    line-height: 3rem;
    cursor: pointer;
}

input[type="radio"]+label:last-child,
input[type="checkbox"]+label:last-child {
    margin-right: 0;
}

input[type="radio"],
input[type="checkbox"] {
    display: none;
    margin: 0;
}

input[type="radio"]+label,
input[type="checkbox"]+label {
    margin-bottom: 0.5rem;
    padding: 0 0 0 2.4rem;
}

input[type="radio"]+label::before,
input[type="checkbox"]+label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    width: 1.8rem;
    aspect-ratio: 1;
    margin-top: -0.9rem;
    background: var(--color-white);
}

input[type="radio"]+label::before {
    border: 2px solid var(--color-primary);
    border-radius: 50%;
}

input[type="checkbox"]+label::before {
    border: 2px solid var(--color-primary);
}

input[type="radio"]:checked+label::after,
input[type="checkbox"]:checked+label::after {
    content: "";
    position: absolute;
    top: 50%;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
}

input[type="radio"]:checked+label::after {
    left: 0.5rem;
    width: 0.8rem;
    aspect-ratio: 1;
    margin-top: -0.4rem;
    background: var(--color-primary);
    border-radius: 50%;
}

input[type="checkbox"]:checked+label::after {
    left: 0.3rem;
    width: 1.6rem;
    aspect-ratio: 2 / 1;
    margin-top: -0.8rem;
    border-left: 0.3rem solid var(--color-primary);
    border-bottom: 0.3rem solid var(--color-primary);
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/*==================================================
 テーブル
================================================== */
.contact-form {
    padding: 7.5rem 0 4rem;
}

.form-wrapper{
    background-color: #e5e4e0;
    padding: 2rem 4rem;
}

.p-contact-form-table {
    margin: 0 auto;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 2rem;
    background-color: #e9e9e9;
    padding: 3rem;
}

th {
    width: 38%;
    min-width: 35rem;
}

td,
th {
    padding: 2rem 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #c0c0c0;
}

/* スマホ表示時にはテーブルを縦向きにする */
@media screen and (max-width: 768px) {

    .contact-form {
        padding: 5rem 0 3rem;
    }

    .p-contact-form-table,
    .p-contact-form-table tbody,
    .p-contact-form-table tr,
    .p-contact-form-table th,
    .p-contact-form-table td {
        width: auto;
        display: block;
    }

    .p-contact-form-table {
        border: 1px solid #dfdfdf;
        padding: 5%;
    }

    .p-contact-form-table td {
        padding: 15px 0;
    }

    .p-contact-form-table th {
        min-width: 100%;
        border: none;
        font-weight: var(--fw-bold);
    }

    .p-contact-submits-wrap button,
    .p-contact-submits-wrap input[type='submit'] {
        font-size: 3vw;
    }

    .form-wrapper{
      padding: 2rem;
    }
}

/* ご住所だけ2段なのでマージンを開ける */
input[name="items[address]"] {
    margin-top: 0.8rem;
}

/* 「不正な送信です」「時間を空けて再度送信ください」などのセキュリティエラー文 */
.sec-error-text {
    line-height: 1.5;
    padding: 4rem 1rem;
    text-align: center;
    color: #ff0000;
    ;
    font-size: 2rem;
    background: var(--color-white);
}

.sec-error-link {
    margin-top: 3rem;
    text-align: center;
    font-size: 1em;
}

@media screen and (max-width: 768px) {
    .sec-error-text {
        padding: 3rem 1rem;
        font-size: 1.4rem;
    }

    .sec-error-link {
        font-size: 5vw;
    }
}

/* 「任意」「必須」マーク */
.optional-mark,
.required-mark {
    color: var(--color-secondary);
    font-size: 1.2rem;
    line-height: 2;
    padding-inline: 0.5em;
    border-radius: 0.2rem;
    font-weight: var(--fw-bold);
}

.optional-mark {
    background: var(--color-contact-blue);
}

.required-mark {
    background: var(--color-contact-red);
}

/* 「~が入力されていません」などの未記入エラー文 */
.error-text {
    margin-bottom: 0.4rem;
    color: #ff0000;
}

/* 送信・確認ボタン */
.p-contact-submits-wrap {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 3rem;
}

.p-contact-submits-wrap .contact-btn:disabled {
    pointer-events: none;
    opacity: 0.5;
  }

/* プライバシーポリシー */
.inline-privacy-policy {
    height: 35rem;
    margin-block: 2rem;
    border: 1px solid var(--color-contact-border);
    background: var(--color-white);
}

.inline-privacy-policy-inner {
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    display: inline-block;
}

.inline-privacy-policy iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* リキャプチャ */
.p-contact-recaptcha-wrap {
    margin: 1.6rem auto;
    display: table;
}

/*==================================================
 日付選択フォーム
================================================== */
.date-list {
    padding-left: inherit;
}

.date-list li {
    list-style: none;
    margin-bottom: 1.5rem;
}

.date-list li p {
    margin-bottom: 0.5rem;
}

/*==================================================
 画像アップロードフォーム
================================================== */

.upload-item-wrap {
    font-size: var(--font-size-sm);
    overflow: hidden;
}

.upload-item-wrap input[type="file"] {
    display: none;
}

/* アップされた画像のサムネイル */
.upload-item-wrap .thumb {
    width: min(22rem, calc(100% - 12rem));
    aspect-ratio: 1;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
    float: left;
}

.upload-item-wrap .thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/*選択・削除ボタン  */
.upload-item-wrap .ancion-btn-wrap {
    float: left;
}

.upload-item-wrap .ancion-btn {
    margin-bottom: 0.8rem;
    width: 11rem;
    line-height: 3.5rem;
    text-align: center;
    color: var(--color-white);
    border-radius: 0.4rem;
    background: var(--color-contact-gray);
    display: block;
}

.upload-item-wrap .select-file {
    background: var(--color-contact-green);
}

.upload-item-wrap .deselect-file {
    background: var(--color-contact-red);
}

.upload-item-wrap .ancion-btn:hover {
    cursor: pointer;
}

/*添付ファイルの注意文  */
.upload-notice {
    display: block;
    margin-top: 1rem;
    font-size: var(--font-size-xs);
    line-height: var(--line-height-xs);
}