/* Webflow のデザインに後から足したもの（STORE・Mission・実績の Helix） */

/* ---------- 実績: Helix ---------- */
.works-helix { display: none; position: relative; height: calc(100svh - 240px); min-height: 360px; }
html.helix-on .works-helix { display: block; }
html.helix-on .works-index { display: none; }
.works-helix-sticky { position: relative; height: 100%; overflow: hidden; }
.works-helix-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.works-helix-canvas:active { cursor: grabbing; }
.works-helix-caption { position: absolute; left: 50%; top: 70%; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); text-align: center; color: var(--second-color, #f1f3f8); pointer-events: none; transition: opacity .25s; }
.works-helix-caption.swap { opacity: 0; }
.works-helix-line { display: block; width: 40px; height: 1px; margin: 0 auto 12px; background: rgba(241, 243, 248, .45); }
.works-helix-no, .works-helix-sub { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(241, 243, 248, .6); }
/* 作品の下の行（カテゴリ・クライアント・年）は書いたままの表記で（「Hypolygon」を大文字にしない） */
.works-helix-sub { text-transform: none; letter-spacing: .14em; }
.works-helix-title { display: inline-block; margin: 8px 0 8px; font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; line-height: 1.3; color: inherit; text-decoration: none; pointer-events: auto; }
.works-helix-title:hover { text-decoration: underline; text-underline-offset: 6px; }
.works-helix-hint { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; color: rgba(241, 243, 248, .55); pointer-events: none; transition: opacity .4s; }
.works-helix-hint::after { content: ''; display: none; width: 1px; height: 32px; margin: 8px auto 0; background: linear-gradient(rgba(241, 243, 248, .6), transparent); animation: helix-hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes helix-hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 767px) { .works-helix-caption { top: 66%; } .works-helix-hint { top: 72px; } }
@media (prefers-reduced-motion: reduce) { .works-helix-hint::after { animation: none; } }

/* ---------- 会社: Mission ---------- */
.company-mission-top { margin-bottom: 24px; }
.company-mission-top .service-heading-5 { margin-bottom: 16px; }
.works-helix-caption { margin-top: 20px; }
.works-helix-tilt { position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 8px 12px; border: 1px solid rgba(241, 243, 248, .35); border-radius: 999px; background: rgba(0, 0, 0, .4); color: #f1f3f8; font-size: 11px; letter-spacing: .08em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.helix-on, html.helix-on body { overscroll-behavior: none; }

/* 後ろのカードが見えるようになったので、タイトルが埋もれないよう柔らかい影を付ける */
.works-helix-caption { text-shadow: 0 0 18px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.9); }

/* らせんは画面全体に描く。ヘッダーやフッターの後ろまでカードが回り込み、画面の上下の端だけごく薄くフェード */
html.helix-on .works-helix-sticky { overflow: visible; }
html.helix-on .works-helix-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* フッターはらせんより手前に置いて、リンクが押せるように */
html.helix-on section.footer { position: relative; z-index: 2; }

/* ===== Company ページ（2026-10-29 整理）: 幅・文字・間隔をそろえ、ミッションを大きく見せる ===== */
.company-v2 { --cw: min(1120px, 88%); --gap-y: 96px; --line: rgba(255, 255, 255, .12); --text: rgba(255, 255, 255, .8); --accent: #d99733; background-color: #000; display: flow-root; }
/* トップの映像は少し低く */
@media (min-width: 992px) {
  /* Company ページだけ（トップの最初の画面も同じクラスを使っているので除外） */
  body:has(.company-v2) .company-logo-wrap:not(.hero-container), body:has(.company-v2) .company-logo-wrap:not(.hero-container) .company-logo { min-height: 0 !important; height: min(64vh, 680px) !important; }
}
/* JP / EN と「About Us 会社概要」を本文と同じ左端に */
.company-v2 .tabs-menu-2 { width: var(--cw); margin: 0 auto; padding-left: 0; }
.company-v2 .section.featured { width: var(--cw); text-align: left; align-items: flex-start; }
.company-v2 .section.featured .main-title { text-align: left; }
/* 各ブロック共通: 同じ幅・同じ間隔・上に細い線 */
.company-v2 .company-mission-sectin,
.company-v2 .company-about-section,
.company-v2 .company-service-section { display: block; margin: 0; }
.company-v2 .company-info-container-4 { width: var(--cw); margin: 0 auto; display: block; }
.company-v2 .company-mission-sectin:not(.company-mission-top) .company-info-container-4,
.company-v2 .company-service-section .company-info-container-4 { padding: var(--gap-y) 0; border-top: 1px solid var(--line); }
/* 見出しを左、本文を右の2列 */
.company-v2 .company-mission-sectin:not(.company-mission-top) .mission-wrap,
.company-v2 .company-service-section .company-info-container-4 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 24px 64px; align-items: start; }
.company-v2 .company-mission-sectin:not(.company-mission-top) .company-mission-title,
.company-v2 .service-heading-5 { font-size: 28px; line-height: 1.3; margin: 0; letter-spacing: .02em; color: var(--accent); }
.company-v2 .company-about-paragraph,
.company-v2 .company-mission-paragraph-copy,
.company-v2 .company-service-paragraph { color: var(--text); font-size: 16px; line-height: 1.95; letter-spacing: .03em; margin: 0; max-width: 40em; }
.company-v2 .services, .company-v2 .company-service-container { margin: 0; }
/* Roblox / UEFN は横並びのカード */
.company-v2 .company-platforms { width: var(--cw); margin: 0 auto; padding: var(--gap-y) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.company-v2 .company-platforms .company-info-container-4 { width: 100%; height: 100%; padding: 40px 40px 44px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012) 60%); box-sizing: border-box; }
.company-v2 .company-platforms .section-title-wrap { margin: 0 0 20px; }
.company-v2 .company-platforms .service-heading-5 { font-size: 24px; }
.company-v2 .company-platforms .company-mission-paragraph-copy { font-size: 15px; }
/* Webflow のふわっと出る演出がスマホで動かず見出しが消えていたので、ここでは常に表示し、代わりに下の .rv で出す */
.company-v2 .company-mission-sectin [data-w-id],
.company-v2 .company-about-section [data-w-id],
.company-v2 .company-service-section [data-w-id] { opacity: 1 !important; }
.company-v2 .rv { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.company-v2 .rv.in { opacity: 1; transform: none; }
/* 会社情報の表 */
.company-v2 .company-info-section { width: var(--cw); padding: var(--gap-y) 0; margin: 0 auto; border-top: 1px solid var(--line); }
.company-v2 .company-info-key-col { width: 28%; }
.company-v2 .main-content.seond-color { display: flex; justify-content: center; }

/* ミッション: 画面いっぱいに大きく。見出しはグリッチしながら現れる（動きは src/scripts/company.ts） */
.company-v2 .company-mission-top { min-height: 80vh; min-height: 80svh; display: flex; align-items: center; margin: 0; padding: 72px 0; }
.company-v2 .company-mission-top .mission-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.company-v2 .mission-label { font-size: 13px !important; letter-spacing: .4em; text-transform: uppercase; color: var(--accent) !important; margin: 0 0 28px !important; display: flex; align-items: center; gap: 16px; }
.company-v2 .mission-label::before, .company-v2 .mission-label::after { content: ''; width: 48px; height: 1px; background: currentColor; opacity: .6; }
.company-v2 .company-mission-top .company-mission-title { color: #fff; font-size: clamp(34px, 6.2vw, 92px); line-height: 1.25; letter-spacing: .04em; font-weight: 600; margin: 0 0 40px; word-break: keep-all; overflow-wrap: anywhere; position: relative; text-shadow: 0 0 40px rgba(217, 151, 51, .25); }
.company-v2 .company-mission-top .company-about-paragraph { font-size: 17px; line-height: 2.1; max-width: 54em; text-align: center; }
.company-v2 .company-mission-top .company-about-paragraph .ln { display: inline; opacity: 0; transition: opacity 1s ease; }
.company-v2 .company-mission-top .company-about-paragraph.on .ln { opacity: 1; }
.company-v2 [data-glitch] .ch { display: inline-block; white-space: pre; }
.company-v2 [data-glitch] .ch.scr { color: var(--accent); opacity: .85; }
.company-v2 [data-glitch].glitch { animation: mission-glitch .42s steps(2, end) 1; }
@keyframes mission-glitch {
  0% { text-shadow: -4px 0 rgba(255, 60, 60, .8), 4px 0 rgba(0, 220, 255, .8); clip-path: inset(10% 0 55% 0); transform: translateX(-6px); }
  25% { text-shadow: 3px 0 rgba(255, 60, 60, .8), -3px 0 rgba(0, 220, 255, .8); clip-path: inset(55% 0 8% 0); transform: translateX(5px); }
  50% { text-shadow: -2px 0 rgba(255, 60, 60, .7), 2px 0 rgba(0, 220, 255, .7); clip-path: inset(30% 0 30% 0); transform: translateX(-3px); }
  75% { text-shadow: 1px 0 rgba(255, 60, 60, .6), -1px 0 rgba(0, 220, 255, .6); clip-path: inset(0 0 0 0); transform: translateX(2px); }
  100% { text-shadow: 0 0 40px rgba(217, 151, 51, .25); clip-path: none; transform: none; }
}

@media (max-width: 767px) {
  .company-v2 { --cw: calc(100% - 48px); --gap-y: 56px; }
  .company-v2 .company-mission-sectin:not(.company-mission-top) .mission-wrap,
  .company-v2 .company-service-section .company-info-container-4,
  .company-v2 .company-platforms { grid-template-columns: 1fr; }
  .company-v2 .company-platforms { gap: 16px; }
  .company-v2 .company-platforms .company-info-container-4 { padding: 28px 24px 30px; }
  .company-v2 .company-mission-sectin:not(.company-mission-top) .company-mission-title,
  .company-v2 .service-heading-5 { font-size: 22px; }
  .company-v2 .company-about-paragraph, .company-v2 .company-mission-paragraph-copy, .company-v2 .company-service-paragraph { font-size: 15px; line-height: 1.9; }
  .company-v2 .company-mission-top { min-height: 80svh; padding: 56px 0; }
  .company-v2 .company-mission-top .company-mission-title { margin-bottom: 28px; font-size: 38px; }
  .company-v2 .company-mission-top .company-about-paragraph { font-size: 15px; text-align: left; }
  .company-v2 .company-info-key-col { width: 36%; }
}
@media (prefers-reduced-motion: reduce) {
  .company-v2 .rv { opacity: 1; transform: none; transition: none; }
  .company-v2 .company-mission-top .company-about-paragraph .ln { opacity: 1; }
}

/* ===== トップ: Featured Works のらせん（ページのスクロールで回す。2026-10-29） ===== */
html.helix-on .works-helix--home .works-helix-sticky { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: visible; }
.works-helix--home .works-helix-canvas { touch-action: pan-y; cursor: pointer; opacity: 0; }
.works-helix--home .works-helix-caption { opacity: 0; }
/* らせんの間だけ背景の動画を暗くして作品を見やすく（最後まで回ると消えて動画が見える） */
.home-helix-dim { position: fixed; inset: 0; background: rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; }
html.helix-on .home-featured-fallback { display: none; }
/* 最後まで回ったらヘッダーを隠す */
.navigation-main { transition: opacity .5s ease, transform .5s ease; }
html.home-end .navigation-main { opacity: 0; transform: translateY(-24px); pointer-events: none; }
/* トップの最後の画面: 動画が主役。フッターは大きなロゴ＋小さなリンク（2026-10-29） */
/* トップ: スクロール後の動画の暗さ（元は 10%）を、らせんの後ろでも動画が透けて見える程度に */
html.helix-on .video-foreground.darkened { filter: brightness(.55); }
html.helix-on.home-end .video-foreground.darkened { filter: none; }
.video-foreground { transition: filter 1s ease !important; }
section.footer.home-footer { position: relative; z-index: 30; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; background: transparent; padding: 0; }
.home-footer .brix---footer-wrapper { background: transparent; padding: 0; }
.home-footer .brix---container-default-4 { display: none; }  /* 元のフッターの中身（下の .hf に作り直した） */
.hf { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px 40px; padding: 120px clamp(24px, 4vw, 64px) 32px; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .35) 55%, transparent); font-family: Instrument Sans, sans-serif; }
.hf-logo { display: block; width: clamp(150px, 15vw, 220px); margin-bottom: 12px; }  /* ヘッダーと同じ 3D ロゴ（元画像が 300px 幅なので、それ以上大きくしない） */
.hf-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .35)); }
.hf-links { display: flex; flex-wrap: wrap; align-items: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.hf-links a { color: rgba(255, 255, 255, .88); text-decoration: none; padding: 4px 0; transition: color .25s; display: inline-flex; align-items: center; }
.hf-links a + a::before { content: ''; width: 1px; height: 11px; background: rgba(255, 255, 255, .35); margin: 0 16px; }
.hf-links a:hover { color: #d99733; }
.hf-store { justify-self: end; align-self: end; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .5); color: #fff; text-decoration: none;
  font-size: 13px; letter-spacing: .04em; background: rgba(0, 0, 0, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, border-color .3s, color .3s; }
.hf-store:hover { background: #fff; color: #000; border-color: #fff; }
.hf-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 11px; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }  /* 大文字化しない（© 2026 Hypolygon Inc.） */
.hf-top { color: rgba(255, 255, 255, .75); text-decoration: none; transition: color .25s; }
.hf-top:hover { color: #fff; }
@media (max-width: 767px) {
  .hf { grid-template-columns: 1fr; gap: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .hf-logo { width: 150px; margin-bottom: 12px; }
  .hf-links { row-gap: 10px; }
  .hf-links { font-size: 11px; letter-spacing: .1em; }
  .hf-links a + a::before { margin: 0 9px; }
  .hf-links a.hf-x { margin-left: 12px; }  /* X まで1行に収める */
  /* スマホ: STORE は小さく、ロゴの右に並べる（.hf の上の余白 120px ＋ ロゴの高さの中央） */
  .hf-store { position: absolute; top: 121px; right: 24px; padding: 8px 14px; font-size: 12px; gap: 8px; }
}

/* スマホのヘッダー（ロゴと Menu）も、最後まで回ったら隠す */
.navigation-logo { transition: opacity .5s ease, transform .5s ease; }
html.home-end .navigation-logo { opacity: 0; transform: translateY(-24px); pointer-events: none; }
/* スマホのトップ: 最初の画面を「実際に見えている高さ」に合わせ、Scroll Down が Safari の下のバーに隠れないように。文字も少し大きく */
@media (max-width: 767px) {
  .company-logo-wrap.hero-container._w-nav-brand { height: 100vh; height: 100svh; }
  .hero-container .text-block-3.scroll { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; width: 180px; bottom: calc(5% + 6px); }
}
.hf-links a.hf-x::before { display: none; }
.hf-links a.hf-x { margin-left: 20px; }

/* ===== 実績ページの一番下: らせんの部屋（2026-10-29） ===== */
section.footer.project-room { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0; background: #000; overflow: hidden; }
.project-room .brix---footer-wrapper { position: relative; z-index: 3; background: transparent; padding: 0; pointer-events: none; }
.project-room .hf, .project-room .hf a { pointer-events: auto; }
.project-room .brix---container-default-4 { display: none; }
html.helix-on .project-room .works-helix { position: absolute; inset: 0; height: auto; min-height: 0; display: block; }
/* らせんは部屋の上 8 割に描き、下のフッターと重ならないように */
html.helix-on .project-room .works-helix-canvas { position: absolute; inset: 0 0 20% 0; width: 100%; height: 80%; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); }
.project-room .works-helix-hint { top: 28px; font-size: 10px; letter-spacing: .3em; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.project-room .hf { padding-top: 48px; background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .5) 60%, transparent); }
.project-room .hf-logo { width: clamp(150px, 15vw, 220px); margin-bottom: 12px; }
html.room-in .navigation-main, html.room-in .navigation-logo { opacity: 0; transform: translateY(-24px); pointer-events: none; }
@media (max-width: 767px) {
  html.helix-on .project-room .works-helix-canvas { inset: 0 0 26% 0; height: 74%; }
  .project-room .hf-store { display: none; }
  .project-room .hf-logo { width: 150px; }
  .project-room .hf { gap: 14px; padding-top: 32px; }
  .project-room .works-helix-hint { font-size: 9px; letter-spacing: .2em; }
}

/* ===== ボタンの見た目を統一（2026-10-30）: STORE と同じ 半透明の白い枠線＋背景ブラー、四角、文字は頭文字だけ大文字 ===== */
.explore-button, .hf-store, .button-primary, .submit-btn {
  border: 1px solid rgba(255, 255, 255, .5) !important; border-radius: 0 !important;
  background-color: rgba(0, 0, 0, .18) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  text-transform: none !important; font-family: "Instrument Sans", sans-serif;
}
.explore-button, .button-primary { font-size: 13px; letter-spacing: .04em; }
/* Contact の Send ボタン: 左右の線をやめて、ほかのボタンと同じ形に */
.submit-btn-line { display: none !important; }
.submit-btn { font-weight: 400 !important; color: #fff !important; font-size: 13px !important; letter-spacing: .04em !important; padding: 10px 32px !important; line-height: 1.4 !important; cursor: pointer; transition: background-color .3s, color .3s; }
.submit-btn:hover { background-color: #fff !important; color: #000 !important; }
/* フッターの Store: 上の統一ルール（!important）で、ホバー時の白い背景が効かず文字だけ黒くなっていたのを直す（ヘッダーの Store と同じ白反転に） */
.hf-store:hover { background-color: #fff !important; border-color: #fff !important; color: #000; }
.contact-btn-wrapper { justify-content: center; }
.button-primary .button-text { text-transform: none; letter-spacing: .04em; }
.button-primary .button-overlay { border-radius: 0 !important; }

/* ===== 全ページ共通のフッター（Works / Company / Contact も .hf）。フッターが見えたらヘッダーを隠す ===== */
section.footer.site-footer { position: relative; z-index: 30; padding: 0; background: transparent; }
.site-footer .brix---footer-wrapper { background: transparent; padding: 0; }
.site-footer .brix---container-default-4 { display: none; }
.site-footer .hf { padding-top: 96px; }
html.footer-in .navigation-main, html.footer-in .navigation-logo { opacity: 0; transform: translateY(-24px); pointer-events: none; }
@media (max-width: 767px) {
  .site-footer .hf-store { top: 97px; }  /* ロゴの右に並べる（上の余白に合わせて） */
}

/* ===== 404: 黒背景に ===== */
body.light-gray:has(.utility-page-wrap), .utility-page-wrap { background-color: #000 !important; color: #f1f3f8; }
.utility-page-wrap ._404-title { color: #fff; }
.utility-page-wrap .subhead { color: rgba(255, 255, 255, .65); }
.utility-page-wrap img[src*="icons8-error"] { filter: invert(1) grayscale(1) brightness(1.6); opacity: .85; }

/* ===== Company / Contact: ネオンのロゴ動画を全画面の背景に（トップと同じ形）。スクロールで文字が来るほど暗く（2026-10-30） ===== */
html.video-bg shader-art { display: none !important; }
html.video-bg .page-content { background-color: transparent !important; }
html.video-bg body { background-color: #000; }
/* 最初の画面: 動画だけを見せる（高さは見えている画面ぶん） */
html.video-bg .company-logo-wrap { position: relative; height: 100vh; height: 100svh; min-height: 0 !important; max-height: none !important; margin: 0 !important; }
/* 動画そのものは画面に固定して、ページ全体の背景に */
html.video-bg .company-logo { position: fixed !important; inset: 0; width: 100vw; height: 100vh !important; height: 100lvh !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; z-index: -1; }
html.video-bg .company-logo video { width: 100%; height: 100%; object-fit: cover; }
html.video-bg .company-logo::after { content: ''; position: absolute; inset: 0; background: #000; opacity: var(--video-dim, 0); pointer-events: none; }
html.video-bg .company-logo-wrap .text-block-3.scroll { z-index: 2; }
/* 縦長の画面（スマホ）: 横長の動画の左右が切れてロゴが欠けないよう、動画は横幅に合わせて画面の真ん中に置き、
   上下の端は黒に溶かす（余白は黒。後ろに敷かれていた静止画との継ぎ目が出ないように） */
@media (max-aspect-ratio: 1/1) {
  html.video-bg .company-logo { background: #000 !important; }
  html.video-bg .company-logo video {
    inset: auto !important; top: 45% !important; left: 50% !important; margin: 0 !important;  /* 真ん中より少し上に */
    width: 135% !important; height: auto !important; transform: translate(-50%, -50%);
    object-fit: cover; background-image: none !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%);
  }
}
/* Company / Contact: 背景のネオン動画にも、トップの動画と同じドットの網（/images/bg_mask.webp を 8 割の濃さで） */
html.video-dots .company-logo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: url('/images/bg_mask.webp') repeat 0 0; opacity: .8; pointer-events: none; }
html.video-dots .company-logo::after { z-index: 2; }
/* Contact: フォームの区切りを画面の高さいっぱいにせず、フォームの分だけに（下のフッターまでの余白を詰める） */
html.video-bg .contact-wrapper, html.video-bg .contact-form-wrapper { height: auto !important; min-height: 0 !important; }
html.video-bg .contact-form-wrapper { position: relative !important; top: auto; bottom: auto; right: auto; }
html.video-bg .contact-form, html.video-bg .form-block-3 { height: auto !important; max-height: none !important; }
html.video-bg .contact-wrapper { padding: 96px 0 24px; }
html.video-bg .contact-inner-wrapper { padding-bottom: 0; }
html.video-bg .site-footer .hf { padding-top: 56px; }
@media (max-width: 767px) {
  html.video-bg .contact-wrapper { padding: 72px 0 8px; }
  html.video-bg .site-footer .hf-store { top: 57px; }  /* フッターの上の余白（56px）に合わせ、ロゴの右に */
}
/* Company / Contact の Scroll Down: トップと同じく、スクロールし始めたら消える（画面の半分スクロールで見えなくなる） */
html.video-bg .company-logo-wrap > .text-block-3.scroll, html.video-bg .company-logo-wrap > .image-14 { opacity: var(--hero-fade, 1); }

/* 左上の回転ロゴ: どのページもトップと同じ大きさに（Webflow ではトップのリンクだけ「今いるページ」扱いで大きくなっていた） */
@media screen and (max-width: 991px) { .that-logo { width: 180px; } }
@media screen and (max-width: 479px) { .that-logo { width: 150px; } }

/* ===== らせんの作品名などの切り替え演出（2026-10-30）: 記号から文字に変わる間はオレンジ、全体が一瞬だけ赤青にずれる ===== */
.works-helix-caption .scr { color: #d99733; opacity: .9; }
.works-helix-caption.glitch .works-helix-title, .works-helix-caption.glitch .works-helix-no, .works-helix-caption.glitch .works-helix-sub { animation: caption-glitch .26s steps(2, end) 1; }
@keyframes caption-glitch {
  0% { text-shadow: -3px 0 rgba(255, 60, 60, .8), 3px 0 rgba(0, 220, 255, .8); clip-path: inset(0 0 45% 0); transform: translateX(-4px); }
  35% { text-shadow: 2px 0 rgba(255, 60, 60, .8), -2px 0 rgba(0, 220, 255, .8); clip-path: inset(40% 0 0 0); transform: translateX(3px); }
  70% { text-shadow: -1px 0 rgba(255, 60, 60, .6), 1px 0 rgba(0, 220, 255, .6); clip-path: none; transform: translateX(-1px); }
  100% { clip-path: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .works-helix-caption.glitch * { animation: none !important; } }

/* ===== ヘッダー・フッターのホバー（2026-10-31）: らせんの作品名と同じ一瞬の文字化け（動きは /js/hover-scramble.js） ===== */
/* ヘッダーのリンクは、これまでの「文字が下から入れ替わる」動きをやめて、文字化けだけに（上の線が伸びる動きはそのまま） */
.navigation-main .navigation-wrapper .button-text { transform: none !important; }
.navigation-main .navigation-wrapper .button-text.opacity { transition: opacity .25s; }
.navigation-main .navigation-wrapper:hover .button-text.opacity { opacity: 1; }
.hs-glitch .scr { color: #d99733; opacity: .9; }
.hs-glitch { animation: caption-glitch .26s steps(2, end) 1; }
@media (prefers-reduced-motion: reduce) { .hs-glitch { animation: none !important; } }
/* 文字が入れ替わる中の層はマウスに反応させない（判定はリンクの箱だけ。幅やずれで判定が変わらないように） */
.hs-text { display: inline-block; white-space: nowrap; }
.hs-text, .navigation-main .navigation-wrapper .button-text, .explore-menu-text, .explore-button-text, .explore-button-text-close { pointer-events: none; }
/* フッターのリンク: 判定を文字の箱ぴったりに。区切り線はリンクの外に出して、線の上では反応しないように */
.hf-links a { padding: 0; position: relative; }
.hf-links a + a { margin-left: 33px; }
.hf-links a + a::before { position: absolute; left: -17px; top: 50%; margin: 0; transform: translateY(-50%); pointer-events: none; }
@media (max-width: 767px) {
  .hf-links a + a { margin-left: 19px; }
  .hf-links a + a::before { left: -10px; margin: 0; }
}

/* ===== ヘッダーをフッターと同じデザインに（2026-10-31・試し）: 上の線をやめて、区切り線で並べる。Store はフッターと同じ枠付きボタン ===== */
@media screen and (min-width: 992px) {
  .navigation-main .navigation-grid { display: flex; align-items: center; justify-content: flex-start; gap: 0; }
  .navigation-main .navigation-grid > a:first-child { margin-right: auto; }  /* ロゴは左、リンクは右に寄せる */
  .navigation-main .navigation-top-line { display: none; }
  .navigation-main a.navigation-wrapper { position: relative; width: auto; padding: 0; gap: 0; display: inline-flex; flex-direction: row; align-items: center;
    font-family: Instrument Sans, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .14em; }
  .navigation-main .navigation-wrapper .button-text-wrapper { height: auto; line-height: 20px; font-size: 12px; overflow: visible; }
  .navigation-main .navigation-wrapper .button-text-wrapper .button-text:not(.opacity) { display: none; }
  .navigation-main .navigation-wrapper .button-text.opacity { opacity: 1; color: rgba(255, 255, 255, .88); transition: color .25s; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
  .navigation-main .navigation-wrapper:hover .button-text.opacity { color: #d99733; }
  /* 区切り線（リンクの外に出して、線の上ではホバーしない） */
  .navigation-main a.navigation-wrapper + a.navigation-wrapper { margin-left: 33px; }
  .navigation-main a.navigation-wrapper + a.navigation-wrapper::before { content: ''; position: absolute; left: -17px; top: 50%; width: 1px; height: 11px; transform: translateY(-50%);
    background: rgba(255, 255, 255, .35); pointer-events: none; }
  /* Store: フッターと同じ枠付きボタン */
  .navigation-main a.navigation-wrapper[data-store-link] { margin-left: 32px; padding: 8px 16px; gap: 10px; letter-spacing: .04em; text-transform: none; font-size: 13px;
    border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, border-color .3s; }
  .navigation-main a.navigation-wrapper[data-store-link]::before { display: none; }
  .navigation-main a.navigation-wrapper[data-store-link] .button-text-wrapper { font-size: 13px; }
  .navigation-main a.navigation-wrapper[data-store-link] .button-text.opacity { color: #fff; text-shadow: none; }
  .navigation-main a.navigation-wrapper[data-store-link]::after { content: ''; width: 12px; height: 12px; background: currentColor; color: #fff; transition: color .3s;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12L12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12L12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat; }
  .navigation-main a.navigation-wrapper[data-store-link]:hover { background: #fff; border-color: #fff; }
  .navigation-main a.navigation-wrapper[data-store-link]:hover .button-text.opacity, .navigation-main a.navigation-wrapper[data-store-link]:hover::after { color: #000; }
}
