/* AI・デジタル活用支援ページ
   CMSテンプレートの <main> は class を変更できないため、
   各トップレベル <section> に .p-ai を付けてスコープする。 */
.p-ai {
  --ai-primary: #1c2a74;
  --ai-primary-dark: #101d5c;
  --ai-text: #333333;
  --ai-surface: #f7fbff;
  --ai-aqua: #d2eeee;
  --ai-aqua-strong: #52bfd3;
  --ai-accent: #ff6200;
  --ai-border: #d8e6ed;
  --ai-font-en: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --ai-font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  overflow-x: clip;
  background: #fff;
  color: var(--ai-text);
}

.p-ai,
.p-ai *,
.p-ai *::before,
.p-ai *::after {
  box-sizing: border-box;
}

.c-contents.p-ai,
.c-contents + .c-contents.p-ai {
  position: relative;
  margin: 0;
  padding: 4rem 0;
}

.p-ai .c-contents__inner {
  position: relative;
  z-index: 1;
  max-width: 1368px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.p-ai.c-contents[id] {
  scroll-margin-top: 6rem;
}

.p-ai .c-heading-lv2 {
  margin: 0;
  color: var(--ai-primary);
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  line-height: 1.45;
  text-align: center;
}

.p-ai .p-ai-section-label,
.p-ai .p-ai-fv__eyebrow {
  margin: 0 0 0.65rem;
  color: var(--ai-primary);
  font-family: var(--ai-font-en);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
}

.p-ai .p-ai-section-lead {
  max-width: 52rem;
  margin: 1rem auto 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 0.9rem;
  line-height: 1.9;
  text-align: center;
}

/* Line breaking: 文節単位で折り返し、行末の1〜2文字の孤立を避ける */
.p-ai h2,
.p-ai h3,
.p-ai h4,
.p-ai p,
.p-ai summary,
.p-ai .p-ai-strength__visual strong,
.p-ai .p-ai-strength__visual span {
  word-break: auto-phrase;
}

/* 見出し・中央揃えの導入文は行長をそろえる */
.p-ai h2,
.p-ai h3,
.p-ai h4,
.p-ai .p-ai-section-lead,
.p-ai .p-ai-fv__lead,
.p-ai .p-ai-problem__bridge,
.p-ai .p-ai-process-list p,
.p-ai .p-ai-cta__body > p {
  text-wrap: balance;
}

/* 左揃えの本文は箱幅いっぱいに組み、文末だけを1語として保持する */
.p-ai .p-ai-nowrap {
  display: inline-block;
}

.p-ai ul,
.p-ai ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-ai svg {
  display: block;
}

.p-ai-button {
  display: inline-flex;
  min-width: 15.5rem;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  border-radius: 9999px;
  background: var(--ai-primary);
  box-shadow: 0 6px 14px rgba(28, 42, 116, 0.2);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.p-ai-button > span {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ai-primary);
  font-size: 1rem;
  line-height: 1;
}

/* Hero
   共通 .l-container.is-webpage の上余白を打ち消し、パンくず直下に付ける（margin collapse で 0 になる） */
.p-ai-fv {
  position: relative;
  overflow: hidden;
  margin-top: -2.5rem;
  background: #f7fbff url("/assets/images/service/ai-digital/hero-background.webp") center / cover no-repeat;
}

.p-ai-fv__inner {
  position: relative;
  max-width: 1368px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}

.p-ai-fv__copy {
  position: relative;
  z-index: 3;
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.p-ai .p-ai-fv__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.p-ai-fv__title {
  margin: 0;
  color: var(--ai-primary);
  font-size: clamp(1.85rem, 7.8vw, 3.65rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.015em;
}

.p-ai-fv__title > span {
  display: block;
  overflow-wrap: anywhere;
}

.p-ai-fv__lead {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.p-ai-fv .p-ai-button {
  margin-top: 1.5rem;
}

.p-ai .p-ai-fv__media {
  position: relative;
  z-index: 2;
  right: auto;
  bottom: auto;
  display: block;
  width: calc(100% + 3rem);
  margin: 1.25rem -1.5rem 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}

.p-ai .p-ai-fv__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Problem */
.p-ai.p-ai-problem {
  padding-top: 4.5rem;
  background: #fff;
}

.p-ai-problem::before {
  position: absolute;
  top: -6rem;
  right: -8rem;
  width: 20rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(210, 238, 238, 0.28);
  content: "";
}

.p-ai-concern-list {
  display: grid;
  gap: 1.15rem;
  max-width: 72rem;
  margin: 2.2rem auto 0 !important;
}

.p-ai-concern-list > li {
  display: flex;
  min-height: 8.5rem;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid rgba(226, 238, 244, 0.5);
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 14px 34px rgba(28, 42, 116, 0.08), 0 4px 12px rgba(28, 42, 116, 0.04);
}

.p-ai-concern-list__icon {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  flex: 0 0 4.5rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(210, 238, 238, 0.8);
  color: var(--ai-primary);
}

.p-ai-concern-list__icon svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: currentColor;
}

.p-ai-concern-list h3 {
  margin: 0;
  color: var(--ai-primary);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, "Noto Sans JP", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.p-ai-concern-list p {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.p-ai-problem__bridge {
  max-width: 72rem;
  margin: 1.4rem auto 0;
  color: var(--ai-primary);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, "Noto Sans JP", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

/* Four-step support */
.p-ai.p-ai-process {
  overflow: hidden;
  padding-top: 4.8rem;
  padding-bottom: 5.2rem;
  background: #e8f8f9;
}

.p-ai-process::before,
.p-ai-process::after {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  content: "";
}

.p-ai-process::before {
  top: -15rem;
  left: -8rem;
  width: 44rem;
  height: 28rem;
  transform: rotate(-13deg);
}

.p-ai-process::after {
  right: -18rem;
  bottom: -17rem;
  width: 49rem;
  height: 31rem;
  transform: rotate(-18deg);
}

.p-ai-process-list {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 2.6rem auto 0 !important;
}

.p-ai-process-list > li {
  position: relative;
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #fff;
  padding: 2.8rem 1rem 1.35rem;
  box-shadow: 0 4px 14px rgba(28, 42, 116, 0.07);
  text-align: center;
}

.p-ai-process-list > li:not(:last-child)::after {
  display: none;
}

.p-ai-process-list__step {
  position: absolute;
  top: -1.7rem;
  left: 50%;
  display: flex;
  width: 3.4rem;
  height: 3.4rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(155deg, #6fcede 0%, #52bfd3 45%, #3aa6c9 100%);
  box-shadow: 0 0 0 0.3rem rgba(82, 191, 211, 0.16);
  color: #fff;
  font-family: var(--ai-font-en);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.p-ai-process-list__step,
.p-ai-process-list__step strong {
  color: #fff;
}

.p-ai-process-list__step strong {
  margin-top: 0.1rem;
  font-size: 1.08rem;
}

.p-ai-process-list__icon {
  display: grid;
  height: 3.6rem;
  place-items: center;
  color: #1145af;
}

.p-ai-process-list__icon svg {
  width: 3.4rem;
  height: 3.4rem;
  fill: currentColor;
}

.p-ai-process-list h3 {
  margin: 0.65rem 0 0;
  color: var(--ai-primary);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.p-ai-process-list p {
  margin: 0.6rem 0 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 0.75rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* Solution cards */
.p-ai.p-ai-solution {
  padding-top: 4.8rem;
  padding-bottom: 5rem;
  background: #fff;
}

.p-ai-solution-list {
  display: grid;
  gap: 1.15rem;
  max-width: 76rem;
  margin: 2.3rem auto 0 !important;
  counter-reset: solution;
}

.p-ai-solution-list > li {
  position: relative;
  display: flex;
  min-height: 24rem;
  flex-direction: column;
  border: 1px solid rgba(226, 238, 244, 0.5);
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 14px 34px rgba(28, 42, 116, 0.08), 0 4px 12px rgba(28, 42, 116, 0.04);
}

.p-ai-solution-list__number {
  align-self: flex-start;
  border-bottom: 2px solid var(--ai-aqua-strong);
  color: var(--ai-aqua-strong);
  font-family: var(--ai-font-en);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.p-ai-solution-list h3 {
  margin: 1.1rem 0 0;
  color: var(--ai-primary);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}

.p-ai-solution-list p {
  margin: 0.8rem 0 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 0.82rem;
  line-height: 1.75;
}

.p-ai-solution-list__visual {
  display: grid;
  min-height: 6rem;
  flex: 1;
  place-items: center;
}

.p-ai-solution-list__visual img {
  width: auto;
  max-width: 82%;
  max-height: 10rem;
  height: auto;
}

/* AST value */
.p-ai.p-ai-strength {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3.8rem 0;
  background: var(--ai-primary-dark) url("/assets/images/service/ai-digital/strength-background.webp") center / cover no-repeat;
  color: #fff;
}

.p-ai-strength::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 37, 105, 0.9), rgba(11, 37, 104, 0.7));
  content: "";
}

.p-ai-strength .c-contents__inner {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 2rem;
}

.p-ai-strength .p-ai-section-label,
.p-ai-strength .c-heading-lv2 {
  color: #fff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  text-align: left;
}

.p-ai-strength .p-ai-section-label {
  margin-bottom: 0.65rem;
  color: #9edcf0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.p-ai-strength .c-heading-lv2 {
  margin: 0;
  font-size: clamp(1.18rem, 4.25vw, 2.25rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.05em;
}

.p-ai-strength .c-heading-lv2 > span {
  display: block;
  white-space: nowrap;
}

.p-ai-strength__body p:last-child {
  margin: 1.15rem 0 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 0.78rem;
  line-height: 1.95;
  letter-spacing: 0.03em;
}

.p-ai-strength__visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0;
}

.p-ai-strength__visual > li {
  display: flex;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(222, 243, 255, 0.78);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(68, 145, 205, 0.23), rgba(10, 40, 109, 0.48));
  padding: 0.5rem;
  box-shadow: inset 0 0 1.8rem rgba(122, 194, 235, 0.1);
  text-align: center;
}

.p-ai-strength__visual svg {
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.4rem;
  fill: #fff;
}

.p-ai-strength__visual strong {
  color: #fff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
}

.p-ai-strength__visual span {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 0.54rem;
  line-height: 1.55;
}

/* Initiatives */
.p-ai.p-ai-initiatives {
  position: relative;
  overflow: hidden;
  padding-top: 4.7rem;
  padding-bottom: 4.8rem;
  background:
    radial-gradient(circle at 8% 90%, rgba(59, 196, 216, 0.14), transparent 24rem),
    radial-gradient(circle at 95% 5%, rgba(210, 238, 238, 0.88), transparent 22rem),
    var(--ai-surface);
}

.p-ai-initiative-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 78rem;
  margin: 2.5rem auto 0;
}

.p-ai-initiative-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(163, 181, 198, 0.52);
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(28, 42, 116, 0.09);
}

.p-ai-initiative-card__thumb {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  background: #cbeaf3;
  color: #1864aa;
}

.p-ai-initiative-card__thumb::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 61, 120, 0.16), rgba(0, 168, 200, 0.04) 58%, rgba(255, 255, 255, 0.08));
  content: "";
  pointer-events: none;
}

.p-ai-initiative-card__thumb svg {
  width: 82%;
  height: 82%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.p-ai-initiative-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.p-ai-initiative-card__thumb text {
  fill: currentColor;
  stroke: none;
  font-family: var(--ai-font-en);
  font-size: 13px;
  font-weight: 800;
}

.p-ai-initiative-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.15rem 1.35rem 3.45rem;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

.p-ai .p-ai-initiative-card h3 {
  margin: 0;
  color: #1545aa;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.6;
}

.p-ai .p-ai-initiative-card__summary {
  margin: 0.55rem 0 0;
  color: #4b6078;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif !important;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.75;
}

.p-ai .p-ai-initiative-card__button {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.6rem;
  width: 100%;
  min-height: 100%;
  padding: 1.15rem 1.35rem;
  border: 0;
  background: transparent;
  color: #1545aa;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.p-ai-initiative-card__button > span {
  color: var(--ai-accent);
  font-size: 1rem;
  line-height: 1;
}

/* FAQ */
.p-ai.p-ai-faq {
  overflow: hidden;
  padding-top: 4.6rem;
  padding-bottom: 4.8rem;
  background: #fff;
}

.p-ai-faq::before {
  position: absolute;
  top: -13rem;
  left: -12rem;
  width: 34rem;
  height: 27rem;
  border-radius: 50%;
  background: rgba(210, 238, 238, 0.28);
  content: "";
}

.p-ai-faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 72rem;
  margin: 2rem auto 0;
}

.p-ai-faq-list details {
  overflow: hidden;
  border: 1px solid var(--ai-border);
  border-radius: 0.45rem;
  background: #fff;
  box-shadow: 0 3px 10px rgba(28, 42, 116, 0.05);
}

.p-ai-faq-list summary {
  position: relative;
  display: flex;
  min-height: 3.4rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 3rem 0.75rem 0.9rem;
  color: var(--ai-primary);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}

.p-ai-faq-list summary::-webkit-details-marker {
  display: none;
}

.p-ai-faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 0.55rem;
  height: 0.55rem;
  transform: translateY(-70%) rotate(45deg);
  border-right: 2px solid #2464c1;
  border-bottom: 2px solid #2464c1;
  content: "";
}

.p-ai-faq-list details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.p-ai-faq-list summary > span,
.p-ai-faq-list details > div > span {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 1.75rem;
  place-items: center;
  /* Align the visible glyph within the circle, accounting for font metrics. */
  padding-bottom: 0.25em;
  border-radius: 50%;
  background: #1240a6;
  color: #fff;
  font-family: var(--ai-font-en);
  font-weight: 800;
  line-height: 1;
}

.p-ai-faq-list details > div {
  display: flex;
  gap: 0.8rem;
  border-top: 1px solid #edf2f6;
  padding: 1rem 3rem 1.25rem 0.9rem;
  background: var(--ai-surface);
}

.p-ai-faq-list details > div > span {
  background: var(--ai-aqua-strong);
}

.p-ai-faq-list details > div p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.8;
}

/* Contact
   共通 .l-wrapper.is-aqua .l-container の下余白（SPのみ 3.75rem、PCは 0）を打ち消し、
   問い合わせ帯に隙間なく接続する */
.p-ai.p-ai-contact {
  overflow: hidden;
  padding: 0;
  background: #f5fcff;
}

.c-contents + .c-contents.p-ai.p-ai-contact {
  margin-bottom: -3.75rem;
}

.p-ai-contact .c-contents__inner {
  max-width: none;
  margin: 0;
  padding: 0;
}

.p-ai-cta {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 29rem;
  background: #f8fdff;
}

.p-ai-cta::before {
  position: absolute;
  z-index: 1;
  top: -8rem;
  right: -9rem;
  width: 32rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(210, 238, 238, 0.68);
  content: "";
}

.p-ai-cta__media {
  display: block;
  overflow: hidden;
  min-height: 12rem;
}

.p-ai-cta__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.p-ai-cta__body {
  position: relative;
  z-index: 3;
  padding: 2.7rem 1.5rem 5rem;
  text-align: center;
}

.p-ai-cta__body > p:not(.p-ai-section-label) {
  max-width: 52rem;
  margin: 1rem auto 0;
  font-size: 0.9rem;
  line-height: 1.9;
}

.p-ai-cta .p-ai-button {
  margin-top: 1.4rem;
}

@media (min-width: 768px) {
  .c-contents.p-ai,
  .c-contents + .c-contents.p-ai {
    padding-top: 5.4rem;
    padding-bottom: 5.4rem;
  }

  .p-ai .c-contents__inner {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .p-ai .p-ai-section-lead {
    font-size: 0.95rem;
  }

  .p-ai-fv,
  .p-ai-fv__inner {
    min-height: 28rem;
  }

  .p-ai-fv {
    margin-top: -3.75rem;
  }

  .c-contents + .c-contents.p-ai.p-ai-contact {
    margin-bottom: 0;
  }

  .p-ai-fv__inner {
    display: flex;
    align-items: center;
    padding: 2rem;
  }

  .p-ai-fv__copy {
    width: 52%;
    max-width: 43rem;
    margin: 0;
    text-align: left;
  }

  .p-ai .p-ai-fv__eyebrow {
    font-size: 0.95rem;
    text-align: left;
  }

  .p-ai-fv__title {
    font-size: clamp(2.65rem, 4vw, 3.65rem);
    line-height: 1.3;
  }

  .p-ai-fv__title > span {
    white-space: nowrap;
  }

  .p-ai-fv__lead {
    font-size: 0.92rem;
  }

  .p-ai .p-ai-fv__media {
    position: absolute;
    top: 50%;
    right: min(0px, calc((1368px - 100vw) / 2));
    bottom: auto;
    width: 58%;
    margin: 0;
    transform: translateY(-50%);
    mask-image: linear-gradient(to right, transparent, #000 18%),
      linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
    mask-composite: intersect;
  }

  .p-ai-concern-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-ai-process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-ai-process-list > li:not(:last-child)::after {
    display: none;
  }

  .p-ai-solution-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .p-ai-strength__visual {
    max-width: 34rem;
    gap: 0.65rem;
  }

  .p-ai-strength__visual strong {
    font-size: 0.82rem;
  }

  .p-ai-strength__visual span {
    font-size: 0.62rem;
  }

  .p-ai-initiative-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .p-ai-initiative-card {
    grid-column: span 2;
  }

  .p-ai-initiative-card:nth-child(4):nth-last-child(2) {
    grid-column: 2 / span 2;
  }

  .p-ai-cta {
    min-height: 24rem;
  }

  .p-ai-cta__media {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 32%;
    min-height: 0;
    -webkit-mask-image: linear-gradient(to right, #000 58%, transparent 100%);
    mask-image: linear-gradient(to right, #000 58%, transparent 100%);
  }

  .p-ai-contact .c-contents__inner {
    padding-right: 0;
    padding-left: 0;
  }

  .p-ai-cta__body {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 24rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 3.5rem 10% 6.5rem;
  }

  .p-ai-cta .c-heading-lv2 {
    max-width: none;
  }

  .p-ai-cta__body > p:not(.p-ai-section-label) {
    font-size: 0.96rem;
  }

}

@media (min-width: 900px) {
  .p-ai .p-ai-fv__media img {
    max-height: 28rem;
    object-fit: contain;
    object-position: right center;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .p-ai-fv,
  .p-ai-fv__inner {
    min-height: 0;
  }

  .p-ai-fv__inner {
    display: block;
    padding: 2.5rem 1.5rem 0;
  }

  .p-ai-fv__copy {
    width: auto;
    max-width: 38rem;
    margin: 0 auto;
    text-align: center;
  }

  .p-ai .p-ai-fv__eyebrow {
    font-size: 0.78rem;
    text-align: center;
  }

  .p-ai-fv__title {
    font-size: clamp(1.85rem, 7.8vw, 3.65rem);
    line-height: 1.35;
  }

  .p-ai-fv__title > span {
    white-space: normal;
  }

  .p-ai-fv__lead {
    font-size: 0.88rem;
  }

  .p-ai .p-ai-fv__media {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: calc(100% + 3rem);
    margin: 1.25rem -1.5rem 0;
    transform: none;
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  }
}

/*
 * タブレット（768〜1023px）
 * 共通CSSが html{font-size:1.5625vw} とするため、768pxでは1rem=12pxまで縮む。
 * 本文14px・ラベル11〜12px以上を下限として確保する（1024pxでは従来値のまま）。
 */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .p-ai .p-ai-section-label,
  .p-ai.p-ai-strength .p-ai-section-label {
    font-family: var(--ai-font-en);
    font-size: max(0.7rem, 12px);
  }

  .p-ai .p-ai-fv__eyebrow {
    font-family: var(--ai-font-en);
    font-size: max(0.95rem, 13px);
  }

  .p-ai .p-ai-fv__lead {
    font-family: var(--ai-font-ja);
    font-size: max(0.92rem, 15px);
  }

  .p-ai .p-ai-button {
    min-width: max(15.5rem, 230px);
    min-height: max(3.35rem, 48px);
    font-family: var(--ai-font-ja);
    font-size: max(0.9rem, 15px);
  }

  .p-ai .p-ai-section-lead {
    font-size: max(0.95rem, 15px);
  }

  .p-ai .p-ai-concern-list h3 {
    font-size: max(1.05rem, 16px);
  }

  .p-ai .p-ai-concern-list p {
    font-family: var(--ai-font-ja);
    font-size: max(0.82rem, 14px);
  }

  .p-ai .p-ai-problem__bridge {
    font-size: max(0.88rem, 15px);
  }

  .p-ai .p-ai-process-list__step {
    width: max(3.4rem, 52px);
    height: max(3.4rem, 52px);
    top: min(-1.7rem, -26px);
    font-size: max(0.7rem, 11px);
  }

  .p-ai .p-ai-process-list__step strong {
    font-size: max(1.08rem, 17px);
  }

  .p-ai .p-ai-process-list h3 {
    font-size: max(0.95rem, 16px);
  }

  .p-ai .p-ai-process-list p {
    font-size: max(0.75rem, 14px);
  }

  .p-ai .p-ai-solution-list h3 {
    font-size: max(1.1rem, 17px);
  }

  .p-ai .p-ai-solution-list p {
    font-size: max(0.82rem, 14px);
  }

  .p-ai .p-ai-strength__body p:last-child {
    font-size: max(0.84rem, 14px);
  }

  .p-ai .p-ai-strength__visual {
    max-width: max(34rem, 520px);
  }

  .p-ai .p-ai-strength__visual svg {
    width: max(1.8rem, 32px);
    height: max(1.8rem, 32px);
  }

  .p-ai .p-ai-strength__visual strong {
    font-family: var(--ai-font-ja);
    font-size: max(0.82rem, 15px);
  }

  .p-ai .p-ai-strength__visual span {
    font-family: var(--ai-font-ja);
    font-size: max(0.62rem, 12px);
  }

  /* 文字を大きくした分、カードは2列にして1行の文字数を確保する */
  .p-ai .p-ai-initiative-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .p-ai .p-ai-initiative-card,
  .p-ai .p-ai-initiative-card:nth-child(4):nth-last-child(2) {
    grid-column: span 2;
  }

  .p-ai .p-ai-initiative-card:last-child:nth-child(odd) {
    grid-column: 2 / span 2;
  }

  .p-ai .p-ai-initiative-card h3 {
    font-size: max(1rem, 16px);
  }

  .p-ai .p-ai-initiative-card__summary {
    font-size: max(0.78rem, 14px);
  }

  .p-ai .p-ai-initiative-card__button {
    font-size: max(0.72rem, 13px);
  }

  .p-ai .p-ai-initiative-card__body {
    padding-bottom: max(3.45rem, 48px);
  }

  .p-ai .p-ai-faq-list summary {
    font-family: var(--ai-font-ja);
    font-size: max(0.84rem, 15px);
  }

  .p-ai .p-ai-faq-list summary > span,
  .p-ai .p-ai-faq-list details > div > span {
    width: max(1.75rem, 26px);
    height: max(1.75rem, 26px);
    flex-basis: max(1.75rem, 26px);
  }

  .p-ai .p-ai-faq-list details > div p {
    font-family: var(--ai-font-ja);
    font-size: max(0.82rem, 14px);
  }

  .p-ai .p-ai-cta__body > p:not(.p-ai-section-label) {
    font-family: var(--ai-font-ja);
    font-size: max(0.96rem, 15px);
  }

}

@media (min-width: 1024px) {
  .p-ai-process-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  /* 説明文の行数が違ってもアイコン・見出しの高さを4枚で揃える */
  .p-ai-process-list > li {
    justify-content: flex-start;
  }

  .p-ai-process-list > li:not(:last-child)::after {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: calc(100% + 1rem);
    display: block;
    width: 0.7rem;
    height: 0.7rem;
    bottom: auto;
    transform: translate(-50%, -50%) rotate(-45deg);
    border: solid var(--ai-accent);
    border-width: 0 2px 2px 0;
    content: "";
  }

  .p-ai.p-ai-strength {
    padding: 4.35rem 0;
  }

  .p-ai-strength .c-contents__inner {
    grid-template-columns: minmax(0, 0.86fr) minmax(34rem, 1.14fr);
    align-items: center;
    gap: 3rem;
  }

  .p-ai-strength .p-ai-section-label {
    margin-bottom: 0.75rem;
  }

  .p-ai-strength .c-heading-lv2 {
    font-size: clamp(1.75rem, 2.35vw, 2.45rem);
  }

  .p-ai-strength__body p:last-child {
    max-width: 34rem;
    font-size: 0.84rem;
  }

  .p-ai-strength__visual {
    display: flex;
    max-width: none;
    min-height: 13.5rem;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.55rem, 0.9vw, 0.9rem);
    padding-left: 0;
  }

  .p-ai-strength__visual > li {
    width: clamp(10.75rem, 13.5vw, 12.9rem);
    flex: 0 0 clamp(10.75rem, 13.5vw, 12.9rem);
    padding: 1rem;
  }

  .p-ai-strength__visual > li + li {
    margin-left: 0;
  }

  .p-ai-strength__visual svg {
    width: 3.15rem;
    height: 3.15rem;
    margin-bottom: 0.7rem;
  }

  .p-ai-strength__visual strong {
    font-size: 1rem;
  }

  .p-ai-strength__visual span {
    margin-top: 0.5rem;
    font-size: 0.78rem;
  }

}

@media (prefers-reduced-motion: no-preference) {
  .p-ai-button,
  .p-ai-initiative-card__button,
  .p-ai-initiative-card,
  .p-ai-initiative-card__thumb img {
    transition: opacity 0.2s ease-in-out, transform 0.24s ease-in-out, box-shadow 0.24s ease-in-out;
  }

  .p-ai-button:hover,
  .p-ai-button:focus-visible,
  .p-ai-initiative-card__button:hover,
  .p-ai-initiative-card__button:focus-visible {
    opacity: 0.78;
  }

  .p-ai-initiative-card:hover,
  .p-ai-initiative-card:focus-within {
    transform: translateY(-0.25rem);
    box-shadow: 0 15px 32px rgba(28, 42, 116, 0.14);
  }

  .p-ai-initiative-card:hover .p-ai-initiative-card__thumb img,
  .p-ai-initiative-card:focus-within .p-ai-initiative-card__thumb img {
    transform: scale(1.035);
  }

  .p-ai-button:hover > span,
  .p-ai-button:focus-visible > span,
  .p-ai-initiative-card__button:hover > span,
  .p-ai-initiative-card__button:focus-visible > span {
    transform: translateX(0.15rem);
  }
}

/* 取り組み詳細
   JSを使わず、HTMLの popover 属性でカードのボタンから開閉する。
   popover 非対応ブラウザでは、詳細をカードの下にそのまま並べて表示する。 */
.p-ai .p-ai-initiative-details {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.p-ai .p-ai-initiative-detail {
  overflow: hidden;
  border: 1px solid var(--ai-border);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(28, 42, 116, 0.08);
  color: var(--ai-text);
  font-family: var(--ai-font-ja);
}

.p-ai .p-ai-initiative-detail__close {
  display: none;
}

@supports not selector(:popover-open) {
  .p-ai .p-ai-initiative-card__button {
    display: none;
  }

  .p-ai .p-ai-initiative-card__body {
    padding-bottom: 1.35rem;
  }
}

@supports selector(:popover-open) {
  .p-ai .p-ai-initiative-details {
    margin-top: 0;
  }

  .p-ai .p-ai-initiative-detail:popover-open {
    position: fixed;
    inset: 50% auto auto 50%;
    width: min(66rem, calc(100vw - 3rem));
    max-height: calc(100dvh - 3rem);
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 0;
    box-shadow: 0 1.5rem 3.5rem rgba(10, 20, 70, 0.35);
  }

  .p-ai .p-ai-initiative-detail::backdrop {
    background: rgba(14, 22, 64, 0.62);
  }

  .p-ai .p-ai-initiative-detail__body {
    max-height: calc(100dvh - 3rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* モーダル内では本文を見出しと同じ左端にそろえる */
  .p-ai .p-ai-initiative-detail:popover-open .p-ai-initiative-detail__lead,
  .p-ai .p-ai-initiative-detail:popover-open .p-ai-initiative-detail__section,
  .p-ai .p-ai-initiative-detail:popover-open .p-ai-initiative-detail__note {
    max-width: none;
  }

  .p-ai .p-ai-initiative-detail__close {
    position: absolute;
    z-index: 2;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: #8c929a;
    cursor: pointer;
    transition: color 160ms ease;
  }

  .p-ai .p-ai-initiative-detail__close svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
  }

  .p-ai .p-ai-initiative-detail__close:hover,
  .p-ai .p-ai-initiative-detail__close:focus-visible {
    color: var(--ai-primary);
  }

  .p-ai .p-ai-initiative-detail__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }

  /* 開いている間は背面のページをスクロールさせない */
  html:has(.p-ai-initiative-detail:popover-open) {
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  @supports selector(:popover-open) {
    /* SPは画面下から出るシート表示 */
    .p-ai .p-ai-initiative-detail:popover-open {
      inset: auto 0 0 0;
      width: 100%;
      max-height: calc(100dvh - 3.5rem);
      transform: none;
      border-radius: 1.25rem 1.25rem 0 0;
    }

    .p-ai .p-ai-initiative-detail__body {
      max-height: calc(100dvh - 3.5rem);
    }

    .p-ai .p-ai-initiative-detail:popover-open .p-ai-initiative-detail__hero {
      min-height: 12rem;
    }
  }
}

.p-ai .p-ai-initiative-card__button:focus-visible {
  outline: 3px solid rgba(255, 98, 0, 0.75);
  outline-offset: 3px;
}

.p-ai .p-ai-initiative-detail__hero {
  position: relative;
  min-height: 15.5rem;
  overflow: hidden;
  display: block;
  background: var(--ai-surface);
}

.p-ai .p-ai-initiative-detail__hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  content: "";
}

.p-ai .p-ai-initiative-detail__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-ai .p-ai-initiative-detail__heading {
  padding: 1.8rem 1.5rem 0;
}

.p-ai .p-ai-initiative-detail__eyebrow {
  margin: 0;
  padding-top: 20px;
  color: var(--ai-aqua-strong);
  font-family: var(--ai-font-en);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.p-ai .p-ai-initiative-detail h3 {
  margin: 0.5rem 0 0;
  color: var(--ai-primary);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: clamp(1.35rem, 4.2vw, 1.875rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.015em;
}

.p-ai .p-ai-initiative-detail__lead,
.p-ai .p-ai-initiative-detail__section,
.p-ai .p-ai-initiative-detail__note {
  max-width: 43rem;
  margin-right: auto;
  margin-left: auto;
}

.p-ai .p-ai-initiative-detail__lead {
  margin-top: 0;
  padding: 0.9rem 1.5rem 0;
  color: var(--ai-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.85;
}

.p-ai .p-ai-initiative-detail__section {
  margin-top: 1.5rem;
  padding: 0 1.5rem;
}

.p-ai .p-ai-initiative-detail__section h4 {
  margin: 0;
  color: var(--ai-primary);
  font-size: 1rem;
  line-height: 1.6;
}

.p-ai .p-ai-initiative-detail__section h4::before {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--ai-accent);
  content: "";
}

.p-ai .p-ai-initiative-detail__section p,
.p-ai .p-ai-initiative-detail__section li,
.p-ai .p-ai-initiative-detail__note {
  font-size: 0.88rem;
  line-height: 1.9;
}

.p-ai .p-ai-initiative-detail__section p {
  margin: 0.65rem 0 0;
}

.p-ai .p-ai-initiative-detail__section ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.p-ai .p-ai-initiative-detail__section li {
  position: relative;
  padding-left: 1.25rem;
}

.p-ai .p-ai-initiative-detail__section li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ai-aqua-strong);
  content: "";
}

.p-ai .p-ai-initiative-detail__note {
  margin-top: 1.75rem;
  margin-bottom: 0;
  padding: 1.15rem 1.5rem 2rem;
  border-top: 1px solid var(--ai-border);
  color: #4b6078;
}

@media (min-width: 768px) {
  .p-ai .p-ai-initiative-detail__hero {
    min-height: 19.5rem;
  }

  .p-ai .p-ai-initiative-detail__heading {
    padding: 2.4rem 3.25rem 0;
  }

  .p-ai .p-ai-initiative-detail__eyebrow {
    font-size: max(0.7rem, 12px);
  }

  .p-ai .p-ai-initiative-detail__lead {
    padding: 1rem 3.25rem 0;
    font-size: max(1.1rem, 16px);
  }

  .p-ai .p-ai-initiative-detail__section {
    padding: 0 3.25rem;
  }

  /* 768〜1023pxはルート文字サイズが小さいため、最小値を指定して読みやすさを保つ */
  .p-ai .p-ai-initiative-detail__section h4 {
    font-size: max(1rem, 16px);
  }

  .p-ai .p-ai-initiative-detail__section p,
  .p-ai .p-ai-initiative-detail__section li,
  .p-ai .p-ai-initiative-detail__note {
    font-size: max(0.88rem, 14.5px);
  }

  .p-ai .p-ai-initiative-detail__note {
    padding: 1.35rem 3.25rem 2.75rem;
  }
}

@media (max-width: 767px) {
  /* 本文（SP） */
  .p-ai-concern-list > li {
    gap: 0.9rem;
    padding: 1.25rem 1rem;
  }

  .p-ai-concern-list__icon {
    width: 3.25rem;
    height: 3.25rem;
    flex-basis: 3.25rem;
  }

  .p-ai-concern-list__icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }

  .p-ai-concern-list h3 {
    font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, "Noto Sans JP", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.01em;
  }

  .p-ai-cta .c-heading-lv2 {
    font-family: var(--ai-font-ja);
    font-size: clamp(1.3rem, 6.1vw, 1.75rem);
  }

  .p-ai-faq-list details > div {
    padding-right: 1.25rem;
  }

  /* 円を少し大きくし、アイコンを小さくして文字と円周の間に余白をとる */
  /* 767px付近で円が広がりすぎないよう直径に上限を設け、中央に寄せる */
  .p-ai-strength__visual {
    grid-template-columns: repeat(3, minmax(0, 10rem));
    justify-content: center;
    gap: 0.25rem;
    margin: 0 -0.25rem;
  }

  .p-ai-strength__visual > li {
    padding: 0;
  }

  .p-ai-strength__visual svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-bottom: 0.2rem;
  }

  .p-ai-strength__visual strong {
    font-family: var(--ai-font-ja);
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .p-ai-strength__visual span {
    margin-top: 0.15rem;
    font-family: var(--ai-font-ja);
    font-size: 0.6rem;
    line-height: 1.4;
  }
}

/* PCの詳細は全5件を同じ外寸にし、本文は上から並べて下部に余白を残す。 */
@media (min-width: 768px) {
  .p-ai .p-ai-initiative-detail:popover-open {
    height: min(736px, calc(100dvh - 3rem));
  }

  .p-ai .p-ai-initiative-detail__body {
    display: grid;
    grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  }

  .p-ai .p-ai-initiative-detail:popover-open .p-ai-initiative-detail__body {
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    max-height: none;
  }

  .p-ai .p-ai-initiative-detail__hero {
    grid-column: 1;
    height: 100%;
    min-height: 0;
  }

  .p-ai .p-ai-initiative-detail__heading {
    padding: 0;
  }

  .p-ai .p-ai-initiative-detail h3 {
    font-size: clamp(26px, 2.3vw, 30px);
    line-height: 1.4;
  }

  .p-ai .p-ai-initiative-detail__content {
    display: flex;
    grid-column: 2;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(1rem, 3dvh, 2rem);
    min-width: 0;
    min-height: 0;
    padding: clamp(1rem, 3dvh, 2rem) 3.5rem;
  }

  .p-ai .p-ai-initiative-detail__content > * {
    flex-shrink: 0;
  }

  .p-ai .p-ai-initiative-detail__lead,
  .p-ai .p-ai-initiative-detail__section,
  .p-ai .p-ai-initiative-detail__note {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .p-ai .p-ai-initiative-detail__lead {
    margin: 0;
    padding: 0;
    line-height: 1.8;
  }

  .p-ai .p-ai-initiative-detail__section {
    margin: 0;
    padding: 0;
  }

  .p-ai .p-ai-initiative-detail__section p {
    margin-top: 0.5rem;
    line-height: 1.8;
  }

  .p-ai .p-ai-initiative-detail__note {
    margin: 0;
    padding: 1rem 0 0;
    line-height: 1.8;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .p-ai .p-ai-initiative-detail__body {
    grid-template-columns: minmax(9rem, 0.28fr) minmax(0, 0.72fr);
  }

  .p-ai .p-ai-initiative-detail__content {
    padding-inline: 1.5rem;
  }
}

/* 高さが低いPCでは本文側を広く使い、文字サイズと段落の余白を保つ。 */
@media (min-width: 768px) and (max-height: 640px) {
  .p-ai .p-ai-initiative-detail:popover-open .p-ai-initiative-detail__content {
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .p-ai .p-ai-initiative-detail:popover-open .p-ai-initiative-detail__note {
    padding-top: 0.875rem;
  }
}

@media (min-width: 1024px) and (max-height: 640px) {
  .p-ai .p-ai-initiative-detail:popover-open .p-ai-initiative-detail__body {
    grid-template-columns: minmax(14rem, 0.6fr) minmax(0, 1.4fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) and (max-height: 640px) {
  .p-ai .p-ai-initiative-detail:popover-open .p-ai-initiative-detail__body {
    grid-template-columns: minmax(7rem, 0.2fr) minmax(0, 0.8fr);
  }
}

.p-ai .p-ai-initiative-card__button:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 3px rgba(255, 98, 0, 0.88);
}

/* SP：背景画像は、スマホで実際に見える中央部分だけを原寸のまま切り出した画像に差し替える
   （縮小していないため画質は PC 用と同じ。ファイル容量だけを減らす） */
@media (max-width: 767px) {
  .p-ai-fv {
    background-image: url("/assets/images/service/ai-digital/hero-background-sp.webp");
  }

  .p-ai.p-ai-strength {
    background-image: url("/assets/images/service/ai-digital/strength-background-sp.webp");
  }
}
