/* トップページ・ログイン画面だけで使う見た目（共通部品は base.css） */

section { margin-top: 48px; }
.center { text-align: center; margin-top: 24px; }

/* ---------- お城の入口 ---------- */
.hero { margin-top: 8px; }

/* お城のてっぺんのギザギザ（積み木） */
.castle-top {
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  margin-bottom: -6px;
}
.castle-top span {
  width: 14%;
  height: 28px;
  border-radius: 10px 10px 0 0;
  background-color: var(--cream);
  background-image: var(--knit-light);
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-top: 32px;
}
.hero-guide { width: 120px; }
.hero-title {
  font-size: 3rem;
  margin: 0;
  color: var(--pink-deep);
  letter-spacing: .04em;
  text-shadow: 0 3px 0 var(--yellow);
}
.hero-lead { margin: 4px 0 0; font-size: 1.05rem; }
.hero-next { margin-top: 20px; }
.hero-btn { margin: 16px 0 0; }

@media (min-width: 720px) {
  .hero-card { flex-direction: row; text-align: left; gap: 28px; padding: 40px; }
  .hero-guide { width: 160px; }
  .hero-title { font-size: 4rem; }
  .hero-btn .btn { width: auto; display: inline-flex; padding-left: 56px; padding-right: 56px; }
  .hero-btn { text-align: center; }
}

/* ---------- 部屋の扉 ---------- */
.room-door { border-radius: 120px 120px var(--radius-card) var(--radius-card); padding-top: 40px; text-align: center; }
.room-door.stitched::after { border-radius: 112px 112px 16px 16px; }
.room-door h3 { margin: 10px 0 6px; font-size: 1.3rem; }
.room-door p { margin: 0; text-align: left; }

/* ---------- はじめ方 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps .card { display: flex; gap: 16px; align-items: flex-start; margin: 0; }
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; }
.step-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background-color: var(--blue);
  background-image: var(--knit);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: var(--shadow-press);
}
.steps li:nth-child(2) .step-no { background-color: var(--yellow); color: var(--ink); }
.steps li:nth-child(3) .step-no { background-color: var(--pink-deep); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- よくある質問 ---------- */
.faq details { border-bottom: 2px dashed rgba(43, 27, 36, .2); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "＋";
  flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  transition: transform .25s var(--ease-poyon);
}
.faq details[open] summary::before { content: "－"; transform: rotate(180deg); }
.faq details p { margin: 0 0 16px 44px; }

/* ---------- ログイン画面 ---------- */
.login-wrap { max-width: 480px; margin: 0 auto; }
.login-card h1 { font-size: 1.6rem; text-align: center; }
.login-guide { display: block; width: 96px; margin: -8px auto 8px; }
.form-message { margin: 0 0 16px; }
.form-message:empty { display: none; }
.login-note { margin-top: 20px; }

.footer { padding: 24px 16px 40px; text-align: center; color: var(--white); font-size: .9rem; }
.show-pass { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; }
.show-pass input { width: 22px; height: 22px; accent-color: var(--blue); }
