/* ============================================================
   style.css — 全スタイル（共通 + トップページ）
   他のページ用CSSはこのファイルの末尾に追記するか、
   別ファイルを作ってstyle.cssの後に読み込む
   ============================================================ */

/* ─── CSS変数 ─────────────────────────────────────── */
:root {
  --bg: #f5f8ff;
  --white: #ffffff;
  --navy: #0b1f4a;
  --blue: #1d5bff;
  --nav-bg: #0047cc;
  --sky: #38b6ff;
  --teal: #00c9b1;
  --coral: #ff5e5e;
  --amber: #ffb400;
  --border: #d6e1f5;
  --text: #050e1d;
  --muted: #51688b;
}

/* ─── リセット ────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ─── ベース ──────────────────────────────────────── */
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(29, 91, 255, .08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 110%, rgba(56, 182, 255, .07) 0%, transparent 55%);
}

.container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 0px;
  /* 端の余白 */
}

/* ================================================================
   共通パーツ — nav・footer（全ページで使いまわす）
   ================================================================ */

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 48px;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  gap: 2px;
  min-width: 0px;
  /* 中身の合計幅に合わせて、nav自体の背景も広がるようにする */
  width: 100%;
}

nav::before {
  content: '◈';
  font-size: 1.3rem;
  color: rgba(255, 255, 255, .9);
  margin-right: .4rem;
  flex-shrink: 0;
}

.nav-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: .05em;
  margin-right: 1.1rem;
  flex-shrink: 0;
  white-space: nowrap;
}

nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  letter-spacing: .07em;
  color: rgba(255, 255, 255, .88);
  font-weight: 500;
  padding: .3rem .8rem;
  border-radius: 4px;
  transition: all .16s;
  white-space: nowrap;
}

nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .15);
}

nav a.active {
  color: var(--nav-bg);
  background: #fff;
  font-weight: 600;
}

@media (max-width: 840px) {
  nav {
    flex-wrap: wrap;
    padding: .1rem;
    overflow-x: hidden;
    gap: 0;
    height: auto;
    padding: 0
  }

  nav a {
    font-size: 0.7rem;
  }

  nav .nav-title {
    font-size: 0rem;
  }

  nav::before {
    display: none;
  }

  footer {
    padding: 1.5rem 1rem;
  }
}


/* ─── FOOTER ──────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--muted);
  padding: 2rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer .copy {
  font-family: 'JetBrains Mono', monospace;
}

footer .footer-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

footer .footer-links a {
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: color .16s;
}

footer .footer-links a:hover {
  color: var(--blue);
}

footer .legal-notice {
  width: 100%; /* 強制的に改行させる */
  font-size: 0.65rem; /* 既存の .72rem より一回り小さく */
  color: var(--muted);
  opacity: 0.6; /* さらに色を薄くして存在感を抑える */
  line-height: 1.5;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* 非常に薄い線で区切る（任意） */
  padding-top: 0.5rem;
}
/* ─── ページヘッダー ──────────────────────────── */
.page-hero {
  padding: 3.5rem 2.8rem 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-hero-left .page-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.page-hero-left .page-tag::before {
  content: '';
  width: 16px;
  height: 1px;
  background: currentColor;
}

.page-hero-left h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.page-hero-left .page-sub {
  margin-top: .5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .06em;
}


/* ─── Live2D ──────────────────────────── */
#live2d-container {
  position: fixed;
  width:100vw;
  height: 50vh;
  bottom: -10px;
  right: -30vw;
  z-index: 1000;
  pointer-events: none;
}

/* Live2D hosi */
.star-obj {
  position: fixed;
  width: 48px;
  height: 48px;
  pointer-events: none;
  transform-origin: center center;
  user-select: none;
  z-index: 9999;
}

.star-obj img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 9999;
}

.hit-area {
  position: fixed;
  width: 192px;
  height: 192px;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: center center;
  z-index: 9999;
}
/*Youtubeなどカーソル座標とるためクリックするまで。クリックしたらYoutubeなど優先になるjavascript別途用意 */


@media (pointer: coarse) {
  body {/* 1. 青いハイライトを消す */
    -webkit-tap-highlight-color: transparent;

  }
}
