/* ===========================================================
   digirise.ai を参考にした再デザインテーマ。
   style.css（元のX顧問LPデザイン）は変更せず、後読みのこの
   ファイルで上書きしています。戻すときはこのファイルの読み込みを
   外せば元のデザインに戻ります。
   =========================================================== */

/* ---------- デザイントークン（:root を上書き） ---------- */
:root {
  --blue: #2b50f0;
  --deep: #0c1668;
  --ink: #10172b;
  --muted: #5d6b85;
  --pale: #eef3fe;
  --line: #dbe4f6;
  --grad: linear-gradient(94deg, #2b5cff 10%, #6d2ff5 90%);
  --yellow: #ffe500;
  --gold1: #ecd08a;
  --gold2: #b8892f;
}

body { font-family: "Noto Sans JP", Inter, sans-serif; }

/* ---------- ヘッダー（常時白ピル） ---------- */
.header {
  top: 14px;
  height: 64px;
  background: #ffffffcc;
  border-color: #ffffffb5;
  border-radius: 999px;
  box-shadow: 0 14px 40px #0b1d7418;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header.scrolled { height: 58px; }
.logo small { color: #7c89a8; }

/* ---------- ボタン ---------- */
.btn { background: var(--grad); box-shadow: 0 14px 34px #2b46f03d; }
.btn:hover { background: var(--grad); filter: brightness(1.12); box-shadow: 0 18px 44px #2b46f055; }
.btn.ghost { background: transparent; border: 1px solid #ffffff70; box-shadow: none; }
.btn.ghost:hover { background: #ffffff1f; filter: none; }

/* 黄色リボンラベル（CTAボタンの上に置く小さな帯） */
.ribbon {
  position: relative;
  display: inline-block;
  margin: 4px 0 20px;
  padding: 9px 20px;
  background: var(--yellow);
  color: #191b26;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  border-radius: 999px;
}
.ribbon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--yellow);
  border-bottom: 0;
}

/* ---------- ヒーロー（濃紺ブルーの全面グラデーション） ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 920px;
  padding: 180px 24px 220px;
  color: #fff;
  background:
    radial-gradient(900px 480px at 82% 4%, #7a5cff59, transparent 65%),
    radial-gradient(700px 420px at 10% 92%, #19c8ff30, transparent 60%),
    linear-gradient(158deg, #2742f0 0%, #1e2ed6 45%, #121b9e 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff21 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  pointer-events: none;
}
.particle-canvas { display: none; }

/* 斜めの装飾シェイプ */
.hero .deco { position: absolute; pointer-events: none; }
.deco.d1 { right: -70px; top: 140px; width: 300px; height: 92px; background: linear-gradient(90deg, #22d3e6, #2b5cff); transform: skewX(-32deg); opacity: .9; }
.deco.d2 { left: -100px; bottom: 170px; width: 340px; height: 108px; background: linear-gradient(90deg, #2b5cff, #7a2ff0); transform: skewX(-32deg); opacity: .5; }

.hero-copy { max-width: 940px; }
.hero .tag { color: #aebcff; }
.hero h1 { max-width: none; letter-spacing: -.05em; }
.hero h1 span { font-size: clamp(30px, 4.4vw, 56px); font-weight: 500; }
.hero h1 em { font-size: clamp(56px, 9.4vw, 122px); font-weight: 900; line-height: 1.08; margin-top: 4px; color: #fff; }
.hero .lead { color: #dfe6ff; margin: 28px auto 24px; max-width: 640px; }
.hero .actions { justify-content: center; }
.hero .btn { padding: 19px 42px; font-size: 16px; }
.hero-points { justify-content: center; }
.hero-points li { color: #c6d2ff; }
.hero-points li::before { color: var(--yellow); }
.scroll-hint i { background: #fff; }

/* ---------- 実績ハイライト（ヒーローに重なる白カード） ---------- */
.stat-section {
  position: relative;
  z-index: 5;
  padding: 0 24px;
  background: linear-gradient(120deg, #fff 35%, #f5f9ff);
}
.stat-card {
  max-width: 1060px;
  margin: -130px auto 0;
  padding: 44px 20px 36px;
  background: #fff;
  border: 1px solid #eef1fb;
  border-radius: 22px;
  box-shadow: 0 34px 90px #0a1a5e30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat-card > div { padding: 6px 18px; border-left: 1px solid var(--line); }
.stat-card > div:first-child { border-left: 0; }
.stat-card small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--blue); }
.stat-card b { display: block; margin-top: 10px; font-size: 16px; font-weight: 900; color: var(--ink); }
.stat-card b em {
  font-style: normal;
  font-size: clamp(40px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -.04em;
  padding: 0 3px;
  background: linear-gradient(180deg, var(--gold1), var(--gold2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card span { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.stat-note { max-width: 1060px; margin: 12px auto 0; font-size: 10px; color: #8898b5; text-align: right; }

/* ---------- セクション見出し（背後に薄い巨大英語） ---------- */
.section-number { display: none; }
.heading { display: block; position: relative; margin-bottom: 54px; }
.heading::before {
  content: attr(data-en);
  position: absolute;
  z-index: -1;
  left: -10px;
  top: -.6em;
  font-family: Roboto, Inter, sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(68px, 11vw, 155px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--blue);
  opacity: .07;
  white-space: nowrap;
  pointer-events: none;
}
.heading > p {
  writing-mode: horizontal-tb;
  position: static;
  margin: 0 0 14px;
  font-family: Roboto, Inter, sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  color: var(--blue);
}
.heading h2 { max-width: 26em; padding-top: 0; font-weight: 900; font-size: clamp(29px, 4.4vw, 52px); line-height: 1.42; }
.heading.light::before { color: #fff; opacity: .06; }
.heading.light > p { color: #8fc0ff; }

/* マーカー強調（明るい面は黄色マーカー、暗い面は黄色アンダーライン） */
mark { background: linear-gradient(transparent 60%, #ffe500a6 60%); color: inherit; padding: 0 2px; }
.heading.light mark, .cta-copy mark {
  background: none;
  color: #fff;
  text-decoration-line: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 6px;
  text-underline-offset: 10px;
}

/* ---------- よくある課題 ---------- */
.issue-grid { gap: 16px; }
.issue-grid article { margin-left: 0; border: 1px solid #e7edfb; border-radius: 18px; box-shadow: 0 14px 40px #16307a0d; }
.issue-grid b {
  font-family: Roboto, Inter, sans-serif;
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.issue-grid article:hover b { color: transparent; -webkit-text-stroke: 0; }
.issue-close strong { color: var(--blue); }

/* ---------- WHAT WE DO ---------- */
.about { position: relative; }
.about::before {
  content: "About us";
  position: absolute;
  z-index: -1;
  left: -10px;
  top: -100px;
  font-family: Roboto, Inter, sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(68px, 10vw, 145px);
  line-height: 1;
  color: var(--blue);
  opacity: .07;
  white-space: nowrap;
  pointer-events: none;
}
.about-copy .tag {
  font-family: Roboto, Inter, sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: none;
}
.about-copy h2 { font-weight: 900; font-size: clamp(29px, 4.2vw, 48px); line-height: 1.45; }
.about-image { padding: 24px 20px 0; }
.about-image::before {
  content: "";
  inset: auto;
  right: -14px;
  top: -18px;
  width: 210px;
  height: 62px;
  background: linear-gradient(90deg, #22d3e6, #2b5cff);
  border-radius: 2px;
  transform: skewX(-32deg);
}
.about-image::after {
  content: "";
  position: absolute;
  left: 4%;
  bottom: 2%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ff5a1f;
}
.about-image img { border-radius: 50%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
.quote { border-left: 0; border-radius: 14px; background: #eef3ff; padding: 18px 24px; font-weight: 800; }

/* 自動化できる業務の例 */
.auto-block { margin-top: 84px; }
.auto-block h3 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.5; letter-spacing: -.03em; margin: 0 0 10px; font-weight: 900; }
.auto-block > p { font-size: 13px; color: var(--muted); margin: 0 0 28px; max-width: 46em; }
.auto-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.auto-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 24px 22px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  transition: background .35s var(--ease);
}
.auto-list li:hover { background: var(--pale); }
.auto-list li::before {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  margin-top: 9px;
  background: var(--blue);
  border-radius: 50%;
}

/* ---------- サービス（明るい背景のカードに変更） ---------- */
#service { background: linear-gradient(120deg, #fff 35%, #f2f7ff) !important; }
#service::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 70px;
  width: 320px;
  height: 100px;
  background: linear-gradient(90deg, #22d3e6, #2b5cff);
  transform: skewX(-32deg);
  opacity: .85;
  pointer-events: none;
}
.service-grid article { border: 1px solid #e8edfa; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 55px #0f2a6e14; }
.service-img { background: #fff; }
.service-img img { background: #fff; }
.service-img span {
  top: 10px;
  left: 14px;
  font-size: 42px;
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: 0 4px 20px #000c;
}
.service-body small { color: var(--blue); }
.service-body h3 { font-weight: 900; }

/* ---------- 実績グリッド ---------- */
.result-grid { gap: 14px; }
.result-grid article { border-radius: 14px; border: 1px solid #e8edfa; background: #f8faff; }
.result-grid article.featured { background: var(--grad); border-color: transparent; }
.result-grid article:hover { background: var(--grad); }
.result-grid article.featured strong em,
.result-grid article:hover strong em { color: #ffe37a; }
.result-grid article.featured > span,
.result-grid article:hover > span { color: #cdd9ff; }

/* ---------- 支援事例（ダーク面のカルーセル） ---------- */
.proof-section { background: linear-gradient(150deg, #1b2ad4, #0c1170) !important; }
.proof-swiper { margin-top: 8px; padding-bottom: 54px; }
.proof-swiper figure {
  margin: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px #00103a4d;
}
.proof-swiper img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: #f6f8fd;
  padding: 10px;
}
.proof-swiper figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  border-top: 1px solid #eef1f8;
  font-size: 11px;
}
.proof-swiper figcaption b { color: var(--blue); font-size: 12px; }
.proof-swiper figcaption span { color: var(--muted); }
.proof-swiper .swiper-pagination-bullet { background: #9fb4ff; opacity: .55; }
.proof-swiper .swiper-pagination-bullet-active { background: #fff; opacity: 1; }
.proof-swiper .swiper-button-prev, .proof-swiper .swiper-button-next { color: #fff; width: 38px; }
.proof-swiper .swiper-button-prev::after, .proof-swiper .swiper-button-next::after { font-size: 22px; }
/* Swiper未初期化（JS無効など）の場合は横スクロールで代替 */
.proof-swiper:not(.swiper-initialized) { overflow-x: auto; }
.proof-swiper:not(.swiper-initialized) .swiper-wrapper { display: flex; gap: 16px; padding-bottom: 12px; }
.proof-swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 min(420px, 85%); }

/* ---------- お客様の声 ---------- */
.voices article { border-top: 0; border: 1px solid #e8edfa; border-radius: 18px; background: #fff; box-shadow: 0 16px 44px #10265f0e; }
.voices span { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #e9efff; color: var(--blue); letter-spacing: .04em; }

/* ---------- 導入の流れ ---------- */
.flow { border-top: 0; gap: 14px; }
.flow li { border: 1px solid #e8edfa !important; border-radius: 16px; background: #fff; }
.flow li:hover { background: #f6f9ff; }
.flow b {
  font-family: Roboto, Inter, sans-serif;
  font-style: italic;
  font-size: 34px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.flow h3 { font-weight: 900; }

/* ---------- 最終CTA ---------- */
.cta { background: linear-gradient(140deg, #2338ee, #0d1487); }
.cta-image { background: #fff; }
.cta-image img { filter: none; opacity: 1; object-fit: contain; }
.cta-copy h2 { font-weight: 900; }
.cta-copy .ribbon { align-self: flex-start; margin-top: 26px; margin-bottom: 0; color: #191b26; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.cta .btn.white { background: #fff; color: var(--deep) !important; border: 1px solid #ffffff80; margin-top: 14px; }
.cta .btn.white:hover { background: #e9f0ff; filter: none; }

/* ---------- フッター ---------- */
footer { background: #0a1050; }
footer .logo { color: #fff; }
footer .logo small { color: #8fa0d6; }
footer div a, footer > small { color: #9fb0dd; }
footer div a::after { background: #fff; }

/* ---------- スマホ用の固定お問い合わせボタン ---------- */
.mobile-cta { display: none; }

/* ---------- レスポンシブ調整 ---------- */
@media (max-width: 900px) {
  .stat-card { grid-template-columns: 1fr; gap: 18px; margin-top: -90px; }
  .stat-card > div { border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .stat-card > div:first-child { border-top: 0; padding-top: 0; }
  .auto-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 780px; padding: 150px 22px 190px; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding: 130px 20px 170px; }
  .hero h1 span, .hero h1 em { display: block; }
  .hero .actions { align-items: center; }
  .heading > p { position: static; }
  .heading h2, .about-copy h2, .cta-copy h2 { padding-top: 0; }
  .heading::before, .about::before { top: -.5em; font-size: 64px; }
  .about-image { padding: 14px 8px 0; }
  .auto-block { margin-top: 56px; }
  .auto-list { grid-template-columns: 1fr; }
  .proof-swiper img { height: 330px; }
  .deco.d1 { top: 90px; width: 190px; height: 60px; right: -50px; }
  .deco.d2 { display: none; }

  .mobile-cta {
    display: block;
    position: fixed;
    z-index: 90;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px #0b3d7412;
  }
  .mobile-cta .btn { display: flex; width: 100%; padding: 16px 20px; }
  .mobile-cta small { display: block; margin-top: 7px; text-align: center; font-size: 10px; color: var(--muted); }
  body { padding-bottom: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  .proof-swiper .swiper-wrapper { transition-duration: .01ms !important; }
}
