/**
 * base.css
 * デザイントークン（変数）とリセット、全体レイアウトの基盤。
 * メインカラー: オレンジ / 背景: 白・ニュートラル / モバイルファースト。
 */

:root {
  /* --- ブランドカラー（オレンジ基調） --- */
  --color-orange: #f58a1f;
  --color-orange-dark: #d96f08;
  --color-orange-soft: #fff3e5;
  --color-orange-border: #f2cfab;

  /* --- ニュートラル / 背景 --- */
  --color-bg: #fefefe;
  --color-card: #ffffff;
  --color-text: #212121;
  --color-muted: #6d6d6d;
  --color-line: #ececec;

  /* --- ステータスカラー --- */
  --color-green: #2f8f57;
  --color-green-soft: #ebf7f0;
  --color-amber: #cb7a15;
  --color-amber-soft: #fff5ea;

  --shadow-card: 0 14px 40px rgba(20, 20, 20, 0.05);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- アプリ全体レイアウト --- */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 20px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-mark {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-orange-dark);
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.06em;
}

.app-main {
  flex: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.app-footer {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 28px;
  text-align: center;
  font-size: 11px;
  color: var(--color-muted);
}

/* --- 画面切り替え --- */
.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: fadeUp 0.28s ease;
}

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

@media (min-width: 768px) {
  .app-header,
  .app-main,
  .app-footer {
    max-width: 720px;
  }
}
