/* ========================================
   +デジタル LP - CSS
   ======================================== */

/* CSS Variables */
:root {
  --blue: #1A9FC4;
  --blue-dark: #127a9a;
  --blue-mid: #4fb8d4;
  --blue-pale: #d0f0f9;
  --blue-bg: #f0fafd;
  --blue-service: #0a4d8c;
  --green: #10B981;
  --green-dark: #0d9668;
  --green-pale: #d1fae5;
  --green-bg: #ecfdf5;
  --white: #FFFFFF;
  --gray-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Container */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

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

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  display: flex;
  align-items: center;
}

.nav-spacer {
  flex: 1;
}

.logo {
  margin-left: auto;
}

.logo img {
  height: auto;
  width: auto;
}

/* HERO */
.hero {
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.85), rgba(255,255,255,0.70), rgba(255,255,255,0.40));
}

.hero-badge {
  display: inline-flex;
  background: #dc2626;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 24px;
}

.hero-circle-1 {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,159,196,0.12) 0%, transparent 65%);
  z-index: 1;
}

.hero-circle-2 {
  position: absolute;
  bottom: -80px;
  left: 10%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 65%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

.hero-inner {
  padding: 80px 0;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.hero-desc {
  margin-bottom: 40px;
  max-width: 650px;
}

.hero-desc p {
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-mid);
  margin-top: 4px;
}

.hero-desc .service-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--blue-service);
  margin-top: 16px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Sticky Bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s;
}

.sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sticky-bar-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
}

.sticky-bar-highlight {
  color: var(--blue-service);
  margin-left: 8px;
}

.sticky-bar-cta {
  display: flex;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
  height: 52px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-lg {
  padding: 0 48px;
  height: 68px;
  font-size: 18px;
  border-radius: 12px;
}

.btn-sm {
  padding: 0 32px;
  height: 52px;
  font-size: 15px;
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 30px rgba(26, 159, 196, 0.4);
  transform: scale(1.05);
}

.btn-green {
  background: var(--green);
  color: white;
}

.btn-green:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue-bg);
}

.btn-wide {
  width: 100%;
  max-width: 320px;
  height: 54px;
}

/* Section */
.section {
  padding: 120px 0;
}

.section-white {
  background: white;
}

.section-gray {
  background: var(--gray-bg);
}

.section-blue-bg {
  background: var(--blue-bg);
}

.section-problem {
  padding: 96px 0;
}

.section-contact {
  padding: 100px 0 120px;
}

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

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-label-center {
  justify-content: center;
}

.section-label-green {
  color: var(--green);
}

.label-line {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

.label-line-green {
  background: var(--green);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-mid);
  margin-top: 14px;
}

.section-hint {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

/* Text utilities */
.text-blue {
  color: var(--blue);
}

.text-green {
  color: var(--green);
}

.hidden-mobile {
  display: inline-flex;
}

/* PROBLEM */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.problem-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.problem-image {
  margin-bottom: 40px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-image img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
}

.problem-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
  font-weight: 500;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}

.features-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 40px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.feature-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--blue), var(--green));
}

.feature-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue-pale);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.5;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-mid);
}

/* Job Types */
.job-types-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  border: 1.5px solid var(--border);
}

.job-types-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 12px;
}

.job-types-subtitle {
  font-size: 15px;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 32px;
}

.job-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.job-type-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--blue-bg);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.3s;
}

.job-type-item:hover {
  background: var(--blue-pale);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.job-types-note {
  font-size: 13px;
  color: #dc2626;
  text-align: center;
  margin-top: 24px;
}

/* Trusted By */
.trusted-by {
  margin-top: 64px;
  text-align: center;
}

.trusted-by-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 36px;
}

.logos-card {
  background: white;
  border-radius: 20px;
  padding: 24px 0;
  border: 1.5px solid var(--border);
  overflow: hidden;
}

/* Marquee Animation - Right to Left */
.logos-marquee {
  display: flex;
  overflow: hidden;
}

.logos-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 48px;
  padding: 0 24px;
  animation: marquee 40s linear infinite;
}

.logos-track img {
  max-height: 36px;
  max-width: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

.case-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: white;
  transition: all 0.3s;
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
  border-color: var(--blue);
}

.case-card.expanded {
  grid-column: span 2;
  grid-row: span 2;
  border-color: var(--blue);
  box-shadow: 0 24px 60px rgba(26,159,196,0.18);
}

.case-header {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-card.expanded .case-header {
  padding: 20px 24px;
}

.case-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.case-card.expanded .case-num {
  font-size: 14px;
}

.case-close {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: none;
}

.case-card.expanded .case-close {
  display: block;
}

.case-body {
  padding: 24px;
}

.case-card.expanded .case-body {
  padding: 32px;
}

.case-industry {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 8px;
}

.case-card.expanded .case-industry {
  font-size: 14px;
}

.case-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
}

.case-card.expanded .case-title {
  font-size: 24px;
  margin-bottom: 16px;
}

.case-detail {
  display: none;
}

.case-card.expanded .case-detail {
  display: block;
}

.case-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}

.case-section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.case-implementation {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-mid);
}

.case-result {
  margin-top: 24px;
  padding: 16px;
  background: var(--green-bg);
  border-radius: 10px;
  border-left: 3px solid var(--green);
}

.case-result-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.case-result-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dark);
  font-weight: 500;
}

.highlight-blue {
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 2px 4px;
  border-radius: 4px;
}

.highlight-green {
  font-weight: 600;
  color: var(--green);
  background: var(--green-pale);
  padding: 2px 4px;
  border-radius: 4px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--blue);
}

.faq-question {
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.6;
}

.faq-q {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.faq-answer {
  padding: 0 28px 24px calc(28px + 32px);
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-mid);
}

/* CONTACT */
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.required {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  color: var(--blue);
  margin-left: 6px;
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dark);
  background: white;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 159, 196, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-mid);
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue);
}

.form-checkbox a {
  color: var(--blue);
  text-decoration: underline;
}

.form-submit {
  text-align: center;
}

/* FOOTER */
.footer {
  background: var(--text-dark);
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-logo img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid,
  .features-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container,
  .container-wide {
    padding: 0 24px;
  }
  
  .nav-inner {
    padding: 0 24px;
  }
  
  .hero-content {
    padding: 0 24px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .problem-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid,
  .features-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .job-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .case-card.expanded {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-lg {
    width: 100%;
  }
  
  .sticky-bar-text {
    display: none;
  }
  
  .hidden-mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .job-types-grid {
    grid-template-columns: 1fr;
  }
}
