body {
  background-color: #ccc;
  line-height: 1.75;
}

a {
  color: #a59aca;
}

.banner {
  width: 100%;
  display: block;
  position: absolute;
  z-index: 0;
  top: 0;
}

/* パソコン・共通のレイアウト設定 */
.content {
  width: 900px;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 40px;
  z-index: 10;
  position: relative;
}

.form-contaienr {
  max-width: 100%;
  margin: 0 auto;
  background-color: #fff;
  display: block;
  padding: 36px;
  z-index: 10;
  position: relative;
  box-shadow: 0 0 30px -5px rgba(0, 0, 0, 0.12);
}

/* タイトルエリア（パソコン版の基本設定） */
.form-title {
  width: auto;
  height: 218px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;   /* 3行を縦に並べる */
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.4;

  /* 元の文字だけを完全に潰して消す */
  font-size: 0 !important; 
}

/* 1行目（日付） */
.form-title::before {
  content: "9月5日(土)";
  font-size: 2rem;         /* パソコン時のサイズ */
  color: #fff;             
  display: block;
}

/* 2行目・3行目（イベント名） */
.form-title::after {
  content: "野田クリスタルpresents \A 第3回ゲーム制作の初心者すぎ大会！";
  font-size: 2rem;         /* パソコン時のサイズ */
  color: #fff;             
  display: block;
  white-space: pre-wrap;   /* 「\A」の位置での改行を有効にする */
}


/* ーーー ここから下はスマホ・タブレット用の設定 ーーー */

/* 【修正】ブレイクポイントを640pxに統一し、崩れの原因だった閉じカッコのズレを直しました */
@media screen and (max-width: 640px) {
  .banner {
    height: 210px;
  }
  
  .content {
    top: 0;
    width: auto;
    padding: 0;
  }
  
  .form-contaienr {
    width: auto;
    padding: 16px;
  }
  
  .form-title {
    height: auto !important;     /* スマホ時は高さを自動にしてはみ出しを防ぐ */
    min-height: 160px;          /* 最低限の高さは確保 */
    padding: 20px 10px;         /* 左右の余白を少し詰める */
  }

  /* ★ スマホ版の文字サイズをここで一括コントロールします */
  .form-title::before,
  .form-title::after {
    font-size: 1.3rem !important; /* スマホで1行に収まりやすいサイズに下げました */
  }
}
