:root{
  --bg:#0b0b0c;
  --line:#e8e8ea;
  --brand:#00c7f1;
  --brand2:#00a9cc;
  --max:1100px;
}


body{
  margin:0;
  font-family:"M PLUS 1p",system-ui,-apple-system,sans-serif;
  background:#fff;
  color:#111;
  line-height:1.8;
}

.wrap{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

/* ===== column01と同じヘッダー ===== */
.topbar{
  background:var(--bg);
  color:#fff;
}
.topbar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:#fff;
}
.brand img{
  width:40px;
  height:40px;
  border-radius:10px;
}
.name{font-weight:800;}
.tag{font-size:12px;color:rgba(255,255,255,.7);}
.nav{display:flex;gap:10px;flex-wrap:wrap;}
.nav a{
  color:#fff;
  text-decoration:none;
  font-size:13px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
}

/* ===== ヒーロー ===== */
.hero{
  padding:60px 0;
  background:linear-gradient(180deg,#111,#000);
  color:#fff;
  text-align:center;
}
.hero h1{
  font-size:32px;
  margin-bottom:20px;
}
.hero p{
  max-width:800px;
  margin:0 auto;
  font-size:16px;
  color:#ddd;
}

/* ===== 新着カード ===== */
.news-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}
.news-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px;
  background:#fafafa;
}
.news-card a{
  text-decoration:none;
  color:var(--brand);
  font-weight:bold;
}

/* ===== コラム & ゲーム共通カード ===== */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}
.card{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 20px rgba(0,0,0,.05);
}
.thumb{
  height:160px;
  overflow:hidden;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.content{
  padding:20px;
}
.card h3{margin:0 0 10px;font-size:18px;}
.card p{font-size:14px;color:#444;margin-bottom:14px;}
.card a{color:var(--brand);text-decoration:none;font-weight:bold;}
.card a:hover{text-decoration:underline;}

/* ===== ボタン ===== */
.more-btn{
  text-align:center;
  margin:40px 0;
}
.more-btn a{
  display:inline-block;
  padding:14px 30px;
  background:#000;
  color:#fff;
  text-decoration:none;
  border-radius:30px;
  font-weight:bold;
}
.more-btn a:hover{opacity:.8;}

.view-btn{
  display:inline-block;
  padding:8px 14px;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  background:var(--brand);
  color:#fff !important;
  border-radius:999px;
}

.view-btn:hover{
  background:var(--brand2);
  color:#fff !important;
}


footer{
  margin-top:80px;
  padding:30px 0;
  text-align:center;
  font-size:13px;
  color:#666;
  border-top:1px solid #ccc;
}
footer a{
  color:#666;
  text-decoration:none;
  margin:0 8px;
}

/* ===== Breadcrumb ===== */
.breadcrumb{
  font-size:13px;
  margin:25px 0 15px;
}
.breadcrumb a{
  text-decoration:none;
  color:var(--brand);
}

/* ===== Category Header ===== */
.category-header h1{
  font-size:26px;
  margin:0 0 10px;
}
.category-desc{
  background:#fff;
  padding:20px;
  border-radius:16px;
  border:1px solid var(--line);
  margin-bottom:30px;
}

/* ===== Article Grid ===== */
.article-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap:22px;
}
.article-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 10px 28px rgba(0,0,0,.05);
  display:flex;
  flex-direction:column;
}
.thumb{
  width:100%;
  height:170px;
  overflow:hidden;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.article-body{
  padding:18px;
}
.meta{
  font-size:12px;
  color:#666;
  margin-bottom:6px;
}
.article-body h2{
  margin:0 0 8px;
  font-size:17px;
}
.article-body p{
  margin:0;
  font-size:14px;
  color:#333;
}
.article-body a{
  text-decoration:none;
  color:#111;
}
.article-body a:hover{
  color:var(--brand2);
}

/* ===== Page Header ===== */
.page-header h1{
  font-size:26px;
  margin:0 0 10px;
}
.page-desc{
  background:#fff;
  padding:20px;
  border-radius:16px;
  border:1px solid var(--line);
  margin-bottom:30px;
}

/* ===== Game Grid ===== */
.game-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap:22px;
}
.game-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 10px 28px rgba(0,0,0,.05);
  display:flex;
  flex-direction:column;
}
.thumb{
  width:100%;
  height:170px;
  overflow:hidden;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.game-body{
  padding:18px;
}
.meta{
  font-size:12px;
  color:#666;
  margin-bottom:6px;
}
.game-body h2{
  margin:0 0 8px;
  font-size:17px;
}
.game-body p{
  margin:0 0 12px;
  font-size:14px;
  color:#333;
}

/* ===== ハンバーガー完全修正版 ===== */

.menu-toggle{
  display:none;
  font-size:28px;
  cursor:pointer;
  user-select:none;
}

@media(max-width:768px){

  .topbar-inner{
    flex-direction:row;
  }

  .menu-toggle{
    display:block;
    color:#fff;
  }

  .nav{
    display:none;
    position:absolute;
    top:60px;
    left:0;
    width:100%;
    background:#000;
    flex-direction:column;
    padding:20px;
    gap:15px;
    z-index:999;
  }

  .nav.active{
    display:flex;
  }

  .nav a{
    background:none;
    border:none;
    padding:10px 0;
    font-size:16px;
  }
}

/* 初期状態 */
.ad-sp { display: none; }
.ad-pc { display: block; }

/* スマホ時 */
@media screen and (max-width: 768px) {
  .ad-sp { display: block; }
  .ad-pc { display: none; }
}