/* ========================================
   Design Tokens
   ======================================== */
:root {
  --bg:      #F8F7F3;
  --surface: #FFFFFF;
  --surface-soft: #F1F5F9;
  --border:  rgba(31,41,55,0.10);
  --text:    #263241;
  --sub:     #667085;
  --muted:   #94A3B8;
  --accent:  #2563EB;
  --accent-dark: #1D4ED8;
  --accent-soft: rgba(37,99,235,0.08);
  --shadow-sm: 0 8px 24px rgba(15,23,42,0.06);
  --shadow-md: 0 18px 42px rgba(15,23,42,0.10);
  --glow-sm: var(--shadow-sm);
  --glow-md: var(--shadow-md);
  --radius:  8px;
  --ease:    0.2s ease;
  --ease-s:  0.35s ease;
}

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

body {
  font-family: "BIZ UDPGothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 420px);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-style: normal;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease), opacity var(--ease);
}
a:hover { color: var(--accent-dark); }

input,
textarea,
select {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

img { max-width: 100%; height: auto; vertical-align: bottom; border-style: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface-soft); }
::-webkit-scrollbar-thumb { background: rgba(37,99,235,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(37,99,235,0.45); }

/* ========================================
   Utilities
   ======================================== */
.pc-only { display: block; }
.sp-only { display: none; }

/* ========================================
   Layout
   ======================================== */
.wrapper { padding-top: 72px; }

.section { padding: clamp(88px, 9vw, 128px) 0; }

.section:nth-of-type(odd) { background-color: rgba(255,255,255,0.68); }

.section + .section { border-top: 1px solid rgba(31,41,55,0.06); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ========================================
   Section Title
   ======================================== */
.title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  text-align: center;
  margin-bottom: clamp(44px, 6vw, 72px);
  padding-bottom: 22px;
  position: relative;
}

.title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--sub);
  margin-bottom: 32px;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 18px rgba(15,23,42,0.04);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
}

.header-logo { font-size: 17px; font-weight: 700; letter-spacing: 0.05em; }
.header-logo a { color: var(--text); }
.header-logo a:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(15,23,42,0.08);
  cursor: pointer;
}

.menu-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--ease), opacity var(--ease);
}

.menu-toggle.is-open .menu-toggle-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle-line:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.gnav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gnav-item a {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sub);
  padding: 4px 0;
  transition: color var(--ease);
}

.gnav-item a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--ease);
}

.gnav-item a:hover { color: var(--text); }
.gnav-item a:hover::after { width: 100%; }

/* ========================================
   Hero (MV)
   ======================================== */
.mv {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.86) 0%, rgba(248,247,243,0.94) 100%), url('../img/osaka-ai-hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mv::before {
  content: '';
  position: absolute;
  left: clamp(24px, 7vw, 96px);
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, rgba(37,99,235,0), rgba(37,99,235,0.32), rgba(37,99,235,0));
  opacity: 0.8;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mv-container {
  position: relative;
  z-index: 1;
  padding: 0 48px;
  max-width: 880px;
}

.mv-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 22px;
  padding: 6px 16px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}

.mv-title {
  font-size: clamp(42px, 6.2vw, 72px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.mv-title img {
  display: block;
  margin: 0 auto 40px;
  border-radius: 50%;
  border: 2px solid rgba(37,99,235,0.18);
  box-shadow: var(--shadow-sm), 0 0 0 8px rgba(37,99,235,0.04);
  object-fit: cover;
}

.mv-subtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--accent);
  margin-bottom: 28px;
}

.mv-text {
  max-width: 620px;
  margin: 0 auto 16px;
  font-size: 15px;
  line-height: 2;
  color: var(--sub);
}

.mv-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 52px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
  animation: cta-pulse 3s ease-in-out infinite;
}

.mv-cta:hover {
  color: #FFFFFF;
  transform: translateY(-3px);
  background: var(--accent-dark);
  box-shadow: var(--shadow-md);
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50%       { box-shadow: 0 14px 34px rgba(37,99,235,0.18); }
}

/* ========================================
   Works
   ======================================== */
.works-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.works-item {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.works-item:hover {
  border-color: rgba(37,99,235,0.24);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  opacity: 1;
}

.works-img { overflow: hidden; background: var(--surface-soft); }

.works-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: none;
  display: block;
  transition: transform var(--ease-s);
}

.works-item:hover .works-img img { transform: scale(1.05); }

.works-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  padding: 16px 18px 0;
  margin: 0;
}

.works-info {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--sub);
  padding: 5px 18px 18px;
  margin: 0;
}

/* ========================================
   Service
   ======================================== */
.service-intro {
  max-width: 900px;
  margin: 0 auto 54px;
  text-align: center;
}

.service-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 6px 14px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(37,99,235,0.16);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.service-heading {
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.service-text {
  max-width: 760px;
  margin: 0 auto;
  color: var(--sub);
  font-size: 15px;
  line-height: 2;
}

.service-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.service-button,
.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
}

.service-button {
  color: #FFFFFF;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.service-button:hover {
  color: #FFFFFF;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  opacity: 1;
}

.service-link {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.service-link:hover { color: var(--accent); }

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-item {
  min-height: 236px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 34px;
  letter-spacing: 0.08em;
}

.service-item h3 {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 16px;
  line-height: 1.55;
}

.service-item p {
  color: var(--sub);
  font-size: 13px;
  line-height: 1.9;
}

.service-page-hero {
  padding: 104px 0 80px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface-soft) 100%);
  border-bottom: 1px solid var(--border);
}

.service-page-hero.local-ai-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(8,15,30,0.86) 0%, rgba(8,15,30,0.70) 42%, rgba(8,15,30,0.30) 100%),
    linear-gradient(180deg, rgba(8,15,30,0.22) 0%, rgba(8,15,30,0.72) 100%),
    url("../img/higashiyodogawa-ai-hero.webp");
  background-size: cover;
  background-position: center;
  border-bottom: none;
}

.service-page-hero.local-ai-hero .container {
  position: relative;
  z-index: 1;
}

.local-ai-hero .service-kicker {
  color: #DBEAFE;
  background: rgba(37,99,235,0.22);
  border-color: rgba(191,219,254,0.24);
}

.local-ai-hero .service-page-title {
  color: #FFFFFF;
  text-shadow: 0 18px 48px rgba(0,0,0,0.35);
}

.local-ai-hero .service-page-lead {
  color: rgba(255,255,255,0.86);
  text-shadow: 0 10px 28px rgba(0,0,0,0.32);
}

.local-ai-hero .service-link {
  color: #E5E7EB;
  border-color: rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.08);
}

.service-page-hero .container {
  max-width: 960px;
}

.service-page-title {
  color: var(--text);
  font-size: 42px;
  line-height: 1.35;
  margin-bottom: 24px;
}

.service-page-lead {
  color: var(--sub);
  font-size: 16px;
  line-height: 1.9;
  max-width: 760px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  color: var(--text);
  font-size: 17px;
  margin-bottom: 12px;
}

.service-card p,
.service-card li {
  color: var(--sub);
  font-size: 13px;
  line-height: 1.8;
}

.service-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.price-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-item {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.price-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.price-value {
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.price-note {
  color: var(--sub);
  font-size: 12px;
  line-height: 1.8;
}

/* ========================================
   Logo hover (Design section)
   ======================================== */
.effect-mono {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.92);
  transition: filter var(--ease);
  display: block;
}

.effect-mono:hover { filter: grayscale(0%) brightness(1); }

/* ========================================
   Skill
   ======================================== */
.skill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px 64px;
  max-width: 960px;
  margin: 0 auto;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(31,41,55,0.08);
}

.skill-img { flex-shrink: 0; width: 44px; height: 44px; }

.skill-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.95);
}

.skill-body { flex: 1; }

.skill-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--text);
}

.skill-text { font-size: 13px; line-height: 1.8; color: var(--sub); }

/* ========================================
   About
   ======================================== */
.profile {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  max-width: 880px;
  margin: 0 auto;
}

.profile-img { flex-shrink: 0; width: 160px; }

.profile-img img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(37,99,235,0.16);
  box-shadow: var(--shadow-sm);
}

.profile-body { flex: 1; }

.profile-body p { font-size: 14px; line-height: 2; color: var(--sub); }

.profile-body p:not(:last-child) { margin-bottom: 24px; }

/* ========================================
   Contact
   ======================================== */
.contact { text-align: center; }

.contact-list {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-item a {
  display: inline-block;
  padding: 18px 64px;
  background: var(--accent);
  border: none;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}

.contact-item a:hover {
  color: #FFFFFF;
  transform: translateY(-3px);
  background: var(--accent-dark);
  box-shadow: var(--shadow-md);
}

.contact-item-form a {
  background: #0F172A;
  box-shadow: 0 14px 32px rgba(15,23,42,0.18);
}

.contact-item-form a:hover {
  background: #111827;
}

/* ========================================
   Page Top
   ======================================== */
.page-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
  background: var(--surface);
  border-top: 1px solid var(--border);
  transition: background var(--ease);
}

.page-top:hover { background: var(--surface-soft); }

.page-top-icon {
  color: var(--sub);
  font-size: 20px;
  line-height: 1;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 32px;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
}

.copyright { font-size: 11px; text-align: center; letter-spacing: 0.08em; color: var(--sub); }

/* ========================================
   Works page (Template)
   ======================================== */
.article { padding: 80px 0; }

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

.article-title { margin-bottom: 32px; text-align: center; }

.article-body { max-width: 720px; margin: 0 auto 80px; }

.article-body h3 {
  position: relative;
  font-size: 17px;
  margin-bottom: 8px;
  padding-left: 1em;
  color: var(--text);
}

.article-body h3:not(:first-child) { margin-top: 48px; }

.article-body h3::before {
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  content: '';
  border-radius: 1px;
  background: var(--accent);
}

.article-body p { font-size: 15px; line-height: 1.85; color: var(--sub); margin-bottom: 28px; }

.home-link { text-align: center; }

/* ========================================
   Rich Styling for Promotion Pages
   ======================================== */
/* Gradient Text */
.text-gradient {
  color: var(--accent);
  display: inline-block;
  font-weight: 800;
}

/* Glow Circle Background Elements */
.glow-bg-container {
  display: none;
}

.glow-circle {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(148,163,184,0.04) 50%, rgba(255,255,255,0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: float-slow 15s ease-in-out infinite alternate;
}

.glow-circle-1 { top: 15%; left: -150px; }
.glow-circle-2 { bottom: 25%; right: -150px; animation-delay: -7s; }
.glow-circle-3 { top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, rgba(148,163,184,0.04) 60%, rgba(255,255,255,0) 80%); }

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.15); }
}

/* Glassmorphism Card */
.glass-card {
  position: relative;
  padding: 36px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-md);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Interactive Price Calculator UI */
.calc-container {
  max-width: 800px;
  margin: 48px auto;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.calc-title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 28px;
  color: var(--text);
  font-weight: 700;
}

.calc-option-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.calc-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
}

.calc-option:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: var(--surface-soft);
}

.calc-option:active {
  transform: scale(0.99);
}

.calc-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 10px 24px rgba(37,99,235,0.08);
}

.calc-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  background: transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.calc-option.selected .calc-checkbox {
  background: var(--accent);
  border-color: var(--accent);
}

.calc-option.selected .calc-checkbox::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 14px;
  font-weight: bold;
}

.calc-label-wrap {
  display: flex;
  align-items: center;
  flex: 1;
}

.calc-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.calc-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.calc-result {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.calc-result-label {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.calc-result-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  text-shadow: none;
}

.calc-result-price span {
  font-size: 16px;
  color: var(--sub);
  margin-left: 4px;
  font-weight: 400;
}

/* Feature Badge */
.feature-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.16);
  color: var(--accent);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-badge-blue {
  background: var(--accent-soft);
  border: 1px solid rgba(37,99,235,0.16);
  color: var(--accent);
}

/* Neon Button */
.neon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.neon-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: var(--accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  transition: opacity 0.3s var(--ease);
}

.neon-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  z-index: -2;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.neon-button:hover {
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.neon-button:hover::after {
  opacity: 1;
}

.neon-button:hover::before {
  opacity: 0;
}

/* Compare Table (AI vs Agency) */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th, 
.compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td.highlight {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 700;
  border-left: 2px solid var(--accent);
}

/* Local Info box (GEO target) */
.local-info-box {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 48px;
  box-shadow: var(--shadow-sm);
}

.local-map {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 8px;
  filter: grayscale(60%) contrast(95%);
  margin-top: 24px;
  opacity: 0.8;
  transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
}

.local-map:hover {
  filter: none;
  opacity: 1;
}

/* ========================================
   Responsive (767px)
   ======================================== */
@media screen and (max-width: 767px) {
  body { font-size: 14px; }
  .pc-only { display: none; }
  .sp-only { display: block; }
  .wrapper { padding-top: 57px; }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  .header .container { padding: 15px 20px; }
  .header-logo { font-size: 14px; }
  .menu-toggle {
    position: relative;
    z-index: 102;
    display: block;
  }
  .gnav {
    display: none;
    position: fixed;
    top: 72px;
    left: 20px;
    right: 20px;
    z-index: 101;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(15,23,42,0.12);
  }
  .gnav.is-open { display: block; }
  .gnav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 0;
  }
  .gnav-item a {
    display: block;
    padding: 15px 18px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .gnav-item a::after { display: none; }

.mv {
    min-height: calc(100dvh - 57px);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.86) 0%, rgba(248,247,243,0.94) 100%), url('../img/sp_mv.webp');
  }
.mv::before { display: none; }
.mv-container { padding: 0 22px; max-width: 520px; }
.mv-kicker { margin-bottom: 18px; font-size: 10px; letter-spacing: 0.08em; }
.mv-title { font-size: clamp(30px, 9vw, 42px); line-height: 1.24; margin-bottom: 14px; }
.mv-title img { margin-bottom: 28px; }
.mv-subtitle { font-size: 9px; margin-bottom: 24px; letter-spacing: 0.18em; }
.mv-text { font-size: 13px; line-height: 1.9; }

.title { font-size: 20px; margin-bottom: 40px; padding-bottom: 16px; }
  .lead { font-size: 14px; line-height: 1.75; margin-bottom: 24px; }

.works-list { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .works-name { font-size: 11px; padding: 10px 12px 0; }
  .works-info { padding: 3px 12px 10px; }

.service-intro { margin-bottom: 40px; }
.service-heading { font-size: 22px; line-height: 1.55; }
.service-text { font-size: 14px; line-height: 1.9; }
  .service-actions { align-items: stretch; gap: 12px; }
  .service-button,
  .service-link { width: 100%; }
  .service-list,
  .service-grid,
  .price-list { grid-template-columns: 1fr; }
  .service-item { min-height: 0; padding: 22px; }
  .service-page-hero { padding: 72px 0 56px; }
  .service-page-title { font-size: 28px; }
  .service-page-lead { font-size: 14px; }

  .skill-list { grid-template-columns: 1fr; gap: 32px; }

  .profile { flex-direction: column; align-items: center; gap: 24px; }
  .profile-img { width: 120px; }
  .profile-img img { width: 120px; height: 120px; }
  .profile-body p { font-size: 14px; }
  .profile-body p:not(:last-child) { margin-bottom: 20px; }

  .mv-cta { padding: 14px 36px; font-size: 13px; }
  .contact-item a { padding: 14px 36px; font-size: 13px; }
  .footer { padding: 24px; }

  /* Added for promotion pages */
  .calc-container { padding: 20px; }
  .calc-option { padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .calc-price { align-self: flex-end; }
  .calc-result-price { font-size: 30px; }
  .compare-table th, .compare-table td { padding: 12px 10px; font-size: 12px; }
  .glass-card { padding: 24px; }
  .neon-button { width: 100%; padding: 14px 20px; }
  .local-info-box { padding: 24px; }
  .local-map { height: 250px; }

  .article { padding: 48px 0; }
  .article-body h3 { font-size: 15px; }
  .article-body h3:not(:first-child) { margin-top: 32px; }
  .article-body p { font-size: 14px; margin-bottom: 20px; }
}

/* ===================================================
   3D Parallax — Hero & Works card layered depth
   =================================================== */
.mv-container {
  perspective: 1200px;
  transform-style: preserve-3d;
}
.mv-container > * {
  transform-style: preserve-3d;
  will-change: transform;
}

.works-item {
  transform-style: preserve-3d;
  perspective: 900px;
}
.works-item .works-img,
.works-item .works-name,
.works-item .works-info {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .mv-container > *,
  .works-item .works-img,
  .works-item .works-name,
  .works-item .works-info {
    transform: none !important;
  }
}
