/* ==========================================================================
   お問い合わせ（無料相談予約）ページ（/contact/）
   ========================================================================== */

/* ---- HERO ---- */
.ct-hero {
    opacity: 1 !important;
    transform: none !important;
}
.ct-hero__bg {
    position: relative;
    width: 100%;
    height: 316px;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ct-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
}
.ct-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ct-hero__en {
    display: block;
    font-family: "Noto Serif JP", serif;
    font-size: 70px;
    font-weight: 700;
    color: rgba(81, 81, 81, 0.15);
    line-height: 1;
    letter-spacing: 0.1em;
    margin-bottom: -30px;
}
.ct-hero__title {
    font-family: "Noto Serif JP", serif;
    font-size: 50px;
    font-weight: 700;
    color: rgb(81, 81, 81);
    margin: 0 0 8px;
    line-height: 1.2;
}
.ct-hero__sub {
    font-size: 18px;
    font-weight: 400;
    color: rgb(81, 81, 81);
    margin: 0;
}

/* ---- イントロ ---- */
.ct-intro {
    opacity: 1 !important;
    transform: none !important;
    background: #fff;
    padding: 56px 20px 48px;
}
.ct-intro__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.ct-intro__text {
    font-size: 17px;
    font-weight: 400;
    color: #333;
    line-height: 1.9;
    margin: 0 0 24px;
}
.ct-intro__notes {
    list-style: none;
    margin: 0;
    padding: 16px 24px;
    background: #f7f7f0;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.ct-intro__notes li {
    font-size: 14px;
    color: #555;
    padding-left: 1.2em;
    position: relative;
}
.ct-intro__notes li::before {
    content: "・";
    position: absolute;
    left: 0;
}

/* ---- フォームセクション ---- */
.ct-form-section {
    opacity: 1 !important;
    transform: none !important;
    background: #FFFEF7;
    padding: 64px 20px;
}
.ct-form-section p {
    margin: 0 0 25px;
}
.ct-form-section__inner {
    max-width: 800px;
    margin: 0 auto;
}

/* ========== CF7 カスタムスタイル ========== */

/* CF7が自動挿入するbrを非表示 */
.wpcf7 br {
    display: none;
}

/* 2カラム行 */
.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}

/* フィールド共通 */
.cf-field--m5 > p {
    margin-bottom: 5px;
}
.cf-field--date {
    flex: 1;
}
.cf-field--time {
    flex: 1;
}

/* ラベル */
.cf-label {
    display: flex;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}
.cf-label--required::after {
    content: "必須";
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgb(37, 42, 118);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 3px;
    vertical-align: middle;
}

/* テキスト・メール・電話・数値・日付入力 */
.cf-input {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: "Noto Serif JP", serif;
    color: #333;
    background: #fff;
    line-height: 48px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}
.cf-input:focus {
    outline: none;
    border-color: rgb(37, 42, 118);
    box-shadow: 0 0 0 3px rgba(37, 42, 118, 0.12);
}

/* セレクト */
.cf-select {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 0 40px 0 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: "Noto Serif JP", serif;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888888'/%3E%3C/svg%3E") no-repeat right 14px center;
    line-height: 48px;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-select:focus {
    outline: none;
    border-color: rgb(37, 42, 118);
    box-shadow: 0 0 0 3px rgba(37, 42, 118, 0.12);
}

/* ラジオボタン */
.cf-radio-group .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.cf-radio-group .wpcf7-radio .wpcf7-list-item {
    display: block;
    margin: 0;
}
.cf-radio-group .wpcf7-radio .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}
.cf-radio-group .wpcf7-radio .wpcf7-list-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: rgb(37, 42, 118);
    cursor: pointer;
    flex-shrink: 0;
}

/* 日時セクションラベル */
.cf-section-label {
    font-size: 16px;
    font-weight: 700;
    color: rgb(37, 42, 118);
    margin: 8px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgb(37, 42, 118);
}

/* 日時行 */
.cf-datetime-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    /* margin-bottom: 20px; */
}
.cf-datetime-badge {
    flex-shrink: 0;
    width: 60px;
    margin-top: 33px;
    padding: 0 4px;
    background: rgb(37, 42, 118);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
}
.cf-datetime-badge p {
    margin: 12px 3px;
}
.cf-datetime-fields {
    flex: 1;
    display: flex;
    gap: 16px;
}
.cf-datetime-fields .cf-field {
    margin-bottom: 0px;
}

/* テキストエリア */
.cf-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: "Noto Serif JP", serif;
    color: #333;
    background: #fff;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-textarea:focus {
    outline: none;
    border-color: rgb(37, 42, 118);
    box-shadow: 0 0 0 3px rgba(37, 42, 118, 0.12);
}

/* 同意チェックボックス */
.cf-acceptance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}
.cf-acceptance .wpcf7-list-item {
    margin: 0;
}
.cf-acceptance .wpcf7-list-item-label {
    display: none;
}
.cf-checkbox {
    width: 18px;
    height: 18px;
    accent-color: rgb(37, 42, 118);
    cursor: pointer;
    flex-shrink: 0;
}
.cf-acceptance a {
    color: rgb(37, 42, 118);
    text-decoration: underline;
}

/* 送信ボタン */
.cf-submit {
    margin-top: 16px;
    text-align: center;
}
.cf-submit-btn {
    display: inline-block;
    padding: 18px 64px;
    background: rgb(37, 42, 118);
    color: #fff;
    font-family: "Noto Serif JP", serif;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.05em;
}
.cf-submit-btn:hover {
    opacity: 0.85;
}
.cf-submit-btn:active {
    transform: scale(0.98);
}
.cf-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CF7 バリデーション・エラー（送信ボタン押下後のみ表示） */
.wpcf7-form:not(.cf-submit-attempted) .wpcf7-not-valid-tip {
    display: none !important;
}
.wpcf7-form:not(.cf-submit-attempted) .wpcf7-not-valid {
    border-color: #ccc !important;
    box-shadow: none !important;
}
.wpcf7-not-valid-tip {
    font-size: 13px;
    color: #d9534f;
    margin-top: 4px;
    display: block;
}
.wpcf7-not-valid {
    border-color: #d9534f !important;
}
.wpcf7-response-output {
    margin: 24px 0 0 !important;
    padding: 14px 20px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    border: none !important;
}
.wpcf7-mail-sent-ok {
    background: #eaf6ef !important;
    color: #2d7a4f !important;
}
.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
    background: #fdf2f2 !important;
    color: #9b2c2c !important;
}

/* スピナー */
.wpcf7 .ajax-loader {
    display: none;
}

/* ---- LINE CTA ---- */
.ct-line {
    opacity: 1 !important;
    transform: none !important;
    background: rgb(37, 42, 118);
    padding: 48px 20px;
}
.ct-line__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.ct-line__text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.6;
}
.ct-line__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    background: #06C755;
    color: #fff;
    font-family: "Noto Serif JP", serif;
    font-size: 17px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.ct-line__btn:hover {
    opacity: 0.85;
}

.sp-only { display: none; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 767px) {
    .ct-hero__bg { height: 220px; }
    .ct-hero__title { font-size: 28px; }
    .ct-hero__sub { font-size: 14px; }

    .ct-intro { padding: 40px 20px 32px; }
    .ct-intro__text { font-size: 15px; }
    .ct-intro__notes { padding: 12px 16px; }

    .ct-form-section { padding: 40px 20px; }

    .cf-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cf-datetime-row {
        flex-direction: column;
        gap: 8px;
    }
    .cf-datetime-badge {
        margin-top: 0;
        width: auto;
        display: inline-block;
    }
    .cf-datetime-fields {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }


    .cf-submit-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }

    .ct-line { padding: 40px 20px; }
    .ct-line__text { font-size: 16px; }
    .ct-line__btn { padding: 14px 32px; font-size: 15px; }
    .sp-only { display: inline; }
}
