/* ===================================================
   PORTFOLIO — style.css
   =================================================== */

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

:root {
  /* ── 背景（白基調） ── */
  --bg:         #faf8ff;
  --bg-2:       #f3eeff;
  --bg-3:       #ebe0ff;
  --bg-card:    #ffffff;
  --border:     #e5daf8;
  --border-2:   #c4aef0;

  /* ── 紫アクセント ── */
  --accent:     #7c3aed;
  --accent-2:   #5b21b6;
  --accent-light:#a78bfa;
  --accent-glow:rgba(124,58,237,.18);

  /* ── ゴールド（コントラスト） ── */
  --cyan:       #d97706;
  --cyan-2:     #b45309;
  --cyan-glow:  rgba(217,119,6,.18);

  /* ── テキスト ── */
  --text:       #160b2e;
  --text-2:     #5b4278;
  --text-3:     #9880b8;

  /* ── 成功・緑 ── */
  --success:    #059669;

  /* ── ゴールド ── */
  --gold:       #d97706;

  /* ── 角丸 ── */
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
select { appearance: none; -webkit-appearance: none; }

/* ===== CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s, width .3s, height .3s, background .3s;
  mix-blend-mode: screen;
}
.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(124,58,237,.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .15s ease-out, width .3s, height .3s;
}
.cursor.hovered { width: 18px; height: 18px; }
.cursor-follower.hovered { width: 56px; height: 56px; }

/* ===== PROGRESS BAR ===== */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 200;
  width: 0%;
  transition: width .1s linear;
}


/* ===== UTILITIES ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.section     { padding: 120px 0; }
.section-sm  { padding: 70px 0; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(124,58,237,.07);
}

.section-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.85;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  border: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.06);
  opacity: 0;
  transition: opacity .25s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 12px 0;
  gap: 10px;
}
.btn-ghost svg { transition: transform .25s; }
.btn-ghost:hover svg { transform: translateX(4px); }

.tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-2);
  transition: border-color .2s;
}

/* ===== REVEAL ANIMATION BASE ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .4s, background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(250,248,255,.94);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-color: var(--border);
  box-shadow: 0 1px 32px rgba(124,58,237,.07);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
  position: relative;
  margin-left: -12px;
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin-left: auto;
  margin-right: 36px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s;
  letter-spacing: .01em;
}
.nav-links a:hover { color: var(--text); }

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(250,248,255,.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-2);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 88px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 75% 15%, rgba(167,139,250,.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 10% 85%, rgba(124,58,237,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(217,119,6,.06) 0%, transparent 55%),
    var(--bg);
}

/* Grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-grid-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.05) saturate(1.1);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(250,248,255,.93) 0%,
    rgba(243,238,255,.88) 50%,
    rgba(250,248,255,.93) 100%
  );
  pointer-events: none;
}

/* Gradient orbs */
.hero-orb-1 {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,.12) 0%, transparent 70%);
  top: -100px; right: -200px;
  pointer-events: none;
  animation: float1 8s ease-in-out infinite;
}
.hero-orb-2 {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(217,119,6,.08) 0%, transparent 70%);
  bottom: 0; left: -100px;
  pointer-events: none;
  animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-30px, 30px) scale(1.05); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -20px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 10px;
  background: rgba(124,58,237,.07);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(5,150,105,.4)} 50%{opacity:.6;box-shadow:0 0 0 6px rgba(5,150,105,0)} }
.hero-eyebrow-text { font-size: 12px; font-weight: 500; color: var(--text-2); }

.hero-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.03em;
  margin-bottom: 24px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 暗い行（1行目・3行目） */
.hero-title .line-inner {
  display: block;
  white-space: nowrap;
  color: #160b2e;
}

/* 明るい行（2行目 em） — 45度・白を細く・影で文字をはっきり */
.hero-title em {
  font-style: italic;
  display: inline-block;
  transform: skewX(-4deg);
  background: linear-gradient(45deg,
    #5b21b6  0%,
    #5b21b6 13%,
    #d4b8ff 25%,
    #ffffff 29%,
    #d4b8ff 33%,
    #7c3aed 47%,
    #7c3aed 53%,
    #c4a8ff 63%,
    #ffffff 66%,
    #c4a8ff 69%,
    #5b21b6 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(0 2px 4px rgba(60,10,120,.55))
    drop-shadow(0 4px 16px rgba(91,33,182,.4))
    drop-shadow(0 0 40px rgba(124,58,237,.3));
  letter-spacing: -.04em;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}


/* Hero right panel */
.hero-panel {
  position: relative;
}

/* ===== HERO VIDEO ===== */
/* ===== HERO VIDEO (右パネル) ===== */
.hero-video-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  box-shadow: 0 8px 48px rgba(124,58,237,.15), 0 2px 0 rgba(255,255,255,.8) inset;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.06) saturate(1.18) contrast(1.04);
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(124,58,237,.2) 0%, transparent 55%),
    linear-gradient(315deg, rgba(217,119,6,.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.hero-video-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255,255,255,.22) 46%,
    rgba(255,255,255,.06) 54%,
    transparent 72%
  );
  transform: translateX(-120%);
  animation: heroVideoRoulette 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes heroVideoRoulette {
  0%   { transform: translateX(-120%); opacity: 0; }
  6%   { opacity: 1; }
  42%  { transform: translateX(160%); opacity: 0; }
  100% { transform: translateX(160%); opacity: 0; }
}

/* ===== SHOWREEL ===== */
.showreel-section {
  padding: 80px 0 0;
}
.showreel-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top: 48px;
}
.showreel-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.06) saturate(1.18) contrast(1.04);
}
.showreel-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(124,58,237,.2) 0%, transparent 50%),
    linear-gradient(315deg, rgba(217,119,6,.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.showreel-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255,255,255,.2) 46%,
    rgba(255,255,255,.06) 54%,
    transparent 72%
  );
  transform: translateX(-120%);
  animation: showreelRoulette 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes showreelRoulette {
  0%    { transform: translateX(-120%); opacity: 0; }
  6%    { opacity: 1; }
  42%   { transform: translateX(160%); opacity: 0; }
  100%  { transform: translateX(160%); opacity: 0; }
}

.hero-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(124,58,237,.1), 0 1px 0 rgba(255,255,255,.8) inset;
}
.hero-card-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .4;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.hero-card-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-card-dot:nth-child(1) { background: #ff5f57; }
.hero-card-dot:nth-child(2) { background: #febc2e; }
.hero-card-dot:nth-child(3) { background: #28c840; }
.hero-card-filename { font-size: 12px; color: var(--text-3); margin-left: 6px; }

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.hero-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.hero-stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-num.accent { color: var(--accent); }
.hero-stat-num.gold   { color: var(--gold); }
.hero-stat-num.green  { color: var(--success); }
.hero-stat-label { font-size: 11px; color: var(--text-2); }

.hero-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.hero-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}
.hero-bar-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 1.4s cubic-bezier(.4,0,.2,1) .6s;
}
.hero-bar-fill.accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.hero-bar-fill.gold   { background: linear-gradient(90deg, var(--gold), #0891b2); }
.hero-bar-fill.green  { background: var(--success); }

/* hero availability indicator */
.hero-avail-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: availPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes availPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5,150,105,.5); }
  50%       { box-shadow: 0 0 0 5px rgba(5,150,105,0); }
}
.hero-avail-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--success);
  background: rgba(5,150,105,.1);
  border: 1px solid rgba(5,150,105,.25);
  border-radius: 20px;
  padding: 2px 10px;
}

/* hero chat */
.hero-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.hero-chat-row.right {
  flex-direction: row-reverse;
}
.hero-chat-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-chat-avatar.me {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hero-chat-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 78%;
}
.hero-chat-name {
  font-size: 10px;
  color: var(--text-3);
  padding-left: 2px;
}
.hero-chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.65;
}
.hero-chat-bubble.client {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.hero-chat-bubble.me {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(124,58,237,.22);
}
.hero-chat-meta {
  font-size: 10px;
  color: var(--text-3);
  padding-left: 2px;
}
.hero-chat-meta.right {
  text-align: right;
  padding-left: 0;
  padding-right: 2px;
}

/* floating chips */
.hero-float {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(124,58,237,.12);
}
.hero-float-1 {
  top: 12px; right: -12px;
  animation: floatY 4s ease-in-out infinite;
}
.hero-float-2 {
  bottom: 12px; left: -12px;
  animation: floatY 5s ease-in-out infinite .5s;
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float-label { font-size: 10px; color: var(--text-3); margin-bottom: 4px; }
.float-val   { font-size: 18px; font-weight: 700; }
.float-val.green { color: var(--success); }

/* ===== TRUST STRIP ===== */
.trust-strip {
  border-top: 1px solid #d0b8f0;
  border-bottom: 1px solid #d0b8f0;
  background: #ede0ff;
  position: relative;
  z-index: 2;
}
.trust-inner { padding: 48px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  text-align: center;
  padding: 16px 24px;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-num {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(124,58,237,.12);
}
.trust-num .accent-text { color: var(--accent); }
.trust-num .gold-text   { color: var(--gold); }
.trust-label { font-size: 12px; color: var(--text-2); letter-spacing: .02em; }

/* ===== WORKS GRID ===== */
.works-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: clamp(320px, 46%, 520px);
  gap: 16px 16px;
  margin-top: 64px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,.35) transparent;
}
.works-grid > .wgc { scroll-snap-align: start; }
.works-grid::-webkit-scrollbar { height: 8px; }
.works-grid::-webkit-scrollbar-track { background: transparent; }
.works-grid::-webkit-scrollbar-thumb {
  background: rgba(124,58,237,.30);
  border-radius: 4px;
}
.works-grid::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,.5); }

.wgc {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color .3s, transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
  box-shadow: 0 2px 20px rgba(124,58,237,.08);
}
.wgc:hover { border-color: rgba(124,58,237,.5); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(124,58,237,.12); }

.wgc-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.wgc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  display: block;
}
.wgc:hover .wgc-img img { transform: scale(1.04); }

/* Flowgram: モックアップの空白をクロップ */
.wgc[data-open="modal-flowgram"] .wgc-img img,
#modal-flowgram .modal-img img {
  transform: scale(1.18);
  object-position: center;
}
.wgc[data-open="modal-flowgram"]:hover .wgc-img img {
  transform: scale(1.22);
}

/* hover overlay */
.wgc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5,5,7,.92) 100%);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 24px;
  opacity: 0;
  transition: opacity .3s;
}
.wgc:hover .wgc-overlay { opacity: 1; }
.wgc-overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}
.wgc-overlay-site {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 10px 16px;
  border-radius: 8px;
  transition: background .2s;
}
.wgc-overlay-site:hover { background: rgba(255,255,255,.28); }

/* bottom info bar */
.wgc-foot {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.wgc-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.wgc-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* フッターボタン・スクロールヒント：デスクトップでは非表示 */
.wgc-foot-btns { display: none; }
.works-scroll-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .08em;
}
.works-scroll-hint svg { opacity: .5; }
.works-dots { display: none; }

.works-cta { text-align: center; margin-top: 64px; }

/* ===== MODAL ===== */
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.modal-wrap.open {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22,11,46,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 980px;
  height: min(92vh, 780px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 58%;
  transform: scale(.94) translateY(20px);
  transition: transform .38s cubic-bezier(.34,1.56,.64,1);
}
.modal-wrap.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-img {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--bg-3);
}
.modal-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.modal-body {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .2s, border-color .2s;
  color: var(--text-2);
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cyan);
}
.modal-title {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.modal-subtitle {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}

.modal-block {
  padding: 12px 14px;
  background: var(--bg-3);
  border-radius: 10px;
  border-left: 3px solid var(--border-2);
}
.modal-block-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 5px;
}
.modal-block-text { font-size: 13px; color: var(--text-2); line-height: 1.7; }

.modal-results { display: flex; gap: 20px; flex-wrap: wrap; }
.modal-result-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--success);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 3px;
}
.modal-result-desc { font-size: 11px; color: var(--text-2); }

.modal-stack { display: flex; flex-wrap: wrap; gap: 6px; }

.modal-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.modal-roles .tag {
  background: rgba(124,58,237,.08);
  color: var(--accent);
  border-color: rgba(124,58,237,.2);
  font-size: 11px;
  font-weight: 600;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding: 11px 20px;
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 8px;
  transition: background .2s, gap .2s;
  align-self: flex-start;
}
.modal-link:hover { background: rgba(124,58,237,.07); gap: 14px; }

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 11px 20px;
  border-radius: 8px;
  transition: background .2s, gap .2s, opacity .2s;
  align-self: flex-start;
}
.modal-cta-btn:hover { background: var(--accent-2); gap: 12px; }

.wgc-img-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.wgc-overlay { z-index: 2; }

@media (max-width: 700px) {
  .modal-wrap { padding: 0; align-items: flex-end; }
  .modal-card {
    grid-template-columns: 1fr;
    height: 95vh;
    grid-template-rows: 45vh 1fr;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .modal-img {
    height: 45vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .modal-img img { object-position: center top; }
  .modal-body { padding: 20px 20px 32px; gap: 12px; }
}

/* ===== TESTIMONIALS ===== */
.testimonials-wrap {
  background: #f0e8ff;
  border-top: 1px solid #d0b8f0;
  border-bottom: 1px solid #d0b8f0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(124,58,237,.06);
}
.testi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.testi-card:hover { border-color: rgba(124,58,237,.4); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(124,58,237,.1); }
.testi-card:hover::before { opacity: 1; }

.testi-quote-icon {
  display: none;
}

.testi-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5,150,105,.08);
  border: 1px solid rgba(5,150,105,.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  letter-spacing: .02em;
}

.testi-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.9;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.testi-name  { font-size: 14px; font-weight: 700; line-height: 1.3; }
.testi-org   { font-size: 12px; color: var(--text-3); }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-3);
}
.about-photo-placeholder .ph-icon { font-size: 56px; opacity: .25; }
.about-photo-placeholder .ph-text { font-size: 13px; text-align: center; line-height: 1.6; }

.about-badge-wrap {
  position: absolute;
  bottom: -20px; right: -20px;
}
.about-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.about-content { padding-top: 0; }
.about-name  { font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
.about-role  { font-size: 13px; color: var(--text-2); margin-bottom: 18px; }

.about-blockquote {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.9;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  margin-bottom: 18px;
  overflow-wrap: break-word;
  word-break: keep-all;
  text-wrap: balance;
}

.about-lead {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.95;
  color: var(--text-2);
  margin-bottom: 0;
}
.about-em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.skills-block {
  margin-top: 48px;
  padding: 28px 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
}
.skills-all-groups {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.skills-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.skill-group {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.skill-group:last-child { border-bottom: none; padding-bottom: 0; }
.skill-group:first-child { padding-top: 0; }
.skill-group-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  min-width: 100px;
  flex-shrink: 0;
  padding-top: 4px;
}
.skill-group-icon {
  font-size: 8px;
  color: var(--accent);
}
.skill-group[data-category="frontend"] .skill-group-icon { color: #38bdf8; }
.skill-group[data-category="other"] .skill-group-icon { color: #6ee7b7; }

.skill-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.skill-group[data-category="design"] .skill-chip:hover {
  border-color: rgba(124,58,237,.5);
  background: rgba(124,58,237,.06);
  color: var(--accent);
  transform: translateY(-2px);
}
.skill-group[data-category="frontend"] .skill-chip:hover {
  border-color: rgba(56,189,248,.5);
  background: rgba(56,189,248,.06);
  color: #38bdf8;
  transform: translateY(-2px);
}
.skill-group[data-category="other"] .skill-chip:hover {
  border-color: rgba(110,231,183,.5);
  background: rgba(110,231,183,.06);
  color: #6ee7b7;
  transform: translateY(-2px);
}

/* ===== PROCESS ===== */
.process-section {
  background: #1e0f4a;
  border-top: none;
  border-bottom: none;
}
.process-section .label { color: #a78bfa; }
.process-section .label::before { background: #a78bfa; }
.process-section .section-title { color: #f0e8ff; text-shadow: 0 2px 20px rgba(167,139,250,.3); }
.process-section .section-sub { color: rgba(200,180,240,.8); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.process-steps::after {
  content: '';
  position: absolute;
  top: 38px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,.4), rgba(196,174,240,.6), rgba(167,139,250,.4), transparent);
}

.process-step {
  text-align: center;
  padding: 0 14px;
  position: relative;
}

.p-num {
  width: 76px; height: 76px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: border-color .3s, box-shadow .3s;
}
.process-step:hover .p-num {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-glow);
}

.p-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: #f0e8ff; }
.p-desc  { font-size: 12px; color: rgba(200,180,240,.8); line-height: 1.7; margin-bottom: 12px; }
.p-benefit {
  font-size: 11px;
  color: #6ee7b7;
  padding: 8px 12px;
  background: rgba(5,150,105,.15);
  border: 1px solid rgba(5,150,105,.3);
  border-radius: 8px;
  line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  box-shadow: 0 2px 16px rgba(124,58,237,.06);
}
.price-card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.price-card.featured {
  border-color: rgba(124,58,237,.45);
  background: linear-gradient(160deg, rgba(124,58,237,.06) 0%, var(--bg-card) 100%);
}
.price-card.featured:hover { border-color: var(--accent); }

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-plan  { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.price-row   { display: flex; align-items: baseline; gap: 4px; }
.price-yen   { font-size: 20px; color: var(--text-2); }
.price-num   { font-size: 48px; font-weight: 800; letter-spacing: -.05em; }
.price-unit  { font-size: 14px; color: var(--text-2); }
.price-dur   { font-size: 13px; color: var(--text-2); }

.price-target {
  padding: 14px 18px;
  background: var(--bg-3);
  border-radius: 10px;
  border-left: 3px solid rgba(124,58,237,.5);
}
.price-target-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.price-target-text { font-size: 13px; color: var(--text-2); line-height: 1.7; }

.price-list { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.price-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.price-note {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 36px;
  line-height: 1.8;
}

/* スマホ比較テーブル：デスクトップでは非表示 */
.pricing-table-mobile { display: none; }

/* ===== FINAL CTA ===== */
.final-cta {
  text-align: center;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  background: #2a1260;
}
.final-cta-orb {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(124,58,237,.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta-title {
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
  margin-bottom: 18px;
  color: #ffffff;
  text-shadow: 0 2px 40px rgba(167,139,250,.4);
}
.final-cta-title .accent-grad {
  background: linear-gradient(125deg, #fde68a 0%, #f59e0b 60%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(251,191,36,.5));
}
.final-cta-sub {
  font-size: 17px;
  color: rgba(210,190,255,.85);
  margin-bottom: 48px;
  line-height: 1.8;
}
.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.final-cta .btn-primary { padding: 18px 40px; font-size: 16px; }

/* ===== CONTACT ===== */
.contact-section {
  background: #f0e8ff;
  border-top: 1px solid #d0b8f0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-meta { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.contact-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-meta-icon {
  width: 44px; height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-meta-label { font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.contact-meta-val   { font-size: 15px; color: var(--text-2); line-height: 1.6; }

.form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: 0 4px 32px rgba(124,58,237,.08);
}

.gform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 20px 0;
}
.gform-icon {
  width: 72px;
  height: 72px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.gform-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.gform-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
}
.gform-note {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-req { color: #ef4444; }
.form-control {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
textarea.form-control { min-height: 130px; resize: vertical; }
.form-control::placeholder { color: var(--text-3); }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo { font-size: 18px; font-weight: 800; }
.footer-logo .dot { color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--text-3); }
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a { font-size: 13px; color: var(--text-3); transition: color .2s; }
.footer-links a:hover { color: var(--text-2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .cursor, .cursor-follower { display: none; }

  .nav-links { display: none; }
  .hamburger {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
  }
  .nav-logo {
    font-size: 14px;
    white-space: nowrap;
  }
  .nav-cta .btn {
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
  }
  .nav-cta .btn svg { width: 12px; height: 12px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }

  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3),
  .trust-item:nth-child(4) { border-top: 1px solid var(--border); }
  .trust-item:nth-child(4) { border-right: none; }

  .hero-title { font-size: clamp(28px, 8vw, 44px); line-height: 1.25; }
  .hero-title .line-inner { white-space: normal; }
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 48px; }

  .works-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-columns: auto;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .works-scroll-hint { display: none; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-wrap { max-width: 100%; }

  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .process-steps::after { display: none; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

  .contact-grid { grid-template-columns: 1fr; gap: 28px; }

  /* iOSズーム防止: フォームのfont-sizeを16px以上に */
  .form-control { font-size: 16px; }

  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
  .works-grid {
    display: flex;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin-top: 40px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 8px;
  }
  .works-grid::-webkit-scrollbar { display: none; }
  .wgc {
    flex: 0 0 78vw;
    scroll-snap-align: start;
    transform: none !important;
  }
  /* スマホ：画像上のオーバーレイを非表示 */
  .wgc-overlay { display: none; }
  .wgc-img-link { display: none; }
  /* スマホ：フッターにボタンを表示 */
  .wgc-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .wgc-foot-btns {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
  }
  .wgc-foot-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    padding: 7px 14px;
    border: 1px solid rgba(124,58,237,.35);
    border-radius: 7px;
    cursor: pointer;
    flex: 1;
    justify-content: center;
  }
  .wgc-foot-site {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 7px 14px;
    border-radius: 7px;
    flex: 1;
    justify-content: center;
  }
  .works-scroll-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: .08em;
  }
  .works-scroll-hint svg { opacity: .5; }
  .works-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
  }
  .works-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: background .2s, transform .2s;
  }
  .works-dot.active {
    background: var(--accent);
    transform: scale(1.3);
  }

  /* 料金カードを非表示にして比較テーブルを表示 */
  .pricing-grid { display: none; }
  .pricing-table-mobile {
    display: block;
    margin-top: 40px;
  }
  .ptm-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    border: 1px solid var(--border);
  }
  .ptm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 320px;
  }
  .ptm-table thead tr {
    background: var(--bg-3);
  }
  .ptm-table th {
    padding: 14px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    text-align: center;
    border-bottom: 1px solid var(--border);
  }
  .ptm-table th.ptm-label-col { text-align: left; }
  .ptm-featured-col {
    background: rgba(124,58,237,.07);
    color: var(--accent) !important;
  }
  .ptm-table thead .ptm-featured-col {
    color: var(--accent) !important;
    border-bottom: 2px solid var(--accent);
  }
  .ptm-table td {
    padding: 13px 12px;
    text-align: center;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
  }
  .ptm-table tbody tr:last-child td { border-bottom: none; }
  .ptm-table td:first-child {
    text-align: left;
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    white-space: nowrap;
  }
  .ptm-price-row td {
    font-weight: 800;
    font-size: 14px;
    color: var(--text) !important;
  }
  .ptm-none { color: var(--text-3) !important; opacity: .5; }
  .ptm-table tfoot td {
    padding: 14px 8px;
    border-bottom: none;
  }
  .ptm-btn {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid rgba(124,58,237,.35);
    border-radius: 8px;
    padding: 8px 4px;
    white-space: nowrap;
  }
  .ptm-btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }

  .process-steps {
    display: flex;
    flex-direction: row;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 16px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .process-steps::after { display: none; }
  .process-step {
    flex: 0 0 80vw;
    scroll-snap-align: start;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(167,139,250,.2);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
  }
  .p-desc { font-size: 11px; }
  .p-benefit { font-size: 10px; }
  /* セクション余白を統一 */
  .section { padding: 52px 0; }
  .section-title { font-size: clamp(22px, 6vw, 32px); margin-bottom: 12px; }
  .works-cta { margin-top: 32px; }

  /* ヒーローのスキルタグを非表示 */

  /* テキスト調整 */
  .section-sub { font-size: 14px; }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
  }
  .hero-actions .btn { font-size: 13px; padding: 10px 20px; }

  /* about */
  .about-grid { gap: 32px; }

  /* スキル：ラベルを上・チップを下に */
  .skill-group { flex-direction: column; gap: 10px; }
  .skill-group-name { min-width: unset; }

  /* final CTA */
  .final-cta-title { font-size: clamp(24px, 7vw, 34px); }
  .final-cta-sub { font-size: 13px; margin-bottom: 28px; }
  .final-cta-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .final-cta .btn-primary { padding: 12px 32px; font-size: 14px; width: auto; }

  .form-wrap { padding: 28px 20px; }

  /* モーダルをボトムシート形式に */
  .modal-wrap {
    padding: 0;
    align-items: flex-end;
  }
  .modal-card {
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    width: 100%;
  }
  .modal-body {
    padding: 28px 20px 40px;
  }
  .modal-close {
    width: 44px;
    height: 44px;
    top: 12px;
    right: 12px;
  }
  .modal-img {
    min-height: 200px;
    max-height: 240px;
  }

  /* コンタクト */
  .contact-meta { gap: 16px; margin-top: 24px; }
  .contact-meta-val { font-size: 13px; }
  .gform-card { padding: 24px 20px; }

  /* フッターをコンパクトに */
  footer { padding: 12px 0; }
  .footer-inner { gap: 4px !important; }
  .footer-logo { font-size: 13px; }
  .footer-links {
    gap: 0 2px;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0;
    margin: 2px 0;
  }
  .footer-links a {
    font-size: 11px;
    min-height: unset;
    line-height: 1.8;
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
  }
  .footer-copy { font-size: 10px; margin-top: 2px; }

  /* ボタンをコンパクトに */
  .btn { padding: 10px 20px; font-size: 13px; }
}

/* タッチデバイス: Worksカードのオーバーレイを常時表示 */
@media (hover: none) {
  .wgc-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 40%, rgba(250,248,255,0.95) 100%);
  }
  .wgc:hover {
    transform: none;
  }
  .wgc:active {
    transform: scale(0.98);
    transition: transform 0.15s;
  }
  /* ホバー前提のアニメを無効化 */
  .wgc:hover .wgc-img img { transform: none; }
  .skill-chip:hover { transform: none; }
  .testi-card:hover { transform: none; }
  .price-card:hover { transform: none; }
}

/* iOS Safari: heroセクションのvh問題を修正 */
@supports (min-height: 100svh) {
  .hero { min-height: 100svh; }
}

/* モーダルのiOSスクロール対応 */
.modal-card {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
