/* サンクスページ全体の配置設定 */
.thanks-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh; /* 画面の高さに対して中央に配置 */
  padding: 60px 20px;
  background-color: #f9f9f9; /* 柔らかな薄いグレー（背景色はお好みで） */
}

/* 中央のコンテンツエリア */
.thanks-inner {
  max-width: 600px;
  width: 100%;
  text-align: center;
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 8px; /* 角をほんのり丸く */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* 綺麗な軽い影 */
}

/* メインの「THANK YOU」 */
.thanks-inner h1 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.15em; /* 文字の間隔を広げてスタイリッシュに */
  color: #333333;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

/* THANK YOU の下につくオシャレな飾り線 */
.thanks-inner h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: #333333; /* サイトのアクセントカラーに変えてもOK */
}

/* リード文（お問い合わせありがとうございます） */
.thanks-lead {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333333;
  margin-bottom: 20px;
}

/* 詳細テキスト */
.thanks-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #666666;
  margin-bottom: 40px;
}

/* トップへ戻るボタン */
.thanks-btn {
  display: inline-block;
  min-width: 200px;
  padding: 15px 30px;
  background-color: #333333; /* ボタンの色（お好みの色に調整してください） */
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: all 0.3s ease; /* ふんわり動かすアニメーション */
}

/* ボタンにマウスを乗せたときの動き */
.thanks-btn:hover {
  background-color: #555555; /* 少し明るく */
  transform: translateY(-2px); /* ぽこっと上に浮き上がる */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* スマホ対応の調整 */
@media (max-width: 576px) {
  .thanks-inner {
    padding: 40px 20px;
  }
  .thanks-inner h1 {
    font-size: 2rem;
  }
  .thanks-lead {
    font-size: 1.1rem;
  }
}

/* 大会用サンクスページの文章の行間と余白の微調整 */
.thanks-text-area {
  margin-bottom: 40px; /* ボタンとの間の余白 */
}

.thanks-text-area .thanks-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 1.5em; /* 行ごとの隙間をあけて読みやすく */
  text-align: left;     /* 左寄せにすることで長文を読みやすくします */
  display: inline-block; /* 中央揃えのブロックの中で左寄せにする */
}