/* Homepage "AI人材課題" section — replaces the former .trouble block. */
.issues {
  --ink: #0f1a4d;
  --text: #2a3358;
  --accent: #3b5bf6;
  --card: rgba(255, 255, 255, 0.78);
  --card-line: rgba(160, 175, 240, 0.35);
  position: relative;
  overflow: hidden;
  padding: 44px 24px 56px;
  background: #f4f6ff;
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.5;
  text-align: left;
  isolation: isolate;
}

:where(.issues) *, :where(.issues) *::before, :where(.issues) *::after {
  box-sizing: border-box;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
}

:where(.issues) :is(h2, h3, p, ul) { margin: 0; padding: 0; }
:where(.issues) ul { list-style: none; }

:where(.issues) svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.issues__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.issues__inner {
  max-width: 1540px;
  margin: 0 auto;
}

/* ---------- heading ---------- */
.issues__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: #3950d8;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.issues__eyebrow::before,
.issues__eyebrow::after {
  content: "";
  width: 96px;
  height: 1px;
  background: #6f82e8;
}

.issues__title {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(30px, 3.9vw, 66px);
  font-weight: 900;
  line-height: 1.24;
  text-align: center;
}

.issues__title span { display: block; }

.issues__title em {
  font-style: normal;
  background: linear-gradient(90deg, #2f7bff 0%, #3b5bf6 45%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.issues__lead {
  margin-top: 4px;
  color: #2c3560;
  font-size: clamp(14px, 1.45vw, 24px);
  font-weight: 500;
  text-align: center;
}

/* ---------- issue map ---------- */
.issues__map {
  display: grid;
  grid-template-columns: 1fr 441px 1fr;
  grid-template-rows: 187px 187px;
  grid-template-areas:
    "c1 core c2"
    "c3 core c4";
  gap: 32px 0;
  max-width: 1534px;
  margin: 24px auto 0;
}

.issue-card--01 { grid-area: c1; }
.issue-card--02 { grid-area: c2; }
.issue-card--03 { grid-area: c3; }
.issue-card--04 { grid-area: c4; }

.issue-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 186px;
  padding: 26px 20px 26px 28px;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(70, 90, 200, 0.08);
  backdrop-filter: blur(10px);
}

.issue-card__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: linear-gradient(145deg, #eef1ff, #e2e7fb);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.9), 0 8px 18px rgba(60, 80, 190, 0.1);
  color: #2f4de0;
}

.issue-card__icon svg {
  width: 54px;
  height: 54px;
  fill: currentColor;
  fill-opacity: 0.92;
  stroke-width: 1.2;
}

.issue-card__body {
  font-feature-settings: "palt";
  padding-left: 22px;
  border-left: 1px solid #cfd6f3;
}

.issue-card h3 {
  padding-right: 22px;
  color: #1330a6;
  font-size: clamp(20px, 1.5vw, 26px);
  font-weight: 900;
  line-height: 1.3;
}

.issue-card ul { margin-top: 14px; }

.issue-card li {
  position: relative;
  margin-top: 10px;
  padding-left: 42px;
  color: #2a3358;
  font-size: clamp(14px, 0.98vw, 17px);
  font-weight: 500;
}

.issue-card li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-8.5'/%3E%3C/svg%3E") center / 16px no-repeat,
    linear-gradient(135deg, #5b8cff, #4a5cf0);
  transform: translateY(-50%);
}

.issue-card__num {
  position: absolute;
  top: 16px;
  right: 26px;
  color: #6e7fd4;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

/* ---------- centre core ---------- */
.issues__core {
  position: relative;
  grid-area: core;
  display: grid;
  place-items: center;
}

.issues__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #5b72f0;
  overflow: visible;
}

.issues__wires path { stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.issues__wires circle { fill: #3b5bf6; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }

.issues__coreCard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 282px;
  height: 315px;
  justify-content: center;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 241, 255, 0.85));
  box-shadow: 0 24px 60px rgba(70, 90, 210, 0.18), inset 0 0 0 6px rgba(255, 255, 255, 0.5);
  text-align: center;
}

.issues__coreCard img {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(70, 70, 240, 0.35));
}

.issues__coreCard strong {
  margin-top: 8px;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.2;
}

.issues__coreCard span {
  width: 100%;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #c7cff2;
  color: #1b2552;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- feature bar ---------- */
.issues__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1534px;
  margin: 29px auto 0;
  padding: 24px 40px;
  border: 1px solid var(--card-line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(70, 90, 200, 0.08);
  backdrop-filter: blur(10px);
}

.issues__features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.issues__features li + li { border-left: 1px solid #c7cff2; }

.issues__featureIcon {
  display: grid;
  flex: none;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(60, 80, 190, 0.12);
  color: #1f3fd8;
}

.issues__featureIcon svg { width: 42px; height: 42px; fill: currentColor; fill-opacity: 0.9; stroke-width: 1.2; }

.issues__features strong {
  display: block;
  color: #1330a6;
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 900;
}

.issues__features p {
  margin-top: 8px;
  color: #3a4468;
  font-size: clamp(13px, 1.08vw, 18px);
}

/* ---------- tablet ---------- */
@media (max-width: 1279px) {
  .issues__map { grid-template-columns: 1fr 220px 1fr; grid-template-rows: auto auto; gap: 24px 0; margin-top: 32px; }
  .issues__wires { display: none; }
  .issues__coreCard { height: auto; }
  .issue-card { flex-direction: column; align-items: flex-start; gap: 14px; min-height: 0; padding: 22px 22px 24px; }
  .issue-card__icon { width: 64px; height: 64px; }
  .issue-card__icon svg { width: 32px; height: 32px; }
  .issue-card__body { padding-left: 0; border-left: 0; }
  .issues__coreCard { width: 200px; padding: 22px 16px; }
  .issues__coreCard img { width: 120px; }
  .issues__coreCard strong { font-size: 26px; }
  .issues__coreCard span { font-size: 13px; letter-spacing: 0.02em; }
  .issues__features { padding: 20px 16px; }
  .issues__features li { flex-direction: column; gap: 12px; padding: 0 12px; text-align: center; }
  .issues__featureIcon { width: 64px; height: 64px; }
  .issues__featureIcon svg { width: 32px; height: 32px; }
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  .issues { padding: 44px 16px 48px; }
  .issues__eyebrow { gap: 12px; font-size: 12px; letter-spacing: 0.06em; }
  .issues__eyebrow::before, .issues__eyebrow::after { width: 28px; }
  .issues__title { margin-top: 12px; font-size: clamp(24px, 6.9vw, 34px); }
  .issues__title em { display: block; }
  .issues__lead { max-width: 22em; margin: 12px auto 0; font-size: 14px; }

  .issues__map {
    grid-template-columns: 1fr;
    grid-template-areas: "core" "c1" "c2" "c3" "c4";
    gap: 12px;
    margin-top: 24px;
  }

  .issues__wires { display: none; }
  .issues__coreCard {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 14px;
    width: 100%;
    padding: 18px 20px;
    border-radius: 20px;
  }
  .issues__coreCard img { width: 68px; }
  .issues__coreCard strong { margin-top: 0; font-size: 28px; }
  .issues__coreCard span { margin-top: 12px; padding-top: 10px; font-size: 14px; }

  .issue-card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 16px 14px 18px; border-radius: 14px; }
  .issue-card__icon { width: 44px; height: 44px; }
  .issue-card__icon svg { width: 22px; height: 22px; }
  .issue-card h3 { padding-right: 26px; }
  .issue-card h3 { font-size: 18px; }
  .issue-card li { margin-top: 8px; padding-left: 28px; font-size: 13px; }
  .issue-card li::before { width: 21px; height: 21px; background-size: 13px, auto; }
  .issue-card__num { top: 16px; right: 16px; font-size: 14px; }

  .issues__features { grid-template-columns: 1fr; gap: 0; margin-top: 16px; padding: 6px 18px; border-radius: 16px; }
  .issues__features li { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 14px 0; text-align: left; }
  .issues__features li + li { border-top: 1px solid #d6dcf5; border-left: 0; }
  .issues__featureIcon { width: 52px; height: 52px; }
  .issues__featureIcon svg { width: 26px; height: 26px; }
  .issues__features strong { font-size: 16px; }
  .issues__features p { margin-top: 4px; font-size: 13px; }
}
