/* ===========================
   TENSHOKU SAGAS - Main Styles
   =========================== */

:root {
  --red:        #c80000;
  --red-band:   #c22323;
  --red-btn:    #c90101;
  --white:      #ffffff;
  --black:      #111111;
  --gray-light: #f7f7f7;
  --gray-mid:   #888888;
  --gray-div:   #dddddd;
  --text-dark:  #222222;
  --text-mid:   #555555;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===========================
   HEADER  （100%幅）
   =========================== */
.site-header {
  background: var(--red);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 62px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo-mark {
  height: 46px;
  width: auto;
}
.header-logo-text {
  color: var(--white);
  font-size: 25px;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.02em;
  font-family: 'Arial Rounded MT Bold', 'Noto Sans JP', 'Arial', sans-serif;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,0.15); }

.btn-login {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border: 2px solid var(--white);
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
  margin-left: 6px;
}
.btn-login:hover { background: var(--white); color: var(--red); }

.btn-register {
  background: var(--white);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid var(--white);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-register:hover { background: transparent; color: var(--white); }

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #f2ede8;
}
/* 背景画像 */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center -40px;
  z-index: 0;
}
/* 左フェード（白へ） */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.96) 0%,
    rgba(255,255,255,0.75) 25%,
    rgba(255,255,255,0.2)  50%,
    transparent            70%
  );
}
/* 下フェード（白へ） */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.35) 42%, rgba(255,255,255,0.98) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 80px;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero-content {
  width: 46vw;
  max-width: 820px;
  min-width: 560px;
  padding: 40px 0;
}
/* キャッチコピーは画像 */
.hero-catch-img {
  width: 90%;
  max-width: none;
  height: auto;
  margin-top: 5%;
}

/* ===========================
   DIAGNOSIS SECTION
   =========================== */
.diagnosis-section {
  position: relative;
  z-index: 5;
  background: var(--white);
  padding: 0 20px 40px;
  margin-top: 0;
}
.diagnosis-card {
  max-width: 1120px;
  margin: -86px auto 0;
  border: 3px solid var(--red);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  position: relative;
  z-index: 6;
}

/* 赤帯ヘッダー */
.diag-band {
  width: 100%;
  display: block;
  line-height: 0;
}

/* ステップエリア */
.diag-steps-wrap {
  padding: 0 0 10px;
  background: #fff;
}

/* ステップラベル行（画像） */
.steps-label-wrap {
  background: #fff;
  border-bottom: none;
  line-height: 0;
  padding-top: 8px;
}
.steps-label-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ステップ上段：番号+ラベル+矢印 */
.steps-label-row {
  display: flex;
  align-items: center;
  background: #f7f7f7;
  padding: 10px 0 10px;
  border-bottom: 1px solid #eee;
}
.step-label-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 4px;
}
.step-label-item:not(:last-child) {
  border-right: 1px dotted #ccc;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-label-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}
.step-arrow {
  color: var(--red);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ステップ下段：アイコン+説明 */
.steps-icons-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0 18px;
}
.step-icon-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}
.step-icon-item:not(:last-child) {
  border-right: 1px dotted #ccc;
}
.step-icon-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  margin: 0 auto 8px;
}
.step-icon-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
}

/* 診断ボタン */
.diag-btn-wrap {
  text-align: center;
  padding: 0 24px 8px;
}
.btn-diagnosis {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  line-height: 0;
}
.btn-diagnosis img {
  width: 100%;
  height: auto;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-diagnosis:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,0,0,0.35);
}
.diagnosis-note {
  text-align: center;
  font-size: 11px;
  color: var(--gray-mid);
  padding: 0 0 12px;
}

/* ===========================
   FEATURES SECTION
   =========================== */
.features-section {
  padding: 36px 20px 48px;
  background: var(--white);
  border-top: 2px solid var(--red);
}
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 20px;
}
.feature-item:not(:last-child) {
  border-right: 1px solid var(--gray-div);
}
.feat-icon-img {
  width: 72px;
  height: auto;
  margin: 0 auto 14px;
}
.feature-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.3;
}
.feature-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===========================
   FOOTER （100%幅）
   =========================== */
.site-footer {
  background: #1a1a1a;
  color: var(--white);
  width: 100%;
}
.footer-top {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr);
  gap: 36px;
  padding: 5%;
  border-bottom: 1px solid #333;
}
.footer-brand .footer-logo-img {
  height: 52px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 32px; height: 32px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--red); }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #aaa; font-size: 12px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  padding: 18px;
  color: #555;
  font-size: 12px;
  background: #111;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(1),
  .feature-item:nth-child(2) { border-bottom: 1px solid var(--gray-div); }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .header-nav .nav-link { display: none; }
  .hero-section { min-height: 620px; }
  .diagnosis-card { margin-top: -44px; }
  .hero-inner { padding: 0 28px; }
  .hero-content { width: 72vw; min-width: 0; max-width: 620px; }
  .hero-bg-img { object-position: center top; }
  .steps-label-row { flex-wrap: wrap; gap: 8px; }
  .step-label-item { min-width: 40%; }
  .steps-icons-row { flex-wrap: wrap; }
  .step-icon-item { min-width: 40%; border-right: none !important; margin-bottom: 16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .hero-section { min-height: 520px; }
  .diagnosis-card { margin-top: -28px; }
  .hero-content { width: 82vw; }
  .footer-top { grid-template-columns: repeat(2, 1fr); padding: 28px 16px 24px; }
}

/* =========================================================
   FINAL DIAGNOSIS / HERO ADJUST
   ========================================================= */

/* ヒーロー下を長めに確保して、下フェードを見せる */
.hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh + 130px);
  min-height: 760px;
  overflow: hidden;
  background: #fff;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 260px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.12) 36%,
    rgba(255,255,255,0.55) 68%,
    rgba(255,255,255,1) 100%
  );
}

.hero-inner {
  min-height: 600px;
}

.hero-catch-img {
  width: 90%;
  max-width: none;
  height: auto;
  margin-top: 5%;
}

/* セクション全体は上げない */
.diagnosis-section {
  position: relative !important;
  z-index: 10 !important;
  background: #fff !important;
  padding: 5px 20px 40px !important;
  margin-top: 0 !important;
}

/* 赤枠カードだけをヒーロー上へ重ねる */
.diagnosis-card {
  max-width: 1120px;
  margin: -155px auto 0;
  border: 3px solid var(--red);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  position: relative;
  z-index: 20;
}

/* 画像だった診断帯をHTML/CSSで再現 */
.diag-band,
.steps-label-wrap,
.steps-label-img {
  display: none !important;
}

.diag-header {
  background: var(--red);
  color: #fff;
  min-height: 88px;
  padding: 18px 30px 16px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.diag-header-text h2 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.diag-header-text p {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
}

.diag-ai-balloon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.diag-ai-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}

.diag-ai-balloon p {
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
  white-space: nowrap;
}

.diag-steps-wrap {
  background: #fff;
  padding: 0 0 12px;
}

.steps-label-row {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr 24px 1fr;
  align-items: center;
  background: #fff;
  padding: 22px 26px 8px;
  border-bottom: none;
}

.step-label-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0;
  border-right: none !important;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

.step-label-text {
  font-size: 12px;
  font-weight: 900;
  color: #111;
  white-space: nowrap;
}

.step-arrow {
  color: #e5a0a0;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.steps-icons-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  padding: 14px 26px 30px;
  background: #fff;
}

.step-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 2px dotted #e1a3a3;
  padding: 0 16px;
}

.step-icon-item:last-child {
  border-right: none;
}

.step-icon-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.step-icon-desc {
  font-size: 14px;
  color: #444;
  font-weight: 900;
  line-height: 1.65;
}

.diag-btn-wrap {
  text-align: center;
  padding: 0 24px 8px;
}

.btn-diagnosis {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1;
}

.btn-diagnosis-inner {
  min-height: 68px;
  background: var(--red);
  color: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(200,0,0,0.22);
}

.btn-diagnosis-inner img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.btn-arrow {
  font-size: 44px;
  line-height: 1;
  margin-left: 16px;
}

.btn-diagnosis > img {
  display: none !important;
}

.diagnosis-note {
  text-align: center;
  font-size: 11px;
  color: var(--gray-mid);
  padding: 4px 0 0;
}

/* ヘッダー/フッター100% */
.header-inner,
.footer-top {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .hero-section {
    height: 680px;
    min-height: 680px;
  }

  .diagnosis-card {
    margin-top: -72px;
  }

  .diag-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .diag-ai-balloon p {
    white-space: normal;
  }

  .steps-label-row {
    display: none;
  }

  .steps-icons-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }

  .step-icon-item {
    border-right: none;
  }

  .btn-diagnosis-inner {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 560px;
    min-height: 560px;
  }

  .diagnosis-card {
    margin-top: -48px;
  }

  .diag-header-text h2 {
    font-size: 23px;
  }

  .steps-icons-row {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   DIAGNOSIS WHITE OUTLINE OUTSIDE RED BORDER
   =========================== */
.diagnosis-card {
  outline: 3px solid #fff !important;
  outline-offset: 0px !important;
}

/* =========================================================
   FOOTER / FEATURES FINAL ADJUST
   ========================================================= */

/* 下段エリア上の赤線を削除 */
.features-section {
  padding: 34px 20px 46px !important;
  background: #fff !important;
  border-top: none !important;
}

.features-grid {
  max-width: 1120px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  align-items: stretch !important;
}

.feature-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 10px 18px 8px !important;
}

.feature-item:not(:last-child) {
  border-right: 1px solid #d9d9d9 !important;
}

.feat-icon-img {
  width: 70px !important;
  height: 70px !important;
  object-fit: contain !important;
  margin: 0 auto 14px !important;
}

.feature-title {
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #111 !important;
  margin-bottom: 8px !important;
  line-height: 1.35 !important;
  letter-spacing: 0.01em !important;
}

.feature-desc {
  font-size: 13px !important;
  color: #222 !important;
  line-height: 1.65 !important;
  font-weight: 500 !important;
}

/* フッターロゴをヘッダーと同じ構成へ */
.footer-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.footer-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.footer-logo-mark {
  height: 52px !important;
  width: auto !important;
  max-width: none !important;
}

.footer-logo-text {
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  line-height: 0.92 !important;
  letter-spacing: 0.02em !important;
  font-family: 'Arial Rounded MT Bold', 'Noto Sans JP', 'Arial', sans-serif !important;
}

.footer-logo-img {
  display: none !important;
}

.footer-tagline {
  font-size: 13px !important;
  color: #fff !important;
  font-weight: 900 !important;
  margin-bottom: 16px !important;
}

@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .feature-item:nth-child(2) {
    border-right: none !important;
  }

  .feature-item:nth-child(1),
  .feature-item:nth-child(2) {
    border-bottom: 1px solid #d9d9d9 !important;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr !important;
  }

  .feature-item {
    border-right: none !important;
    border-bottom: 1px solid #d9d9d9 !important;
  }

  .feature-item:last-child {
    border-bottom: none !important;
  }
}

/* ===========================
   AI BALLOON TRIANGLE
   =========================== */
.diag-ai-balloon p {
  position: relative;
}

.diag-ai-balloon p::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 14px solid #fff;
}

/* ===========================
   DIAGNOSIS BUTTON ARROW FIX
   =========================== */
.btn-diagnosis-inner {
  overflow: visible;
}

.btn-arrow {
  line-height: 18;
  padding-bottom: 4px;
}

/* ===========================
   DIAGNOSIS BUTTON ARROW FIX 2
   =========================== */
.btn-arrow {
  font-size: 16px;
  line-height: 1;
  margin-left: 12px;
  transform: translateY(-1px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
}

/* ===========================
   DIAGNOSIS / GAME UI
   =========================== */

/* ゲームページ共通背景 */
.game-page {
  min-height: 100vh;
  background: #111;
  padding: 32px 20px 60px;
}

/* ゲームページ用コンテナ */
.game-container {
  max-width: 720px;
  margin: 0 auto;
}

/* ===========================
   QUEST HEADER BAR
   =========================== */
.quest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.quest-label {
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 5px 16px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.quest-title {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  flex: 1;
  text-align: center;
  letter-spacing: 0.03em;
}
.quest-step-info {
  color: #aaa;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===========================
   XP BAR（進捗バー）
   =========================== */
.xp-bar-wrap {
  margin-bottom: 24px;
}
.xp-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.xp-bar-label span {
  font-size: 11px;
  color: #aaa;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.xp-bar-track {
  background: #2a2a2a;
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
  border: 1px solid #333;
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, #ff4444 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ===========================
   GAME CARD
   =========================== */
.game-card {
  background: #1c1c1c;
  border: 2px solid #333;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}
.game-card-header {
  background: var(--red);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.game-card-header .card-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.game-card-header h2 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.game-card-header p {
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.9;
}
.game-card-body {
  padding: 28px 28px 24px;
}

/* ===========================
   START PAGE
   =========================== */
.start-mascot {
  text-align: center;
  margin-bottom: 24px;
}
.start-mascot img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(200,0,0,0.4));
}
.start-mascot p {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
  line-height: 1.6;
}
.start-info-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.start-info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
}
.start-info-list li .info-badge {
  background: #2a2a2a;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===========================
   QUESTION PAGE
   =========================== */
.question-text {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.55;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.question-number {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

/* コマンドボタン（選択肢） */
.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.cmd-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #1a1a1a;
  border: 2px solid #444;
  border-radius: 8px;
  color: #eee;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  line-height: 1.4;
}
.cmd-btn:hover,
.cmd-btn:focus {
  border-color: var(--red);
  background: #2a1010;
  color: #fff;
  outline: none;
}
.cmd-btn.selected {
  border-color: var(--red);
  background: #3a0000;
  color: #fff;
}
.cmd-btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #333;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  color: #aaa;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.cmd-btn:hover .cmd-btn-label,
.cmd-btn.selected .cmd-btn-label {
  background: var(--red);
  color: #fff;
}

/* ===========================
   FREE TEXT PAGE
   =========================== */
.free-text-label {
  color: #aaa;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.free-text-area {
  width: 100%;
  background: #111;
  border: 2px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 16px 18px;
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
  font-family: inherit;
  transition: border-color 0.15s;
  margin-bottom: 8px;
}
.free-text-area::placeholder { color: #555; }
.free-text-area:focus {
  border-color: var(--red);
  outline: none;
}
.free-text-hint {
  font-size: 11px;
  color: #555;
  margin-bottom: 24px;
}

/* ===========================
   RESULT PAGE
   =========================== */
.result-clear-banner {
  text-align: center;
  margin-bottom: 24px;
}
.result-clear-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(200,0,0,0.4);
}
.result-clear-sub {
  color: #aaa;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.result-type-card {
  background: linear-gradient(135deg, #1a0000 0%, #2a0a0a 100%);
  border: 2px solid var(--red);
  border-radius: 14px;
  padding: 28px 28px 24px;
  margin-bottom: 16px;
  text-align: center;
}
.result-type-label {
  font-size: 12px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.result-type-name {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.result-type-desc {
  font-size: 14px;
  color: #ccc;
  line-height: 1.75;
  font-weight: 500;
}
.result-detail-card {
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 12px;
}
.result-detail-title {
  font-size: 12px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-detail-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.result-detail-body {
  color: #ddd;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 500;
}
.result-jobs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.result-jobs-list .job-tag {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #ddd;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ===========================
   GAME BUTTONS
   =========================== */
.game-btn-wrap {
  text-align: center;
  margin-top: 8px;
}
.btn-game-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  padding: 16px 48px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(200,0,0,0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
}
.btn-game-primary:hover {
  background: #e00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,0,0,0.5);
  color: #fff;
}
.btn-game-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #aaa;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  border: 1px solid #444;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn-game-secondary:hover {
  color: #fff;
  border-color: #888;
}
.btn-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ===========================
   GAME PAGE HEADER (TOP BAR)
   =========================== */
.game-topbar {
  background: #1a1a1a;
  border-bottom: 2px solid var(--red);
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.game-topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.game-topbar-logo img {
  height: 36px;
  width: auto;
}
.game-topbar-logo span {
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  font-family: 'Arial Rounded MT Bold', 'Noto Sans JP', 'Arial', sans-serif;
}
.game-topbar-mode {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: 1px solid var(--red);
  padding: 4px 12px;
  border-radius: 4px;
}

/* ===========================
   RESPONSIVE GAME UI
   =========================== */
@media (max-width: 600px) {
  .game-page { padding: 20px 12px 48px; }
  .question-text { font-size: 17px; }
  .result-type-name { font-size: 26px; }
  .result-clear-title { font-size: 26px; }
  .btn-game-primary { padding: 14px 32px; font-size: 16px; }
  .game-card-body { padding: 20px 18px 18px; }
  .game-topbar { padding: 8px 16px; }
}

/* ===========================
   DIAGNOSIS BUTTON STATES
   =========================== */
.btn-diagnosis .btn-diagnosis-inner {
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-diagnosis:hover .btn-diagnosis-inner {
  background: #e00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,0,0,0.5);
}
.btn-diagnosis.is-disabled {
  pointer-events: none;
  cursor: not-allowed;
}
.btn-diagnosis.is-disabled .btn-diagnosis-inner {
  background: #aaa;
  box-shadow: none;
  color: #ddd;
}
.btn-game-primary.is-disabled {
  background: #aaa;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-game-primary.is-disabled:hover {
  background: #aaa;
  transform: none;
  box-shadow: none;
}
.btn-diag-off-notice {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 8px;
}

/* ===========================
   GAME UI LIGHT THEME
   (診断画面 白ベース調整)
   =========================== */

.game-page {
  background: #f7f7f7;
}

.quest-title {
  color: #222;
}

.quest-step-info {
  color: #666;
}

.xp-bar-label span {
  color: #666;
}

.game-card {
  background: #fff;
  border: 2px solid #e8e8e8;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.question-text {
  color: #222;
}

.cmd-btn {
  background: #fff;
  border: 2px solid #ddd;
  color: #222;
}

.cmd-btn:hover,
.cmd-btn:focus {
  border-color: var(--red);
  background: #fff5f5;
  color: #222;
  outline: none;
}

.cmd-btn.selected {
  border-color: var(--red);
  background: #fff0f0;
  color: var(--red);
}

.cmd-btn-label {
  background: #f0f0f0;
  color: #666;
}

.cmd-btn:hover .cmd-btn-label,
.cmd-btn.selected .cmd-btn-label {
  background: var(--red);
  color: #fff;
}

.result-type-card {
  background: #fff;
  border: 2px solid var(--red);
}

.result-type-name {
  color: #222;
}

.result-type-desc {
  color: #444;
}

.result-clear-sub {
  color: #666;
}

.result-detail-card {
  background: #fff;
  border: 1px solid #e8e8e8;
}

.result-detail-body {
  color: #333;
}

.result-jobs-list .job-tag {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
}

.free-text-area {
  background: #fff;
  border: 2px solid #ddd;
  color: #222;
}

.free-text-label {
  color: #555;
}

.free-text-hint {
  color: #888;
}

.start-mascot p {
  color: #444;
}

.start-info-list li {
  color: #333;
}

/* start-info-list: 全体を中央寄せ・li は左詰め維持 */
.start-info-list {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* info-badge: 白背景・赤アクセント・幅統一 */
.start-info-list li .info-badge {
  background: #fff;
  border: 1px solid var(--red);
  color: var(--red);
  min-width: 64px;
  text-align: center;
}

.btn-game-secondary {
  color: #555;
  border-color: #ccc;
}

.btn-game-secondary:hover {
  color: #222;
  border-color: #888;
}

/* ===========================
   TREND SECTION（みんなの診断傾向）
   =========================== */
.trend-section {
  padding: 100px 20px;
  background: var(--gray-light);
}
.trend-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.trend-heading {
  font-size: 28px;
  font-weight: 900;
  color: var(--black);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.trend-sub {
  text-align: center;
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 48px;
}
.trend-rank-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}
.trend-rank-card {
  background: #fff;
  border: 1px solid var(--gray-div);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.trend-rank-label {
  font-size: 14px;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.trend-rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trend-rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.rank-1 { background: #ffd700; color: #555; }
.rank-2 { background: #b8b8b8; color: #fff; }
.rank-3 { background: #b87333; color: #fff; }
.trend-more-wrap {
  text-align: center;
  margin-top: 60px;
}
/* TODO: 診断傾向の一覧ページ実装後に「もっと見る」ボタンを再表示する（display: none → display: inline-flex に戻す） */
.btn-trend-more {
  display: none;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 8px;
  border: 1px solid var(--gray-div);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-trend-more:hover {
  border-color: var(--red);
  color: var(--red);
}
.trend-comment-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.trend-character {
  flex-shrink: 0;
}
.trend-character img {
  width: 220px;
  height: auto;
  display: block;
}
.trend-comment-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--gray-div);
  border-radius: 14px;
  padding: 22px 26px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.trend-comment-card::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 30px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 12px solid var(--gray-div);
}
.trend-comment-card::after {
  content: '';
  position: absolute;
  left: -9px;
  top: 32px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 10px solid #fff;
}
.trend-comment-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.trend-comment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trend-comment-list li {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}
.trend-comment-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--red);
}
@media (max-width: 768px) {
  .trend-section { padding: 60px 20px; }
  .trend-rank-row { grid-template-columns: 1fr; max-width: 400px; margin-bottom: 40px; }
  .trend-sub { margin-bottom: 32px; }
  .trend-comment-row { flex-direction: column; align-items: center; max-width: 400px; }
  .trend-comment-card::before,
  .trend-comment-card::after { display: none; }
  .trend-character img { width: 140px; }
  .trend-more-wrap { margin-top: 40px; }
}
@media (max-width: 480px) {
  .trend-section { padding: 48px 16px; }
  .trend-heading { font-size: 22px; }
  .trend-sub { font-size: 13px; margin-bottom: 28px; }
  .trend-rank-row { max-width: 100%; }
  .trend-comment-row { max-width: 100%; }
  .trend-character img { width: 110px; }
}

/* ===========================
   10ステップ表示: label-item 縦並び
   =========================== */
.step-label-item {
  flex-direction: column;
  gap: 4px;
}
.step-pair-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.step-label-text {
  font-size: 16px;
}

/* ===========================
   DIAGNOSIS START PAGE
   =========================== */
.diag-steps-overview { display:flex; flex-direction:column; gap:10px; margin-bottom:28px; }
.diag-step-row { display:flex; align-items:flex-start; gap:14px; padding:12px 16px; background:#f9f9f9; border-radius:8px; }
.diag-step-nums { font-size:16px; font-weight:900; color:var(--red); white-space:nowrap; flex-shrink:0; min-width:72px; }
.diag-step-title { font-size:14px; font-weight:900; color:#222; margin-bottom:2px; }
.diag-step-desc { font-size:12px; color:#888; }

/* ===========================
   DIAGNOSIS STEP FORM（STEP1〜9）
   =========================== */
.diag-step { display: block; }
.diag-step-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 4px;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.diag-q {
  font-size: 20px;
  font-weight: 900;
  color: #222;
  line-height: 1.55;
  margin-bottom: 16px;
}
.diag-single-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.diag-single-btn {
  width: 100%;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}
.diag-single-btn:hover { border-color: var(--red); background: #fff5f5; }
.choice-alpha {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f0f0f0;
  color: #888;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.diag-single-btn:hover .choice-alpha { background: var(--red); color: #fff; }
.diag-multi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.diag-chk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.diag-chk-label:hover { border-color: var(--red); background: #fff5f5; }
.diag-chk-label input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--red); flex-shrink: 0; }
.diag-cond-section { margin-bottom: 18px; }
.diag-cond-title { font-size: 13px; font-weight: 900; color: #333; margin-bottom: 8px; }
.diag-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #222;
}
.diag-select:focus { border-color: var(--red); outline: none; }
.diag-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.diag-form-group { display: flex; flex-direction: column; gap: 5px; }
.diag-form-label { font-size: 13px; font-weight: 700; color: #333; }
.diag-required { color: var(--red); font-size: 11px; margin-left: 2px; }
.diag-form-note { font-size: 12px; color: #888; margin-bottom: 18px; line-height: 1.55; }
.diag-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.7;
  resize: vertical;
  color: #222;
  margin-bottom: 6px;
}
.diag-textarea:focus { border-color: var(--red); outline: none; }
.diag-nav-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.diag-nav-back {
  color: #999;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}
.diag-nav-back:hover { color: #555; }
.result-match-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.result-match-item { font-size: 14px; color: #333; line-height: 1.65; }
.result-match-good::before { content: '✓ '; color: #38a169; font-weight: 900; }
.result-match-warn::before { content: '⚠ '; color: #f07b21; font-weight: 900; }
.result-next-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.result-next-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #333; line-height: 1.65; }
.result-next-num {
  width: 24px;
  height: 24px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}
@media (max-width: 640px) {
  .diag-multi-grid { grid-template-columns: repeat(2, 1fr); }
  .diag-form-grid { grid-template-columns: 1fr; }
  .diag-q { font-size: 17px; }
}

/* ===== Loading Screen ===== */
.ld-mascot-wrap { margin-bottom: 20px; display: flex; justify-content: center; }
.ld-mascot { width: 80px; display: block; animation: ld-float 2s ease-in-out infinite; }
@keyframes ld-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.ld-msg { font-size: 15px; font-weight: 600; color: #2d3748; margin-bottom: 28px; min-height: 1.6em; }
.ld-progress-area { width: 100%; max-width: 480px; margin: 0 auto; }
.ld-track { position: relative; height: 14px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
.ld-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #f07b21, #e53e3e); border-radius: 999px; transition: width 0.25s ease; }
.ld-pct-row { position: relative; height: 20px; }
.ld-pct { position: absolute; left: 0%; font-size: 12px; font-weight: 700; color: #f07b21; transform: translateX(-50%); transition: left 0.25s ease; white-space: nowrap; }
.ld-error { margin-top: 24px; padding: 16px; background: #fff5f5; border: 1px solid #feb2b2; border-radius: 8px; }
.ld-error-msg { font-size: 14px; color: #c53030; line-height: 1.6; }

/* ===== Login Page ===== */
.login-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--gray-light);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 0;
  overflow: hidden;
}
.login-logo-band {
  background: var(--red);
  border-radius: 16px 16px 0 0;
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.login-card-inner { padding: 24px 36px 36px; }
.login-logo-mark { width: 40px; height: 40px; }
.login-logo-text { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--white); letter-spacing: 0.05em; }
.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 24px;
}
.login-error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #c53030;
  margin-bottom: 16px;
  line-height: 1.5;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-label { font-size: 13px; font-weight: 600; color: var(--text-mid); }
.login-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-div);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
}
.login-input:focus { outline: none; border-color: var(--red); }
.login-input-wrap { position: relative; }
.login-input-wrap .login-input { padding-right: 44px; }
.login-pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-mid);
  font-size: 16px;
  padding: 0;
  line-height: 1;
}
.login-pwd-toggle:hover { color: var(--text-dark); }
.login-btn {
  margin-top: 8px;
  width: 100%;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  cursor: pointer;
}
.login-btn:focus,
.login-btn:active,
.login-btn:hover {
  outline: none;
  border: none;
  box-shadow: none;
}
.login-btn .btn-diagnosis-inner { font-size: 17px; min-height: 50px; gap: 14px; }
.login-btn .btn-arrow { font-size: 22px; margin-left: 8px; }
.login-sub-link { display: block; text-align: center; font-size: 13px; color: var(--gray-mid); margin-top: 12px; text-decoration: underline; }

/* ===== Header Auth Area ===== */
.header-auth { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-login {
  display: inline-block;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border: 2px solid var(--white);
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
  margin-left: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  background: transparent;
  line-height: normal;
}
.btn-login:hover { background: var(--white); color: var(--red); }

/* ===========================
   SP TOPPAGE ADJUSTMENTS (≤480px)
   =========================== */
@media (max-width: 480px) {

  /* ヘッダー：ロゴ・ログインボタンを小さく */
  .header-inner     { height: 52px; padding: 0 14px; }
  .header-logo-mark { height: 34px; }
  .header-logo-text { font-size: 18px; }
  .header-auth      { gap: 4px; }
  .btn-login        { padding: 5px 10px; font-size: 11px; border-radius: 14px; border-width: 1.5px; margin-left: 0; }

  /* ヒーロー：キャッチ画像を小さくして左上寄せ */
  .hero-inner     { align-items: flex-start; padding: 14px 14px 0; }
  .hero-content   { width: 58vw; min-width: 0; padding: 0; }
  .hero-catch-img { width: 100%; margin-top: 20px; }

  /* 診断カード：上に移動・横余白を詰める */
  .diagnosis-section { padding: 5px 10px 40px !important; }
  .diagnosis-card    { margin-top: -150px; }

  /* 診断ヘッダー：文字サイズ・余白調整 */
  .diag-header         { padding: 14px 16px 14px 18px; gap: 10px; }
  .diag-header-text h2 { font-size: 20px; }

  /* ステップアイコン：2列 + 最後のアイテムを中央1列 */
  .steps-icons-row           { grid-template-columns: repeat(2, 1fr) !important; gap: 14px 0; padding: 14px 14px 22px !important; }
  .step-icon-item            { border-right: none !important; }
  .step-icon-item:last-child { grid-column: 1 / -1; }

  /* 診断ボタン：フォント18px・アイコン小・余白詰め */
  .diag-btn-wrap                        { padding: 0 10px 8px !important; }
  .diag-btn-wrap .btn-diagnosis-inner   { font-size: 18px !important; min-height: 52px !important; gap: 8px !important; }
  .diag-btn-wrap .btn-diagnosis-inner img { width: 28px !important; height: 28px !important; }

  /* 特徴ブロック：2列 + 区切り線なし */
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .feature-item,
  .feature-item:not(:last-child),
  .feature-item:last-child,
  .feature-item:nth-child(1),
  .feature-item:nth-child(2) { border: none !important; }

  /* みんなの診断傾向：カード間余白・キャラ下余白 */
  .trend-rank-row    { gap: 12px; }
  .trend-rank-card   { padding: 14px 16px; }
  .trend-comment-row { gap: 8px; }

  /* フッター：ロゴを小さく・コピーライト帯を低く */
  .footer-logo-mark { height: 36px !important; }
  .footer-logo-text { font-size: 20px !important; }
  .footer-bottom    { padding: 10px 16px; }
}

