/* Shared page patterns from Figma */

/* ===== Global grain / paper texture (全体のざらざら感) ===== */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0.33 0.33 0.33 0 0  0.33 0.33 0.33 0 0  0.33 0.33 0.33 0 0  0 0 0 0 1'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  background-size: 180px 180px;
  opacity: 0.13;
  mix-blend-mode: overlay;
}

.p-hero {
  position: relative;
  display: flex;
  align-items: center;
  height: 388px;
  background-color: var(--color-primary);
  color: #ffffff;
  overflow: hidden;
}

/* Figma: white 17% overlay masked by grain texture.
   High-contrast sparse speckles so the base green stays dark. */
.p-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 3 -1.1'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.23;
  pointer-events: none;
  /* Figma renders the grain + network above the text */
  z-index: 2;
}

/* Figma: 1920x1080 source drawn at 857x482, left 601px / top -13px on 1440 frame.
   Image is cropped to content bbox (right 58% of source), so displayed size is 495x372
   and it bleeds 18px past the right edge. */
/* Figma network lines 1: 857×482 / x=601(右端-18) / y=-13 / 不透明度0.64 / FILL */
.p-hero__network {
  position: absolute;
  top: -13px;
  right: -18px;
  width: 857px;
  height: 482px;
  object-fit: cover;
  opacity: 0.64;
  pointer-events: none;
  z-index: 3;
}

.p-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 40px 24px 40px 200px;
}

.p-hero__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}

.p-hero__heading {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.p-hero__label {
  font-size: 16px;
  letter-spacing: 1.4px;
  color: var(--color-accent);
}

.p-hero__title {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
}

.p-hero__subtitle {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 7px;
}

.p-hero__subtitle--tight {
  letter-spacing: 1.76px;
}

.p-hero__text {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.42px;
  line-height: 38px;
  color: #ffffff;
}

.p-hero__text p + p {
  margin-top: 0;
}

.p-hero__divider {
  width: 100%;
  height: 1px;
  background-color: #ffffff;
  margin-top: 8px; /* Figma: 8px spacer + 14px gap */
}

.p-section {
  padding-block: 80px;
}

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

.p-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.p-section__header .c-section-label {
  margin-bottom: 7px;
}

/* Figma: 下層ページのラベルは PC 11px / SP 13px、いずれもテキスト枠は 16px */
.c-section-label--sm {
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 18px;
}

/* Figma: 36px 見出しはテキスト枠 52px */
.c-section-title--lg {
  font-size: 38px;
  letter-spacing: 7px;
  line-height: 54px;
}

.p-challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.p-challenge-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

/* 見出しが+2pxされたぶん、カンプの改行位置（最長12文字）が1行に収まるよう左右を詰めている */
.p-challenge-card__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 8px 24px;
}

.p-challenge-card__icon {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.p-challenge-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.p-challenge-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  /* Figma は 0.8px。+2px した文字を1行に収めるため字間で差分を吸収している */
  letter-spacing: 0.2px;
  line-height: 1.5;
}

.p-challenge-card__desc {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background-color: var(--color-bg-card);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.03em;
  line-height: 1.72;
  min-height: 103px;
  text-align: center;
}

.p-service-tag {
  display: inline-block;
  padding: 12px 17px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

/* Figma Group 30: green tag 111x40 + gold dash at y22 + serif title + underline at bottom */
.p-svc-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 55px;
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.p-svc-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: var(--color-primary);
}

.p-svc-head__tag {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 111px;
  height: 40px;
  padding-left: 2px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  flex-shrink: 0;
}

/* Figma Line 4 (node 1:8271): 20px gold dash. Container at top 22px with the stroke
   extending 2px upward, so the visible dash sits at y20–22 within the 40px badge. */
.p-svc-head__tag::after {
  content: "";
  position: absolute;
  left: 102px;
  top: 20px;
  width: 20px;
  height: 2px;
  background-color: var(--color-accent);
}

.p-svc-head__title {
  margin-top: 1.5px;
  margin-left: 26px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  line-height: 36px;
}

@media (max-width: 768px) {
  .p-svc-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .p-svc-head__title {
    margin-left: 0;
    font-size: 22px;
  }
}

.p-service-block {
  margin-bottom: 64px;
}

.p-service-block__header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-primary);
  margin-bottom: 32px;
}

.p-service-block__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
}

.p-step-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.p-step-item {
  text-align: center;
}

.p-step-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.p-step-item__title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.p-step-item__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== FAQ section ===== */
/* 既定 PC（SUS/ORG Figma 5:5492 / 5:5927）: 白背景・カード装飾なし */
/* CM/VN PC（Figma 5:4063 / 5:4491）は各ページ CSS でベージュ＋白カード */
.p-faq {
  background-color: var(--color-bg);
  padding-block: 120px;
}

.p-faq__card {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.p-faq__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

/* Figma Rectangle: リスト直下の 1px #d6ded9 */
.p-faq__divider {
  height: 1px;
  background-color: #d6ded9;
}

.p-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* PC と SP で設問文が別物のページ用（サステナビリティ）。既定は PC 版を表示 */
.p-faq-list--sp {
  display: none;
}

/* Figma では回答パネルもリストの1行なので、質問行との間に 1px の隙間が入る */
.p-faq-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.p-faq-item__trigger {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  height: 64px;
  padding-inline: 40px;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.6px;
  line-height: 24px;
  color: var(--color-text);
}

.p-faq-item.is-open .p-faq-item__trigger {
  background-color: #f0f2f1;
}

.p-faq-item__q {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.p-faq-item__panel {
  display: none;
  gap: 20px;
  padding: 20px 40px 24px;
  font-size: 16px;
  color: var(--color-text);
  letter-spacing: 0.28px;
  line-height: 28px;
}

.p-faq-item__a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #d8e7df;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
}

.p-faq-item.is-open .p-faq-item__panel {
  display: flex;
}

/* Figma Group 7973: 28×28 の中に 2px の線を十字に配置（開いている行は横線のみ） */
.p-faq-item__trigger::after {
  content: "";
  flex-shrink: 0;
  margin-left: auto;
  width: 28px;
  height: 28px;
  background-image:
    linear-gradient(var(--color-primary), var(--color-primary)),
    linear-gradient(var(--color-primary), var(--color-primary));
  background-size: 28px 2px, 2px 28px;
  background-position: center center;
  background-repeat: no-repeat;
}

.p-faq-item.is-open .p-faq-item__trigger::after {
  background-image: linear-gradient(var(--color-primary), var(--color-primary));
  background-size: 28px 2px;
}

/* ===== Page bottom CTA (Figma: green 462px section with photo & phone) ===== */
.p-page-cta {
  position: relative;
  background-color: var(--color-primary);
  overflow: hidden;
}

.p-page-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 3 -1.1'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.23;
  pointer-events: none;
}

/* Figma: white pixel squares deco at top-left */
.p-page-cta__deco {
  position: absolute;
  top: 0;
  left: 65px;
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  box-shadow: 40px 39px 0 #ffffff, 80px 79px 0 #ffffff, 40px 119px 0 #ffffff;
  pointer-events: none;
}

/* Figma 5:5523: 672px のテキスト列と 565px の写真を隙間なく並べ、1440 の中央に配置 */
.p-page-cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 462px;
  max-width: 1440px;
  margin-inline: auto;
  padding: 60px 24px;
}

.p-page-cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 672px;
  padding-inline: 24px;
  text-align: center;
}

.p-page-cta__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 38px;
  word-break: keep-all;
}

/* Figma Paragraph 624×84: 上16px の余白＋52px のテキスト＋16px の余り */
.p-page-cta__text {
  padding-block: 16px;
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 28px;
}

.p-page-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 16px 48px;
  border-radius: 100px;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 26px;
  transition: opacity 0.25s ease;
}

.p-page-cta__btn:hover {
  opacity: 0.85;
}

/* Figma vector 14×10 + stroke1.5 = 実寸 15.5×11.5 */
.p-page-cta__btn-arrow {
  display: block;
  flex-shrink: 0;
  width: 15.5px;
  height: 11.5px;
}

/* TOP用: Figmaの「お問い合わせ」見出しは40px */
.p-page-cta__title--lg {
  font-size: 42px;
  line-height: 1.3;
}

/* Figma Paragraph 624×24: アイコンと番号は上揃え（番号は 28px 分下にはみ出す） */
.p-page-cta__tel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  height: 24px;
  color: #ffffff;
}

.p-page-cta__tel img {
  display: block;
}

.p-page-cta__tel span {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 30px;
}

.p-page-cta__visual {
  flex-shrink: 0;
  width: 565px;
  height: 289px;
  border-radius: 8px;
  overflow: hidden;
}

.p-page-cta__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .p-page-cta__inner {
    flex-direction: column;
    gap: 40px;
  }

  .p-page-cta__deco {
    left: 0;
  }

  .p-page-cta__content {
    width: 100%;
    max-width: 672px;
  }

  .p-page-cta__visual {
    width: 100%;
    max-width: 565px;
    height: auto;
    aspect-ratio: 565 / 289;
  }
}

/* 横並びのまま幅が狭いとき、左上模様と見出しが重なるのを防ぐ（文言幅は維持） */
@media (max-width: 1360px) and (min-width: 1201px) {
  .p-page-cta__deco {
    left: 0;
  }

  .p-page-cta__inner {
    justify-content: flex-start;
    max-width: none;
    padding-left: 120px;
  }

  .p-page-cta__content {
    flex: 1 1 400px;
    width: auto;
    min-width: 0;
    max-width: 672px;
  }

  .p-page-cta__visual {
    flex: 0 1 565px;
    width: auto;
    min-width: 0;
  }
}

/* Figma mobile CTA (390px): photo on top, checkered deco 22px, centered text */
@media (max-width: 768px) {
  /* SPのCTAはノイズレイヤーを持たない（Figma 5:10042 / 5:6758 とも塗りは #195c3d 単色） */
  .p-page-cta::before {
    display: none;
  }

  .p-page-cta__deco {
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    box-shadow: 24px 24px 0 #ffffff, 48px 48px 0 #ffffff, 24px 72px 0 #ffffff;
  }

  .p-page-cta__inner {
    flex-direction: column-reverse;
    gap: 20px;
    min-height: 0;
    padding: 56px 24px;
  }

  .p-page-cta__content {
    gap: 20px;
    padding-inline: 0;
  }

  .p-page-cta__visual {
    max-width: none;
    border-radius: 8px;
    aspect-ratio: 342 / 200;
  }

  /* Figma 5:6760: 22px×1.4 の行を 31px 枠で積む（2行 62px） */
  .p-page-cta__title {
    font-size: 24px;
    letter-spacing: normal;
    line-height: 33px;
  }

  /* Figma SP TOP: お問い合わせ は Serif Bold 24 */
  .p-page-cta__title--lg {
    font-size: 26px;
    line-height: 36px;
  }

  .p-page-cta__text {
    padding-block: 0;
    font-size: 16px;
    letter-spacing: normal;
    line-height: 26px;
  }

  /* Figma SP 219×45: 14px テキスト（枠17px）＋上下14pxのパディング。
     Figma はラベルと矢印が「お問い合わせフォームへ →」の1テキストなので
     アイコンとの間隔は半角スペース1つ分（14px×0.26）に合わせる */
  .p-page-cta__btn {
    gap: 3.6px;
    padding: 14px 24px;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: normal;
  }

  .p-page-cta__btn-arrow {
    width: 14px;
    height: 10px;
  }

  /* SPは電話アイコンなし（Figmaは番号テキストのみ／行の高さ22px） */
  .p-page-cta__tel {
    height: auto;
  }

  .p-page-cta__tel img {
    display: none;
  }

  .p-page-cta__tel span {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 24px;
  }
}

@media (max-width: 1024px) {
  .p-challenge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-step-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.p-challenge-card--compact .p-challenge-card__top {
  padding-bottom: 28px;
}

.p-section__lead {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.01em;
  line-height: 1.9;
  /* Figma 800px をコンテンツ拡大比 1.176 倍に合わせている */
  max-width: 941px;
  margin-inline: auto;
}

.p-section__lead--sm {
  font-size: 15px;
  line-height: 24px;
}

.p-section__lead + .p-challenge-grid,
.p-section__lead + .p-service-index {
  margin-top: 40px;
}

.p-service-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.p-service-index__card {
  background-color: var(--color-bg);
  border-radius: 0 20px 0 20px;
  padding: 16px 20px 28px;
}

.p-service-index__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 7px;
}

.p-service-index__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-primary);
  margin-bottom: 14px;
}

.p-service-index__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 3px;
  line-height: 28px;
  min-height: 52px;
}

.p-service-index__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
}

.p-service-index__link--outline {
  background-color: var(--color-bg);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.p-service-index__text {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 1px;
  line-height: 26px;
}

@media (max-width: 1200px) {
  .p-hero__inner {
    padding-inline: 80px 24px;
  }

  .p-hero__network {
    max-width: 55%;
  }
}

/* ===== Mobile vertical timeline (Figma SP: numbered circle + rail + card) ===== */
.p-tl__item {
  display: flex;
  gap: 16px;
}

.p-tl__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.p-tl__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.p-tl__num--sm {
  width: 28px;
  height: 28px;
}

.p-tl__line {
  flex: 1;
  width: 2px;
  background-color: var(--color-primary);
}

.p-tl__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 20px;
}

.p-tl__item:last-child .p-tl__body {
  padding-bottom: 0;
}

.p-tl__heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p-tl__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
}

.p-tl__sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.p-tl__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.p-tl__head img {
  display: block;
  width: 20px;
  height: 20px;
}

.p-tl__period {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  margin-left: 2px;
}

.p-tl__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.65;
}

@media (max-width: 768px) {
  /* --- Hero (Figma SP: network art on top, text block from y220) --- */
  .p-hero {
    height: auto;
    min-height: 0;
  }

  /* Figma 5:10369: SP の FV は白17%のベタ塗りで、グレインは乗らない。
     重ね順も Figma（塗り → 網 → テキスト）に合わせる */
  .p-hero::before {
    z-index: 0;
    background-image: none;
    background-color: rgba(255, 255, 255, 0.17);
    opacity: 1;
  }

  .p-hero__inner {
    z-index: 2;
    padding: 220px 24px 33px;
  }

  /* Figma 5:10370: 原画 1920×1080 を 857×482（縮尺 0.4464）で x=-278 に敷く。
     書き出し済みの PNG は中身の bbox（原画 x=812 の 1108×833）なので、同じ縮尺で
     置き直すと 494.6×371.8 / left 84.4px になる。値は SP 基準幅 390px に対する
     比率で持たせ、390px を超える幅でも Figma と同じ相対位置を保つ */
  .p-hero__network {
    z-index: 1;
    top: 0;
    right: auto;
    left: 21.65%;
    width: 126.81%;
    /* 390px を大きく超える幅では網が育ちすぎて本文にかぶるため頭を押さえる */
    max-width: 560px;
    height: auto;
    object-fit: fill;
    opacity: 0.64;
  }

  .p-hero__content {
    gap: 12px;
  }

  .p-hero__label {
    font-size: 15px;
    line-height: 18px;
    letter-spacing: normal;
  }

  .p-hero__title {
    font-size: 30px;
    line-height: 42px;
    letter-spacing: normal;
  }

  /* Figma SP: label→title 7px / title→subtitle 12px */
  .p-hero__subtitle {
    margin-top: 5px;
    font-size: 17px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: normal;
  }

  .p-hero__divider {
    display: none;
  }

  .p-hero__text {
    font-size: 15px;
    letter-spacing: normal;
    line-height: 25px;
  }

  /* SP: hero text flows as one paragraph */
  .p-hero__text p {
    display: inline;
  }

  /* SP: drop desktop-only line breaks and let text wrap naturally */
  .p-service-index__title br:not(.u-sp),
  .p-section__lead br:not(.u-sp),
  .p-page-cta__text br:not(.u-sp) {
    display: none;
  }

  /* SP: FAQ answers wrap naturally — hide all forced line breaks */
  .p-faq-item__panel br {
    display: none;
  }

  /* --- Sections --- */
  .p-section {
    padding-block: 56px;
  }

  .p-section:has(.p-svc-head) {
    padding-block: 56px 40px;
  }

  .p-section__header {
    margin-bottom: 20px;
  }

  /* Figma SP: 13px ラベルのテキスト枠は 16px */
  .c-section-label,
  .c-section-label--sm {
    font-size: 15px;
    letter-spacing: normal;
    line-height: 18px;
  }

  /* Figma SP: 24px 見出しはテキスト枠 34px */
  .c-section-title,
  .c-section-title--lg {
    font-size: 26px;
    letter-spacing: normal;
    line-height: 36px;
  }

  /* Figma SP: 13px リード文のテキスト枠は 1行 19px */
  .p-section__lead,
  .p-section__lead--sm {
    font-size: 15px;
    letter-spacing: normal;
    line-height: 21px;
  }

  .p-section__lead + .p-challenge-grid,
  .p-section__lead + .p-service-index {
    margin-top: 20px;
  }

  /* --- Challenge cards (SP: single card with inner divider) --- */
  .p-challenge-grid,
  .p-step-grid,
  .p-service-index {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .p-challenge-card {
    border-color: #d9d9d4;
    border-radius: 4px;
  }

  .p-challenge-card__top {
    gap: 12px;
    padding: 28px 20px 12px;
  }

  .p-challenge-card__icon {
    width: 40px;
    height: 40px;
  }

  .p-challenge-card__title {
    font-size: 19px;
    letter-spacing: normal;
    line-height: 1.4;
  }

  /* Figma 5:6394: 枠線が内側1pxのぶん上下パディングは28-1、内容幅は280px */
  .p-challenge-card:not(.p-challenge-card--compact) .p-challenge-card__top {
    padding-top: 27px;
  }

  .p-challenge-card:not(.p-challenge-card--compact) .p-challenge-card__title {
    max-width: 280px;
    line-height: 26px;
  }

  .p-challenge-card__desc {
    display: block;
    background: none;
    min-height: 0;
    margin-inline: 30px;
    padding: 12px 0 27px;
    border-top: 1px solid #d9d9d4;
    font-size: 15px;
    letter-spacing: normal;
    line-height: 24px;
  }

  /* --- Service index cards (SP: arrow at top-right, plain 4px radius) --- */
  .p-service-index__card {
    position: relative;
    border-radius: 4px;
    padding: 24px 20px;
  }

  /* Figma 5:6424: ラベルと矢印は同じ28pxの行に収まる */
  .p-service-index__label {
    display: flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 12px;
    font-size: 13px;
    letter-spacing: normal;
    line-height: 15px;
  }

  .p-service-index__header {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .p-service-index__title {
    min-height: 0;
    font-size: 21px;
    letter-spacing: normal;
    line-height: 27px;
  }

  .p-service-index__link {
    position: absolute;
    top: 24px;
    right: 20px;
    width: 28px;
    height: 28px;
  }

  .p-service-index__link--outline {
    background-color: var(--color-primary);
    border: none;
    color: #ffffff;
  }

  .p-service-index__text {
    font-size: 15px;
    letter-spacing: normal;
    line-height: 24px;
  }

  /* --- Service head (SP: rounded tag + stacked title) --- */
  /* 区切り線は ::after で描くため高さを持たない。Figma の 20px + 線1px + 20px を
     padding 20 + margin 21 で再現する */
  .p-svc-head {
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 21px;
  }

  .p-svc-head::after {
    background-color: #d9d9d4;
  }

  /* Figma 5:6452: 12/8 パディング + 13px のテキスト枠 = 29px */
  .p-svc-head__tag {
    width: auto;
    height: auto;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 15px;
  }

  .p-svc-head__tag::after {
    display: none;
  }

  .p-svc-head__title {
    margin-top: 0;
    font-size: 24px;
    letter-spacing: normal;
    line-height: 34px;
  }

  /* --- FAQ (SP Figma 5:11061: f4f2ec 背景 + 342px 白カード) --- */
  .p-faq {
    background-color: var(--color-bg-alt);
    padding-block: 56px;
  }

  .p-faq__card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 32px 20px;
    gap: 16px;
  }

  /* SP はラベル・見出し・リストが 16px 等間隔で並ぶ */
  .p-faq__head {
    gap: 16px;
  }

  /* Figma は回答を1つの流し込みテキストで持つため、段落は改行せず続ける */
  .p-faq-item__text p {
    display: inline;
  }

  .p-faq__divider {
    display: none;
  }

  .p-faq-list {
    gap: 16px;
  }

  .p-faq-list--pc {
    display: none;
  }

  .p-faq-list--sp {
    display: flex;
  }

  .p-faq-item {
    gap: 0;
  }

  .p-faq-item.is-open {
    background-color: #f0f0ed;
    border-radius: 4px;
  }

  /* SP: Q + 設問テキスト（可変幅）+ トグル記号 */
  .p-faq-item__trigger {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 16px;
    column-gap: 12px;
    row-gap: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 22px;
  }

  .p-faq-item.is-open .p-faq-item__trigger {
    background: none;
    padding-bottom: 12px;
  }

  .p-faq-item__q,
  .p-faq-item__a {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .p-faq-item__q {
    justify-self: start;
  }

  .p-faq-item__a {
    background-color: #ccded4;
  }

  /* SP は 16px の全角プラス／マイナス文字 */
  .p-faq-item__trigger::after {
    content: "＋";
    justify-self: end;
    margin-left: 0;
    width: auto;
    height: auto;
    background-image: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 21px;
    color: var(--color-primary);
  }

  .p-faq-item.is-open .p-faq-item__trigger::after {
    content: "－";
    background-image: none;
  }

  .p-faq-item__panel {
    padding: 0 16px 16px;
    gap: 12px;
    font-size: 14px;
    letter-spacing: normal;
    line-height: 22px;
  }
}

/* ===== Fixed pagetop button (全ページ共通) ===== */
.c-pag-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.96);
  color: var(--color-primary);
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.c-pag-top__arrow {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg) translateY(2px);
}

.c-pag-top__label {
  display: block;
}

.c-pag-top:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

@media (max-width: 768px) {
  .c-pag-top {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    font-size: 10px;
  }
}
