/* westriver-marine.com トップページ共有スタイル（1画面構成）
   全面WebGL海面の上に全情報を重ねる。スクロールなし。
   oklch / light-dark() を使用（非対応環境は静的表示に劣化） */

:root {
  color-scheme: light dark;
  --ink:   oklch(0.97 0.005 240);
  --dim:   oklch(0.97 0.005 240 / 0.78);
  --faint: oklch(0.97 0.005 240 / 0.6);
  --line:  oklch(0.97 0.005 240 / 0.28);
  --glass: oklch(0.25 0.03 250 / 0.32);
  --font-sans: "Avenir Next", "Helvetica Neue", "Hiragino Sans",
               "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* WebGL不可時のフォールバック背景（水平線入りグラデーション） */
  background:
    linear-gradient(
      oklch(0.60 0.08 250) 0%,
      oklch(0.78 0.05 240) 40%,
      oklch(0.42 0.07 240) 40.2%,
      oklch(0.22 0.06 250) 100%);
}
@media (prefers-color-scheme: dark) {
  body {
    background:
      linear-gradient(
        oklch(0.20 0.05 260) 0%,
        oklch(0.32 0.06 255) 40%,
        oklch(0.18 0.05 250) 40.2%,
        oklch(0.10 0.03 255) 100%);
  }
}

#sea {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#sea.ready { opacity: 1; }
.no-webgl #sea { display: none; }

/* ---------- 1画面レイアウト ---------- */

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vh, 32px) clamp(20px, 4.5vw, 56px);
  text-shadow: 0 1px 18px oklch(0.15 0.03 250 / 0.5);
}

/* 上段: ブランド + 言語切替 */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.lang {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 15px;
  transition: background 0.25s, color 0.25s;
  text-shadow: none;
}
.lang:hover {
  background: oklch(0.97 0.005 240 / 0.92);
  color: oklch(0.25 0.03 250);
}

/* 中段: キャッチコピー */
.mid {
  flex: 1;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4vh 0;
}
.title {
  font-size: clamp(30px, 5.6vw, 64px);
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.22;
  margin: 0;
  animation: rise 1.1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.subtitle {
  font-size: clamp(13px, 1.7vw, 17px);
  color: var(--dim);
  margin: 16px 0 0;
  animation: rise 1.1s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* 下段: 情報バー（業務・実績・連絡先） */
.info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  animation: rise 1.1s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.cell {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  text-shadow: none;
  min-width: 0;
}
.cell h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 8px;
}
.cell p { margin: 0; font-size: 14px; }
.cell .sub { color: var(--dim); font-size: 12.5px; margin-top: 2px; }

.cell a { color: var(--ink); text-decoration: none; }
.cell a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 実績セル: ゲームへの導線 */
a.cell {
  display: block;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.25s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
a.cell:hover {
  background: oklch(0.30 0.04 250 / 0.45);
  transform: translateY(-3px);
  text-decoration: none;
}
a.cell:hover .go { translate: 4px 0; }
.go {
  display: inline-block;
  transition: translate 0.3s;
}

.copyright {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .title, .subtitle, .info { animation: none; }
  a.cell, a.cell:hover { transform: none; transition: none; }
}

/* 狭い画面: 情報バーを縦積みにする（この場合のみスクロール許容） */
@media (max-width: 760px) {
  .info { grid-template-columns: 1fr; gap: 10px; }
  .mid { padding: 6vh 0; }
}
