@font-face {
  font-family: 'MOBO';
  src: url('fonts/MOBO-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MOBO';
  src: url('fonts/MOBO-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink:        #f0a0cc;
  --pink-light:  #fce8f3;
  --blue:        #a8c4f0;
  --blue-light:  #e8f0fc;
  --purple:      #8b7cd8;
  --purple-dark: #6b5cb8;
  --grad:        linear-gradient(135deg, #f0a0cc 0%, #8b7cd8 50%, #a8c4f0 100%);
  --grad-btn:    linear-gradient(135deg, #e890c0 0%, #7b6cc8 50%, #98b4e0 100%);
  --bg:          #faf9ff;
  --text:        #1a1a2e;
  --text-sub:    #7a7a9a;
  --border:      #ede8f8;
  --white:       #ffffff;
}

body {
  font-family: 'MOBO', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

/* ヘッダー */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.page-header-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-logo img {
  height: 28px;
  width: auto;
}

.copy-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.copy-btn:hover {
  background: var(--blue-light);
  border-color: var(--blue);
}

/* コンテンツ */
.container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* スケジュールオーナー */
.schedule-owner {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

/* タグライン */
.tagline {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

/* コントロール */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 8px;
}

.label {
  font-size: 12px;
  color: var(--text-sub);
  padding: 0 4px;
}

.btn {
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 5px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-sub);
  transition: all 0.15s;
  font-weight: 400;
}

.btn.active {
  background: var(--grad);
  color: var(--white);
  font-weight: 600;
}

.btn:not(.active):hover {
  background: var(--pink-light);
  color: var(--text);
}

/* 空き時間カード */
.day-block {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 16px 20px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(139, 124, 216, 0.06);
}

.day-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-count {
  background: var(--pink-light);
  color: var(--purple);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 400;
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.slot {
  background: var(--bg);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  font-family: inherit;
}

.slot:hover {
  background: var(--grad);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(139, 124, 216, 0.3);
  transform: translateY(-1px);
}

.sat { color: #5b8dd9; }

.empty, .error, .loading {
  font-size: 14px;
  padding: 1.5rem 0;
  color: var(--text-sub);
}

.error { color: #c0392b; }

/* モーダル */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 16px 48px rgba(139, 124, 216, 0.2);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s;
}

.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
}

.modal-top {
  background: var(--grad);
  padding: 20px 24px 18px;
}

.modal-slot {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.modal-mode {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover { background: rgba(255,255,255,0.35); }

.modal-header {
  position: relative;
}

.modal-body {
  padding: 20px 24px 24px;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.form-input {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  background: var(--bg);
  color: var(--text);
}

.form-input:focus {
  border-color: var(--purple);
  background: var(--white);
}

.field-error {
  font-size: 12px;
  color: var(--purple);
  margin-top: 4px;
  min-height: 16px;
  display: block;
}

.form-input.input-error {
  border-color: var(--purple);
  background: #f8f5ff;
}

.booking-error {
  font-size: 13px;
  color: #c0392b;
  margin-bottom: 12px;
  min-height: 18px;
}

.submit-btn {
  width: 100%;
  background: var(--grad);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  letter-spacing: 0.03em;
}

.submit-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* フッター */
.site-footer {
  background: var(--grad);
  padding: 0 1.5rem;
}

.site-footer-inner {
  max-width: 680px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-copy a {
  color: var(--white);
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* コピーボタン */
.copy-wrap {
  padding: 1rem 0 0.5rem;
  text-align: center;
}

.copy-all-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-sub);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.copy-all-btn:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--text);
}

.footer-cta {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  transition: background 0.15s;
  white-space: nowrap;
}

.footer-cta:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* 使い方ボタン（固定） */
.howto-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 64px;
  height: 64px;
  z-index: 50;
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.howto-fab img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(139, 124, 216, 0.35);
}

.howto-fab:hover {
  transform: scale(1.08);
}

/* トースト */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--grad);
  color: var(--white);
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-family: inherit;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 200;
  transform: translateY(-8px);
  box-shadow: 0 4px 16px rgba(139, 124, 216, 0.35);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
