/* =========================================================
   effects.css — 2026 redesign layer
   既存 style.css の上に重ねる演出専用スタイル
   ========================================================= */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body { background: #000; }
body.is-loading { overflow: hidden; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 4vw;
  box-sizing: border-box;
  pointer-events: none;
}
#preloader .pl-count {
  font-family: "Baskervville", serif;
  font-size: clamp(80px, 18vw, 260px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
#preloader .pl-label {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.6;
  writing-mode: vertical-rl;
}
#preloader .pl-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Grain ---------- */
#grain {
  position: fixed;
  inset: -100%;
  width: 300%;
  height: 300%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-6%, 4%); }
  50%  { transform: translate(4%, -7%); }
  75%  { transform: translate(-3%, 8%); }
  100% { transform: translate(6%, -2%); }
}

/* ---------- Custom cursor ---------- */
@media (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor label { cursor: none; }
  #cursor {
    position: fixed;
    top: 0; left: 0;
    z-index: 9500;
    pointer-events: none;
    mix-blend-mode: difference;
  }
  #cursor .c-dot {
    position: absolute;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #fff;
  }
  #cursor .c-ring {
    position: absolute;
    width: 36px; height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.9);
    display: grid;
    place-items: center;
    transition: width .35s var(--ease-out-expo), height .35s var(--ease-out-expo),
                margin .35s var(--ease-out-expo), background .35s, border-color .35s;
  }
  #cursor .c-label {
    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 0.25em;
    color: #000;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity .25s, transform .35s var(--ease-out-expo);
  }
  #cursor.is-link .c-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  #cursor.is-view .c-ring {
    width: 96px; height: 96px; margin: -48px 0 0 -48px;
    background: #fff; border-color: #fff;
  }
  #cursor.is-view .c-dot { opacity: 0; }
  #cursor.is-view .c-label { opacity: 1; transform: scale(1); }
  #cursor.is-hidden { opacity: 0; }
}
@media (pointer: coarse) { #cursor { display: none; } }

/* ---------- Hero ---------- */
#hero-gl {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  display: block;
}
#scene_top video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -1;
}
body.has-hero-gl #scene_top video { opacity: 0; }

#scene_top { position: relative; height: 100vh; }

.catccopy .title .word { display: inline-block; white-space: nowrap; }
.catccopy .title .char {
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  opacity: 0;
  will-change: transform;
}
.catccopy .title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.catccopy p { opacity: 0; transform: translateY(20px); }

.hero-meta {
  position: absolute;
  right: 4vw;
  bottom: 5vh;
  color: #fff;
  mix-blend-mode: difference;
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-align: right;
  line-height: 2;
  opacity: 0;
}
.hero-scroll {
  position: absolute;
  left: 5%;
  bottom: 5vh;
  color: #fff;
  mix-blend-mode: difference;
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
}
.hero-scroll::after {
  content: "";
  width: 60px; height: 1px;
  background: #fff;
  transform-origin: left;
  animation: scrollline 2s var(--ease-in-out-quart) infinite;
}
@keyframes scrollline {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ---------- Section headings (split reveal) ---------- */
.split-line { display: block; overflow: hidden; }
.split-word { display: inline-block; transform: translateY(110%); will-change: transform; }
.split-word + .split-word { margin-left: 0.3em; }

.section-index {
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  opacity: 0.5;
  margin-bottom: 1.5em;
  display: block;
}

/* Scene 02 */
#scene_02 img.photo03 { will-change: transform; }

/* ---------- Works ---------- */
.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 8vh 7% 0;
  position: relative;
  z-index: 2;
}
.work-filter button {
  background: none;
  border: 0;
  padding: 4px 0;
  color: rgba(255,255,255,0.45);
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  position: relative;
  transition: color .3s;
}
.work-filter button::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out-expo);
}
.work-filter button:hover, .work-filter button.is-active { color: #fff; }
.work-filter button.is-active::after { transform: scaleX(1); transform-origin: left; }

.thum_wapper { transition: opacity .5s, transform .5s var(--ease-out-expo); }
.thum_wapper.is-filtered-out { display: none; }
.thum_wapper .img-wrap { transform-style: preserve-3d; }
.thum_wapper .img-wrap img {
  transition: transform .9s var(--ease-out-expo), filter .6s;
  filter: grayscale(0.25);
}
.thum_wapper:hover .img-wrap img { transform: scale(1.08); filter: grayscale(0); }
.thum_wapper h4 { transition: transform .6s var(--ease-out-expo); }
.thum_wapper:hover h4 { transform: translateX(6px); }

/* ---------- Modal ---------- */
.modal-wrap .modal-content {
  transition: none;
  will-change: transform, clip-path;
}
.modal-overlay { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* モーダル内タイポグラフィを統一（style.css の p / h3 グローバル指定と混在していたため整理） */
.modal-text {
  padding: clamp(28px, 4vw, 56px);
  justify-content: center;
  gap: 0;
}
.modal-text > * { margin: 0; }
.modal-category {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.modal-title {
  font-family: "Baskervville", serif;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #fff;
  mix-blend-mode: normal;
  margin-bottom: 22px;
}
.modal-desc {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.75);
  max-width: 34em;
}
.modal-link-container { margin-top: 32px; }
.modal-link-container[style*="none"] { display: none; }
.btn-site-link {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  padding: 14px 28px;
  gap: 12px;
}
@media screen and (max-width: 780px) {
  .modal-text { padding: 24px 22px 32px; }
  .modal-category { margin-bottom: 12px; }
  .modal-title { font-size: 22px; margin-bottom: 14px; }
  .modal-desc { font-size: 13px; line-height: 1.9; }
  .modal-link-container { margin-top: 24px; }
}

/* ---------- Ticker ---------- */
.logo-ticker { position: relative; }

/* ---------- Pricing hover ---------- */
.pricing-item { transition: transform .6s var(--ease-out-expo), background .4s; }
.pricing-item:hover { transform: translateY(-4px); }

/* ---------- Flyer service ---------- */
#flyer {
  position: relative;
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.flyer-marquee {
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  white-space: nowrap;
}
.flyer-marquee__track {
  display: inline-flex;
  gap: 4vw;
  animation: flyer-marquee 28s linear infinite;
}
.flyer-marquee__track span {
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.55);
}
.flyer-marquee__track span::after { content: "◆"; margin-left: 4vw; font-size: 6px; vertical-align: middle; opacity: 0.5; }
@keyframes flyer-marquee { to { transform: translateX(-50%); } }

.flyer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6vw;
  align-items: center;
  width: 86%;
  margin: 0 auto;
  padding: 14vh 0;
}
.flyer-copy .section-index { color: rgba(255,255,255,0.5); opacity: 1; }
.flyer-title {
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #fff;
  mix-blend-mode: normal;
  margin: 0 0 28px;
}
.flyer-lead {
  font-size: 15px;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
  color: #fff;
}
.flyer-desc {
  font-size: 14px;
  line-height: 2;
  color: rgba(255,255,255,0.7);
  max-width: 36em;
  margin: 0 0 36px;
}
.flyer-plans {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  max-width: 480px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.flyer-plans li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.flyer-plan__name { font-size: 13px; letter-spacing: 0.04em; }
.flyer-plan__name em {
  font-style: normal;
  font-family: "Cinzel", serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: #000;
  background: #fff;
  padding: 3px 8px;
  margin-left: 10px;
  vertical-align: middle;
}
.flyer-plan__price {
  font-family: "Baskervville", serif;
  font-size: 26px;
  white-space: nowrap;
}
.flyer-plan__price small { font-size: 12px; margin-left: 2px; }
.flyer-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #fff;
  text-decoration: none;
  padding: 18px 32px;
  border: 1px solid rgba(255,255,255,0.35);
  transition: background .4s, color .4s, border-color .4s;
}
.flyer-cta .arrow { transition: transform .4s var(--ease-out-expo); }
.flyer-cta:hover { background: #fff; color: #000; border-color: #fff; }
.flyer-cta:hover .arrow { transform: translateX(6px); }

.flyer-visual { display: block; text-decoration: none; }
.flyer-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #151515;
  border: 1px solid rgba(255,255,255,0.1);
}
.flyer-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.flyer-frame img {
  width: 100%; height: 108%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease-out-expo), filter .6s;
  filter: grayscale(0.3);
}
.flyer-visual:hover .flyer-frame img { transform: scale(1.06); filter: grayscale(0); }
.flyer-frame__tag {
  position: absolute;
  left: 14px; bottom: 14px;
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}
@media screen and (max-width: 780px) {
  .flyer-inner { grid-template-columns: 1fr; gap: 40px; width: 90%; padding: 12vh 0; }
  .flyer-visual { order: -1; max-width: 320px; margin: 0 auto; width: 100%; }
  .flyer-plans { max-width: none; }
}

/* ---------- Footer big type ---------- */
.footer-big {
  font-family: "Baskervville", serif;
  font-size: clamp(48px, 13vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  padding: 10vh 4vw 0;
  opacity: 0.9;
}
.footer-big .split-word { margin: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #grain, #cursor { display: none; }
  .catccopy .title .char, .catccopy p, .hero-meta, .hero-scroll { opacity: 1; transform: none; }
  .split-word { transform: none; }
}

@media screen and (max-width: 780px) {
  .work-filter { padding: 6vh 5% 0; gap: 6px 18px; }
  .hero-meta { display: none; }
  #preloader { padding: 6vw; }
}
