/* Mild Solt — AI / DX service page refinement (2026-08) */

.studio-ai {
  --dx-navy: #07263b;
  --dx-navy-2: #0a3650;
  --dx-cyan: #22c7e8;
  --dx-mist: #eef9fc;
  font-family: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

body.studio-ai .page-hero {
  min-height: min(660px, 76svh);
  padding-block: clamp(92px, 12vw, 156px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(238, 249, 252, 0.98), rgba(238, 249, 252, 0.77) 58%, rgba(238, 249, 252, 0.2)),
    radial-gradient(circle at 80% 32%, rgba(34, 199, 232, 0.28), transparent 30%),
    var(--dx-mist);
  border-bottom: 1px solid rgba(7, 38, 59, 0.19);
}

body.studio-ai .page-hero::before {
  content: "";
  position: absolute;
  width: min(580px, 52vw);
  aspect-ratio: 1;
  right: 2vw;
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  border: 1px solid rgba(7, 38, 59, 0.25);
  background:
    linear-gradient(rgba(7, 38, 59, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 38, 59, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
  box-shadow: 28px 28px 0 rgba(34, 199, 232, 0.13);
}

body.studio-ai .page-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.dx-rich-bg {
  position: absolute;
  z-index: 0;
  inset: -14% -4%;
  pointer-events: none;
  contain: paint;
  backface-visibility: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(0, var(--ms-layer-y, 0px), 0) scale(1.075);
}

.dx-rich-bg::after {
  content: "";
  position: absolute;
  width: 72%;
  height: 1px;
  top: 38%;
  left: -80%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 199, 232, 0.9), rgba(255, 112, 93, 0.72), transparent);
  box-shadow: 0 0 24px rgba(34, 199, 232, 0.42);
  transform: rotate(-7deg);
}

.dx-rich-bg.is-inview {
  will-change: transform;
}

.dx-rich-bg.is-inview::after {
  animation: dxRichBeam 8s cubic-bezier(.22, .9, .26, 1) infinite;
}

@keyframes dxRichBeam {
  0%, 14% { transform: translateX(0) rotate(-7deg); opacity: 0; }
  36% { opacity: 0.72; }
  74%, 100% { transform: translateX(245%) rotate(-7deg); opacity: 0; }
}

.dx-rich-bg--hero {
  opacity: 0.72;
  background-image:
    linear-gradient(90deg, rgba(247, 252, 253, 0.98) 0%, rgba(247, 252, 253, 0.88) 45%, rgba(247, 252, 253, 0.2) 100%),
    url("/assets/generated/web-craft-v1.webp");
  background-position: center;
  mix-blend-mode: multiply;
}

.dx-consult > .container {
  position: relative;
  z-index: 2;
}

.dx-rich-bg--workflow {
  opacity: 0.76;
  background-image:
    linear-gradient(90deg, rgba(7, 38, 59, 0.95), rgba(7, 38, 59, 0.68) 54%, rgba(7, 38, 59, 0.46)),
    linear-gradient(0deg, rgba(7, 38, 59, 0.86), transparent 58%),
    url("/assets/generated/ai-workflow-v1.webp");
  background-position: center;
}

body.studio-ai .page-hero h1 {
  max-width: 8em;
  color: var(--dx-navy);
  font-size: clamp(52px, 8.8vw, 116px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-shadow: none;
}

body.studio-ai .page-hero .lead {
  max-width: 730px;
  margin-top: 30px;
  color: #29485b;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 2;
}

.dx-hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dx-hero-action {
  min-width: 190px;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--dx-navy);
  border: 1px solid rgba(7, 38, 59, 0.46);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 5px 5px 0 rgba(7, 38, 59, 0.08);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.dx-hero-action--primary {
  border-color: var(--dx-cyan);
  background: var(--dx-cyan);
}

.dx-hero-action:hover {
  color: #fff;
  background: var(--dx-navy);
  border-color: var(--dx-navy);
  box-shadow: 7px 7px 0 rgba(34, 199, 232, 0.22);
  transform: translate(-2px, -2px);
}

body.studio-ai .page-hero > .en {
  right: -0.04em;
  bottom: -0.17em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(7, 38, 59, 0.12);
  font-family: "Syne", sans-serif;
  font-size: clamp(92px, 18vw, 250px);
  letter-spacing: -0.06em;
}

body.studio-ai .page-hero::after {
  display: none;
}

.dx-consult {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 10vw, 140px) 0;
  color: #f5fbfe;
  background:
    radial-gradient(circle at 88% 10%, rgba(34, 199, 232, 0.17), transparent 26%),
    linear-gradient(135deg, var(--dx-navy), var(--dx-navy-2));
}

.lower-angle {
  --lower-angle-size: clamp(36px, 4.5vw, 68px);
  margin-top: calc(var(--lower-angle-size) * -1);
}

.lower-angle--rise {
  clip-path: polygon(0 var(--lower-angle-size), 100% 0, 100% 100%, 0 100%);
}

.lower-angle--fall {
  clip-path: polygon(0 0, 100% var(--lower-angle-size), 100% 100%, 0 100%);
}

.dx-consult::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.46) 0.8px, transparent 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(90deg, transparent 5%, #000 70%, transparent 98%);
}

.dx-consult .container {
  position: relative;
  z-index: 1;
}

.dx-consult-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
  gap: clamp(46px, 8vw, 120px);
  align-items: end;
}

.dx-eyebrow {
  margin-bottom: 18px;
  color: var(--dx-cyan);
  font-family: "Syne", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dx-consult-head h2 {
  color: #fff;
  font-family: var(--f-min);
  font-size: clamp(37px, 5.3vw, 70px);
  line-height: 1.32;
  letter-spacing: 0.01em;
}

.dx-consult-head > p {
  color: rgba(236, 249, 255, 0.79);
  font-size: 14px;
  line-height: 2;
}

.dx-flow {
  margin-top: clamp(52px, 7vw, 82px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(189, 231, 242, 0.34);
  border-left: 1px solid rgba(189, 231, 242, 0.34);
  list-style: none;
}

.dx-flow li {
  min-height: 272px;
  padding: clamp(25px, 3vw, 36px);
  border-right: 1px solid rgba(189, 231, 242, 0.34);
  border-bottom: 1px solid rgba(189, 231, 242, 0.34);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.25s ease, transform 0.25s ease;
}

.dx-flow li:hover {
  transform: translateY(-4px);
  background: rgba(34, 199, 232, 0.09);
}

.dx-flow-no {
  color: var(--dx-cyan);
  font-family: "Syne", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.dx-flow h3 {
  margin-top: 47px;
  color: #fff;
  font-family: var(--f-min);
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.45;
}

.dx-flow p {
  margin-top: 14px;
  color: rgba(236, 249, 255, 0.72);
  font-size: 13px;
  line-height: 1.9;
}

.dx-usecases {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 22px;
  align-items: start;
}

.dx-usecases > p {
  padding-top: 7px;
  color: var(--dx-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dx-usecases ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

.dx-usecases li {
  padding: 8px 12px;
  color: rgba(245, 251, 254, 0.86);
  border: 1px solid rgba(189, 231, 242, 0.31);
  font-size: 12px;
  line-height: 1.5;
}

.studio-ai .tools-sec-page {
  background: #f7fbfc;
}

.studio-ai .tool-grid-page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: rgba(7, 38, 59, 0.32);
}

.studio-ai .tool-card-page {
  min-width: 0;
  border-color: rgba(7, 38, 59, 0.32);
}

.studio-ai .tool-card-cat,
.studio-ai .sec-title em {
  color: #0d6792;
}

.studio-ai .tool-link-btn {
  min-height: 44px;
  align-items: center;
}

.studio-ai .tool-price-am {
  font-family: "IBM Plex Sans JP", sans-serif;
  font-size: 17px;
}

.studio-ai .tool-price-nt {
  max-width: 210px;
}

.dx-data-note {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(24px, 3.5vw, 38px);
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) 1fr;
  gap: clamp(24px, 4vw, 52px);
  color: #fff;
  background: linear-gradient(135deg, var(--dx-navy), var(--dx-navy-2));
  border-left: 4px solid var(--dx-cyan);
}

.dx-data-kicker {
  color: var(--dx-cyan);
  font-family: "Syne", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dx-data-note h3 {
  color: #fff;
  font-family: var(--f-min);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.55;
}

.dx-data-note div p {
  margin-top: 12px;
  max-width: 760px;
  color: rgba(236, 249, 255, 0.76);
  font-size: 13.5px;
  line-height: 1.95;
}

.studio-ai .dx-evidence {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(238, 249, 252, 0.97), rgba(238, 249, 252, 0.85)),
    url("/assets/generated/continuous-improvement-v1.webp") center / cover no-repeat;
}

.dx-evidence .container {
  position: relative;
  z-index: 1;
}

.dx-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(7, 38, 59, 0.34);
  border-left: 1px solid rgba(7, 38, 59, 0.34);
}

.dx-case-grid article {
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(7, 38, 59, 0.34);
  border-bottom: 1px solid rgba(7, 38, 59, 0.34);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
}

.dx-case-meta {
  min-height: 3em;
  color: #0d6792;
  font-family: "Syne", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.5;
}

.dx-case-grid h3 {
  margin-top: 16px;
  color: var(--dx-navy);
  font-family: var(--f-min);
  font-size: clamp(21px, 2.2vw, 27px);
}

.dx-case-grid article > p:not(.dx-case-meta) {
  margin-top: 14px;
  flex: 1;
  color: #365264;
  font-size: 13.5px;
  line-height: 1.95;
}

.dx-case-grid a {
  margin-top: 24px;
  align-self: flex-start;
  color: var(--dx-navy);
  border-bottom: 1px solid var(--dx-cyan);
  font-size: 12.5px;
  font-weight: 700;
}

.studio-ai .custom-stat-card {
  background: linear-gradient(145deg, var(--dx-navy), var(--dx-navy-2));
}

.studio-ai .custom-stat-card .src,
.studio-ai .custom-stat-card .k {
  color: rgba(255, 255, 255, 0.7);
}

.studio-ai .custom-stat-card .big {
  color: var(--dx-cyan);
}

.studio-ai :is(a, button):focus-visible {
  outline: 3px solid #f08b4f;
  outline-offset: 4px;
}

.studio-ai .mobile-nav[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .dx-consult-head {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .dx-consult-head > p {
    max-width: 720px;
  }

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

  .studio-ai .tool-grid-page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dx-case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .studio-ai .tool-grid-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.studio-ai .page-hero {
    min-height: 580px;
    padding-block: 92px 76px;
  }

  body.studio-ai .page-hero::before {
    width: 86vw;
    right: -36vw;
    opacity: 0.72;
  }

  body.studio-ai .page-hero h1 {
    font-size: clamp(52px, 16vw, 74px);
  }

  body.studio-ai .page-hero .lead br {
    display: none;
  }

  .dx-hero-actions {
    flex-direction: column;
  }

  .dx-hero-action {
    width: 100%;
  }

  .dx-flow,
  .studio-ai .tool-grid-page {
    grid-template-columns: 1fr;
  }

  .dx-flow li {
    min-height: 0;
  }

  .dx-flow h3 {
    margin-top: 28px;
  }

  .dx-usecases {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dx-data-note {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .studio-ai .dx-evidence {
    background-image:
      linear-gradient(100deg, rgba(238, 249, 252, 0.97), rgba(238, 249, 252, 0.87)),
      url("/assets/generated/continuous-improvement-v1-960.webp");
  }

  .dx-rich-bg--hero {
    background-image:
      linear-gradient(90deg, rgba(247, 252, 253, 0.98) 0%, rgba(247, 252, 253, 0.88) 58%, rgba(247, 252, 253, 0.38) 100%),
      url("/assets/generated/web-craft-v1-960.webp");
    background-position: 58% center;
  }

  .dx-rich-bg--workflow {
    background-image:
      linear-gradient(90deg, rgba(7, 38, 59, 0.94), rgba(7, 38, 59, 0.67)),
      linear-gradient(0deg, rgba(7, 38, 59, 0.88), transparent 58%),
      url("/assets/generated/ai-workflow-v1-960.webp");
    background-position: 62% center;
  }

  .lower-angle {
    --lower-angle-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dx-flow li {
    transition: none;
  }

  .dx-flow li:hover {
    transform: none;
  }

  .dx-rich-bg {
    transform: scale(1.04);
  }

  .dx-rich-bg.is-inview::after {
    animation: none;
  }
}
