/* =========================================================
   telemo-support.css — TELEMO「導入して終わりではない。」セクション
   改善サイクル（6ステップ）+ 伴走サポートの帯 + 締めの濃紺帯。
   index-refine.css のトークン（--rf-*）と telemo-continuation.css の配色
   （見出し #071525 / ティール #007d8c）に合わせる。既存 CSS は上書きしない。
   帯を全幅で見せるため、セクション自体の左右余白は 0 にし、中身ごとに余白を持たせる。
   ========================================================= */

.page-home main > #telemo-support {
  --ts-content: 1240px;
  --ts-gap: 24px;
  --ts-ink: #071525;
  --ts-teal: #007d8c;
  --ts-title: #0a2a44;
  --ts-badge: #0c3a56;
  --ts-band: #0b3a4f;
  --ts-cyan: #4fd8e8;
  --ts-pad: max(var(--page-padding), calc((100% - var(--ts-content)) / 2));
  padding-inline: 0;
  padding-bottom: 0;
  background: #fff;
  color: var(--ts-ink);
}

/* ---------- 上段：見出し + リード ---------- */
.telemo-support__intro { padding-inline: var(--ts-pad); text-align: center; }
.telemo-support__eyebrow {
  margin: 0 0 14px;
  font: 700 12px/1.4 "Space Grotesk", sans-serif;
  letter-spacing: .18em;
  color: var(--ts-teal);
}
.page-home .telemo-support__title {
  margin: 0;
  font-family: var(--font-body), sans-serif;
  font-size: clamp(36px, 5.4vw, 78px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.04em;
  color: var(--ts-ink);
}
.telemo-support__title span { display: inline-block; color: var(--ts-teal); }
.telemo-support__lead {
  margin: 18px 0 0;
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.8;
  color: #3d4a56;
}

/* ---------- 改善サイクル：6 カード + 「›」 + 01 へ戻るループ ---------- */
.telemo-support__cycle { margin-top: 64px; padding-inline: var(--ts-pad); }
.telemo-support__steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--ts-gap);
  row-gap: 52px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* タイトル・イラスト・説明の行をカード間でそろえる（subgrid 非対応でも崩れない） */
.telemo-support__step {
  position: relative;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 12px;
  justify-items: center;
  align-content: start;
  min-width: 0;
  padding: 34px 10px 18px;
  border: 1px solid #d9eef4;
  border-radius: 8px;
  background: linear-gradient(180deg, #e9f6fb 0%, #f4fbfd 100%);
  text-align: center;
}
.telemo-support__step:not(:last-child)::after {
  content: '›';
  position: absolute;
  top: 50%;
  right: calc(var(--ts-gap) / -2);
  font: 400 34px/1 sans-serif;
  color: var(--ts-ink);
  transform: translate(50%, -50%);
  pointer-events: none;
}
.telemo-support__no {
  position: absolute;
  top: -22px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ts-badge);
  color: #fff;
  font: 700 17px/1 "Space Grotesk", sans-serif;
  letter-spacing: 0;
  transform: translateX(-50%);
}
.page-home .telemo-support__step-title {
  align-self: center;
  margin: 0;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--ts-title);
}
.telemo-support__visual { width: 100%; border-radius: 6px; overflow: hidden; }
.telemo-support__visual svg { display: block; width: 100%; height: auto; }
.telemo-support__step-text {
  margin: 0;
  font-size: clamp(12px, .95vw, 14px);
  font-weight: 500;
  line-height: 1.7;
  color: #33414e;
}

.telemo-support__loop {
  --ts-loop-inset: calc((100% - 5 * var(--ts-gap)) / 12);
  position: relative;
  margin: 14px 0 0;
  padding-top: 22px;
  text-align: center;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 32px;
  letter-spacing: .06em;
  color: var(--ts-badge);
}
/* 06 の下から 01 の下へ戻る L 字の線（カード中心から中心へ） */
.telemo-support__loop::before {
  content: '';
  position: absolute;
  top: 0;
  right: var(--ts-loop-inset);
  bottom: 14.5px;
  left: var(--ts-loop-inset);
  border: 3px solid var(--ts-teal);
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.telemo-support__loop::after {
  content: '';
  position: absolute;
  top: -3px;
  left: calc(var(--ts-loop-inset) + 1.5px);
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--ts-teal);
  border-left: 3px solid var(--ts-teal);
  transform: translateX(-50%) rotate(45deg);
}
.telemo-support__loop span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 22px;
  background: #fff;
}

/* ---------- 下段の帯：写真（左）+ コピー（中央）+ 伴走サポート（右） ---------- */
.telemo-support__band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 23fr) minmax(0, 42fr) minmax(0, 32fr);
  column-gap: 48px;
  align-items: center;
  margin-top: 72px;
  padding: 56px var(--ts-pad);
  overflow: hidden;
  background: linear-gradient(90deg, var(--ts-band) 0%, #0b3d52 55%, #0c4859 100%);
  color: #fff;
}
.telemo-support__photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%;
  margin: 0;
}
.telemo-support__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
}
.telemo-support__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 34, 50, .42) 0%, rgba(8, 40, 56, .5) 55%, rgba(11, 58, 79, .9) 86%, var(--ts-band) 100%);
}
.telemo-support__message { position: relative; grid-column: 2; grid-row: 1; min-width: 0; }
.telemo-support__pre {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .88);
}
.telemo-support__copy {
  margin: 10px 0 0;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .01em;
  color: #fff;
}
.telemo-support__copy em { font-style: normal; color: var(--ts-cyan); }
.telemo-support__body {
  margin: 20px 0 0;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 500;
  line-height: 1.9;
  color: rgba(255, 255, 255, .86);
}
.telemo-support__support { position: relative; grid-column: 3; grid-row: 1; min-width: 0; }
.telemo-support__label {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(120, 220, 235, .7);
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .1em;
  color: #8fe3ee;
}
.telemo-support__items {
  display: grid;
  gap: 20px;
  margin: 22px 0 0;
  padding: 0 0 0 6px;
  list-style: none;
}
.telemo-support__items li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 700;
  line-height: 1.55;
  color: #fff;
}
.telemo-support__icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 締めの濃紺帯 ---------- */
.telemo-support__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  column-gap: 32px;
  padding: 32px var(--ts-pad) 28px;
  background: #08263a;
  color: #fff;
}
.telemo-support__closing {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .04em;
  color: #fff;
}
.telemo-support__closing::before,
.telemo-support__closing::after {
  content: '';
  flex: none;
  width: 72px;
  height: 1px;
  background: rgba(255, 255, 255, .55);
}
.telemo-support__closing em { display: inline-block; font-style: normal; color: var(--ts-cyan); }
.telemo-support__brand {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}
.telemo-support__brand-main { font-size: 18px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.telemo-support__brand-sub { font-size: 11px; font-weight: 500; letter-spacing: .2em; color: rgba(255, 255, 255, .65); }
.telemo-support__tagline {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, .3);
  font: 500 11px/1.8 "Space Grotesk", sans-serif;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .65);
}

/* ---------- タブレット ---------- */
@media (max-width: 1199px) {
  /* 6 列のまま幅が詰まる帯域：タイトルが語の途中で折れないよう少し小さく */
  .page-home main > #telemo-support { --ts-gap: 20px; }
  .telemo-support__step { padding-inline: 6px; }
  .page-home .telemo-support__step-title { font-size: clamp(13px, 1.36vw, 15px); letter-spacing: 0; }
}
@media (max-width: 1023px) {
  .telemo-support__band {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    row-gap: 36px;
    padding: 0 var(--page-padding) 48px;
    background: linear-gradient(180deg, var(--ts-band) 0%, #0b3d52 60%, #0c4859 100%);
  }
  .telemo-support__photo {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 1;
    width: auto;
    height: 220px;
    margin-inline: calc(var(--page-padding) * -1);
  }
  .telemo-support__photo img { object-position: 85% 50%; }
  .telemo-support__photo::after {
    background: linear-gradient(180deg, rgba(8, 34, 50, .35) 0%, rgba(8, 40, 56, .55) 55%, var(--ts-band) 100%);
  }
  .telemo-support__message { grid-column: 1; grid-row: 2; margin-top: -72px; }
  .telemo-support__support { grid-column: 2; grid-row: 2; align-self: end; }
  .telemo-support__copy { font-size: clamp(20px, 2.6vw, 28px); }
  .telemo-support__items li { font-size: 15px; }

  .telemo-support__footer { grid-template-columns: minmax(0, 1fr) auto; row-gap: 20px; }
  .telemo-support__closing { grid-column: 1 / -1; }
  .telemo-support__brand { grid-column: 1; grid-row: 2; }
  .telemo-support__tagline { grid-column: 2; grid-row: 2; }
}
@media (max-width: 959px) {
  .telemo-support__cycle { margin-top: 56px; }
  .telemo-support__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .telemo-support__step:nth-child(3n)::after { display: none; }
  .page-home .telemo-support__step-title { font-size: 16px; }
  .telemo-support__step-text { font-size: 13px; }
  /* 3 列では 06 → 01 の L 字が成り立たないので、線を消してキャプションだけ残す */
  .telemo-support__loop { margin-top: 36px; padding-top: 0; }
  .telemo-support__loop::before,
  .telemo-support__loop::after { display: none; }
  .telemo-support__loop span { padding: 0; background: none; }
}

/* ---------- SP ---------- */
@media (max-width: 767px) {
  .page-home .telemo-support__title { font-size: clamp(26px, 7.4vw, 48px); letter-spacing: -.03em; }
  .telemo-support__lead { margin-top: 16px; font-size: 15px; }
  .telemo-support__band {
    display: block;
    margin-top: 56px;
    padding: 0 var(--page-padding) 44px;
  }
  .telemo-support__photo { height: 200px; }
  .telemo-support__message { margin-top: -56px; }
  .telemo-support__copy { font-size: clamp(20px, 5.6vw, 28px); letter-spacing: 0; }
  .telemo-support__body { font-size: 15px; }
  .telemo-support__support { margin-top: 32px; }
  .telemo-support__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px var(--page-padding);
    text-align: center;
  }
  .telemo-support__closing { gap: 14px; font-size: 20px; }
  .telemo-support__closing::before,
  .telemo-support__closing::after { width: 28px; }
  .telemo-support__brand { justify-content: center; }
  .telemo-support__tagline { padding-left: 0; border-left: 0; }
}
@media (max-width: 540px) {
  .telemo-support__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 40px; }
  .telemo-support__step { padding: 30px 8px 14px; row-gap: 10px; }
  .telemo-support__step:not(:last-child)::after { display: none; }
  .page-home .telemo-support__step-title { font-size: 15px; }
  .telemo-support__step-text { font-size: clamp(11px, 3.1vw, 12px); letter-spacing: 0; }
  .telemo-support__lead { text-wrap: pretty; }
  .telemo-support__lead br { display: none; }
  .telemo-support__loop { margin-top: 28px; font-size: clamp(13px, 3.8vw, 15px); letter-spacing: .02em; }
  .telemo-support__copy { font-size: 19px; }
  .telemo-support__closing { font-size: 18px; }
  .telemo-support__closing::before,
  .telemo-support__closing::after { display: none; }
}
@media (max-width: 359px) {
  /* 2 列カード（内側 116px）で「実際の音声を確認」「トーク・分岐を改善」を 1 行に */
  .page-home .telemo-support__step-title { font-size: 13.5px; }
  /* 「「数字を見る」だけでは終わらない。」を <br> どおり 1 行に */
  .telemo-support__copy { font-size: 18px; }
  /* 「定期的な結果レポート・改善提案」を 1 行に */
  .telemo-support__items li { font-size: 14px; }
}
