/*
Theme Name: The Moving Hero
Theme URI: https://themovinghero.jp
Author: The Moving Hero 株式会社
Description: オフィシャルサイト — エンターテイメントエージェンシー（白背景版）
Version: 2.0.0
License: Proprietary
Text Domain: the-moving-hero
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #C0141C;
  --red-dark: #8B0D12;
  --red-light: #E8353D;
  --black: #111111;
  --gray-text: #555555;
  --gray-dim: #888888;
  --white: #FFFFFF;
  --offwhite: #FAFAFA;
  --line: #EAEAEA;
  --dark2: #F4F4F4;
  --dark3: #EFEFEF;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--offwhite); }
::-webkit-scrollbar-thumb { background: var(--red); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== CURSOR ===== */
.cursor {
  position: fixed; width: 6px; height: 6px;
  background: var(--red); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s;
}
.cursor-ring {
  position: fixed; width: 28px; height: 28px;
  border: 1px solid rgba(192,20,28,0.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s;
}
.cursor.big { transform: translate(-50%,-50%) scale(3); }
.cursor-ring.big { width: 56px; height: 56px; }

/* ===== NAV ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 64px;
  background: rgba(255,255,255,0.0);
  transition: padding 0.4s, background 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
  padding: 18px 64px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
.site-branding { display: flex; align-items: center; flex-direction: column; gap: 2px; }
.site-branding img,
.site-branding .custom-logo {
  max-height: 24px;
  width: auto;
  display: block;
  transition: max-height 0.4s;
}
.site-header.scrolled .site-branding img,
.site-header.scrolled .site-branding .custom-logo {
  max-height: 18px;
}
.site-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600; letter-spacing: 0.2em; color: var(--black);
}
.site-name span { color: var(--red); }
.site-tagline { font-size: 0.48rem; letter-spacing: 0.5em; color: var(--gray-dim); }

.main-navigation ul { display: flex; gap: 44px; list-style: none; }
.main-navigation a {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 500; color: var(--gray-text);
  position: relative; transition: color 0.3s;
}
.main-navigation a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--red); transition: width 0.3s;
}
.main-navigation a:hover { color: var(--black); }
.main-navigation a:hover::after { width: 100%; }

.header-cta {
  font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase;
  padding: 11px 28px; border: 1px solid var(--red);
  color: var(--red); background: transparent; font-weight: 500;
  transition: all 0.3s;
}
.header-cta:hover { background: var(--red); color: var(--white); }

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; align-items: center; overflow: hidden;
  background: var(--white);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 75% 40%, rgba(192,20,28,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 30% 50% at 10% 70%, rgba(192,20,28,0.03) 0%, transparent 60%),
    var(--white);
}
.hero-bg-video {
  background: var(--black);
  overflow: hidden;
}
.hero-bg-video video {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover !important;
  object-position: 50% 50% !important;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(
    100deg,
    rgba(5,5,5,0.82) 0%,
    rgba(5,5,5,0.70) 32%,
    rgba(5,5,5,0.40) 54%,
    rgba(5,5,5,0.18) 74%,
    rgba(5,5,5,0.08) 100%
  );
}
.hero-bg-video ~ .hero-line { display: none; }

/* 動画背景時：文字を確実に読めるよう塗り白文字に統一 */
.hero.has-video .hero-eyebrow-text { color: #ff8a8e; }
.hero.has-video .hero-title { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.hero.has-video .hero-title .outline {
  -webkit-text-stroke: 0;
  color: var(--white);
}
.hero.has-video .hero-sub  { color: rgba(255,255,255,0.85); text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
.hero.has-video .btn-ghost { color: rgba(255,255,255,0.85); }
.hero.has-video .btn-ghost:hover { color: var(--red-light); }
.hero.has-video .scroll-cue-text { color: rgba(255,255,255,0.7); }

.hero-line {
  position: absolute; top: 0; right: 26%; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(192,20,28,0.25) 40%, rgba(192,20,28,0.25) 60%, transparent);
  transform: rotate(8deg) translateX(20px);
}
.hero-content { position: relative; z-index: 2; padding: 0 64px; max-width: 980px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 16px; margin-bottom: 36px;
  opacity: 0; animation: riseIn 0.9s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
.hero-eyebrow-line { width: 48px; height: 1px; background: var(--red); }
.hero-eyebrow-text { font-size: 0.58rem; letter-spacing: 0.55em; text-transform: uppercase; color: var(--red); font-weight: 500; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.8rem, 9vw, 8.5rem); font-weight: 600;
  line-height: 0.95; margin-bottom: 36px; color: var(--black);
  opacity: 0; animation: riseIn 1s cubic-bezier(0.16,1,0.3,1) 0.35s forwards;
}
.hero-title .italic { font-style: italic; color: var(--red); }
.hero-title .outline { -webkit-text-stroke: 1px rgba(17,17,17,0.18); color: transparent; }
.hero-sub {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem; letter-spacing: 0.15em; line-height: 2.2;
  color: var(--gray-text); max-width: 520px; margin-bottom: 52px; font-weight: 300;
  opacity: 0; animation: riseIn 1s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
}
.hero-actions {
  display: flex; gap: 28px; align-items: center;
  opacity: 0; animation: riseIn 1s cubic-bezier(0.16,1,0.3,1) 0.65s forwards;
}
.btn-red {
  background: var(--red); color: var(--white);
  padding: 17px 44px; font-size: 0.6rem;
  letter-spacing: 0.35em; text-transform: uppercase; font-weight: 500;
  transition: background 0.3s; display: inline-block;
}
.btn-red:hover { background: var(--red-light); color: var(--white); }
.btn-ghost {
  color: var(--gray-text); font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; display: flex; align-items: center; gap: 12px; transition: color 0.3s;
}
.btn-ghost .arr { width: 32px; height: 1px; background: currentColor; position: relative; transition: width 0.3s; }
.btn-ghost .arr::after { content: ''; position: absolute; right: 0; top: -3px; border: 4px solid transparent; border-left: 6px solid currentColor; }
.btn-ghost:hover { color: var(--red); }
.btn-ghost:hover .arr { width: 48px; }
.hero-right {
  position: absolute; right: 0; top: 0; bottom: 0; width: 28%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: fadeIn 1.5s ease 1s forwards;
}
.hero-bg-text {
  font-family: 'Playfair Display', serif; font-size: 22vw; font-weight: 700;
  color: rgba(192,20,28,0.04); line-height: 1; user-select: none;
}
.scroll-cue {
  position: absolute; bottom: 44px; left: 64px;
  display: flex; align-items: center; gap: 14px;
  opacity: 0; animation: fadeIn 1s ease 1.4s forwards;
}
.scroll-cue-line { width: 1px; height: 52px; background: linear-gradient(to bottom, var(--red), transparent); animation: pulse 2s ease-in-out infinite; }
.scroll-cue-text { font-size: 0.52rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gray-dim); writing-mode: vertical-rl; }

/* ===== MARQUEE ===== */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0; background: var(--offwhite);
}
.marquee-track { display: flex; animation: marquee 22s linear infinite; width: max-content; }
.marquee-item {
  display: flex; align-items: center; gap: 28px; padding: 0 28px;
  font-family: 'Playfair Display', serif; font-size: 0.72rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gray-text); white-space: nowrap;
}
.mdot { width: 4px; height: 4px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

/* ===== SECTION COMMON ===== */
.section-wrap { padding: 140px 64px; background: var(--white); }
.section-wrap.bg-dark { background: var(--offwhite); position: relative; }
.section-wrap.bg-dark::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.stag { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.stag-line { width: 32px; height: 1px; background: var(--red); }
.stag-txt { font-size: 0.55rem; letter-spacing: 0.55em; text-transform: uppercase; color: var(--red); font-weight: 500; }
.sh { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; line-height: 1.1; margin-bottom: 80px; color: var(--black); }
.sh em { font-style: italic; color: var(--red); }

/* ===== SERVICES ===== */
.srv-layout { display: grid; grid-template-columns: 300px 1fr; gap: 80px; align-items: start; }
.srv-sticky { position: sticky; top: 120px; }
.srv-intro-txt { font-family: 'Noto Serif JP', serif; font-size: 0.78rem; letter-spacing: 0.1em; line-height: 2.4; color: var(--gray-text); margin-bottom: 40px; font-weight: 300; }
.srv-big { font-family: 'Playfair Display', serif; font-size: 5rem; font-weight: 600; color: rgba(192,20,28,0.1); line-height: 1; }
.srv-list { display: flex; flex-direction: column; gap: 2px; }
.srv-row {
  background: var(--offwhite); padding: 40px 44px;
  display: grid; grid-template-columns: 72px 1fr auto;
  align-items: start; gap: 28px; position: relative; overflow: hidden; transition: background 0.4s;
  border: 1px solid var(--line);
}
.srv-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transition: transform 0.4s; transform-origin: bottom; }
.srv-row:hover { background: var(--white); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.srv-row:hover::before { transform: scaleY(1); }
.srv-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 600; color: rgba(192,20,28,0.25); line-height: 1; padding-top: 4px; }
.srv-label { font-size: 0.52rem; letter-spacing: 0.45em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.srv-title { font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 600; margin-bottom: 14px; line-height: 1.2; color: var(--black); }
.srv-desc { font-size: 0.7rem; letter-spacing: 0.06em; line-height: 2; color: var(--gray-text); font-family: 'Noto Serif JP', serif; font-weight: 300; }
.srv-icon { font-size: 1.8rem; opacity: 0.6; }

/* ===== ABOUT ===== */
.ab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.ab-body { font-family: 'Noto Serif JP', serif; font-size: 0.82rem; letter-spacing: 0.08em; line-height: 2.6; color: var(--gray-text); margin: 32px 0 48px; font-weight: 300; }
.ab-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.pillar { background: var(--white); padding: 26px 22px; border: 1px solid var(--line); border-bottom: 2px solid transparent; transition: border-color 0.3s; }
.pillar:hover { border-bottom-color: var(--red); }
.pillar-lbl { font-size: 0.52rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--red); margin-bottom: 9px; }
.pillar-txt { font-family: 'Noto Serif JP', serif; font-size: 0.72rem; letter-spacing: 0.06em; line-height: 1.8; color: var(--gray-text); font-weight: 300; }
.ab-visual { position: relative; }
.ab-frame { width: 100%; aspect-ratio: 4/5; background: var(--dark3); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.ab-frame img { width: 100%; height: 100%; object-fit: cover; }
.ab-frame-txt { font-family: 'Playfair Display', serif; font-size: 7rem; font-weight: 700; color: rgba(192,20,28,0.12); }
.ab-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 60%, rgba(192,20,28,0.05)); }
.ab-corner { position: absolute; top: -16px; right: -16px; width: 50%; height: 50%; border-top: 1px solid rgba(192,20,28,0.3); border-right: 1px solid rgba(192,20,28,0.3); }
.ab-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 4px; }
.ast { background: var(--black); padding: 22px 18px; text-align: center; }
.ast-n { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 600; color: var(--red); line-height: 1; margin-bottom: 7px; }
.ast-l { font-size: 0.52rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--white); opacity: 0.7; }

/* ===== WORKS ===== */
.wk-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 280px 280px; gap: 3px; margin-top: 80px; }
.wk-card { position: relative; overflow: hidden; background: var(--dark3); display: flex; align-items: flex-end; }
.wk-card:first-child { grid-column: 1/2; grid-row: 1/3; }
.wk-bg { position: absolute; inset: 0; transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94); background-size: cover; background-position: center; }
.wk-card:hover .wk-bg { transform: scale(1.06); }
.wk-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.1) 55%, transparent 100%); }
.wk-info { position: relative; z-index: 2; padding: 32px; }
.wk-cat { font-size: 0.5rem; letter-spacing: 0.45em; text-transform: uppercase; color: #ff8a8e; margin-bottom: 8px; }
.wk-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: var(--white); }
.wk-card:first-child .wk-title { font-size: 2rem; }
.wk-icon { position: absolute; top: 24px; right: 24px; font-size: 1.6rem; opacity: 0.5; }

/* ===== TALENT ===== */
.tl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 80px; }
.tl-card { position: relative; overflow: hidden; }
.tl-img { aspect-ratio: 2/3; background: var(--dark3); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: rgba(192,20,28,0.18); position: relative; overflow: hidden; }
.tl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.tl-card:hover .tl-img img { transform: scale(1.06); }
.tl-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%); }
.tl-body { background: var(--white); padding: 20px 20px 24px; position: relative; transition: background 0.3s; border: 1px solid var(--line); border-top: none; }
.tl-card:hover .tl-body { background: var(--offwhite); }
.tl-body::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.tl-card:hover .tl-body::before { transform: scaleX(1); }
.tl-role { font-size: 0.5rem; letter-spacing: 0.45em; text-transform: uppercase; color: var(--red); margin-bottom: 7px; }
.tl-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--black); }

/* ===== CONTACT ===== */
.ct-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; align-items: start; }
.ct-lead { font-family: 'Noto Serif JP', serif; font-size: 0.8rem; letter-spacing: 0.08em; line-height: 2.6; color: var(--gray-text); margin: 32px 0 52px; font-weight: 300; }
.ct-info { display: flex; flex-direction: column; gap: 28px; }
.ci-lbl { font-size: 0.5rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--red); margin-bottom: 5px; }
.ci-val { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; color: var(--black); }
.cf-wrap { display: flex; flex-direction: column; gap: 3px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.cf-f { background: var(--offwhite); padding: 20px 24px; display: flex; flex-direction: column; gap: 7px; transition: background 0.3s; border: 1px solid var(--line); }
.cf-f:focus-within { background: var(--white); border-color: var(--red); }
.cf-f.full { grid-column: 1/-1; }
.cf-lbl { font-size: 0.5rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--red); }
.cf-f input, .cf-f select, .cf-f textarea {
  background: none; border: none; outline: none;
  color: var(--black); font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.04em; font-weight: 400; resize: none; width: 100%;
}
.cf-f select option { background: var(--white); }
.cf-f textarea { height: 110px; }
.cf-wrap input[type="submit"] {
  background: var(--red); color: var(--white); border: none; padding: 21px; width: 100%;
  font-family: 'Montserrat', sans-serif; font-size: 0.6rem; letter-spacing: 0.45em;
  text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background 0.3s;
}
.cf-wrap input[type="submit"]:hover { background: var(--red-light); }

/* Contact Form 7 overrides */
.wpcf7-form { display: flex; flex-direction: column; gap: 3px; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip { font-size: 0.6rem; color: var(--red); margin-top: 4px; }
.wpcf7-response-output { font-size: 0.7rem; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--red); color: var(--black); }

/* ===== FOOTER ===== */
.site-footer {
  padding: 52px 64px;
  border-top: 1px solid var(--line);
  background: var(--offwhite);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.2em; color: var(--black); }
.footer-name span { color: var(--red); }
.footer-co { font-size: 0.5rem; letter-spacing: 0.4em; color: var(--gray-dim); }
.footer-nav ul { display: flex; gap: 36px; list-style: none; }
.footer-nav a { font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gray-text); transition: color 0.3s; }
.footer-nav a:hover { color: var(--red); }
.footer-copy { font-size: 0.52rem; letter-spacing: 0.08em; color: var(--gray-dim); }

/* ===== ANIMATIONS ===== */
@keyframes riseIn { from{opacity:0;transform:translateY(32px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes pulse { 0%,100%{transform:scaleY(1);opacity:.4} 50%{transform:scaleY(1.3);opacity:1} }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

.rev { opacity:0; transform:translateY(36px); transition: opacity 0.9s ease, transform 0.9s ease; }
.rev.on { opacity:1; transform:translateY(0); }
.d1{transition-delay:.1s} .d2{transition-delay:.2s} .d3{transition-delay:.3s}
.d4{transition-delay:.4s} .d5{transition-delay:.5s} .d6{transition-delay:.6s}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .site-header { padding: 20px 24px; }
  .site-header.scrolled { padding: 16px 24px; }
  .main-navigation, .header-cta { display: none; }
  .hero-content { padding: 0 24px; }
  .hero-right { display: none; }
  .scroll-cue { left: 24px; }
  .section-wrap { padding: 80px 24px; }
  .srv-layout { grid-template-columns: 1fr; gap: 40px; }
  .srv-sticky { position: static; }
  .ab-grid { grid-template-columns: 1fr; gap: 48px; }
  .wk-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .wk-card:first-child { grid-column: auto; grid-row: auto; }
  .tl-grid { grid-template-columns: 1fr 1fr; }
  .ct-grid { grid-template-columns: 1fr; gap: 56px; }
  .cf-row { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
