/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BASE ===== */
body {
  background: #0b0b0b;
  color: #eaeaea;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;      /* 横方向の中央寄せは維持 */
  justify-content: flex-start; /* 縦は上から並べる（スクロール可能に） */
  min-height: 100vh;        /* 100vh固定はやめて最小高さに */
  text-align: center;
  letter-spacing: 0.05em;
  padding: 1.5rem;
}

/* コンテンツを前面に（キャンバスの上）& 下に伸びる余白を受ける */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;         /* 見やすい最大幅（お好みで） */
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;           /* 余白はmainが受けてフッターを下へ押す */
}

/* 星キャンバスをフルスクリーン&最背面 */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none; /* クリック操作を邪魔しない */
}

/* ===== TITLES ===== */
.formal-name {
  margin-top: 3rem; /* ロゴ上の余白 */
  margin-bottom: 0; /* threeiとの距離はロゴ側で調整 */
  letter-spacing: 0.15em;
  color: #6e8597;   /* 差し色（テキスト時の名残。img使用時は無視されます） */
  font-weight: 600;
  font-size: 4.5rem; /* 参考値：テキスト時のみ有効 */
}

/* ロゴ画像のサイズと下余白（threeiとの距離） */
.formal-name img {
  width: 100px;         /* お好みで 120 / 140 などに */
  height: auto;
  display: block;
  margin: 0 auto 0.09em;  /* 下のthreeiとの距離を微調整 */
}

/* モバイル時のロゴサイズ */
@media (max-width: 600px) {
  .formal-name img { width: 80px; }
}

.main-title {
  margin-top: 0;
  margin-bottom: 0.3em;
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: lowercase;
  color: #eaeaea;
  opacity: 0.85;
}

.subtext {
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .subtext { font-size: 0.7rem; }
}

/* ===== ICON LINKS ===== */
.socials {
  display: flex;
  justify-content: center;
  gap: 1.2em;
  margin: 1.5em 0 3.5em 0;   /* 下方向をやや多めに（フッター被り回避） */
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(234, 234, 234, 0.3);
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.socials a img {
  width: 18px;     /* アイコンの大きさ */
  height: 18px;
  display: block;
  filter: brightness(0) invert(1); /* 黒ロゴ→白表示 */
}

.socials a:hover {
  border-color: #6e8597;
  transform: translateY(-2px);
}

.socials a:hover img {
  filter: invert(64%) sepia(6%) saturate(586%) hue-rotate(173deg) brightness(90%) contrast(91%);
  /* ↑ #6e8597 に近いトーン */
}

/* モバイル余白をさらに確保（フッターとの干渉防止） */
@media (max-width: 600px) {
  .socials {
    gap: 0.9em;
    margin-bottom: 2em;
  }
  .socials a {
    width: 34px;
    height: 34px;
  }
  .socials a img {
    width: 16px;
    height: 16px;
  }
}

/* ===== SoundCloud Player ===== */
.player {
  background: #000;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

/* ===== TAGLINE ===== */
.tagline {
  margin: 1.5em 0 2em 0;
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* ===== TEXT LINKS ===== */
nav a {
  display: block;
  margin: 0.6em 0;
  text-decoration: none;
  color: #eaeaea;
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: #6e8597;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
  position: relative;   /* キャンバスの上に出す */
  z-index: 1;
  font-size: 0.75rem;
  opacity: 0.4;
  margin-top: 2rem;     /* 上に余白 */
  padding-bottom: 1rem; /* 端末UIとの干渉を避ける */
}

/* ===== RESPONSIVE (misc) ===== */
@media (max-width: 600px) {
  .formal-name { font-size: 3rem; } /* テキスト時のみ意味あり */
  .main-title { font-size: 1rem; }
}
