/* ------------------------------
   ベース
------------------------------ */
:root {
  --color-primary: #1976d2;
  --color-bg: #f3f4f6;
  --color-text-main: #333;
  --color-text-sub: #666;
  --radius-large: 16px;
  --shadow-card: 0 6px 18px rgba(15, 23, 42, 0.15);
  --shadow-btn: 0 3px 10px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  background: var(--color-bg);
  color: var(--color-text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* ------------------------------
   アプリ全体
------------------------------ */
.app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ------------------------------
   アプリバー（ロゴ + タイトル）
------------------------------ */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  border-radius: 15px;
  margin: 18px 14px 0;
}

.app-bar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-bar__logo-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-bar__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.app-bar__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-bar__firsttitle {
  font-size: 0.98rem;
  opacity: 0.9;
}

.app-bar__title {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.app-bar__subtitle {
  font-size: 0.78rem;
  opacity: 0.9;
}

/* 画面幅が広いときは中央寄せ気味に */
@media (min-width: 480px) {
  .app-bar {
    padding-inline: 18px;
  }
}

/* ------------------------------
   カード
------------------------------ */
.card {
  margin: 18px 14px 24px;
  background: #fff;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  padding: 20px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--color-text-sub);
}

/* ------------------------------
   プログレスバー
------------------------------ */
.progress {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #d38448;
  overflow: hidden;
}

.progress__bar {
  width: 0%;
  height: 100%;
  background: #fff;
  transition: width 0.25s ease-out;
}

/* ------------------------------
   質問テキスト
------------------------------ */
.question {
  font-size: 1.25rem;
  line-height: 1.7;
  text-align: center;
  padding: 10px 6px 4px;
  font-weight: 500;
}

.hint {
  font-size: 0.82rem;
  color: var(--color-text-sub);
  text-align: center;
}

/* ------------------------------
   ボタン
------------------------------ */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 14px 10px;
  border-radius: 999px;
  border: none;
  outline: none;
  background: #fff;
  color: var(--color-text-main);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: transform 0.06s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out;
}

.btn--primary {
  background: #fff;
  color: var(--color-primary);
}

.btn--secondary {
  background: #ffffff;
  color: var(--color-primary);
  border: 1px solid #dde3ea;
}

.btn--text {
  box-shadow: none;
  background: transparent;
  border-radius: 999px;
  color: var(--color-text-sub);
  font-size: 0.9rem;
  padding: 10px 4px;
  margin-top: 10px;
}

.btn:active {
  transform: scale(0.97);
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.35);
}

/* ------------------------------
   フッター
------------------------------ */
.footer-note {
  margin-top: 2px;
  font-size: 0.75rem;
  text-align: center;
  color: var(--color-text-sub);
  line-height: 2;
}

/* ------------------------------
   スマホ微調整
------------------------------ */
@media (max-width: 360px) {
  .card {
    margin: 14px 10px 18px;
    padding: 16px 14px 20px;
  }
  .question {
    font-size: 1.1rem;
  }
  .btn {
    font-size: 0.96rem;
    padding-block: 12px;
  }
}
