/**
 * Service page polish
 */

/* ============================================
   Rich Hero (service-only hero replacement)
   ============================================ */
.p-service-rich-hero {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  padding: 160px 0 80px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0b1220 0%, #142133 50%, #1c2a3a 100%);
}

.p-service-rich-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.p-service-rich-hero__bg picture,
.p-service-rich-hero__bg .p-service-rich-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  transform: scale(1.05);
}

.p-service-rich-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 100% at 18% 24%, rgba(0, 122, 138, 0.3), transparent 60%),
    radial-gradient(70% 90% at 88% 76%, rgba(28, 42, 58, 0.6), transparent 65%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.55) 0%, rgba(11, 18, 32, 0.78) 100%);
}

.p-service-rich-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: p-service-rich-hero-orb 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.p-service-rich-hero__orb--a {
  top: -8%;
  left: -6%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #007a8a 0%, transparent 70%);
  animation-duration: 22s;
}

.p-service-rich-hero__orb--b {
  bottom: -12%;
  right: -8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #006064 0%, transparent 70%);
  animation-duration: 19s;
  animation-delay: -6s;
}

.p-service-rich-hero__orb--c {
  top: 28%;
  right: 24%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(77, 208, 225, 0.7) 0%, transparent 70%);
  animation-duration: 26s;
  animation-delay: -10s;
  opacity: 0.32;
}

@keyframes p-service-rich-hero-orb {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(40px, -30px, 0) scale(1.08); }
  100% { transform: translate3d(-30px, 25px, 0) scale(0.95); }
}

.p-service-rich-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  padding: 0 20px;
  text-align: left;
}

.p-service-rich-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #4dd0e1;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.p-service-rich-hero__eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #4dd0e1);
}

.p-service-rich-hero__title {
  font-size: clamp(3.2rem, 5.4vw, 5.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin: 0 0 28px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.p-service-rich-hero__title-line {
  display: block;
  background: linear-gradient(120deg, #ffffff 0%, #e3f4f7 60%, #4dd0e1 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.p-service-rich-hero__lead {
  font-size: clamp(1.5rem, 1.6vw, 1.8rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 0 56px;
}

.p-service-rich-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0;
  padding: 28px 32px;
  list-style: none;
  border: 1px solid rgba(77, 208, 225, 0.22);
  border-radius: 20px;
  background: rgba(11, 18, 32, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.p-service-rich-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.p-service-rich-hero__stat + .p-service-rich-hero__stat {
  position: relative;
  padding-left: 24px;
}

.p-service-rich-hero__stat + .p-service-rich-hero__stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(77, 208, 225, 0.35), transparent);
}

.p-service-rich-hero__stat-value {
  font-size: clamp(3.6rem, 4.4vw, 4.8rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.p-service-rich-hero__stat-unit {
  font-size: 0.55em;
  font-weight: 700;
  color: #4dd0e1;
  margin-left: 2px;
}

.p-service-rich-hero__stat-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .p-service-rich-hero {
    min-height: auto;
    padding: 120px 0 56px;
  }
  .p-service-rich-hero__bg picture,
  .p-service-rich-hero__bg .p-service-rich-hero__img {
    transform: none;
  }
  .p-service-rich-hero__lead {
    margin-bottom: 36px;
  }
  .p-service-rich-hero__stats {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 22px;
  }
  .p-service-rich-hero__stat + .p-service-rich-hero__stat {
    padding-left: 0;
    padding-top: 18px;
  }
  .p-service-rich-hero__stat + .p-service-rich-hero__stat::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 208, 225, 0.35), transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-service-rich-hero__orb {
    animation: none;
  }
}

/* ============================================
   Roles marquee — あなたの業務に効くAI活用
   ============================================ */
.p-service-roles {
  position: relative;
  padding: 96px 0 108px;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 12% 8%, rgba(0, 122, 138, 0.16), transparent 60%),
    radial-gradient(70% 80% at 92% 92%, rgba(28, 42, 58, 0.5), transparent 60%),
    linear-gradient(135deg, #0b1220 0%, #142133 50%, #1c2a3a 100%);
  color: #fff;
  isolation: isolate;
}

.p-service-roles::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(77, 208, 225, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.p-service-roles__head {
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto 56px;
}

.p-service-roles__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #4dd0e1;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.p-service-roles__eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #4dd0e1);
}

.p-service-roles__title {
  font-size: clamp(2.8rem, 4.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0 0 18px;
  color: #fff;
}

.p-service-roles__accent {
  background: linear-gradient(120deg, #4dd0e1 0%, #007a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 2px;
}

.p-service-roles__lead {
  font-size: 1.5rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
  margin: 0;
}

.p-service-roles__marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.p-service-roles__track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 12px 0 24px;
  animation: p-service-roles-marquee 60s linear infinite;
  will-change: transform;
}

.p-service-roles__marquee:hover .p-service-roles__track,
.p-service-roles__marquee:focus-within .p-service-roles__track {
  animation-play-state: paused;
}

@keyframes p-service-roles-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .p-service-roles__track {
    animation-duration: 240s;
  }
}

.p-service-role-card {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  height: 360px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  text-align: left;
  outline: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.p-service-role-card:hover,
.p-service-role-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.p-service-role-card__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform 0.6s ease;
}

.p-service-role-card:hover .p-service-role-card__bg {
  transform: scale(1.06);
}

.p-service-role-card__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
}

.p-service-role-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 14px 14px;
  opacity: 0.6;
}

.p-service-role-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  position: absolute;
  top: 22px;
  left: 22px;
  color: #fff;
}

.p-service-role-card__body {
  position: relative;
}

.p-service-role-card__jp {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.p-service-role-card__en {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  text-transform: uppercase;
}

/* Per-theme gradient backgrounds — unified teal/navy brand palette */
.p-service-role-card--cyan     .p-service-role-card__bg { background: linear-gradient(155deg, #007a8a 0%, #06334a 100%); }
.p-service-role-card--teal     .p-service-role-card__bg { background: linear-gradient(155deg, #0a8a96 0%, #0a2e3a 100%); }
.p-service-role-card--sky      .p-service-role-card__bg { background: linear-gradient(160deg, #15829c 0%, #0d2a3f 100%); }
.p-service-role-card--violet   .p-service-role-card__bg { background: linear-gradient(165deg, #2e6c8a 0%, #14233c 100%); }
.p-service-role-card--mint     .p-service-role-card__bg { background: linear-gradient(155deg, #0b8a82 0%, #0a2b32 100%); }
.p-service-role-card--navy     .p-service-role-card__bg { background: linear-gradient(170deg, #1c3a52 0%, #0b1220 100%); }
.p-service-role-card--magenta  .p-service-role-card__bg { background: linear-gradient(155deg, #2c6b85 0%, #1c2a3a 100%); }
.p-service-role-card--indigo   .p-service-role-card__bg { background: linear-gradient(165deg, #2a4d78 0%, #101e34 100%); }
.p-service-role-card--amber    .p-service-role-card__bg { background: linear-gradient(155deg, #1a7c8a 0%, #0c2e3a 100%); }
.p-service-role-card--forest   .p-service-role-card__bg { background: linear-gradient(160deg, #0d7a78 0%, #0a2630 100%); }
.p-service-role-card--graphite .p-service-role-card__bg { background: linear-gradient(170deg, #344b62 0%, #0b1424 100%); }
.p-service-role-card--rose     .p-service-role-card__bg { background: linear-gradient(155deg, #245e7a 0%, #142a3a 100%); }

@media (max-width: 768px) {
  .p-service-roles { padding: 72px 0 84px; }
  .p-service-roles__head { margin-bottom: 36px; }
  .p-service-role-card { width: 200px; height: 300px; padding: 18px; }
  .p-service-role-card__icon { width: 44px; height: 44px; top: 18px; left: 18px; }
  .p-service-role-card__icon svg { width: 28px; height: 28px; }
  .p-service-role-card__jp { font-size: 1.7rem; }
}

/* ============================================
   Detail card — media icon-area (image instead of SVG)
   ============================================ */
.p-service-detail__icon-area--media {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  background: linear-gradient(135deg, #142133 0%, #0b1220 100%);
  border-radius: 24px;
  min-height: 320px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.p-service-detail__icon-area--media picture,
.p-service-detail__icon-area--media .p-service-detail__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.p-service-detail__icon-area--media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, rgba(11, 18, 32, 0.55) 100%);
  pointer-events: none;
}

.p-service-detail--coaching:hover .p-service-detail__media {
  transform: scale(1.04);
}

.p-service-detail__media-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0b1220;
  background: linear-gradient(135deg, #4dd0e1, #007a8a);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 122, 138, 0.35);
}

.p-service-page {
  background:
    radial-gradient(circle at 8% 9%, rgba(0, 179, 201, 0.08), transparent 28%),
    radial-gradient(circle at 94% 24%, rgba(0, 122, 138, 0.08), transparent 26%),
    linear-gradient(180deg, #f6fbfd 0%, #f8fafc 42%, #f6f8fb 100%);
}

.p-service-page .p-sub-hero {
  min-height: 360px;
  background:
    linear-gradient(115deg, rgba(8, 99, 115, 0.9), rgba(12, 28, 46, 0.88)),
    radial-gradient(circle at 72% 18%, rgba(102, 232, 255, 0.28), transparent 34%);
  overflow: hidden;
}

.p-service-page .p-sub-hero::before {
  content: '';
  position: absolute;
  inset: 42px -8% auto;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.p-service-overview {
  position: relative;
  padding: 88px 0 28px;
}

.p-service-overview__header {
  max-width: 940px;
}

.p-service-overview__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-primary);
}

.p-service-overview__eyebrow::before {
  content: '';
  width: 42px;
  height: 2px;
  background: currentColor;
}

.p-service-overview__title {
  margin: 0;
  max-width: 880px;
  color: #0b1220;
  font-size: clamp(3.2rem, 4vw, 5.4rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.p-service-overview__title-line {
  display: inline;
}

.p-service-overview__lead {
  max-width: 820px;
  margin: 24px 0 0;
  color: rgba(28, 42, 58, 0.78);
  font-size: 1.58rem;
  font-weight: 500;
  line-height: 2;
  text-wrap: pretty;
}

.p-service-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.p-service-nav__item {
  display: flex;
  gap: 14px;
  min-height: 142px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 16px 40px rgba(15, 70, 88, 0.08);
  transition: transform 0.25s cubic-bezier(0.2, 0.6, 0, 1), box-shadow 0.25s cubic-bezier(0.2, 0.6, 0, 1), background-color 0.25s cubic-bezier(0.2, 0.6, 0, 1);
}

.p-service-nav__item:hover {
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 22px 54px rgba(15, 70, 88, 0.14);
  transform: translateY(-3px);
}

.p-service-nav__item:active {
  transform: translateY(0) scale(0.96);
}

.p-service-nav__item--featured {
  color: #fff;
  background: linear-gradient(145deg, #008b9b, #006978);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 22px 54px rgba(0, 122, 138, 0.24);
}

.p-service-nav__item--featured:hover {
  background: linear-gradient(145deg, #0096a8, #006978);
}

.p-service-nav__num {
  flex: 0 0 auto;
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.p-service-nav__item--featured .p-service-nav__num {
  color: rgba(255, 255, 255, 0.72);
}

.p-service-nav__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.p-service-nav__label {
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.05rem;
  font-weight: 800;
}

.p-service-nav__title {
  color: #0b1220;
  font-size: 1.48rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.p-service-nav__item--featured .p-service-nav__title {
  color: #fff;
}

.p-service-nav__text {
  margin-top: 8px;
  color: rgba(45, 62, 80, 0.66);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.7;
}

.p-service-nav__item--featured .p-service-nav__text {
  color: rgba(255, 255, 255, 0.78);
}

.p-service-page .l-section {
  position: relative;
}

.p-service-page .l-section:not(.l-section--surface) {
  background: transparent;
}

.p-service-page .p-service-detail.c-card--glass,
.p-service-page .p-service-card.c-card--glass,
.p-service-page .p-service-note.c-card--glass,
.p-service-page .p-faq__item.c-card--glass,
.p-service-page .p-service-comparison-wrap.c-card--glass {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 18px 50px rgba(15, 70, 88, 0.08);
}

.p-service-page .p-service-detail.c-card--glass {
  overflow: hidden;
}

.p-service-page .p-service-detail.c-card--glass:hover,
.p-service-page .p-service-card.c-card--glass:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 24px 64px rgba(15, 70, 88, 0.14);
}

.p-service-page .p-service-detail__icon-area {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #142133 0%, #0b1220 100%);
}

.p-service-page .p-service-detail__icon-area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(0, 122, 138, 0.22) 0%, rgba(11, 18, 32, 0.2) 50%, rgba(11, 18, 32, 0.62) 100%);
  pointer-events: none;
}

.p-service-page .p-service-detail__img-bg {
  opacity: 1;
  mix-blend-mode: normal;
  filter: saturate(1.1) contrast(1.05);
  transition: transform 0.8s ease;
}

.p-service-page .p-service-detail:hover .p-service-detail__img-bg {
  transform: scale(1.06);
}

.p-service-page .p-service-detail__icon-circle {
  position: relative;
  z-index: 2;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.p-service-page .p-service-detail__badge,
.p-service-page .p-service-card__label {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 122, 138, 0.08);
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.p-service-page .p-service-detail__title,
.p-service-page .p-service-card__title,
.p-service-page .p-service-page__subheading,
.p-service-page .p-section-heading__en {
  color: #0b1220;
  text-wrap: balance;
}

.p-service-page .p-service-detail__title {
  font-size: clamp(3rem, 3.2vw, 4.6rem);
  line-height: 1.24;
}

.p-service-page .p-service-detail__lead,
.p-service-page .p-service-card__lead,
.p-service-page .p-service-card__text,
.p-service-page .p-service-note__text,
.p-service-page .p-faq__answer {
  color: rgba(28, 42, 58, 0.74);
  text-wrap: pretty;
}

.p-service-page .p-service-detail__highlights {
  gap: 12px;
}

.p-service-page .p-service-detail__highlight-item {
  min-height: 98px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(231, 247, 251, 0.9), rgba(255, 255, 255, 0.74));
  box-shadow: 0 12px 30px rgba(15, 70, 88, 0.08);
}

.p-service-page .p-service-detail__highlight-value,
.p-service-page .p-service-stat__value,
.p-service-page .p-service-effect__value,
.p-service-page .p-service-plan__price {
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.p-service-page .p-service-grid {
  align-items: stretch;
}

.p-service-page .p-service-card {
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.2, 0.6, 0, 1), box-shadow 0.25s cubic-bezier(0.2, 0.6, 0, 1);
}

.p-service-page .p-service-card:hover {
  transform: translateY(-3px);
}

.p-service-page .p-service-card__list li {
  position: relative;
  padding-left: 20px;
}

.p-service-page .p-service-card__list li::before,
.p-service-page .p-service-plan__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 122, 138, 0.1);
}

.p-service-page .p-service-steps {
  gap: 14px;
}

.p-service-page .p-service-step {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 34px rgba(15, 70, 88, 0.08);
}

.p-service-page .p-service-step__number {
  box-shadow: 0 14px 30px rgba(0, 122, 138, 0.18);
}

.p-service-page .p-service-stat {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(231, 247, 251, 0.72));
  box-shadow: 0 16px 40px rgba(15, 70, 88, 0.09);
}

.p-service-page .c-card--glass.p-service-card--featured {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(145deg, #007a8a, #0b3140);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.p-service-page .c-card--glass.p-service-card--featured .p-service-plan__price,
.p-service-page .c-card--glass.p-service-card--featured .p-service-plan__name,
.p-service-page .c-card--glass.p-service-card--featured .p-service-plan__unit,
.p-service-page .c-card--glass.p-service-card--featured .p-service-card__title,
.p-service-page .c-card--glass.p-service-card--featured .p-service-card__lead {
  color: #fff !important;
}

.p-service-page .c-card--glass.p-service-card--featured > p:not(.p-service-plan__note),
.p-service-page .c-card--glass.p-service-card--featured > p:not(.p-service-plan__note) span {
  color: #fff !important;
}

.p-service-page .c-card--glass.p-service-card--featured .p-service-plan__list,
.p-service-page .c-card--glass.p-service-card--featured .p-service-card__list {
  color: rgba(255, 255, 255, 0.92) !important;
  list-style: none !important;
  padding-left: 0 !important;
}

.p-service-page .c-card--glass.p-service-card--featured .p-service-plan__list li,
.p-service-page .c-card--glass.p-service-card--featured .p-service-card__list li {
  position: relative;
  color: rgba(255, 255, 255, 0.92) !important;
  padding-left: 24px !important;
}

.p-service-page .c-card--glass.p-service-card--featured .p-service-plan__list li::before,
.p-service-page .c-card--glass.p-service-card--featured .p-service-card__list li::before {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18) !important;
}

.p-service-page .c-card--glass.p-service-card--featured .p-service-plan__note,
.p-service-page .c-card--glass.p-service-card--featured .p-service-card__text {
  color: rgba(255, 255, 255, 0.84) !important;
}

.p-service-page .p-faq__question {
  color: #0b1220;
  text-wrap: balance;
}

@media screen and (max-width: 1024px) {
  .p-service-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-service-nav__item--featured {
    grid-column: span 2;
  }
}

@media screen and (max-width: 768px) {
  .p-service-page .p-sub-hero {
    min-height: 280px;
  }

  .p-service-overview {
    padding: 64px 0 18px;
  }

  .p-service-overview__title {
    font-size: clamp(2.55rem, 7vw, 2.7rem);
    line-height: 1.34;
    letter-spacing: 0;
  }

  .p-service-overview__title-line {
    display: block;
  }

  .p-service-overview__lead {
    font-size: 1.42rem;
    line-height: 1.9;
  }

  .p-service-nav {
    grid-template-columns: 1fr;
  }

  .p-service-nav__item,
  .p-service-nav__item--featured {
    grid-column: auto;
    min-height: 118px;
  }

  .p-service-page .p-service-detail__title {
    font-size: clamp(2.6rem, 8vw, 3.4rem);
  }
}

/* ============================================================
   Sales X-Ray — Service-page Hero block + nav featured chip
   ============================================================ */

/* Featured nav: Sales X-Ray (purple/teal gradient) */
.p-service-nav__item--xray {
  background: linear-gradient(135deg, #6d28d9 0%, #4338ca 50%, #2dd4bf 130%);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 22px 54px rgba(67, 56, 202, 0.28);
  position: relative;
  overflow: hidden;
}
.p-service-nav__item--xray::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.35), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(167, 139, 250, 0.3), transparent 50%);
  pointer-events: none;
  opacity: 0.85;
}
.p-service-nav__item--xray:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #14b8a6 130%);
  transform: translateY(-4px);
}
.p-service-nav__item--xray .p-service-nav__num {
  color: #fde68a;
  font-size: 1.4rem;
  text-shadow: 0 0 12px rgba(253, 230, 138, 0.5);
}
.p-service-nav__item--xray .p-service-nav__label {
  background: rgba(253, 230, 138, 0.22);
  color: #fef3c7;
  border: 1px solid rgba(253, 230, 138, 0.4);
}

/* Promo hero block — `.p-service-detail--xray` */
.p-service-detail--xray {
  background:
    radial-gradient(circle at 8% 12%, rgba(109, 40, 217, 0.22), transparent 38%),
    radial-gradient(circle at 92% 88%, rgba(45, 212, 191, 0.22), transparent 38%),
    linear-gradient(135deg, #1e1b4b 0%, #0f172a 60%, #0c4a6e 100%);
  color: #f8fafc;
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(167, 139, 250, 0.18) inset;
  position: relative;
  overflow: hidden;
}
.p-service-detail--xray::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(45, 212, 191, 0.04) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(45deg, rgba(167, 139, 250, 0.05) 0 1px, transparent 1px 28px);
  pointer-events: none;
  opacity: 0.7;
}
.p-service-detail--xray .p-service-detail__body { position: relative; z-index: 2; }
.p-service-detail--xray .p-service-detail__title,
.p-service-detail--xray .p-service-detail__lead,
.p-service-detail--xray .p-service-detail__highlight-value,
.p-service-detail--xray .p-service-detail__highlight-label,
.p-service-detail--xray .p-service-detail__highlight-unit { color: #f8fafc; }
.p-service-detail--xray .p-service-detail__title-sub {
  display: block;
  margin-top: 10px;
  font-size: 0.6em;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.9);
  letter-spacing: 0.02em;
}
.p-service-detail--xray .p-service-detail__lead { color: rgba(248, 250, 252, 0.88); }
.p-service-detail--xray .p-service-detail__lead strong { color: #5eead4; font-weight: 700; }
.p-service-detail--xray .p-service-detail__badge--free {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #1e1b4b;
  box-shadow: 0 6px 18px rgba(251, 191, 36, 0.4);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.p-service-detail--xray .p-service-detail__highlight-item {
  background: rgba(248, 250, 252, 0.08);
  border-color: rgba(167, 139, 250, 0.3);
}
.p-service-detail--xray .p-service-detail__highlight-value {
  background: linear-gradient(135deg, #fde68a, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.p-service-detail--xray .c-btn--primary {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1e1b4b;
  border: none;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(251, 146, 60, 0.45);
}
.p-service-detail--xray .c-btn--primary:hover {
  background: linear-gradient(135deg, #fde68a, #fb923c);
  transform: translateY(-2px);
}
.p-service-detail--xray .c-btn--outline {
  border-color: rgba(94, 234, 212, 0.7);
  color: #5eead4;
}
.p-service-detail--xray .c-btn--outline:hover {
  background: rgba(94, 234, 212, 0.15);
  color: #ccfbf1;
}

/* Icon area — orbit of agent emojis */
.p-service-detail__icon-area--xray {
  background:
    radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.25), transparent 65%),
    linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.p-sxray-promo__agents { position: relative; width: 240px; height: 240px; margin: 0 auto; }
.p-sxray-promo__agent {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 30px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(45, 212, 191, 0.18));
  border: 1px solid rgba(167, 139, 250, 0.45);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
  animation: sxray-orbit 6s ease-in-out infinite;
}
.p-sxray-promo__agent[data-i="0"] { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.p-sxray-promo__agent[data-i="1"] { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 0.4s; }
.p-sxray-promo__agent[data-i="2"] { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.8s; }
.p-sxray-promo__agent[data-i="3"] { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 1.2s; }
.p-sxray-promo__agent--center {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: 88px;
  height: 88px;
  font-size: 40px;
  background: linear-gradient(135deg, #6d28d9, #2dd4bf);
  border-color: rgba(253, 230, 138, 0.6);
  box-shadow: 0 0 0 6px rgba(167, 139, 250, 0.15), 0 12px 32px rgba(45, 212, 191, 0.4);
  animation: sxray-pulse 2.4s ease-in-out infinite;
}
.p-sxray-promo__think {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.p-sxray-promo__think-dot {
  width: 8px;
  height: 8px;
  background: #5eead4;
  border-radius: 50%;
  animation: sxray-think 1.2s ease-in-out infinite;
}
.p-sxray-promo__think-dot:nth-child(2) { animation-delay: 0.2s; }
.p-sxray-promo__think-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes sxray-orbit {
  0%, 100% { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3); }
  50% { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3), 0 0 0 6px rgba(94, 234, 212, 0.15); }
}
@keyframes sxray-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(167, 139, 250, 0.15), 0 12px 32px rgba(45, 212, 191, 0.4); }
  50% { box-shadow: 0 0 0 14px rgba(167, 139, 250, 0.25), 0 12px 40px rgba(45, 212, 191, 0.7); }
}
@keyframes sxray-think {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .p-sxray-promo__agent,
  .p-sxray-promo__agent--center,
  .p-sxray-promo__think-dot { animation: none; }
}
@media screen and (max-width: 720px) {
  .p-service-detail--xray .p-service-detail__title-sub { font-size: 0.7em; }
  .p-sxray-promo__agents { width: 200px; height: 200px; }
  .p-sxray-promo__agent { width: 52px; height: 52px; font-size: 24px; }
  .p-sxray-promo__agent--center { width: 72px; height: 72px; font-size: 32px; }
}


/* ============================================
   Account Intelligence セクション レイアウト
   （style.css から複製 — 同期CSSで FOUC 防止 2026-05-29）
   ============================================ */

/* --- Service Detail Page --- */
.p-service-detail {
  display: flex;
  gap: 50px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}
.p-service-detail:last-child {
  border-bottom: none;
}
.p-service-detail--reverse {
  flex-direction: row-reverse;
}
.p-service-detail__img {
  flex: 0 0 45%;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.p-service-detail__img img {
  width: 100%;
  height: auto;
}
.p-service-detail__body {
  flex: 1;
}
.p-service-detail__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}
.p-service-detail__text {
  font-size: 1.5rem;
  line-height: 2;
  color: var(--color-text-light);
}
.p-service-detail__clients {
  margin-top: 16px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}
/* --- Service Detail v2 (icon area + highlights) --- */
.p-service-detail--v2 {
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}
.p-service-detail__icon-area {
  flex: 0 0 35%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #005a66 100%);
  min-height: 260px;
}
.p-service-detail--reverse .p-service-detail__icon-area {
  order: 2;
}
.p-service-detail--reverse .p-service-detail__body {
  order: 1;
}
.p-service-detail__icon-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  z-index: 1;
}
.p-service-detail__img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  mix-blend-mode: overlay;
}
.p-service-detail--v2 .p-service-detail__body {
  padding: clamp(32px, 4vw, 50px);
}
.p-service-detail__lead {
  font-size: 1.5rem;
  line-height: 1.9;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.p-service-detail__highlights {
  display: flex;
  gap: 28px;
}
.p-service-detail__highlight-item {
  text-align: center;
}
.p-service-detail__highlight-value {
  display: block;
  font-family: var(--font-en);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.p-service-detail__highlight-unit {
  font-size: 1.8rem;
}
.p-service-detail__highlight-label {
  display: block;
  font-size: 1.2rem;
  color: var(--ink-3);
  margin-top: 4px;
}
/* --- Service Page (page-service.php) --- */
.p-service-page .p-service-detail {
  padding: 50px;
  border-bottom: none;
  border-radius: var(--radius-card);
  margin-bottom: 40px;
}
.p-service-page .p-service-detail--v2 {
  padding: 0;
}
.p-service-page .p-service-detail__img {
  aspect-ratio: 3 / 2;
}
.p-service-page .p-service-detail__img img {
  height: 100%;
  object-fit: cover;
}
.p-service-detail__badge {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-bg);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

@media screen and (max-width: 900px) {
.p-service-detail {
    flex-direction: column;
    gap: 30px;
  }
.p-service-detail--reverse {
    flex-direction: column;
  }
.p-service-detail__img {
    flex: none;
    width: 100%;
  }
.p-service-detail--v2 {
    flex-direction: column;
  }
.p-service-detail__icon-area {
    flex: none;
    width: 100%;
    min-height: 180px;
  }
.p-service-detail--reverse .p-service-detail__icon-area {
    order: 0;
  }
.p-service-detail--reverse .p-service-detail__body {
    order: 0;
  }
.p-service-detail--v2 .p-service-detail__body {
    padding: 28px 24px;
  }
.p-service-detail__highlights {
    flex-wrap: wrap;
    gap: 16px;
  }
.p-service-detail__highlight-value {
    font-size: 2.2rem;
  }
}


@media screen and (max-width: 768px) {
.p-service-detail__icon-area {
    min-height: 140px;
  }
.p-service-detail__icon-circle {
    width: 72px;
    height: 72px;
  }
.p-service-detail__icon-circle svg {
    width: 36px;
    height: 36px;
  }
.p-service-detail__lead {
    font-size: 1.35rem;
  }
.p-service-detail__highlight-value {
    font-size: 2rem;
  }
}

/* ============================================
   Account Intelligence (--xray) 白パネル用 色味修正
   2026-05-29: ダークテーマ用の白文字/透明数字が白パネルに適用され
   不可視だった問題を修正（和田さん指摘「色味だけ」対応）
   - lead/title 本文: 白 → 濃紺(#0B1220)
   - strong/KPI数字: 透明/白 → ブランドティール(#007a8a)
   ============================================ */
.p-service-page .p-service-detail--xray .p-service-detail__title,
.p-service-page .p-service-detail--xray .p-service-detail__title-sub {
  color: #0B1220 !important;
  -webkit-text-fill-color: #0B1220 !important;
}
.p-service-page .p-service-detail--xray .p-service-detail__lead {
  color: #0B1220 !important;
  -webkit-text-fill-color: #0B1220 !important;
}
.p-service-page .p-service-detail--xray .p-service-detail__lead strong {
  color: #007a8a !important;
  -webkit-text-fill-color: #007a8a !important;
}
.p-service-page .p-service-detail--xray .p-service-detail__highlight-value,
.p-service-page .p-service-detail--xray .p-service-detail__highlight-unit {
  color: #007a8a !important;
  -webkit-text-fill-color: #007a8a !important;
  background: none !important;
}
.p-service-page .p-service-detail--xray .p-service-detail__highlight-label {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
}

/* ============================================================
 * iOS Safari mobile 緊急対応 (2026-05-30)
 * /service/ がスマホ実機 (iOS Safari) で render 停止 / 表示異常の報告。
 * GPU/メインスレッドを圧迫する重い CSS を mobile (≤768px) で無効化。
 *
 * 影響範囲:
 *   1. ヒーロー (p-service-rich-hero) の orb (filter:blur(60px)×3 が iOS で GPU 食いつぶし)
 *   2. Account Intelligence セクション (p-service-detail--xray) の animations / backdrop-filter
 *   3. Account Intelligence のアイコン領域 animations
 *
 * PC・タブレットの見た目は不変。スマホでアニメーションだけが消える。
 * ============================================================ */
@media (max-width: 768px) {
  /* === ヒーロー orb 完全無効化（filter:blur 60px × 3 が iOS GPU 限界突破の主犯）=== */
  .p-service-rich-hero__orb,
  .p-service-rich-hero__orb--a,
  .p-service-rich-hero__orb--b,
  .p-service-rich-hero__orb--c {
    display: none !important;
    animation: none !important;
    -webkit-animation: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    will-change: auto !important;
    transform: none !important;
  }

  /* === Account Intelligence セクション === */
  .p-service-detail--xray,
  .p-service-detail--xray *,
  .p-service-detail--xray *::before,
  .p-service-detail--xray *::after {
    animation: none !important;
    -webkit-animation: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
  }
  .p-service-detail--xray::before {
    background: none !important;
    opacity: 0 !important;
  }
  .p-service-detail--xray {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 60%, #0c4a6e 100%) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.3) !important;
  }
  .p-service-detail__icon-area--xray,
  .p-service-detail__icon-area--xray * {
    animation: none !important;
    -webkit-animation: none !important;
    transform: none !important;
  }
}

/* prefers-reduced-motion 尊重: 全アニメ無効化（OSの "視差を減らす" 設定対応）*/
@media (prefers-reduced-motion: reduce) {
  .p-service-page *,
  .p-service-page *::before,
  .p-service-page *::after {
    animation: none !important;
    -webkit-animation: none !important;
    transition: none !important;
  }
}
