/* ── HERO SECTION ── */
.hero-section {
  padding: 20px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-background-decor {
  position: absolute;
  top: 0;
  right: 0;

  font-size: 160px;
  font-weight: 800;
  color: var(--navy);
  opacity: .035;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyecatch {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 11px;

}

.hero-title {

  font-size: clamp(28px, 4.8vw, 54px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 15px;
}

.hero-title em {
  color: var(--accent);
  font-style: normal;
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.3;
}

.hero-copy {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 24px;
  max-width: 100%;
}

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

.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.hero-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 8px;
  border-radius: 20px;
  border: 1px solid #bcc6d4;
  color: var(--muted);
  background: #f0f3f8;
}

.hero-tag--accent {
  background: #fff7ee;
  border-color: #ffd0a0;
  color: #b85a00;
}

.hero-visual {
  height: 380px;
  border-radius: var(--rxl);
  background: var(--navy);
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 20px 40px rgba(18, 40, 76, 0.15);
}

.hero-visual-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-visual-title {

  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.hero-code-block {
  background: rgba(0, 0, 0, .45);
  border-radius: var(--r);
  padding: 12px 16px;

  font-size: 15px;
  line-height: 1.85;
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #e2e8f0;
  border-left: 3px solid var(--pb);
}

.hvis {
  height: 460px;
  border-radius: var(--rxl);
  background: #fff;
  /* 背景色に合わせる */
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hvis-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 上下左右の縁を自然に消すためのレイヤーマスク */
  mask-image:
    linear-gradient(to right, transparent, black 10%, black 90%, transparent),
    linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image:
    linear-gradient(to right, transparent, black 10%, black 90%, transparent),
    linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}


.hero-code-block .k {
  color: #f472b6;
}

.hero-code-block .cv {
  color: #60a5fa;
}

.hero-code-block .s {
  color: #34d399;
}

.hero-code-block .n {
  color: #fbbf24;
}

.hero-code-block .cur {
  display: inline-block;
  width: 2px;
  height: 11px;
  background: #60a5fa;
  animation: cursor-blink .8s step-end infinite;
  vertical-align: middle;
  margin-left: 1px;
}

@keyframes cursor-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-visual-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.hero-avatar-visual {
  height: 100px;
  display: flex;
  align-items: flex-end;
}

.hero-avatar-visual img {
  height: 100%;
  width: auto;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-avatar-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* 吹き出しの改良：左に突き出た形 */
.hero-bubble {
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  max-width: 170px;
  position: relative;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-bubble:hover {
  transform: translateY(-4px) scale(1.02);
}

.hero-bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
  border-width: 8px 12px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

.hero-bubble-small {
  display: block;
  font-size: 11px;
  color: var(--accent);
  margin-top: 2px;
}

.hero-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 10px rgba(240, 115, 0, 0.3);
}

/* ── STATS STRIP ── */
.stats-strip {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--accent);
  margin-top: 0;
}

.stats-item {
  padding: 20px 14px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .2);
}

.stats-item:last-child {
  border-right: none;
}

.stats-number {

  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stats-unit {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin-left: 2px;
}

.stats-label {
  font-size: 12px;
  color: rgba(255, 255, 255, .8);
  margin-top: 4px;
  font-weight: 600;
}

/* ── WHY SECTION ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.why-card {
  background: #fff;
  border-radius: var(--rxl);
  padding: 24px;
  border: 1px solid var(--bdr);
  position: relative;
  overflow: hidden;
  transition: .3s;
  cursor: default;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
  border-color: var(--accent);
}

.why-card-icon {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  opacity: .07;
}

.why-card-icon--accent {
  background: var(--accent);
}

.why-card-icon--blue {
  background: var(--pb);
}

.why-card-icon--green {
  background: var(--pg);
}

.why-card-number {

  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.why-card-number--accent {
  color: #fde8d0;
}

.why-card-number--blue {
  color: #d0ddf5;
}

.why-card-number--green {
  color: #d0f0e4;
}

.why-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.why-card-text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── REASON SECTION ── */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.reason-card {
  background: #fff;
  border-radius: var(--rl);
  padding: 0;
  border: 1px solid var(--bdr);
  display: flex;
  gap: 0;
  transition: .2s;
  overflow: hidden;
  align-items: stretch;
}

.reason-card:hover {
  box-shadow: 0 4px 20px rgba(240, 115, 0, .12);
  transform: translateY(-2px);
}

.reason-card-img {
  width: 140px;
  height: auto;
  min-height: 120px;
  object-fit: cover;
  flex-shrink: 0;
  mask-image: linear-gradient(to right, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to right, black 70%, transparent);
}

.reason-card-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reason-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.reason-card-icon--orange {
  background: #fff7ee;
}

.reason-card-icon--blue {
  background: #edf7ff;
}

.reason-card-icon--green {
  background: #f0fdf4;
}

.reason-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.4;
}

.reason-card-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    height: 320px;
  }

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

  .why-grid,
  .reason-grid {
    grid-template-columns: 1fr;
  }
}