/* =====================
   鈴木自工 車絵本 UIモック
   Mobile First Design
   ===================== */

:root {
  --primary: #4A90A4;
  --primary-dark: #3A7A94;
  --accent: #F5A623;
  --bg-warm: #FFF9F0;
  --bg-card: #FFFFFF;
  --text-main: #333333;
  --text-sub: #666666;
  --text-light: #999999;
  --border: #E0E0E0;
  --success: #4CAF50;
  --error: #E53935;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: var(--bg-warm);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

/* =====================
   Layout
   ===================== */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
}

.page {
  padding-bottom: 100px;
}

/* =====================
   Header
   ===================== */
.header {
  text-align: center;
  padding: 20px 0;
  margin-bottom: 20px;
}

.header__logo {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.header__title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
}

/* =====================
   Progress Steps
   ===================== */
.progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.progress__step {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.progress__step.active {
  background: var(--primary);
}

.progress__step.done {
  background: var(--success);
}

/* =====================
   Cards
   ===================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.card__title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card__subtitle {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

/* =====================
   Form Elements
   ===================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-label .required {
  color: var(--error);
  font-size: 12px;
  margin-left: 4px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-hint {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 6px;
}

/* =====================
   Selection Cards (for choices)
   ===================== */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.selection-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.selection-card:hover {
  border-color: var(--primary);
}

.selection-card.selected {
  border-color: var(--primary);
  background: #E8F4F8;
}

.selection-card__icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.selection-card__label {
  font-size: 14px;
  font-weight: bold;
}

/* =====================
   Color Picker
   ===================== */
.color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.color-option {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.3);
}

/* =====================
   Buttons
   ===================== */
.btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: #E8F4F8;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-disabled {
  background: var(--border);
  color: var(--text-light);
  cursor: not-allowed;
}

/* =====================
   Fixed Bottom Button
   ===================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav .container {
  min-height: auto;
  padding: 0;
}

/* =====================
   Preview Grid
   ===================== */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-thumb {
  aspect-ratio: 1;
  background: #ddd;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.preview-thumb:hover {
  transform: scale(1.05);
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-thumb__page {
  font-size: 10px;
  text-align: center;
  padding: 4px;
  background: rgba(0,0,0,0.5);
  color: #fff;
}

/* =====================
   Hero Section (Top Page)
   ===================== */
.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero__image {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #E8F4F8 0%, #FFF9F0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.hero__title {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 12px;
}

.hero__subtitle {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 32px;
}

/* =====================
   Feature List
   ===================== */
.feature-list {
  list-style: none;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list__icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.feature-list__text {
  font-size: 14px;
}

/* =====================
   Utilities
   ===================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* =====================
   Responsive (Tablet+)
   ===================== */
@media (min-width: 768px) {
  .container {
    max-width: 600px;
  }

  .selection-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .color-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .preview-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
