@charset "UTF-8";

/* --------------------------------------------------
   カラー・デザイン変数（色やサイズを変更できます）
-------------------------------------------------- */
:root {
  --bg-color: #f4f4f4;        /* ページ全体の背景色 */
  --card-bg-color: #ffffff;  /* コンテンツカードの背景色 */
  --main-color: #DE1318;     /* メインカラー（見出し下の線） */
  --text-color: #333333;     /* テキストの色 */
  --max-width: 1000px;       /* コンテンツの最大幅 */
}

/* --------------------------------------------------
   リセット & ベーススタイル
-------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", MeiRyo, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 24px 12px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --------------------------------------------------
   バナーエリア
-------------------------------------------------- */
.banner-container {
  width: 100%;
  margin-bottom: 24px;
  text-align: center;
}

.banner-container img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------
   メインカード枠
-------------------------------------------------- */
.content-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.page-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--main-color);
}

.description {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 24px;
  color: #555555;
}

/* --------------------------------------------------
   大会詳細 2つ横並びボタン
-------------------------------------------------- */
.race-detail-container {
  display: flex;
  justify-content: center;
  gap: 16px; /* ボタン同士の間隔 */
  margin: 0 auto 24px;
  max-width: 700px;
  width: 100%;
}

.btn-race-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--main-color); /* メインカラー参照 */
  color: #ffffff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn-race-detail .btn-label {
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.3;
}

.btn-race-detail .btn-sub {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 4px;
}

/* マウスホバー時 */
.btn-race-detail:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* スマホ対応（画面幅が狭いときは縦並びにする場合） */
@media (max-width: 580px) {
  .race-detail-container {
    flex-direction: column;
    gap: 10px;
  }
}

/* --------------------------------------------------
   iFrame（検索画面）設定
-------------------------------------------------- */
.iframe-wrapper {
  width: 100%;
  height: 700px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --------------------------------------------------
   トップに戻るボタンのスタイル
-------------------------------------------------- */
.top-back-area {
  text-align: center;
  margin: 40px auto;
  padding: 0 16px;
  max-width: 600px; /* ボタンの最大幅 */
}

.btn-top-back {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--main-color); 
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: bold;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 50px; /* 角を丸くしたボタンデザイン */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

/* 左矢印アイコン（CSSで作成） */
.btn-top-back::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(-45deg);
  margin-right: 10px;
  transition: transform 0.3s ease;
}

/* ホバー（マウスを載せたとき）の動作 */
.btn-top-back:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-top-back:hover::before {
  transform: rotate(-45deg) translateX(-2px);
}

/* スマホ対応 */
@media (max-width: 600px) {
  .top-back-area {
    margin: 30px auto;
  }
  .btn-top-back {
    font-size: 0.95rem;
    padding: 14px 20px;
  }
}

/* --------------------------------------------------
   フッターのスタイル
-------------------------------------------------- */
.site-footer {
  background-color: #01A0E2; /* 画像通りの鮮やかな水色 */
  color: #ffffff;
  text-align: center;
  margin-top: 40px;

  width: 100vw; /* 画面横幅いっぱいに広げる */
  position: relative;
  left: 50%;
  transform: translateX(-50%); /* 親要素の幅制限を無視して左右に全開させる */
  margin-bottom: -24px; /* body等の下部余白(padding/margin)を相殺して一番下に密着させる */
  /* ------------------------------------ */
}

/* 上部の会社情報・キャッチコピーエリア */
.footer-info {
  padding: 30px 20px 20px;
}

.footer-catch {
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: bold;
  margin-bottom: 12px;
}

.footer-logo img {
  max-width: 220px;
  height: auto;
  margin: 10px auto;
  display: block;
}

.footer-company {
  font-size: 0.95rem;
  font-weight: bold;
  margin-top: 6px;
}

/* リンク一覧（白い区切り線付き） */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.footer-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.footer-links a {
  display: block;
  padding: 16px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.footer-links a:hover {
  background-color: rgba(255, 255, 255, 0.15); /* ホバー時に少し明るく */
}

/* コピーライト */
.footer-copy {
  padding: 20px;
  font-size: 0.85rem;
}

/* --------------------------------------------------
   スマホ対応（レスポンシブ）
-------------------------------------------------- */
@media (max-width: 600px) {
  body {
    padding: 12px 8px;
  }

  .content-card {
    padding: 20px 16px;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .iframe-wrapper {
    height: 550px; /* スマホ画面での高さ調整 */
  }
}