/* ==========================================================================
   SP styles (screen and (max-width: 767px))
   数値はデザインカンプ SPアートボード（640 × 6081px / コンテンツ幅540px）を
   実機幅に合わせて約0.72倍したもの。配色・字送り・行送り比はカンプのまま。
   ========================================================================== */
:root {
  --container-gutter: 24px;
  --header-total-height: 128px;
}

.p-section {
  padding: 56px 0;
}

.p-section__head {
  margin-bottom: 34px;
}

/* --- Layout / Header --- */
/* カンプ: 上部バー 高さ60px（ハンバーガー36px幅） */
.l-header__bar {
  padding: 9px 12px;
  font-size: 12px;
  line-height: 18px;
}

.l-header__inner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
}

.l-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* カンプ SP: ロゴ字形 約193 × 66px（「保守管理サービス」込みの実測は133 × 70px） */
.l-header__logo-image {
  height: 70px;
}

.l-header__badge {
  width: 58px;
}

.l-header__nav {
  position: fixed;
  top: var(--header-total-height);
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background-color: var(--color-white);
  transition: max-height var(--transition-base);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.06);
}

.l-header__nav.is-open {
  max-height: 500px;
}

.l-header__nav-list {
  flex-direction: column;
  padding: 8px 24px 20px;
}

.l-header__nav-item {
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 12px;
}

.l-header__nav-item--cta {
  border-bottom: none;
}

.l-header__nav-link {
  padding: 14px 4px 12px;

  font-size: 14px;
  line-height: 24px;
}

.l-header__nav-link--cta {
  width: 168px;
  margin: 10px auto;
  padding: 10px 24px;
}

/* カンプ: 3本線 幅36px / 線間13.2px / #646464 */
.l-header__hamburger {
  display: block;
  position: absolute;
  top: calc(var(--header-bar-height-sp) / 2);
  right: 16px;
  transform: translateY(-50%);
  width: 26px;
  height: 20px;
}

.l-header__hamburger-line {
  width: 100%;
  height: 1.5px;
}

.l-header__hamburger-line:nth-child(1) {
  top: 0;
}
.l-header__hamburger-line:nth-child(2) {
  top: 9px;
}
.l-header__hamburger-line:nth-child(3) {
  top: 18px;
}

/* --- Layout / Footer --- */
/* 追従ボタンに隠れないよう、フッター下に余白を確保 */
.l-footer {
  padding-bottom: 78px;
}

.l-footer__inner {
  padding: 14px 16px 6px;
  font-size: 11px;
}

/* 追従ボタンぶん(78px)を足して、その上に来るよう調整 */
.l-footer__totop {
  position: absolute;
  right: 16px;
  bottom: 86px;
  gap: 2px;
}

/* カンプの約0.72倍スケールに合わせる */
.l-footer__totop-icon {
  width: 54px;
}

/* --- Layout / Follow --- */
/* p-cta__buttons と同じ形（間隔14px / 各ボタン最大300px）に合わせる */
.l-follow__inner {
  gap: 14px;
  padding: 10px 16px;
}

.l-follow__btn {
  width: 100%;
  max-width: 300px;
}

/* --- Component / Button --- */
/* カンプ SP: 246.3 × 49.1px / 文字18px・行送り23.7px */
.c-btn {
  height: 50px;
  font-size: 16px;
  line-height: 24px;
  box-shadow: 0 0 0 3px var(--color-gray);
  border-radius: 20pxおお;
}

/* カンプ SP: 扉 31.1 × 48.4px（本体の上から+19.5px、右へ+10.6px）／取っ手 4.9px */
.c-btn::after {
  top: 27px;
  right: -10.8px;
  width: 31.7px;
  height: 49px;
}

.c-btn::before {
  top: 32px;
  right: 2.55px;
  width: 5px;
  height: 5px;
}

/* --- Component / Heading --- */
.c-heading-lv2 {
  text-align: left;
  font-size: 22px;
  line-height: 36px;
  text-shadow: 2px 2px 2px #efefef, -2px -2px 2px #efefef, -2px 2px 2px #efefef,
  2px -2px 2px #efefef, 2px 0 2px #efefef, -2px 0 2px #efefef,
  0 2px 2px #efefef, 0 -2px 2px #efefef;
}

.c-heading-lv3 {
  font-size: 16px;
  line-height: 25px;
}

/* --- Component / List --- */
/* カンプ SP: アイコン25.6px / 行ピッチ46.8px（0.72倍） */
.c-checklist__item {
  font-size: 13px;
  line-height: 34px;
  gap: 10px;
}

.c-checklist__item::before {
  width: 19px;
  height: 19px;
  background-size: 12px;
}

.c-dotlist__item {
  font-size: 14px;
  line-height: 29px;
  gap: 6px;
}

.c-dotlist__item::before {
  width: 10px;
  height: 10px;
}

/* --- Project / MV --- */
/* カンプ: 帯は #ffffff → #fbf7f3 の縦グラデーション（MVとお悩みで1枚の帯） */
/* .p-mv {
  background: linear-gradient(180deg, #ffffff 0%, #fdfaf8 100%);
} */
.p-back {
  background: linear-gradient(
    360deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(251, 247, 243, 1) 100%
  );
}
/* l-container の左右余白を残すため上下だけ指定する */
.p-mv__container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 22px;
}

.p-mv__visual {
  order: -1;
}

/* カンプ SP: 34px / 行送り57px（比 1.676）。
   実機375px幅でカンプ同様に2行へ収めるため21pxに落とす */
.p-mv__catch {
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 21px;
  line-height: 35px;
  margin-bottom: 16px;
  text-shadow: 3px 3px 1px #efefef, -3px -3px 1px #efefef, -3px 3px 1px #efefef,
    3px -3px 1px #efefef, 3px 0 1px #efefef, -3px 0 1px #efefef,
    0 3px 1px #efefef, 0 -3px 1px #efefef;
}

/* カンプ SP: 18px / 行送り32px */
.p-mv__lead {
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 13px;
  line-height: 23px;
}

.p-mv__image {
  width: 100%;
}

.p-mv__buttons {
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  gap: 14px;
  padding-bottom: 40px;
  justify-content: center;
}

.p-mv__btn {
  width: 100%;
  max-width: 300px;
}

/* --- Project / Worry --- */
/* カンプ: MVと同じ帯の続き（グラデーション終端 #fbf7f3） */
.p-worry {
  /* background: linear-gradient(180deg, #fdfaf8 0%, #fbf7f3 100%); */
  padding: 34px 0 40px;
}

.p-worry .p-section__head {
  margin-bottom: 30px;
}

.p-worry__list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 auto 26px;
}

/* クライアント指示: SPは「AI検索（ChatGPT・Gemini等）で表示されるか分からない」が2行に折り返すため、
   括弧書きを省いて1行に収める */
.p-worry__list-note {
  display: none;
}

/* カンプ SP: 540 × 80px / 白地 + #af5c9f 2px / 角丸フル */
.p-worry__solve {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: 23px;
  text-align: center;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  width: 100%;
  height: 58px;
  font-size: 17px;
  line-height: 24px;
}

/* --- Project / About --- */
.p-about {
  background-color: var(--color-bg);
  padding: 40px 0 46px;
}

.p-about .p-section__head {
  margin-bottom: 16px;
}

.p-about__lead {
  /* text-align: center; */
  color: var(--color-text);
  letter-spacing: 0.05em;
  font-size: 13px;
  line-height: 23px;
  margin-bottom: 14px;
  font-weight: 600;
}

/* カンプ SP: 540 × 116.5px / #fbf7f3 / 3個+2個の2行 */
.p-about__pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--color-cream);
  width: 100%;
  gap: 4px 20px;
  padding: 16px 20px;
  margin: 0 auto;
  border-radius: 25px;
}

.p-about__note {
  /* text-align: center; */
  color: var(--color-text);
  letter-spacing: 0.05em;
  font-size: 13px;
  line-height: 23px;
  margin-top: 16px;
  font-weight: 600;
}

.p-about__feature-label {
  text-align: center;
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 16px;
  line-height: 25px;
  margin-top: 24px;
  margin-bottom: 14px;
}

/* カンプ SP: 540 × 200.5px（4行） / #af5c9f / #ededed 2px */
.p-about__feature-box {
  position: relative;
  display: flex;
  background-color: var(--color-primary);
  border: 4px solid var(--color-gray);
  border-radius: 20px;
  width: 100%;
  min-height: 145px;
  /* flex-direction: column; */
  align-items: center;
  padding: 18px 20px;
  gap: 10px;
}

.p-about__feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: auto;
}

.p-about__feature-text {
  display: flex;
  flex-wrap: wrap;
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.02em;
  gap: 0 14px;
  max-width: 250px;
  font-size: 14px;
  line-height: 29px;
}

.p-about__feature-item {
  white-space: nowrap;
}

/* --- Project / Security --- */
.p-security {
  background-color: var(--color-bg);
  padding: 40px 0 50px;
}

.p-security .p-section__head {
  margin-bottom: 28px;
}

.p-security__lead {
  /* text-align: center; */
  text-align: left;
  color: var(--color-text);
  letter-spacing: 0.02em;
  font-size: 13px;
  line-height: 23px;
  margin-top: 10px;
  font-weight: 600;
}

.p-security__lead-break {
  display: none;
}

.p-security__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 26px;
}

.p-security__visual {
  min-width: 0;
}

.p-security__image {
  width: 100%;
  display: block;
}

.p-security__list {
  position: relative;
  min-width: 0;
  /* 右上の装飾に文字が重ならないよう余白を確保 */
  padding-right: 120px;
}

.p-security__list::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 126px;
  background-image: url(../images/security.png);
  background-size: contain;
  background-position: top right;
  background-repeat: no-repeat;
  pointer-events: none;
}

.p-security__note {
  text-align: left;
  color: var(--color-text);
  letter-spacing: 0.02em;
  font-size: 13px;
  line-height: 23px;
  margin-bottom: 26px;
  font-weight: 600;
}

.p-security__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.p-security__logo {
  font-family: var(--font-family-en);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
  font-size: 20px;
  line-height: 27px;
}

/* --- Project / Compare --- */
/* カンプ: ダーク帯（FAQと共通の #af5c9f → #241816 グラデーション） */
.p-dark {
  background: var(--gradient-dark);
}

.p-compare {
  padding: 44px 0 0;
}

.p-compare .p-section__head {
  margin-bottom: 16px;
}

.p-compare .c-heading-lv2 {
  text-align: center;
}

.p-compare__sub {
  text-align: center;
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 16px;
  line-height: 25px;
  margin-top: 10px;
}

/* カンプ SP: カード 540 × 783.7px / 塗りなし + 白1px / 角丸
   罫線は内側50pxずつ内寄せ */
.p-compare__table-wrap {
  box-shadow: inset 0 0 0 1px var(--color-white);
  width: 100%;
  padding: 0 16px 12px;
  border-radius: 18px;
}

.p-compare__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.p-compare__table th,
.p-compare__table td {
  text-align: center;
  vertical-align: middle;
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-white);
  padding: 0;
  height: 44px;
  font-size: 12px;
  line-height: 25px;
}

.p-compare__table tbody th {
  text-align: left;
  font-weight: 600;
}

.p-compare__table .is-highlight {
  background-color: var(--color-primary);
}

.p-compare__table th:last-child,
.p-compare__table td:last-child {
  padding: 0;
}

.p-compare__table thead th {
  height: 54px;
  font-size: 12px;
}

.p-compare__table tbody td {
  font-size: 15px;
}

.p-compare__table th:first-child,
.p-compare__table td:first-child {
  text-align: left;
  width: 36%;
}

.p-compare__table th:nth-child(2),
.p-compare__table td:nth-child(2) {
  width: 26%;
}

.p-compare__table th:nth-child(3),
.p-compare__table td:nth-child(3) {
  width: 26%;
}

.p-compare__table th:nth-child(4),
.p-compare__table td:nth-child(4) {
  width: 12%;
}

/* カンプ: 「×」だけ30px（○・△は20px） */
.p-compare__cross {
  font-size: 1.5em;
  line-height: 1;
}

.p-compare__note {
  color: var(--color-white);
  letter-spacing: 0.02em;
  font-size: 12px;
  line-height: 20px;
  text-align: left;
  margin-top: 12px;
  font-weight: 600;
}

/* --- Project / FAQ --- */
.p-faq {
  padding: 24px 0 56px;
}

.p-faq .p-section__head {
  margin-bottom: 18px;
}

.p-faq .c-heading-lv2 {
  text-align: center;
}

/* カンプ SP: カード 540 × 1101.7px / 塗りなし + 白1px / 内側左右45px */
.p-faq__card {
  background-color: transparent;
  box-shadow: inset 0 0 0 1px var(--color-white);
  padding: 22px 20px 40px;
  border-radius: 18px;
}

.p-faq__title {
  text-align: center;
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 16px;
  line-height: 25px;
  margin-bottom: 20px;
}

.p-faq__divider {
  border: none;
  border-top: 1px solid var(--color-white);
  margin: 0;
}

.p-faq__item {
  color: var(--color-white);
  padding: 18px 0;
}

.p-faq__q,
.p-faq__a {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 13px;
  line-height: 25px;
}

/* --- Project / CTA --- */
.p-cta {
  background-color: var(--color-bg);
  padding: 40px 0 44px;
}

/* カンプ SP: 540 × 234.6px（見出し4行） / 白地 + #af5c9f 2px */
.p-cta__box {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  border: 2px solid var(--color-primary);
  text-align: center;
  width: 100%;
  min-height: 150px;
  margin: 0 auto 30px;
  padding: 24px 18px;
  border-radius: 18px;
}

.p-cta__heading {
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 19px;
  line-height: 32px;
}

.p-cta__buttons {
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.p-cta__btn {
  width: 100%;
  max-width: 300px;
}
