@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500&family=Space+Grotesk:wght@400;500&display=swap");

/* CSS変数の定義 */
:root {
  --text-glow: 0 0 1px rgba(255, 255, 255, 0.8), 0 0 10px rgba(54, 54, 54, 0.696);
  --font-en: "Space Grotesk", sans-serif;
  --font-ja: "Shippori Mincho", serif;
  --color-text: #f5f5f5;
  --color-text-dim: rgba(255, 255, 255, 0.5);
  --blur-initial: blur(20px);
}

/* 基本リセット */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--color-text);
  overflow-x: hidden;
  background-color:#000;
}

/* フォント設定 */
.nav-vertical,
h2 {
  font-family: var(--font-en);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.2em;
  text-shadow: var(--text-glow);
}

h1 {
  font-family: var(--font-ja);
  font-weight: 500;
  font-style: normal;
}

p {
  font-family: var(--font-ja);
  font-weight: 400;
  font-style: normal;
}

/* フェードイン要素の初期状態 */
.fade-in-element {
  filter: var(--blur-initial);
  opacity: 0;
  will-change: transform, opacity;
}

/* 音声ボタン */
.sound-button {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 1000;
  background: rgba(128, 128, 128, 0.424);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #efefef;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.1rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
  outline: none;
}

.sound-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 3Dキャンバスを最背面に固定 */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
  background-color: "#000";
}

/* 右上の縦並びメニュー */
.header {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 100;
}

.nav-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.nav-vertical a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  mix-blend-mode: difference;
  will-change: transform, opacity;
  transition: opacity 0.3s;
}

.nav-vertical a:hover {
  opacity: 0.5;
}

/* コンテンツ全体のラッパー */
.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* 各セクションの基本設定 */
.section {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 10%;
  box-sizing: border-box;
}

.hero-section {
  align-items: flex-end;
  padding: 0 2%;
}

/* ヒーローセクション */
.hero-content {
  text-align: right;
}

.main-title {
  font-weight: 400;
  font-size: 4rem;
  margin: 0;
  line-height: 0.9;
  font-style: italic;
  mix-blend-mode: overlay;
}

.subtitle {
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-top: 10px;
  color: var(--color-text-dim);
}

/* コンテンツボックス */
.content-box {
  width: 500px;
  max-width: 500px;
  text-align: right;
  mix-blend-mode: lighten;
}

.content-text {
  text-align: left;
}

/* 本文 */
.content-text p.description {
  line-height: 2.2;
  margin-bottom: 30px;
  font-size: 0.95rem;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-shadow: var(--text-glow);
}

/* Tech Stack / Connection 部分 */
.tech-stack-wrapper,
.connection-wrapper {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

.tech-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-text-dim);
  display: block;
  margin-bottom: 10px;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-en);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.tech-list li {
  position: relative;
  padding-left: 15px;
}

.tech-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--color-text-dim);
}

/* リンク */
.link-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.connect-link {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.1em;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.connect-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.2em;
}

.connect-link::before {
  content: ">";
  position: absolute;
  left: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.connect-link:hover::before {
  opacity: 1;
}

/* スマホ対応 */
@media (max-width: 428px) {
  .section {
    padding: 80px 5%;
    min-height: auto;
  }

  .hero-section {
    padding: 0 5%;
    min-height: 100dvh;
  }

  .main-title {
    font-size: 2rem;
  }

  .header {
    right: 10px;
    top: 20px;
    backdrop-filter: blur(10px);
    padding: 10px;
    border: 1px solid rgba(245, 245, 245, 0.12);
    border-radius: 10px;
  }

  .nav-vertical {
    gap: 15px;
  }

  .nav-vertical a {
    font-size: 0.8rem;
  }

  .content-box {
    max-width: 100%;
    text-align: left;
  }

  .sound-button {
    top: 20px;
    left: 20px;
    padding: 6px 10px;
  }
}
