/* =============================================
   街のシステム開発屋さん - Main Stylesheet
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --orange-500: #F97316;
  --orange-600: #EA580C;
  --orange-700: #C2410C;
  --orange-100: #FFEDD5;
  --orange-50:  #FFF7ED;
  --gray-900:   #111827;
  --gray-800:   #1F2937;
  --gray-700:   #374151;
  --gray-500:   #6B7280;
  --gray-300:   #D1D5DB;
  --gray-100:   #F3F4F6;
  --gray-50:    #F9FAFB;
  --white:      #FFFFFF;

  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12);
  --shadow-orange: 0 8px 30px rgba(249,115,22,.30);

  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --header-h:   72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Utility ---------- */
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-600);
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--gray-900);
}

.section-header h2 em,
.hero-text h1 em {
  font-style: normal;
  color: var(--orange-500);
}

.section-desc {
  margin-top: 16px;
  font-size: .95rem;
  color: var(--gray-500);
  line-height: 1.8;
}

.highlight-orange { color: var(--orange-500); font-weight: 900; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-weight: 700;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  border-color: var(--orange-500);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(249,115,22,.40);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-ghost:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--orange-600);
  border-color: var(--orange-500);
}
.btn-outline:hover {
  background: var(--orange-50);
  transform: translateY(-2px);
}

.btn-lg  { padding: 15px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm  { padding: 8px 18px; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   HEADER
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  transition: box-shadow var(--transition);
}
#site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon svg { display: block; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-main {
  font-size: .95rem;
  font-weight: 900;
  color: var(--gray-900);
  white-space: nowrap;
}
.logo-sub {
  font-size: .58rem;
  color: var(--gray-500);
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Nav */
#global-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}
.nav-list a:hover {
  color: var(--orange-600);
  background: var(--orange-50);
}

.nav-list a.nav-cta {
  background: var(--orange-500);
  color: var(--white);
  font-weight: 700;
  padding: 9px 20px;
}
.nav-list a.nav-cta:hover {
  background: var(--orange-600);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   HERO
   ============================================= */
#hero {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 0;
  background: linear-gradient(160deg, #FFF7ED 0%, #FFFFFF 50%, #FFF7ED 100%);
  overflow: hidden;
  position: relative;
}

/* Decorative shapes */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .45;
}
.shape-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #FDBA74 0%, transparent 70%);
  top: -100px; right: -80px;
}
.shape-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #FED7AA 0%, transparent 70%);
  bottom: 100px; left: -60px;
}
.shape-3 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, #FB923C 0%, transparent 70%);
  top: 200px; left: 38%;
  opacity: .2;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero text */
.hero-text { display: flex; flex-direction: column; gap: 24px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-500);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 99px;
  letter-spacing: .06em;
}

.hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--gray-900);
}

.hero-sub {
  font-size: 1.1rem;
  color: #4B5563;
  line-height: 1.8;
}
.hero-sub strong { color: var(--orange-600); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-trust li {
  font-size: .875rem;
  color: #4B5563;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust li i { color: var(--orange-500); }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-illust {
  position: relative;
  z-index: 2;
}
.illust-main {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 20px 40px rgba(249,115,22,.15));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Float cards */
.hero-float-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 2px solid var(--orange-100);
  animation: float-card 6s ease-in-out infinite;
}
.float-card img { width: 100%; height: 100%; object-fit: cover; }

.float-card-1 {
  width: 96px; height: 96px;
  top: 10%; left: -8%;
  animation-delay: .5s;
}
.float-card-2 {
  width: 80px; height: 80px;
  bottom: 18%; left: 5%;
  animation-delay: 1.2s;
}
.float-card-3 {
  width: 88px; height: 88px;
  top: 5%; right: -4%;
  animation-delay: .9s;
}

@keyframes float-card {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}

/* AI badge */
.hero-ai-badge {
  position: absolute;
  bottom: 12%;
  right: -2%;
  background: var(--gray-900);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: pulse-badge 3s ease-in-out infinite;
}
.hero-ai-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* Industry scroll banner */
.industry-scroll-wrap {
  background: var(--orange-500);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}

.industry-scroll-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scroll-track 28s linear infinite;
}

.industry-scroll-track span {
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  padding: 0 28px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.3);
}

@keyframes scroll-track {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   PAIN POINTS
   ============================================= */
#pain-points {
  padding: 100px 0 80px;
  background: var(--gray-50);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.pain-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.pain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-100);
}

.pain-img-wrap {
  background: var(--orange-50);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 200px;
  overflow: hidden;
  padding: 12px 12px 0;
}
.pain-img-wrap img {
  max-height: 190px;
  object-fit: contain;
  object-position: bottom;
  transition: transform var(--transition);
}
.pain-card:hover .pain-img-wrap img { transform: scale(1.04); }

.pain-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pain-body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
}
.pain-body p {
  font-size: .85rem;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
}
.pain-tag {
  font-size: .72rem;
  font-weight: 600;
  color: var(--orange-600);
  background: var(--orange-50);
  padding: 3px 10px;
  border-radius: 99px;
  align-self: flex-start;
}

/* Resolve block */
.pain-resolve {
  text-align: center;
  padding: 56px 24px;
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-700) 100%);
  border-radius: var(--radius-xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.pain-resolve::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  top: -100px; right: -60px;
}

.pain-resolve-label {
  font-size: .85rem;
  font-weight: 600;
  opacity: .85;
  margin-bottom: 12px;
}
.pain-resolve-headline {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 28px;
}
.pain-resolve .highlight-orange { color: #FED7AA; }
.pain-resolve .btn-primary {
  background: var(--white);
  color: var(--orange-600);
  border-color: var(--white);
  box-shadow: none;
}
.pain-resolve .btn-primary:hover {
  background: var(--orange-50);
  transform: translateY(-2px);
}

/* =============================================
   SOLUTIONS
   ============================================= */
#solutions {
  padding: 100px 0;
  background: var(--white);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-100);
}

.solution-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--card-color, var(--orange-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  margin: 20px 20px 0;
}

.solution-illust {
  height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 16px 0;
  background: var(--orange-50);
  overflow: hidden;
}
.solution-illust img {
  max-height: 170px;
  object-fit: contain;
  object-position: bottom;
  transition: transform var(--transition);
}
.solution-card:hover .solution-illust img { transform: scale(1.06); }

.solution-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.solution-body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.solution-features li {
  font-size: .82rem;
  color: #4B5563;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}
.solution-features li i {
  color: var(--orange-500);
  font-size: .7rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* =============================================
   AI DX
   ============================================= */
#ai-dx {
  padding: 100px 0;
  background: var(--gray-900);
  color: var(--white);
}

#ai-dx .section-eyebrow {
  background: rgba(249,115,22,.15);
  border-color: rgba(249,115,22,.3);
  color: #FB923C;
}
#ai-dx .section-header h2 { color: var(--white); }
#ai-dx .section-desc { color: rgba(255,255,255,.6); }

.ai-dx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.ai-dx-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}
.ai-dx-card:hover {
  background: rgba(249,115,22,.12);
  border-color: rgba(249,115,22,.3);
  transform: translateY(-4px);
}

.ai-dx-icon {
  width: 48px; height: 48px;
  background: var(--orange-500);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.ai-dx-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}
.ai-dx-card p {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

/* Tech stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.tech-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  font-family: var(--font-en);
  transition: all var(--transition);
}
.tech-badge:hover {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: var(--white);
}

/* =============================================
   CASES
   ============================================= */
#cases {
  padding: 100px 0;
  background: var(--orange-50);
}

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

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--orange-100);
  transition: all var(--transition);
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.case-industry {
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange-600);
  background: var(--orange-50);
  padding: 5px 12px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 20px;
}

.case-before-after {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.case-before, .case-after { flex: 1; }

.ba-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}
.case-before .ba-label { background: #FEE2E2; color: #DC2626; }
.case-after  .ba-label { background: #DCFCE7; color: #16A34A; }

.case-before p, .case-after p {
  font-size: .83rem;
  color: #4B5563;
  line-height: 1.6;
}
.case-before p strong, .case-after p strong { color: var(--gray-900); }

.case-arrow {
  color: #FB923C;
  font-size: 1.1rem;
  padding-top: 22px;
  flex-shrink: 0;
}

.case-result {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange-600);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.case-result strong { font-size: 1.3rem; }

/* =============================================
   PRICING
   ============================================= */
#pricing {
  padding: 100px 0;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.pricing-card {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 2px solid var(--gray-100);
  position: relative;
  transition: all var(--transition);
  background: var(--white);
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--orange-500);
  box-shadow: var(--shadow-orange);
  transform: scale(1.03);
}
.pricing-card--featured:hover { transform: scale(1.03) translateY(-6px); }

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange-500);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.price-from { font-size: .8rem; color: var(--gray-500); }
.price-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gray-900);
  font-family: var(--font-en);
  line-height: 1;
}
.price-tax { font-size: .75rem; color: var(--gray-500); }

.pricing-desc {
  font-size: .85rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-features li {
  font-size: .875rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li i.fa-check { color: var(--orange-500); }
.pricing-features li.not-included { color: var(--gray-300); }
.pricing-features li.not-included i.fa-xmark { color: var(--gray-300); }

.pricing-note {
  text-align: center;
  font-size: .85rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pricing-note i { color: var(--orange-500); }
.pricing-note a { color: var(--orange-600); font-weight: 600; text-decoration: underline; }

/* =============================================
   CONTACT
   ============================================= */
#contact {
  padding: 100px 0;
  background: var(--gray-50);
}

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

.contact-left .section-eyebrow { margin-bottom: 14px; }
.contact-left h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.contact-left h2 em { font-style: normal; color: var(--orange-500); }

.contact-desc {
  font-size: .95rem;
  color: #4B5563;
  line-height: 1.9;
  margin-bottom: 28px;
}

.contact-illust { max-width: 240px; margin-bottom: 24px; }

.contact-info { display: flex; flex-direction: column; gap: 8px; }
.contact-info p {
  font-size: .9rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info i { color: var(--orange-500); width: 16px; }
.contact-info a { color: var(--orange-600); font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 6px;
}

.required {
  font-size: .72rem;
  background: #FEE2E2;
  color: #DC2626;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: .9rem;
  font-family: var(--font-jp);
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-300); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-check { flex-direction: row; align-items: center; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  color: #4B5563;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--orange-500);
  flex-shrink: 0;
}
.checkbox-label a { color: var(--orange-600); text-decoration: underline; }

.form-message {
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-message.success { display: block; background: #DCFCE7; color: #16A34A; }
.form-message.error   { display: block; background: #FEE2E2; color: #DC2626; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo--footer .logo-main { color: var(--white); }
.logo--footer .logo-sub  { color: rgba(255,255,255,.4); }

.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-top: 12px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-illust {
  max-width: 160px;
  filter: grayscale(30%) brightness(0.9);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-nav-col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-nav-col a:hover { color: #FB923C; }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--orange-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-orange);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  transform: translateY(12px);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--orange-600);
  transform: translateY(-3px);
}

/* =============================================
   RESPONSIVE - Tablet (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .pain-grid       { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid  { grid-template-columns: repeat(2, 1fr); }
  .ai-dx-grid      { grid-template-columns: repeat(2, 1fr); }
  .cases-grid      { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid    { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-6px); }
  .hero-inner   { gap: 32px; }
  .contact-wrap { gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav   { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   RESPONSIVE - Mobile (≤ 768px)
   ============================================= */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .hamburger { display: flex; }
  #global-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
  }
  #global-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-list a { text-align: left; padding: 12px 16px; font-size: 1rem; }
  .nav-list a.nav-cta { text-align: center; margin-top: 8px; }

  #hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 40px;
    gap: 32px;
  }
  .hero-actions { justify-content: center; }
  .hero-trust   { align-items: center; }
  .hero-visual  { max-width: 340px; margin: 0 auto; }
  .float-card-1 { width: 72px; height: 72px; top: 8%; left: -2%; }
  .float-card-2 { width: 64px; height: 64px; }
  .float-card-3 { width: 68px; height: 68px; }
  .hero-ai-badge { font-size: .7rem; right: 0; }

  #pain-points, #solutions, #ai-dx, #cases, #pricing, #contact { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .pain-grid, .solutions-grid, .cases-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto; margin-right: auto;
  }
  .ai-dx-grid  { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 40px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 32px; }

  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px 20px; }

  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .br-sp { display: none; }
  .back-to-top { bottom: 20px; right: 16px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr; }
  .case-before-after { flex-direction: column; gap: 8px; }
  .case-arrow { display: none; }
}
