/*
Theme Name: Covermark-Theme
Theme URI: 
Author: 
Author URI: 
Description: A blank WordPress theme for Covermark
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: covermark-theme
Tags: 
*/

/* Import Contact Form 7 styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    line-height: 1.6;
    color: #333;
    max-width: 390px;
    margin: 0 auto;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    color: #00a0d2;
}

img {
    max-width: 100%;
    height: auto;
}

.wpcf7-form {
    max-width: 350px;
    margin: 0 auto;
}

/* 2カラム化と幅調整 */
.date-option {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 !important;
    border: none !important;
}

.date-option .wpcf7-list-item {
    flex: 0 0 calc(50% - 5px);
    /* 2カラム、gap考慮 */
    max-width: calc(50% - 5px);
    min-height: 64px;
    box-sizing: border-box;
    padding: 20px 25px;
    margin: 0;
}

/* 既存の枠デザインはそのまま維持 */
/* 各選択肢の枠 */
.date-option .wpcf7-list-item {
    display: flex;
    align-items: center;
    border: 2px solid #B3B3B3;
    /* デフォルトはグレー */
    border-radius: 8px;
    padding: 12px 24px;
    min-width: 0;
    background: #fff;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    font-size: 22px;
    font-weight: 500;
    color: #222;
    box-sizing: border-box;
}

/* ラジオ本体を非表示 */
.date-option input[type="radio"] {
    display: none;
}

/* カスタムラジオの外円 */
.date-option .wpcf7-list-item-label {
    position: relative;
    padding-left: 32px;
    padding-top: 5px;
    padding-bottom: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

/* 外円 */
.date-option .wpcf7-list-item-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid #B3B3B3;
    /* デフォルトはグレー */
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

/* 選択時の内円 */
.date-option input[type="radio"]:checked+.wpcf7-list-item-label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #b057a1;
    border-radius: 50%;
    display: block;
}

/* 選択時の枠色とラジオ円の色 */
.date-option input[type="radio"]:checked+.wpcf7-list-item-label {
    color: #222;
}

/* 選択時の枠線色を変更 */
.date-option input[type="radio"]:checked+.wpcf7-list-item-label::before {
    border-color: #b057a1;
}

/* 選択時のリストアイテムの枠線色を変更（JavaScriptでクラス追加） */
.date-option .wpcf7-list-item.selected {
    border-color: #b057a1;
}

/* Form Group: 各入力項目のラッパー */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 37px;
    gap: 9px;
    width: 350px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    font-weight: 400;

    & p {
        & br {
            display: none;
        }
    }
}

.form-group.isSpace {
    margin-bottom: 46px;
    gap: 20px;
}

.form-group p {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

.form-group p.bold {
    font-weight: 700;
}

.form-group.isLast {
    padding-top: 10px;
    margin-bottom: 73px;
}

.form-group.isLast>.bold {
    margin-bottom: 10px;
}

.form-group.confirm {
    margin-bottom: 52px;
    gap: 15px;
}

.form-group.confirm-time {
    gap: 0;
    margin-bottom: 30px;


    & p:nth-child(2) {
        margin-top: 16px;
        margin-bottom: 6px;
    }
}

.form-group.confirm-age {
    margin-bottom: 31px;
    gap: 16px;
}

.form-group.confirm-experience {
    margin-bottom: 20px;
    gap: 17px;
}

.form-group.confirm-know {
    margin-bottom: 66px;
    gap: 6px;
}

.required {
    color: #D32929;
    font-size: 16px;
    font-weight: 400;
}

/* 入力欄の幅を親に合わせる */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Input */
.custom-input,
.custom-input[type="text"],
.custom-input[type="tel"],
.custom-input[type="email"],
.custom-input[type="number"],
.custom-input[type="password"] {
    box-sizing: border-box;

    /* Auto layout */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 20px 11px;
    gap: 10px;

    width: 350px;
    height: 56px;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    background: #FFFFFF;
    border: 1px solid #B3B3B3;
    border-radius: 8px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Custom Select (時間選択) */
.custom-select {
    box-sizing: border-box;

    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px 11px;
    gap: 10px;
    width: 100%;
    height: 64.82px;
    background: #FFFFFF;
    border: 1px solid #B3B3B3;
    border-radius: 8px !important;
    /* デフォルトはグレー */
    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: color 0.2s;
}

/* 選択された場合の色（JavaScriptでクラス追加） */
.custom-select.has-selection {
    color: #000 !important;
}

.custom-select::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    right: 18px;
    width: 12px;
    height: 7.41px;
    background: #B3B3B3;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    pointer-events: none;
    transform: translateY(-50%) scaleY(-1);
    transition: background 0.2s;
}

/* 選択された場合の矢印の色 */
.custom-select.has-selection::after {
    background: #000;
}

/* selectタグ自体のデフォルト矢印を消す */
.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    width: 100%;
    border: none;
    outline: none;
    box-shadow: none;
}

/* セレクトボックスの中身のテキストサイズや色も調整したい場合 */
.custom-select option {
    font-size: 16px;
    color: #222;
}

.custom-select-wrap {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

.custom-select-wrap::before,
.custom-select-wrap::after {
    content: '';
    position: absolute;
    right: 16px;
    width: 12px;
    height: 7.41px;
    background: url('images/icon/Vector.png') no-repeat center/contain;
    pointer-events: none;
    display: block;
}

.custom-select-wrap::before {
    top: auto;
    bottom: 19px;
    transform: none;
    z-index: 3;
    transform: rotate(180deg);
}

.custom-select-wrap::after {
    top: 20px;
    bottom: auto;
    transform: none;
    z-index: 2;
}

.custom-select-wrap.wpcf7-form-control-wrap.error {
    &::before {
        right: 38px;
    }
}

.select-row {
    width: 100%;
    position: relative;
    display: inline-block;
}

.select-row select {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 10px 40px 10px 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: white;
    cursor: pointer;
    z-index: 1;
}

.select-row select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    z-index: 2;
}

.wpcf7-form-control-wrap {
    margin-bottom: 0 !important;
}

.wpcf7-form>p {
    margin: 0;
    padding: 0;
    /* display: contents; でもOK（IE非対応） */
}

/* ラジオボタン横並び */
.radio-button {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 18px;
    border: none !important;
    padding: 0 !important;
}

.radio-button .wpcf7-list-item {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 20px;
    font-weight: 400;
}

/* ラジオ本体を非表示 */
.radio-button input[type="radio"] {
    display: none;
}

/* カスタムラジオの外円 */
.radio-button .wpcf7-list-item-label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    color: #222;
    display: flex;
    align-items: center;
    user-select: none;
    line-height: 1.2;
}

/* 外円 */
.radio-button .wpcf7-list-item-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid #b057a1;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
}

/* 選択時の内円 */
.radio-button input[type="radio"]:checked+.wpcf7-list-item-label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #b057a1;
    border-radius: 50%;
    display: block;
}

/* 選択時のラベル色（必要なら） */
.radio-button input[type="radio"]:checked+.wpcf7-list-item-label {
    color: #000;
}

.button-wrap {
    position: relative;
    width: 100%;
}

.button-wrap.confirm {
    margin-bottom: 20px !important;
}

.button-wrap.confirm::after {
    content: '';
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    width: 21.66px;
    height: 27px;
    background: url('images/icon/next-arrow.png') no-repeat center/contain;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.wpcf7-spinner {
    display: none;
}


.confirm-button {
    position: relative;
    width: 350px;
    height: 62px;
    background: #AF4C93 !important;
    border-radius: 70px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


.confirm-button:hover {
    background: #943b7a;
}

.previous-button {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 70px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer;
    width: 100%;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;

}

.button-wrap.previous {
    position: relative;
}

.button-wrap.previous::after {
    content: '';
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    width: 24px;
    height: 24px;
    background: url('images/icon/back-icon.png') no-repeat center/contain;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.cf7-step-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 59px;
    width: 96%;
    margin: 27px auto 19px auto;
    position: relative;

    &.step-1 {
        width: 100%;

        & p {
            justify-content: flex-start;
            width: 100%;
            gap: 37px;
        }

    }

    &.step-2 {
        width: 100%;

        & p {
            justify-content: flex-start;
            width: 100%;
            gap: 37px;
        }
    }

    &.step-3 {
        width: 100%;
        gap: 40px;

        &::before {
            width: calc(93% - 64px);
            left: 38px;
        }

        &::after {
            width: calc(97% - 64px);
        }

        & p {
            justify-content: flex-start;
            width: 100%;
            gap: 37px;
        }

        & .cf7-step {
            width: 98px;

            &.active::after {
                left: 43%;
            }
        }
    }
}

.step-1 .cf7-step.active::after {
    left: 25px;
}

.cf7-step-indicator>p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.cf7-step-indicator::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 32px;
    right: 32px;
    height: 2px;
    background: #eee;
    z-index: 0;
    width: calc(97% - 64px);
}

.cf7-step-indicator::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 43px;
    height: 2px;
    background: #AF4C93;
    z-index: 0;
    transition: width 0.3s;
}

/* 1番目（入力）: 線なし */
.cf7-step-indicator.step-1::after {
    width: 0;
}

/* 2番目（確認）: 線を半分まで */
.cf7-step-indicator.step-2::after {
    width: calc((85% - 64px) / 2);
}

/* 3番目（送信完了）: 線を全体まで */
.cf7-step-indicator.step-3::after {
    width: calc(90% - 64px);
}

.cf7-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 64px;
}

.cf7-step::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #E8E8E8;
    background: #fff;
    margin-bottom: 2px;
    box-sizing: border-box;
}

.cf7-step::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: #E8E8E8;
    border-radius: 50%;
    z-index: 2;
}

.cf7-step.active::before {
    background: #fff;
    border: 2px solid #b057a1;
    z-index: 2;
}

.cf7-step.active::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: #b057a1;
    border-radius: 50%;
    z-index: 2;
}

.cf7-step {
    color: #ccc;
    font-size: 16px;
    font-weight: 500;
}

.cf7-step.active {
    color: #b057a1;
}

.cf7-note {
    margin-top: 39px !important;
    margin-bottom: 30px !important;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    text-align: center;
}

footer>.copyright {
    margin-top: 26px;
}

.Hero {
    line-height: 0.9;
}

.Hero h1 {
    font-family: "Noto Serif JP", serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, #923D92 0%, #E56894 50%, #923D92 100%);
    width: 100%;
    min-height: 56px;
    line-height: 1.1;
    padding: 6px 0;
}

.info-wrap {
    font-family: "Noto Serif JP", serif;
    padding: 10px 15px;
    background-color: #FEE3EC;
    line-height: 1.4;
}

.condition p {
    font-family: "Noto Serif JP", serif;
    font-size: 16px;
    font-weight: 600;
    color: #AF4C93;
    text-align: center;
}

.place-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0px;
}

.date-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0px;
}

.title {
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

.place p {
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

.date p {
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

.thanks-wrap h2 {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #AF4C93;
    text-align: center;
}

.thanks-wrap p {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    line-height: 1.5;
    text-align: center;
    margin-top: 41px;
}

.cancel-wrap {
    margin-top: 53px;
}

.cancel-wrap p {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    text-align: center;
}

.cancel-wrap a {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #AF4C93;
    text-align: center;
    text-decoration: underline;
}

.cancel-wrap p.cancel-note {
    font-size: 13px;
    font-weight: 400;
    color: #000;
    text-align: center;
    margin-top: 20px;
}


/* 入力欄のフォーカス時の枠色 */
input:focus,
select:focus,
textarea:focus,
.custom-input:focus,
.custom-select:focus {
    border-color: #AF4C93 !important;
    border-width: 2px !important;
    outline: none;
}

.wpcf7-not-valid {
    border: 2px solid #FF0004 !important;
}

.wpcf7-response-output {
    display: none;
}

.wpcf7-form-control.experience {
    margin-top: 12px;
}

/* 入力エラー時のアラートアイコン（ラッパー方式） */
.wpcf7-form-control-wrap.error {
    position: relative;
}

.wpcf7-form-control-wrap.error::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    right: 12px;
    width: 24px;
    height: 24px;
    background: url('images/icon/alert-icon.png') no-repeat center/contain;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}


.error+.wpcf7-select::after {
    top: 45%;
}

/* .custom-inputのplaceholder色 */
.custom-input::placeholder {
    color: #B3B3B3 !important;
    opacity: 1;
}

/* 入力エラー時のアラートアイコン（input自身に::after） */
input.wpcf7-not-valid.custom-input {
    position: relative;
    padding-right: 40px !important;
}

input.wpcf7-not-valid.custom-input::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    right: 12px;
    width: 24px;
    height: 24px;
    background: url('images/icon/alert-icon.png') no-repeat center/contain;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

/* インラインスタイルを上書きするための強制指定 */
.custom-select {
    color: #B3B3B3;
    /* デフォルトはグレー */
}

.custom-select.has-selection {
    color: #000 !important;
}

.wpcf7-form-control.custom-select.has-selection {
    color: #000 !important;
}


select.wpcf7-form-control.custom-select.has-selection {
    color: #000 !important;
}

.mainlogo {
    max-width: 250px;
    margin: 0 auto;
}

.copyright {
    font-size: 10px;
    font-weight: 400;
    color: #000;
    text-align: center;
    margin-top: 37px;
    margin-bottom: 50px;
}

.sns-wrap {
    background-color: #F8F8F8;
    padding-top: 35px;
    margin-top: 50px;
}

.sns-wrap .mainlogo {
    width: 205.39px;
    margin: 0 auto;
}

.sns-wrap .sns-link-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-bottom: 35px;

    & a {
        display: block;
        width: 60px;
        height: 60px;
        padding: 0;
    }

    & .sns-link-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        & p {
            font-size: 14px;
            font-weight: 400;
            color: #000;
            width: 100%;
            text-align: left;
        }
    }
}

.sns-wrap .sns-link {
    display: block;
    width: 100%;
    height: 100%;



    &.line {
        margin-right: 62px;
    }

    &.instagram {
        margin-left: 0;
    }
}


.sns-wrap .sns-icon {
    width: 60px;
    height: 60px;
}

/* SNSリンクの間に縦線を表示 */
.sns-link-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.sns-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}

.sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sns-icon {
    width: 40px;
    height: 40px;
}

.sns-link-item p {
    font-size: 12px;
    color: #333;
    margin: 0;
}

/* 2つ目のアイコンがある場合の縦線（CSSのみ） */
.sns-link-wrap .sns-link-item:nth-child(2)::before {
    content: '';
    position: absolute;
    left: 45%;
    top: 46.2%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 60%;
    background-color: #B3B3B3;
    z-index: 10;
}

/* デバッグ用：縦線が表示されているか確認 */
.sns-link-wrap.has-divider {
    border: 1px solid red;
    /* デバッグ用 - 削除可能 */
}