/* =========================================================
   GROUND FREQ. Coming Soon Page
   ========================================================= */

:root{
  --bg: #0c0c0c;
  --dot: rgba(255,255,255,0.09);
  --accent: #ff4e00;
  --text: #f5f5f5;
  --text-dim: rgba(245,245,245,0.65);
  --marquee-color: rgba(255,255,255,0.05);
  --marquee-size: clamp(60px, 12vw, 140px);
  --edge-w: 90px; /* SP時の左右バーの幅 */

  /* SP用 縦帯ロゴのサイズ・アスペクト比 */
  --sp-logo-cross: clamp(34px, 11vw, 56px); /* 回転後の"太さ"（元画像の高さ側） */
  --sp-logo-ratio: 5.774; /* logo-bg.png の 横:縦 比率（1276 / 221） */
  --sp-logo-gap: 20px; /* ロゴ同士のすき間 */
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #171717;
  overflow: hidden; /* Coming Soon画面はスクロールさせない */
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--text);
}

/* ---------------------------------------------------------
   スクリーントーン風 網点背景
--------------------------------------------------------- */
.halftone-bg{
  position: fixed;
  inset: 0;
  z-index: 2;
  background-color: transparent;
  background-image: radial-gradient(circle, rgb(54 54 54 / 80%) 1px, transparent 1.6px);
  background-size: 13px 13px;
  background-position: 0 0;
}

/* ---------------------------------------------------------
   ロゴスクロール帯（共通）
--------------------------------------------------------- */
.marquee{
  position: fixed;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  white-space: nowrap;
}

.marquee__track{
  display: inline-flex;
  align-items: center;
  will-change: transform;
}

.marquee__track .marquee__logo{
  display: inline-block;
  flex: 0 0 auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  opacity: 0.8;
}

/* 横帯（上下） */
.marquee--top,
.marquee--bottom{
  left: 0;
  width: 100%;
  height: var(--marquee-size);
  display: flex;
  align-items: center;
}
.marquee--top{ top: 0; }
.marquee--bottom{ bottom: 0; }

.marquee--top .marquee__logo,
.marquee--bottom .marquee__logo{
  height: var(--marquee-size);
  width: auto;
  margin: 0 0.6em;
}

.marquee__track--left{ animation: scrollLeft 26s linear infinite; }
.marquee__track--right{ animation: scrollRight 26s linear infinite; }

@keyframes scrollLeft{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@keyframes scrollRight{
  from{ transform: translateX(-50%); }
  to{ transform: translateX(0); }
}

/* 縦帯（左右／SP専用） */
.marquee--left,
.marquee--right{
  top: 0;
  height: 100%;
  width: var(--edge-w);
  display: none; /* PCでは非表示 */
  align-items: center;
  justify-content: center;
}
.marquee--left{ left: 0; }
.marquee--right{ right: 0; }

.marquee--left .marquee__track,
.marquee--right .marquee__track{
  flex-direction: column;
  align-items: center;
}

/*
  transform:rotate() は見た目だけを回転させ、レイアウト上の占有スペース
  （flexアイテムの高さ）は回転前の height 分しか確保されない。
  そのため回転後の実際の縦幅（height * アスペクト比）を
  margin として確保し、詰まり／重なりを防ぐ。
*/
.marquee--left .marquee__logo,
.marquee--right .marquee__logo{
  height: var(--sp-logo-cross);
  width: auto;
  margin: calc(
    (var(--sp-logo-cross) * var(--sp-logo-ratio) - var(--sp-logo-cross)) / 2
    + (var(--sp-logo-gap) / 2)
  ) 0;
  transform: rotate(-90deg);
  transform-origin: center;
}

.marquee__track--up{ animation: scrollUp 22s linear infinite; }
.marquee__track--down{ animation: scrollDown 22s linear infinite; }

@keyframes scrollUp{
  from{ transform: translateY(0); }
  to{ transform: translateY(-50%); }
}
@keyframes scrollDown{
  from{ transform: translateY(-50%); }
  to{ transform: translateY(0); }
}

/* ---------------------------------------------------------
   メインコンテンツ
--------------------------------------------------------- */
.content{
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  text-align: center;
}

.logo-image{
  max-width: min(70vw, 190px);
  height: auto;
  display: block;
}

/* logo.png が無い場合の代替表示 */
.logo-fallback{
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.logo-fallback__top{
  font-size: 42px;
  font-style: italic;
  font-weight: 800;
  color: var(--accent);
}
.logo-fallback__bottom{
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text);
}

.coming-soon{
  margin: 48px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.description{
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.sns{
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.sns__icon{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sns__icon svg{ width: 16px; height: 16px; }
.sns__icon:hover{ transform: translateY(-2px); opacity: 0.85; }

/* ---------------------------------------------------------
   SP対応：上下 → 左右のスクロールへ切り替え
--------------------------------------------------------- */
@media (max-width: 640px){
  .marquee--top,
  .marquee--bottom{
    display: none;
  }
  .marquee--left,
  .marquee--right{
    display: flex;
  }
  .content{
    padding: 0 var(--edge-w);
  }
}

/* 動きを抑えたい設定への配慮 */
@media (prefers-reduced-motion: reduce){
  .marquee__track{ animation: none !important; }
}
