/* =========================================================
   common.css
   ---------------------------------------------------------
   [01] Root / Base
   [02] Hero Header
   [03] Hamburger Button + SP Position
   [04] Drawer Menu + Backdrop
   [05] Page Layout
   [15] Footer
   [16] Responsive (common only) + Reduced Motion
========================================================= */

/* =========================================================
   [01] Root / Base
========================================================= */
:root{
  --bg1:#0a1220;
  --bg2:#05070b;
  --text:#e9eef6;
  --muted:#a8b3c7;
  --gold:#f2b300;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius: 14px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP",
               Segoe UI, Roboto, sans-serif;
  color: var(--text);
  min-height:100vh;
  overflow-x:hidden;
  position: relative;
  z-index: 0;
}

/* 背景をビューポート固定で描画 */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(1100px 700px at 20% 15%, rgba(90,130,210,.22), transparent 60%),
    radial-gradient(1000px 700px at 80% 30%, rgba(110,80,190,.16), transparent 60%),
    radial-gradient(900px 650px at 40% 85%, rgba(70,130,120,.12), transparent 60%),
    radial-gradient(1200px 900px at 50% 50%, rgba(14,20,36,.25), transparent 65%),
    linear-gradient(
      180deg,
      rgb(14,18,32),
      rgb(8,12,22)
    );
}


a{ color:inherit; text-decoration:none; }
button{ font:inherit; }

/* =========================================================
   [02] Hero Header
========================================================= */
.page-hero{
  position:relative;
  padding: 30px 18px 18px;
  text-align:center;
}

.page-hero__inner{
  position:relative;
  max-width: 1280px; /* 表を広げるためにヘッダ側も少し広め */
  margin: 0 auto;
}

.page-hero__en{
  margin: 0 0 8px;
  letter-spacing:.14em;
  font-weight:600;
  color: rgba(233,238,246,.65);
}

.page-hero__jp{
  margin: 0;
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 750;
  letter-spacing:.04em;
  text-shadow: 0 10px 30px rgba(0,0,0,.6);
}

/* =========================================================
   [03] Hamburger Button
========================================================= */
.hamburger{
  position:fixed;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: rgba(255,255,255,.80);
  display:grid;
  place-items:center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  cursor:pointer;
  z-index: 9999;            /* ← 最前面に固定 */
}

.hamburger__bar{
  display:block;
  width: 20px;
  height: 2px;
  background:#111827;
  border-radius: 99px;
  margin: 0;
}

.hamburger__bar:nth-child(1){
  transform: translateY(5px);
}
.hamburger__bar:nth-child(3){
  transform: translateY(-5px);
}

/* =========================================================
   [03a] Hamburger Position (SP)
========================================================= */
@media (max-width: 720px){
  .hamburger{
    top: 10px;
    right: 10px;
  }
}

/* =========================================================
   [04] Drawer Menu + Backdrop
========================================================= */
.drawer{
  position:fixed;
  top:0;
  right:0;
  width: min(320px, 86vw);
  height:100vh;
  background: rgba(15, 23, 40, .94);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255,255,255,.08);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
}

.drawer__list{
  list-style:none;
  padding: 0px 0 0;
  margin:0;
  display:grid;
  gap: 10px;
}

.drawer__link{
  display:block;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.drawer__link:hover{
  background: rgba(255,255,255,.08);
}

.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  z-index: 40;
  border:0;
}

.is-drawer-open .drawer{ transform: translateX(0); }

/* =========================================================
   [05] Page Layout
========================================================= */
.page{
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 14px 28px;
}

/* =========================================================
   [15] Footer
========================================================= */
.site-footer{
  padding: 22px 14px 30px;
}

.site-footer__inner{
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
  color: rgba(233,238,246,.6);
  text-align:center;
}

/* =========================================================
   [16] Responsive (common only)
========================================================= */
@media (max-width: 1080px){
  /* common側ではタイポのみ（表のレスポンシブは results.css に寄せる） */
}

/* 720px以下でも common側は特に変更なし */
@media (max-width: 720px){
  /* no-op */
}

/* 動きが苦手な人向け */
@media (prefers-reduced-motion: reduce){
  .drawer{ transition:none; }
}
