/*====================================================================
common 

こちらには共通パーツのcss記述しています。

=====================================================================*/

.contact {
    margin-top: 150px;
}

.contact-tabs {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    /* border-bottom: 1px solid #ccc; */
}

.contact-tab {
    /* flex: 1; */
    width: 49%;
    padding: 18px 0;
    text-align: center;
    /* background: #f5f5f5; */
    background: #fff;
    font-size: 16px;
    border: 1px solid #ccc;
    border-bottom: none;
    cursor: pointer;
    /* transition: 0.2s; */
}

.contact-tab:not(.contact-tab--active):hover {
    background: #eaeaea;
}

.contact-tab--active {
    background: #ffffff;
    /* font-weight: 600; */
    /* border-bottom: 2px solid #ffffff; */
}

.contact-tab-content {
    display: none;
    background: #e5e5e5;
    /* padding: 40px; */
    /* border: 1px solid #ccc; */
}

.contact-tab-content--active {
    display: block;
}

#request-form.contact-tab-content--active {
    background: #d6f1ff;
}

.contact-tab[data-target="contact-form"].contact-tab--active {
    background: #e5e5e5;
}

.contact-tab[data-target="request-form"].contact-tab--active {
    background: #d6f1ff;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    display: none;
}

/*====================================================================

お問合せ contact

=====================================================================*/

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 40px 60px;
    /* margin: 30px auto 40px; */
}

/* 各行レイアウト */
.contact-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    font-size: 14px;
}

/* ラベル部分 */
.contact-label {
    width: 150px;
    padding-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

/* 必須バッジ */
.contact-required {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
    background: #ff5b7e;
    color: #fff;
}

/* 入力エリア */
.contact-row>.wpcf7-form-control-wrap,
.contact-row>span.wpcf7-form-control-wrap {
    flex: 1;
}

/* テキスト・メール・TEL */
.contact-input,
.contact-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 4px;
    border: none;
    background: #ffffff;
    font-size: 14px;
}

/* テキストエリア */
.contact-textarea {
    height: 160px;
    resize: vertical;
}

/* 注意書き行 */
.contact-row--note {
    display: block;
    /* flex-direction: column; */
    font-size: 12px;
    text-align: center;
    line-height: 1.8;
    /* margin: 0 auto; */
    margin-top: 24px;
}

.contact-row--note .contact-label {
    width: 100%;
    padding-top: 0;
    font-weight: normal;
}

.contact-privacy-link {
    text-decoration: underline;
}

/* 同意チェック行 */
.contact-row--agree {
    text-align: center;
    justify-content: center;
    font-size: 13px;
}

.contact-row--agree .wpcf7-acceptance {
    margin-right: 8px;
}

/* 送信ボタン */
.contact-row--submit {
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
}

.contact-submit {
    padding: 14px 60px;
    border-radius: 4px;
    border: none;
    background: #555;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.contact-submit:hover {
    opacity: 0.7;
}

.wpcf7-spinner {
    display: none;
}

/* .wpcf7-response-output {
    display: none !important;
} */


/*====================================================================

利用お申込み request

=====================================================================*/

.request-container {
    max-width: 900px;
    margin: 0 auto;
    background: #d6f1ff;
    /* 水色背景 */
    padding: 40px 40px 60px;
}

.request-form {
    max-width: 900px;
    margin: 0 auto;
}

/* 行レイアウト */
.request-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    font-size: 14px;
}

.request-label {
    width: 160px;
    padding-top: 10px;
    font-weight: 600;
}

.request-field br {
    display: none;
}

.request-required {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: #fff;
    background: #ff5b7e;
    padding: 2px 6px;
    border-radius: 2px;
}

.request-field {
    flex: 1;
}

/* インプット・テキストエリア */
.request-input,
.request-select,
.request-textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    font-size: 14px;
}

.request-input--short {
    width: 160px;
}

.request-textarea {
    height: 160px;
    resize: vertical;
}

/* セレクト */
.request-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    padding-right: 30px;
}

/* 生年月日 */
.request-field--birthday {
    display: flex;
    flex-wrap: wrap;
    /* gap: 8px; */
    align-items: center;
}

.day-spAdjust {
    display: flex;
    justify-content: center;
    align-items: center;
}

.day-spAdjust .request-select {
    width: auto;
}

.request-birthday-unit {
    width: 20%;
    margin-left: 10px;
    /* margin-right: 8px; */
}

.request-field--birthday>.day-spAdjust:first-of-type {
    width: 21%;
}


/* 郵便番号 */
.request-field--zip {
    display: flex;
    align-items: center;
    /* gap: 12px; */
}

.request-field--zip .wpcf7-form-control-wrap {
    width: 15%;
}

.request-zip-dash {
    padding: 0 4px;
}

.hidden {
    display: none;
}

.request-zip-btn {
    padding: 10px 18px;
    margin-left: 10px;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    background: #444;
    color: #fff;
    cursor: pointer;
}

/* 店舗 + 号室 */
.request-field--shop {
    display: flex;
    /* display: block; */
    align-items: center;
    /* gap: 12px; */
}

.request-field--shop>span:nth-of-type(2) {
    margin-left: 10px;
}


/* .shop-label {
    width: 147px;
} */

.prefecture {
    width: 45%;
}

/* 利用希望店舗ブロック全体（上の濃い水色帯） */
.shop-block {
    /* padding-top: 40px; */
    padding-top: 5px;
    margin: 0 -80px 0;
    /* 親 .request-container の padding 40px と合わせて全幅に */
    background: #9ed8ff;
    /* 好きな濃いめの水色に */
}

.shop-block .request-row {
    margin-top: 40px;
    padding-left: 80px;
}

/* 利用希望店舗の行（余白を少し広めに） */
.request-row--shop {
    padding: 24px 40px;
}

/* 利用希望店舗のフィールド部分（横並び） */
.request-field--shop {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 「 - 」の見た目 */
.shop-hyphen {
    margin: 0 8px;
}

/* 「号室」のラベルを右側に */
.shop-room-label {
    margin-left: 8px;
    font-size: 14px;
}

.request-field--shop>span:nth-of-type(2) {
    width: 20%;
}

.room-unit {
    width: 70%;
    margin-left: 10px;
}

.room-group {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 下のグレー帯（説明文） */
.request-row--note2 {
    display: block;
    padding: 8px 40px 10px;
    background: #808080;
    color: #fff;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}

.request-row--note2 br {
    display: none;
}

/* 注意書き・同意など */
.request-row--note {
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    font-size: 12px;
    line-height: 1.8;
}

.request-row--note .request-label {
    width: 100%;
    padding-top: 0;
}

.request-row--agree {
    justify-content: center;
    font-size: 13px;
}

.request-row--agree .wpcf7-acceptance {
    display: inline-block;
    margin-right: 8px;
}

.request-block-files {
    position: relative;
    background: hsl(206, 100%, 87%);
    padding: 40px 40px 60px;
    margin-top: 40px;
    margin: 0 -80px -90px;
    overflow: visible;
}

/* ファイルアップロード */
.request-row--files {
    position: relative;
    align-items: flex-start;
    padding-left: 40px;
    margin-top: 20px;
}

/* .request-file .wpcf7-form-control-wrap {
    position: static;
}

.wpcf7-not-valid-tip {
    position: absolute;
    left: 80px;
} */

.file-size-error {
    position: absolute;
    bottom: -40px;
    left: 50%;
    width: 100%;
    text-align: center;
    transform: translateX(-50%);
    color: #e74c3c;
    font-size: 14px;
}

.request-field--files {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.request-file {
    position: relative;
    display: inline-flex;
    width: 160px;
    /* お好みで */
    height: 160px;
    border: 1px dashed #999;
    background: #f7f7f7;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    cursor: pointer;
    overflow: hidden;
    /* 画像がはみ出さないように */
}

.request-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.request-file-label {
    pointer-events: none;
    font-size: 14px;
    color: #555;
    z-index: 1;
}

/* プレビュー画像 */
.request-file-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* 初期は非表示 */
}

/* 画像が入った状態の見た目（任意） */
.request-file.request-file--has-image {
    border-style: solid;
}

/* has-image のときは画像を見せてラベルを消す */
.request-file.request-file--has-image .request-file-preview {
    display: block;
}

.request-file.request-file--has-image .request-file-label {
    display: none;
}


.request-file-note {
    width: 100%;
    font-size: 12px;
    margin-top: 8px;
}

/* 送信ボタン */
.request-row--submit {
    justify-content: center;
    margin-top: 30px;
}

.request-submit {
    padding: 14px 60px;
    border-radius: 4px;
    border: none;
    background: #444;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}



/*====================================================================








ここからレスポンシブ対応
タブレット、スマホ









=====================================================================*/


@media (max-width: 980px) {


    /*====================================================================

お問合せ contact

=====================================================================*/

    .contact {
        width: 90%;
        margin: 0 auto;
        margin-top: 50px;
    }

    .contact-form br {
        display: none;
    }

    .contact-row {
        display: block;
        /* flex-direction: column; */
        margin-bottom: 30px;
    }

    .contact-label {
        display: block;
        width: 100%;
        margin-bottom: 6px;
        padding-top: 0;
    }

    .wpcf7-form-control-wrap {
        display: block;
    }

    .contact-row>.wpcf7-form-control-wrap {
        width: 100%;
    }


    /*====================================================================

利用お申込み request

=====================================================================*/

    .request-container {
        /* padding: 24px 16px 40px; */
    }

    .request-form br {
        display: none;
    }

    .request-row {
        /* display: block; */
        margin-bottom: 30px;
        flex-direction: column;
    }

    .request-field--birthday {
        display: block;
    }

    .day-spAdjust {
        display: flex;
        justify-content: start;
    }

    .request-birthday-unit {
        width: 20%;
        margin-left: 10px;
        /* margin-right: 8px; */
    }

    .request-field--birthday>.day-spAdjust:first-of-type {
        width: 100%;
    }

    .day-spAdjust>span:first-of-type {
        width: 100%;
    }

    .day-spAdjust:not(:first-of-type) {
        margin-top: 10px;
    }

    .prefecture {
        width: 100%;
    }

    .shop-block {
        margin: 0 -40px 0;
    }

    .shop-block .request-row {
        padding-left: 40px;
    }

    .request-row .spContent {
        display: block;
    }

    .request-row--note2 {
        font-size: 16px;
    }

    .request-label {
        display: block;
        width: 100%;
        padding-top: 0;
        margin-bottom: 6px;
    }

    .request-field {
        width: 100%;
    }

    .request-field--zip,
    .request-field--shop,
    .request-field--birthday {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .request-input--short {
        width: 48%;
        min-width: 140px;
    }

    .request-row--files {
        padding-left: 0;
    }

    .request-block-files {
        /* padding-left: 0; */
        margin: 0 -40px -90px;
    }

    .request-sp .request-select {
        width: 85%;
    }

    .day-spAdjust .request-select {
        width: 100%;
    }

    .room-group {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .room-unit {
        width: 100%;
        margin-left: 10px;
    }

    .request-field--shop {
        display: block;
    }

    .request-field--shop>span:nth-of-type(2) {
        width: 50%;
        margin-left: 0;
        margin-top: 10px;
    }

    .request-field--zip .wpcf7-form-control-wrap {
        width: 25%;
    }

    .file-size-error {
        bottom: -30px;
    }

    .request-row--agree {
        flex-direction: row;
    }

    .request-row--submit {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .request-row--note2 {
        font-size: 14px;
    }

    .file-size-error {
        bottom: -30px;
        text-align: left;
        line-height: 1;
    }
}