/* 和風ベージュ＋緑（既存LIFFと統一テイスト） */
:root {
  --bg: #f5efe4;
  --accent: #8fa984;
  --accent-dark: #6b8e4e;
  --accent-light: #c8d5b9;
  --text: #3a3a3a;
  --text-light: #757575;
  --white: #ffffff;
  --border: #e5dfd1;
  --premium: #faf5eb;
}

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

body {
  font-family: -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding: 16px;
}

#app {
  max-width: 480px;
  margin: 0 auto;
}

.screen {
  animation: fadeIn 0.3s ease;
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── ヘッダー ─── */
.header {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px 0;
}

.header h1 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 4px;
}

.subtitle {
  font-size: 13px;
  color: var(--accent-dark);
}

/* ─── カード ─── */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.card h2 {
  font-size: 17px;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

/* ─── 案内リスト ─── */
.info-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  color: var(--text);
}

.info-list li:last-child {
  border-bottom: none;
}

.note {
  font-size: 13px;
  color: var(--text-light);
  margin: 12px 0 20px;
  text-align: center;
  padding: 8px;
  background: var(--premium);
  border-radius: 8px;
}

/* ─── ボタン ─── */
.btn-primary, .btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity 0.2s, transform 0.1s;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-dark);
  color: var(--white);
}

.btn-primary:active {
  transform: scale(0.98);
  opacity: 0.85;
}

.btn-primary:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
}

.btn-secondary:active {
  background: var(--accent-light);
}

/* ─── 日時選択 ─── */
#slots-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.day-group {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.day-group h3 {
  font-size: 16px;
  color: var(--accent-dark);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.time-btn {
  padding: 10px 4px;
  background: var(--bg);
  border: 1px solid var(--accent-light);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  transition: all 0.2s;
}

.time-btn:active {
  background: var(--accent);
  color: var(--white);
  transform: scale(0.95);
}

.empty-slots {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 14px;
}

/* ─── フォーム ─── */
.field {
  display: block;
  margin-bottom: 16px;
}

.field > span {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: bold;
}

.field em {
  font-style: normal;
  color: #c25656;
  font-size: 11px;
  margin-left: 4px;
  font-weight: normal;
}

.field input, .field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

/* ─── 完了画面 ─── */
.done-message {
  font-size: 18px;
  text-align: center;
  color: var(--accent-dark);
  font-weight: bold;
  margin-bottom: 16px;
}

.confirm-box {
  background: var(--premium);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.confirm-box p {
  font-size: 15px;
  padding: 4px 0;
}

/* ─── ローディング ─── */
#loading {
  text-align: center;
  padding: 60px 0;
}

.loader {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--accent-light);
  border-top-color: var(--accent-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
