/* ================================================================
   トップページ専用スタイル
   ================================================================ */

/* ─── スライダー ──────────────────────────────────── */
.slider-wrap {
  position: relative; width: 100%; height: 540px;
  overflow: hidden;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  cursor: pointer; display: flex; align-items: flex-end;
  visibility: hidden;
}
.slide.active {
  opacity: 1;
  visibility: visible;
}
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  transform: scale(1.04); transition: transform 7s ease;
  filter: brightness(1.01) contrast(1.02);
}
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,14,40,.25) 0%,
    rgba(5,14,40,0) 33%
  );
}
.slide-corner {
  position: absolute; top: 1.4rem; right: 1.6rem;
  width: 28px; height: 28px;
  border-top: 2px solid rgba(255,255,255,.2);
  border-right: 2px solid rgba(255,255,255,.2);
  z-index: 3;
}
.slide-label {
  position: relative; z-index: 4;
  padding: 2rem 2.8rem;
}
.slide-label .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .63rem; letter-spacing: .22em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .6rem;
}
.slide-label .tag::before {
  content: ''; width: 16px; height: 1px; background: currentColor;
}
.slide-label h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.1rem; font-weight: 600;
  color: #fff; line-height: 1.15; letter-spacing: -.015em;
}
.slide-label .sub {
  margin-top: .45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; color: rgba(255,255,255,.5);
  letter-spacing: .05em;
}

/* スライドごとのアクセントカラー */
.slide:nth-child(1) .tag { color: var(--sky); }
.slide:nth-child(2) .tag { color: var(--teal); }
.slide:nth-child(3) .tag { color: var(--amber); }
.slide:nth-child(4) .tag { color: var(--coral); }

/* スライド背景グラデーション
   画像に差し替える場合:
   .slide:nth-child(1) .slide-bg { background-image: url('../images/live2d.jpg'); } */
.slide:nth-child(1) .slide-bg { background-image: url('../images/top_page/live2dhead2.webp'); }
.slide:nth-child(2) .slide-bg { background-image: url('../images/top_page/illst.webp'); }
.slide:nth-child(3) .slide-bg { background-image: url('../images/top_page/kankyouaxela2.webp'); }
.slide:nth-child(4) .slide-bg { background-image: url('../images/top_page/gameayamesamune.webp'); }

/* ドット・プログレスバー・カウンター */
.slider-dots {
  position: absolute; bottom: 1rem; right: 1.8rem;
  display: flex; gap: .5rem; z-index: 10;
}
.dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.28); cursor: pointer;
  transition: background .22s, transform .22s;
}
.dot.active { background: #fff; transform: scale(1.6); }
.slider-progress {
  position: absolute; bottom: 0; left: 0;
  height: 2px; background: var(--sky); z-index: 10;
}
.slide-counter {
  position: absolute; bottom: 1rem; left: 1.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem; color: rgba(255,255,255,.4); z-index: 10;
  letter-spacing: .12em;
}

/* ─── イントロ ────────────────────────────────────── */
.intro {
  display: flex; align-items: flex-start; gap: 1.4rem;
  padding: 3rem 2.8rem 2rem;
}
.intro-icon {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; margin-top: .15rem;
}
.intro p { font-size: 1rem; line-height: 2; color: var(--text); }
.intro p strong { color: var(--text); font-weight: 500; }

.intro a { color: rgb(15, 2, 255);}
.intro a:hover { font-weight: 500;}


/* ─── セクションラベル ────────────────────────────── */
.section-label {
  padding: .4rem 2.8rem 1.1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text);
  display: flex; align-items: center; gap: .9rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── 2×2グリッド ─────────────────────────────────── */
.grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; padding: 0 2.8rem 5rem;
}
.cell {
  background: var(--white);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 0; position: relative; overflow: hidden;
  transition: box-shadow .22s, transform .22s;
}
.cell:hover {
  box-shadow: 0 8px 28px rgba(29,91,255,.1);
  transform: translateY(-3px);
}
.cell:nth-child(1)::before { background: var(--blue); }
.cell:nth-child(2)::before { background: var(--teal); }
.cell:nth-child(3)::before { background: var(--amber); }
.cell:nth-child(4)::before { background: var(--coral); }
.cell::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; z-index: 1;
}
.cell-body {
  padding: 2rem 1.8rem 1.8rem;
  position: relative;
}
.cell-body::after {
  content: ''; position: absolute; bottom: -8px; right: -8px;
  width: 70px; height: 70px;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 9px 9px; opacity: .55;
}
.cell-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  display: flex; align-items: center; gap: .4rem;
}
.cell:nth-child(1) .cell-tag { color: var(--blue); }
.cell:nth-child(2) .cell-tag { color: var(--teal); }
.cell:nth-child(3) .cell-tag { color: var(--amber); }
.cell:nth-child(4) .cell-tag { color: var(--coral); }
.dot-mark {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.cell h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 600;
  line-height: 1.4; margin-bottom: .7rem; letter-spacing: -.01em;
}
.cell p { font-size: 1rem; line-height: 1.9; color: var(--text); }
.cell-img {
  width: 100%; max-height: 500px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 6px; margin-top: 1rem;
}
.cell-img .img-placeholder {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; letter-spacing: .12em;
  color: var(--text); text-align: center; line-height: 1.8;
}
.cell-img img { width: 100%; height: 100%; object-fit: cover; }
.cell-img iframe {
  width: 100%;
  height: 100%;aspect-ratio: 16 / 9;
  border: none;
}
.cell-link {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: 1.1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .67rem; letter-spacing: .06em;
  color: var(--blue); position: relative; z-index: 1;
  transition: gap .16s;
}
.cell-link:hover { gap: .55rem; }
.cell-link::after { content: '→'; }

/* ─── レスポンシブ ────────────────────────────────── */
@media (max-width: 640px) {
  .slider-wrap { height: 300px; }
  .slide-label h2 { font-size: 1.55rem; }
  .intro { padding: 2rem 1rem 1.5rem; gap: .9rem; }
  .section-label { padding: .4rem 1rem 1rem; }
  .grid { grid-template-columns: 1fr; padding: 0 1rem 3rem; gap: 10px; }
}