/* ==========================================================
   ==========  変数（フォント・アイコン）  ==========
   ========================================================== */
:root {
  --title-size-pc: 2.4rem;
  --title-size-sp: 1.3rem;

  --body-size-pc: 0.95rem;
  --body-size-sp: 0.5rem;

  --sns-icon-size-pc: 26px;   /* PC 基本サイズ */
  --sns-icon-size-sp: 16px;   /* SP 基本サイズ */
}

/* ==========================================================
   ==========  Reset  ==========
   ========================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100vh;
  overflow: hidden;           /* PCとSP共通：基本はスクロール無し */
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100vh;
  background: #050713;
  color: #f7f7f7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", "Noto Sans JP", sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================
   ==========  PCレイアウト（標準構図）  ==========
   ========================================================== */

.page-wrap {
  position: relative;
  min-height: 100vh;
  padding: 4rem 8vw 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-inner {
  width: 100%;
  max-width: 960px;
}

/* PC：1行目 video | bar | text
        2行目 sns   | sns | sns  */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 360px) 20px minmax(0, 360px);
  grid-template-rows: auto auto;
  grid-template-areas:
    "video bar text"
    "sns   sns  sns";
  column-gap: 3rem;
  row-gap: 1.4rem;
  align-items: center;
  justify-content: center;
}

/* ---- PC：動画 ---- */
.hero-media {
  grid-area: video;
  justify-self: flex-end;
}
.char-video {
  width: 283px;
  max-width: 100%;
  border-radius: 16px;
  opacity: 0.96;
  display: block;
}

/* ---- PC：翡翠バー ---- */
.jade-column {
  grid-area: bar;
  width: 20px;
  min-height: 320px;
  border-radius: 999px;
  background: rgba(0, 60, 50, 0.18);
  border: 1px solid rgba(120, 255, 220, 0.45);
  box-shadow:
    0 0 8px rgba(120, 255, 220, 0.35),
    0 0 22px rgba(80, 200, 180, 0.22),
    0 0 44px rgba(60, 180, 160, 0.14);
}

/* ---- PC：テキスト ---- */
.hero-text {
  grid-area: text;
  min-width: 0;
}
.page-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: 0.14em;
  opacity: 0.9;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}
.page-sub {
  max-width: 32rem;
  font-size: var(--body-size-pc);
  line-height: 1.6;
  opacity: 0.88;
}

/* ---- PC：SNS ---- */
.sns-links {
  grid-area: sns;
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: center;
}
.sns-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* PCアイコンサイズ（縦横比保持） */
.sns-icon {
  height: var(--sns-icon-size-pc);
  width: auto;
}
.sns-links a:hover .sns-icon {
  filter: drop-shadow(0 0 6px rgba(150, 255, 240, 0.7));
}

/* PC 個別アイコン */
.sns-icon-official { height: 21px; width: auto; }
.sns-icon-x        { height: 25px; width: auto; }
.sns-icon-youtube  { height: 29px; width: auto; }
.sns-icon-twitch   { height: 23px; width: auto; }

/* ==========================================================
   ==========  SPベース（共通）  ==========
   ========================================================== */

@media (max-width: 640px) {

  html, body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .page-wrap {
    padding: 3rem 1.4rem 3.4rem;
    align-items: flex-start;
  }

  .page-inner {
    max-width: 420px;
    margin: 0 auto;
  }

  /* SP：1行目 video | bar | text
         2行目 sns   | sns | sns */
  .hero {
    grid-template-columns: auto 12px auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "video bar text"
      "sns   sns  sns";
    column-gap: 1rem;
    row-gap: 0.8rem;
    justify-content: center;
    margin: 0 auto;
  }

  .page-title {
    font-size: var(--title-size-sp);
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow:
      0 0 1.2px rgba(120,255,220,0.45),
      0 0 6px rgba(120,255,220,0.32),
      0 0 16px rgba(80,200,180,0.22),
      0 0 32px rgba(60,180,160,0.14);
  }
  .page-sub {
    font-size: var(--body-size-sp);
    line-height: 1.6;
  }

  .jade-column {
    grid-area: bar;
    width: 9px;
    min-height: 200px;
  }

  .hero-media {
    grid-area: video;
    display: flex;
    justify-content: flex-end;
  }

  .char-video {
    width: 90%;
    max-width: 200px;
  }

  /* ▼ SP：SNSコンテナもグリッド中央に */
  .sns-links {
    grid-area: sns;
    justify-self: center;     /* ★ グリッドの中央に配置 */
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 0.4rem;
    width: auto;              /* ★ コンテナ幅 = アイコン列に合わせる */
  }

  .sns-icon {
    height: var(--sns-icon-size-sp);
    width: auto;
  }

  .sns-icon-official { height: var(--sns-official-sp, 16px); width: auto; }
  .sns-icon-x        { height: var(--sns-x-sp,        19px); width: auto; }
  .sns-icon-youtube  { height: var(--sns-yt-sp,       21px); width: auto; }
  .sns-icon-twitch   { height: var(--sns-tw-sp,       17px); width: auto; }
}

/* ==========================================================
   ==========  SP横向き（landscape）  ==========
   ========================================================== */
@media screen and (max-height: 450px) and (orientation: landscape) {

  html, body {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .page-wrap {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }

  .page-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
  }

  .hero {
    grid-template-columns: auto 12px auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "video bar text"
      "sns   sns  sns";
    column-gap: 1.6rem;
    row-gap: 1.2rem;
    justify-content: center;
    margin: 0 auto;
  }

  .hero-media {
    grid-area: video;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .char-video {
    width: 210px;
    max-width: 210px;
    height: auto;
  }

  .jade-column {
    grid-area: bar;
    width: 12px;
    min-height: 190px;
  }

  .hero-text {
    grid-area: text;
  }

  .page-title {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .page-sub {
    font-size: 0.6rem;
    line-height: 1.6;
  }

  /* 横向きもコンテナ自体を中央へ */
  .sns-links {
    grid-area: sns;
    justify-self: center;   /* ★ */
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    width: auto;            /* ★ */
  }

  .sns-icon {
    height: var(--sns-icon-size-sp);
    width: auto;
  }

  @supports (height: 100dvh) {
    html, body {
      height: 100dvh;
      min-height: 100dvh;
    }
    .page-wrap {
      min-height: 100dvh;
    }
  }
}

/* ==========================================================
   ==========  SP縦向き（portrait）  ==========
   ========================================================== */
@media screen and (max-width: 640px) and (orientation: portrait) {

  html, body {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .page-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    min-height: 100vh;
  }

  .page-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero {
    display: grid;
    grid-template-columns: auto 12px auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "video bar text"
      "sns   sns  sns";
    justify-content: center;
    align-items: center;
    row-gap: 1rem;
    column-gap: 1rem;
    margin: 0 auto;
  }

  /* 縦向きもSNSコンテナを中央に */
  .sns-links {
    justify-self: center;   /* ★ */
    width: auto;            /* ★ */
  }

  @supports (height: 100dvh) {
    html, body {
      height: 100dvh;
      min-height: 100dvh;
    }
    .page-wrap {
      min-height: 100dvh;
    }
  }
}