@charset "UTF-8";

/* ==========================================================
   Meets. 高知 LP — v2（座標系を作り直し）
   全ての絶対配置要素は「アートボード幅750px基準の実測px値」を
   --x / --y / --w / --rot として保持し、
   calc(値 * var(--s) * 1px) で top・left・width を同じ基準で算出する。
   → CSSの `top:%` がコンテナ「高さ」基準になる仕様と、
     `left:%` がコンテナ「幅」基準になる仕様の食い違いを、
     そもそも発生させない設計。
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: none; height: auto; }
a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }

:root {
  --color-green: #8FD200;
  --color-blue: #00AFFF;
  --color-pink: #FF539B;
  --color-yellow: #FFF000;
  --color-black: #000000;
  --color-text: #231815;
  --color-white: #FFFFFF;
  --color-red: #E60012;
  --content-width: 500px;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-dot: "DotGothic16", "Hiragino Kaku Gothic ProN", sans-serif;
  /* アートボード全体サイズ（750px基準） */
  --ai-width: 750;
  --ai-hero-height: 1795;
  /* event-1-price下端(2184.63+122.24)+統一下余白95 */
  --ai-event01-height: 2401.87;
  /* マスターSVG実測値: flow-metaverse上端(4152.24)〜背景緑終端(6742.65) */
  --ai-flow-height: 2590.41;
  /* coming-soon-blue下端(1710.19+307.58)+統一下余白95 */
  --ai-event02-height: 2112.77;
  /* coming-soon-pink下端(1727.97+302.37)+統一下余白95。上余白は§2/§4と揃えて70 */
  --ai-event03-height: 2125.34;
  /* マスターSVG実測値: フッター黄色帯の高さ */
  --ai-footer-height: 230.38;
}

body {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.8;
  background: repeating-linear-gradient(
    90deg,
    var(--color-green) 0 160px,
    var(--color-blue) 160px 320px,
    var(--color-pink) 320px 480px
  );
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}

.lp {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  background: var(--color-white);
  box-shadow: 0 0 24px rgba(0, 0, 0, .25);
}

/* PC固定ロゴ・ナビはSPでは非表示 */
.pc-logo, .pc-nav { display: none; }

.js-fade {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .6s ease, translate .6s ease;
}
.js-fade.is-visible { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-fade { opacity: 1; translate: none; transition: none; }
}

img.js-title-reveal {
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
}
img.js-title-reveal.is-revealed {
  animation: title-wipe .8s linear forwards;
  will-change: clip-path;
}
img.js-title-reveal--reverse {
  clip-path: inset(0 0 0 100%);
  -webkit-clip-path: inset(0 0 0 100%);
}
img.js-title-reveal--reverse.is-revealed {
  animation: title-wipe-reverse .8s linear forwards;
  will-change: clip-path;
}
@keyframes title-wipe {
  from {
    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
  }
}
@keyframes title-wipe-reverse {
  from {
    clip-path: inset(0 0 0 100%);
    -webkit-clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  img.js-title-reveal,
  img.js-title-reveal--reverse {
    animation: none;
    clip-path: none;
    -webkit-clip-path: none;
  }
}

/* ==========================================================
   §1 ヒーロー
   ========================================================== */
.hero { position: relative; }

/* .js-canvas: セクション毎に独立した「750px基準アートボード」コンテナ。
   JS(ResizeObserver)が実測幅/750を--sとして書き込む。他セクションもこのクラスを使い回す */
.hero__canvas,
.event__canvas {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* --s のフォールバック値はSP標準幅375px想定(375/750=0.5) */
  --s: 0.5;
}
.hero__canvas { aspect-ratio: var(--ai-width) / var(--ai-hero-height); }

.hero__stripes { position: absolute; inset: 0; display: flex; z-index: 0; }
.hero__stripes span { flex: 1; }
.hero__stripes span:nth-child(1) { background: var(--color-green); }
.hero__stripes span:nth-child(2) { background: var(--color-blue); }
.hero__stripes span:nth-child(3) { background: var(--color-pink); }

/* 座標指定の共通クラス。--x/--y/--w/--rot(deg,任意) をインラインstyleで渡す */
.hero__el,
.event__el {
  position: absolute;
  z-index: 1;
  top: calc(var(--y) * var(--s) * 1px);
  left: calc(var(--x) * var(--s) * 1px);
  width: calc(var(--w) * var(--s) * 1px);
  transform: rotate(calc(var(--rot, 0) * 1deg));
  transform-origin: center;
}
/* h1/p等のラッパーパターン（中身が画像1枚だけ）にのみ適用。
   uiturn/experience のように子要素を複数持つブロックには影響させない */
.hero__el > img:only-child,
.event__el > img:only-child { width: 100%; height: auto; display: block; }

/* アバター画像のみ、基準回転(--rot)を中心に+5deg/-5degで瞬時に往復させる。
   さらに開始位相と向きをずらして、同時に動いて見えないようにする。 */
img[src$="avatar-1.png"],
img[src$="avatar-2.png"],
img[src$="avatar-3.png"],
img[src$="avatar-4.png"],
img[src$="avatar-5.png"]:not(.hero__uiturn__avatar),
img[src$="avatar-6.png"] {
  animation: avatar-wobble 1s steps(1, end) infinite;
  animation-delay: var(--avatar-delay, 0s);
  animation-direction: var(--avatar-direction, normal);
}
.hero__avatar--front[src$="avatar-6.png"] {
  animation-name: avatar-wobble-front;
}
@keyframes avatar-wobble {
  0%, 49.999% {
    transform: rotate(calc(var(--rot, 0) * 1deg + 5deg));
  }
  50%, 100% {
    transform: rotate(calc(var(--rot, 0) * 1deg - 5deg));
  }
}
@keyframes avatar-wobble-front {
  0%, 49.999% {
    transform: rotate(calc(var(--rot, 0) * 1deg + 5deg)) scaleX(-1);
  }
  50%, 100% {
    transform: rotate(calc(var(--rot, 0) * 1deg - 5deg)) scaleX(-1);
  }
}
@keyframes avatar-wobble-hero5 {
  0%, 49.999% {
    transform: translateY(-50%) rotate(5deg);
  }
  50%, 100% {
    transform: translateY(-50%) rotate(-5deg);
  }
}
.hero__canvas > img[src$="avatar-1.png"] { --avatar-delay: -0.08s; --avatar-direction: normal; }
.hero__canvas > img[src$="avatar-2.png"] { --avatar-delay: -0.36s; --avatar-direction: reverse; }
.hero__canvas > img[src$="avatar-3.png"] { --avatar-delay: -0.23s; --avatar-direction: normal; }
.hero__canvas > img[src$="avatar-4.png"] { --avatar-delay: -0.71s; --avatar-direction: reverse; }
.hero__canvas > img[src$="avatar-6.png"] { --avatar-delay: -0.49s; --avatar-direction: reverse; }
#event01 img[src$="avatar-1.png"] { --avatar-delay: -0.63s; --avatar-direction: reverse; }
#event02 img[src$="avatar-5.png"] { --avatar-delay: -0.17s; --avatar-direction: normal; }
#event03 img[src$="avatar-2.png"] { --avatar-delay: -0.44s; --avatar-direction: normal; }
#event03 img[src$="avatar-4.png"] { --avatar-delay: -0.86s; --avatar-direction: reverse; }

/* --- 操作方法ボタン（背景 + 右矢印） --- */
.hero__howto-btn { display: block; }
.hero__howto-btn__bg { width: 100%; height: auto; display: block; }
.hero__howto-btn__arrow {
  position: absolute;
  /* ボタン幅に対する%ではなく、AI単位の固定サイズで両ボタン共通にする */
  width: calc(13 * var(--s) * 1px);
  right: 11%;
  top: 50%;
  --arrow-shift: 0px;
  transform: translateX(var(--arrow-shift)) translateY(-50%);
  transition: transform .15s ease;
}
/* スマホ・タブレット版ボタンのみ、矢印をもう少し右に寄せる */
.hero__howto-btn--sp .hero__howto-btn__arrow { right: 6%; }
.hero__howto-btn:hover .hero__howto-btn__arrow { --arrow-shift: 2px; }

.hero__lead {
  text-align: center;
  font-family: "Noto Sans JP", var(--font-body);
  font-weight: normal;
  font-size: clamp(12px, 3.6vw, 17px);
  line-height: 1.8;
  z-index: 2;
}

/* --- メタバース体験ブロック --- */
.hero__heading-taiken { z-index: 3; }
.hero__avatar--front {
  z-index: 3;
  /* 左右反転してから回転をかける */
  transform: rotate(calc(var(--rot, 0) * 1deg)) scaleX(-1);
}
.hero__experience { z-index: 2; }
.hero__experience__shot { width: 100%; }
.hero__experience__start {
  position: absolute;
  top: 34%; left: 50%;
  width: 58%;
  transform: translate(-50%, -50%);
  transition: transform .15s ease;
}
.hero__experience__start:hover { transform: translate(-50%, -50%) scale(1.05); }

/* --- U・Iターン --- */
.hero__uiturn {
  z-index: 2;
  position: relative;
  padding: 5% 4% 5% 22%;
}
.hero__uiturn__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  /* height:100%だと高さがpadding依存のコンテナ高さに強制的に引き伸ばされ、
     SVGの枠線比率が縦につぶれて歪んでいた。height:autoでSVG本来の
     アスペクト比(633.23:234.76)を保つ */
  height: auto;
  z-index: -1;
}
.hero__uiturn__avatar {
  position: absolute;
  width: 16%;
  left: 4%; top: 50%;
  transform: translateY(-50%);
  transform-origin: center;
  --avatar-delay: -0.31s;
  --avatar-direction: reverse;
  animation: avatar-wobble-hero5 1s steps(1, end) infinite;
  animation-delay: var(--avatar-delay, 0s);
  animation-direction: var(--avatar-direction, normal);
}
.hero__uiturn__body p {
  font-size: clamp(11px, 2.8vw, 15px);
  line-height: 1.6;
}
.hero__uiturn__body a {
  position: relative;
  display: block;
  width: 95%;
  /* 右端は元の位置(右マージン5%)で固定し、左だけ広げてアバターに寄せる */
  margin: 4% 5% 0 auto;
  transition: opacity .15s ease;
}
.hero__uiturn__body a:hover { opacity: .8; }
.hero__detail-btn__bg { width: 100%; height: auto; display: block; }
.hero__detail-btn__arrow {
  position: absolute;
  width: 3.2%;
  right: 8%;
  top: 50%;
  --arrow-shift: 0px;
  transform: translateX(var(--arrow-shift)) translateY(-50%);
  transition: transform .15s ease;
}
.hero__detail-btn:hover .hero__detail-btn__arrow { --arrow-shift: 2px; }

/* ==========================================================
   §2 第1回イベント（作業中）
   ========================================================== */
.event--green { background: var(--color-green); }
.event--blue { background: var(--color-blue); }
.event--pink { background: var(--color-pink); }

.event__canvas {
  height: calc(var(--ai-event01-height) * var(--s) * 1px);
}

.event02__canvas {
  height: calc(var(--ai-event02-height) * var(--s) * 1px);
}

.event03__canvas {
  height: calc(var(--ai-event03-height) * var(--s) * 1px);
}

.footer {
  background: var(--color-yellow);
}

.footer__canvas {
  position: relative;
  height: calc(var(--ai-footer-height) * var(--s) * 1px);
}

/* フッターTEL部分（footer-text.svg内のTEL表記に重ねる透明リンク） */
.footer__tel {
  display: block;
  height: calc(var(--h) * var(--s) * 1px);
}

.flow {
  background: var(--color-green);
}

.flow__canvas {
  position: relative;
  height: calc(var(--ai-flow-height) * var(--s) * 1px);
}

.flow__apply-btn { display: block; position: relative; }
.flow__apply-btn__bg { width: 100%; height: auto; display: block; }
.flow__apply-btn__arrow {
  position: absolute;
  width: calc(22 * var(--s) * 1px);
  right: 8%;
  top: 50%;
  --arrow-shift: 0px;
  transform: translateX(var(--arrow-shift)) translateY(-50%);
  transition: transform .15s ease;
}
.flow__apply-btn:hover .flow__apply-btn__arrow { --arrow-shift: 2px; }

/* heading-event-intro.svg は白文字のみで背景の黒帯を含まないため、
   帯自体はCSSで敷く（幅=画面いっぱい。上下に大きめのpaddingを確保） */
.event__intro-bar {
  background: var(--color-black);
  height: calc(100 * var(--s) * 1px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.event__intro-bar > img:only-child { width: calc(410.24 * var(--s) * 1px); height: auto; }

/* picture要素（source+img構成）は :only-child が効かないため個別指定 */
picture.event__el > img { width: 100%; height: auto; display: block; }

/* ==========================================================
   PC レイアウト（1024px〜）
   左右の余白を#000000にし、左にロゴ・右にドット風ナビを固定表示。
   ドット文字フォント(--font-dot)とピクセルボタンの意匠（角なし・
   黒枠+ズレ影）で8bit世界観を維持する。
   ========================================================== */
@media (min-width: 1024px) {

  body {
    background: #000000;
  }

  .lp { margin-inline: auto; }

  .pc-logo {
    display: block;
    position: fixed;
    top: 40px;
    left: max(24px, calc(50vw - var(--content-width) / 2 - 300px));
    width: min(220px, calc(50vw - var(--content-width) / 2 - 48px));
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4));
    transition: transform .15s ease;
  }
  .pc-logo img { width: 100%; height: auto; display: block; }
  .pc-logo:hover { transform: scale(1.04); }

  .pc-nav {
    display: block;
    position: fixed;
    top: 50%;
    right: max(24px, calc(50vw - var(--content-width) / 2 - 260px));
    transform: translateY(-50%);
    z-index: 10;
  }
  .pc-nav ul { display: flex; flex-direction: column; gap: 10px; }
  /* RPGコマンドウィンドウ風: 黒地に白のドット枠。
     幅は固定にして、hover時の▶表示で外形が変わらないようにする
     （可変幅だとテキスト最長の項目をhoverした時だけ枠全体が
     再計算されて動いて見えるバグがあったため、固定幅で回避） */
  .pc-nav a {
    position: relative;
    display: flex;
    align-items: center;
    width: 168px;
    font-family: var(--font-dot);
    font-size: 15px;
    line-height: 1.15;
    letter-spacing: .04em;
    --nav-bg: #000;
    background: var(--nav-bg);
    color: var(--color-white);
    box-shadow:
      3px 0 var(--nav-bg),
      -3px 0 var(--nav-bg),
      0 -3px var(--nav-bg),
      0 3px var(--nav-bg),
      6px 0 var(--color-white),
      -6px 0 var(--color-white),
      0 -6px var(--color-white),
      0 6px var(--color-white),
      0 0 0 3px var(--color-white);
    padding: 8px 14px 10px 30px;
    margin: 6px 0;
    white-space: nowrap;
    transition: background .1s ease;
  }
  /* 選択中カーソル(▶)。RPGのコマンド選択風に左側へ表示 */
  .pc-nav a::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    display: block;
    width: 6.5px;
    height: 11.5px;
    transform: translateY(-50%);
    background-color: var(--color-white);
    -webkit-mask: url("../svg/icon-arrow-right.svg") center / contain no-repeat;
    mask: url("../svg/icon-arrow-right.svg") center / contain no-repeat;
    opacity: 0;
    transition: opacity .1s ease;
  }
  @keyframes pc-nav-arrow-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
  }
  .pc-nav a:hover {
    --nav-bg: #1c1c1c;
  }
  .pc-nav a:hover::before {
    opacity: 1;
    animation: pc-nav-arrow-blink .8s steps(1, end) infinite;
  }
  .pc-nav a.pc-nav__apply {
    color: var(--color-yellow);
    font-weight: 700;
  }
  .pc-nav a.pc-nav__apply::before { background-color: var(--color-yellow); }
}

/* PC幅が狭め（1024-1279px）はロゴと被らないよう列を左寄せしロゴは非表示 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .lp { margin-left: calc(50vw - var(--content-width) / 2 - 90px); }
  .pc-logo { display: none; }
}
