/* 自動生成（static/ → wordpress/build_theme.py）。このファイルは直接直さず、static/ を直して作り直す */
/* =========================================================
   UpCore HP サービス紹介ページ（service.html）
   style.css（ヘッダー・フッター・ボタン・ラベルなど共通の部品）の後に読む。
   Figma：20_サービス_1440 を基準に、1024／768／375／320／425／2560 で上書きする
   ========================================================= */

/* ---------- 改行：PCの中で 1024〜1439px（pc1）と 1440px〜（pc2）を分ける ---------- */
@media (min-width: 1024px) and (max-width: 1439px) {
  br.b-pc1 { display: inline; }
}

@media (min-width: 1440px) {
  br.b-pc2 { display: inline; }
}

/* 写真の上でも読めるように、白（背景色）でふちどる（Figmaの白い影 7重） */
.sv-top__title,
.sv-top__lead {
  text-shadow:
    0 0 2px #fdfcfa,
    0 0 4px #fdfcfa,
    0 0 8px #fdfcfa,
    0 0 14px #fdfcfa,
    0 0 22px rgba(253, 252, 250, 0.95),
    0 0 34px rgba(253, 252, 250, 0.9),
    0 0 52px rgba(253, 252, 250, 0.85);
}

/* =========================================================
   01 ページ冒頭（サービス一覧）PC
   ========================================================= */
.sv-top {
  position: relative;
  overflow: clip;
  padding: 96px 0;
}

/* 背景の写真（整理のイメージ。Figmaと同じ加工をした写真）：画面幅いっぱい。
   上から「下をなじませる」「左側を明るく」「写真」の順に重ねる */
.sv-top__bg {
  position: absolute;
  inset: 0 0 auto;
  height: 620px;
  background:
    linear-gradient(rgba(253, 252, 250, 0.35), rgba(253, 252, 250, 0) 12%, rgba(253, 252, 250, 0) 62%, #fdfcfa 95%),
    linear-gradient(90deg, rgba(253, 252, 250, 0.96), rgba(253, 252, 250, 0.88) 42%, rgba(253, 252, 250, 0.35) 62%, rgba(253, 252, 250, 0)),
    url("../assets/images/sv_hero.webp") 100% 83% / max(100%, 1365px) auto no-repeat;
}

/* 1440pxより広い画面：写真は画面幅いっぱいのまま、机の上が見える位置を保つ（Figma 2560） */
@media (min-width: 1441px) {
  .sv-top__bg {
    background:
      linear-gradient(rgba(253, 252, 250, 0.35), rgba(253, 252, 250, 0) 12%, rgba(253, 252, 250, 0) 62%, #fdfcfa 95%),
      linear-gradient(90deg, rgba(253, 252, 250, 0.96), rgba(253, 252, 250, 0.88) 45%, rgba(253, 252, 250, 0.35) 62%, rgba(253, 252, 250, 0) 85%),
      url("../assets/images/sv_hero.webp") 0 calc(242px - 43.2vw) / 100% auto no-repeat;
  }
}

.sv-top__circle {
  position: absolute;
  left: -70px;
  top: 520px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--blue-100);
}

.sv-top__inner {
  position: relative;
}

.sv-top__title {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-size: 76px;
  font-weight: 900;
  line-height: 106px;
  letter-spacing: -0.02em;
}

.sv-top__underline {
  position: absolute;
  z-index: -1;
  left: -4px;
  top: 86px;
  width: calc(100% + 8px);
  max-width: none;
  height: 20px;
}

.sv-top__lead {
  margin-top: 30px;
  font-size: 18px;
  font-weight: 500;
  line-height: 36px;
}

/* ---------- 4枚のカード（押すとページ内のその場所へ） ---------- */
.sv-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.923vw - 3.7px, 24px);
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.sv-index__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 24px clamp(20px, 0.962vw + 10.2px, 24px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--bg-white);
  box-shadow: 0 8px 24px rgba(13, 51, 102, 0.06);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sv-index__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 51, 102, 0.1);
}

.sv-index__head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  font-size: 22px;
  font-weight: 900;
  line-height: 32px;
}

.sv-index__icon {
  flex: none;
  width: 36px;
  height: 36px;
}

/* LINEのロゴ（公式のブランドアイコン）：周りに半分の余白をとる */
.sv-index__head--line {
  gap: 20px;
}

.sv-index__icon--line {
  width: 40px;
  height: 40px;
}

.sv-index__photo {
  width: 100%;
  height: clamp(112px, 6.731vw + 43.1px, 140px);
  border-radius: 12px;
  object-fit: cover;
}

.sv-index__items {
  font-size: 15px;
  font-weight: 500;
  line-height: 26px;
}

.sv-index__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
  padding-top: 17px; /* Figmaの「料金を下へ」の余白（1px）とその前後の間 */
}

.sv-index__num {
  font-size: 26px;
  font-weight: 900;
  line-height: 36px;
  white-space: nowrap;
}

.sv-index__num small {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.sv-index__arrow {
  flex: none;
  width: 32px;
  height: 32px;
  /* 線はFigmaと同じ1.5px。border の 1.5px は Chrome が 1px に丸めるので、内側の影で描く */
  box-shadow: inset 0 0 0 1.5px var(--blue-700);
  border-radius: 50%;
}

.sv-index__arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--blue-700);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   02 進め方 PC
   ========================================================= */
.sv-flow {
  padding: 96px 0 100px;
  background: #e9f5fb; /* 背景色に水色（#d0ecfc）を45%重ねた色 */
}

.sv-flow__title {
  margin-top: 16px;
  font-size: 48px;
  font-weight: 900;
  line-height: 68px;
}

.sv-flow__lead {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 500;
  line-height: 36px;
}

/* 4枚：番号の丸はカードの上の辺に半分重ね、線でつなぐ */
.sv-steps {
  --gap: clamp(24px, 1.923vw + 4.3px, 32px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: 60px 0 0;
  padding: 0;
  list-style: none;
}

.sv-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 254px;
  padding: 36px clamp(16px, 1.923vw - 3.7px, 24px) 24px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--bg-white);
  box-shadow: 0 8px 24px rgba(13, 51, 102, 0.06);
  text-align: center;
}

/* 次のカードの番号までの線（カードの後ろ） */
.sv-step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -1px;
  width: calc(100% + var(--gap));
  height: 2px;
  background: var(--blue-300);
}

.sv-steps {
  position: relative;
  z-index: 0;
}

.sv-step__num {
  position: absolute;
  left: 50%;
  top: -20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 24px;
  transform: translateX(-50%);
}

.sv-step__name {
  font-size: 24px;
  font-weight: 900;
  line-height: 36px;
}

.sv-step__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

/* 点線の枠（Figmaと同じ 6px の線と 5px のすき間）。CSSの dashed では細かくなるので、SVGで描く */
.sv-step--option {
  border: 1.5px solid transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='20' fill='white' stroke='%238CCCFC' stroke-width='3' stroke-dasharray='6 5'/%3E%3C/svg%3E") border-box;
}

.sv-step__badge {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.sv-step__free {
  margin-top: 10px;
  color: var(--blue-700);
  font-size: clamp(18px, 0.481vw + 13.1px, 20px);
  font-weight: 900;
  line-height: 28px;
}

.sv-step__price {
  font-size: 13px;
  font-weight: 700;
  line-height: 29px;
}

/* Figma 1440 は1行でカードの内側の余白にはみ出す（真ん中ぞろえのまま） */
.sv-step__note {
  color: var(--navy-600);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

/* 帯：「整理」は、すべての制作プランに含まれています。 */
.sv-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  padding: 28px 0;
  border-radius: 20px;
  background: var(--blue-700);
  box-shadow: 0 10px 24px rgba(5, 89, 242, 0.22);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  line-height: 38px;
}

.sv-band__check {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
}

.sv-band__check svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--blue-700);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-band__em {
  color: var(--yellow-400);
}

/* =========================================================
   03 つくる・04 育てる PC
   ========================================================= */
.sv-make {
  padding: 60px 0 clamp(80px, 9.615vw - 18.5px, 120px);
}

.sv-grow {
  padding: 60px 0 clamp(100px, 4.808vw + 50.8px, 120px);
}

/* 見出し：丸・アイコン・文字・手書き文字（トップの「つくる」「育てる」と同じ並び）。
   丸の左端をカードの左端にそろえる */
.sv-head {
  position: relative;
  height: 136px;
  margin: 0;
}

.sv-head__icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--blue-100);
}

.sv-head__icon img {
  position: absolute;
  left: 36px;
  top: 18px;
  width: 56px;
  height: 56px;
}

.sv-head__title {
  position: absolute;
  left: 102px;
  top: 16px;
  font-size: 56px;
  font-weight: 900;
  line-height: 67px;
}

.sv-head__hw {
  position: absolute;
  max-width: none;
}

.sv-head__hw--omoi {
  left: 300px;
  top: -3px;
  width: 228px;
  height: 73px;
}

.sv-head__hw--zutto {
  left: 306px;
  top: 9px;
  width: 175px;
  height: 80px;
}

/* グループ見出し（Webサイト・LINE・デザイン） */
.sv-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 30px;
  font-weight: 900;
  line-height: 44px;
}

.sv-group__icon {
  flex: none;
  width: 44px;
  height: 44px;
}

/* LINEのロゴ：周りに半分（20px）の余白をとる */
.sv-group--line {
  gap: 20px;
  line-height: 40px;
}

.sv-group__icon--line {
  width: 40px;
  height: 40px;
}

.sv-cards {
  display: grid;
  gap: clamp(16px, 1.923vw - 3.7px, 24px);
}

.sv-cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.sv-cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sv-make__sub {
  margin-top: 80px;
}

.sv-make__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- カード ---------- */
.sv-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 24px clamp(20px, 0.962vw + 10.2px, 24px) 28px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--bg-white);
  box-shadow: 0 8px 24px rgba(13, 51, 102, 0.06);
}

/* LINE・デザインのカードは同じ高さ（見出しの高さが違うので、下の端はそろわない。Figmaどおり） */
.sv-make__col .sv-card {
  height: auto;
}

/* PC：写真の高さは 1024〜1440px で同じ（幅だけ変わる） */
.sv-card__photo {
  width: 100%;
  height: clamp(190px, 193.46px - 0.2404vw, 191px);
  border-radius: 12px;
  object-fit: cover;
}

.sv-cards--2 .sv-card__photo {
  height: clamp(240px, 243.46px - 0.2404vw, 241px);
}

.sv-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px; /* 写真と名前の間（Figmaの「余白」2px ＋ 間14px） */
}

.sv-card__name {
  font-size: 28px;
  font-weight: 900;
  line-height: 40px;
}

.sv-card__catch {
  color: var(--blue-700);
  white-space: nowrap; /* 改行は<br>の位置だけ（Figmaで幅に収まることを確かめてある） */
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

/* Webサイトの3枚は、1024pxでは幅が狭いので少し小さく */
.sv-cards--3 .sv-card__catch {
  font-size: clamp(17px, 0.24vw + 14.5px, 18px);
}

/* 含まれるもの（チェックつき） */
.sv-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(14px, 0.24vw + 11.5px, 15px);
  font-weight: 500;
  line-height: clamp(26px, 0.481vw + 21.1px, 28px);
  letter-spacing: 0.02em;
}

.sv-checks li {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.sv-checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  background: url("../assets/svg/icon_check_circle.svg") center / contain no-repeat;
}

/* 料金は下にそろえる */
.sv-card__price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: clamp(15px, 0.721vw + 7.6px, 18px); /* Figmaの「料金を下へ」の余白（1〜4px）とその後の間 */
  white-space: nowrap;
}

.sv-card__price-label {
  margin-bottom: 3px;
  color: var(--navy-600);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.sv-card__num {
  font-size: 32px;
  font-weight: 900;
  line-height: 42px;
}

.sv-card__num small {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.sv-card__note {
  color: var(--navy-600);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.sv-card__btn {
  height: 51px;
  margin-top: 0;
  font-size: 15px;
  line-height: 22px;
}

/* 育てる：写真の上の黄色の帯 */
.sv-card__free {
  padding: 8px 0;
  border-radius: 10px;
  background: var(--yellow-400);
  font-size: 14px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

/* =========================================================
   05 最終CTAとフッター（トップページと同じ形）
   ========================================================= */
.final-cta__text {
  margin-top: clamp(20px, 10.15px + 0.9615vw, 24px);
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  text-shadow:
    0 0 3px rgba(255, 255, 255, 0.95),
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(255, 255, 255, 0.95),
    0 0 22px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 255, 0.8);
}

.underwater--service .btn-line--md {
  margin-top: 24px;
}

/* PC：Figma 1440 は見出しを上げてフッターの位置をトップページと同じにしている（1024 はトップと同じ間）。
   その間は少しずつ変える */
@media (min-width: 1024px) {
  .underwater--service .final-cta {
    padding-top: clamp(64px, 119.4px - 3.846vw, 80px);
  }

  .underwater--service .site-footer__hw {
    margin-top: clamp(30px, 64.6px - 2.404vw, 40px);
  }
}

/* =========================================================
   タブレット（768〜1023px）Figma 768 基準
   ========================================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  /* ---------- ページ冒頭 ---------- */
  .sv-top {
    padding: 72px 0;
  }

  .sv-top__bg {
    height: 560px;
    background:
      linear-gradient(rgba(253, 252, 250, 0.35), rgba(253, 252, 250, 0) 12%, rgba(253, 252, 250, 0) 62%, #fdfcfa 95%),
      linear-gradient(90deg, rgba(253, 252, 250, 0.94), rgba(253, 252, 250, 0.85) 50%, rgba(253, 252, 250, 0.35) 80%, rgba(253, 252, 250, 0.1)),
      url("../assets/images/sv_hero.webp") 94.7% 83% / 161.3% auto no-repeat;
  }

  .sv-top__circle {
    left: -60px;
    top: 444px;
    width: 140px;
    height: 140px;
  }

  .sv-top__title {
    font-size: 60px;
    line-height: 84px;
  }

  .sv-top__underline {
    left: -3px;
    top: 64px;
    width: calc(100% + 7px);
    height: 16px;
  }

  .sv-top__lead {
    margin-top: 24px;
    font-size: 16px;
    line-height: 32px;
  }

  .sv-index {
    gap: 16px;
    margin-top: 40px;
  }

  /* ---------- 進め方 ---------- */
  .sv-flow {
    padding: 80px 0;
  }

  .sv-flow__title {
    margin-top: 14px;
    font-size: 46px;
    line-height: 66px;
  }

  .sv-flow__lead {
    margin-top: 24px;
    font-size: 16px;
    line-height: 32px;
  }

  /* 2列×2段。線は段ごとに1-2・3-4 */
  .sv-steps {
    --gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px var(--gap);
  }

  .sv-step {
    min-height: 250px;
    padding: 33px 24px 24px; /* Figma 768 は伴走のカードの中身が高さ250に3pxはみ出しているので、上を詰めて収める */
  }

  .sv-step:nth-child(2n)::before {
    display: none;
  }

  .sv-step__free {
    font-size: 20px;
  }

  .sv-band {
    padding: 24px 0;
    font-size: 22px;
    line-height: 32px;
  }

  .sv-band__check {
    width: 36px;
    height: 36px;
  }

  /* ---------- つくる・育てる ---------- */
  .sv-make {
    padding: 72px 0 80px;
  }

  .sv-grow {
    padding: 72px 0 80px;
  }

  .sv-head {
    display: flex;
    align-items: center;
    gap: 12px;
    height: auto;
  }

  .sv-head__icon,
  .sv-head__title,
  .sv-head__hw {
    position: relative;
    left: auto;
    top: auto;
    flex: none;
  }

  .sv-head__icon {
    width: 64px;
    height: 64px;
  }

  .sv-head__icon img {
    left: 8px;
    top: 8px;
    width: 48px;
    height: 48px;
  }

  .sv-head__title {
    font-size: 40px;
    line-height: 66px;
  }

  .sv-head__hw--omoi,
  .sv-head__hw--zutto {
    width: 160px;
  }

  .sv-head__hw--omoi {
    height: 51px;
  }

  .sv-head__hw--zutto {
    height: 73px;
  }

  .sv-group {
    gap: 10px;
    margin-top: 40px;
    font-size: 26px;
    line-height: 36px;
  }

  .sv-group__icon {
    width: 36px;
    height: 36px;
  }

  .sv-group--line {
    gap: 20px;
    line-height: 40px;
  }

  .sv-group__icon--line {
    width: 40px;
    height: 40px;
  }

  /* つくる：写真を左、内容を右に並べたカードを縦に */
  .sv-cards--3,
  .sv-make__sub {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sv-cards--3 {
    margin-top: 28px;
  }

  .sv-make__sub {
    gap: 48px;
    margin-top: 48px;
  }

  .sv-make__col {
    gap: 20px;
  }

  .sv-make__col .sv-group {
    margin-top: 0;
  }

  .sv-make .sv-card {
    flex-direction: row;
    gap: 24px;
    padding: 24px;
  }

  .sv-make .sv-card__photo {
    flex: none;
    width: 280px;
    height: auto;
    align-self: stretch;
  }

  .sv-make .sv-card__body {
    gap: 12px;
    margin-top: 0;
  }

  .sv-make .sv-card__name {
    font-size: 24px;
    line-height: 34px;
  }

  .sv-make .sv-card__catch {
    font-size: 17px;
  }

  .sv-checks {
    gap: 6px;
    font-size: 14px;
    line-height: 24px;
  }

  .sv-checks li::before {
    margin-top: 1px;
  }

  .sv-make .sv-card__price {
    padding-top: 0;
  }

  .sv-make .sv-card__num {
    font-size: 27px;
    line-height: 38px;
  }

  .sv-make .sv-card__num small {
    font-size: 14px;
  }

  .sv-card__btn {
    height: 47px;
    font-size: 14px;
    line-height: 20px;
  }

  /* 育てる：2枚を横に（スマホのカードと同じ並び） */
  .sv-grow .sv-cards--2 {
    margin-top: 32px;
  }

  .sv-grow .sv-card {
    gap: 12px;
    padding: 20px 20px 24px;
    border-radius: 16px;
  }

  .sv-grow .sv-card__photo {
    height: 170px;
  }

  .sv-grow .sv-card__body {
    gap: 12px;
    margin-top: 12px;
  }

  .sv-grow .sv-card__name {
    font-size: 22px;
    line-height: 32px;
  }

  .sv-grow .sv-card__catch {
    font-size: 16px;
    line-height: 26px;
  }

  .sv-grow .sv-card__price {
    padding-top: 13px;
  }

  .sv-grow .sv-card__num {
    font-size: 26px;
    line-height: 34px;
  }

  .sv-grow .sv-card__num small {
    font-size: 13px;
  }

  .sv-card__free {
    padding: 7px 0;
    font-size: 13px;
    line-height: 20px;
  }

  /* ---------- 最終CTA ---------- */
  .final-cta__text {
    margin-top: 20px;
  }

  .underwater--service .btn-line--md {
    margin-top: 28px;
  }
}

/* =========================================================
   一覧のカード（タブレット・スマホ共通）：小さなカード
   ========================================================= */
@media (max-width: 1023px) {
  .sv-index__card {
    gap: 10px;
    padding: 16px 12px;
    border-radius: 16px;
  }

  .sv-index__head {
    gap: 6px;
    height: 28px;
    font-size: 16px;
    line-height: 24px;
  }

  .sv-index__icon {
    width: 24px;
    height: 24px;
  }

  /* LINEのロゴはスマホ・タブレットでも40px（LINEのルール：スマホで40px以上）。
     周りに半分（20px）の余白をとるため、右と下を20にする（2026-09-29 本人決定） */
  .sv-index__head--line {
    gap: 20px;
    height: 50px;
    padding-bottom: 10px;
  }

  .sv-index__icon--line {
    width: 40px;
    height: 40px;
  }

  .sv-index__photo {
    height: 90px;
    border-radius: 8px;
  }

  .sv-index__items {
    font-size: 13px;
    line-height: 20px;
  }

  .sv-index__price {
    gap: 0;
    padding-top: 11px;
  }

  .sv-index__num {
    font-size: 19px;
    line-height: 26px;
  }

  .sv-index__num small {
    font-size: 11px;
  }

  .sv-index__arrow {
    width: 24px;
    height: 24px;
  }
}

/* =========================================================
   スマホ（〜767px）Figma 375 基準（320・425 は下で調整）
   ========================================================= */
@media (max-width: 767px) {
  /* ---------- ページ冒頭 ---------- */
  .sv-top {
    padding: 40px 0 56px;
  }

  .sv-top__bg {
    height: 460px;
    background:
      linear-gradient(rgba(253, 252, 250, 0.35), rgba(253, 252, 250, 0) 12%, rgba(253, 252, 250, 0) 62%, #fdfcfa 95%),
      linear-gradient(rgba(253, 252, 250, 0.9), rgba(253, 252, 250, 0.75) 40%, rgba(253, 252, 250, 0.2) 70%, rgba(253, 252, 250, 0)),
      url("../assets/images/sv_hero-800.webp") 77% 0 / cover no-repeat;
  }

  .sv-top__circle {
    left: -50px;
    top: 486px;
    width: 100px;
    height: 100px;
  }

  .sv-top__title {
    font-size: 48px;
    line-height: 64px;
  }

  .sv-top__underline {
    left: -2px;
    top: 46px;
    width: calc(100% + 6px);
    height: 14px;
  }

  .sv-top__lead {
    margin-top: 20px;
    font-size: 15px;
    line-height: 28px;
  }

  .sv-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
  }

  .sv-index__photo {
    height: 88px;
  }

  /* ---------- 進め方 ---------- */
  .sv-flow {
    padding: 64px 0;
  }

  .sv-flow__title {
    margin-top: 12px;
    font-size: 27px;
    line-height: 40px;
  }

  .sv-flow__lead {
    margin-top: 24px;
    font-size: 15px;
    line-height: 28px;
  }

  /* 縦に並べ、番号の丸を左に置いて縦の線でつなぐ */
  .sv-steps {
    --gap: 16px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    margin-top: 32px;
    padding-left: 52px;
  }

  .sv-step {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    min-height: 0;
    padding: 18px 20px;
    border-radius: 16px;
    text-align: left;
  }

  .sv-step__num {
    left: -52px;
    top: 16px;
    transform: none;
  }

  .sv-step:not(:last-child)::before {
    left: -33px;
    top: 36px;
    width: 2px;
    height: calc(100% + var(--gap));
  }

  .sv-step__name {
    font-size: 18px;
    line-height: 28px;
  }

  .sv-step--option {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' rx='16' fill='white' stroke='%238CCCFC' stroke-width='3' stroke-dasharray='6 5'/%3E%3C/svg%3E");
  }

  .sv-step__badge {
    right: 12px;
  }

  .sv-step__free {
    margin-top: 8px;
    font-size: 18px;
    line-height: 26px;
  }

  .sv-step__price {
    line-height: 22px;
  }

  .sv-step__note {
    line-height: 18px;
  }

  .sv-band {
    justify-content: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 20px;
    font-size: 18px;
    line-height: 28px;
  }

  .sv-band__check {
    width: 32px;
    height: 32px;
  }

  /* ---------- つくる・育てる ---------- */
  .sv-make {
    padding: 48px 0 64px;
  }

  .sv-grow {
    padding: 48px 0 64px;
  }

  .sv-head {
    display: flex;
    align-items: center;
    gap: 8px;
    height: auto;
  }

  .sv-head__icon,
  .sv-head__title,
  .sv-head__hw {
    position: relative;
    left: auto;
    top: auto;
    flex: none;
  }

  .sv-head__icon {
    width: 52px;
    height: 52px;
  }

  .sv-head__icon img {
    left: 6px;
    top: 6px;
    width: 40px;
    height: 40px;
  }

  .sv-head__title {
    font-size: 27px;
    line-height: 40px;
  }

  .sv-head__hw--omoi,
  .sv-head__hw--zutto {
    width: 118px;
  }

  .sv-head__hw--omoi {
    height: 38px;
  }

  .sv-head__hw--zutto {
    height: 54px;
  }

  .sv-group {
    gap: 8px;
    margin-top: 40px;
    font-size: 22px;
    line-height: 32px;
  }

  .sv-group__icon {
    width: 32px;
    height: 32px;
  }

  .sv-group--line {
    gap: 20px;
    line-height: 40px;
  }

  .sv-group__icon--line {
    width: 40px;
    height: 40px;
  }

  .sv-cards--3,
  .sv-cards--2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sv-cards--3 {
    margin-top: 28px;
  }

  .sv-make__sub {
    gap: 40px;
    margin-top: 40px;
  }

  .sv-make__col {
    gap: 16px;
  }

  /* LINEのロゴの下に20pxの余白 */
  .sv-make__col:first-child {
    gap: 20px;
  }

  .sv-make__col .sv-group {
    margin-top: 0;
  }

  .sv-grow .sv-cards--2 {
    margin-top: 32px;
  }

  .sv-card {
    gap: 12px;
    padding: 20px 20px 24px;
    border-radius: 16px;
  }

  .sv-card__photo,
  .sv-cards--2 .sv-card__photo {
    height: 168px;
  }

  .sv-card__body {
    gap: 12px;
    margin-top: 12px;
  }

  .sv-card__name {
    font-size: 22px;
    line-height: 32px;
  }

  .sv-card__catch,
  .sv-cards--3 .sv-card__catch {
    font-size: 16px;
    line-height: 26px;
  }

  .sv-checks {
    gap: 6px;
    font-size: 14px;
    line-height: 24px;
  }

  .sv-checks li::before {
    margin-top: 1px;
  }

  .sv-card__price {
    padding-top: 0;
  }

  .sv-card__num {
    font-size: 26px;
    line-height: 34px;
  }

  .sv-card__num small {
    font-size: 13px;
  }

  .sv-card__btn {
    height: 47px;
    font-size: 14px;
    line-height: 20px;
  }

  .sv-card__free {
    padding: 7px 0;
    font-size: 13px;
    line-height: 20px;
  }

  /* ---------- 最終CTA ---------- */
  .final-cta__text {
    margin-top: 16px;
    font-size: 14px;
    line-height: 26px;
  }
}

/* Figma 425（425〜767px）：帯の中身を真ん中に、写真の見える位置 */
@media (min-width: 425px) and (max-width: 767px) {
  .sv-top__bg {
    background-position: 0 0, 0 0, 98% 0;
  }

  .sv-band {
    justify-content: center;
  }

  .sv-index__photo {
    height: 100px;
  }

  .sv-card__photo,
  .sv-cards--2 .sv-card__photo {
    height: 196px;
  }

  .sv-index__card {
    padding-inline: 14px;
  }
}

/* =========================================================
   Figma 320（〜374px）
   ========================================================= */
@media (max-width: 374px) {
  .sv-top__bg {
    background-position: 0 0, 0 0, 75% 0;
  }

  .sv-top__title {
    font-size: 44px;
    line-height: 60px;
  }

  .sv-top__underline {
    top: 43px;
    width: calc(100% + 5px);
    height: 13px;
  }

  .sv-index {
    gap: 10px;
  }

  .sv-index__card {
    padding: 16px 10px;
  }

  /* 「LINE構築」がLINEのロゴ（40px・周りに20px）の横に収まるよう、4枚とも12px（2026-10-03 本人決定） */
  .sv-index__head {
    font-size: 12px;
  }

  .sv-index__head:not(.sv-index__head--line) {
    gap: 5px;
  }

  /* LINEのロゴは40pxのまま（スマホで40px以上のルール） */
  .sv-index__icon:not(.sv-index__icon--line) {
    width: 22px;
    height: 22px;
  }


  .sv-index__photo {
    height: 74px;
  }

  .sv-card__photo,
  .sv-cards--2 .sv-card__photo {
    height: 137px;
  }

  .sv-index__items {
    font-size: 12px;
    line-height: 19px;
  }

  .sv-index__num {
    font-size: 15px;
    line-height: 24px;
  }

  .sv-index__num small {
    font-size: 10px;
  }

  .sv-index__arrow {
    width: 20px;
    height: 20px;
  }

  .sv-step {
    padding-inline: 16px;
  }

  /* 帯：チェックを上にして、文字は3行で真ん中ぞろえ */
  .sv-band {
    flex-direction: column;
    gap: 10px;
    padding: 20px 16px;
    text-align: center;
  }
}
