@charset "utf-8";
@import url(common.css);

/* ==========================================================
   1. BASE (ページ全体)
   ========================================================== */
body {
  background-color: #0d1015;
  margin: 0;
  font-family: "Yu Gothic", sans-serif;
  padding-top: 110px; /* 固定ヘッダーの高さ分の余白 */
}

/* ==========================================================
   2. TOP VISUAL (トップ画像)
   ========================================================== */
.topimg {
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.topimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================
   3. ARTICLE & TITLE (コンテンツエリア・大見出し)
   ========================================================== */
article {
  text-align: center;
  background-color: #0d1015;
}

article h1 {
  font-size: 85px;
  color: #fff;
  text-align: center;
  background-color: #0d1015;
  padding: 55px 0;
  margin: 0;
}

.title {
  position: relative;
  display: inline-block;
}

.title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 70%;
  height: 3px;
  background: red;
  transform: translateX(-50%);
}

/* ==========================================================
   4. DL LAYOUT (PC版：1画面ぴったりのFlex縦並び配置)
   ========================================================== */
dl {
  max-width: 100%;
  height: 100vh; /* 1画面ぴったり */
  margin: 0;
  background-color: #ffffff; /* ニュース本文は白背景で見やすく */
  color: #111111;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 【調整】レース情報 / イベント などのカテゴリー見出し */
dl dt {
  flex: 0 0 auto;
  font-size: 60px;
  font-weight: bold;
  text-align: center;
  /* 上下にドカンと広い余白（上100px / 下40px）を入れて、高級感のあるゆとりを演出 */
  padding: 100px 20px 40px;
  color: #0d1015;
  letter-spacing: 0.05em;
}

dl dd {
  flex: 0 0 auto;
  text-align: center;
  font-size: 20px;
  margin: 0; /* デフォルトの余白をリセット */
}

/* 【調整】ニュースタイトル */
dl dd.name {
  /* dtの余白を広げた分、全体のバランスを見てパディングをスマートに調整 */
  padding-top: 40px;
  padding-bottom: 60px;
  font-size: 50px;
  font-weight: bold;
  color: #111;
  padding-left: 40px;
  padding-right: 40px;
}

/* 【調整】日付 */
dl dd.date {
  font-size: 40px; /* 文字サイズを少しだけ引き締めて上品に */
  padding-bottom: 100px; /* 画像へと繋がる心地よい余白感 */
  color: #555;
}

/* 画面の残りのスペースいっぱいに広がる画像エリア */
dl .img {
  flex: 1;
  overflow: hidden;
  margin: 0;
}

dl .img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* ==========================================================
   5. FOOTER (フッターエリア)
   ========================================================== */
.footer {
  background-color: #11141a;
  padding: 60px 0 40px 0;
  color: #a0a5b0;
  width: 100%;
  clear: both;
}

.finner {
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222833;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.footer a {
  color: #a0a5b0;
  text-decoration: none;
  font-size: 14px;
}

.footer a:hover {
  color: #fff;
}

.footer .sns img {
  width: 24px;
  height: auto;
  display: block;
}

.copyright {
  margin: 0;
  line-height: 2;
  text-align: center;
}

.copyright small {
  font-size: 11px;
  color: #666c7a;
}

/* ==========================================================
   6. RESPONSIVE (スマホ対応：!importantなしで完全上書き)
   ========================================================== */
@media screen and (max-width: 768px) {
  body {
    padding-top: 70px; /* スマホヘッダーの高さ */
  }

  /* トップ画像をスマホの画面ぴったり（ヘッダー引いた分）に */
  .topimg {
    height: calc(100vh - 70px);
  }

  /* 大見出しをスマホ用にコンパクト化 */
  article h1 {
    font-size: 40px;
    padding: 35px 0;
  }

  .title::after {
    height: 2px;
    bottom: -6px;
  }

  /* スマホでも1画面ぴったり（100vh）のFlex縦並びを完全キープ */
  dl {
    height: calc(100vh - 70px);
  }

  /* スマホ用のカテゴリー文字サイズと適切な余白 */
  dl dt {
    font-size: 28px;
    padding: 35px 15px 15px; /* スマホでも窮屈にならないゆとり */
  }

  /* スマホの画面幅・縦幅に合わせて文字サイズと余白を最適化 */
  dl dd.name {
    padding-top: 15px;
    padding-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* スマホ用の日付サイズと位置調整 */
  dl dd.date {
    font-size: 16px;
    padding-bottom: 35px;
  }

  /* スマホでも残りのスペースいっぱいに画像が広がる迫力のレイアウト */
  dl .img {
    flex: 1;
  }

  /* フッターをスマホ用の縦並びレイアウトに */
  .footer-top {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .footer ul.hidari {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
/* ==========================================================
   7. RESPONSIVE (スマホ対応：完璧な状態を100%維持)
   ========================================================== */
@media screen and (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .topimg {
    height: 50vh;
  }

  /* メインタイトルのスマホ調整 */
  article h1 {
    font-size: 40px;
    padding: 40px 0;
    margin: 0;
  }

  .title::after {
    height: 2px;
    bottom: -6px;
  }

  /* 横並びと反転を解除して「上画像・下テキスト」の1列に */
  .item,
  .item.reverse {
    flex-direction: column;
    width: 100%;
    margin: 0;
    gap: 0;
    height: auto; /* スマホ時は一画面表示を解除してコンテンツ長に合わせる */
  }

  /* スマホ版では100%幅にリセット */
  .item .img,
  .item .text {
    width: 100%;
  }

  /* スマホ画面に合わせた画像の高さ */
  .item .img img {
    height: 300px;
  }

  /* スマホの画面幅に合わせてテキストパディングを凝縮 */
  .item .text {
    padding: 40px 25px;
  }

  /* セクション見出しのスマホサイズ */
  .item .text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    max-width: 100%;
  }

  /* 本文のスマホサイズ */
  .item .text p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
  }

  /* フッターのスマホ調整 */
  .footer-top {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .footer ul.hidari {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
/* ==========================================================
   スマホ・タブレット用（画面幅768px以下）の調整コード
   ========================================================== */
@media screen and (max-width: 768px) {
  /* --- 1. 全体・ヘッダーのスマホ縮小 --- */
  body {
    padding-top: 70px; /* スマホ用にヘッダーが低くなる分、上の余白を詰める */
  }

  header,
  .header-inner {
    height: 70px; /* 110pxから70pxにコンパクト化 */
  }

  .logo img {
    height: 60px; /* ロゴもスマホサイズに縮小 */
  }

  /* --- 2. ハンバーガーメニューをスマホ用に最適化 --- */
  .nav {
    position: fixed;
    top: 70px; /* 縮小したヘッダーのすぐ下から */
    left: 0;
    transform: none;
    width: 100%;
    height: calc(100vh - 70px); /* 画面の縦いっぱいにメニューを広げる */
    padding: 40px 20px;
    box-sizing: border-box;
  }

  .nav ul {
    flex-direction: column; /* 横並びから「縦並び」に変更 */
    align-items: center;
    gap: 25px;
  }

  .nav a {
    font-size: 22px; /* 文字サイズをスマホ用に調整 */
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* 線を少し薄くして上品に */
  }
}
