/* ===== Cubrick Booking ============================================ */

.cb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.cb-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

/* ── CTAスクロールボタン ── */
.cb-cta-catch {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    letter-spacing: 0.05em;
}
.cb-scroll-cta {
    text-align: center;
    padding: 12px 0 16px;
}

/* ── ヒーローセクション ── */
.cb-hero {
    max-width: 900px;
    margin: 0 auto 16px;
    border-radius: 0;
    overflow: hidden;
}
.cb-hero img {
    width: 100%;
    height: auto;
    display: block;
}

#cb-booking-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 48px 60px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    font-size: 15px;
    line-height: 1.7;
    background: #fff;
    border-radius: 8px;
}

.cb-hidden { display: none !important; }

/* ── フォームヘッダー ── */
.cb-form-header {
    text-align: center;
    margin-bottom: 32px;
}
.cb-form-header h2 {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    margin: 0 0 8px;
}
.cb-form-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ── ステップインジケーター ── */
.cb-step-indicator {
    display: flex;
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    counter-reset: step;
    gap: 0;
}
.cb-step-indicator li {
    flex: 1;
    position: relative;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    padding-bottom: 8px;
}
.cb-step-indicator li::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    margin: 0 auto 8px;
}
.cb-step-indicator li::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: #ddd;
}
.cb-step-indicator li:last-child::after { display: none; }
.cb-step-indicator li.active::before { background: #27ae60; }
.cb-step-indicator li.done::before   { background: #27ae60; content: '✓'; }
.cb-step-indicator li.done::after    { background: #27ae60; }
.cb-step-indicator li.active,
.cb-step-indicator li.done { color: #333; font-weight: bold; }

/* ── パネル共通 ── */
.cb-panel h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 24px;
    color: #222;
}

/* ── Step1: カテゴリグリッド ── */
.cb-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.cb-cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 20px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.cb-cat-btn:hover    { border-color: #27ae60; background: #f7fdf9; }
.cb-cat-btn.selected { border-color: #27ae60; background: #f0fdf4; }
.cb-cat-main {
    font-size: 14px;
    font-weight: bold;
    color: #222;
    line-height: 1.4;
}
.cb-cat-sub {
    font-size: 11px;
    color: #aaa;
    font-weight: normal;
    line-height: 1.3;
}
.cb-cat-icon { display: none; }

/* ── Step2: テキスト入力 ── */
.cb-selected-tag {
    display: inline-block;
    background: #f0fdf4;
    color: #27ae60;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
}
.cb-field { margin-bottom: 20px; }
.cb-field label {
    display: block;
    font-weight: bold;
    font-size: 13px;
    color: #555;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}
.cb-field label .required { color: #d0021b; margin-left: 4px; font-size: 12px; font-weight: normal; }
.cb-field input[type="text"],
.cb-field input[type="email"],
.cb-field input[type="url"],
.cb-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.cb-field input:focus,
.cb-field textarea:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39,174,96,.12);
}
.cb-field input.cb-field-error,
.cb-field textarea.cb-field-error { border-color: #d0021b; }
.cb-field .cb-field-note { font-size: 12px; color: #888; margin-top: 4px; }
.cb-field-error-msg { font-size: 12px; color: #d0021b; margin-top: 4px; }

/* ── ボタン群 ── */
.cb-actions { display: flex; gap: 12px; margin-top: 28px; align-items: center; flex-wrap: wrap; }
.cb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.02em;
}
.cb-btn-primary:hover    { background: #1e8449; }
.cb-btn-primary:disabled { background: #aaa; cursor: default; }
.cb-btn-back {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
}
.cb-btn-back:hover { color: #333; }

/* ── Step3: 見積り結果 ── */
.cb-estimate-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
@media (max-width: 480px) { .cb-estimate-box { grid-template-columns: 1fr; } }
.cb-estimate-box > div {
    background: #f7fdf9;
    border: 1.5px solid #bbf7d0;
    border-radius: 8px;
    padding: 20px 24px;
    text-align: center;
}
.cb-estimate-box .cb-est-label {
    font-size: 11px;
    color: #666;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.cb-estimate-box .cb-est-value {
    font-size: 26px;
    font-weight: bold;
    color: #27ae60;
}
.cb-estimate-box .cb-est-unit { font-size: 14px; font-weight: normal; color: #555; }

.cb-breakdown, .cb-notes-section { margin-bottom: 20px; }
.cb-breakdown h4, .cb-notes-section h4 {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 8px;
    color: #444;
}
.cb-breakdown ul, .cb-notes-section ul {
    margin: 0;
    padding-left: 20px;
}
.cb-breakdown li, .cb-notes-section li { font-size: 14px; color: #555; margin-bottom: 4px; }
.cb-notes-section { background: #fffbea; border: 1px solid #f5e642; border-radius: 6px; padding: 12px 16px; }
.cb-notes-section h4 { color: #7a6000; }
/* ── Step4: カレンダー ── */
.cb-calendar-intro { font-size: 13px; color: #666; margin: -8px 0 16px; }
.cb-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}
.cb-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    gap: 4px;
}
.cb-slot:hover    { border-color: #27ae60; background: #f7fdf9; }
.cb-slot.selected { border-color: #27ae60; background: #f0fdf4; }
.cb-slot-date { font-size: 13px; font-weight: bold; color: #333; }
.cb-slot-full {
    border-color: #eee;
    background: #f9f9f9;
    cursor: default;
}
.cb-slot-full .cb-slot-date { color: #ccc; }
.cb-slot-full-label { font-size: 11px; color: #ccc; }
.cb-completion-note {
    font-size: 13px;
    color: #555;
    margin: 8px 0 16px;
}
.cb-selected-date-label {
    font-size: 13px;
    color: #27ae60;
    font-weight: bold;
    min-height: 20px;
    margin: 8px 0 20px;
}

/* ── 完了画面 ── */
.cb-done-box {
    text-align: center;
    padding: 56px 24px;
}
.cb-done-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}
.cb-done-box h2 { font-size: 20px; margin-bottom: 16px; color: #222; }
.cb-done-box p  { color: #555; }

/* ── ローディング・エラー ── */
.cb-spinner-wrap { text-align: center; padding: 32px; color: #888; }
.cb-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top-color: #27ae60;
    border-radius: 50%;
    animation: cb-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes cb-spin { to { transform: rotate(360deg); } }
.cb-msg-error {
    color: #d0021b;
    background: #fff0f0;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    margin-top: 8px;
}

/* ── セクション区切り ── */
.cb-section-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 32px 0 12px;
}

/* ── セクション全幅化（SWELLのalignfull手法を流用） ── */
.cb-testimonials,
.cb-form-band,
.cb-flow,
.cb-pain,
.cb-bottom-cta {
    left: calc(50% - 50vw + var(--swl-scrollbar_width, 0px) / 2);
    position: relative;
    width: calc(100vw - var(--swl-scrollbar_width, 0px));
}

/* ── 実績ストリップ（画像） ── */
.cb-stats {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}
.cb-stats-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── セクション共通インナー ── */
.cb-section-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* ── フォームバンド（グレー帯） ── */
.cb-form-band {
    background: #efefef;
    padding: 40px 24px;
}

/* ── お客様の声 ── */
.cb-testimonials {
    padding: 40px 24px;
    margin: 0;
}
.cb-testi-heading {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-align: center;
    margin: 0 0 40px !important;
    letter-spacing: 0.02em;
}
.cb-testi-heading::after,
.cb-form-header h2::after,
.cb-flow-heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: #27ae60;
    border-radius: 2px;
    margin: 14px auto 0;
}
.cb-testi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.cb-testi-card {
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 36px 24px 24px;
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,.09);
}
.cb-testi-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 48px;
    color: #b8ead0;
    font-family: Georgia, serif;
    line-height: 1;
}
.cb-testi-text {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
    margin: 0 0 14px;
}
.cb-testi-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.cb-testi-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.cb-testi-author {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.cb-testi-author span {
    font-weight: normal;
    color: #999;
    margin-left: 6px;
}

/* ── ご依頼から完了までの流れ ── */
.cb-flow {
    padding: 40px 24px;
    margin: 0;
}
.cb-flow-heading {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-align: center;
    margin: 0 0 40px !important;
    letter-spacing: 0.02em;
}
.cb-flow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cb-flow-steps li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    padding-bottom: 32px;
}
.cb-flow-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}
.cb-flow-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cb-flow-body {
    padding-top: 10px;
}
.cb-flow-title {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin: 0 0 6px;
}
.cb-flow-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.75;
    margin: 0;
}

/* ── 悩み訴求セクション ── */
.cb-pain {
    padding: 48px 24px;
    background: #fff;
}
.cb-pain .cb-section-inner {
    text-align: center;
}
.cb-pain-heading {
    text-align: center !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #222;
    margin: 0 0 36px !important;
    letter-spacing: 0.03em;
}
.cb-pain-heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: #27ae60;
    border-radius: 2px;
    margin: 14px auto 0;
}
.cb-pain .cb-section-inner {
    max-width: 900px;
}
.cb-pain-img {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
}
.cb-pain-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 860px !important;
    text-align: left;
}
.cb-pain-list li {
    list-style: none !important;
    padding: 16px 20px 16px 52px !important;
    margin-bottom: 10px !important;
    background: #f5f5f5 !important;
    border-radius: 8px !important;
    position: relative !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
    color: #333 !important;
}
.cb-pain-list li::before {
    content: '✕' !important;
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #e74c3c !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* ── 下部CTA ── */
.cb-bottom-cta {
    background: #27ae60;
    padding: 88px 24px;
    text-align: center;
}
.cb-bottom-cta-eyebrow {
    font-size: 0.85rem;
    color: rgba(255,255,255,.75);
    letter-spacing: 0.12em;
    margin: 0 0 10px;
}
.cb-bottom-cta-heading {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 14px !important;
}
.cb-bottom-cta-heading::after { display: none !important; }
.cb-bottom-cta-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    margin: 0 0 36px;
}
.cb-bottom-cta-btn {
    background: #fff !important;
    color: #27ae60 !important;
    padding: 16px 44px !important;
    font-size: 1rem !important;
    border-radius: 6px !important;
    display: inline-flex !important;
}
.cb-bottom-cta-btn:hover {
    background: #f0fff4 !important;
}

/* ── 確認テーブル ── */
.cb-confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
}
.cb-confirm-table th,
.cb-confirm-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}
.cb-confirm-table th {
    width: 110px;
    color: #888;
    font-weight: normal;
    white-space: nowrap;
}
.cb-confirm-table td {
    color: #222;
}

/* ── 確認後の流れ ── */
.cb-next-flow {
    margin-top: 28px;
    padding: 22px 24px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #27ae60;
}
.cb-next-flow-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #555 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase;
    margin: 0 0 16px !important;
}
.cb-next-flow-paths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cb-next-flow-path-head {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #27ae60 !important;
    margin: 0 0 8px !important;
}
.cb-next-flow-path ol {
    margin: 0 !important;
    padding-left: 18px !important;
    font-size: 13px !important;
    line-height: 1.85 !important;
    color: #444 !important;
}
.cb-next-flow-path ol li {
    margin-bottom: 2px !important;
}

/* ── PC限定：scroll-ctaボタン大きめ ── */
@media (min-width: 601px) {
    .cb-scroll-cta .cb-btn-primary {
        padding: 18px 60px;
        font-size: 17px;
        min-width: 320px;
    }
}

/* ── レスポンシブ ── */
@media (max-width: 600px) {
    /* ヒーロー */
    .cb-hero { margin-bottom: 0; }

    /* スクロールCTAボタン */
    .cb-scroll-cta .cb-btn-primary { width: 100%; max-width: 320px; }

    /* 悩み訴求：左右余白なし・画像フルワイド */
    .cb-pain { padding: 36px 0; }
    .cb-pain-img { border-radius: 0; }

    /* お客様の声 */
    .cb-testimonials { padding: 48px 20px; }
    .cb-testi-grid { grid-template-columns: 1fr; }
    .cb-testi-card { padding: 32px 18px 20px; }
    .cb-testi-heading { font-size: 1.4rem !important; }

    /* フォームバンド */
    .cb-form-band { padding: 48px 16px; }
    #cb-booking-wrapper { padding: 24px 20px 40px; }

    /* カテゴリ・アクション */
    .cb-category-grid { grid-template-columns: 1fr; }
    .cb-actions { flex-direction: column-reverse; align-items: stretch; }
    .cb-btn-primary { justify-content: center; }

    /* 流れセクション */
    .cb-flow { padding: 48px 20px; }
    .cb-flow-heading { font-size: 1.4rem !important; }

    /* 下部CTA */
    .cb-bottom-cta { padding: 60px 20px; }
    .cb-bottom-cta-heading { font-size: 1.5rem !important; }

    /* 確認後の流れ */
    .cb-next-flow-paths { grid-template-columns: 1fr; }

    /* その他 */
    .cb-pain-list { grid-template-columns: 1fr !important; }
}
