@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Noto+Sans+JP:wght@100..900&display=swap');

/* ========================================================
   S Q U A R E S (squares.jp) Design Prototype Stylesheet
   Refined with Official Hexagonal Isometric S Branding
   Style: Neumorphism x Glassmorphism (Futuristic Modern Tech)
   Colors: White Base, Sleek Gray, Electric Orange Accent (#FF5E1E)
   Typography: Pure Sans-serif (Outfit + Noto Sans JP)
   ======================================================== */

:root {
  /* Color Palette */
  --bg-body: #F4F6F9;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.78);
  --border-glass: rgba(255, 255, 255, 0.9);
  
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Accent Neon Orange */
  --accent: #FF5E1E;
  --accent-light: #FF7A3D;
  --accent-dark: #E0480C;
  --accent-glow: 0 10px 28px rgba(255, 94, 30, 0.36);
  --accent-soft: rgba(255, 94, 30, 0.1);

  /* Shadows - Neumorphism & Soft Depth */
  --shadow-neumorph: 
    12px 14px 28px rgba(166, 178, 196, 0.22),
    -10px -10px 24px rgba(255, 255, 255, 0.95);
  --shadow-neumorph-hover: 
    16px 20px 36px rgba(166, 178, 196, 0.32),
    -12px -12px 28px rgba(255, 255, 255, 1);
  --shadow-inset: 
    inset 4px 4px 10px rgba(166, 178, 196, 0.25),
    inset -4px -4px 10px rgba(255, 255, 255, 0.95);
  --shadow-glass: 
    0 20px 40px rgba(15, 23, 42, 0.05);

  /* Typography - Clean Modern Tech Sans */
  --font-main: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-main) !important;
  background-color: var(--bg-body);
  color: var(--gray-800);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: optimizeLegibility !important;
}

/* 背景・正方形の方眼紙（グラフペーパー）グリッド */
.bg-iso-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  will-change: background-position;
}

/* スクロールプログレスバー */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #FF9800);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ========================================================
   Header & Logo
   ======================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 20px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 12px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
}

/* WordPress 管理バー（ログイン中）の高さ考慮 */
body.admin-bar .header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
  transform: rotate(5deg) scale(1.05);
}

.logo-svg,
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-type-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.logo-type {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-900);
  letter-spacing: 0.35em;
}

.logo-domain {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

/* ========================================================
   Buttons
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 14px;
  padding: 10px 24px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: #FFFFFF;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-glow {
  box-shadow: var(--accent-glow);
}

.btn-glow:hover {
  box-shadow: 0 14px 34px rgba(255, 94, 30, 0.5);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
  box-shadow: 6px 6px 16px rgba(166, 178, 196, 0.15);
}

.btn-secondary:hover {
  border-color: var(--gray-300);
  transform: translateY(-2px);
  box-shadow: 8px 10px 20px rgba(166, 178, 196, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--gray-800);
  border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-xl {
  padding: 18px 44px;
  font-size: 18px;
}

/* ========================================================
   Sections Common
   ======================================================== */
section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  background: var(--accent-soft);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: 38px;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-desc {
  font-size: 16px;
  color: var(--gray-500);
}

@media (min-width: 820px) {
  .section-desc {
    white-space: nowrap;
  }
}

/* ========================================================
   Hero Section
   ======================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
}

/* ヒーロー背景画像・オーバーレイ */
.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.42;
  filter: contrast(1.05) brightness(1.03);
}

.hero-backdrop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0.88) 45%, rgba(248, 250, 252, 0.42) 80%, rgba(248, 250, 252, 0.65) 100%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, transparent 20%, transparent 75%, rgba(248, 250, 252, 1) 100%);
}

.hero-container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  margin-bottom: 36px;
  width: 100%;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gray-700);
  box-shadow: 4px 4px 14px rgba(166, 178, 196, 0.18);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero-catchphrase {
  font-size: 62px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.highlight-text {
  font-weight: inherit;
  background: linear-gradient(135deg, var(--gray-900) 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 660px;
}

.hero-subtext-lead {
  display: block;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.hero-subtext-lead .tablet-break {
  display: none;
}

.hero-subtext-desc {
  display: block;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background-color: var(--gray-200);
}

/* 3D Isometric S Visual Container */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cube-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  perspective: 1200px;
}

.visual-glass-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 36px;
  box-shadow: 
    20px 28px 50px rgba(166, 178, 196, 0.28),
    -16px -16px 36px rgba(255, 255, 255, 0.95);
  padding: 16px;
  transition: transform 0.2s ease-out;
}

.visual-img-container {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.visual-img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.visual-glass-card:hover .visual-img {
  transform: scale(1.05);
}

.visual-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(255, 255, 255, 0.4) 100%);
  pointer-events: none;
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.badge-top {
  top: -12px;
  left: -12px;
  animation: floatSub 5s ease-in-out infinite alternate;
}

.badge-bottom {
  bottom: -12px;
  right: -12px;
  animation: floatSub 5s ease-in-out infinite alternate-reverse;
}

.badge-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-800);
}

.badge-icon {
  color: var(--accent);
}

@keyframes floatSub {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Scroll Down Indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid var(--gray-400);
  border-radius: 14px;
  position: relative;
}

.mouse-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

.scroll-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gray-400);
}

/* ========================================================
   Core Approach Section (Replaces Philosophy)
   ======================================================== */
.approach-section {
  padding: 100px 0;
}

.approach-card {
  padding: 72px 56px;
  border-radius: 36px;
}

.approach-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 56px;
}

.approach-title {
  font-size: 38px;
  font-weight: 500;
  color: var(--gray-900);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 18px;
}

.approach-subtitle {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.8;
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.approach-col {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.approach-col-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}

.approach-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1;
}

.approach-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.approach-item-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.approach-item-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 24px;
  flex-grow: 1;
}

.approach-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.approach-tags span {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ========================================================
   Glass Panel & Neumorphism Cards
   ======================================================== */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}

.neumorphic-card {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: var(--shadow-neumorph);
  transition: var(--transition);
}

.neumorphic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-neumorph-hover);
}

.neumorphic-inset {
  background: #F1F5F9;
  border-radius: 16px;
  box-shadow: var(--shadow-inset);
}

/* ========================================================
   Services Section
   ======================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
}

.card-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.card-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 
    6px 8px 18px rgba(166, 178, 196, 0.16),
    -4px -4px 10px rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  transition: all 0.3s ease;
}

.card-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.service-card:hover .card-icon-box {
  border-color: var(--gray-400);
  box-shadow: 
    8px 12px 24px rgba(15, 23, 42, 0.12),
    -4px -4px 12px rgba(255, 255, 255, 1);
  transform: translateY(-3px);
}

.service-card:hover .card-icon-img {
  transform: scale(1.1);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin-bottom: 8px;
  min-height: 96px;
}

/* IT業界専門バッジ */
.it-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(255, 94, 30, 0.08);
  border: 1px solid rgba(255, 94, 30, 0.32);
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(255, 94, 30, 0.08);
  transition: all 0.25s ease;
}

.service-card:hover .it-domain-badge {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255, 94, 30, 0.3);
}

.it-domain-badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 6px var(--accent);
  transition: background 0.25s ease;
}

.service-card:hover .it-domain-badge .badge-dot {
  background: #FFFFFF;
  box-shadow: 0 0 6px #FFFFFF;
}

.card-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 24px;
}

.card-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 24px;
  min-height: 215px;
}

.card-features {
  list-style: none;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 24px;
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
  min-height: 225px;
}

.card-features li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

.card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  transition: var(--transition);
  margin-top: auto;
}

@media (max-width: 639px) {
  .card-title,
  .card-subtitle,
  .card-desc,
  .card-features {
    min-height: auto;
  }
}

.card-link .arrow {
  transition: transform 0.2s ease;
}

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

.card-link:hover .arrow {
  transform: translateX(4px);
}

/* ========================================================
   Products Section
   ======================================================== */
.product-feature-panel {
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  border-radius: 32px;
}

.product-badge {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.product-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.product-tagline {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.product-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 28px;
}

.product-specs {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
}

.spec-label {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 600;
}

.product-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.product-cta .btn {
  display: inline-flex;
  white-space: nowrap;
}

/* Mockup Window */
.mockup-window {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 
    16px 20px 40px rgba(166, 178, 196, 0.3),
    -10px -10px 24px rgba(255, 255, 255, 0.9);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.window-header {
  background: #F8FAFC;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.window-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.window-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--gray-400);
  font-family: monospace;
}

.window-screenshot-wrap {
  overflow: hidden;
  background: #F8FAFC;
  line-height: 0;
}

.product-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mockup-window:hover .product-screenshot-img {
  transform: scale(1.015);
}

.window-body {
  padding: 24px;
}

.mockup-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.mockup-kpi {
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.mockup-kpi .label {
  font-size: 12px;
  color: var(--gray-500);
}

.mockup-kpi .val {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.mockup-graph-area {
  padding: 20px;
  height: 140px;
  display: flex;
  align-items: flex-end;
}

.graph-bars {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.graph-bars .bar {
  flex-grow: 1;
  background: var(--gray-300);
  border-radius: 6px;
  transition: height 1s ease;
}

.graph-bars .bar.active {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
  box-shadow: 0 4px 14px rgba(255, 94, 30, 0.4);
}

/* ========================================================
   Strengths Section
   ======================================================== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.strength-card {
  padding: 44px 32px;
  position: relative;
  overflow: hidden;
}

.strength-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 18px;
  display: block;
}

.strength-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
  line-height: 1.4;
}

.strength-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ========================================================
   CTA Section
   ======================================================== */
.cta-card {
  padding: 72px 48px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 36px;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 94, 30, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: 38px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-note {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--gray-500);
}

/* ========================================================
   Footer
   ======================================================== */
.footer {
  background: #FFFFFF;
  border-top: 1px solid var(--gray-200);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 14px;
  margin-bottom: 0;
}

/* フッター最下部コピーライト（中央揃え・PC/SP共通） */
.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  display: inline-block;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  font-size: 14px;
  color: var(--gray-500);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

/* ========================================================
   Scroll Animations
   ======================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ========================================================
   Mobile Navigation & Drawer Styles
   ======================================================== */
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 1px 2px 5px rgba(166, 178, 196, 0.12);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  transition: var(--transition);
  z-index: 950;
  flex-shrink: 0;
}

.menu-toggle:hover {
  border-color: var(--accent);
}

.menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.menu-toggle.is-active .menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active .menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-active .menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ドロワーの背景オーバーレイ */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 915;
}

body.drawer-open .drawer-backdrop {
  display: block;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
  z-index: 920;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-sizing: border-box;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: #F8FAFC;
}

.drawer-brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gray-800);
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.drawer-inner {
  padding: 20px 20px 32px;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.drawer-nav-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--gray-800);
  background: transparent;
  transition: var(--transition);
}

.drawer-nav-link span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.drawer-nav-link small {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 600;
}

.drawer-nav-link:hover,
.drawer-nav-link:active {
  background: rgba(255, 94, 30, 0.08);
  color: var(--accent);
}

.drawer-nav-link:hover small,
.drawer-nav-link:active small {
  color: var(--accent);
}

.drawer-footer {
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.drawer-cta-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  box-sizing: border-box;
  text-align: center;
}

/* スクロールマージン（固定ヘッダーでコンテンツが隠れるのを防ぐ） */
section[id],
footer[id] {
  scroll-margin-top: 76px;
}

/* ========================================================
   Responsive Breakpoints
   ======================================================== */

/* 1. タブレット対応 (max-width: 992px) */
@media (max-width: 992px) {
  /* ヘッダーの横並び徹底と高さスリム化 */
  .header {
    padding: 12px 0;
  }
  .header.scrolled {
    padding: 10px 0;
  }
  .header-inner {
    padding: 0 16px;
  }
  .nav {
    display: none !important;
  }
  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
  .header-cta-btn {
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
  }
  .menu-toggle {
    display: flex;
  }
  .mobile-drawer {
    display: block;
  }

  /* ヒーローセクション */
  .hero-container {
    justify-content: center;
    text-align: center;
  }
  .hero-backdrop-overlay {
    background: rgba(248, 250, 252, 0.92);
  }
  .hero-catchphrase {
    font-size: 40px;
    line-height: 1.25;
  }
  .hero-subtext {
    font-size: 14.5px;
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto 30px;
  }
  .hero-buttons {
    justify-content: center;
    gap: 12px;
  }
  .hero-stats {
    justify-content: center;
    margin-top: 32px;
  }

  /* Philosophy (Approach) */
  .approach-card {
    padding: 40px 28px;
  }
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .approach-col {
    padding: 24px 20px;
  }

  /* サービス (6領域) */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .service-card {
    padding: 32px 24px;
  }
  .card-title {
    font-size: 20px;
    min-height: auto;
    margin-bottom: 6px;
  }
  .card-icon-box {
    margin: 0 auto 16px;
  }

  /* プロダクト */
  .product-feature-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 24px;
  }

  /* 選ばれる理由 */
  .strengths-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .strength-card {
    padding: 32px 24px;
  }

  /* お問い合わせフォーム */
  .cta-card {
    padding: 44px 24px;
  }
  .cta-checkbox-grid {
    grid-template-columns: 1fr;
  }
  .cta-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* フッター */
  .footer-container {
    flex-direction: column;
    gap: 32px;
  }
  .footer-links {
    flex-direction: column;
    gap: 24px;
  }
}

/* 2. スマートフォン対応 (max-width: 640px) */
@media (max-width: 640px) {
  .hide-sp {
    display: none !important;
  }

  /* グローバル余白 */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ヘッダー */
  .header {
    padding: 10px 0;
  }
  .header.scrolled {
    padding: 8px 0;
  }
  .header-inner {
    padding: 0 14px;
  }
  .logo-mark {
    width: 30px;
    height: 30px;
  }
  .logo-type {
    font-size: 13px;
    letter-spacing: 0.22em;
  }
  .logo-domain {
    font-size: 11px;
  }
  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .header-cta-btn {
    padding: 6px 11px;
    font-size: 11px;
    border-radius: 9999px;
    white-space: nowrap;
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  /* ヒーローセクション */
  .hero-section {
    padding: 95px 0 44px;
    min-height: auto;
  }
  .hero-badge {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 14px;
  }
  .hero-catchphrase {
    font-size: 34px;
    line-height: 1.22;
    margin-bottom: 16px;
  }
  .hero-subtext {
    font-size: 15px;
    line-height: 1.8;
    text-align: left;
    margin-bottom: 26px;
  }
  .hero-subtext-lead {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 14px;
    color: #0F172A;
  }
  .hero-subtext-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
    padding: 12px 18px;
    font-size: 14px;
  }

  /* ヒーロースタッツ（3つの実績）- 縦積みカード化で文字潰れを根本解消 */
  .hero-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 340px;
    margin: 28px auto 0;
  }
  .stat-divider {
    display: none;
  }
  .stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 16px;
    text-align: left;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    box-shadow: 2px 3px 8px rgba(166, 178, 196, 0.1);
  }
  .stat-number {
    font-size: 22px;
    min-width: 72px;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
  }
  .stat-unit {
    font-size: 12px !important;
  }
  .stat-label {
    font-size: 11.5px;
    color: var(--gray-700);
    margin-top: 0;
    line-height: 1.35;
  }

  .scroll-down-indicator {
    display: none;
  }

  /* NEWSセクション */
  .news-section {
    padding: 16px 0;
  }
  .news-card {
    padding: 16px 14px;
  }

  /* セクション見出し共通 */
  .section-tag {
    font-size: 10px;
    padding: 3px 8px;
    margin-bottom: 8px;
  }
  .section-title {
    font-size: 21px;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .section-desc {
    font-size: 12.5px;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  /* Philosophy (Approach) */
  .approach-card {
    padding: 24px 14px;
    border-radius: 16px;
  }
  .approach-title {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 12px;
    text-align: left;
  }
  .approach-desc {
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 20px;
  }
  .approach-col {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .approach-item-title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .approach-item-desc {
    font-size: 14.5px;
    line-height: 1.75;
  }
  .approach-tags span {
    font-size: 11px;
    padding: 3px 8px;
  }

  /* サービス (6領域) */
  .services-section {
    padding: 36px 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin: 0 auto 12px;
  }
  .card-icon-img {
    width: 28px;
    height: 28px;
  }
  .card-code {
    font-size: 10px;
    margin-bottom: 4px;
  }
  .card-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 6px;
    text-align: left;
  }
  .card-subtitle {
    font-size: 13px;
    margin-bottom: 12px;
    text-align: left;
  }
  .card-desc {
    font-size: 14.5px;
    line-height: 1.75;
    margin-bottom: 16px;
    text-align: left;
  }
  .card-features {
    font-size: 13.5px;
    line-height: 1.65;
    padding-left: 18px;
    margin-bottom: 16px;
    text-align: left;
  }
  .card-features li {
    margin-bottom: 8px;
  }
  .card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 94, 30, 0.08);
    border: 1px solid rgba(255, 94, 30, 0.25);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    box-sizing: border-box;
    text-align: center;
  }

  /* 自社開発プロダクト - スペックを1列にして折り返し解消 */
  .product-feature-panel {
    padding: 22px 14px;
    border-radius: 16px;
    gap: 20px;
  }
  .product-title {
    font-size: 19px;
    margin-bottom: 6px;
  }
  .product-tagline {
    font-size: 13.5px;
    margin-bottom: 10px;
  }
  .product-desc {
    font-size: 14.5px;
    line-height: 1.75;
    margin-bottom: 18px;
  }
  .product-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }
  .product-specs div {
    font-size: 13.5px !important;
  }
  .spec-item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--gray-200);
  }
  .spec-val {
    font-size: 16px;
  }
  .spec-label {
    font-size: 11.5px;
  }
  .product-cta {
    flex-direction: column;
    width: 100%;
  }
  .product-cta .btn {
    width: 100%;
    box-sizing: border-box;
  }

  /* 選ばれる理由 */
  .strength-card {
    padding: 22px 16px;
    border-radius: 16px;
  }
  .strength-number {
    font-size: 30px;
    margin-bottom: 8px;
  }
  .strength-title {
    font-size: 17px;
    margin-bottom: 8px;
  }
  .strength-desc {
    font-size: 14.5px;
    line-height: 1.75;
  }

  /* お問い合わせ (CTA) フォーム */
  .cta-card {
    padding: 30px 14px;
    border-radius: 18px;
  }
  /* 青枠: 文字サイズを少し下げて横幅に綺麗に収める (20px -> 17px) */
  .cta-title {
    font-size: 17px !important;
    line-height: 1.45 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 12px;
  }
  .cta-desc {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
  }
  .cta-checkbox-item {
    padding: 10px 12px;
    border-radius: 10px;
    gap: 8px;
  }
  .cta-checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
  }
  .cta-checkbox-text {
    font-size: 12px;
    line-height: 1.4;
  }
  /* 入力欄（iOSズーム防止のため16pxを保証） */
  .cta-input,
  .cta-select,
  .cta-textarea {
    font-size: 16px !important;
    padding: 11px 12px;
    border-radius: 10px;
  }
  .cta-privacy-agree {
    margin-top: 14px;
  }
  .cta-privacy-label {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
    max-width: 340px;
    margin: 0 auto;
  }
  .cta-privacy-box {
    margin-top: 2px;
  }
  .cta-actions {
    margin-top: 16px;
  }
  .cta-actions .btn {
    width: 100%;
    max-width: 100%;
    height: 48px;
    font-size: 15px;
  }

  /* フッター */
  .footer {
    padding: 36px 0 24px;
  }
  .footer-container {
    gap: 24px;
    margin-bottom: 28px;
  }
  .footer-col {
    max-width: 100% !important;
  }
  .footer-col h4 {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .footer-col ul li a {
    font-size: 13px;
    display: inline-block;
    padding: 4px 0;
  }

  /* フッター最下部コピーライト（スマホ版中央揃え＆ボトムドック考慮の余白） */
  .footer-bottom {
    padding-top: 20px;
    padding-bottom: 72px;
    text-align: center;
    justify-content: center;
  }
  .footer-bottom .copyright {
    font-size: 11px;
    text-align: center;
  }

  /* スマホでのフローティングウィジェット非表示（閲覧・入力の邪魔を防ぐ） */
  .variant-switcher {
    display: none !important;
  }
}

/* ========================================================
   Brand Vocabulary & Decal Styles
   (戦略・マーケティング、システムアーキテクチャ、ハイブリッドDX)
   ======================================================== */

/* テキスト表示 (Default Brand Decals) */
.t-strat {
  display: inline;
}
.t-arch, .t-hybrid {
  display: none;
}
/* レール・タグ・目地の表示 (Clean Base以外でアクティブ) */
.airframe-rail {
  opacity: 1;
}
.header-avionics-tag {
  display: flex;
}
.section-v-rail {
  display: block;
}
.panel-seam-top {
  display: flex;
}

/* ========================================================
   共通の美しいパネルライン ＆ テック節目構造
   ======================================================== */

/* 1. ヒーロービジュアル - 精密パネルフレーム */
.visual-glass-card {
  border-radius: 18px 4px 18px 4px;
  border: 1.5px solid var(--gray-300);
  background: #FFFFFF;
  box-shadow: 
    16px 20px 40px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px #FFFFFF,
    inset 3px 3px 8px rgba(241, 245, 249, 0.6);
  position: relative;
  overflow: visible;
}

/* 側面の精密ミリ目盛りスケール */
.visual-glass-card::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 30px;
  bottom: 30px;
  width: 4px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--gray-400) 0px,
    var(--gray-400) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: 0.7;
}

/* ヒーローメトリクス - 計器スリット */
.stat-item {
  position: relative;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.stat-divider {
  display: none;
}

/* 2. Core Approach - モジュールカード */
.approach-col {
  border-radius: 16px 3px 16px 3px;
  border: 1px solid var(--gray-300);
  position: relative;
  transition: var(--transition);
}
.approach-col:hover {
  border-color: var(--gray-900);
  transform: translateY(-4px);
}
.approach-col::before {
  content: "+";
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: var(--accent);
}
.approach-code {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  color: var(--gray-500);
  letter-spacing: 0.12em;
}

/* 3. サービスカード - ソリューションモジュール */
.service-card {
  border-radius: 16px 3px 16px 3px;
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gray-800);
  background: #FFFFFF;
  position: relative;
  transition: var(--transition);
}
.service-card::before {
  content: "";
  position: absolute;
  top: -3px;
  right: 12px;
  width: 40px;
  height: 3px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0,
    var(--accent) 3px,
    var(--gray-900) 3px,
    var(--gray-900) 6px
  );
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
.card-code {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--gray-400);
  display: flex;
  justify-content: space-between;
}

/* 4. プロダクトパネル */
.product-feature-panel {
  border-radius: 20px 4px 20px 4px;
  border: 1.5px solid var(--gray-300);
  position: relative;
}

/* 5. 選ばれる理由 & CTA */
.strength-card {
  border-radius: 16px 3px 16px 3px;
  border: 1px solid var(--gray-300);
}
.strength-number {
  font-size: 38px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.cta-card {
  border-radius: 24px 4px 24px 4px;
  border: 1.5px solid var(--gray-300);
}



/* ========================================================
   Airframe & Aero Components (機体レール・縦書き英語・パネル節目)
   ======================================================== */

/* 1. 左右の機体ガターレール (縦書き英語・コーションマーク・データライン) */
.airframe-rail {
  position: fixed !important;
  top: 130px;
  bottom: 80px;
  width: 32px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 50;
  opacity: 1 !important;
  transition: opacity 0.5s ease;
}

.airframe-rail.rail-left {
  left: 24px;
}

.airframe-rail.rail-right {
  right: 24px;
}

.rail-tag {
  font-family: var(--font-mono, monospace);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gray-400);
  white-space: nowrap;
}

.rail-line {
  width: 1px;
  flex-grow: 1;
  max-height: 120px;
  background: linear-gradient(180deg, var(--gray-300), var(--gray-400), var(--gray-300));
  margin: 12px 0;
}

.rail-text-v {
  writing-mode: vertical-rl !important;
  transform: rotate(180deg) !important;
  font-family: var(--font-mono, monospace);
  font-size: 8px;
  letter-spacing: 0.28em;
  color: var(--gray-400);
  white-space: nowrap;
}

.rail-crosshair {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  line-height: 1;
  color: var(--accent);
  margin: 6px 0;
}

.rail-datum {
  font-family: var(--font-mono, monospace);
  font-size: 7px;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  writing-mode: vertical-rl !important;
  transform: rotate(180deg) !important;
  white-space: nowrap;
}

/* 2. セクション縦書きラベル (サイド余白) */
.section-v-rail {
  display: block !important;
  position: absolute;
  top: 40px;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gray-400);
  writing-mode: vertical-rl !important;
  transform: rotate(180deg) !important;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
.section-v-rail.left-rail {
  left: calc(50% - 640px);
}
.section-v-rail.right-rail {
  right: calc(50% - 640px);
}

/* 3. パネル節目 (Seam Line & Datum Cross) */
.panel-seam-top {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--gray-300);
  padding-bottom: 8px;
  margin-bottom: 24px;
  font-family: var(--font-mono, monospace);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--gray-400);
}
.panel-seam-top .seam-cross {
  color: var(--accent);
  font-size: 10px;
}

/* 4. ヒーロービジュアル - 精密パネルフレーム & ミリ目盛りデカール */
.visual-glass-card {
  border-radius: 18px 4px 18px 4px;
  border: 1.5px solid var(--gray-300);
  background: #FFFFFF;
  box-shadow: 
    16px 20px 40px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px #FFFFFF,
    inset 3px 3px 8px rgba(241, 245, 249, 0.6);
  position: relative;
  overflow: visible;
}

.visual-glass-card::before {
  content: "GROWTH STRATEGY // UNIT-01 [ ROI MAXIMIZATION : CONTINUOUS SCALING ]";
  position: absolute;
  top: -18px;
  left: 16px;
  font-family: var(--font-mono, monospace);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  background: #F8FAFC;
  padding: 2px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 2px;
  z-index: 5;
}

.visual-glass-card::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 30px;
  bottom: 30px;
  width: 4px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--gray-400) 0px,
    var(--gray-400) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: 0.7;
}

/* 5. ヒーロー数値ステータス & 計器スリット */
.stat-item {
  position: relative;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.stat-divider {
  display: none;
}
.stat-label::after {
  content: " // VERIFIED IMPACT";
  font-family: var(--font-mono, monospace);
  font-size: 8px;
  color: var(--accent);
}

/* 6. カード各所のSci-Fiデカール */
.approach-col {
  border-radius: 16px 3px 16px 3px;
  border: 1px solid var(--gray-300);
  position: relative;
  transition: var(--transition);
}
.approach-col:hover {
  border-color: var(--gray-900);
  transform: translateY(-4px);
}
.approach-col::before {
  content: "+";
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: var(--accent);
}
.approach-code {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  color: var(--gray-500);
  letter-spacing: 0.12em;
}

.service-card {
  border-radius: 16px 3px 16px 3px;
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gray-800);
  background: #FFFFFF;
  position: relative;
  transition: var(--transition);
}
.service-card::before {
  content: "";
  position: absolute;
  top: -3px;
  right: 12px;
  width: 40px;
  height: 3px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0,
    var(--accent) 3px,
    var(--gray-900) 3px,
    var(--gray-900) 6px
  );
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
.card-code {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--gray-400);
  display: flex;
  justify-content: space-between;
}
.card-code::after {
  content: "[ROI.SPEC]";
  color: var(--accent);
  font-size: 8px;
}

.product-feature-panel {
  border-radius: 20px 4px 20px 4px;
  border: 1.5px solid var(--gray-300);
  position: relative;
}
.product-badge::after {
  content: " // REVENUE IMPACT VERIFIED";
  font-size: 8px;
  color: var(--accent);
  font-weight: 700;
}

.strength-card {
  border-radius: 16px 3px 16px 3px;
  border: 1px solid var(--gray-300);
}
.strength-number {
  font-size: 38px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.strength-number::after {
  content: "STRAT-SPEC";
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  color: var(--accent);
}
.cta-card {
  border-radius: 24px 4px 24px 4px;
  border: 1.5px solid var(--gray-300);
}

/* 画面幅 1340px 以下ではサイドレールを非表示にして本文エリアを保護 */
@media (max-width: 1340px) {
  .airframe-rail, .section-v-rail {
    display: none !important;
  }
}

/* WordPress管理バー（ログイン中）の高さ考慮 */
body.admin-bar .airframe-rail {
  top: calc(130px + 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .airframe-rail {
    top: calc(130px + 46px);
  }
}


/* ========================================================
   CTA Contact Form (Neumorphic Inset Inputs)
   ======================================================== */
.cta-form {
  max-width: 680px;
  margin: 36px auto 0;
  text-align: left;
}

.cta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .cta-form-row {
    grid-template-columns: 1fr;
  }
}

.cta-input,
.cta-textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  background: #FFFFFF;
  box-shadow: inset 2px 2px 6px rgba(166, 178, 196, 0.18), inset -2px -2px 6px rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-800);
  outline: none;
  box-sizing: border-box;
  transition: var(--transition);
}

.cta-input:focus,
.cta-textarea:focus,
.cta-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 94, 30, 0.15);
}

.cta-select {
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  background: #FFFFFF;
  box-shadow: inset 2px 2px 6px rgba(166, 178, 196, 0.18), inset -2px -2px 6px rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-800);
  outline: none;
  box-sizing: border-box;
  transition: var(--transition);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 42px;
}

/* ご相談項目チェックボックスUI */
.cta-checkbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cta-checkbox-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
}

.cta-checkbox-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-left: 4px;
}

.cta-checkbox-clear {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
}

.cta-checkbox-clear:hover {
  color: #E11D48;
}

.cta-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.cta-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  box-shadow: 2px 3px 8px rgba(166, 178, 196, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.cta-checkbox-item:hover {
  border-color: rgba(255, 94, 30, 0.4);
  background: #FFFDFB;
  transform: translateY(-1px);
}

.cta-checkbox-item--full {
  grid-column: 1 / -1;
  background: rgba(248, 250, 252, 0.8);
}

/* 非表示にする本物のinput */
.cta-checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* カスタムチェックボックス表示 */
.cta-checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--gray-300);
  background: #FFFFFF;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.cta-checkbox-box::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #FFFFFF;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.15s ease-in-out;
}

/* チェック時のスタイル */
.cta-checkbox-item.is-checked,
.cta-checkbox-item:has(.cta-checkbox-input:checked) {
  background: rgba(255, 94, 30, 0.06);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 12px rgba(255, 94, 30, 0.12);
}

.cta-checkbox-item.is-checked .cta-checkbox-box,
.cta-checkbox-item:has(.cta-checkbox-input:checked) .cta-checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
}

.cta-checkbox-item.is-checked .cta-checkbox-box::after,
.cta-checkbox-item:has(.cta-checkbox-input:checked) .cta-checkbox-box::after {
  transform: rotate(45deg) scale(1);
}

.cta-checkbox-item.is-checked .cta-checkbox-text,
.cta-checkbox-item:has(.cta-checkbox-input:checked) .cta-checkbox-text {
  color: var(--gray-900);
  font-weight: 700;
}

.cta-checkbox-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  line-height: 1.4;
  transition: color 0.2s;
}

/* 個人情報保護方針 同意チェックボックス */
.cta-privacy-agree {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-privacy-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--gray-700);
}

.cta-privacy-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cta-privacy-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--gray-300);
  background: #FFFFFF;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cta-privacy-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.15s ease-in-out;
}

.cta-privacy-label:hover .cta-privacy-box {
  border-color: var(--accent);
}

.cta-privacy-label:has(.cta-privacy-input:checked) .cta-privacy-box,
.cta-privacy-label.is-checked .cta-privacy-box {
  background: var(--accent);
  border-color: var(--accent);
}

.cta-privacy-label:has(.cta-privacy-input:checked) .cta-privacy-box::after,
.cta-privacy-label.is-checked .cta-privacy-box::after {
  transform: rotate(45deg) scale(1);
}

.cta-privacy-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s;
}

.cta-privacy-link:hover {
  color: #E11D48;
}

/* ========================================================
   お知らせ（News / SWELL投稿リスト配置イメージ）
   ======================================================== */
.news-section {
  padding: 30px 0 10px;
  position: relative;
  z-index: 10;
}

.news-card {
  padding: 24px 32px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 
    6px 8px 24px rgba(166, 178, 196, 0.16),
    -4px -4px 12px rgba(255, 255, 255, 0.95);
}

.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid rgba(226, 232, 240, 0.9);
}

.news-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-tag {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.08em;
}

.news-title-ja {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}

.news-more-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.news-more-link:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  transition: var(--transition);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.news-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.02em;
}

.news-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 4px;
}

.news-category.cat-service {
  color: var(--accent);
  background: rgba(255, 94, 30, 0.08);
}

.news-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-item-title:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .news-card {
    padding: 18px 20px;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  }

  .news-item:last-child {
    border-bottom: none;
  }

  .news-item-title {
    white-space: normal;
    font-size: 13px;
  }
}

/* ========================================================
   Final High-Priority Responsive Overrides
   ======================================================== */
.btn-text-short {
  display: none;
}

@media (min-width: 993px) {
  .tactical-bottom-dock,
  .hud-backdrop,
  .hud-sheet {
    display: none !important;
  }
}

@media (max-width: 992px) {
  /* ========================================================
     モバイル・タブレット共通：セクションスクロール位置・余白の完全統一
     （メニュー移動時に赤線目安の位置へ正確に揃える）
     ======================================================== */
  section[id],
  footer[id] {
    scroll-margin-top: 48px !important;
  }

  .news-section,
  .approach-section,
  .services-section,
  .products-section,
  .strengths-section,
  .cta-section {
    padding-top: 20px !important;
    padding-bottom: 36px !important;
  }

  .section-header {
    margin: 0 auto 24px !important;
  }

  /* スマホ・タブレットではヘッダーのCTAボタンを非表示にし、ハンバーガーのみにする（縦積みを100%防止） */
  .header-cta-btn {
    display: none !important;
  }

  /* タブレット以下：リード文を改行しセンタリング表示 */
  .hero-subtext {
    max-width: 620px !important;
    margin: 0 auto 30px !important;
  }

  .hero-subtext-lead {
    display: block !important;
    text-align: center !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    margin: 0 auto 16px !important;
    width: 100% !important;
    color: #0F172A !important;
  }

  .hero-subtext-lead .tablet-break {
    display: inline !important;
  }

  .hero-subtext-lead span {
    display: inline-block;
  }

  .hero-subtext-desc {
    text-align: left !important;
    max-width: 580px !important;
    margin: 0 auto !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #334155 !important;
    display: block !important;
  }

  .header {
    padding: 10px 0 !important;
  }
  .header.scrolled {
    padding: 8px 0 !important;
  }

  .header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 0 16px !important;
  }

  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  /* モバイル・タブレットでは上部ハンバーガーを非表示（下部ドックで一元化） */
  .menu-toggle {
    display: none !important;
  }

  /* ドック常駐に伴うページ下部余白の確保 */
  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* 1. シンプル・グラスモーフィズム ボトムドック (Floating Glass Dock) */
  .tactical-bottom-dock {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9990 !important;
    padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    pointer-events: none !important;
  }

  .dock-actions {
    display: grid !important;
    grid-template-columns: 1fr 1.5fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 9999px !important;
    padding: 6px 8px !important;
    box-shadow: 
      0 12px 32px rgba(15, 23, 42, 0.12),
      0 2px 8px rgba(15, 23, 42, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    pointer-events: auto !important;
  }

  /* ドックボタン共通 */
  .dock-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    min-height: 46px !important;
    font-weight: 700 !important;
  }

  /* メニューボタン */
  .dock-btn-menu {
    background: rgba(241, 245, 249, 0.85) !important;
    border: 1px solid rgba(203, 213, 225, 0.8) !important;
    color: var(--gray-900) !important;
    font-size: 13.5px !important;
    letter-spacing: 0.08em !important;
  }

  .dock-btn-menu:active,
  .dock-btn-menu.is-active {
    background: #E2E8F0 !important;
    border-color: var(--accent) !important;
    transform: scale(0.98);
  }

  .dock-menu-title {
    font-weight: 800;
  }

  /* 相談するCTAボタン */
  .dock-btn-cta {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 18px rgba(255, 94, 30, 0.4) !important;
    font-size: 13.5px !important;
    letter-spacing: 0.02em !important;
  }

  .dock-btn-cta:active {
    transform: scale(0.98);
    filter: brightness(1.06);
  }

  .dock-btn-cta .dock-btn-label {
    color: #FFFFFF !important;
    font-weight: 800 !important;
  }

  /* 2. グラスモーフィズム ボトムシート (HUD Bottom Sheet) */
  .hud-backdrop {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(15, 23, 42, 0.28) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 9995 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
  }

  .hud-backdrop.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .hud-sheet {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    max-height: 84vh !important;
    max-height: 84dvh !important;
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border-radius: 32px 32px 0 0 !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 
      0 -20px 48px rgba(15, 23, 42, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(105%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease !important;
    overflow: hidden !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .hud-sheet.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  /* シートヘッダー & ドラッグインジケーター */
  .hud-sheet-grabber {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 12px 0 6px !important;
    cursor: pointer !important;
  }

  .hud-sheet-pill {
    width: 40px;
    height: 4px;
    border-radius: 9999px;
    background: #CBD5E1;
  }

  .hud-sheet-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 22px 14px !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5) !important;
  }

  .hud-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    color: var(--gray-900) !important;
  }

  .hud-header-telemetry {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 3px 9px !important;
    border-radius: 9999px !important;
    background: rgba(241, 245, 249, 0.75) !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
  }

  .telemetry-beacon {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: var(--accent) !important;
    box-shadow: 0 0 6px rgba(255, 94, 30, 0.7) !important;
    animation: beaconPulse 2.4s ease-in-out infinite !important;
  }

  @keyframes beaconPulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 10px rgba(255, 94, 30, 0.9); }
  }

  .telemetry-label {
    font-family: monospace, sans-serif !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    color: var(--gray-500) !important;
  }

  /* シートボディ & 1列縦リスト */
  .hud-sheet-body {
    padding: 10px 18px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .hud-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hud-list li {
    list-style: none !important;
  }

  .hud-list-item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 13px 14px !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    border-radius: 12px !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .hud-list li:last-child .hud-list-item {
    border-bottom: none !important;
  }

  .hud-list-item:active {
    background: rgba(255, 94, 30, 0.06) !important;
    transform: translateX(4px);
  }

  .hud-list-num {
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    color: var(--accent) !important;
    font-family: monospace, sans-serif !important;
    min-width: 22px !important;
  }

  .hud-list-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    flex: 1 !important;
  }

  .hud-list-en {
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    color: var(--gray-900) !important;
  }

  .hud-list-jp {
    font-size: 11px !important;
    color: var(--gray-500) !important;
    line-height: 1.3 !important;
  }

  .hud-list-arrow {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: var(--gray-400) !important;
    transition: transform 0.2s, color 0.2s;
  }

  .hud-list-item:active .hud-list-arrow {
    color: var(--accent) !important;
    transform: translateX(3px);
  }

  /* 最下段：親指操作の閉じるボタン & プライバシーポリシーリンク */
  .hud-sheet-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 12px 14px 8px !important;
    border-top: 1px solid rgba(226, 232, 240, 0.6) !important;
    margin-top: 6px !important;
  }

  .hud-bottom-close-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 48px !important;
    padding: 0 20px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1.5px solid rgba(203, 213, 225, 0.85) !important;
    border-radius: 9999px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--gray-700) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06) !important;
  }

  .hud-bottom-close-btn:active {
    background: #FFFFFF !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    transform: scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(255, 94, 30, 0.18) !important;
  }

  .hud-bottom-close-icon {
    font-size: 13px !important;
    font-weight: 800 !important;
    opacity: 0.75 !important;
  }

  .hud-bottom-close-text {
    letter-spacing: 0.04em !important;
  }

  .hud-footer-telemetry {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 6px 0 2px !important;
    opacity: 0.55 !important;
  }

  .hud-telemetry-cross {
    font-family: monospace, sans-serif !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    color: var(--accent) !important;
  }

  .hud-telemetry-line {
    height: 1px !important;
    width: 24px !important;
    background: linear-gradient(90deg, transparent, rgba(203, 213, 225, 0.9), transparent) !important;
  }

  .hud-telemetry-text {
    font-family: monospace, sans-serif !important;
    font-size: 8.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.22em !important;
    color: var(--gray-400) !important;
    text-transform: uppercase !important;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 14px !important;
  }

  .hero-subtext-lead {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 12px !important;
  }

  /* ヒーロースタッツ：3つのカードを縦積みにし、文字潰れを完全解消 */
  .hero-stats {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 28px auto 0 !important;
  }

  .stat-divider {
    display: none !important;
  }

  .stat-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    padding: 12px 18px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-left: 4px solid var(--accent) !important;
    border-radius: 12px !important;
    box-shadow: 2px 4px 10px rgba(166, 178, 196, 0.15) !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .stat-number {
    font-size: 24px !important;
    min-width: 76px !important;
    line-height: 1 !important;
    color: var(--accent) !important;
    flex-shrink: 0 !important;
  }

  .stat-unit {
    font-size: 12px !important;
  }

  .stat-label {
    font-size: 12px !important;
    color: var(--gray-700) !important;
    margin-top: 0 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  /* プロダクトスペック：1列化で無理な文字折り返しを完全解消 */
  .product-specs {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }

  .product-specs > div {
    width: 100% !important;
  }

  .spec-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    padding-bottom: 6px !important;
    border-bottom: 1px dashed var(--gray-200) !important;
    width: 100% !important;
  }

  .spec-val {
    font-size: 16px !important;
    color: var(--gray-900) !important;
    font-weight: 800 !important;
  }

  .spec-label {
    font-size: 12px !important;
    color: var(--gray-500) !important;
  }

  /* フローティングウィジェット非表示 */
  .variant-switcher {
    display: none !important;
  }
}

.product-monitor-note {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-top: 2px;
  max-width: 520px;
}

/* ========================================================
   Clean Circular Glassmorphic Back to Top Button
   ======================================================== */
.back-to-top {
  position: fixed !important;
  right: 32px !important;
  bottom: 36px !important;
  z-index: 99999 !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1.5px solid rgba(226, 232, 240, 0.95) !important;
  cursor: pointer !important;
  outline: none !important;
  overflow: hidden !important;
  box-shadow: 
    0 10px 24px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none !important;
  transition: 
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s,
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none !important;
  appearance: none !important;
  line-height: 1 !important;
}

/* 表示状態（スクロール時） */
.back-to-top.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* アイコン */
.back-to-top-icon {
  width: 17px !important;
  height: 17px !important;
  color: var(--gray-700) !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  stroke-width: 2.4 !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s !important;
}

/* テキストラベル */
.back-to-top-text {
  font-family: 'Outfit', sans-serif !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: var(--gray-700) !important;
  line-height: 1 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: color 0.2s !important;
}

/* ホバー演出 */
@media (hover: hover) {
  .back-to-top:hover {
    background: #FFFFFF !important;
    border-color: var(--accent) !important;
    box-shadow: 
      0 14px 28px rgba(15, 23, 42, 0.16),
      0 0 14px rgba(255, 94, 30, 0.25),
      inset 0 1px 0 #FFFFFF !important;
    transform: translateY(-3px) !important;
  }

  .back-to-top:hover .back-to-top-icon {
    color: var(--accent) !important;
    transform: translateY(-1px) !important;
  }

  .back-to-top:hover .back-to-top-text {
    color: var(--accent) !important;
  }
}

/* クリック（タップ）時 */
.back-to-top:active {
  transform: translateY(0) scale(0.92) !important;
  background: rgba(241, 245, 249, 0.95) !important;
  box-shadow: 
    0 4px 12px rgba(15, 23, 42, 0.08),
    inset 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

/* モバイル・タブレット最適化 (<= 992px) */
@media (max-width: 992px) {
  .back-to-top {
    right: 18px !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }

  .back-to-top-icon {
    width: 15px !important;
    height: 15px !important;
  }

  .back-to-top-text {
    font-size: 7.5px !important;
  }
}

/* SWELL標準のトップへ戻るボタン・固定ボタン群の完全非表示化（二重表示・競合防止） */
.c-pagetopBtn,
.p-fixBtnWrap,
#pagetop,
#page_top,
.c-fixBtn,
.c-fixBtn--top,
[data-fix-btn] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}






/* ========================================================
   SQUARES Precision Typography & Font-Weight Guarantee
   (WordPress/SWELLテーマによる見出し・本文フォントの上書きを完全防止)
   ======================================================== */

/* アンチエイリアスと基本フォントスタックの統一（Windows ClearTypeサブピクセル描画で力強い骨太フォントを再現） */
body,
body *,
.container,
.hero-content,
.section-header,
.services-section,
.approach-section,
.product-section,
.strengths-section,
.cta-section,
.footer {
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a,
span,
div,
input,
textarea,
select,
button {
  font-family: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif !important;
}

/* 1. ヒーロー・メインキャッチコピー (Outfit Light/Regular 400 - SWELLの太字h1を完全リセット) */
h1.hero-catchphrase,
.hero-catchphrase,
.hero-content h1,
.hero-section h1 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 400 !important;
  font-size: 62px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  color: var(--gray-900) !important;
  text-transform: none !important;
}

@media (max-width: 768px) {
  h1.hero-catchphrase,
  .hero-catchphrase,
  .hero-content h1,
  .hero-section h1 {
    font-size: 38px !important;
    line-height: 1.2 !important;
  }
}

/* ヒーローリード文 (Outfit + Noto Sans JP Bold 700 & Regular 400) */
.hero-subtext-lead,
.hero-subtext-lead strong {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 700 !important;
  color: var(--gray-900) !important;
}

.hero-subtext-desc {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 400 !important;
  color: var(--gray-500) !important;
}

/* 2. PHILOSOPHY見出し (Outfit + Noto Sans JP Medium 500) */
h2.approach-title,
.approach-title,
.approach-header h2 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 500 !important;
  font-size: 38px !important;
  line-height: 1.25 !important;
  color: var(--gray-900) !important;
  letter-spacing: -0.01em !important;
}

.approach-subtitle {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: var(--gray-500) !important;
}

.approach-num {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
}

.approach-item-title,
.approach-col h3 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 900 !important;
  font-size: 20px !important;
}

/* 3. 各セクション共通見出し (Outfit + Noto Sans JP Black 900 - プロトタイプ同等の極太・重厚感を完全再現) */
h2.section-title,
.section-title,
.section-header h2,
.services-section .section-title,
.product-section .section-title,
.strengths-section .section-title {
  font-family: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif !important;
  font-weight: 900 !important;
  font-size: 38px !important;
  line-height: 1.3 !important;
  color: var(--gray-900) !important;
  letter-spacing: -0.02em !important;
  -webkit-font-smoothing: subpixel-antialiased !important;
  -moz-osx-font-smoothing: auto !important;
}

@media (max-width: 768px) {
  h2.section-title,
  .section-title,
  .section-header h2 {
    font-size: 26px !important;
    line-height: 1.35 !important;
  }
}

.section-desc,
.section-header p {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  color: var(--gray-500) !important;
  line-height: 1.65 !important;
}

/* 4. サービスカード見出し (Outfit + Noto Sans JP ExtraBold 800) */
h3.card-title,
.card-title,
.service-card h3 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
  color: var(--gray-900) !important;
}

.card-subtitle {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  color: var(--accent) !important;
}

/* 5. プロダクト見出し (Outfit + Noto Sans JP Black 900) */
h3.product-title,
.product-title,
.product-feature-panel h3 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 900 !important;
  font-size: 32px !important;
  line-height: 1.3 !important;
  color: var(--gray-900) !important;
}

.product-tagline {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

/* 6. 選ばれる理由見出し (Outfit + Noto Sans JP Black 900) */
h3.strength-title,
.strength-title,
.strength-card h3 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  color: var(--gray-900) !important;
}

/* 7. CTA見出し (Outfit + Noto Sans JP Black 900) */
h2.cta-title,
.cta-title,
.cta-card h2 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 900 !important;
  font-size: 30px !important;
  line-height: 1.4 !important;
  color: var(--gray-900) !important;
}

.cta-lead {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 700 !important;
}

.cta-sub {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 400 !important;
}

/* 8. フッター・会社概要 / Company 見出し (Outfit + Noto Sans JP Heavy 800) */
.footer-col h4,
footer h4,
.footer-links h4,
.footer-brand h4 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  color: var(--gray-900) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
}

.footer-col ul li,
.footer-col ul li a {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
}

.footer-brand .footer-tagline {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 500 !important;
}

/* 9. ブランドロゴ (Outfit Light 400 & Heavy 900) */
.logo-type {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.35em !important;
}

.logo-domain {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
}

/* 10. メトリクス数値 (Outfit Black 900) */
.stat-number {
  font-family: 'Outfit', monospace !important;
  font-weight: 900 !important;
}

.stat-label {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif !important;
  font-weight: 700 !important;
}

/* 11. セクションタグ・コード類 (Monospace 700) */
.section-tag,
.card-code,
.approach-code,
.hero-badge,
.rail-tag,
.rail-text-v,
.rail-datum,
.section-v-rail,
.panel-seam-top {
  font-family: var(--font-mono, monospace) !important;
  font-weight: 700 !important;
}

/* ========================================================
   Contact Form 7 (CF7) スタイリング定義
   WordPress Contact Form 7 出力要素をSQUARESデザインに完全統合
   ======================================================== */
.cta-cf7-container {
  width: 100%;
}

.cta-cf7-container .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.cta-cf7-container .wpcf7-form p {
  margin: 0 !important;
  padding: 0 !important;
}

.cta-cf7-container .wpcf7-form-control-wrap {
  display: block;
  position: relative;
  width: 100%;
}

/* 入力欄（テキスト・メール・テキストエリア） */
.cta-cf7-container .wpcf7-text,
.cta-cf7-container .wpcf7-email,
.cta-cf7-container .wpcf7-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-900);
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.cta-cf7-container .wpcf7-textarea {
  min-height: 120px;
  resize: vertical;
}

.cta-cf7-container .wpcf7-text:focus,
.cta-cf7-container .wpcf7-email:focus,
.cta-cf7-container .wpcf7-textarea:focus {
  background: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* CF7 チェックボックス（サービス選択 & 同意）完全カード型スタイル */
.wpcf7-checkbox:has(input[name*="services"]),
.cta-checkbox-grid.wpcf7-checkbox,
.cta-cf7-services .wpcf7-checkbox,
.cta-cf7-container .wpcf7-checkbox,
.cta-form-group .wpcf7-checkbox {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 0 16px 0 !important;
}

@media (max-width: 768px) {
  .wpcf7-checkbox:has(input[name*="services"]),
  .cta-checkbox-grid.wpcf7-checkbox,
  .cta-cf7-services .wpcf7-checkbox,
  .cta-cf7-container .wpcf7-checkbox,
  .cta-form-group .wpcf7-checkbox {
    grid-template-columns: 1fr !important;
  }
}

/* 各項目のラッパー（.wpcf7-list-item） */
.wpcf7-checkbox:has(input[name*="services"]) .wpcf7-list-item,
.cta-checkbox-grid.wpcf7-checkbox .wpcf7-list-item,
.cta-cf7-services .wpcf7-list-item,
.cta-cf7-container .wpcf7-checkbox .wpcf7-list-item,
.cta-form-group .wpcf7-checkbox .wpcf7-list-item {
  display: block !important;
  margin: 0 !important;
  width: 100% !important;
}



/* モニター応募項目の未チェック時非表示（CF7） */
.wpcf7-checkbox .wpcf7-list-item:has(input[value*="07"]):not(:has(input:checked)),
.wpcf7-checkbox .wpcf7-list-item:has(input[value*="モニター応募"]):not(:has(input:checked)),
.wpcf7-checkbox .wpcf7-list-item:has(input[value*="シフト管理"]):not(:has(input:checked)),
.cta-checkbox-grid .wpcf7-list-item:has(input[value*="07"]):not(:has(input:checked)) {
  display: none !important;
}

/* 各項目のカード化（labelの有無に関わらず.wpcf7-list-itemそのものをカード化） */
.wpcf7-checkbox .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item label,
.cta-checkbox-grid .wpcf7-list-item,
.cta-checkbox-grid .wpcf7-list-item label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 2px 3px 8px rgba(166, 178, 196, 0.12) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  min-height: 48px !important;
}

.wpcf7-checkbox .wpcf7-list-item:hover,
.wpcf7-checkbox .wpcf7-list-item label:hover,
.cta-checkbox-grid .wpcf7-list-item:hover,
.cta-checkbox-grid .wpcf7-list-item label:hover {
  border-color: rgba(255, 94, 30, 0.4) !important;
  background: #FFFDFB !important;
  transform: translateY(-1px) !important;
}

/* チェックが入ったカード（オレンジ枠・背景） */
.wpcf7-checkbox .wpcf7-list-item:has(input:checked),
.wpcf7-checkbox .wpcf7-list-item.is-checked,
.cta-checkbox-grid .wpcf7-list-item:has(input:checked),
.cta-checkbox-grid .wpcf7-list-item.is-checked {
  background: rgba(255, 94, 30, 0.06) !important;
  border-color: var(--accent, #FF5E1E) !important;
  box-shadow: 0 0 0 1px var(--accent, #FF5E1E), 0 4px 12px rgba(255, 94, 30, 0.12) !important;
}

/* チェックが入ったカード（オレンジ枠・背景） */
.wpcf7-checkbox:has(input[name*="services"]) .wpcf7-list-item:has(input:checked) label,
.wpcf7-checkbox:has(input[name*="services"]) .wpcf7-list-item.is-checked label,
.cta-checkbox-grid.wpcf7-checkbox .wpcf7-list-item:has(input:checked) label,
.cta-checkbox-grid.wpcf7-checkbox .wpcf7-list-item.is-checked label,
.cta-cf7-services .wpcf7-list-item:has(input:checked) label,
.cta-cf7-services .wpcf7-list-item.is-checked label,
.cta-cf7-container .wpcf7-checkbox .wpcf7-list-item:has(input:checked) label,
.cta-cf7-container .wpcf7-checkbox .wpcf7-list-item.is-checked label,
.cta-form-group .wpcf7-checkbox .wpcf7-list-item:has(input:checked) label,
.cta-form-group .wpcf7-checkbox .wpcf7-list-item.is-checked label {
  background: rgba(255, 94, 30, 0.06) !important;
  border-color: var(--accent, #FF5E1E) !important;
  box-shadow: 0 0 0 1px var(--accent, #FF5E1E), 0 4px 12px rgba(255, 94, 30, 0.12) !important;
}

/* チェックボックス（input） */
.wpcf7-checkbox:has(input[name*="services"]) .wpcf7-list-item input[type="checkbox"],
.cta-checkbox-grid.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"],
.cta-cf7-services .wpcf7-list-item input[type="checkbox"],
.cta-cf7-container .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"],
.cta-form-group .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--accent, #FF5E1E) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* テキストラベル（.wpcf7-list-item-label） */
.wpcf7-checkbox:has(input[name*="services"]) .wpcf7-list-item .wpcf7-list-item-label,
.cta-checkbox-grid.wpcf7-checkbox .wpcf7-list-item .wpcf7-list-item-label,
.cta-cf7-services .wpcf7-list-item .wpcf7-list-item-label,
.cta-cf7-container .wpcf7-checkbox .wpcf7-list-item .wpcf7-list-item-label,
.cta-form-group .wpcf7-checkbox .wpcf7-list-item .wpcf7-list-item-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--gray-700, #334155) !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.wpcf7-checkbox:has(input[name*="services"]) .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label,
.wpcf7-checkbox:has(input[name*="services"]) .wpcf7-list-item.is-checked .wpcf7-list-item-label,
.cta-checkbox-grid.wpcf7-checkbox .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label,
.cta-checkbox-grid.wpcf7-checkbox .wpcf7-list-item.is-checked .wpcf7-list-item-label,
.cta-cf7-services .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label,
.cta-cf7-services .wpcf7-list-item.is-checked .wpcf7-list-item-label,
.cta-cf7-container .wpcf7-checkbox .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label,
.cta-cf7-container .wpcf7-checkbox .wpcf7-list-item.is-checked .wpcf7-list-item-label,
.cta-form-group .wpcf7-checkbox .wpcf7-list-item:has(input:checked) .wpcf7-list-item-label,
.cta-form-group .wpcf7-checkbox .wpcf7-list-item.is-checked .wpcf7-list-item-label {
  color: var(--gray-900, #0F172A) !important;
  font-weight: 700 !important;
}

/* CF7 送信ボタン親ラッパーの完全中央揃え */
.cta-actions,
.cta-form-submit-wrap,
.cta-cf7-container p:has(input[type="submit"]),
.wpcf7-form p:has(input[type="submit"]),
.wpcf7 form p:has(.wpcf7-submit),
.cta-cf7-container .wpcf7-submit-wrap,
.cta-cf7-container form > p:last-of-type,
.wpcf7-form > p:last-of-type {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 24px auto 0 !important;
  padding: 0 !important;
  clear: both !important;
}

/* 送信ボタン（確認画面へ）の完全中央配置＆美しいプロトタイプデザイン */
.cta-cf7-container input[type="submit"],
.cta-cf7-container .wpcf7-submit,
.cta-cf7-container .cta-submit-btn,
.wpcf7-submit,
.cta-submit-btn,
.cta-actions button[type="submit"],
.cta-actions .btn-primary {
  display: inline-block !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 400px !important;
  min-height: 52px !important;
  padding: 16px 36px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #FF6B35 0%, #E8501D 100%) !important;
  border: none !important;
  border-radius: 9999px !important;
  box-shadow: 0 8px 24px rgba(255, 90, 31, 0.35) !important;
  cursor: pointer !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.2s ease !important;
  text-align: center !important;
  float: none !important;
}

.cta-cf7-container input[type="submit"]:hover,
.cta-cf7-container .wpcf7-submit:hover,
.cta-cf7-container .cta-submit-btn:hover,
.wpcf7-submit:hover,
.cta-submit-btn:hover,
.cta-actions button[type="submit"]:hover,
.cta-actions .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px rgba(255, 94, 30, 0.5) !important;
  filter: brightness(1.05) !important;
}

/* ご相談内容テキストエリア直下の注意事項（左揃え） */
.cta-form-note,
.cta-cf7-container .cta-form-note,
.wpcf7 .cta-form-note,
.cta-field .cta-form-note {
  display: block !important;
  width: 100% !important;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;
  text-align: left !important;
  font-size: 12px !important;
  color: var(--gray-500, #64748B) !important;
  line-height: 1.6 !important;
  clear: both !important;
}

/* CF7 送信中スピナー */
.cta-cf7-container .wpcf7-spinner {
  margin: 10px auto 0 !important;
  display: block !important;
}

/* CF7 エラー・完了メッセージ */
.cta-cf7-container .wpcf7-not-valid-tip {
  font-size: 12px;
  font-weight: 600;
  color: #DC2626;
  margin-top: 4px;
}

.cta-cf7-container .wpcf7-response-output {
  margin: 16px 0 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.cta-cf7-container .wpcf7-form.sent .wpcf7-response-output {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid #10B981 !important;
  color: #065F46 !important;
}

.cta-cf7-container .wpcf7-form.invalid .wpcf7-response-output,
.cta-cf7-container .wpcf7-form.unaccepted .wpcf7-response-output {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid #EF4444 !important;
  color: #991B1B !important;
}

.cta-cf7-container .wpcf7-spinner {
  margin: 10px auto 0;
  display: block;
}

/* ========================================================
   お問い合わせ 3ステップフロー（確認画面・送信完了・自動トップ復帰）
   ======================================================== */
.cta-flow-container {
  width: 100%;
  position: relative;
}

.cta-flow-step {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 確認画面カード */
.cta-confirm-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.cta-confirm-badge-wrap {
  text-align: center;
  margin-bottom: 14px;
}

.cta-confirm-badge {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  background: var(--accent-soft);
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 90, 31, 0.2);
}

.cta-confirm-heading {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.cta-confirm-sub {
  text-align: center;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 28px;
  line-height: 1.6;
}

.cta-confirm-table {
  background: #F8FAFC;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
}

.cta-confirm-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  line-height: 1.6;
}

.cta-confirm-row:last-child {
  border-bottom: none;
}

.cta-confirm-label {
  font-weight: 700;
  color: var(--gray-600);
}

.cta-confirm-value {
  color: var(--gray-900);
  font-weight: 500;
  word-break: break-word;
}

.cta-confirm-value--text {
  white-space: pre-wrap;
}

.cta-confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-confirm-buttons .btn {
  min-width: 180px;
}

@media (max-width: 768px) {
  .cta-confirm-card {
    padding: 24px 18px;
  }
  .cta-confirm-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
  }
  .cta-confirm-buttons {
    flex-direction: column;
  }
  .cta-confirm-buttons .btn {
    width: 100%;
  }
}

/* 送信完了（サンクス）カード */
.cta-thanks-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 48px 32px;
  box-shadow: 0 24px 56px rgba(16, 185, 129, 0.1);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-thanks-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10B981;
  animation: scaleInCheck 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleInCheck {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.cta-thanks-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin-top: 14px;
  margin-bottom: 12px;
}

.cta-thanks-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 32px;
}

.cta-thanks-timer-wrap {
  background: #F8FAFC;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.cta-thanks-timer-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.cta-thanks-countdown-num {
  font-family: var(--font-mono, monospace);
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
  margin-right: 2px;
}

.cta-thanks-progress-track {
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 9999px;
  overflow: hidden;
}

.cta-thanks-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10B981 0%, #FF6B35 100%);
  border-radius: 9999px;
  transform-origin: left;
  transition: width 1s linear;
}

.cta-thanks-actions {
  display: flex;
  justify-content: center;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

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

/* 選択項目のオレンジ系強調スタイル（アニメーションなし） */
.cta-checkbox-item.is-checked,
.cta-cf7-container .wpcf7-list-item.is-checked,
.wpcf7-checkbox .wpcf7-list-item.is-checked {
  background: rgba(255, 94, 30, 0.06) !important;
  border-color: #FF5E1E !important;
  box-shadow: 0 0 0 1px #FF5E1E, 0 4px 12px rgba(255, 94, 30, 0.12) !important;
}

.wpcf7-list-item .wpcf7-list-item-label,
.cta-checkbox-item .cta-checkbox-text {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}



