:root {
  --bg: #050509;
  --panel: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .10);
  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .66);
  --accent: #8a5cff;
  --accent2: #00d4ff;
  --r: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, .55);
  --w: 420px; /* スマホ幅固定（PCでもこの幅） */
}
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  background:
    radial-gradient(520px 420px at 25% 0%, rgba(138, 92, 255, .18), transparent 60%), radial-gradient(520px 420px at 80% 15%, rgba(0, 212, 255, .14), transparent 60%), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* ===== スマホ枠 ===== */
.app {
  width: min(var(--w), 100%);
  margin: 0 auto;
  min-height: 100svh;
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, .06);
  border-right: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .12);
}
/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 5, 9, .62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px calc(10px + env(safe-area-inset-top));
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 13px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 24px rgba(138, 92, 255, .35);
}
.brand b {
  color: #00CDFF;
  margin: 0 0 0 2px;
}
.icon-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:active {
  transform: translateY(1px);
}
/* ===== 検索フォーム：CSSだけでスライド表示 ===== */
.search-toggle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.search-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .22s ease, opacity .18s ease, transform .22s ease;
  will-change: max-height, opacity, transform;
}
/* 開いた状態 */
#searchToggle:checked ~ .header .search-panel {
  max-height: 120px; /* フォームの高さに合わせて調整 */
  opacity: 1;
  transform: translateY(0);
}
/* 見た目 */
.search-form {
  display: flex;
  gap: 10px;
  padding: 10px 0 2px;
}
.search-form input[type="text"] {
  flex: 1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  outline: none;
  width: 80%;
}
.search-form input[type="text"]:focus {
  border-color: rgba(138, 92, 255, .55);
  box-shadow: 0 0 0 4px rgba(138, 92, 255, .14);
}
.search-form input[type="submit"] {
  border: 1px solid rgba(138, 92, 255, .55);
  background: linear-gradient(135deg, rgba(138, 92, 255, .92), rgba(0, 212, 255, .45));
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
}
/* iOSの変な拡大対策（任意） */
.search-form input {
  font-size: 16px;
}
/* ===== CSS-only Drawer（JS無し） ===== */
#navToggle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 50;
  display: none;
}
#navToggle:checked ~ .overlay {
  display: block;
}
.drawer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  top: 0;
  width: min(var(--w), 100%);
  z-index: 60;
  background: rgba(10, 10, 14, .94);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
#navToggle:checked ~ .drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.drawer-inner {
  padding: 16px 14px 18px;
}
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.drawer-title {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .06em;
}
.menu {
  display: grid;
  gap: 10px;
}
.menu a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu a span {
  color: var(--muted);
  font-size: 12px;
}
/* ===== Hero ===== */
.hero {
  position: relative;
}
.hero-kicker {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 8px;
}
.hero-kicker:before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.hero-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: .02em;
}
.hero-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
/* ===== TOP CTA（背景：top_bg.png） ===== */
.cta-wrap {
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .80) 80%, rgba(0, 0, 0, .90) 100%), url("https://dougado.net/images/top_bg.png") center/cover no-repeat;
  min-height: 250px;
  position: relative;
}
.cta-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
}
.cta-head {
  margin: 0 0 10px;
  font-weight: 1000;
  font-size: 22px;
  line-height: 1.25;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .65);
}
.cta-sub {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1.7;
}
.cta-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: .06em;
  border: 1px solid rgba(138, 92, 255, .55);
  background: linear-gradient(135deg, rgba(138, 92, 255, .92), rgba(0, 212, 255, .45));
  box-shadow: 0 14px 40px rgba(138, 92, 255, .18);
}
.cta-note {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  margin-top: 8px;
}
/* ===== Hero card ===== */
.hero-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: 22px;
  padding: 12px 10px 8px;
  box-shadow: var(--shadow);
}
/* ===== Swiper（前のバージョンと同型の見た目） ===== */
.swiper {
  width: 100%;
  padding: 6px 0 18px;
}
.swiper-slide {
  width: 220px;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  position: relative;
}
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-grad {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75));
  z-index: 1;
}
.slide-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  z-index: 2;
}
.slide-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 44px;
  font-weight: 900;
  font-size: 14px;
  z-index: 2;
}
.slide-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  z-index: 2;
}
/* クリック領域（detail/IDへ） */
.slide-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}
.swiper-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 6px;
}
.swiper-button-prev, .swiper-button-next {
  position: static;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  margin: 0;
  color: #fff;
}
.swiper-button-prev:after, .swiper-button-next:after {
  font-size: 14px;
  font-weight: 800;
}
.swiper-pagination {
  position: static;
  width: auto;
  flex: 1;
  text-align: center;
}
.caption {
  border-top: 1px solid var(--line);
  padding: 10px 8px 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cap-t {
  font-weight: 900;
}
.cap-m {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.cap-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 110px;
}
.btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  border-color: rgba(138, 92, 255, .55);
  background: linear-gradient(135deg, rgba(138, 92, 255, .92), rgba(0, 212, 255, .45));
  box-shadow: 0 14px 40px rgba(138, 92, 255, .18);
}
/* ===== Sections ===== */
.section {
  padding: 14px 14px 24px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 12px;
}
.h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: .06em;
  font-weight: 900;
}
.more {
  color: var(--muted);
  font-size: 12px;
}
/* ===== Pickups (3 cards) ===== */
.pickup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.pickup-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  min-height: 150px;
}
.pickup-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pickup-grad {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
  z-index: 1;
}
.pickup-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  z-index: 2;
}
.pickup-title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 32px;
  font-weight: 900;
  font-size: 13px;
  z-index: 2;
}
.pickup-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  z-index: 2;
}
.pickup-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
/* ===== Ranking TOP3 ===== */
.rank {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rank-item {
  display: grid;
  grid-template-columns: 44px 96px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: 16px;
  padding: 10px;
  position: relative;
  overflow: hidden;
}
.rank-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.rank-no {
  font-weight: 1000;
  font-size: 18px;
  text-align: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  padding: 10px 0;
  z-index: 2;
  position: relative;
}
.rank-no.is-1 {
  border-color: rgba(255, 215, 0, .35);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, .08) inset;
}
.rank-no.is-2 {
  border-color: rgba(210, 210, 210, .35);
  box-shadow: 0 0 0 4px rgba(210, 210, 210, .08) inset;
}
.rank-no.is-3 {
  border-color: rgba(205, 127, 50, .35);
  box-shadow: 0 0 0 4px rgba(205, 127, 50, .08) inset;
}
.rank-thumb {
  width: 96px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  z-index: 2;
  position: relative;
}
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rank-text {
  z-index: 2;
  position: relative;
}
.rank-title {
  font-weight: 900;
  font-size: 13px;
}
.rank-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
/* ===== New grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  min-height: 140px;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-grad {
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .76));
  z-index: 1;
}
.card-title {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 28px;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.2;
  z-index: 2;
}
.card-meta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  color: rgba(255, 255, 255, .70);
  font-size: 11px;
  z-index: 2;
}
.card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
/* ===== Bottom nav ===== */
.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 45;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 5, 9, .70);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bn-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.bn-item {
  flex: 1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  border-radius: 14px;
  padding: 10px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  display: block;
  -webkit-tap-highlight-color: transparent;
}
a, button {
  -webkit-tap-highlight-color: transparent;
}
/* ===== Footer links (追加) ===== */
.dg-footer {
  padding: 0 14px 18px;
}
.dg-footer-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.dg-footer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 12px;
  font-weight: 900;
  letter-spacing: .02em;
  background: rgba(0, 212, 255, .10);
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.dg-footer-item:first-child {
  border-top: 0;
}
.dg-footer-item::after {
  content: "\f105"; /* chevron-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* solid */
  color: rgba(255, 255, 255, .70);
  margin-left: auto;
  font-size: 14px;
}
.dg-footer-item:active {
  transform: translateY(1px);
}
.dg-footer-mini {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.dg-footer-mini a {
  color: var(--muted);
}
.dg-footer-mini a:active {
  color: var(--text);
}
.dg-footer-sep {
  color: rgba(255, 255, 255, .28);
}
.dg-footer-copy {
  text-align: center;
  margin-top: 8px;
  color: rgba(255, 255, 255, .70);
  font-size: 12px;
  letter-spacing: .06em;
  font-weight: 900;
}
.swiper-pagination-bullet {
  background: #d5d5d5;
}
/* ===== Coverflow：非アクティブを暗くする ===== */
/* すべてのスライドを少し落ち着かせる */
.swiper-slide {
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
/* 中央（アクティブ）はくっきり */
.swiper-slide-active {
  filter: none;
  opacity: 1;
}
/* 前後のスライドをグレーアウト */
.swiper-slide-prev, .swiper-slide-next {
  filter: grayscale(40%) brightness(0.7);
  opacity: .4;
}
/* それ以外（さらに外側）はもっと落とす */
.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
  filter: grayscale(70%) brightness(0.55);
  opacity: .35;
}
/* ===== TOPスライド：中央に再生アイコン ===== */
.swiper-slide {
  position: relative;
}
.swiper-slide::before {
  content: "\f04b"; /* fa-play */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 42px;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 6px 20px rgba(0, 0, 0, .6);
  pointer-events: none;
  opacity: .85;
  transition: opacity .25s ease, transform .25s ease;
}
/* 中央スライドは強調 */
.swiper-slide-active::before {
  opacity: 1;
  transform: scale(1.05);
}
/* 前後は少し控えめ */
.swiper-slide-prev::before, .swiper-slide-next::before {
  opacity: .6;
}
/* ===== カード系サムネ：中央に再生アイコン ===== */
.card, .pickup-card, .rank-item {
  position: relative;
}
.card::before, .pickup-card::before, .rank-item::before {
  content: "\f04b"; /* fa-play */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: rgba(255, 255, 255, .75);
  text-shadow: 0 4px 14px rgba(0, 0, 0, .6);
  pointer-events: none;
  opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}
/* hover可能な端末だけ少し反応 */
@media (hover:hover) {
  .card:hover::before, .pickup-card:hover::before, .rank-item:hover::before {
    opacity: 1;
    transform: scale(1.05);
  }
}
/* ===== 丸背景付き再生ボタン（YouTube風） ===== */
.swiper-slide::before {
  content: "\f04b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(4px);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .6);
  pointer-events: none;
}
/* ランキング行全体への再生アイコンは無効 */
.rank-item::before {
  content: none;
}
/* ===== ランキング：サムネ中央に再生アイコン ===== */
.rank-thumb {
  position: relative;
}
.rank-thumb::before {
  content: "\f04b"; /* fa-play */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 4px 14px rgba(0, 0, 0, .6);
  pointer-events: none;
  opacity: .9;
}
.rank-thumb::before {
  content: "\f04b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(3px);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
}