@charset "utf-8";
/* forest: GPU Hypha LP first view (Figma: パターンforest_Hypha PC / TAB / SP) */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #0d1114;
  --text: #f0f5f9;
  --border: #1a2e45;
  --panel: #06080f;
  --outline: #d2f4f9;
  --mint: #6ff0d8;
  --green-dark: #0f875f;
  --header-h: 65px;
  --footer-h: 50px;
  --sans: 'Source Sans 3', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-menu-open {
  overflow: hidden;
}
li {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
}

/* Header */
.f-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}
.f-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 50px 0 24px;
}
.f-logo img {
  width: 168px;
  height: 48px;
}
.f-nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}
.f-nav-list a {
  display: block;
  font-size: 16px;
  color: var(--text);
}
.f-nav-list a:hover {
  color: var(--mint);
}
.f-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.f-menu-btn img {
  width: 38px;
  height: 38px;
}
.f-icon-close {
  display: none;
}
.f-menu-btn[aria-expanded="true"] .f-icon-open {
  display: none;
}
.f-menu-btn[aria-expanded="true"] .f-icon-close {
  display: block;
}
.f-overlay {
  display: none;
}

/* Hero */
.f-hero {
  --text-gap: 80px; /* フッター上端 〜 テキスト塊の下端 */
  position: relative;
  display: flex;
  align-items: flex-end;
  /* ファーストビュー = ヒーロー + フッター が画面の高さ100%になる */
  min-height: calc(100vh - var(--footer-h));
  min-height: calc(100svh - var(--footer-h)); /* モバイルのアドレスバーを除いた高さ（非対応ブラウザは100vh） */
  padding: var(--header-h) 80px var(--text-gap); /* 上: 固定ヘッダー分 */
  overflow: hidden;
}

/* Footer */
.f-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--footer-h);
  background-color: #000;
  border-top: 1px solid var(--border);
}
.f-copyright {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
}
.f-hero-content {
  position: relative;
  z-index: 1;
}
.f-h1 {
  position: relative;
  display: inline-block;
  font-family: var(--mono);
  font-size: 80px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  white-space: nowrap;
}
.f-h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70%;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(to right, var(--mint), var(--green-dark));
}
.f-lead {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}
.f-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 60px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 8px;
  transition: opacity .2s;
}
.f-btn:hover {
  opacity: .85;
}
.f-btn-primary {
  color: var(--bg);
  background-image: linear-gradient(98deg, #6ff0d8 0.54%, #59e8c6 12.41%, #3bddae 24.28%, #25d49c 38.13%, #19d093 59.89%, #17cf91 99.46%);
}
.f-btn-secondary {
  color: var(--text);
  background-color: var(--bg);
  border: 1.5px solid var(--outline);
}

/* TAB */
@media screen and (max-width: 999px) {
  .f-header-inner {
    padding: 0 16px;
  }
  .f-menu-btn {
    display: block;
  }
  .f-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: 300px;
    height: calc(100% - var(--header-h));
    padding: 24px;
    background-color: var(--panel);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
    z-index: 150;
  }
  .f-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .f-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(13, 17, 20, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    z-index: 100;
  }
  body.is-menu-open .f-nav {
    transform: none;
    visibility: visible;
  }
  body.is-menu-open .f-overlay {
    opacity: 1;
    visibility: visible;
  }
  .f-hero {
    padding: var(--header-h) 24px var(--text-gap);
  }
}

/* SP */
@media screen and (max-width: 499px) {
  :root {
    --header-h: 56px; /* SP: 65px → 56px */
  }
  .f-logo img {
    width: 140px;
    height: 40px;
  }
  .f-menu-btn {
    width: 40px; /* タップ領域 40px */
    height: 40px;
    margin-right: -4px; /* アイコン(32px)の見た目の右端を16pxに揃える */
  }
  .f-menu-btn img {
    width: 32px;
    height: 32px;
    margin: 0 auto;
  }
  .f-nav {
    width: 300px;
    max-width: calc(100% - 88px);
  }
  .f-hero {
    --text-gap: 60px;
    padding: var(--header-h) 16px var(--text-gap);
  }
  .f-hero-content {
    width: 100%;
  }
  .f-h1 {
    font-size: 60px;
  }
  .f-lead {
    font-size: 20px;
  }
  .f-btn {
    width: 100%;
  }
  .f-btn-primary {
    background-image: linear-gradient(106deg, #6ff0d8 0.54%, #59e8c6 12.41%, #3bddae 24.28%, #25d49c 38.13%, #19d093 59.89%, #17cf91 99.46%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .f-nav,
  .f-overlay,
  .f-btn {
    transition: none;
  }
}
