body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  padding-top: 60px;
}

h1{
    color:#fff;
    font-size:24px;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: #007991;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* 他より上に */
}


/* ここから下がハンバーガーメニューに関するCSS */
  
/* チェックボックスを非表示にする */
.drawer_hidden {
  display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer_open {
  display: flex;
  height: 60px;
  width: 60px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 100;/* 重なり順を一番上にする */
  cursor: pointer;
  margin-right: 20px;
}

/* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: '';
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: #fff;
  transition: 0.5s;
  position: absolute;
}

/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
  bottom: 8px;
}

/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
  top: 8px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer_input:checked ~ .drawer_open span {
  background: rgba(255, 255, 255, 0);
}

/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer_input:checked ~ .drawer_open span::before {
  bottom: 0;
  transform: rotate(45deg);
  background:#2D2D2D
}

#drawer_input:checked ~ .drawer_open span::after {
  top: 0;
  transform: rotate(-45deg);
  background:#2D2D2D
}
  
/* メニューのデザイン*/
.nav_content {
  width: 80%;
  height: 100%;
  position: fixed;
  top: 0;
  right: -80%;
  left: auto; /* メニューを画面の外に飛ばす */
  z-index: 99;
  background: #dfd55a;
  transition: .5s;
}

/* メニュー黒ポチを消す */
.nav_list {
  list-style: none;
}

/* アイコンがクリックされたらメニューを表示 */
#drawer_input:checked ~ .nav_content {
  right: 0;/* メニューを画面に入れる */
}

.nav_item a,
.nav_item a:visited {
  display: block;
  position: relative;
  text-decoration: none;
  color: #2D2D2D;
  font-size: 20px;

  padding: 20px 0px;   /* クリックしやすい余白。左右もつけると自然 */
  line-height: 1.0;
}

/* 線：左右20px内側、文字のすぐ下あたりに */
.nav_item a::after {
  content: "";
  position: absolute;
  left: 0px;
  right: 30px;

  top: calc(20px + 1em + 6px); 
  height: 2px;
  background: #2d2d2d;
}

.recommend {
    background-color: #E1F7FD;
    padding: 20px;
    text-align: center;
}

.recommend img {
    width: 90%;
    margin-top: 40px;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 4px 5px rgba(0,0,0,0.2);
    border-radius: 8px;
}

.recommend h4 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #2D2D2D;
}

.zoom-box {
  display: inline-block;
  overflow: hidden;
}
.c-bnr.zoom {
  display: block;
  transition-duration: .5s;
}
.c-bnr.zoom:hover {
  transform: scale(1.1);
}

/* セクション全体（背景） */
.news {
  background: #244C5D;
  padding: 40px 20px;
  text-align: center;
}

/* 見出し：上下にライン */
.news_title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px;
  padding: 14px 0;
  border-top: 2px solid rgba(255,255,255,0.8);
  border-bottom: 2px solid rgba(255,255,255,0.8);
}

/* 中央の角丸ボックス */
.news_box {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 6px 0;
  overflow: hidden; /* 仕切り線が角丸からはみ出ないように */
}

/* リストの黒ポチ消す */
.news_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 1行（左：日付、右：タイトル） */
.news_item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

/* 行の区切り線（2行目以降） */
.news_item + .news_item {
  border-top: 1px solid #D9D9D9;
}

/* 日付 */
.news_date {
  flex: 0 0 auto;
  color: #244C5D;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

/* タイトル（リンク） */
.news_link,
.news_link:visited {
  flex: 1;
  text-align: left;
  color: #244C5D;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;

  overflow: hidden;              /* はみ出し隠す */
  display: -webkit-box;          /* ↓ 2行制限のため */
  -webkit-box-orient: vertical;  
  -webkit-line-clamp: 2;         /* ← 2行まで */
}

/* ホバー（任意） */
.news_link:hover {
  text-decoration: underline;
}
 

/* セクション背景 */
.games {
  background: #3B5E92;
  padding: 40px 20px;
}

/* 見出し：上下ライン（角丸なし） */
.games_title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
  padding: 14px 0;
  border-top: 2px solid rgba(255,255,255,0.85);
  border-bottom: 2px solid rgba(255,255,255,0.85);
}

/* カード並び：画面幅で列数が自動調整 */
.games_grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* カード本体（クリック領域） */
.game_card {
  opacity: 0;
  transform: translateY(80px);

  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 4px rgba(0,0,0,0.1);

  /* ✅ ここを1回だけにまとめる */
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    box-shadow 0.15s ease;
  
  /* カクつき軽減（GPUに乗せる） */
  will-change: transform, opacity;
}

.game_card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ホバーはtransformじゃなくて影だけにすると滑らか（任意） */
.game_card:hover {
  box-shadow: 0 6px 10px rgba(0,0,0,0.12);
}

/* サムネ領域（仮） */
.game_thumb_img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ② タイトル帯 */
.game_label {
  background: #dfd55a;
  padding: 12px 14px;
}

/* ② タイトル文字：色 #2d2d2d + 外側白縁取り */
.game_label_text {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #2D2D2D;
  line-height: 1.2;

  /* 白縁取り（互換性高めのやり方） */
  text-shadow:
    -1px -1px 0 #fff,
     0px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  0px 0 #fff,
     1px  0px 0 #fff,
    -1px  1px 0 #fff,
     0px  1px 0 #fff,
     1px  1px 0 #fff;
}

/* スマホで1列に寄せたいなら（任意） */
@media (max-width: 420px) {
  .games_grid {
    grid-template-columns: 1fr;
  }
}

.footer {
  background: #C4D2E9;
  padding: 40px 20px;
  text-align: center;
}

/* リンクを横並びに */
.footer_links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}

/* リンクの色 */
.footer_link,
.footer_link:visited {
  color: #566F74;
  font-size: 16px;
  text-decoration: underline; /* 下線OKなら明示してもいい */
}

/* ホバー（少し濃くするのもアリ） */
.footer_link:hover {
  opacity: 0.7;
}

/* コピーライト */
.footer_copy {
  font-size: 14px;
  color: #566F74;
  margin: 0;
}

@media (max-width: 420px) {
  .footer_links {
    flex-direction: column;
    gap: 12px;
  }
}

h1 {
  font-weight: 900;
}

.nav_item{
  font-weight: 700;
}

.news_title,
.games_title
{font-weight: 900;
}

html {
  scroll-behavior: smooth;
}

#games { scroll-margin-top: 60px; }

#news { scroll-margin-top: 60px; }