/* ===========================================================================
   ServicesAidd — Sections Styles: Hero, Overview, 01-04 Details,
   Strengths, Steps, Bridges, and Cards.
   =========================================================================== */

/* --- 1. HERO --- */
.ad-hero {
  color: var(--white);
  background-color: var(--navy-deep);
  background-image: linear-gradient(rgba(143, 201, 245, .06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(143, 201, 245, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
  padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 64px);
}
.ad-hero__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px clamp(40px, 4.4vw, 68px);
}
.ad-hero__txt {
  flex: 9 1 360px;
  min-width: 0;
}
.ad-hero__eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue-pale);
  text-transform: uppercase;
}
.ad-hero__h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--white);
}
.ad-hero__lead {
  position: relative;
  z-index: 2;
  margin: 0 0 32px;
  max-width: 36em;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 2.0;
  color: var(--on-dark-muted);
}
.ad-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.ad-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(27, 111, 179, 0.4);
  transition: all .25s ease;
}
.ad-hero__cta:hover {
  background: #155d96;
  transform: translateY(-2px);
}
.ad-hero__jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--blue-pale);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.ad-hero__jump:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.ad-hero__jump:focus-visible {
  outline: 2px solid var(--blue-pale);
  outline-offset: 2px;
}

.ad-hero__fig {
  flex: 10 1 540px;
  min-width: 0;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  background: #0B192C;
}
.ad-hero__fig svg { display: block; width: 100%; height: auto; }

/* --- 2. OVERVIEW BAND (概要) --- */
.ad-overview {
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
  padding: clamp(36px, 4vw, 56px) 0;
}
.ad-overview__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.ad-overview__img-wrap {
  width: clamp(140px, 20vw, 220px);
  display: flex;
  justify-content: center;
}
.ad-overview__img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.ad-overview__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ad-overview__lead {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  line-height: 2.0;
  font-weight: 500;
  color: var(--navy);
}
.ad-overview__jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ad-overview__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(16, 42, 67, 0.04);
  transition: all .2s;
}
.ad-overview__pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}
.ad-overview__pill:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.ad-overview__pill span {
  color: var(--blue);
  font-size: 13px;
}
@media (max-width: 768px) {
  .ad-overview__grid { grid-template-columns: 1fr; }
  .ad-overview__img-wrap { margin: 0 auto; }
}

/* --- 3. ALL VIEW (提供の全体像: 4 Cards) --- */
.ad-all-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(22%, 240px)), 1fr));
  gap: 20px;
  margin: 36px 0 24px;
}
.ad-all-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 24px 20px 16px;
  box-shadow: 0 4px 16px rgba(16, 42, 67, 0.05);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all .25s ease;
}
.ad-all-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.1);
  border-color: var(--blue);
}
.ad-all-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.ad-all-card__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 10px;
}
.ad-all-card__num {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
}
.ad-all-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.ad-all-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ad-all-card__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}
.ad-all-card__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}
.ad-all-card__arrow {
  margin-top: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

/* --- 4. STEP 01 COMPARISON CARDS --- */
.ad-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(45%, 300px)), 1fr));
  gap: 24px;
  margin: 32px 0 24px;
}
.ad-compare__item {
  border-radius: 12px;
  padding: clamp(28px, 3.2vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ad-compare__item--standard {
  background: #F4F7FA;
  border: 1px solid #DCE4EC;
}
.ad-compare__item--aidd {
  background: var(--white);
  border: 1px solid #B8D6ED;
  border-top: 4px solid var(--blue);
  box-shadow: 0 12px 32px rgba(16, 42, 67, 0.08);
}
.ad-compare__tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ad-compare__item--standard .ad-compare__tag { color: var(--muted); }
.ad-compare__item--aidd .ad-compare__tag { color: var(--blue); }

.ad-compare__h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}

/* --- 5. 3-COLUMN CARDS --- */
.ad-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(30%, 280px)), 1fr));
  gap: 24px;
  margin: 32px 0 24px;
}
.ad-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 4px 16px rgba(16, 42, 67, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ad-card--accent { border-top: 4px solid var(--blue); }
.ad-card--navy { border-top: 4px solid var(--navy); }
.ad-card__num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.ad-card__h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}

/* --- 6. 2-COLUMN CARDS --- */
.ad-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(45%, 280px)), 1fr));
  gap: 20px;
  margin: 24px 0;
}
.ad-card-sm {
  background: #F7F9FB;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 22px 24px;
}
.ad-card-sm h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

/* --- 7. PROCESS STEPS (進め方 & 成果物プレビュー) --- */
.ad-steps-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.ad-step-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px clamp(32px, 5vw, 64px);
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line-strong);
}
.ad-step-row:last-child { border-bottom: 1px solid var(--line-strong); }
.ad-step-row__txt h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
}
.ad-step-row__num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue);
}
.ad-step-row__bullets {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ad-step-row__bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.ad-step-row__bullets li::before {
  content: "";
  width: 12px;
  height: 2px;
  background: var(--blue);
  flex: none;
}

/* Deliverable preview card */
.ad-preview-card {
  background: #F4F7FA;
  border: 1px solid #DCE4EC;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 12px rgba(16, 42, 67, 0.04);
}
.ad-preview-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #DCE4EC;
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.ad-preview-card__badge {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #102A43;
  background: #E2ECF5;
  padding: 4px 10px;
  border-radius: 4px;
}
.ad-preview-card__docname {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.ad-preview-card__mock {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 10px;
}
.ad-preview-card__note {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  margin: 0;
}

@media (max-width: 900px) {
  .ad-step-row { grid-template-columns: 1fr; }
}

/* --- 8. BRIDGE CARDS --- */
.ad-bridge {
  background: linear-gradient(135deg, #F4F7FA 0%, #E9F2F9 100%);
  border: 1px solid #B8D6ED;
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: clamp(28px, 3.2vw, 40px);
  margin: 36px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px clamp(24px, 4vw, 48px);
  align-items: center;
}
.ad-bridge__txt h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--navy);
}
.ad-bridge__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}
.ad-bridge__btn:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.ad-bridge__btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .ad-bridge { grid-template-columns: 1fr; }
}

/* --- 9. TEAM BAND --- */
.ad-band {
  overflow: hidden;
  position: relative;
  max-height: 420px;
}
.ad-band img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
}

/* --- 10. BEFORE / AFTER (人月型 vs 成果約束型) --- */
.ad-ba { margin: 28px 0 0; }
.ad-ba__say { display: grid; margin: 0 0 12px; }
.ad-ba__say p { grid-area: 1 / 1; align-self: start; margin: 0 0 8px; font-family: 'Noto Sans JP', sans-serif; font-size: 15px; line-height: 1.8; color: var(--ink); }
.ad-ba__say p:last-child { margin-bottom: 0; }
.ad-ba.is-live .ad-ba__say p { grid-area: 1 / 1; margin: 0; }
.ad-ba.is-live .ad-ba__say p:not(.is-on) { visibility: hidden; }
.ad-ba:not(.is-live) .ad-ba__say { display: block; }
.ad-ba__stage { border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); padding: 16px; }
.ad-ba__stage svg { display: block; width: 100%; height: auto; font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; max-width: 720px; margin-inline: auto; }
@media (max-width: 600px) { .ad-ba__stage { padding: 0; overflow: hidden; } }
.ad-seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ad-seg[hidden] { display: none; }
.ad-seg button { all: unset; box-sizing: border-box; position: relative; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font-size: 14px; font-weight: 700; color: var(--navy); transition: all .25s ease; }
.ad-seg button.is-on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.ad-seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* --- 11. WHY NAL MINI-VISUALS --- */
.ad-why__big { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); margin-top: 32px; border-top: 2px solid var(--navy); }
.ad-why__big > div { display: flex; flex-direction: column; padding: 28px 32px 28px 0; }
.ad-why__big > div + div { padding-left: 32px; border-left: 1px solid var(--line-strong); }
.ad-why__vis { display: block; width: 100%; max-width: 340px; height: auto; margin: auto 0 0; padding-top: 18px; font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; }
.ad-q-dot { transform-box: fill-box; transform-origin: center; }
.ad-q-dot:nth-of-type(1) { --d: .5s; } .ad-q-dot:nth-of-type(2) { --d: .9s; } .ad-q-dot:nth-of-type(3) { --d: 1.3s; }
html.js .ad-q-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .ad-why__big > .is-in .ad-q-line { animation: ad-draw 1s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
html.js .ad-why__big > .is-in .ad-q-dot { animation: ad-pop .4s calc(.3s + var(--d, 0s)) both; }
@keyframes ad-draw { to { stroke-dashoffset: 0; } }
@keyframes ad-pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (max-width: 760px) { .ad-why__big > div { padding-right: 0; } .ad-why__big > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-strong); } }

/* --- 12. OUTCOME METRIC BARS --- */
.ad-out__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin-top: 32px; border-top: 1px solid var(--line-strong); }
.ad-out__it { padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
@media (max-width: 1000px) { .ad-out__grid { grid-template-columns: 1fr; } }

/* --- 13. SIDE-BY-SIDE CARDS (.ad-cards-2) --- */
.ad-cards-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  margin: 28px 0 36px;
}
.ad-card-side {
  padding: 26px 28px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
}
.ad-card-side--prime {
  background: var(--white);
  border: 2px solid var(--blue);
  box-shadow: 0 10px 28px rgba(27, 111, 179, 0.1);
}
.ad-card-side__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #E2E8F0;
  color: #486581;
  margin: 0 0 12px;
}
.ad-card-side__badge--prime {
  background: #E8F4FD;
  color: var(--blue);
}
.ad-card-side__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}
.ad-card-side__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

/* --- 14. DUAL-TRACK MECHANISM (.ad-mechanism-box) --- */
.ad-mechanism-box {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.1fr);
  gap: 20px;
  align-items: stretch;
  margin: 36px 0 24px;
}
@media (max-width: 860px) {
  .ad-mechanism-box {
    grid-template-columns: 1fr;
  }
}
.ad-mech-lane {
  padding: 26px 28px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--blue);
  box-shadow: 0 4px 16px rgba(16, 42, 67, 0.04);
}
.ad-mech-lane--dev {
  border-top-color: #10B981;
}
.ad-mech-lane__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}
.ad-mech-lane__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
}
.ad-mech-sync {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px 20px;
  border-radius: 12px;
  background: #EFF6FC;
  border: 1px dashed var(--blue);
  max-width: 220px;
}
@media (max-width: 860px) {
  .ad-mech-sync {
    max-width: 100%;
  }
}
.ad-mech-sync__badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.ad-mech-sync__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- 15. 3-COLUMN CARD SYSTEM (.ad-cards-3) --- */
.ad-cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  margin: 32px 0 28px;
}
.ad-case-card,
.ad-kpi-card,
.ad-contract-card {
  padding: 28px 24px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 16px rgba(16, 42, 67, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ad-case-card:hover,
.ad-kpi-card:hover,
.ad-contract-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
}
.ad-case-card__num,
.ad-kpi-card__num,
.ad-contract-card__type {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin: 0 0 10px;
}
.ad-case-card__title,
.ad-kpi-card__title,
.ad-contract-card__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--navy);
  min-height: 2.8em;
}
.ad-case-card__desc,
.ad-kpi-card__desc,
.ad-contract-card__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
}
.ad-kpi-card {
  border-top: 3px solid var(--blue);
}
.ad-contract-card {
  border-top: 3px solid var(--navy);
}

/* --- 16. STANCE BOX (.ad-stance-box) --- */
.ad-stance-box {
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--blue);
  box-shadow: 0 4px 16px rgba(16, 42, 67, 0.04);
}
.ad-stance-box .ad-p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
}
.ad-stance-box .ad-p:last-child {
  margin-bottom: 0;
}

