@charset "UTF-8";
/* ==========================================================
   HELIX コーポレートサイト 共通スタイル
   イメージカラー：明るい水色 × 青
   ========================================================== */

:root {
  --ink: #0a2d63;          /* 本文・見出し（濃い青） */
  --ink-sub: #45658f;      /* 補足テキスト */
  --blue: #1471e6;         /* メインの青 */
  --blue-deep: #0a55c4;
  --sky: #3cc4f5;          /* 水色 */
  --sky-soft: #d6f3ff;
  --white: #ffffff;
  --line: rgba(20, 113, 230, 0.18);

  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Montserrat", "Noto Sans JP", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --header-h: clamp(64px, 9vh, 88px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--ink);
  background-color: #e6f7ff;
  background-image:
    radial-gradient(ellipse 55% 70% at 72% 46%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.45) 40%, transparent 70%),
    linear-gradient(180deg, #f4fcff 0%, #dcf4ff 45%, #b2e5fb 100%);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------------------------------------
   ヘッダー
   ---------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.logo-mark { width: 32px; height: 32px; color: var(--blue); }
.logo-text {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
.global-nav ul { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.global-nav ul a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
  padding: 6px 0;
}
.global-nav .en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.global-nav .ja { font-size: 0.66rem; color: var(--ink-sub); letter-spacing: 0.08em; }
.global-nav ul a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}
.global-nav ul a:hover::after { width: 100%; }

.nav-contact {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue), var(--sky));
  box-shadow: 0 6px 18px rgba(20, 113, 230, 0.25);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.nav-contact:hover { box-shadow: 0 8px 26px rgba(20, 113, 230, 0.4); transform: translateY(-1px); }

.menu-toggle { display: none; }

/* ----------------------------------------------------------
   ボタン
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue), var(--sky));
  box-shadow: 0 10px 28px rgba(20, 113, 230, 0.3);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(20, 113, 230, 0.42); transform: translateY(-2px); }

.btn-ghost {
  color: var(--blue-deep);
  border: 1px solid rgba(20, 113, 230, 0.35);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--blue); background: var(--white); }

/* ==========================================================
   トップページ（1画面固定・スクロールなし）
   ========================================================== */
.page-home {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  -webkit-tap-highlight-color: transparent; /* タップ時の灰色の強調を消す（波紋を見せるため） */
}

/* 背景動画 */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  pointer-events: none;
}
/* 文字を読みやすく、全体を明るい水色に寄せる */
.bg-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(240, 250, 255, 0.9) 0%, rgba(232, 247, 255, 0.72) 32%, rgba(220, 243, 255, 0.25) 58%, rgba(210, 240, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(230, 247, 255, 0.35) 0%, rgba(160, 220, 255, 0.1) 50%, rgba(10, 85, 196, 0.15) 100%);
}

#globe {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.globe-ready #globe { opacity: 1; }

#water {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* WebGLが使えない環境用の代替表示 */
.globe-fallback { display: none; }
.no-webgl .globe-fallback {
  display: block;
  position: fixed;
  z-index: 0;
  top: 50%;
  right: 8vw;
  width: min(62vh, 44vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 35% 30%, #9fe3ff 0%, #3cb0f5 45%, #1471e6 100%);
  box-shadow: 0 0 80px rgba(60, 196, 245, 0.5), inset -20px -20px 60px rgba(10, 85, 196, 0.3);
}

.hero {
  position: relative;
  z-index: 10;
  align-self: center;
  width: min(100%, 880px);
  padding: 0 var(--gutter);
  padding-left: calc(var(--gutter) + clamp(0px, 3vw, 48px));
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(12px, 2.4vh, 24px);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--blue);
}
.hero-label .line { width: 40px; height: 1px; background: var(--blue); }

.hero-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.8rem, min(4.6vw, 7.4vh), 3.9rem);
  line-height: 1.32;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.hero-title .row { display: block; white-space: nowrap; }
.hero-title .accent {
  background: linear-gradient(90deg, var(--blue) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: clamp(14px, 3vh, 30px) 0 0;
  font-size: clamp(0.85rem, min(1.2vw, 2.1vh), 1rem);
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--ink-sub);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(20px, 4.4vh, 44px);
}

/* ビジョン（水・水素・自然エネルギー・グローバル） */
.vision {
  display: flex;
  flex-wrap: wrap;
  margin-top: clamp(22px, 4.6vh, 48px);
}
.vision a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 20px;
  border-left: 1px solid var(--line);
}
.vision li:first-child a { padding-left: 0; border-left: 0; }

.vision-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(20, 113, 230, 0.22);
  background: rgba(255, 255, 255, 0.75);
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(20, 113, 230, 0.1);
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}
.vision-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vision a:hover .vision-icon,
.vision a:focus-visible .vision-icon {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: var(--white);
  box-shadow: 0 8px 22px rgba(20, 113, 230, 0.35);
  transform: translateY(-3px);
}
.vision a:hover .vision-icon svg { animation: bob 1.4s ease-in-out infinite; }

.vision-text { display: flex; flex-direction: column; line-height: 1.35; }
.vision .en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.vision .ja { font-size: 0.68rem; color: var(--ink-sub); letter-spacing: 0.04em; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* フッター（トップ用） */
.home-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter) clamp(16px, 3.4vh, 32px);
  font-size: 0.78rem;
}

.news-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 560px;
  padding: 10px 20px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 20px rgba(10, 85, 196, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.news-tag {
  flex-shrink: 0;
  padding: 2px 12px;
  border-radius: 999px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--white);
  background: var(--blue);
}
.news-bar time { flex-shrink: 0; font-family: var(--font-en); color: var(--blue); letter-spacing: 0.06em; }
.news-bar a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: color 0.3s; }
.news-bar a:hover { color: var(--blue); }

.coord {
  margin: 0 0 0 auto;
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
}
.copyright {
  margin: 0;
  font-family: var(--font-en);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}

/* 表示アニメーション */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.site-header,
.hero-label,
.hero-title .row,
.hero-lead,
.hero-actions,
.home-footer {
  animation: fadeUp 1.1s var(--ease) both;
}
.site-header { animation-delay: 0.1s; }
.hero-label { animation-delay: 0.4s; }
.hero-title .row:nth-child(1) { animation-delay: 0.55s; }
.hero-title .row:nth-child(2) { animation-delay: 0.7s; }
.hero-lead { animation-delay: 0.9s; }
.hero-actions { animation-delay: 1.05s; }
.vision { animation: fadeUp 1.1s var(--ease) 1.15s both; }
.home-footer { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ----------------------------------------------------------
   タブレット・スマホ
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .coord { display: none; }
  .home-footer { justify-content: space-between; }
}

@media (max-width: 900px) {
  .menu-toggle {
    position: relative;
    z-index: 30;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
  }
  .menu-toggle span {
    position: absolute;
    left: 13px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.35s var(--ease), top 0.35s var(--ease);
  }
  .menu-toggle span:nth-child(1) { top: 17px; }
  .menu-toggle span:nth-child(2) { top: 24px; }
  .is-menu-open .menu-toggle span:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
  .is-menu-open .menu-toggle span:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }

  .global-nav {
    position: fixed;
    inset: 0;
    z-index: 25;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    padding: var(--header-h) var(--gutter) 40px;
    background: rgba(236, 249, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .is-menu-open .global-nav { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; gap: 22px; text-align: center; }
  .global-nav .en { font-size: 1.3rem; }
  .global-nav .ja { font-size: 0.75rem; }
  .nav-contact { height: 50px; padding: 0 36px; font-size: 0.92rem; }

  /* 縦長画面：上を明るくして文字を読みやすく */
  .bg-video { object-position: 70% 50%; }
  .bg-video-overlay {
    background: linear-gradient(180deg, rgba(240, 250, 255, 0.92) 0%, rgba(232, 247, 255, 0.8) 42%, rgba(220, 243, 255, 0.2) 66%, rgba(10, 85, 196, 0.1) 100%);
  }

  /* 縦長画面：文字は上、地球は下 */
  .hero {
    align-self: start;
    padding-top: clamp(8px, 4vh, 40px);
    padding-left: var(--gutter);
  }
  .hero-lead br { display: none; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(1.5rem, 8.2vw, 2.4rem); }
  .hero-label { font-size: 0.66rem; letter-spacing: 0.2em; gap: 10px; }
  .hero-label .line { width: 24px; }
  .hero-lead { font-size: 0.8rem; line-height: 1.8; }
  .hero-actions { margin-top: 18px; }
  .vision { margin-top: 20px; }
  .vision { display: grid; grid-template-columns: repeat(4, 1fr); }
  .vision a { flex-direction: column; gap: 6px; padding: 0 4px; text-align: center; }
  .vision li:first-child a { padding-left: 4px; }
  .vision-icon { width: 38px; height: 38px; }
  .vision .en { font-size: 0.56rem; letter-spacing: 0.08em; }
  .vision .ja { display: none; }
  .btn { height: 48px; padding: 0 22px; font-size: 0.85rem; }
  .news-bar time { display: none; }
  .news-bar { padding: 8px 16px 8px 8px; gap: 10px; }
  .copyright { display: none; }
}

/* 縦長の大きい画面（タブレット縦向きなど） */
@media (orientation: portrait) {
  .hero { align-self: start; padding-top: clamp(8px, 4vh, 40px); }
}

/* 横向きの低い画面 */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-lead { display: none; }
}
