@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root{
  --bg: #061423;
  --panel: rgba(10, 30, 51, .72);
  --line: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --accent: #4dd0e1;
  --accent2: #d16ba5;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 30% -10%, rgba(77,208,225,.20), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(209,107,165,.12), transparent 55%),
    var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

.siteHeader{
  position: sticky;
  top: 0;
  z-index: 10;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(6,20,35,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand{ display:flex; flex-direction:column; gap:2px; }
.brand__name{ font-weight: 700; letter-spacing:.06em; }
.brand__tag{ font-size: 12px; color: var(--muted); }

.topNav{ display:flex; gap: 14px; font-size: 13px; }
.topNav a{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
}
.topNav a:hover{
  border-color: var(--line);
  color: var(--text);
}

/* HERO */
.hero{
  position: relative;
  min-height: 46vh;
  display:flex;
  align-items:flex-end;
  padding: 34px 20px 34px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: transparent;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("../img/CyberMareBar.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: brightness(1.18) saturate(1.18) contrast(1.06);
  z-index: 0;
}

.hero__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(6,20,35,.18) 0%, rgba(6,20,35,.48) 70%, rgba(6,20,35,.62) 100%),
    radial-gradient(900px 500px at 20% 20%, rgba(77,208,225,.14), transparent 60%),
    radial-gradient(700px 420px at 80% 10%, rgba(209,107,165,.08), transparent 55%);
  z-index: 1;
}

.hero__inner{
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  z-index: 2;
}

.hero__title{
  margin: 0 0 12px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: .02em;
  color: rgba(255,255,255,.96);
  text-shadow:
    0 0 16px rgba(77,208,225,.25),
    0 10px 30px rgba(0,0,0,.45),
    0 2px 14px rgba(0,0,0,.55);
}

.hero__cta{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Buttons (smaller) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  font-size: 13px;
  line-height: 1.2;
}
.btn:hover{ border-color: rgba(77,208,225,.40); }
.btn--primary{
  border-color: rgba(77,208,225,.55);
  background: linear-gradient(180deg, rgba(77,208,225,.18), rgba(255,255,255,.06));
}

.container{
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 60px;
}

/* PANELS */
.panel{
  margin-top: 18px;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel__head h2{
  margin:0;
  font-size: 18px;
}
.muted{
  color: var(--muted);
  margin: 6px 0 0;
}

/* Stage Zero main split */
.subPanel{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.subPanel:first-of-type{
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.subPanel__title{
  margin: 0;
  font-size: 16px;
}
.subPanel__meta{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* PILLS */
.pillGrid{
  margin-top: 12px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  font-size: 13px;
  line-height: 1.2;
  user-select: none;
}
.pill:hover{ border-color: rgba(77,208,225,.35); }

/* drag affordance */
.pill[draggable="true"]{
  cursor: grab;
}
.pill.is-dragging{
  opacity: .55;
  cursor: grabbing;
}
.pillGrid__hint{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.60);
}

/* LIST ITEMS */
.list{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.listItem{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  transition: border-color .18s ease, background .18s ease;
}

.listItem:hover{
  border-color: rgba(77,208,225,.28);
}

.listItem__title{ font-weight: 650; }
.listItem__meta{ color: var(--muted); font-size: 13px; }
.listItem__go{ color: rgba(77,208,225,.95); font-size: 13px; }

/* FOOTER */
.siteFooter{
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.siteFooter__inner{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
}
.siteFooter__links{
  display:flex;
  gap: 12px;
  font-size: 13px;
}
.siteFooter__links a{ color: var(--muted); }
.siteFooter__links a:hover{ color: var(--text); }

/* RESPONSIVE */
@media (max-width: 860px){
  /*.topNav{ display:none; }*/
  .listItem{ grid-template-columns: 1fr; }
  .listItem__go{ justify-self: start; }
  @media (max-width: 860px){
  /* スマホでも右上メニューを表示（2段折り返し） */
  .siteHeader{
    align-items: flex-start; /* 2段になるので上揃え */
  }

  .topNav{
    display: flex;
    flex-wrap: wrap;         /* 2段に折り返す */
    justify-content: flex-end;
    gap: 6px;
    max-width: 72vw;         /* 右側に収める（必要なら 65〜80 で調整） */
    padding-top: 2px;
  }

  .topNav a{
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;     /* ボタン内で改行させない */
  }
}

}

/* MOTION REDUCTION */
@media (prefers-reduced-motion: reduce){
  .listItem{ transition:none; }
  .hero::before{ transform:none; }
}

/* NEWS (compact) */
.newsPanel{
  padding-top: 10px;
  padding-bottom: 10px;
}
.newsPanel .panel__head h2{
  font-size: 15px;
}
.newsBox{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.aboutBox{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
}

/* Side Stories: true free placement canvas */
.freeCanvas{
  position: relative;
  margin-top: 12px;
  height: 360px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.freeCanvas__hint{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.60);
}

.freeCanvas .pill{
  position: absolute;
  width: max-content;
  max-width: 92%;
  touch-action: none;
  cursor: grab;
  user-select: none;
  white-space: nowrap;
}

.freeCanvas .pill:active{
  cursor: grabbing;
}

/* Free canvas controls button text color fix */
.freeCanvas__controls .ctlBtn,
.freeCanvas__controls .btn,
.freeCanvas__controls button{
  color: rgba(255,255,255,.92);
}


@media (max-width: 860px){
  .freeCanvas{ height: 420px; }
}

/* Free canvas controls */
.freeCanvas__controls{
  display:flex;
  gap:8px;
  margin:8px 0 6px;
}
.btn--small{
  padding:6px 10px;
  font-size:12px;
}

/* Anchor offset for sticky header */
#fractus-title,
#chaos-title{
  scroll-margin-top: 96px; /* header height + breathing space */
}


