/* ワイズカウンセリング 予約システム SWELL対応フロントエンドCSS（.wcb-root完全スコープ・全要素左寄せ） */
.wcb-root,
.wcb-root * {
  box-sizing: border-box;
  text-align: left !important;
}

.wcb-root {
  max-width: 680px;
  margin: 0 auto;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Meiryo", sans-serif;
  color: #2b343b;
  line-height: 1.75;
}

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

.wcb-card {
  background: #ffffff;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  padding: 20px 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.wcb-swell-h1 {
  margin: 0 0 12px 0 !important;
  padding: 8px 0 8px 14px !important;
  border-left: 5px solid #2b5f75 !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  background: linear-gradient(90deg, #eef5f8 0%, transparent 100%) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #1f3a47 !important;
  line-height: 1.5 !important;
}

.wcb-swell-h2 {
  margin: 0 0 10px 0 !important;
  padding: 6px 0 6px 12px !important;
  border-left: 4px solid #2b5f75 !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  background: linear-gradient(90deg, #f2f7f9 0%, transparent 100%) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1f3a47 !important;
  line-height: 1.5 !important;
}

.wcb-lead {
  font-size: 0.9rem;
  color: #334155;
  margin: 0 0 14px 0;
}

.wcb-text {
  font-size: 0.85rem;
  color: #334155;
  margin: 0 0 6px 0;
}

.wcb-text:last-child {
  margin-bottom: 0;
}

.wcb-small-muted {
  font-size: 0.8rem;
  color: #475569;
  margin: 0 0 10px 0;
}

.wcb-info-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.wcb-info-box {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px;
}

.wcb-info-online {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.wcb-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.wcb-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 5px;
  line-height: 1.5;
}

.wcb-badge-navy {
  background: #2b5f75;
  color: #ffffff;
}

.wcb-badge-teal {
  background: #0f766e;
  color: #ffffff;
}

.wcb-badge-dark {
  background: #334155;
  color: #ffffff;
}

.wcb-info-subhead {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.wcb-sub-callout {
  margin: 8px 0 0 0;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
}

.wcb-sub-callout-teal {
  border-color: #99f6e4;
  color: #134e4a;
}

.wcb-left-border-note {
  background: #f8fafc;
  border-left: 4px solid #2b5f75;
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
}

.wcb-note-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

/* リピート引き継ぎバナー・端末記憶ボックス・任意オンライン希望ボックス */
.wcb-prefill-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  margin-bottom: 14px;
}

.wcb-remember-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.wcb-optional-online-box {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.wcb-optional-online-box.is-checked {
  border: 2px solid #0f766e;
  background: #f0fdfa;
}

.wcb-optional-online-sub {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.77rem;
  color: #475569;
  font-weight: 400;
}

.wcb-remember-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
  cursor: pointer;
}

.wcb-remember-label input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
}

/* ステップバー */
.wcb-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.wcb-step {
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
}

.wcb-step.is-active {
  background: #2b5f75;
  color: #ffffff;
}

.wcb-step.is-done {
  background: #3d8b7a;
  color: #ffffff;
}

.wcb-block {
  margin-bottom: 22px;
}

.wcb-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wcb-choice-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wcb-choice-btn:hover {
  background: #f8fafc;
}

.wcb-choice-btn.is-selected {
  border: 2px solid #2b5f75;
  background: #f4f9fb;
}

.wcb-choice-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.wcb-choice-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.wcb-choice-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #1e293b;
}

.wcb-choice-pill-teal {
  background: #ccfbf1;
  color: #115e59;
}

.wcb-choice-desc {
  font-size: 0.8rem;
  color: #475569;
  margin: 0;
}

.wcb-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
}

.wcb-choice-btn.is-selected .wcb-radio-dot {
  border-color: #2b5f75;
  background: #2b5f75;
}

.wcb-choice-btn.is-selected .wcb-radio-dot::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 形式絞り込みフィルタータブ */
.wcb-filter-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 520px) {
  .wcb-filter-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wcb-filter-btn {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wcb-filter-btn:hover {
  background: #f8fafc;
}

.wcb-filter-btn.is-active {
  border: 2px solid #2b5f75;
  background: #f4f9fb;
}

.wcb-filter-btn.is-active-teal {
  border: 2px solid #0f766e;
  background: #f0fdfa;
}

.wcb-filter-btn-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.wcb-filter-btn-sub {
  display: block;
  font-size: 0.72rem;
  color: #475569;
  margin-top: 2px;
}

/* 表示モード切替（1週間一覧 ⇄ 日別） */
.wcb-view-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 9px;
  margin-bottom: 10px;
}

.wcb-view-btn {
  padding: 8px 10px;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.wcb-view-btn.is-active {
  background: #2b5f75;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

/* 1週間まとめて一覧表示 */
.wcb-week-overview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wcb-week-day-card {
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #ffffff;
  padding: 11px 13px;
}

.wcb-week-day-card.is-empty-day {
  border-color: #e2e8f0;
  background: #f8fafc;
  padding: 8px 13px;
}

.wcb-week-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.wcb-week-day-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.wcb-week-slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.wcb-week-chip-btn {
  display: inline-flex;
  flex-direction: column;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1.5px solid #2b5f75;
  background: #f4f9fb;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.12s ease;
}

.wcb-week-chip-btn:hover,
.wcb-week-chip-btn.is-candidate-picked {
  background: #2b5f75;
  color: #ffffff;
}

.wcb-week-chip-btn.is-online-slot {
  border-color: #0f766e;
  background: #f0fdfa;
}

.wcb-week-chip-btn.is-online-slot:hover,
.wcb-week-chip-btn.is-online-slot.is-candidate-picked {
  background: #0f766e;
  color: #ffffff;
}

.wcb-week-chip-time {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
}

.wcb-week-chip-tag {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.88;
  margin-top: 1px;
}

.wcb-late-surcharge-pill {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  align-self: flex-start;
}

.wcb-week-chip-wait {
  display: inline-flex;
  flex-direction: column;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px dashed #94a3b8;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
}

.wcb-week-chip-wait:hover {
  border-color: #2b5f75;
  background: #f1f5f9;
  color: #0f172a;
}

.wcb-week-chip-wait .wcb-week-chip-time {
  color: #64748b;
  text-decoration: line-through;
}

.wcb-week-chip-closed {
  display: inline-flex;
  flex-direction: column;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
}

.wcb-week-chip-closed .wcb-week-chip-time {
  text-decoration: line-through;
}

/* 閲覧専用モード：候補日時コピーボックス */
.wcb-candidate-copy-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  border: 2px solid #2b5f75;
  background: #f4f9fb;
}

.wcb-candidate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* キャンセル待ち案内CTA＆ボタン・モーダル */
.wcb-waitlist-cta-box {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wcb-outline-btn {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1.5px solid #2b5f75;
  background: #ffffff;
  color: #2b5f75;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}

.wcb-outline-btn:hover {
  background: #f4f9fb;
}

.wcb-wait-row-btn {
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid #2b5f75;
  background: #ffffff;
  color: #2b5f75;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.wcb-wait-row-btn:hover {
  background: #f4f9fb;
}

.wcb-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.58);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.wcb-modal-card {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

/* 案内ボックス */
.wcb-notice-box {
  border-radius: 9px;
  padding: 12px 14px;
  margin-top: 10px;
}

.wcb-notice-blue {
  border: 1px solid #b8d0db;
  background: #f4f9fb;
}

.wcb-notice-gray {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.wcb-notice-teal {
  border: 1px solid #5eead4;
  background: #f0fdfa;
}

.wcb-notice-emerald {
  border: 2px solid #34d399;
  background: #ecfdf5;
}

.wcb-notice-amber {
  border: 1px solid #fde68a;
  background: #fffbeb;
}

/* 週切り替え・日付ボタン（目先2週間制限なし・週送り＆週選択対応） */
.wcb-week-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.wcb-week-pager {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}

.wcb-week-step-btn {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1f3a47;
  cursor: pointer;
  white-space: nowrap;
}

.wcb-week-step-btn:hover:not(:disabled) {
  border-color: #2b5f75;
  background: #f4f9fb;
}

.wcb-week-step-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wcb-week-select {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 2px solid #2b5f75;
  background: #f4f9fb;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}

.wcb-week-btn {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.wcb-week-btn.is-active {
  border: 2px solid #2b5f75;
  background: #f4f9fb;
  color: #0f172a;
}

.wcb-date-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 520px) {
  .wcb-date-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wcb-date-btn {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
}

.wcb-date-btn.is-active {
  border: 2px solid #2b5f75;
  background: #f4f9fb;
}

.wcb-date-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}

.wcb-date-num {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.wcb-dow-sun {
  font-size: 0.76rem;
  font-weight: 700;
  color: #e11d48;
}

.wcb-dow-sat {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0369a1;
}

.wcb-dow-wk {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
}

.wcb-date-count {
  font-size: 0.74rem;
  margin-top: 4px;
  font-weight: 600;
  color: #0f766e;
}

.wcb-date-count.is-zero {
  color: #94a3b8;
}

/* 空き時間スロット一覧（日別） */
.wcb-slot-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.wcb-slot-heading {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.wcb-slot-duration {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2b5f75;
}

.wcb-slot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wcb-slot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #ffffff;
}

.wcb-slot-row.is-closed {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.wcb-slot-time {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.wcb-slot-row.is-closed .wcb-slot-time {
  color: #94a3b8;
  text-decoration: line-through;
}

.wcb-slot-status {
  font-size: 0.76rem;
  color: #0f766e;
  margin: 2px 0 0 0;
}

.wcb-slot-row.is-closed .wcb-slot-status {
  color: #64748b;
}

.wcb-slot-right-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wcb-choose-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #2b5f75;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.wcb-choose-btn:hover {
  background: #224c5e;
}

.wcb-choose-btn.is-candidate-picked {
  background: #0f766e;
}

.wcb-closed-pill {
  padding: 6px 10px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* STEP 2 フォーム */
.wcb-selected-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  margin-bottom: 14px;
}

.wcb-selected-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f766e;
  margin: 0 0 2px 0;
}

.wcb-selected-main {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.wcb-selected-sub {
  font-size: 0.78rem;
  color: #475569;
  margin: 2px 0 0 0;
}

.wcb-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f766e;
  text-decoration: underline;
  cursor: pointer;
  flex-shrink: 0;
}

.wcb-field {
  margin-top: 14px;
}

.wcb-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
}

.wcb-req {
  color: #e11d48;
}

.wcb-input,
.wcb-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #0f172a;
  background: #ffffff;
}

.wcb-input:focus,
.wcb-textarea:focus {
  outline: none;
  border-color: #2b5f75;
}

.wcb-caution-box {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
  font-size: 0.78rem;
  margin: 6px 0 8px 0;
}

.wcb-error-box {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
  font-size: 0.82rem;
  margin-top: 12px;
}

.wcb-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.wcb-primary-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: #2b5f75;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.wcb-primary-btn:hover {
  background: #224c5e;
}

.wcb-primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wcb-btn-inline {
  width: auto;
  display: inline-block;
  margin-top: 0;
  font-size: 0.82rem;
  padding: 9px 14px;
}

.wcb-secondary-btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.wcb-danger-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid #fda4af;
  background: #fff1f2;
  color: #be123c;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.wcb-outline-link {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid #0f766e;
  background: #ffffff;
  color: #0f766e !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
}

.wcb-done-banner {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  border-radius: 10px;
  padding: 14px 16px;
}

.wcb-done-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: #115e59;
  margin: 0 0 4px 0;
}

.wcb-done-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.wcb-done-meta {
  font-size: 0.82rem;
  color: #334155;
  margin: 4px 0 0 0;
}
