:root{
  --bg:#0b1020;
  --panel: rgba(255,255,255,.08);
  --panel2: rgba(255,255,255,.06);
  --text:#f6f7fb;
  --muted: rgba(255,255,255,.78);
  --accent:#f2c94c;
  --border: rgba(255,255,255,.12);
}
*{box-sizing:border-box}
html,body{height:100%}
body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, -apple-system, sans-serif;
  background: #080b16;
  color: var(--text);
}
a{color:inherit; text-decoration:none}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{display:flex; align-items:center; gap:10px;}
.logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-dot{width:12px; height:12px; border-radius:50%; background: var(--accent);}
.brand-title{line-height:1.1}
.brand-title b{display:block; color:#111; font-size:14px}
.brand-title span{display:block; color:#444; font-size:12px}

.nav{display:flex; gap:14px; flex-wrap:wrap; justify-content:flex-end}
.nav a{
  color:#222;
  font-size:13px;
  padding:8px 10px;
  border-radius:999px;
}
.nav a.active{background: rgba(242,201,76,.55);}
.nav a:hover{background: rgba(0,0,0,.05)}

/* Main */
.container{max-width:1100px; margin:0 auto; padding:26px 16px 60px;}

/* Top logo (always visible) */
.toplogo{display:flex; justify-content:center; align-items:center; padding:18px 0 12px;}
.toplogo img{width:min(680px,92vw); height:auto; display:block; filter:drop-shadow(0 10px 24px rgba(0,0,0,0.25));}

.hero{
  display:flex;
  flex-direction:column;
  gap:18px;
}
@media (max-width: 900px){
  .hero{grid-template-columns:1fr;}
}

.copy{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px 18px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(242,201,76,.18);
  border:1px solid rgba(242,201,76,.35);
  color: rgba(255,255,255,.95);
  font-size:12px;
  letter-spacing:.02em;
}
.h1{
  margin:12px 0 10px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height:1.18;
  color:#ffffff;
  font-weight:900;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.lead{
  margin:0 0 14px;
  color: var(--muted);
  font-size:14px;
  line-height:1.8;
}

/* Photo grid */
.gallery{
  background: var(--panel2);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.gallery-head{
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--border);
}
.gallery-head b{font-size:14px}
.gallery-head span{font-size:12px; color: var(--muted)}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:10px;
  padding:16px;
}
.tile{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.2);
  /* 12枚でも見やすいサイズ感にするため、基本は横4カラム幅 */
  grid-column: span 4;
  min-height:140px;
}
.tile img{
  width:100%; height:100%; object-fit:cover; display:block;
  transform: scale(1.01);
}
.tile::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.00) 45%, rgba(0,0,0,.55) 100%);
  pointer-events:none;
}
.caption{
  position:absolute;
  left:12px; right:12px; bottom:10px;
  font-size:12px;
  color:#fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
  opacity:.95;
}

/* Layout for first 5 tiles (cool collage). Others flow */
.tile.n1{grid-column: span 7; grid-row: span 2; min-height:300px;}
.tile.n2{grid-column: span 5; min-height:145px;}
.tile.n3{grid-column: span 5; min-height:145px;}
.tile.n4{grid-column: span 4; min-height:145px;}
.tile.n5{grid-column: span 4; min-height:145px;}
.tile.n6{grid-column: span 4; min-height:145px;}
@media (max-width: 900px){
  /* スマホは1列で縦並び */
  .tile{grid-column: span 12;}
  .tile.n1{grid-column: span 12; min-height:260px;}
  .tile.n2,.tile.n3{grid-column: span 12;}
  .tile.n4,.tile.n5,.tile.n6{grid-column: span 12;}
}

.note{
  padding:0 16px 16px;
  color: var(--muted);
  font-size:12px;
  line-height:1.7;
}

/* Video */
.section-title{margin:30px 0 10px; font-size:18px; font-weight:800;}
.video-wrap{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.video-aspect{
  position:relative;
  width:100%;
  padding-top:56.25%;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
}
.video-aspect iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  margin-top:10px;
  padding:10px 14px;
  border-radius:12px;
  background: rgba(255,255,255,.92);
  color:#111;
  font-weight:700;
  font-size:13px;
  border:1px solid rgba(0,0,0,.06);
}

.footer{margin-top:28px; color: rgba(255,255,255,.55); font-size:12px}
/* ===============================
   トップページ：円陣12枚ギャラリー
=============================== */
.top-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4列 × 3行 */
  gap: 14px;
}

.top-grid img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
/* ===== スマホ対応 ===== */
@media (max-width: 768px) {

  .nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .nav a {
    font-size: 14px;
  }

  .brand-title b {
    font-size: 14px;
  }

  .brand-title span {
    font-size: 12px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  .container,
  .page-wrap {
    padding: 12px;
  }
}
/* ===== スマホ用ヘッダー調整 ===== */
@media (max-width: 480px) {
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav a{
    display: block;
    padding: 10px 0;
  }
}
/* スマホではロゴの黄色ドットを非表示 */
@media (max-width: 480px) {
  .logo-dot {
    display: none;
  }
}
/* スマホではナビ（グレー）を下に回す */
@media (max-width: 480px) {

  header.header {
    order: 2;
  }

  main.container {
    order: 1;
  }

  body {
    display: flex;
    flex-direction: column;
  }
}
/* 戦歴テーブルをスマホでも整える */
.table-wrap {
  overflow-x: auto;
}

table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.table th,
table.table td {
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

table.table th:nth-child(1),
table.table td:nth-child(1) {
  width: 60px;   /* 年度 */
}

table.table th:nth-child(2),
table.table td:nth-child(2) {
  width: 180px;  /* 大会 */
  white-space: normal;
  text-align: left;
}

table.table th:nth-child(3),
table.table td:nth-child(3) {
  width: 70px;   /* 結果 */
}

table.table th:nth-child(4),
table.table td:nth-child(4) {
  width: 60px;   /* 期 */
}