/* ============================================
   SOL+ — Shared Components
   ============================================ */

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero--center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.38) 100%);
}

.hero__overlay--strong {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 var(--space-lg) var(--space-4xl);
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero--center .hero__content {
  padding: 0 var(--space-lg);
  text-align: center;
}

.hero__tag {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-md);
  display: block;
}

.hero__title-en {
  font-family: var(--font-heading-en);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero__title-ja {
  font-family: var(--font-heading-ja);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: var(--space-xl);
}

.hero__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.hero--center .hero__desc {
  margin: 0 auto var(--space-xl);
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero--center .hero__cta {
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.5);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero__scroll-text {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ── Bento Grid ── */
.bento-grid {
  display: grid;
  gap: var(--space-sm);
}

.bento-grid--kohama {
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 380px 280px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.bento-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}

.bento-card:hover .bento-card__bg {
  transform: scale(1.04);
}

.bento-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.2) 100%);
  transition: background var(--transition-fast);
}

.bento-card:hover .bento-card__overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.28) 100%);
}

.bento-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  z-index: 1;
}

.bento-card__verb {
  font-family: var(--font-heading-ja);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.2;
  display: block;
  margin-bottom: 6px;
}

.bento-card__brand {
  font-family: var(--font-heading-en);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.bento-card__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

/* ── Number Card ── */
.number-card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-b2c);
  text-align: center;
}

.number-card__num {
  font-family: var(--font-heading-en);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  color: var(--color-teal-700);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.number-card__unit {
  font-size: 20px;
}

.number-card__label {
  font-size: 13px;
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
}

/* ── Stat cards (B2B) ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-b2b);
  text-align: center;
}

.stat-card__num {
  font-family: var(--font-heading-en);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  color: var(--color-teal-700);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.stat-card__label {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ── Overlap Section ── */
.overlap-section {
  position: relative;
}

.overlap-section__img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.overlap-section__card {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: var(--space-2xl) var(--space-3xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: calc(100% - 80px);
  text-align: center;
}

/* Left variant */
.overlap-section__card--left {
  left: var(--space-4xl);
  transform: none;
  bottom: -48px;
  text-align: left;
}

/* ── CTA Band ── */
.cta-band {
  background-color: var(--color-teal-700);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-band__title {
  font-family: var(--font-heading-ja);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.cta-band__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-xl);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--color-sand-500);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: var(--space-2xl);
  align-items: center;
}

.timeline-item:nth-child(odd) .timeline-item__content {
  grid-column: 1;
  text-align: right;
  padding-right: var(--space-xl);
}

.timeline-item:nth-child(odd) .timeline-item__img {
  grid-column: 3;
  grid-row: 1;
  padding-left: var(--space-xl);
}

.timeline-item:nth-child(even) .timeline-item__content {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
  padding-left: var(--space-xl);
}

.timeline-item:nth-child(even) .timeline-item__img {
  grid-column: 1;
  grid-row: 1;
  padding-right: var(--space-xl);
  text-align: right;
}

.timeline-item__dot {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-item__dot-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-teal-700);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-teal-500);
}

.timeline-item__time {
  font-family: var(--font-heading-en);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-teal-700);
  margin-bottom: 6px;
}

.timeline-item__title {
  font-family: var(--font-heading-ja);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 4px;
}

.timeline-item__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.timeline-item__img-el {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ── Field Cards (Consulting) ── */
.field-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.field-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-b2b);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.field-card:hover {
  box-shadow: var(--shadow-md);
}

.field-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-teal-700);
  font-size: 20px;
}

.field-card__body {
  flex: 1;
}

.field-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 2px;
}

.field-card__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.field-card__arrow {
  color: var(--color-teal-500);
  font-size: 18px;
  transition: transform var(--transition-fast);
}

.field-card:hover .field-card__arrow {
  transform: translateX(4px);
}

/* ── Steps (Flow) ── */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background-color: var(--color-teal-300);
}

.flow-step {
  text-align: center;
  position: relative;
}

.flow-step__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-teal-700);
  color: #fff;
  font-family: var(--font-heading-en);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 1;
}

.flow-step__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 6px;
}

.flow-step__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ── Cross-sell cards ── */
.crosssell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.crosssell-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  text-decoration: none;
  display: block;
}

.crosssell-card:hover .crosssell-card__bg {
  transform: scale(1.05);
}

.crosssell-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.crosssell-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}

.crosssell-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  z-index: 1;
}

.crosssell-card__label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
  display: block;
}

.crosssell-card__title {
  font-family: var(--font-heading-ja);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.crosssell-card__sub {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

/* ── Results cards (horizontal scroll) ── */
.results-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-sm);
  position: relative;
}

.results-scroll-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to right, transparent, var(--color-white));
  pointer-events: none;
}

.results-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.results-scroll {
  display: flex;
  gap: var(--space-md);
  padding-right: 80px;
  width: max-content;
}

.result-card {
  width: 300px;
  flex-shrink: 0;
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.result-card__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal-700);
  background-color: var(--color-teal-100);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.result-card__num {
  font-family: var(--font-heading-en);
  font-size: 52px;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1;
  margin-bottom: 8px;
}

.result-card__num span {
  font-size: 24px;
}

.result-card__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ── Tag badges ── */
.tag-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-fast);
}

.tag-card:hover {
  box-shadow: var(--shadow-md);
}

.tag-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--color-teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal-700);
  font-size: 16px;
  flex-shrink: 0;
}

.tag-card__text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-charcoal);
}

.tag-card__sub {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps::before {
    display: none;
  }

  .crosssell-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .overlap-section__card--left {
    left: var(--space-2xl);
    bottom: -40px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
  }

  .timeline-item:nth-child(odd) .timeline-item__content,
  .timeline-item:nth-child(even) .timeline-item__content {
    grid-column: 1;
    text-align: left;
    padding: 0;
    order: 2;
  }

  .timeline-item:nth-child(odd) .timeline-item__img,
  .timeline-item:nth-child(even) .timeline-item__img {
    grid-column: 1;
    grid-row: auto;
    padding: 0;
    order: 3;
    text-align: left;
  }

  .timeline-item__dot {
    display: none;
  }
}

@media (max-width: 767px) {
  .bento-grid--kohama {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-card {
    height: 260px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .overlap-section__card {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: auto;
    margin: var(--space-md);
    border-radius: var(--radius-md);
  }

  .overlap-section__card--left {
    position: relative;
    bottom: auto;
    left: auto;
    margin: var(--space-md);
  }
}
