/* ================================================================
   CF7 フォーム — クリーン・フラットデザイン
   ================================================================ */

/* --- フォーム全体 --- */
.cf7-form {
    max-width: 860px;
    margin: 0 auto;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ================================================================
   セクション
   ================================================================ */
.cf7-section {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    overflow: visible;
    box-shadow: none;
}

.cf7-section:hover {
    box-shadow: none;
}

.cf7-section__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 16px;
    background: transparent;
    color: #222;
    border-bottom: 2px solid #222;
    margin-bottom: 28px;
}

.cf7-section__step {
    display: none;
}

.cf7-section__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #222;
}

.cf7-section__body {
    padding: 0 0 40px;
}

/* ================================================================
   dt / dd レイアウト — 2カラムグリッド（ラベル上・入力下）
   ================================================================ */
.cf7__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    grid-auto-flow: row dense;
    margin: 0;
    padding: 0;
}
.cf7__list dt p {
    display: flex;
    gap: 10px;
}

.cf7__list dt,
.cf7__list dd {
    margin: 0;
    padding: 0;
}

.cf7__list dt {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    letter-spacing: 0.02em;
    padding-bottom: 8px;
}

.cf7__list dd {
    padding-bottom: 28px;
}

.cf7__list dt:nth-of-type(odd) { grid-column: 1; }
.cf7__list dd:nth-of-type(odd) { grid-column: 1; }
.cf7__list dt:nth-of-type(even) { grid-column: 2; }
.cf7__list dd:nth-of-type(even) { grid-column: 2; }

.cf7__list dt:nth-of-type(n + 3) {
    border-top: 1px solid #eee;
    padding-top: 28px;
}

/* 全幅1カラム指定（手動クラス） */
.cf7__list dt.cf7-full,
.cf7__list dd.cf7-full {
    grid-column: 1 / -1 !important;
}

/* サブセクション見出し（例: 緊急連絡先） */
.cf7__list dt.cf7-subsection-label {
    border-top: 1px solid #eee;
    padding-top: 28px;
    padding-bottom: 4px;
    font-size: 15px;
}

.cf7__list dd.cf7-subsection-gap {
    padding: 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
}

/* textarea を含むフィールドは自動で全幅1カラム */
.cf7-form .cf7__list dt:has(+ dd textarea),
.cf7 .cf7__list dt:has(+ dd textarea) {
    grid-column: 1 / -1 !important;
}

.cf7-form .cf7__list dd:has(textarea),
.cf7 .cf7__list dd:has(textarea) {
    grid-column: 1 / -1 !important;
}

/* --- 必須・任意バッジ --- */
.cf7__required,
.cf7__optional {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.8;
    white-space: nowrap;
}

.cf7__required {
    background: #d32f2f;
    color: #fff;
}

.cf7__optional {
    background: #e0e0e0;
    color: #777;
}

/* ================================================================
   テキスト・TEL・textarea 入力フィールド
   （font-size は 16px 未満にしない: iOS Safari がフォーカス時に拡大する）
   ================================================================ */
.cf7__list dd input[type="text"],
.cf7__list dd input[type="tel"],
.cf7__list dd input[type="email"],
.cf7__list dd input[type="number"],
.cf7__list dd input[type="date"],
.cf7__list dd textarea,
.cf7__list dd select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: #333;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    outline: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
}

.cf7__list dd input[type="text"]:hover,
.cf7__list dd input[type="tel"]:hover,
.cf7__list dd input[type="email"]:hover,
.cf7__list dd input[type="number"]:hover,
.cf7__list dd textarea:hover,
.cf7__list dd select:hover {
    background: #efefef;
}

.cf7__list dd input[type="text"]:focus,
.cf7__list dd input[type="tel"]:focus,
.cf7__list dd input[type="email"]:focus,
.cf7__list dd input[type="number"]:focus,
.cf7__list dd textarea:focus,
.cf7__list dd select:focus {
    background: #f5f5f5;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

.cf7__list dd textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.8;
}

/* --- select --- */
.cf7__list dd select {
    cursor: pointer;
}

/* --- Snow Monkey テーマ select 装飾リセット --- */
.cf7-form .c-select__toggle,
.cf7-form .smf-select-control__toggle {
    display: none !important;
}

.cf7-form .c-select {
    position: static;
    min-width: 0;
}

.cf7-form .c-select__control {
    position: static;
    z-index: auto;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    min-width: 0;
}

.cf7-form select {
    -webkit-tap-highlight-color: transparent;
}

.cf7-form .wpcf7-form-control-wrap {
    display: block;
    max-width: 100%;
    min-width: 0;
}

/* --- 生年月日 横並び --- */
.cf7-birthdate-row p {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.cf7-birthdate-row .wpcf7-form-control-wrap,
.cf7-birthdate-row .c-select {
    display: inline-flex;
    flex: 0 1 auto;
    min-width: 0;
}

.cf7-birthdate-row select {
    width: auto;
    min-width: 70px;
    flex: 0 1 auto;
}

.cf7-birthdate-row select[name="birth-era"] {
    min-width: 90px;
}

.cf7-unit {
    font-size: 14px;
    font-weight: 500;
    color: #888;
}

#calculated-age {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #d32f2f;
    background: #fef2f2;
    border-radius: 4px;
}

#calculated-age:empty {
    display: none;
}

/* --- フィールド補足テキスト --- */
.cf7-field-note {
    margin: 0 0 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    border-radius: 4px;
    border-left: 3px solid #888;
    line-height: 1.6;
}

.cf7-field-note--deadline {
    margin: 8px 0 0;
    color: #92400e;
    border-left-color: #f59e0b;
    background: #fffbeb;
    font-weight: 700;
}

.cf7-field-note--plain {
    margin: 0 0 8px;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
}

/* --- プレースホルダー --- */
.cf7__list dd input::placeholder,
.cf7__list dd textarea::placeholder {
    color: #aaa;
}

/* ================================================================
   チェックボックス・ラジオボタン
   ================================================================ */
.cf7__list dd .wpcf7-checkbox,
.cf7__list dd .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

.cf7__list dd .wpcf7-list-item {
    display: block;
    margin: 0;
}

.cf7__list dd .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.cf7__list dd .wpcf7-list-item label:hover {
    background: #eee;
}

/* --- カスタム checkbox --- */
input[type="checkbox"],
input[type="radio"] {
    position: relative;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    border: 2px solid #bbb;
    background: #fff;
    vertical-align: middle;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

input[type="checkbox"] {
    border-radius: 3px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked {
    background: #333;
    border-color: #333;
}

input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

input[type="radio"]:checked {
    border-color: #333;
}

input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}

.cf7__list dd .wpcf7-list-item label:has(input:checked) {
    background: #e8e8e8;
}

/* ================================================================
   同意チェック
   ================================================================ */
.cf7__acceptance {
    text-align: center;
    padding: 32px 0 24px;
}

.cf7__acceptance label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

/* ================================================================
   送信ボタン
   ================================================================ */
.cf7__button {
    text-align: center;
    padding-bottom: 20px;
}

input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 360px;
    height: 60px;
    padding: 0 48px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    box-shadow: none;
    font-family: "Noto Sans JP", sans-serif;
}

input[type="submit"]:hover {
    background: #555;
}

input[type="submit"]:active {
    background: #222;
}

input[type="submit"].cf7-submit--disabled,
input[type="submit"]:disabled {
    background: #ccc;
    color: #fff;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 1;
    pointer-events: none;
}

.cf7-submit-wrap {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.cf7-missing-notice {
    margin-top: 16px;
    padding: 14px 20px;
    font-size: 13px;
    line-height: 1.8;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 4px;
    text-align: left;
    animation: cf7-fade-in 0.3s ease;
}

.cf7-missing-notice strong {
    color: #78350f;
}

@keyframes cf7-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cf7-pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
    50%      { box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.4); }
}

.cf7-highlight-missing {
    border-radius: 4px;
    animation: cf7-pulse-border 0.6s ease 3;
}

/* --- spinner --- */
.wpcf7-spinner {
    vertical-align: middle;
}

/* ================================================================
   Flatpickr & date 関連
   ================================================================ */
.cf7-date-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.cf7-date-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    cursor: pointer;
}

.wpcf7-date {
    width: 100%;
    cursor: pointer;
}

/* ================================================================
   バリデーションエラー
   ================================================================ */
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #d32f2f;
    background: #fef2f2;
    border-radius: 4px;
}

.wpcf7-not-valid {
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.3) !important;
}

/* ================================================================
   送信完了メッセージ
   ================================================================ */
.wpcf7-response-output {
    margin: 24px auto 0 !important;
    padding: 16px 24px !important;
    border-radius: 4px !important;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    max-width: 860px;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #2e7d32 !important;
    background: #f1f8e9;
    color: #2e7d32;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: #d32f2f !important;
    background: #fef2f2;
    color: #c62828;
}

/* ================================================================
   送迎場所 動的セレクター
   ================================================================ */
.cf7-pickup-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

.cf7-pickup-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
}

.cf7-pickup-radio:hover {
    background: #eee;
}

.cf7-pickup-radio:has(input:checked) {
    background: #e8e8e8;
}

.cf7-pickup-radio__label {
    white-space: nowrap;
}

.cf7-pickup-selects {
    margin-top: 10px;
}

.cf7-pickup-select-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    border: none;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333;
    outline: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.cf7-pickup-select-group select:focus {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

/* --- 入所手続き来所予約（日付・時間枠） --- */
#enrollment-date,
#procedure-date-display {
    cursor: pointer;
    caret-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* 左：入所予定日 / 右：入所手続き来所日 — PC 2カラムを維持 */
.cf7__list dd:has(#enrollment-date),
.cf7__list dd:has(#procedure-date-display) {
    align-self: start;
}

#procedure-booking-hint,
.cf7-procedure-booking-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* flatpickr — ブロック日・選択不可日 */
.flatpickr-calendar .flatpickr-day.flatpickr-disabled,
.flatpickr-calendar .flatpickr-day.flatpickr-disabled:hover,
.flatpickr-calendar .flatpickr-day.disabled,
.flatpickr-calendar .flatpickr-day.disabled:hover {
    color: #bbb !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: not-allowed !important;
    opacity: 0.45;
}

.flatpickr-calendar .flatpickr-day.notAllowed,
.flatpickr-calendar .flatpickr-day.notAllowed:hover {
    color: #bbb !important;
    cursor: not-allowed !important;
    opacity: 0.45;
}

.flatpickr-calendar .flatpickr-day.is-enrollment-unavailable,
.flatpickr-calendar .flatpickr-day.is-enrollment-unavailable:hover {
    color: #999 !important;
    background: #f0f0f0 !important;
    cursor: not-allowed !important;
    opacity: 0.55;
    text-decoration: line-through;
}

.cf7-procedure-times {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.cf7-procedure-time-btn {
    min-width: 72px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    background: #eee;
    color: #222;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.cf7-procedure-time-btn:hover:not(:disabled) {
    background: #e0e0e0;
}

.cf7-procedure-time-btn.is-selected {
    background: #222;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.cf7-procedure-time-btn.is-disabled,
.cf7-procedure-time-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f0f0f0;
    color: #888;
}

/* --- マップで見るリンク --- */
.cf7-pickup-map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
    cursor: pointer;
}

.cf7-pickup-map-link:hover {
    color: #222;
}

.cf7-pickup-map-link svg {
    flex-shrink: 0;
}

/* --- 送迎場所マップモーダル --- */
.cf7-pickup-modal__dialog {
    max-width: 800px;
}

.cf7-pickup-modal__tabs {
    display: flex;
    gap: 0;
    padding: 0 28px;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

.cf7-pickup-modal__tab {
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #999;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
    white-space: nowrap;
}

.cf7-pickup-modal__tab:hover {
    color: #333;
}

.cf7-pickup-modal__tab.is-active {
    color: #333;
    border-bottom-color: #333;
}

.cf7-pickup-modal__body {
    padding: 20px 28px !important;
}

.cf7-pickup-modal__panel {
    display: none;
}

.cf7-pickup-modal__panel.is-active {
    display: block;
}

.cf7-pickup-modal__map-wrap {
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
}

.cf7-pickup-modal__gmap {
    width: 100%;
    height: 280px;
    background: #f0f0f0;
}

.cf7-pickup-modal__spots {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cf7-pickup-modal__spot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 4px;
    margin: 0 -8px;
}

.cf7-pickup-modal__spot:hover {
    background: #f8f8f8;
}

.cf7-pickup-modal__spot-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cf7-pickup-modal__spot:last-child {
    border-bottom: none;
}

.cf7-pickup-modal__spot-info {
    flex: 1;
    min-width: 0;
}

.cf7-pickup-modal__spot-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

/* InfoWindow reset */
.cf7-pickup-modal__gmap .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

.cf7-pickup-modal__gmap .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

.cf7-pickup-modal__gmap .gm-style-iw-tc {
    display: none;
}

.cf7-pickup-modal__gmap button.gm-ui-hover-effect {
    top: 2px !important;
    right: 2px !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

.cf7-pickup-modal__gmap .gm-style-iw-chr {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    height: auto !important;
    padding: 0 !important;
    z-index: 10 !important;
}

.cf7-pickup-modal__spot-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.cf7-pickup-modal__spot-addr {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #999;
}

.cf7-pickup-modal__spot-addr svg {
    flex-shrink: 0;
    color: #bbb;
}

.cf7-pickup-modal__spot-select {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--accent-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.2s ease, opacity 0.2s ease;
    box-shadow: none;
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
}

.cf7-pickup-modal__spot-select::before {
    content: '✓';
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
    margin-right: -4px;
}

.cf7-pickup-modal__spot-select:hover::before {
    opacity: 1;
    transform: scale(1);
    margin-right: 0;
}

.cf7-pickup-modal__spot-select:hover {
    background: var(--accent-color);
    opacity: 0.85;
}

.cf7-pickup-modal__spot-select:active {
    background: var(--accent-color);
    opacity: 0.75;
}

/* ================================================================
   レスポンシブ
   ================================================================ */
@media screen and (max-width: 767px) {
    .cf7-form {
        margin: 0;
        padding: 0 4px;
    }

    .cf7-section__header {
        margin-bottom: 20px;
    }

    .cf7-section__title {
        font-size: 16px;
    }

    .cf7-section__body {
        padding: 0 0 28px;
    }

    .cf7__list {
        grid-template-columns: 1fr;
    }

    .cf7__list dt:nth-of-type(odd),
    .cf7__list dt:nth-of-type(even),
    .cf7__list dd:nth-of-type(odd),
    .cf7__list dd:nth-of-type(even) {
        grid-column: 1;
    }

    .cf7__list dd {
        padding-bottom: 20px;
    }

    .cf7__list dt:nth-of-type(n + 2) {
        border-top: 1px solid #eee;
        padding-top: 20px;
    }

    .cf7__list dd .wpcf7-checkbox,
    .cf7__list dd .wpcf7-radio {
        flex-direction: column;
    }

    .cf7-pickup-options {
        flex-direction: column;
    }

    .cf7-pickup-modal__tabs {
        padding: 0 20px;
    }

    .cf7-pickup-modal__tab {
        padding: 10px 14px;
        font-size: 12px;
    }

    .cf7-pickup-modal__body {
        padding: 16px 20px !important;
    }

    .cf7-pickup-modal__spot-name {
        font-size: 13px;
    }

    .cf7-pickup-modal__gmap {
        height: 200px;
    }

    .cf7-birthdate-row {
        gap: 3px;
    }

    .cf7-birthdate-row p {
        gap: 4px;
    }

    .cf7-birthdate-row select {
        min-width: 0;
        padding: 10px 6px;
        font-size: 16px;
    }

    .cf7-birthdate-row select[name="birth-era"] {
        min-width: 0;
    }

    .cf7-birthdate-row .wpcf7-form-control-wrap,
    .cf7-birthdate-row .c-select {
        flex: 0 1 auto;
        min-width: 0;
    }

    .cf7-unit {
        font-size: 12px;
    }

    input[type="submit"] {
        width: 100%;
        min-width: auto;
        height: 56px;
        font-size: 16px;
    }

    .cf7__button {
        padding: 0 0 20px;
    }

    .cf7__acceptance {
        padding: 24px 0 16px;
    }
}

/* ================================================================
   超狭画面レスポンシブ（〜420px）
   ================================================================ */
@media screen and (max-width: 420px) {
    .cf7-form {
        padding: 0 2px;
    }

    .cf7__list dd input[type="text"],
    .cf7__list dd input[type="tel"],
    .cf7__list dd input[type="email"],
    .cf7__list dd input[type="number"],
    .cf7__list dd input[type="date"],
    .cf7__list dd textarea,
    .cf7__list dd select {
        padding: 12px 12px;
        font-size: 16px;
    }

    .cf7-birthdate-row p {
        gap: 2px;
    }

    .cf7-birthdate-row select {
        min-width: 0;
        width: auto;
        padding: 10px 4px;
        font-size: 16px;
    }

    .cf7-birthdate-row select[name="birth-era"] {
        min-width: 0;
    }

    .cf7-birthdate-row .wpcf7-form-control-wrap,
    .cf7-birthdate-row .c-select {
        flex: 0 1 auto;
        min-width: 0;
    }

    .cf7-unit {
        font-size: 11px;
        flex-shrink: 0;
    }

    .cf7__list dd .wpcf7-list-item label {
        padding: 8px 12px;
        font-size: 13px;
    }

    .cf7-field-note {
        padding: 8px 10px;
        font-size: 12px;
    }

    .cf7-section__title {
        font-size: 15px;
    }

    .cf7-section__header {
        gap: 8px;
    }

    .cf7__list dt {
        font-size: 13px;
    }

    .cf7-pickup-radio {
        padding: 8px 12px;
        font-size: 13px;
    }

    .cf7-pickup-select-group select {
        padding: 12px 12px;
        padding-right: 36px;
        font-size: 16px;
    }
}

/* ================================================================
   規約モーダル
   ================================================================ */
.cf7-terms-prompt {
    margin: 0 0 12px;
    font-size: 14px;
    color: #555;
    text-align: center;
    line-height: 1.8;
}

.cf7-terms-link {
    color: #333;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.cf7-terms-link:hover {
    color: #000;
}

/* 規約を最後までスクロールするまで同意チェック不可 */
.cf7__acceptance.cf7-acceptance--locked .wpcf7-acceptance label {
    cursor: not-allowed;
    opacity: 0.55;
}

.cf7-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    animation: cf7-modal-fade-in 0.25s ease;
}

.cf7-modal__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 720px;
    max-height: 85vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    animation: cf7-modal-slide-in 0.3s ease;
}

.cf7-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cf7-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.cf7-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.cf7-modal__close:hover {
    background: #e0e0e0;
    color: #333;
}

.cf7-modal__body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    font-size: 14px;
    line-height: 1.85;
    color: #444;
}

.cf7-modal__body h4 {
    margin: 20px 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.cf7-modal__body h4:first-child {
    margin-top: 0;
}

.cf7-modal__body p {
    margin: 0 0 8px;
}

.cf7-modal__body ul {
    margin: 8px 0 12px;
    padding-left: 8px;
    list-style: none;
}

.cf7-modal__body ul li {
    position: relative;
    padding: 3px 0;
    font-size: 13px;
    color: #444;
}

.cf7-modal__footer {
    padding: 16px 28px;
    border-top: 1px solid #eee;
    text-align: center;
    flex-shrink: 0;
}

.cf7-modal__agree-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    height: 50px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: none;
    letter-spacing: 0.04em;
}

.cf7-modal__agree-btn:hover {
    background: #555;
}

.cf7-modal__agree-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #888;
}

.cf7-modal__agree-btn:disabled:hover {
    background: #888;
}

#cf7-pickup-map-done {
    background: #888;
}

#cf7-pickup-map-done:hover {
    background: #666;
}

@keyframes cf7-modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes cf7-modal-slide-in {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

@media screen and (max-width: 767px) {
    .cf7-modal__dialog {
        width: 96%;
        max-height: 90vh;
        border-radius: 8px;
    }

    .cf7-modal__header {
        padding: 16px 20px;
    }

    .cf7-modal__title {
        font-size: 16px;
    }

    .cf7-modal__body {
        padding: 20px;
        font-size: 13px;
    }

    .cf7-modal__footer {
        padding: 14px 20px;
    }

    .cf7-modal__agree-btn {
        width: 100%;
        min-width: auto;
    }
}

/* ================================================================
   資料請求フォーム: 郵送先住所ブロック
   ================================================================ */
.cf7-delivery-address {
    border-top: 1px dashed #e0e0e8;
    margin-top: 8px;
    padding-top: 8px;
}

/* ================================================================
   CF7 旧セレクト互換（.cf7__select は今後不要）
   ================================================================ */
.cf7__select {
    position: relative;
}

.cf7__select:before {
    display: none;
}
