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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: #f0f4f0;
  color: #2c3e50;
  min-height: 100vh;
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 20px;
  text-align: center;
}

.screen.active {
  display: flex;
}

/* ホーム */
.home-icon {
  width: 110px;
  height: 110px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

h1 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1a5c2a;
}

.subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 36px;
}

h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  align-self: flex-start;
  color: #1a5c2a;
}

/* ボタン */
.btn-primary {
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  max-width: 340px;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-primary:active { background: #1e8449; }

.btn-primary.large {
  padding: 18px 28px;
  font-size: 19px;
}

/* 撮影ボタンの黒猫 */
.btn-cat {
  width: 52px;
  height: 38px;
  flex-shrink: 0;
}

.btn-secondary {
  background: white;
  color: #555;
  border: 1.5px solid #ccc;
  border-radius: 14px;
  padding: 16px 24px;
  font-size: 16px;
  cursor: pointer;
  flex: 1;
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:active { background: #f5f5f5; }

/* レビュー画面 */
#preview-img {
  width: 100%;
  max-width: 360px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

form {
  width: 100%;
  max-width: 400px;
}

.field {
  margin-bottom: 16px;
  text-align: left;
}

.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: bold;
  color: #555;
  margin-bottom: 6px;
}

/* ラベルの黒猫アイコン */
.label-cat {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.field input,
.field select {
  width: 100%;
  padding: 14px 12px;
  font-size: 17px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  background: white;
  color: #2c3e50;
  appearance: auto;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #27ae60;
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* ローディング猫（回転） */
.cat-spin {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  animation: spin 1.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes spin {
  0%   { transform: rotate(-15deg); }
  25%  { transform: rotate(15deg); }
  50%  { transform: rotate(-10deg); }
  75%  { transform: rotate(10deg); }
  100% { transform: rotate(-15deg); }
}

.loading-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.loading-sub {
  font-size: 14px;
  color: #888;
}

/* 完了・エラー猫 */
.cat-result {
  width: 120px;
  height: 110px;
  margin-bottom: 16px;
}

.success-detail {
  background: white;
  border-radius: 12px;
  padding: 16px 24px;
  text-align: left;
  width: 100%;
  max-width: 340px;
  font-size: 15px;
  line-height: 2.2;
  color: #444;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.error-msg {
  color: #c0392b;
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 320px;
  line-height: 1.6;
  background: #fdf0ef;
  padding: 12px 16px;
  border-radius: 8px;
}
