
/* === ESPORTS CAFE 5G — Responsive Styles (Desktop + Mobile) === */
/* Base */
:root{--bg:#090c12;--ink:#eaf2ff;--muted:#a7b3cf;--neon:#33e3ff;--neon2:#7b6cff}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:'Inter','Noto Sans JP',system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;-webkit-text-size-adjust:100%}
img{max-width:100%;height:auto;display:block}
.wrap{width:min(1100px,92%);margin-inline:auto}

/* Header & Nav */
.hdr{position:sticky;top:0;z-index:50;background:rgba(10,14,26,.6);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.06)}
.hdr .row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px}
.hdr .brand{display:flex;gap:8px;align-items:center;color:#fff;text-decoration:none;font-weight:900}
.hdr .brand-logo{height:28px;width:auto;display:block}
.brandtxt{opacity:.9;letter-spacing:.02em}
.nav{display:flex;gap:18px}
.nav a{display:inline-block;color:#fff;text-decoration:none;opacity:.9;transition:color .25s}
.nav a .en{display:block;font-size:.9rem;font-weight:800}
.nav a .jp{display:block;font-size:.72rem;opacity:.85}
.nav a:hover{color:var(--neon);opacity:1}
.hamb{display:none;background:transparent;border:0;width:40px;height:40px;padding:0;gap:5px;flex-direction:column;justify-content:center}
.hamb span{display:block;height:2px;background:#cfe6ff;border-radius:2px}

/* Hero */
.hero{position:relative;min-height:80vh;display:flex;align-items:center;justify-content:center;text-align:center;color:#fff}
.hero::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.45)}
.hero-inner{position:relative;z-index:1;padding:24px 0}
.glow{font-size:clamp(28px,7vw,64px);font-weight:900;text-shadow:0 0 16px rgba(51,227,255,.5)}
.lead{opacity:.9;margin:8px 0 16px;font-size:clamp(14px,2.8vw,18px)}

/* Buttons */
.btn{display:inline-block;padding:12px 18px;border-radius:12px;border:1px solid #27469a;text-decoration:none;color:#fff;line-height:1}
.btn.primary{background:linear-gradient(135deg,var(--neon),var(--neon2));border-color:transparent;color:#08111f;font-weight:800}
.btn.big{padding:14px 20px}
.btn:active{transform:translateY(1px)}

/* Sections / Cards */
.panel{padding:28px 0}
.panel.alt{background:linear-gradient(180deg,rgba(12,16,30,.5),rgba(12,16,30,.72))}
.st{font-size:clamp(20px,4.8vw,26px);margin:0 0 14px}
.muted{color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.card{border-radius:16px;padding:16px}
.glass{background:linear-gradient(180deg,rgba(10,12,24,.72),rgba(10,14,30,.94));border:1px solid rgba(120,160,255,.25);box-shadow:0 10px 30px rgba(0,0,0,.3)}

/* Gallery 3×2 desktop — 2col tablet — 1col mobile */
.img-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:20px}
.img-grid figure{margin:0;border-radius:14px;overflow:hidden;aspect-ratio:4/3;background:#0b1020;border:1px solid rgba(120,160,255,.25);box-shadow:0 8px 24px rgba(0,0,0,.35)}
.img-grid img{width:100%;height:100%;object-fit:cover;cursor:zoom-in;transition:transform .3s ease}
.img-grid img:hover{transform:scale(1.04)}

/* Price table */
.table-wrap{overflow-x:auto;border-radius:12px;border:1px solid rgba(120,160,255,.25)}
.price-table{width:100%;min-width:680px;border-collapse:separate;border-spacing:0;background:rgba(0,0,0,.38)}
.price-table thead{background:linear-gradient(90deg,rgba(0,255,255,.2),rgba(123,108,255,.2));font-weight:800}
.price-table th,.price-table td{padding:12px 14px;border:1px solid rgba(120,160,255,.25);text-align:center}
.price-table tbody tr:nth-child(odd){background:rgba(255,255,255,.05)}

/* Contact form */
.contact-card{border-radius:18px;background:linear-gradient(180deg,rgba(8,10,22,.65),rgba(10,14,30,.92));border:1px solid rgba(120,160,255,.28);box-shadow:0 18px 40px rgba(0,0,0,.35), 0 0 24px rgba(51,227,255,.12) inset;padding:18px}
.gform{display:grid;gap:14px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.fi{display:grid;gap:8px}
.fi > span{color:#eaf2ff;font-weight:700;letter-spacing:.02em}
.fi b{color:#ff648a}
.gform input,.gform textarea{width:100%;color:#eaf2ff;background:#0d1222;border:1px solid rgba(120,160,255,.25);border-radius:12px;padding:14px 14px;outline:none;font-size:16px;transition:border-color .2s, box-shadow .2s, background .2s}
.gform textarea{resize:vertical;min-height:140px}
.gform input:focus,.gform textarea:focus{border-color:#33e3ff;box-shadow:0 0 0 3px rgba(51,227,255,.25);background:#0b1020}
.actions{display:flex;align-items:center;gap:12px;margin-top:6px}
.status{color:#a7b3cf}
.status.ok{color:#37e689}.status.err{color:#ff6b8a}

/* Footer */
.ftr{border-top:1px solid rgba(255,255,255,.08);padding:16px 0;background:#090c12}
.ftr p{margin:0;color:#aab8d6}

/* Lightbox */
.lightbox{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.86);opacity:0;pointer-events:none;transition:opacity .25s ease}
.lightbox.active{opacity:1;pointer-events:auto}
.lightbox img{max-width:min(92vw,1200px);max-height:90vh;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.6);animation:lb-zoom .25s ease}
@keyframes lb-zoom{from{transform:scale(.92);opacity:.2}to{transform:scale(1);opacity:1}}
.lightbox .caption{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);color:#eaf2ff;background:rgba(10,14,30,.6);border:1px solid rgba(120,160,255,.35);border-radius:10px;padding:8px 12px}
.lightbox .nav{position:fixed;inset:0;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.lightbox .btn{pointer-events:auto;width:56px;height:56px;margin:0 10px;border-radius:50%;border:1px solid rgba(120,160,255,.35);background:rgba(10,14,30,.6);color:#eaf2ff;font-size:26px;font-weight:800;display:grid;place-items:center;cursor:pointer}
.lightbox .close{position:fixed;top:16px;right:16px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(120,160,255,.35);background:rgba(10,14,30,.6);color:#eaf2ff;font-size:22px;display:grid;place-items:center;cursor:pointer}

/* Responsive */
@media (max-width:1024px){.img-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}}
@media (max-width:960px){
  .nav{position:fixed;inset:56px 0 0 0;background:rgba(6,8,16,.96);display:none;flex-direction:column;padding:18px 24px;gap:14px}
  .nav.open{display:flex}
  .hamb{display:flex}
  .hdr .brand-logo{height:26px}
  .cards{grid-template-columns:1fr}
  .row2{grid-template-columns:1fr}
  .panel{padding:24px 0}
  .img-grid{gap:16px}
}
@media (max-width:560px){
  .img-grid{grid-template-columns:1fr}
  .st{margin-bottom:10px}
  .btn.big{padding:13px 18px}
  .lightbox .btn{width:48px;height:48px}
}
/* === Gallery 滚动出现 === */
.img-grid figure.reveal{
  opacity:0;
  transform: translateY(16px) scale(.98);
  filter:saturate(.85);
  transition: opacity .5s ease, transform .6s ease, filter .6s ease;
}
.img-grid figure.reveal.show{
  opacity:1;
  transform:none;
  filter:saturate(1);
}
/* 轻微错峰 */
.img-grid figure.reveal:nth-child(2n){ transition-delay:.06s; }
.img-grid figure.reveal:nth-child(3n){ transition-delay:.12s; }
/* === Mobile gallery polish === */
.img-grid img{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio: 4/3;      /* 统一比例，防止抖动 */
  object-fit: cover;
}

/* 手机/平板的栅格与留白 */
@media (max-width: 768px){
  .img-grid{ gap:12px; padding:0 10px; }
}
@media (min-width: 641px) and (max-width: 900px){
  .img-grid{ display:grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .img-grid{ display:grid; grid-template-columns: 1fr; }
}

/* 横向滑动版本（方案B）的移动端细节 */
.img-grid.scroll-x{
  -webkit-overflow-scrolling: touch;  /* iOS 惯性 */
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.img-grid.scroll-x::-webkit-scrollbar{ display:none; }
.img-grid.scroll-x > figure{ width:min(88vw, 420px); }
@media (min-width:1024px){
  .img-grid.scroll-x > figure{ width:min(420px, 32vw); }
}

/* 减少动效时的可访问性 */
@media (prefers-reduced-motion: reduce){
  .img-grid figure.reveal{ transition:none; opacity:1; transform:none; filter:none; }
}
