/*
  entrance.css
  ログイン前の入口ページ用
*/

:root {
  /* menu と同系統（和風・くすみ系） */
  --main-bg: #ebece3;
  --frame-bg: #c4bab7;
  --desc-bg: #f3eade;
  --accent: #264653;

  --radius-lg: 16px;
  --radius-md: 12px;
}

body {
  background: var(--main-bg);
}

.entrance-page {
  max-width: 980px;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

/* カード全体 */
.entrance-card {
  background: var(--frame-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* ヒーロー画像 */
.hero {
  position: relative;
  background: #111;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;     /* 横長ヘッダー */
  object-fit: cover;
  opacity: 0.92;
}

/* 画像上の文字 */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.0rem 1.2rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.0)
  );
}

.hero-title {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hero-subtitle {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

/* 本文 */
.entrance-body {
  background: var(--desc-bg);
  padding: 1.2rem 1.2rem 1.3rem;
}

.entrance-heading {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 2.2rem;
  font-weight: bold;
  color: #111;
}

.entrance-lead {
  margin: 0 0 0.8rem;
  color: #222;
  font-size: 1.5rem;
  line-height: 1.6;
}

.entrance-list-title {
  margin-top: 1.0rem;
  margin-bottom: 0.6rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: #111;
}

/* 箇条書きを “控えめ” に */
.entrance-points {
  line-height: 1.7rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  color: #222;
  font-size: 1.6rem;
  margin-left: 1.4em;
  text-indent: -1.4em;
}

.enter-form {
  margin: 0;
}

/* Milligram button を上書き（見た目を menu のボタン系に寄せる） */
.enter-button {
  width: 100%;
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.25);
  color: #eee;
  font-size: 1.6rem;
  height: 4.2rem;
  border-radius: 10px;
}

.enter-button:hover {
  filter: brightness(1.05);
}

.enter-button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* 送信中メッセージ */
.enter-note {
  margin-top: 0.6rem;
  color: #333;
  font-size: 1.2rem;
  min-height: 1.2em; /* 表示切替でガタつかない */
}

.entrance-foot {
  margin-top: 0.9rem;
}

.muted {
  color: #222;
}

/* モバイル最適化 */
@media (max-width: 640px) {
  .entrance-page {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .hero-img {
    aspect-ratio: 16 / 9;
  }

  .entrance-body {
    padding: 1.0rem 1.0rem 1.1rem;
  }
}