/* ========================================
   RESET & BASE
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:root {
  --bg-dark: #0b0b0b;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-soft: #f6f6f4;
  --surface-muted: #efefec;
  --text: #141414;
  --text-soft: #6f655c;
  --text-faint: #8a8076;
  --line: rgba(20, 20, 20, 0.08);
  --line-strong: rgba(20, 20, 20, 0.16);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.18);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --accent: #111111;
  --white: #ffffff;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-dark);
  color: var(--text);
  font-family: "Inter", "Noto Serif JP", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  border: 1px solid transparent;
  outline: none;
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(17, 17, 17, 0.16);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.04);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

img {
  max-width: 100%;
  display: block;
}

/* ========================================
   APP / BACKGROUND
======================================== */
.app-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.scene-bg__image {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1600&q=80")
    center center / cover no-repeat;
  transform: scale(1.06);
  filter: blur(10px);
}

.scene-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 8, 8, 0.42), rgba(8, 8, 8, 0.66)),
    rgba(0, 0, 0, 0.16);
}

.scene-bg__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.04), transparent 36%);
}

/* ========================================
   LANGUAGE SWITCH
======================================== */
.lang-switch {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 30;
}

.lang-switch__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
}

.lang-switch__arrow {
  font-size: 11px;
  color: var(--text-soft);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 4px;
}

.lang-switch__item {
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
}

.lang-switch__item:hover,
.lang-switch__item.is-active {
  background: var(--surface-soft);
}

/* ========================================
   MAIN LAYOUT
======================================== */
.flowless-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 42px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-layer-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-header {
  width: 100%;
  max-width: 760px;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 16px;
}

.hero-header__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  opacity: 0.74;
}

.hero-header__title {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
  font-weight: 600;
}

.hero-header__lead {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.78;
}

.flow-progress {
  width: 100%;
  max-width: 300px;
  margin: 10px auto 22px;
}

.flow-progress__track {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.flow-progress__bar {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.92);
  transition: width 0.28s ease;
}

.flow-progress__labels {
  margin-top: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 500;
}

/* ========================================
   FLOATING PANEL
======================================== */
.floating-panel {
  width: 100%;
  max-width: 520px;
  animation: fadeInUp 0.42s ease;
}

.floating-panel__inner {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.floating-panel__inner--wide {
  max-width: 680px;
}

.floating-panel__inner--medium {
  max-width: 560px;
}

.floating-panel__kicker {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.floating-panel__title {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 600;
}

.floating-panel__note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
}

.floating-panel__actions {
  margin-top: 22px;
}

/* ========================================
   INTRO STACK / INPUT UI
======================================== */
.intro-stack {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.choice-field {
  display: block;
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  text-align: left;
  transition: transform 0.18s ease, background 0.18s ease;
}

.choice-field:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #f1f1ee;
}

.choice-field:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.choice-field__label {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.choice-field__value {
  display: block;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
}

.choice-group {
  display: grid;
  gap: 12px;
}

.choice-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.choice-group__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ========================================
   CHIPS
======================================== */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.chip-btn:hover {
  transform: translateY(-1px);
  background: #e8e8e5;
}

.chip-btn.is-selected {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.16);
}

/* ========================================
   BUTTONS
======================================== */
.primary-btn {
  width: 100%;
  min-height: 62px;
  padding: 0 20px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(17, 17, 17, 0.24);
}

.primary-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.text-btn {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.text-btn:hover {
  color: var(--text);
}

.ghost-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.sub-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.sub-actions--center {
  justify-content: center;
}

/* ========================================
   MINI SUMMARY
======================================== */
.mini-summary {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.mini-summary__item {
  display: grid;
  gap: 6px;
}

.mini-summary__label {
  font-size: 12px;
  color: #6b6158;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.mini-summary__value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

/* ========================================
   SUGGESTION CARDS
======================================== */
.suggestion-grid {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.suggestion-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.suggestion-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.suggestion-card__image {
  width: 100%;
  height: 182px;
  background-size: cover;
  background-position: center;
}

.suggestion-card__body {
  padding: 18px;
}

.suggestion-card__title {
  font-size: 20px;
  line-height: 1.45;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
}

.suggestion-card__meta {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #6b6158;
  font-weight: 500;
}

.suggestion-card__reason {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.75;
  color: #5f564d;
  font-weight: 500;
}
.suggestion-card {
  position: relative;
}

.suggestion-card--primary {
  transform: scale(1.015);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
}

.suggestion-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}
.suggestion-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.75);
  color: #fff;

  backdrop-filter: blur(6px);
  font-weight: 600;
}
.suggestion-card--popular {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(17, 17, 17, 0.08);
}
.suggestion-card--popular .suggestion-card__image {
  filter: saturate(1.03) contrast(1.02);
}
@media (max-width: 640px) {
  .suggestion-card--primary {
    transform: none;
  }

  .suggestion-card__badge {
    top: 12px;
    left: 12px;
    min-height: 26px;
    padding: 0 10px;
    font-size: 11px;
  }
}
/* ========================================
   SELECTED PLAN
======================================== */
.selected-plan-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
}

/* ========================================
   CONFIRM / COMPLETE
======================================== */
.confirm-card,
.complete-card {
  margin-top: 18px;
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.confirm-list {
  margin: 0;
  padding: 0;
}

.confirm-list__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.confirm-list__row:last-child {
  border-bottom: none;
}

.confirm-list__row dt {
  font-size: 14px;
  color: var(--text-soft);
}

.confirm-list__row dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.confirm-list--compact .confirm-list__row {
  padding: 10px 0;
}

.form-stack {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.form-badge--required {
  background: rgba(17, 17, 17, 0.08);
  color: var(--text);
}

.form-badge--optional {
  background: rgba(17, 17, 17, 0.04);
  color: var(--text-soft);
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  accent-color: #111;
}

.system-message,
.system-inline {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
}

.system-message[data-state="error"] {
  color: #9a2d2d;
}

.system-message[data-state="success"] {
  color: #1a6a42;
}

/* ========================================
   MANUAL PANEL
======================================== */
.manual-panel {
  width: 100%;
  max-width: 980px;
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}

.manual-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.manual-panel__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.manual-panel__title {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 600;
}

.manual-panel__note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.manual-panel__close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 18px;
  flex: 0 0 auto;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.manual-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.manual-card--submit {
  grid-column: 1 / -1;
}

.manual-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.manual-card__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.manual-course-list,
.manual-time-list {
  display: grid;
  gap: 10px;
}

.selected-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

/* ========================================
   MODALS
======================================== */
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}

.modal-shell__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.52);
  backdrop-filter: blur(4px);
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: min(82vh, 760px);
  overflow: auto;
  background: var(--surface-strong);
  border-radius: 26px;
  padding: 24px 20px 18px;
  box-shadow: var(--shadow-lg);
}

.modal-sheet--small {
  max-width: 420px;
}

.modal-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-sheet__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.modal-sheet__title {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
}

.modal-sheet__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 18px;
  flex: 0 0 auto;
}

.selected-date-line {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 13px;
}

.selected-date-line strong {
  color: var(--text);
  font-size: 16px;
}

/* ========================================
   CALENDAR
======================================== */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.calendar-nav strong {
  min-width: 128px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 20px;
  display: grid;
  place-items: center;
}

.calendar-grid-wrap {
  margin-top: 4px;
}

.calendar-grid,
.calendar-grid--minimal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekday {
  display: none;
}

.calendar-cell,
.calendar-day {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 42px;
  border-radius: 18px;
  background: #f7f7f5;
  color: var(--text);
  border: 1px solid transparent;
  display: grid;
  place-items: center;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.calendar-cell:hover,
.calendar-day:hover {
  transform: translateY(-1px);
  background: #f1f1ee;
}

.calendar-cell__num,
.calendar-day__num {
  font-size: 16px;
  font-weight: 500;
}

.calendar-cell.is-empty,
.calendar-day.is-empty {
  visibility: hidden;
}

.calendar-cell.is-disabled,
.calendar-day.is-disabled {
  background: transparent;
  color: rgba(20, 20, 20, 0.2);
  border-color: transparent;
}

.calendar-cell.is-closed,
.calendar-day.is-closed {
  background: #f1f1ef;
  color: rgba(20, 20, 20, 0.26);
}

.calendar-cell.is-available,
.calendar-day.is-available {
  background: #fafaf8;
  border-color: rgba(20, 20, 20, 0.05);
}

.calendar-cell.is-available::after,
.calendar-day.is-available::after {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.24);
}

.calendar-cell.is-selected,
.calendar-day.is-selected {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(17, 17, 17, 0.18);
}

.calendar-cell.is-selected::after,
.calendar-day.is-selected::after {
  background: rgba(255, 255, 255, 0.72);
}

/* ========================================
   TIME CHOICES
======================================== */
.time-choice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.time-choice-list button {
  min-height: 48px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.16s ease;
}

.time-choice-list button:hover {
  background: #f0f0ed;
}

.time-choice-list button.is-selected {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.16);
}

/* ========================================
   ANIMATION
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 900px) {
  .manual-grid {
    grid-template-columns: 1fr;
  }

  .manual-card--submit {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .flowless-main {
    padding: 84px 12px 28px;
  }

  .hero-header {
    margin-bottom: 12px;
  }

  .hero-header__eyebrow {
    font-size: 11px;
  }

  .hero-header__title {
    font-size: 26px;
  }

  .hero-header__lead {
    font-size: 13px;
    line-height: 1.6;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .flow-progress {
    max-width: 220px;
    margin-bottom: 18px;
  }

  .floating-panel__inner,
  .floating-panel__inner--wide,
  .floating-panel__inner--medium {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .floating-panel__title {
    font-size: 17px;
  }

  .floating-panel__note {
    font-size: 13px;
    line-height: 1.75;
  }

  .intro-stack {
    margin-top: 22px;
    gap: 16px;
  }

  .choice-field {
    padding: 16px 18px;
    border-radius: 16px;
  }

  .choice-field__value {
    font-size: 15px;
  }

  .chip-list {
    gap: 8px;
  }

  .chip-btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .primary-btn {
    min-height: 58px;
    border-radius: 16px;
    font-size: 15px;
  }

  .mini-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .suggestion-card__image {
    height: 160px;
  }

  .suggestion-card__title {
    font-size: 18px;
  }

  .confirm-card,
  .complete-card,
  .selected-plan-card {
    padding: 18px;
  }

  .confirm-list__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .confirm-list__row dd {
    text-align: left;
  }

  .manual-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .modal-shell {
    align-items: flex-end;
    padding: 10px;
  }

  .modal-sheet {
    max-width: none;
    width: 100%;
    max-height: 78vh;
    border-radius: 24px 24px 20px 20px;
    padding: 22px 16px 16px;
  }

  .modal-sheet__title {
    font-size: 17px;
  }

  .calendar-nav {
    gap: 10px;
    margin-bottom: 14px;
  }

  .calendar-nav strong {
    min-width: 120px;
    font-size: 17px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .calendar-grid,
  .calendar-grid--minimal {
    gap: 8px;
  }

  .calendar-cell,
  .calendar-day {
    min-height: 40px;
    border-radius: 16px;
  }

  .calendar-cell__num,
  .calendar-day__num {
    font-size: 15px;
  }

  .time-choice-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-switch {
    top: 16px;
    right: 16px;
  }

  .lang-switch__menu {
    min-width: 156px;
  }
}
.modal {
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========================================
   COMPLETE PANEL POLISH
======================================== */
.complete-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  font-size: 24px;
  color: #1f1b18;
}

.complete-title {
  text-align: center;
  margin-bottom: 12px;
}

.complete-note {
  text-align: center;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.confirm-list--complete .confirm-list__row {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.confirm-list--complete .confirm-list__row:last-child {
  border-bottom: none;
}

.confirm-list--complete dt {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #8a8178;
}

.confirm-list--complete dd {
  font-size: 17px;
  font-weight: 600;
  color: #1f1b18;
}

.complete-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.chip-btn.is-full {
  opacity: 0.45;
  cursor: not-allowed;
}

.chip-btn__status {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.course-detail-btn {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

.course-detail-btn:hover {
  color: #000;
}
/* ===== モーダル全体 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 非表示 */
.modal[hidden] {
  display: none;
}

/* 背景ぼかし */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

/* 中身 */
.modal-panel {
  position: relative;
  z-index: 2;
  width: min(92%, 520px);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

/* 画像 */
.course-detail-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 16px;
}

/* CTA */
.course-detail-cta {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: #000;
  color: #fff;
  border-radius: 999px;
  border: none;
  font-size: 14px;
}
.course-detail-note {
  white-space: pre-line;
}

.course-detail-note strong {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}