/* =================================================================
   古新楽堂のWEB制作サイトのCSS
   ================================================================= */

/* =================================================================
   Base
   ================================================================= */
:root {
  --gothic: "Zen Kaku Gothic Antique", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --serif: "Zen Antique Soft", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --heading: "Stack Sans Notch", "Outfit", sans-serif;

  --services-muted: #988575;
  --hero-bg-fallback: #d1c7b9;
  --services-card-title: #222222;
  --services-overlay-color: rgba(0, 0, 0, 0.55);
  --services-card-hover: #90C421;

  --navy: #294048;
  --navy-dark: #394e56;
  --muted: #8d9298;

  --color-white: #ffffff;
  --color-black: #0a0a0a;
  --color-gray-600: #525252;
  --color-gray-800: #262626;

  --transition: all 0.3s ease;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  color: var(--color-black);
  background: #1c1916;
  font-family: var(--gothic);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading);
}

button,
input,
textarea {
  font-family: inherit;
}

button {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* =================================================================
   Header — hamburger button (fixed, pre-scroll)
   ================================================================= */
.hamburger-btn {
  position: fixed;
  right: 40px;
  top: 40px;
  z-index: 9100;
  width: 72px;
  height: 72px;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.hamburger-btn.is-hidden-scrolled { display: none; }
.hamburger-btn.is-menu-open { opacity: 0; pointer-events: none; }

.hamburger-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  transition: opacity 0.6s ease;
  z-index: 1;
  pointer-events: none;
}
.hamburger-btn.is-menu-open .hamburger-dots { opacity: 0; }

.hamburger-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 47px; height: 47px;
  border-radius: 50%;
  background: #90C421;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.6s, width 0.9s ease-out, height 0.9s ease-out, filter 0.4s;
  z-index: 0;
  pointer-events: none;
}
.hamburger-btn:hover:not(.is-menu-open) .hamburger-glow {
  width: 72px; height: 72px;
  opacity: 1;
  filter: blur(0px);
}

.hamburger-ripple {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(144, 196, 33, 0.75);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}
.hamburger-ripple.is-animating {
  animation: hamburger-ripple-expand 0.85s ease-out forwards;
}
@keyframes hamburger-ripple-expand {
  0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.75; }
  100% { transform: translate(-50%, -50%) scale(1.65); opacity: 0; }
}

.hamburger-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 47px; height: 47px;
  border-radius: 50%;
  background: #90C421;
  z-index: 2;
  transition: width 0.6s cubic-bezier(0.43, 0.05, 0.17, 1), height 0.6s cubic-bezier(0.43, 0.05, 0.17, 1);
  pointer-events: none;
  overflow: hidden;
}
.hamburger-btn.is-menu-open .hamburger-circle { width: 0; height: 0; }
.hamburger-circle.is-animating { animation: navcircleanime 0.9s ease forwards; }
@keyframes navcircleanime {
  0%   { transform: translate(-50%, -50%) scale(1.4); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.hamburger-lines {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 7px;
  z-index: 4;
  pointer-events: none;
}
.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: all 0.6s cubic-bezier(0.43, 0.05, 0.17, 1);
}
.hamburger-line--1 { top: 0; }
.hamburger-line--3 { top: 100%; }

/* Hover: both lines converge to center */
.hamburger-btn:hover:not(.is-menu-open) .hamburger-line--1,
.hamburger-btn:hover:not(.is-menu-open) .hamburger-line--3 { top: 50%; transform: translateY(-50%); }

/* Menu open: lines rotate into an × */
.hamburger-btn.is-menu-open .hamburger-line {
  top: 50%;
  color: rgba(51, 51, 51, 0.9);
  background: rgba(51, 51, 51, 0.9);
}
.hamburger-btn.is-menu-open .hamburger-line--1 { transform: translateY(-50%) rotate(-135deg); opacity: 1; }
.hamburger-btn.is-menu-open .hamburger-line--3 { transform: translateY(-50%) rotate(-45deg); opacity: 1; }

.hamburger-btn.is-hamburger-returning { animation: hamburgerReturn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
@keyframes hamburgerReturn {
  from { transform: translate(-60px, -60px); opacity: 0; }
  to   { transform: translate(0, 0);         opacity: 1; }
}

/* =================================================================
   Header — compact (horizontal nav, fixed, appears after scroll)
   ================================================================= */
.header-compact {
  position: fixed;
  top: 0;
  width: 100%;
  height: 65px;
  z-index: 8000;
  background: rgba(28,25,22,0.97);
  display: flex;
  align-items: stretch;
  font-family: var(--gothic);
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.19,1,0.22,1), transform 0.4s cubic-bezier(0.19,1,0.22,1);
}
.header-compact.is-scrolled { opacity: 1; transform: translateX(0); pointer-events: auto; }

.header-compact__left { display: flex; align-items: center; gap: 24px; padding: 0 24px; flex-shrink: 0; }
.header-compact__logo-link { display: flex; align-items: center; flex-shrink: 0; }
.header-compact__logo { width: 115px; height: 34px; filter: brightness(0) invert(1); }
.header-compact__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  /* CTA・ハンバーガー分(約470px)を差し引いた残り幅に収まらない場合は自動で折り返す */
  max-width: min(460px, calc(100vw - 470px));
}
.header-compact__services { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.03em; text-decoration: none; line-height: 1.4; overflow-wrap: break-word; }

/* タブレット幅で折り返す時は「WEB制作」の後ろで綺麗に改行する */
.header-compact__services-break { display: inline; }
@media (max-width: 929px) {
  .header-compact__services-break { display: block; }
}

.header-compact__spacer { flex: 1; }

.header-compact__nav { display: flex; align-items: center; flex-shrink: 0; }
.yoko-item {
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1) calc(var(--i) * 0.05s), transform 0.5s cubic-bezier(0.16,1,0.3,1) calc(var(--i) * 0.05s);
}
.header-compact.is-scrolled .yoko-item { opacity: 1; transform: translateX(0); }
.yoko-sep { color: rgba(255,255,255,0.25); font-size: 14px; padding: 0 2px; }

.compact-nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
  transition: color 0.4s cubic-bezier(0.16,1,0.3,1);
}
.compact-nav-link.is-active { color: #fff; }
.compact-nav-link:hover { color: #fc0; }

.header-compact__cta {
  display: flex;
  align-items: center;
  background: #E5007F;
  color: #fff;
  padding: 0 22px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.compact-header-cta { transition: background 0.6s cubic-bezier(0.26,0.06,0,1); }

.header-compact__cta.is-services-active { background: #90C421; }
.compact-header-cta:hover { background: #b70066; }

/* Tablet / narrow desktop (up to ~1700px): the horizontal nav needs
   ~1670px of fixed-width content plus scrollbar allowance, and starts
   clipping below that, so this range collapses to logo + tagline + CTA +
   hamburger (nav moves into the same overlay menu used on mobile). CTA
   stays visible at every width. */
@media (max-width: 1699px) {
  .header-compact__nav {
    display: none;
  }
}

/* Compact hamburger — 2 lines collapsing to 1 on hover */
.compact-hamburger {
  width: 80px;
  align-self: stretch;
  position: relative;
  cursor: pointer;
  background: rgb(60,49,8);
  flex-shrink: 0;
}
.compact-hamburger__lines {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 27px;
  height: 6px;
}
.compact-hamburger__line {
  display: inline-block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.6);
  transition: 0.6s cubic-bezier(0.43, 0.05, 0.17, 1);
  opacity: 1;
}
.compact-hamburger__line--1 { top: 0%; }
.compact-hamburger__line--2 { top: 100%; }
.compact-hamburger:hover .compact-hamburger__line--1 { top: 50%; transform: translateY(-50%); }
.compact-hamburger:hover .compact-hamburger__line--2 { top: 50%; transform: translateY(-50%); opacity: 0; }

/* Fixed overlays */

/* =================================================================
   Menu overlay
   ================================================================= */
.menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 9000;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--gothic);
}
.menu.is-open { transform: translateX(0); }

.menu__left { position: relative; width: 650px; flex-shrink: 0; height: 100%; overflow: hidden; }
.menu__left-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu__left-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.22); }

.menu__left-block { position: absolute; bottom: 87.5px; left: 72.5px; }

.menu-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--gothic);
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.menu-cta:hover { opacity: 0.6; }
.menu-cta-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.menu-cta-arrow-img {
  width: 14px;
  height: auto;
  display: block;
}
.menu-cta:hover .menu-cta-arrow { background: rgba(255,255,255,0.12); }

.menu__right {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  background-image: url('assets/images/common/white115.png');
  background-repeat: repeat;
  position: relative;
}

.menu-close-btn {
  position: fixed;
  top: 106px;
  right: 83px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  z-index: 9200;
  opacity: 0;
  transform: translate(18px, 12px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.43, 0.05, 0.17, 1);
}
.menu.is-open .menu-close-btn { opacity: 1; transform: translate(0, 0); transition-delay: 0.38s; }
.menu-close-btn:hover .menu-x-line1,
.menu-close-btn:hover .menu-x-line2 { opacity: 0.4; }

.menu-x-line1, .menu-x-line2 {
  position: absolute;
  top: 50%; left: 50%;
  width: 28px; height: 1.5px;
  background: #444;
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: opacity 0.3s ease, transform 0.42s cubic-bezier(0.43, 0.05, 0.17, 1);
}
.menu.is-open .menu-x-line1 { transform: translate(-50%, -50%) rotate(-135deg); transition-delay: 0.42s; }
.menu.is-open .menu-x-line2 { transform: translate(-50%, -50%) rotate(-45deg); transition-delay: 0.48s; }

.menu__nav { padding: 167px 42px 170px 45px; display: flex; gap: 80px; align-items: flex-start; }
.menu__col { flex: 1; min-width: 0; }

.menu-anim-item {
  opacity: 0;
  transform: translateY(14px);
}
.menu.is-open .menu-anim-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s cubic-bezier(0.43, 0.05, 0.17, 1) var(--delay),
              transform 0.55s cubic-bezier(0.43, 0.05, 0.17, 1) var(--delay);
}

.menu-nav-head { margin-bottom: 51px; }
.menu-head-link {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: #333;
  text-decoration: none;
  font-family: var(--heading);
  font-size: 22.5px;
  letter-spacing: 0.05rem;
  line-height: 1;
}
.menu-head-link .inner { display: block; transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1); }
.menu-head-link .popup {
  position: absolute;
  top: 100%; left: 0;
  white-space: nowrap;
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}
.menu-head-link:hover .inner { transform: translateY(-100%); }
.menu-head-link:hover .popup { transform: translateY(-100%); }

.menu-bottom-links {
  margin-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
}
.menu-bottom-item { display: flex; align-items: center; }
.menu-bottom-sep { color: rgba(0,0,0,0.2); margin: 0 8px; }
.menu-bottom-link {
  color: rgba(51,51,51,0.45);
  font-size: 12px;
  text-decoration: none;
  font-family: var(--gothic);
  transition: color 0.3s ease;
}
.menu-bottom-link:hover { color: rgb(51,51,51); }

/* Tablet / narrow desktop (up to ~1700px, matches the header's hamburger-
   only breakpoint): the left deer photo (fixed 650px) leaves the nav only
   ~300px wide here, narrow enough that the Japanese bottom links wrap
   character-by-character. Keep the full-height photo (same as PC) just
   narrower, biasing the crop right so the deer (which sits right-of-center
   in the source photo) stays in frame instead of getting cropped off. */
@media (max-width: 1699px) {
  .menu {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .menu__left {
    width: 280px;
  }

  .menu__left-bg {
    object-position: 78% 100%;
  }

  .menu__left-block {
    display: none;
  }

  .menu-close-btn {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .menu__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0 28px;
    min-height: 100%;
    padding: calc(92px + env(safe-area-inset-top)) 24px 40px;
  }

  .menu-nav-head {
    margin-bottom: 30px;
  }

  .menu-head-link {
    font-size: 21px;
    line-height: 1.2;
  }

  .menu-bottom-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding-top: 14px;
  }

  .menu-bottom-item {
    display: block;
  }

  .menu-bottom-sep {
    display: none;
  }

  .menu-bottom-link {
    white-space: normal;
    line-height: 1.7;
  }
}

/* =================================================================
   KV Section
   ================================================================= */

/* PassionからServices / Works / Flowまで共通の流れる背景文字 */
.flowing-bg-zone {
  --flowing-switch: 0;
  --passion-shift: 0px;
  --sections-shift: 12px;
  --passion-blur: 0px;
  --sections-blur: 3px;

  position: relative;
  isolation: isolate;
}

.flowing-bg-stage {
  /* 2つの文字帯を同じ位置に重ね、セクション境界でクロスフェードする */
  position: sticky;
  top: calc(50vh - 127.5px);
  width: 100%;
  height: 255px;
  margin-bottom: -255px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.flowing-bg-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  will-change: opacity, transform, filter;
}

.flowing-bg-layer--passion {
  opacity: calc(1 - var(--flowing-switch));
  transform: translate3d(0, var(--passion-shift), 0);
  filter: blur(var(--passion-blur));
}

.flowing-bg-layer--sections {
  opacity: var(--flowing-switch);
  transform: translate3d(0, var(--sections-shift), 0);
  filter: blur(var(--sections-blur));
}

.bg-text__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0;
  will-change: transform;
}

/* 同じ幅のセットを2つ並べることで、-50%地点を完全に同じ見た目にする */
.bg-text__set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 100px;
  padding-right: 100px;
}

.bg-text__track.marquee-track {
  animation: bg-text-marquee 40s linear infinite;
}

@keyframes bg-text-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    /* トラックの中身は同一セットを2つ並べただけなので、
       ちょうど半分送ると継ぎ目なくループする */
    transform: translate3d(-50%, 0, 0);
  }
}

.bg-text__word {
  font-family: var(--heading);
  font-size: clamp(120px, 14vw, 200px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  flex-shrink: 0;
}

.flowing-bg-layer--sections .bg-text__word {
  color: rgba(10, 10, 20, 0.07);
}

@media (prefers-reduced-motion: reduce) {
  .flowing-bg-layer {
    transform: none;
    filter: none;
  }
}

/* Caption image slider */

/* =================================================================
   Background surfaces and foreground contents
   ================================================================= */
.stats-bg-wrap,
.services-works-flow-wrap {
  position: relative;
  z-index: auto;
  background: transparent;
}

.services-works-flow-wrap {
  overflow: clip;
  border-radius: 32px;
}

.stats-bg-wrap::before,
.services-works-flow-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.stats-bg-wrap::before {
  background: #1c1916;
}

.services-works-flow-wrap::before {
  background-image: url('assets/images/common/white115.png');
  background-size: 10%;
}

/* 流れる文字は共通背景、各セクション・カード・画像はその前面に置く */
.stats-bg-wrap > .works-ticker,
.stats-bg-wrap > .container-1280,
.services-works-flow-wrap > .services-block,
.services-works-flow-wrap > .works-carousel-section,
.services-works-flow-wrap > .flow-visual {
  position: relative;
  z-index: 2;
}

/* =================================================================
   Works carousel sections
   ================================================================= */
.works-carousel-section { font-family: var(--gothic); position: relative; z-index: 1; background: transparent; }

/* =================================================================
   Flow background visual
   ================================================================= */
.flow-visual {
  position: relative;
  overflow: visible;
  isolation: isolate;
  z-index: 1;
  background: #fff;
}

/* FLOWでは拡大中の画像外側を透明にし、背面の流れる文字を見せる。 */
.flow-visual--scroll-bg {
  background: transparent;
}

/* FLOWの背面で1画面分の背景を固定する。負のmarginでレイアウト上の
   高さを相殺し、FLOWコンテンツと同じ位置から演出を開始する。 */
.flow-bg-stage {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 160vh;
  height: 160svh;
  margin-bottom: -160vh;
  margin-bottom: -160svh;
  overflow: hidden;
  pointer-events: none;
  background-color: transparent;
}

.flow-zoom-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 100% 50%);
  -webkit-clip-path: inset(0 50% 100% 50%);
  will-change: clip-path, -webkit-clip-path;
  z-index: 1;
  isolation: isolate;
}

.flow-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  opacity: 0;
  /* opacity はスクロール量に合わせて JS 側で連続補間する */
  transition: none;
  will-change: opacity;
  backface-visibility: hidden;
  z-index: 0;
}
.flow-bg.is-active { opacity: 1; }
.flow-bg--1 { background-image: url('assets/images/FVunder/portforio.webp'); }
.flow-bg--2 { background-image: url('assets/images/FVunder/AION.webp'); }
.flow-bg--3 { background-image: url('assets/images/FVunder/PCスクショ.webp'); }
.flow-bg--4 { background-image: url('assets/images/FVunder/PC.webp'); }

.flow-overlay {
  position: absolute; inset: 0;
  background: #000;
  opacity: 0.12;
  transition: opacity 1.4s cubic-bezier(0.43,0.05,0.17,1);
  z-index: 1;
}
.flow-overlay.is-zoomed-in { opacity: 0.42; }

.flow-visual-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  /* 上部は背景画像がしっかり見えるよう大きく余白を取る */
  padding: clamp(200px, 45vh, 520px) 0 clamp(28px, 5vh, 64px);
}

.flow-visual--scroll-bg .flow-card {
  width: 1200px;
  max-width: calc(100% - clamp(32px, 8vw, 120px));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.16);
}

/* =================================================================
   Footer
   ================================================================= */

.footer-bottom { padding: 50px 60px; display: flex; justify-content: space-between; align-items: flex-start; max-width: 1400px; margin: 0 auto; }







/* =========================================================
   Hero / Services
   ========================================================= */

/* ---------- Letter reveal ---------- */
.text-reveal-letter {
  display: inline-block;
  opacity: 0;
  animation: text-reveal-letter-in 0.5s ease-out forwards;
  animation-play-state: paused;
}

.text-reveal-active .text-reveal-letter {
  animation-play-state: running;
}

/* Hero TextScramble — 1行の文章をランダム記号から次の文章へ打ち替える。 */
.hero-scramble-text.glitch-slice {
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: none;
  min-height: 1.3em;
  flex-wrap: nowrap;
  align-items: baseline;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero-scramble-char {
  display: inline-block;
  flex: 0 0 auto;
  min-width: 0.02em;
  transition:
    color 260ms ease,
    filter 300ms ease,
    transform 340ms cubic-bezier(0.16, 1, 0.3, 1),
    text-shadow 300ms ease;
}

.hero-scramble-char--highlight {
  color: #E5007F;
}

.hero-scramble-char.dud {
  color: rgba(240, 250, 224, 0.66);
  filter: blur(0.15px);
  transform: translateY(-0.01em) skewX(-2deg);
  text-shadow:
    -0.025em 0 rgba(41, 214, 255, 0.34),
    0.025em 0 rgba(255, 45, 120, 0.28);
}

.hero-scramble-cursor {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 0.035em;
  min-width: 2px;
  height: 0.82em;
  margin-left: 0.1em;
  vertical-align: -0.08em;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    0 0 0.1em currentColor,
    0 0 0.22em rgba(144, 196, 33, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.hero-scramble-text.is-scrambling .hero-scramble-cursor {
  opacity: 0.92;
  animation: hero-scramble-cursor-blink 1.15s ease-in-out infinite;
}

@keyframes hero-scramble-cursor-blink {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.92;
  }
}

@keyframes text-reveal-letter-in {
  0% {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  padding: 12rem 0 8rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: url("assets/images/common/nabe11.webp") no-repeat center / cover, var(--hero-bg-fallback);
  background-color: var(--color-white);
}

.hero__inner {
  position: relative;
  z-index: 0;
  width: 80%;
  height: 86vh;
  height: 86svh;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .hero__inner {
    height: 90vh;
  }
}

@media (max-width: 768px) {
  .hero {
    display: block;
    height: auto;
    min-height: 0;
    padding: 8rem 0 4rem;
  }

  .hero__inner {
    width: 100%;
    height: 85lvh;
  }
}

.hero__slideshow {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1000ms ease-in-out, visibility 0s linear 1000ms;
}

.hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.hero__slide-zoom {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide.is-zooming .hero__slide-zoom {
  animation: hero-image-zoom 6s ease-out forwards;
}

@keyframes hero-image-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.hero__slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide-img--mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero__slide-img--desktop {
    display: none;
  }

  .hero__slide-img--mobile {
    display: block;
  }
}

.hero__copy {
  position: absolute;
  z-index: 2;
  bottom: 70px;
  left: 6%;
  width: 88%;
  pointer-events: none;
  color: #90C421;
  font-family: var(--heading);
  letter-spacing: 0.05em;
  line-height: 1.3;
  white-space: nowrap;
}

.hero__line {
  margin: 0;
  font-size: 36px;
  line-height: 1.3;
}

@media (max-width: 520px) {
  .hero__copy {
    bottom: 30px;
  }

  .hero__line {
    font-size: clamp(24px, 7.5vw, 32px);
  }
}

@media (min-width: 640px) {
  .hero__line {
    font-size: 48px;
  }
}

@media (min-width: 768px) {
  .hero__line {
    font-size: 6vw;
  }
}

@media (min-width: 1024px) {
  .hero__line {
    font-size: 64px;
  }
}

@media (min-width: 1280px) {
  .hero__line {
    font-size: 80px;
  }
}

/* 最長フレーズも改行させず、画面幅に収める。 */
.hero__line--scramble {
  display: block;
  width: max-content;
  max-width: none;
  font-size: clamp(18px, 5.15vw, 76px);
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (max-width: 520px) {
  .hero__line--scramble {
    font-size: clamp(15px, 4.65vw, 22px);
  }
}

/* ---------- Services ---------- */
.services-block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 10px;
}

@media (min-width: 1024px) {
  .services-block {
    margin-top: 20px;
  }
}

.services__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.services__overlay {
  position: absolute;
  inset: 0;
  background: var(--services-overlay-color);
}

/* ---------- Glitch reveal (banner + cards) ---------- */
@keyframes services-glitch-reveal {
  0% {
    clip-path: inset(0 0 100% 0);
    transform: translate(-0.3vw, 0);
    filter: brightness(1.6) drop-shadow(0.3vw 0 0 #ff5789) drop-shadow(-0.3vw 0 0 #29d6ff);
  }
  8% {
    clip-path: inset(0 0 88% 0);
    transform: translate(0.28vw, 0);
    filter: brightness(1.55) drop-shadow(-0.3vw 0 0 #ff5789) drop-shadow(0.3vw 0 0 #29d6ff);
  }
  16% {
    clip-path: inset(60% 0 25% 0);
    transform: translate(-0.25vw, 0);
    filter: brightness(1.5) drop-shadow(0.26vw 0 0 #ff5789) drop-shadow(-0.26vw 0 0 #29d6ff);
  }
  24% {
    clip-path: inset(0 0 62% 0);
    transform: translate(0.22vw, 0);
    filter: brightness(1.4) drop-shadow(-0.24vw 0 0 #ff5789) drop-shadow(0.24vw 0 0 #29d6ff);
  }
  32% {
    clip-path: inset(30% 0 15% 0);
    transform: translate(-0.2vw, 0);
    filter: brightness(1.35) drop-shadow(0.2vw 0 0 #ff5789) drop-shadow(-0.2vw 0 0 #29d6ff);
  }
  42% {
    clip-path: inset(0 0 40% 0);
    transform: translate(0.16vw, 0);
    filter: brightness(1.3) drop-shadow(-0.18vw 0 0 #ff5789) drop-shadow(0.18vw 0 0 #29d6ff);
  }
  52% {
    clip-path: inset(8% 0 0 0);
    transform: translate(-0.12vw, 0);
    filter: brightness(1.2) drop-shadow(0.14vw 0 0 #ff5789) drop-shadow(-0.14vw 0 0 #29d6ff);
  }
  63% {
    clip-path: inset(0 0 12% 0);
    transform: translate(0.08vw, 0);
    filter: brightness(1.1) drop-shadow(-0.1vw 0 0 #ff5789) drop-shadow(0.1vw 0 0 #29d6ff);
  }
  75% {
    clip-path: inset(0 0 -6vw 0);
    transform: translate(-0.06vw, 0);
    filter: drop-shadow(0.06vw 0 0 #ff5789) drop-shadow(-0.06vw 0 0 #29d6ff);
  }
  88% {
    clip-path: inset(0 0 -6vw 0);
    transform: translate(0.03vw, 0);
    filter: drop-shadow(0.02vw 0 0 #ff5789) drop-shadow(-0.02vw 0 0 #29d6ff);
  }
  100% {
    clip-path: inset(0 0 -6vw 0);
    transform: translate(0, 0);
    filter: none;
  }
}

.services-reveal-target {
  opacity: 0;
}

.services-reveal-target.is-in {
  opacity: 1;
  animation: services-glitch-reveal 0.8s steps(1) 1 normal both;
}

.services__content {
  position: relative;
  padding: 50px 0;
  text-align: center;
}

@media (min-width: 768px) {
  .services__content {
    padding: 120px 0 180px;
  }
}

@media (min-width: 1024px) {
  .services__content {
    padding: 140px 0 220px;
  }
}

.services__title-en {
  position: relative;
  color: #fff;
  font-family: var(--heading);
  font-size: 30px;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .services__title-en {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .services__title-en {
    font-size: 50px;
  }
}

.services__title-en::before,
.services__title-en::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  color: #fff;
  pointer-events: none;
  text-shadow:
    2px 0 0 rgba(255, 87, 137, 0.75),
    -2px 1px 0 rgba(255, 228, 72, 0.65),
    -4px 0 0 rgba(41, 214, 255, 0.7);
}

.services__title-en::before {
  animation: banner-title-glitch-1 2s linear infinite alternate-reverse;
}

.services__title-en::after {
  animation: banner-title-glitch-2 4s linear infinite alternate-reverse;
}

@keyframes banner-title-glitch-1 {
  0% { clip-path: inset(38% 0 52% 0); }
  10% { clip-path: inset(12% 0 68% 0); }
  20% { clip-path: inset(60% 0 8% 0); }
  30% { clip-path: inset(5% 0 82% 0); }
  40% { clip-path: inset(70% 0 15% 0); }
  50% { clip-path: inset(25% 0 45% 0); }
  60% { clip-path: inset(50% 0 20% 0); }
  70% { clip-path: inset(8% 0 75% 0); }
  80% { clip-path: inset(65% 0 5% 0); }
  90% { clip-path: inset(30% 0 55% 0); }
  100% { clip-path: inset(45% 0 30% 0); }
}

@keyframes banner-title-glitch-2 {
  0% { clip-path: inset(60% 0 15% 0); }
  15% { clip-path: inset(10% 0 70% 0); }
  30% { clip-path: inset(75% 0 5% 0); }
  45% { clip-path: inset(20% 0 60% 0); }
  60% { clip-path: inset(40% 0 35% 0); }
  75% { clip-path: inset(5% 0 80% 0); }
  90% { clip-path: inset(55% 0 25% 0); }
  100% { clip-path: inset(15% 0 65% 0); }
}

.services__title-jp {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--heading);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.services__list {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

@media (min-width: 768px) {
  .services__list {
    margin-top: 50px;
  }
}

@media (min-width: 1024px) {
  .services__list {
    margin-top: 70px;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
}

.services__list--grid {
  flex-direction: column;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .services__list--grid {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .services__list--grid {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    justify-content: center;
  }
}

.services__card {
  width: 100%;
  overflow: hidden;
  opacity: 0;
}

.services-reveal-target.is-in .services__card {
  opacity: 1;
  animation: services-glitch-reveal 0.8s steps(1) 1 normal both;
}

.services-reveal-target.is-in .services__card:nth-child(1) {
  animation-delay: 0ms;
}

.services-reveal-target.is-in .services__card:nth-child(2) {
  animation-delay: 150ms;
}

.services-reveal-target.is-in .services__card:nth-child(3) {
  animation-delay: 300ms;
}

.services-reveal-target.is-in .services__card:nth-child(4) {
  animation-delay: 450ms;
}

.services-reveal-target.is-in .services__card:nth-child(5) {
  animation-delay: 600ms;
}

.services-reveal-target.is-in .services__card:nth-child(6) {
  animation-delay: 750ms;
}

@media (min-width: 1024px) {
  .services__card {
    width: 420px;
    height: 277px;
  }

  .services__card--grid {
    width: calc((100% - 20px) / 3);
    max-width: 420px;
    height: 219px;
  }
}

.services__card--mobile-round-1 {
  border-radius: 0 50px 0 0;
}

@media (min-width: 768px) {
  .services__card--mobile-round-1 {
    border-radius: 0 65px 0 0;
  }
}

@media (min-width: 1024px) {
  .services__card--mobile-round-1 {
    border-radius: 0;
  }
}

.services__card--desktop-round {
  border-radius: 0;
}

@media (min-width: 1024px) {
  .services__card--desktop-round {
    border-radius: 0 80px 0 0;
  }
}

.services__card-content {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 192px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  transition: background-color 300ms;
}

.services__card-content:hover {
  background: var(--services-card-hover);
}

.services__card--pink .services__card-content:hover {
  background: #E5007F;
}

.services__card-en {
  color: var(--services-card-title);
  font-family: var(--heading);
  font-size: 40px;
  transition: color 300ms;
}

.services__card-jp {
  margin-top: 4px;
  color: var(--services-muted);
  font-family: var(--heading);
  font-size: 15px;
  transition: color 300ms;
}

.services__card-content:hover .services__card-en,
.services__card-content:hover .services__card-jp {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .text-reveal-letter,
  .hero__slide-zoom,
  .services__card,
  .services-reveal-target,
  .right {
    animation: none !important;
    transition: none !important;
  }

  .text-reveal-letter,
  .services__card,
  .services-reveal-target,
  .right {
    opacity: 1;
    translate: 0 0;
  }

  .services__title-en::before,
  .services__title-en::after {
    display: none;
  }

  .hero-scramble-cursor {
    display: none;
  }
}




/* ===== Shared layout and controls ===== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.container-1280 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Passion/Stats(白背景のカード)が position:fixed の背景文字より下に
   描画されてしまわないよう、スタッキングコンテキストを持たせる */
.stats-bg-wrap .container-1280 {
  position: relative;
  z-index: 2;
}

.section-py {
  padding-top: 64px;
  padding-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn--green {
  background: #90C421;
  color: #fff;
}

.btn--pink {
  background: #ff2ea6;
  color: #fff;
}

/* CTA button — hover glitch */
.u-glitch-hov {
  position: relative;
  isolation: isolate;
  cursor: pointer;
}

.cta-glitch-content {
  display: inline-flex;
  align-items: center;
  gap: inherit;
  white-space: nowrap;
}

.cta-arrow-icon {
  display: block;
  width: 32px;
  height: auto;
  flex-shrink: 0;
}

.u-glitch-hov__layer {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: inherit;
  border: inherit;
  border-radius: inherit;
  background-color: inherit;
  color: inherit;
  opacity: 0;
  pointer-events: none;
  clip: rect(200px, 9999px, 63px, 0);
}

@media (min-width: 769px) {
  .u-glitch-hov:hover .u-glitch-hov__layer,
  .u-glitch-hov:focus-visible .u-glitch-hov__layer {
    opacity: 1;
    animation: cta-hover-glitch 0.8s steps(2) infinite alternate-reverse;
  }
}

@keyframes cta-hover-glitch {
  0%   { clip: rect(200px, 9999px, 63px, 0); }
  4%   { top: -2px; clip: rect(7px, 9999px, 6px, 0); }
  8%   { clip: rect(82px, 9999px, 78px, 0); }
  12%  { clip: rect(85px, 9999px, 25px, 0); }
  16%  { clip: rect(93px, 9999px, 38px, 0); }
  20%  { left: 1px; clip: rect(70px, 9999px, 96px, 0); }
  24%  { clip: rect(41px, 9999px, 72px, 0); }
  28%  { clip: rect(39px, 9999px, 65px, 0); }
  32%  { clip: rect(36px, 9999px, 34px, 0); filter: hue-rotate(45deg); }
  36%  { left: -2px; clip: rect(84px, 9999px, 96px, 0); }
  40%  { top: 1px; clip: rect(99px, 9999px, 45px, 0); }
  44%  { clip: rect(37px, 9999px, 73px, 0); }
  48%  { clip: rect(63px, 9999px, 20px, 0); }
  52%  { clip: rect(5px, 9999px, 44px, 0); }
  56%  { left: 2px; clip: rect(65px, 9999px, 270px, 0); }
  60%  { clip: rect(4px, 9999px, 300px, 0); }
  64%  { clip: rect(6px, 9999px, 9px, 0); }
  68%  { clip: rect(37px, 9999px, 69px, 0); }
  72%  { clip: rect(32px, 9999px, 64px, 0); }
  76%  { left: -4px; clip: rect(0, 9999px, 96px, 0); }
  80%  { clip: rect(99px, 9999px, 45px, 0); }
  84%  { clip: rect(37px, 9999px, 73px, 0); }
  88%  { clip: rect(70px, 9999px, 96px, 0); }
  92%  { clip: rect(41px, 9999px, 72px, 0); }
  96%  { clip: rect(39px, 9999px, 65px, 0); }
  100% { clip: rect(37px, 9999px, 73px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .u-glitch-hov:hover .u-glitch-hov__layer,
  .u-glitch-hov:focus-visible .u-glitch-hov__layer {
    animation: none;
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .u-pc {
    display: inline;
  }
}

@media (max-width: 767px) {
  .u-pc {
    display: none;
  }
}

/* ===== Shared Marquee ===== */
@keyframes shared-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: shared-marquee-scroll 130s linear infinite;
}

.marquee-track--reverse {
  animation-direction: reverse;
}

/* ===== Noise Backgrounds ===== */

/* ===== Logo Ticker ===== */

.works-ticker {
  position: relative;
}

.works-ticker__row {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-bottom: 32px;
  padding: 24px 0;
}

.works-ticker__row--first {
  margin-top: 32px;
}

.works-ticker__track {
  align-items: center;
  gap: 24px;
}

.works-ticker__track img {
  width: 220px;
  height: 140px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ===== Passion Section ===== */

.card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.left {
  flex-shrink: 0;
}

.heading-wrap {
  position: relative;
  display: inline-block;
}

.heading-box {
  position: absolute;
  left: -10px;
  right: -10px;
  top: 50%;
  height: 58%;
  transform: translateY(-50%) rotate(-5deg);
  background: #E5007F;
  border-radius: 2px;
  z-index: 0;
}

.heading {
  position: relative;
  z-index: 1;
  color: var(--navy);
  font-family: var(--heading);
  font-size: 28px;
  font-weight: 700;
}

.sub {
  margin-top: 4px;
  color: #8d9298;
  font-family: var(--heading);
  font-size: 14px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--navy);
  font-size: 14px;
}

.more:hover {
  opacity: 0.8;
}

.right {
  flex: 1;
}

.right--passion {
  display: block;
}

.passion__lead {
  margin-bottom: 20px;
  font-family: var(--heading);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.passion__text {
  margin-bottom: 18px;
  font-family: var(--gothic);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--navy-dark);
}

.passion__signature {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 14px;
  text-align: right;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.passion-type-char {
  opacity: 0;
  transition: opacity 0.12s ease-out;
}

.passion-type-cursor {
  display: inline-block;
  opacity: 0;
  color: #E5007F;
  font-weight: 700;
}

.passion-type-cursor.is-typing {
  animation: passion-cursor-blink 0.9s step-end infinite;
}

@keyframes passion-cursor-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .passion-type-char {
    opacity: 1 !important;
    transition: none !important;
  }

  .passion-type-cursor {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .right--passion {
    width: 100%;
  }

  .passion__lead {
    font-size: 24px;
  }

  .passion__text {
    font-size: 14px;
    line-height: 1.9;
  }
}




@media (min-width: 768px) {
  .card {
    flex-direction: row;
    gap: 48px;
  }

  .left {
    width: 192px;
  }

}

/* ===== Stats Section ===== */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stats__item {
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.stats__label {
  color: #8d9298;
  font-size: 13px;
}

.stats__valueRow {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.stats__value {
  color: var(--navy);
  font-family: var(--heading);
  font-size: 36px;
  font-weight: 700;
}

.stats__unit {
  color: #8d9298;
  font-size: 14px;
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== About Section ===== */

/* ===== Works Section ===== */

.works__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

.works__titleRow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
}

.works__shoulder {
  color: var(--navy);
  font-family: var(--heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
}

.works__title {
  color: var(--navy);
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.works__lead {
  max-width: 640px;
  margin-top: 12px;
  color: var(--navy-dark);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.7px;
}

.works__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.works__navBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  transition: background 0.2s;
}

.works__navBtn .icon {
  width: 22px;
  height: 22px;
}

.works__navBtn:hover {
  background: rgba(41, 64, 72, 0.05);
}

.works__navBtn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.works__progressWrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.works__progressNum {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.works__progressBar {
  width: 200px;
  height: 2px;
  overflow: hidden;
  border-radius: 9999px;
  background: #e5e7eb;
}

.works__progressFill {
  width: 0;
  height: 100%;
  background: #ff2ea6;
  transition: width 0.3s ease-in-out;
}

#works-progress-fill-2 {
  background: #90C421;
}

.works__progressTotal {
  color: var(--muted);
  font-size: 14px;
}

.works__viewport {
  width: 100%;
  margin-top: 40px;
  overflow: hidden;
  padding: 16px 0;
}

.works__track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s ease;
  will-change: transform;
}

.works__slide {
  width: 85vw;
  flex-shrink: 0;
  transform: scale(0.92);
  transition: transform 0.5s ease-out;
}

.works__slide.is-active {
  transform: scale(1);
}

.works-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(41, 64, 72, 0.1);
}

.works-card__imgWrap {
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 8 / 5;
}

.works-card__imgWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

#works-track-2 .works-card__imgWrap {
  background: #f4f1ea;
}

#works-track-2 .works-card__imgWrap img {
  object-fit: contain;
}

.works-card:hover .works-card__imgWrap img {
  transform: scale(1.1);
}

.works-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px 12px;
}

.works-card__title {
  color: var(--navy);
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.7px;
}

.works-card__desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--navy-dark);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.7px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.works-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.works-card__tags li {
  padding: 3px 10px;
  border-radius: 9999px;
  background: #90C421;
  color: #fff;
  font-size: 11px;
}

#works-track-2 .works-card__tags li {
  background: #ff2ea6;
}

.works__cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .works__slide {
    width: 55vw;
  }
}

@media (min-width: 768px) {
  .works__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .works__slide {
    width: 35vw;
  }
}




body.is-loading {
  overflow: hidden;
  /* bodyの地の色(#fbfbfa寄り)が、FV(暗いnabe11背景)が描画されるまでの
     一瞬だけ白っぽく見えてしまうのを防ぐ */
  background-color: #020204;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.36s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.36s;
}

/* 暗幕本体。圧縮・伸長が始まるタイミングでこれをフェードアウトさせ、背後の本物のFVを透けて見せる */
.page-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 45%, #1b1740 0%, #0a0914 48%, #020204 100%);
  opacity: 1;
  transition: opacity 0.9s ease;
}

.page-loader.is-opening::before {
  opacity: 0;
}

.page-loader.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.text-sequence-loader-preview {
  --violet: #7868ff;
  --cyan: #00f6ff;
  --pink: #ff2ea6;

  position: relative;
  z-index: 2;
  display: inline-flex;
  isolation: isolate;
  font-family: var(--gothic);
  font-size: clamp(34px, 7vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.07em;
  white-space: nowrap;
  filter: drop-shadow(0 0 16px rgb(120 104 255 / 35%));
  animation: loader-jolt 2.4s steps(1, end) 1s infinite;
}

.text-sequence-loader-preview.is-leaving {
  animation: loader-text-out 0.28s cubic-bezier(0.55, 0, 1, 0.45) both;
  pointer-events: none;
}

/* 各文字が時間差で登場し、その後ウェーブする */
.text-sequence-loader-preview > .letter {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: #E5007F;
  text-shadow: 0 0 18px rgb(120 104 255 / 22%);
  opacity: 0;
  will-change: transform;
  animation:
    letter-enter 0.58s cubic-bezier(0.16, 1, 0.3, 1) var(--enter-delay) both,
    letter-wave 1.45s ease-in-out var(--wave-delay) infinite;
}

.text-sequence-loader-preview > .letter:nth-child(1) {
  --enter-delay: 0s;
  --wave-delay: 0.9s;
}

.text-sequence-loader-preview > .letter:nth-child(2) {
  --enter-delay: 0.08s;
  --wave-delay: 1.02s;
}

.text-sequence-loader-preview > .letter:nth-child(3) {
  --enter-delay: 0.16s;
  --wave-delay: 1.14s;
}

.text-sequence-loader-preview > .letter:nth-child(4) {
  --enter-delay: 0.24s;
  --wave-delay: 1.26s;
}

.text-sequence-loader-preview > .letter:nth-child(5) {
  --enter-delay: 0.32s;
  --wave-delay: 1.38s;
}

.text-sequence-loader-preview > .letter:nth-child(6) {
  --enter-delay: 0.40s;
  --wave-delay: 1.50s;
}

.text-sequence-loader-preview > .letter:nth-child(7) {
  --enter-delay: 0.48s;
  --wave-delay: 1.62s;
}

/* グリッチ時だけ表示されるシアン・ピンクの複製文字 */
.text-sequence-loader-preview::before,
.text-sequence-loader-preview::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.text-sequence-loader-preview::before {
  color: var(--cyan);
  text-shadow: -2px 0 var(--cyan);
  animation: glitch-slice-cyan 2.4s steps(1, end) 1s infinite;
}

.text-sequence-loader-preview::after {
  color: var(--pink);
  text-shadow: 2px 0 var(--pink);
  animation: glitch-slice-pink 2.4s steps(1, end) 1s infinite;
}

/* 下線本体 */
.loading-underline {
  position: absolute;
  right: 0;
  bottom: -17px;
  left: 0;
  z-index: 4;
  height: 2px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(120 104 255 / 38%) 15%,
    rgb(120 104 255 / 38%) 85%,
    transparent
  );
  box-shadow: 0 0 8px rgb(120 104 255 / 45%);
  transform-origin: center;
  animation: underline-enter 0.7s ease-out 0.48s both;
}

/* 下線の上を左から右へ走る光 */
.loading-underline::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 38%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--cyan) 35%,
    #ffffff 52%,
    var(--pink) 70%,
    transparent 100%
  );
  box-shadow:
    0 0 6px var(--cyan),
    0 0 14px var(--violet),
    0 0 20px var(--pink);
  will-change: transform;
  animation: underline-run 1.05s cubic-bezier(0.45, 0, 0.25, 1) 0.7s infinite;
}

/* グリッチの瞬間に下線を分断して見せる */
.loading-underline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--pink) 0 18%,
    transparent 18% 45%,
    var(--cyan) 45% 68%,
    transparent 68% 100%
  );
  opacity: 0;
  animation: underline-glitch 2.4s steps(1, end) 1s infinite;
}

@keyframes letter-enter {
  0% {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(25px) scaleY(0.35) skewX(16deg);
  }

  58% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-7px) scaleY(1.14) skewX(-5deg);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scaleY(1) skewX(0);
  }
}

@keyframes letter-wave {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  22% {
    transform: translateY(-9px) rotate(-1deg);
  }

  48% {
    transform: translateY(4px) rotate(1deg);
  }

  72% {
    transform: translateY(-3px) rotate(0);
  }
}

@keyframes loader-jolt {
  0%,
  62%,
  71%,
  100% {
    transform: translate(0) skewX(0);
  }

  63% {
    transform: translate(-3px, 1px) skewX(8deg);
  }

  65% {
    transform: translate(4px, -1px) skewX(-11deg);
  }

  67% {
    transform: translate(-2px, 0) skewX(5deg);
  }

  69% {
    transform: translate(2px, 1px) skewX(-4deg);
  }
}

@keyframes glitch-slice-cyan {
  0%,
  62%,
  71%,
  100% {
    opacity: 0;
    transform: translate(0);
    clip-path: inset(0 0 100% 0);
  }

  63% {
    opacity: 0.95;
    transform: translate(-6px, -1px);
    clip-path: inset(6% 0 69% 0);
  }

  65% {
    opacity: 0.8;
    transform: translate(4px, 1px);
    clip-path: inset(39% 0 38% 0);
  }

  68% {
    opacity: 0.75;
    transform: translate(-3px, 0);
    clip-path: inset(73% 0 9% 0);
  }
}

@keyframes glitch-slice-pink {
  0%,
  63%,
  72%,
  100% {
    opacity: 0;
    transform: translate(0);
    clip-path: inset(100% 0 0 0);
  }

  64% {
    opacity: 0.9;
    transform: translate(6px, 1px);
    clip-path: inset(62% 0 10% 0);
  }

  66% {
    opacity: 0.85;
    transform: translate(-5px, -1px);
    clip-path: inset(24% 0 54% 0);
  }

  69% {
    opacity: 0.75;
    transform: translate(3px, 0);
    clip-path: inset(48% 0 30% 0);
  }
}

@keyframes underline-enter {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes underline-run {
  0% {
    opacity: 0;
    transform: translateX(-110%) scaleX(0.4);
  }

  15% {
    opacity: 1;
  }

  55% {
    opacity: 1;
    transform: translateX(115%) scaleX(1);
  }

  100% {
    opacity: 0;
    transform: translateX(290%) scaleX(0.35);
  }
}

@keyframes underline-glitch {
  0%,
  62%,
  71%,
  100% {
    opacity: 0;
    transform: translateX(0) scaleY(1);
  }

  64% {
    opacity: 1;
    transform: translateX(5px) scaleY(3);
  }

  67% {
    opacity: 0.8;
    transform: translateX(-4px) scaleY(1);
  }

  69% {
    opacity: 1;
    transform: translateX(2px) scaleY(2);
  }
}

@keyframes loader-text-out {
  from {
    opacity: 1;
    filter: drop-shadow(0 0 16px rgb(120 104 255 / 35%)) blur(0);
    transform: scale(1, 1);
  }

  to {
    opacity: 0;
    filter: drop-shadow(0 0 28px rgb(0 246 255 / 45%)) blur(8px);
    transform: scale(1.18, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-sequence-loader-preview,
  .text-sequence-loader-preview > .letter,
  .loading-underline,
  .loading-underline::before,
  .loading-underline::after {
    animation: none;
  }

  .text-sequence-loader-preview > .letter {
    opacity: 1;
    transform: none;
  }

  .text-sequence-loader-preview::before,
  .text-sequence-loader-preview::after,
  .loading-underline::before,
  .loading-underline::after {
    display: none;
  }
}



.l-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.l-wrap__bg {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("assets/images/common/nabe11.webp") no-repeat center;
  background-size: cover;
  z-index: 0;
  opacity: 0;
  will-change: transform, opacity;
}

.l-wrap.is-load .l-wrap__bg {
  opacity: 1;
  animation: on 0.7s cubic-bezier(.165, .84, .44, 1) 0s 1 both;
}

/* 全面 → 横圧縮・伸長 → 縦圧縮・伸長 → 横圧縮・伸長 → 全面の動き。縦横で同じ時間・同じ振れ幅にして横の動きも縦と同じくらい分かるようにしている */
@keyframes on {
  15%  { transform: scale(1.2, .015); }
  30%  { transform: scale(.015, .015); }
  50%  { transform: scale(.015, 1.15); }
  65%  { transform: scale(.015, .015); }
  85%  { transform: scale(1.2, .015); }
  92%  { transform: scale(1, 1.02); }
  96%  { transform: scale(1, .98); }
  100% { transform: scale(1, 1); }
}

@media (prefers-reduced-motion: reduce) {
  .text-sequence-loader-preview.is-leaving {
    animation: none !important;
    opacity: 0;
  }
}



/* =================================================================
   Shared site layout
   ================================================================= */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Footer navigation */
.nav-link {
  color: var(--color-gray-600);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-black);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-black);
}

.nav-link:hover::after {
  width: 100%;
}

.about-text {
  color: var(--color-gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Footer base */
.footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  text-align: center;
}

/* Responsive layout */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Section spacing */
section {
  padding: clamp(32px, 8vh, 72px) 0 !important;
}

@media (max-width: 900px) {
  section { padding: clamp(20px, 6vh, 40px) 0 !important; }
  #services, #about, #works, #contact {
    padding-top: clamp(12px, 4vh, 20px) !important;
  }
}

#about {
  padding-top: clamp(12px, 2vh, 20px) !important;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* =================================================================
   Contact
   ================================================================= */
#contact.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 70svh;
  background: #1c1916;
}

#contact.contact::before,
#contact.contact::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 75vmax;
  height: 75vmax;
  top: -24vmin;
  left: -18vmin;
  border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
  background: rgba(144, 196, 33, 0.12);
  box-shadow: 0 0 90px rgba(144, 196, 33, 0.08);
  pointer-events: none;
  transform-origin: 55% 55%;
  animation:
    contact-morph 12s linear infinite alternate,
    contact-spin 24s linear infinite;
}

#contact.contact::after {
  width: 68vmin;
  height: 68vmin;
  top: auto;
  right: -12vmin;
  bottom: -10vmin;
  left: auto;
  transform-origin: 20% 20%;
  animation:
    contact-morph 14s linear infinite alternate,
    contact-spin 28s linear infinite reverse;
}

#contact.contact > * {
  position: relative;
  z-index: 1;
}

#contact .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 32px);
  align-items: start;
}

#contact .contact-info,
#contact .contact-form {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 16px;
  background: rgba(244, 241, 234, 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

#contact .contact-info {
  display: grid;
  gap: 10px;
}

#contact .contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
  padding-bottom: 12px;
}

#contact .section-header {
  margin: 0 0 clamp(12px, 2.5vh, 24px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#contact .section-number {
  display: block;
  margin: 0 0 0.25rem;
  color: #90C421;
  font-family: var(--heading);
  font-size: 1rem;
}

#contact .section-title {
  margin: 0 0 0.25rem;
  color: #f4f1ea;
  font-family: var(--heading);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#contact .section-subtitle {
  margin: 0;
  color: rgba(244, 241, 234, 0.65);
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 400;
}

#contact .method-title {
  color: #f4f1ea;
  font-family: var(--heading);
}

#contact .contact-text {
  margin-bottom: 3rem;
  color: #f4f1ea;
  line-height: 1.8;
}

#contact .contact-info div {
  color: #f4f1ea;
}

#contact .contact-info a,
#contact .contact-info .email a {
  color: #90C421;
}

#contact .contact-info .contact-method + .contact-method {
  margin-top: 8px;
}

#contact .contact-method__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#contact .line-qr-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #f4f1ea;
}

#contact .line-qr-img {
  display: block;
  width: 200px;
  max-width: 100%;
}

#contact .line-btn {
  display: none;
}

#contact .contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(10px, 2.2vw, 16px);
}

#contact .contact-form label {
  color: #f4f1ea;
  font-size: 0.95rem;
  font-weight: 700;
}

#contact .contact-form input,
#contact .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(244, 241, 234, 0.25);
  border-radius: 12px;
  background: rgba(244, 241, 234, 0.06);
  color: #f4f1ea;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#contact .contact-form input::placeholder,
#contact .contact-form textarea::placeholder {
  color: rgba(244, 241, 234, 0.4);
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
  outline: none;
  border-color: #90C421;
  box-shadow: 0 0 0 3px rgba(144, 196, 33, 0.2);
}

#contact .contact-form textarea#message {
  width: 100%;
  min-height: 280px;
  height: 280px;
  padding: 14px 16px;
  font-size: 1.05rem;
  line-height: 1.8;
  resize: vertical;
}

#contact .contact-form .btn-primary {
  display: inline-block;
  margin: 4px 0 0;
  padding: 12px 22px;
  border: 1px solid #90C421;
  border-radius: 12px;
  background: #90C421;
  color: #1c1916;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#contact .contact-form .btn-primary:hover {
  border-color: #90C421;
  background: transparent;
  color: #90C421;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

#contact .contact-form .btn-primary:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

#contact .contact-form .btn-primary:active {
  transform: translateY(1px);
}

#contact .contact-form input.is-invalid,
#contact .contact-form textarea.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

#contact .contact-form .field-error {
  margin-top: 4px;
  color: #dc2626;
  font-size: 0.85rem;
  line-height: 1.5;
}

.toast {
  position: fixed;
  z-index: 9999;
  top: calc(var(--header-h, 0px) + 12px);
  left: 50%;
  min-width: min(92vw, 640px);
  max-width: 92vw;
  padding: 12px 16px;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--success { background: #16a34a; }
.toast--error { background: #dc2626; }

@keyframes contact-morph {
  from { border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%; }
  to { border-radius: 60% 40% 40% 60% / 30% 70% 30% 70%; }
}

@keyframes contact-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  #contact .contact-grid {
    grid-template-columns: 1fr;
  }

  #contact .line-qr-link {
    display: none;
  }

  #contact .contact-info .line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 210px;
    margin: 6px 0 12px;
    padding: 7px 9px;
    border-radius: 999px;
    background: #06C755;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
  }

  #contact .line-btn:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
  }
}

@media (max-width: 767px) {
  #contact.contact {
    min-height: 0;
    padding: 64px 0 !important;
  }

  #contact .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  #contact .contact-grid {
    gap: 20px;
  }

  #contact .contact-info,
  #contact .contact-form {
    width: 100%;
    padding: 22px 18px;
    border-radius: 14px;
  }

  #contact .section-title {
    font-size: clamp(36px, 12vw, 44px);
  }

  #contact .contact-text {
    margin-bottom: 22px;
    font-size: 14.5px;
    line-height: 1.9;
  }

  #contact .contact-method,
  #contact .contact-method__body,
  #contact .contact-info a {
    overflow-wrap: anywhere;
  }

  #contact .email a {
    word-break: break-all;
  }

  #contact .line-btn {
    min-height: 24px;
  }

  #contact .contact-form {
    gap: 0;
  }

  #contact .contact-form textarea#message {
    min-height: 180px;
    height: 180px;
  }

  #contact .contact-form .btn-primary {
    width: 100%;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #contact.contact::before,
  #contact.contact::after {
    animation: none;
  }

  #contact .contact-info,
  #contact .contact-form {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}









/* ===== Footer Styling ===== */
.footer{
  background: var(--color-black, #0a0a0a);
  color: var(--color-white, #ffffff);
  padding: clamp(28px, 5vw, 56px) 0 clamp(16px, 3vw, 28px);
}

.footer a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease, text-underline-offset .2s ease;
}
.footer a:hover{
  color: var(--color-white, #ffffff);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer a:focus-visible{
  outline: 2px solid var(--accent-color, #3b82f6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* レイアウト */
.footer-content{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}

/* セクション共通 */
.footer-section h4{
  font-family: var(--heading);
  font-size: clamp(16px, 2.2vw, 18px);
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.footer-section p{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}
.footer-section ul{
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-section li{
  margin: 8px 0;
  color: rgba(255,255,255,0.86);
}


.footer-logo-text .footer-main{
  display: block;
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(18px, 2.6vw, 20px);
  letter-spacing: .02em;
  color: var(--color-white, #ffffff);
}
.footer-logo-text .footer-sub{
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
}
.footer-brand-logo {
  filter: brightness(0) invert(1);
}

.footer-handwritten {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: 16px auto 0;
}

/* 下部クレジット */
.footer-bottom{
  margin-top: clamp(18px, 3vw, 28px);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.14);
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: clamp(12.5px, 1.8vw, 14px);
}

/* 営業時間は1項目なので、通常メニュー用の行間を付けない */
.footer-hours > li{
  margin: 0;
}

/* スマホ・タブレット対応 */
@media (max-width: 1024px){
  .footer-content{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px){
  .footer-content{
    grid-template-columns: 1fr;
  }
  .footer{
    padding-top: 28px;
  }
}

@media (prefers-color-scheme: light) {
  .footer {
    background: var(--color-gray-800, #1a1a1a);
  }
}

/* Footer contact */
.footer-contact {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: rgba(255,255,255,0.9);
  font-variant-numeric: tabular-nums;
}

.footer-contact > div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  line-height: 1.7;
}

.footer-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #90C421;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}
.footer-social-icon:hover {
  background-color: #90C421;
}
.footer-social-icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .footer-contact {
    display: block;
    text-align: center;
  }

  .footer-contact > div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .footer-social-links {
    justify-content: center;
    padding-left: 0;
    margin: 16px auto 0;
  }
}

html {
  background-color: transparent;
}

/* =================================================================
   Glitch slice
   ================================================================= */
.glitch-slice {
  position: relative;
  display: inline-block;
}
.glitch-slice::before,
.glitch-slice::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
.is-glitching.glitch-slice::before {
  animation: glitch-slice-a 0.35s steps(1) both;
  color: #29d6ff;
}
.is-glitching.glitch-slice::after {
  animation: glitch-slice-b 0.35s steps(1) both;
  color: #ff2d78;
}
@keyframes glitch-slice-a {
  0%   { clip-path: inset(20% 0 65% 0); transform: translateX(-8px); }
  25%  { clip-path: inset(60% 0 10% 0); transform: translateX(6px); }
  50%  { clip-path: inset(5% 0 80% 0);  transform: translateX(-5px); }
  75%  { clip-path: inset(75% 0 8% 0);  transform: translateX(9px); }
  100% { clip-path: inset(0 0 100% 0);  transform: translateX(0); }
}
@keyframes glitch-slice-b {
  0%   { clip-path: inset(70% 0 12% 0); transform: translateX(7px); }
  25%  { clip-path: inset(10% 0 75% 0); transform: translateX(-7px); }
  50%  { clip-path: inset(45% 0 40% 0); transform: translateX(8px); }
  75%  { clip-path: inset(25% 0 60% 0); transform: translateX(-6px); }
  100% { clip-path: inset(0 0 100% 0);  transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .glitch-slice::before,
  .glitch-slice::after {
    display: none;
  }
}

.section-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 40px;
  position: relative;
}

.section-label__row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.section-label__line {
  width: 120px;
  height: 2px;
  background-color: rgb(47, 47, 51);
  flex-shrink: 0;
}

.section-label__name {
  font-family: var(--heading);
  font-size: 45px;
  font-weight: 500;
  letter-spacing: 9.45px;
  color: rgb(47, 47, 51);
  line-height: 1.4;
}

.section-label__sub {
  font-family: var(--heading);
  font-size: 16px;
  color: rgb(47, 47, 51);
  padding-left: 125px;
}

.watermark {
  font-family: var(--heading);
  font-size: 180px;
  font-weight: 400;
  color: rgba(47, 47, 51, 0.08);
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

/* Dark-surface section labels */
#price .section-label__name,
#price .section-label__sub,
#voice .section-label__name,
#voice .section-label__sub,
.about-text .section-label__name,
.about-text .section-label__sub {
  color: #f4f1ea;
}

#price .section-label__line,
#voice .section-label__line,
.about-text .section-label__line {
  background-color: #90C421;
}

.about-text .watermark,
#price .watermark,
#voice .watermark {
  color: rgba(244, 241, 234, 0.08);
}

.about-text .watermark {
  top: calc(clamp(12px, 2vh, 20px) + 49px);
}

.about-text .section-label {
  position: static;
}

#price .section-label {
  position: static;
  align-self: center;
  align-items: center;
  text-align: center;
}

#price .watermark {
  top: calc(clamp(32px, 8vh, 72px) + 49px);
}

#voice .voice-section__inner {
  position: static;
}

#voice .section-label {
  position: static;
}

#voice .watermark {
  top: calc(clamp(72px, 8vw, 112px) + 49px);
}

#price .section-label__sub {
  padding-left: 0;
}

.about-text .about-name,
.about-text .about-bio {
  color: #f4f1ea;
}

/* ========================
   Scroll Reveal
   ======================== */
/* JSが使えない・途中で止まった場合でも、コンテンツは常に表示する。 */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Revealの初期化に成功した場合だけ、表示前の状態へ切り替える。 */
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

html.reveal-ready .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Price・VoiceはスクロールRevealの対象外。
   JavaScriptやIntersectionObserverの状態に関係なく必ず表示する。 */
.section-visible {
  display: block !important;
  position: relative;
  z-index: 3;
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  background: #1c1916;
}

.section-visible #price,
.section-visible #voice {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ========================
   Pill Button
   ======================== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1.5px solid #90C421;
  border-radius: 50px;
  padding: 10px 28px;
  background-color: transparent;
  color: #f4f1ea;
  font-family: var(--serif);
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-pill:hover {
  background-color: #90C421;
  border-color: #90C421;
  color: #1c1916;
}

/* ========================
   Concept Section
   ======================== */

/* ========================
   Works Section
   ======================== */

/* ========================
   Price Section
   ======================== */
.section-visible--price {
  overflow: hidden;
  isolation: isolate;
  background: #1c1916;
}

.section-visible--price::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/images/common/hougan111.webp");
  background-repeat: repeat;
  background-position: center top;
  background-size: 210px 210px;
  opacity: 0.3;
}

.section-visible--price #price {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .section-visible--price::before {
    background-size: 150px 150px;
  }
}

.hougan-pattern-row {
  position: relative;
  width: 100%;
  height: 105px;
  overflow: hidden;
  background-color: #1c1916;
}

.hougan-pattern-row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('assets/images/common/hougan111.webp');
  background-repeat: repeat-x;
  background-position: center top;
  background-size: 210px 210px;
  opacity: 0.3;
}

@media (max-width: 640px) {
  .hougan-pattern-row {
    height: 75px;
  }

  .hougan-pattern-row::before {
    background-size: 150px 150px;
  }
}

.wireframe-visual {
  position: relative;
  width: 100%;
  height: clamp(180px, 26vw, 340px);
  overflow: hidden;
  isolation: isolate;
  background: #1c1916;
}

.wireframe-visual__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wireframe-visual__image {
  --wireframe-parallax-y: 0px;
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: calc(100% + 220px);
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, calc(-50% + var(--wireframe-parallax-y)), 0);
  will-change: transform;
}

@media (max-width: 640px) {
  .wireframe-visual {
    height: 180px;
  }

  .wireframe-visual__image {
    height: calc(100% + 160px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wireframe-visual__image {
    transform: translate3d(0, -50%, 0);
    will-change: auto;
  }
}

#price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 80px 60px;
}

.price-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  margin-top: 20px;
}

.price-link {
  width: min(580px, 75vw);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: rgba(244, 241, 234, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.18);
  border-left: 3px solid #90C421;
  border-radius: 4px;
  padding: 22px 36px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 1.5px;
  color: #f4f1ea;
  text-decoration: none;
  text-align: left;
  line-height: 1.8;
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.price-link .icon--double-arrow {
  flex-shrink: 0;
  width: 32px;
  transition: transform 0.35s ease;
}

.price-link:hover {
  background-color: rgba(144, 196, 33, 0.1);
  border-color: rgba(144, 196, 33, 0.55);
  transform: translateX(6px);
}

.price-link:hover .icon--double-arrow {
  transform: translateX(6px);
}

/* ========================
   Voice Section
   ======================== */
.section-visible--voice {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(144, 196, 33, 0.08), transparent 34%),
    #1c1916;
}

.section-visible--voice #voice {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) clamp(20px, 5vw, 64px) !important;
}

.voice-section__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.voice-cd {
  position: absolute;
  z-index: 1;
  top: 52%;
  left: 0;
  width: clamp(340px, 42vw, 680px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.voice-cd__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  animation: voice-cd-rotate 18s linear infinite;
  will-change: transform;
}

@keyframes voice-cd-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

#voice .section-label {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: clamp(34px, 5vw, 58px);
}

#voice .section-label__line {
  width: clamp(56px, 12vw, 120px);
}

#voice .section-label__name {
  font-size: clamp(34px, 6vw, 45px);
  letter-spacing: clamp(5px, 1.2vw, 9.45px);
}

#voice .section-label__sub {
  align-self: flex-start;
  padding-left: calc(clamp(56px, 12vw, 120px) + 5px);
}

.voice-slider {
  position: relative;
  width: 100%;
}

.voice-slider-wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-block: 18px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.voice-slider-wrap.is-dragging {
  cursor: grabbing;
}

.voice-slider-track {
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 2.4vw, 30px);
  width: max-content;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.voice-slide {
  position: relative;
  flex-shrink: 0;
  width: clamp(300px, 36vw, 430px);
  overflow: hidden;
  color: #25221f;
  background: #f4f1ea;
  border: 1px solid rgba(244, 241, 234, 0.24);
  border-radius: 3px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  opacity: 0.46;
  transform: scale(0.94);
  transition:
    opacity 0.5s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
}

.voice-slide.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.voice-slide__image {
  --voice-image-accent: #90C421;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #27231f;
  background-image:
    linear-gradient(rgba(244, 241, 234, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 76% 30%, color-mix(in srgb, var(--voice-image-accent) 34%, transparent), transparent 28%);
  background-size: 32px 32px, 32px 32px, auto;
  isolation: isolate;
  object-fit: cover;
}

.voice-slide__body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: clamp(24px, 3vw, 34px);
}

.voice-slide__number {
  color: #729d18;
  font-family: var(--heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.voice-slide__text {
  margin: 18px 0 24px;
  font-family: var(--serif);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  letter-spacing: 0.055em;
}

.voice-slide__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(37, 34, 31, 0.16);
  color: rgba(37, 34, 31, 0.64);
  font-family: var(--heading);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.voice-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.voice-nav button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(244, 241, 234, 0.35);
  color: #f4f1ea;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.voice-nav button .icon {
  width: 18px;
  height: 18px;
}

.voice-nav button:hover,
.voice-nav button:focus-visible {
  background: #90C421;
  border-color: #90C421;
  color: #1c1916;
  transform: scale(1.06);
  outline: none;
}

.voice-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  width: 82px;
  margin: 0;
  color: rgba(244, 241, 234, 0.58);
  font-family: var(--heading);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.voice-count__current {
  color: #f4f1ea;
  font-size: 18px;
}

.voice-count__separator {
  color: #90C421;
}

@media (max-width: 640px) {
  .section-visible--voice #voice {
    padding: 64px 20px !important;
  }

  .voice-cd {
    top: 50%;
    width: clamp(240px, 76vw, 360px);
  }

  .voice-cd__image {
    animation-duration: 14s;
  }

  #voice .section-label {
    margin-bottom: 26px;
  }

  .voice-slider-wrap {
    width: 100%;
    padding-block: 12px;
  }

  .voice-slider-track {
    gap: 14px;
  }

  .voice-slide {
    width: min(84vw, 350px);
  }

  .voice-slide__body {
    min-height: 258px;
    padding: 24px 22px;
  }

  .voice-slide__text {
    font-size: 14px;
    line-height: 1.9;
  }

  .voice-slide__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-cd__image {
    animation: none;
  }

  .voice-slider-track,
  .voice-slide {
    transition-duration: 0.01ms;
  }
}

/* ========================
   Flow Section
   ======================== */
#flow {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0;
}

.flow-card {
  background-color: #fff;
  width: 1200px;
  max-width: 100%;
  padding: clamp(105px, 9vw, 130px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  isolation: isolate;
  border-radius: 24px;
}

.flow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border: 1px solid transparent;
  border-image-source: url("assets/images/common/hure113.png");
  border-image-slice: 145 115 145 115;
  border-image-width: clamp(105px, 9vw, 125px) clamp(88px, 8vw, 105px);
  border-image-repeat: stretch;
}

.flow-card > * {
  position: relative;
  z-index: 1;
}

.flow-label-wrap {
  width: 100%;
  padding: 0 clamp(76px, 8vw, 112px);
}

.flow-step {
  width: 100%;
}

.flow-step-row {
  display: flex;
  align-items: flex-start;
  padding: 0 clamp(76px, 8vw, 112px);
  gap: 24px;
  margin-bottom: 16px;
}

.flow-step-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(144, 196, 33, 0.1);
  border: 1px solid rgba(144, 196, 33, 0.4);
  color: #90C421;
}

.flow-step-content { flex: 1; }

.flow-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.flow-step-badge {
  background-color: #1c1916;
  border-radius: 6px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.flow-step-badge .step-label {
  font-family: var(--gothic);
  font-size: 13px;
  color: #f4f1ea;
  font-weight: 700;
  letter-spacing: 1px;
}

.flow-step-badge .step-num {
  font-family: var(--gothic);
  font-size: 18px;
  color: #90C421;
  font-weight: 700;
}

.flow-step-title {
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 500;
  color: rgb(47, 47, 51);
}

.flow-step-body {
  font-family: var(--serif);
  font-size: 14px;
  color: rgb(51, 51, 51);
  line-height: 1.7;
  white-space: pre-line;
}

.flow-divider {
  display: flex;
  justify-content: center;
  padding: 4px 0;
  color: #90C421;
  font-size: 20px;
}

.flow-pills {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.flow-pill {
  background-color: #1c1916;
  color: #f4f1ea;
  padding: 8px 24px;
  border-radius: 24px;
  font-family: var(--gothic);
  font-size: 14px;
  border: 1px solid rgba(144, 196, 33, 0.4);
}

/* ========================
   About Section
   ======================== */
#about {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 80px 150px;
  gap: 60px;
  position: relative;
  background-image:
    linear-gradient(rgba(28, 25, 22, 0.55), rgba(28, 25, 22, 0.55)),
    url("assets/images/common/ginga141.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-portrait {
  width: clamp(150px, 16vw, 260px);
  height: clamp(150px, 16vw, 260px);
  object-fit: cover;
  object-position: center 52%;
  flex-shrink: 0;
  display: block;
  max-width: none;
  border-radius: 50%;
  border: 6px solid rgba(244, 241, 234, 0.9);
  box-shadow: -14px 14px 0 rgba(144, 196, 33, 0.25);
}

.about-text { flex: 0 1 560px; max-width: 560px; position: static; }

.about-name {
  font-family: var(--heading);
  font-size: 32px;
  color: rgb(47, 47, 51);
  letter-spacing: 4px;
  font-style: italic;
  font-weight: 400;
  margin: 0 0 24px;
}

.about-name__roman {
  font-size: 0.5em;
}

.about-bio {
  font-family: var(--serif);
  font-size: 18px;
  color: rgb(51, 51, 51);
  line-height: 2.2;
  margin: 0 0 40px;
}

.about-btn {
  font-size: 20px;
  padding: 18px 48px;
  gap: 20px;
}
.about-btn:hover {
  color: #f4f1ea;
}

.about-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.about-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid #90C421;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}
.about-social-icon:hover {
  background-color: #90C421;
}
.about-social-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 1024px) {

  #about { flex-direction: column; padding: 60px 24px; }
  .about-portrait {
    width: min(41vw, 230px);
    height: min(41vw, 230px);
    max-width: none;
  }
}

@media (max-width: 640px) {
  #price { padding: 60px 20px; }
  #flow { padding: 60px 0; }
  .flow-card {
    width: 100%;
    padding: 78px 0;
  }
  .flow-card::before {
    border-image-width: 64px 50px;
  }
  .flow-label-wrap,
  .flow-step-row {
    padding-right: 38px;
    padding-left: 38px;
  }
}

/* =================================================================
   Smartphone layout polish
   PC styles are intentionally left untouched.
   ================================================================= */
@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Header / menu */
  .hamburger-btn {
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .hamburger-dots,
  .hamburger-ripple {
    width: 56px;
    height: 56px;
  }

  .header-compact {
    height: 60px;
    padding-top: env(safe-area-inset-top);
  }

  .header-compact__left {
    min-width: 0;
    gap: 0;
    padding: 0 16px;
  }

  .header-compact__logo {
    width: 104px;
    height: auto;
    max-height: 36px;
    object-fit: contain;
  }

  .header-compact__info,
  .header-compact__nav {
    display: none !important;
  }

  .header-compact__cta {
    padding: 0 12px;
    font-size: 11px;
  }

  .compact-hamburger {
    width: 64px;
  }

  .compact-hamburger__lines {
    width: 24px;
  }

  .menu {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .menu__left {
    display: none;
  }

  .menu__right {
    width: 100%;
    flex: 1 1 100%;
  }

  .menu-close-btn {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .menu__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0 28px;
    min-height: 100%;
    padding: calc(92px + env(safe-area-inset-top)) 24px 40px;
  }

  .menu-nav-head {
    margin-bottom: 30px;
  }

  .menu-head-link {
    font-size: 21px;
    line-height: 1.2;
  }

  .menu-bottom-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding-top: 14px;
  }

  .menu-bottom-item {
    display: block;
  }

  .menu-bottom-sep {
    display: none;
  }

  .menu-bottom-link {
    white-space: normal;
    line-height: 1.7;
  }

  /* First view */
  .hero {
    display: block;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    padding: 0 !important;
  }

  .hero__inner {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
  }

  .hero__copy {
    right: 20px;
    bottom: max(28px, env(safe-area-inset-bottom));
    left: 20px;
    width: auto;
    letter-spacing: 0.025em;
  }

  .hero__line--scramble {
    max-width: 100%;
    font-size: clamp(14px, 4.3vw, 18px);
    letter-spacing: 0.025em;
  }

  /* Moving background / Passion */
  .flowing-bg-stage {
    top: calc(50svh - 90px);
    height: 180px;
    margin-bottom: -180px;
  }

  .bg-text__set {
    gap: 52px;
    padding-right: 52px;
  }

  .bg-text__word {
    font-size: 90px;
  }

  .works-ticker__row {
    margin-bottom: 14px;
    padding: 14px 0;
  }

  .works-ticker__row--first {
    margin-top: 16px;
  }

  .works-ticker__track {
    gap: 14px;
  }

  .works-ticker__track img {
    width: 160px;
    height: 102px;
    border-radius: 9px;
  }

  .container-1280,
  .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .card {
    gap: 24px;
    padding: 24px 22px;
    border-radius: 16px;
  }

  .heading {
    font-size: 30px;
  }

  .passion__lead {
    margin-bottom: 18px;
    font-size: clamp(21px, 6.2vw, 24px);
    line-height: 1.55;
  }

  .passion__text {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.95;
    overflow-wrap: anywhere;
  }

  .passion__signature {
    margin-top: 22px;
    font-size: 13px;
  }

  .section-py {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .stats__grid {
    gap: 10px;
  }

  .stats__item {
    min-width: 0;
    padding: 18px 8px;
  }

  .stats__label {
    font-size: 12px;
  }

  .stats__value {
    font-size: clamp(27px, 8vw, 32px);
  }

  .stats__unit {
    font-size: 12px;
  }

  /* Services */
  .services-works-flow-wrap {
    border-radius: 22px;
  }

  .services__content {
    padding: 56px 16px;
  }

  .services__title-en {
    font-size: 34px;
  }

  .services__list,
  .services__list--grid {
    gap: 12px;
    width: 100%;
    margin-top: 28px;
  }

  .services__card,
  .services__card--mobile-round-1,
  .services__card--desktop-round {
    border-radius: 12px;
  }

  .services__card-content {
    min-height: 148px;
    padding: 20px 14px;
    border: 1px solid rgba(41, 64, 72, 0.08);
  }

  .services__card-en {
    font-size: clamp(25px, 8vw, 32px);
    line-height: 1.3;
  }

  .services__card-jp {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.7;
  }

  /* Works */
  .works__head {
    gap: 18px;
    padding: 56px 20px 0;
  }

  .works__titleRow {
    align-items: flex-start;
    gap: 8px;
  }

  .works__shoulder {
    font-size: 34px;
  }

  .works__title {
    width: 100%;
    font-size: 16px;
    line-height: 1.55;
  }

  .works__lead {
    margin-top: 8px;
    font-size: 12.5px;
  }

  .works__nav {
    display: grid;
    grid-template-columns: 44px 44px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
  }

  .works__navBtn {
    width: 44px;
    height: 44px;
  }

  .works__navBtn .icon {
    width: 18px;
    height: 18px;
  }

  .works__progressWrap {
    min-width: 0;
    gap: 8px;
  }

  .works__progressBar {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .works__viewport {
    margin-top: 26px;
    padding: 12px 0;
  }

  .works__slide {
    width: calc(100vw - 48px);
  }

  .works-card {
    border-radius: 16px;
  }

  .works-card__title,
  .works-card__desc,
  .works-card__tags {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .works-card__body {
    padding: 18px 16px 16px;
  }

  .works__cta {
    margin-top: 34px;
    margin-bottom: 34px;
    padding: 0 20px;
  }

  .flow-bg--1 { background-image: url('assets/images/home/ervices-bg--1.webp'); }
  .flow-bg--2 { background-image: url('assets/images/home/ervices-bg--2.webp'); }
  .flow-bg--3 { background-image: url('assets/images/home/ervices-bg--3.webp'); }
  .flow-bg--4 { background-image: url('assets/images/home/ervices-bg--4.webp'); }

  /* 縦長のSPスクリーンショットは、上端・下端を切らず背景全面へ合わせる */
  .flow-bg--3,
  .flow-bg--4 {
    background-size: 100% 100%;
    background-position: center top;
  }

  .works__cta .btn {
    justify-content: center;
    width: min(100%, 300px);
    padding: 14px 20px;
    font-size: 14px;
  }

  .cta-glitch-content {
    gap: 10px;
  }

  .cta-arrow-icon {
    width: 27px;
  }

  /* Shared section headings */
  .section-label {
    gap: 6px;
    margin-bottom: 30px;
  }

  .section-label__line,
  #voice .section-label__line {
    width: 72px;
  }

  .section-label__name,
  #voice .section-label__name {
    font-size: 38px;
    letter-spacing: 5px;
  }

  .section-label__sub,
  #voice .section-label__sub {
    padding-left: 77px;
    font-size: 13px;
  }

  .watermark {
    right: -8px;
    font-size: 124px;
  }

  #price .section-label__sub {
    padding-left: 0;
  }

  /* Flow */
  .flow-visual--scroll-bg {
    padding: 0 !important;
  }

  /* SPでは背景ステージをFlowセクションの上端から下端まで敷く */
  .flow-bg-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    margin: 0;
    overflow: hidden;
  }

  /* SPでもPCと同じく、上中央からセクション全面へ広がる初期状態にする */
  .flow-zoom-box {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 50% 100% 50%);
    -webkit-clip-path: inset(0 50% 100% 50%);
  }

  .flow-visual-content {
    padding: clamp(260px, 36svh, 340px) 0 40px;
  }

  #flow {
    padding: 56px 0 !important;
  }

  .flow-visual--scroll-bg .flow-card {
    width: 100%;
    max-width: calc(100% - 24px);
  }

  .flow-card {
    padding: 72px 0;
    border-radius: 20px;
  }

  .flow-card::before {
    border-image-width: 54px 30px;
  }

  .flow-label-wrap,
  .flow-step-row {
    padding-right: 30px;
    padding-left: 30px;
  }

  .flow-step-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 18px;
  }

  .flow-step-icon {
    width: 42px;
    height: 42px;
    padding: 10px;
  }

  .flow-step-content {
    min-width: 0;
  }

  .flow-step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 10px;
  }

  .flow-step-badge {
    padding: 5px 11px;
  }

  .flow-step-badge .step-label {
    font-size: 11px;
  }

  .flow-step-badge .step-num {
    font-size: 16px;
  }

  .flow-step-title {
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .flow-step-body {
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }

  .flow-divider {
    padding: 7px 0 11px;
  }

  .flow-pills {
    gap: 10px;
    width: 100%;
    margin-top: 30px;
    padding: 0 30px;
  }

  .flow-pill {
    width: 100%;
    max-width: 280px;
    padding: 9px 16px;
    font-size: 12.5px;
    text-align: center;
  }

  /* Price */
  #price {
    padding: 64px 20px !important;
  }

  .price-links {
    gap: 16px;
    margin-top: 8px;
  }

  .price-link {
    width: 100%;
    max-width: 560px;
    min-height: 0;
    gap: 16px;
    padding: 20px 18px;
    font-size: 14px;
    line-height: 1.75;
    letter-spacing: 0.07em;
  }

  .price-link .icon--double-arrow {
    width: 28px;
  }

  /* Voice */
  .section-visible--voice #voice {
    padding: 64px 20px !important;
  }

  .voice-cd {
    width: min(72vw, 300px);
  }

  #voice .section-label {
    margin-bottom: 26px;
  }

  .voice-slide {
    width: min(calc(100vw - 40px), 360px);
  }

  .voice-slide__body {
    min-height: 240px;
    padding: 22px 20px;
  }

  .voice-slide__text {
    margin: 14px 0 20px;
    line-height: 1.85;
  }

  .voice-nav {
    margin-top: 22px;
  }

  /* About */
  #about {
    flex-direction: column;
    align-items: center;
    gap: 36px;
    padding: 64px 24px !important;
  }

  .about-portrait {
    width: min(46vw, 190px);
    height: min(46vw, 190px);
    border-width: 4px;
    box-shadow: -9px 9px 0 rgba(144, 196, 33, 0.25);
  }

  .about-text {
    flex: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .about-name {
    width: 100%;
    margin: 0 0 18px;
    font-size: clamp(24px, 7.2vw, 28px);
    line-height: 1.45;
    letter-spacing: 2px;
  }

  .about-name__roman {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 2.2px;
  }

  .about-bio {
    margin: 0 0 30px;
    font-size: 15px;
    line-height: 2;
    overflow-wrap: anywhere;
  }

  .about-btn {
    justify-content: center;
    width: 100%;
    max-width: 340px;
    padding: 14px 20px;
    font-size: 15px;
  }

  .about-cta-row {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  /* Footer */
  .footer .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .footer-content {
    gap: 30px;
  }

  .footer-section h4 {
    margin-bottom: 8px;
  }

  .footer-handwritten {
    width: 160px;
    margin: 16px auto 0;
  }

  .footer-contact > div {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .footer-contact {
    display: grid !important;
    justify-items: center;
    gap: 8px;
  }

  .footer-contact > div {
    display: flex !important;
    justify-content: center;
    width: fit-content;
    margin: 0 !important;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 20px 0 0 !important;
    line-height: 1.8;
  }

  .footer-bottom a,
  .footer-bottom p {
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
  }
}

/* タブレット表示：リンク2つは横並びで中央、コピーライトはその下に中央表記 */
@media (min-width: 768px) and (max-width: 1024px) {
  .footer-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
  }

  .footer-bottom p {
    flex-basis: 100%;
    text-align: center;
    margin: 8px 0 0;
  }
}
