@charset "UTF-8";

/*-------------------------------------------
サービス詳細ページ（single-service.php）
※ 数値はカンプ画像（PC 1440px / SP 375px）からの計測値。
  背景色・角丸・余白の最終値は Figma Dev Mode で要確認
-------------------------------------------*/
.p-sd {
  --sd-bg-blue: #f5f9fd;
  --sd-bg-gray: #f5f7fa;
  --sd-line: #dde3ea;
  --sd-navy: #1b3f73;
  --sd-section-py: 56px;

  font-family: var(--font-base);
  color: var(--color-text-sub);
}

@media (min-width: 1024px) {
  .p-sd {
    --sd-section-py: 80px;
  }
}

/* 詳細度を上げないよう :where() でリセット（style.css の要素指定を打ち消す） */
:where(.p-sd) :where(p, ul, ol, dl, dd, h3) {
  margin: 0;
  padding: 0;
}

:where(.p-sd) :where(h3) {
  font-size: inherit;
  text-align: left;
}

.p-sd img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*-------------------------------------------
セクション共通
-------------------------------------------*/
.p-sd-section {
  padding-block: var(--sd-section-py);
}

.p-sd-section--blue {
  background-color: var(--sd-bg-blue);
}

.p-sd-section--gray {
  background-color: var(--sd-bg-gray);
}

/* 見出し下のリード文 */
.p-sd-lead {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

/* 「・」付きリスト */
.c-sd-list li {
  position: relative;
  padding-left: 1em;
  font-size: 15px;
  line-height: 1.3;
}

.c-sd-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.c-sd-list--bold li {
  font-weight: 700;
}

.c-sd-list--gray li::before {
  color: inherit;
  font-weight: 400;
}

/* アイコン（assets/img/service/icon/*.svg をインライン出力。サイズは SVG の width/height に従う） */
.c-sd-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.c-sd-icon svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* カード（薄ブルー角丸） */
.p-sd-cards {
  display: grid;
  gap: 24px;
}

.p-sd-card {
  padding: 24px;
  border-radius: 16px;
  background-color: var(--sd-bg-blue);
}

.p-sd-card__title {
  margin-bottom: 16px;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .p-sd-cards--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .p-sd-cards--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .p-sd-card {
    padding: 32px;
  }
}

/*-------------------------------------------
パンくず
-------------------------------------------*/
.p-sd-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  padding-block: 10px;
  font-size: 12px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .p-sd-breadcrumb__list {
    font-size: 14px;
  }
}

.p-sd-breadcrumb__item {
  display: inline-flex;
  align-items: center;
}

.p-sd-breadcrumb__item + .p-sd-breadcrumb__item::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 10px 0 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.p-sd-breadcrumb a {
  color: inherit;
}

@media (hover: hover) {
  .p-sd-breadcrumb a:hover {
    color: var(--color-primary);
    text-decoration: underline;
  }
}

/*-------------------------------------------
MV（下層キービジュアル）
  SP: 写真（下端を青へフェード）→ 青グラデーションにテキスト
  PC: 右に写真、左から青グラデーションを重ねて写真の左端でフェードアウト
-------------------------------------------*/
.p-sd-mv {
  --mv-blue-dark: #1b8fd8;
  --mv-blue-light: #4ab4ea;

  position: relative;
  color: var(--color-white);
  background: var(--mv-blue-light);
}

.p-sd-mv__photo {
  position: relative;
  display: block;
  aspect-ratio: 375 / 200;
  overflow: hidden;
}

.p-sd-mv__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.p-sd-mv__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 60%;
  /* 境界が見えないようイージングをかけてフェード */
  background: linear-gradient(180deg,
      rgb(74 180 234 / 0%) 0%,
      rgb(74 180 234 / 15%) 30%,
      rgb(74 180 234 / 45%) 55%,
      rgb(74 180 234 / 80%) 78%,
      var(--mv-blue-light) 100%);
}

.p-sd-mv__body {
  position: relative;
  padding-top: 16px;
  padding-bottom: 48px;
  /* 写真下端のフェード色（--mv-blue-light）から始めて境界をなくす */
  background: linear-gradient(180deg, var(--mv-blue-light) 0%, var(--color-primary) 100%);
}

.p-sd-mv__title {
  margin: 0;
  padding: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.p-sd-mv__lead {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.p-sd-mv__text {
  margin-top: 40px;
  font-size: 14px;
  line-height: 1.6;
}

.p-sd-mv--no-image .p-sd-mv__body {
  padding-top: 48px;
}

@media (min-width: 768px) {
  .p-sd-mv {
    display: flex;
    align-items: center;
    min-height: 480px;
    overflow: hidden;
    background: var(--mv-blue-light);
  }

  .p-sd-mv::before {
    /* テキスト（.p-sd-mv__text 等）の右端。タブレット幅でも文字の下までは写真が透けないようにする */
    --mv-text-end: calc(var(--gutter) + min(500px, (100% - var(--gutter) * 2) * 0.6));

    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
        var(--mv-blue-dark) 0%,
        var(--mv-blue-light) max(40%, calc(100% - 820px), var(--mv-text-end)),
        rgb(74 180 234 / 0%) max(55%, calc(100% - 660px), calc(var(--mv-text-end) + 120px)));
  }

  .p-sd-mv--no-image::before {
    background: linear-gradient(90deg, var(--mv-blue-dark) 0%, var(--mv-blue-light) 100%);
  }

  .p-sd-mv__photo {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .p-sd-mv__photo::after {
    content: none;
  }

  .p-sd-mv__body {
    z-index: 2;
    width: 100%;
    padding-block: 48px;
    background: none;
  }

  .p-sd-mv__title,
  .p-sd-mv__lead,
  .p-sd-mv__text {
    max-width: min(500px, 60%);
  }

  .p-sd-mv__lead {
    font-size: 18px;
  }

  .p-sd-mv__text {
    font-size: 15px;
    line-height: 1.75;
  }
}

@media (min-width: 1024px) {
  .p-sd-mv__title {
    font-size: 48px;
  }

  .p-sd-mv__text {
    font-size: 16px;
  }
}

/*-------------------------------------------
About
-------------------------------------------*/
.p-sd-about__body {
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  font-size: 16px;
  line-height: 1.7;
}

.p-sd-about__logos {
  display: flex;
  gap: 4%;
  margin-top: 24px;
}

.p-sd-about__logo {
  width: 48%;
  max-width: 300px;
  border: 1px solid var(--color-border-light);
  background-color: var(--color-white);
}

.p-sd-about__logo img {
  width: 100%;
}

@media (min-width: 768px) {
  .p-sd-about__logos {
    gap: 16px;
  }
}

/*-------------------------------------------
Solution
-------------------------------------------*/
.p-sd-solution__body {
  display: grid;
  gap: 40px;
}

.p-sd-solution__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-sd-solution__list li {
  padding-left: 1.6em;
  font-size: 16px;
}

.p-sd-solution__list li::before {
  left: 0.2em;
}

.p-sd-solution__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 335 / 264;
  padding: 24px;
  border-radius: 8px;
  background-color: var(--color-white);
}

.p-sd-solution__visual img {
  width: auto;
}

@media (min-width: 768px) {
  .p-sd-solution__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 378px);
    align-items: start;
  }

  .p-sd-solution__list {
    gap: 14px;
  }

  .p-sd-solution__visual {
    aspect-ratio: 378 / 298;
  }
}

/*-------------------------------------------
Features（課題解決ボックス）
-------------------------------------------*/
.p-sd-features__box {
  position: relative;
  margin-top: 104px;
  padding: 72px 20px 40px;
  border: 2px solid var(--color-primary);
}

/* 枠線に重ねるラベル（背景色で枠線を切る） */
.p-sd-features__label {
  position: absolute;
  top: -81px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 20px;
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateX(-50%);
  white-space: nowrap;
}

.p-sd-features__label-ja {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.p-sd-features__label-en {
  font-size: 12px;
  line-height: 1.4;
}

.p-sd-features__list {
  display: grid;
  gap: 48px;
}

.p-sd-features__item {
  display: flex;
  flex-direction: column;
}

.p-sd-features__icon {
  align-self: center;
  height: 33px;
}

.p-sd-features__title {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.p-sd-features__text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .p-sd-features__box {
    margin-top: 120px;
    padding: 80px 40px 56px;
  }

  .p-sd-features__label {
    top: -83px;
    left: 20px;
    transform: none;
  }

  .p-sd-features__label-ja {
    font-size: 28px;
  }

  .p-sd-features__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 72px 40px;
  }

  .p-sd-features__item {
    grid-column: span 3;
  }

  /* 5項目：1段目2列＋2段目3列 */
  .p-sd-features__list--5 .p-sd-features__item:nth-child(n + 3) {
    grid-column: span 2;
  }

  .p-sd-features__icon {
    align-self: flex-start;
  }

  .p-sd-features__text {
    line-height: 1.3;
  }
}

@media (min-width: 1024px) {
  .p-sd-features__box {
    padding-inline: 64px;
  }
}

/*-------------------------------------------
アコーディオン（Flow / FAQ 共通）
-------------------------------------------*/
.c-sd-acc {
  border: 1px solid var(--sd-line);
  background-color: var(--color-white);
}

.c-sd-acc__trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px;
  border: 0;
  background: none;
  color: var(--color-text-sub);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.c-sd-acc__trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.c-sd-acc__label {
  flex: 1;
}

/* ＋／− */
.c-sd-acc__mark {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.c-sd-acc__mark::before,
.c-sd-acc__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background-color: var(--color-primary);
  transition: transform var(--ease-hover);
}

.c-sd-acc__mark::after {
  transform: rotate(90deg);
}

.c-sd-acc__trigger[aria-expanded="true"] .c-sd-acc__mark::after {
  transform: rotate(0deg);
}

.c-sd-acc__panel {
  overflow: hidden;
  transition: height 0.3s ease;
}

.c-sd-acc__inner {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.45;
}

@media (min-width: 1024px) {
  /* 余白を開閉状態で変えない（閉じる際に本文がずれないよう、下余白の一部をカード側に持たせる） */
  .c-sd-acc {
    padding-bottom: 16px;
  }

  .c-sd-acc__trigger {
    padding: 30px 36px 14px 24px;
    font-size: 18px;
  }

  .c-sd-acc__inner {
    padding: 0 24px 8px;
  }
}

@media (hover: hover) {
  .c-sd-acc__trigger:hover .c-sd-acc__label {
    color: var(--color-primary);
  }
}

/*-------------------------------------------
Flow
-------------------------------------------*/
.p-sd-flow__lead {
  margin-bottom: 24px;
  font-size: 14px;
}

.p-sd-flow__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-sd-flow__item {
  --flow-num: 52px;
  --flow-num-offset: 8px;

  position: relative;
  display: grid;
  grid-template-columns: var(--flow-num) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

/* 番号を結ぶ縦線 */
.p-sd-flow__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--flow-num-offset) + var(--flow-num) / 2);
  bottom: calc(-16px - var(--flow-num-offset) - var(--flow-num) / 2);
  left: calc(var(--flow-num) / 2 - 3px);
  width: 6px;
  background-color: var(--color-primary);
}

.p-sd-flow__num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--flow-num);
  height: var(--flow-num);
  margin-top: var(--flow-num-offset);
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.p-sd-flow__card {
  border-radius: 16px;
}

@media (min-width: 1024px) {
  .p-sd-flow__lead {
    margin-bottom: 16px;
  }

  .p-sd-flow__list {
    gap: 24px;
  }

  .p-sd-flow__item {
    --flow-num: 56px;
    --flow-num-offset: 0px;

    gap: 32px;
    padding-left: 8px;
  }

  .p-sd-flow__item:not(:last-child)::before {
    bottom: calc(-24px - var(--flow-num) / 2);
    left: calc(8px + var(--flow-num) / 2 - 3px);
  }

  .p-sd-flow__card {
    border-radius: 24px;
  }
}

/*-------------------------------------------
Development / Skill
-------------------------------------------*/
.p-sd-spec__list {
  border: 1px solid var(--sd-line);
}

.p-sd-spec__row + .p-sd-spec__row {
  border-top: 1px solid var(--sd-line);
}

.p-sd-spec__label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--sd-line);
  background-color: var(--sd-bg-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.p-sd-spec__icon {
  width: 20px;
}

.p-sd-spec__value {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .p-sd-spec__row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .p-sd-spec__label {
    gap: 14px;
    padding: 12px 20px;
    border-right: 1px solid var(--sd-line);
    border-bottom: 0;
  }

  .p-sd-spec__value {
    display: flex;
    align-items: center;
    padding: 12px 32px;
  }
}

/*-------------------------------------------
Case Study
-------------------------------------------*/
.p-sd-cases__card--list .c-sd-list li {
  line-height: 1.3;
}

.p-sd-cases__body {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  font-size: 15px;
  line-height: 1.3;
}

.p-sd-cases__body strong {
  font-weight: 700;
}

/*-------------------------------------------
FAQ
-------------------------------------------*/
.p-sd-faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-sd-faq__item {
  border-radius: 12px;
}

.p-sd-faq__mark {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.p-sd-faq__answer {
  display: flex;
  gap: 12px;
  padding-left: 22px;
  font-size: 14px;
}

.p-sd-faq__mark--a {
  font-weight: 400;
}

@media (min-width: 1024px) {
  .p-sd-faq__answer {
    padding-left: 40px;
    font-size: 16px;
  }
}

/*-------------------------------------------
Why Nearshore（比較カード）
-------------------------------------------*/
.p-sd-compare__body {
  display: grid;
  gap: 40px;
}

.p-sd-compare__card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.p-sd-compare__title {
  padding: 12px 24px;
  border-radius: 12px 12px 0 0;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.p-sd-compare__content {
  flex: 1;
  padding: 24px 16px;
  border: 1px solid var(--sd-line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.p-sd-compare__lead {
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.p-sd-compare__deco {
  display: block;
}

/* 不安とリスク */
.p-sd-compare__card--risk .p-sd-compare__title {
  background-color: #999999;
}

.p-sd-compare__card--risk .p-sd-compare__content {
  background-color: var(--color-white);
}

.p-sd-compare__card--risk .p-sd-compare__lead {
  font-size: 15px;
}

.p-sd-compare__deco--risk {
  align-self: flex-end;
  width: 58px;
  margin: 0 8px 12px 0;
}

/* メリット */
.p-sd-compare__card--merit .p-sd-compare__title {
  padding-block: 20px;
  background-color: var(--color-primary);
  font-size: 20px;
  text-align: left;
}

.p-sd-compare__card--merit .p-sd-compare__content {
  background-color: var(--sd-bg-blue);
}

.p-sd-compare__card--merit .p-sd-compare__lead {
  color: var(--color-primary);
  font-size: 17px;
}

.p-sd-compare__card--merit .c-sd-list li {
  font-size: 15px;
}

.p-sd-compare__deco--merit {
  align-self: center;
  width: 180px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .p-sd-compare__body {
    grid-template-columns: minmax(0, 372fr) minmax(0, 786fr);
    align-items: end;
    gap: 64px;
  }

  .p-sd-compare__deco--risk {
    margin-right: 0;
  }

  .p-sd-compare__content {
    padding: 24px 32px 28px;
  }

  .p-sd-compare__card--merit .p-sd-compare__title {
    font-size: 24px;
    text-align: center;
  }

  .p-sd-compare__card--merit .p-sd-compare__lead {
    font-size: 18px;
  }

  .p-sd-compare__card--merit .c-sd-list li {
    font-size: 17px;
  }

  .p-sd-compare__deco--merit {
    width: 238px;
  }
}

/*-------------------------------------------
Awards
-------------------------------------------*/
.p-sd-awards__body {
  font-size: 16px;
  line-height: 1.7;
}

.p-sd-awards__image {
  width: 285px;
  max-width: 100%;
  margin-top: 16px;
}

/*-------------------------------------------
Security & Facilities
-------------------------------------------*/
.p-sd-facilities__list {
  display: grid;
  gap: 32px;
}

.p-sd-facilities__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.p-sd-facilities__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
}

.p-sd-facilities__card {
  padding: 16px;
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  background-color: var(--color-white);
}

.p-sd-facilities__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
}

.p-sd-facilities__image img {
  width: auto;
  max-height: 100%;
}

.p-sd-facilities__text {
  margin-top: 24px;
  padding-inline: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.p-sd-facilities__access {
  margin-top: 40px;
}

.p-sd-access {
  display: grid;
  gap: 32px;
  padding: 24px;
}

.p-sd-access__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.p-sd-access__lead {
  color: var(--sd-navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}

.p-sd-access__routes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.p-sd-access__route {
  display: flex;
  /*align-items: center;*/
  gap: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  background-color: var(--sd-bg-blue);
}

.p-sd-access__icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
}

.p-sd-access__route-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.p-sd-access__route-text {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.4;
}

.p-sd-access__checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.p-sd-access__checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.p-sd-facilities__closing {
  margin-top: 40px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .p-sd-facilities__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .p-sd-facilities__item {
    display: flex;
    flex-direction: column;
  }

  .p-sd-facilities__item .p-sd-facilities__card {
    flex: 1;
  }

  .p-sd-facilities__image {
    height: 143px;
  }

  .p-sd-facilities__text {
    padding-inline: 0;
  }

  .p-sd-access {
    grid-template-columns: minmax(0, 476fr) minmax(0, 614fr);
    align-items: center;
    gap: 60px;
  }

  .p-sd-access__photo img {
    aspect-ratio: 476 / 460;
  }

  .p-sd-access__lead {
    font-size: 18px;
  }
}

/*-------------------------------------------
比較表（Pricing / Plans）
  SP: 横スクロール。左列を固定し、表の下にスクロール位置のインジケーターを表示
-------------------------------------------*/
.p-sd-table__lead {
  margin-bottom: 4px;
}

.p-sd-table__wrap {
  position: relative;
}

.p-sd-table__scroll {
  overflow-x: auto;
  scrollbar-width: none;
}

.p-sd-table__scroll::-webkit-scrollbar {
  display: none;
}

.p-sd-table__scroll:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.p-sd-table__table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border-top: 1px solid var(--sd-line);
  border-left: 1px solid var(--sd-line);
  font-size: 14px;
  line-height: 1.3;
}

.p-sd-table--plans .p-sd-table__table {
  min-width: 960px;
}

.p-sd-table__table th,
.p-sd-table__table td {
  padding: 14px 16px;
  border-right: 1px solid var(--sd-line);
  border-bottom: 1px solid var(--sd-line);
  background-color: var(--color-white);
  text-align: left;
  vertical-align: middle;
}

.p-sd-table__table th {
  font-weight: 700;
}

.p-sd-table__table thead th,
.p-sd-table__table tbody th {
  background-color: var(--sd-bg-blue);
}

/* 左列（項目名）を固定 */
.p-sd-table__table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 220px;
}

.p-sd-table__corner {
  background-color: var(--color-white);
}

.p-sd-table__table .p-sd-table__merged {
  text-align: center;
}

.p-sd-table--plans .p-sd-table__table .p-sd-table__merged {
  text-align: left;
}

.p-sd-table--plans .p-sd-table__table tr > :first-child {
  width: 200px;
}

/* 右端のフェード（続きがあることを示す） */
.p-sd-table__wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 18px;
  width: 48px;
  background: linear-gradient(90deg, rgb(255 255 255 / 0%), var(--color-white));
  pointer-events: none;
  transition: opacity var(--ease-hover);
}

.p-sd-table__wrap.is-end::after,
.p-sd-table__wrap.is-static::after {
  opacity: 0;
}

/* スクロール位置インジケーター */
.p-sd-table__indicator {
  position: relative;
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  background-color: #eeeeee;
}

.p-sd-table__indicator-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--indicator-w, 30%);
  height: 100%;
  background-color: var(--color-primary);
  transform: translateX(var(--indicator-x, 0));
}

.p-sd-table__wrap.is-static .p-sd-table__indicator {
  display: none;
}

.p-sd-table__note {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .p-sd-table__table,
  .p-sd-table--plans .p-sd-table__table {
    min-width: 0;
  }

  .p-sd-table__table th,
  .p-sd-table__table td {
    padding: 12px 16px;
  }

  .p-sd-table__note {
    margin-top: 12px;
  }
}

/*-------------------------------------------
CTA との間隔（セクション下余白を含めて共通CTAの margin-top に合わせる）
-------------------------------------------*/
.p-sd + .p-cta {
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .p-sd + .p-cta {
    margin-top: 120px;
  }
}

/*-------------------------------------------
フォールバック（データファイルが無い投稿の本文）
-------------------------------------------*/
.p-sd-content__body {
  font-size: 16px;
  line-height: 1.8;
}

.p-sd-content__body > * + * {
  margin-top: 1em;
}

.p-sd-content__body h2 {
  margin-top: 2em;
  font-size: 24px;
}

.p-sd-content__body h3 {
  margin-top: 1.5em;
  font-size: 18px;
}

.p-sd-content__body ul li {
  list-style: disc;
  margin-left: 1.5em;
}

.p-sd-content__body table {
  width: 100%;
}

.p-sd-content__body th,
.p-sd-content__body td {
  padding: 8px 12px;
  border: 1px solid var(--sd-line);
}
