/* 「単発のITサポートデスク」ページ(template-spot-it-support.php)専用。style.css の後に読み込む。
   クラスはすべて .spot- で始め、他のページには影響しない。色・フォント・ボタンは style.css の変数と .button を使う */

/* セクション共通:白と淡い帯色を交互に。カード・枠の背景は、セクションの背景と逆(白の上は淡色、帯の上は白) */
.spot-hero,
.spot-section {
  --spot-card-bg: var(--color-bg-alt);
  scroll-margin-top: var(--anchor-offset);
  background: var(--color-bg);
}

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

.spot-hero {
  --spot-card-bg: var(--color-bg);
  background: var(--color-hero-bg);
  border-bottom: 1px solid var(--color-line-soft);
}

/* 中身の幅。縦に並べ、ブロックの間隔は gap で取る */
.spot-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: calc(var(--content-width) + (var(--page-x) * 2));
  margin-inline: auto;
  padding: 72px var(--page-x);
}

.spot-text {
  max-width: 42em;
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  word-break: auto-phrase;
}

.spot-text strong,
.spot-notice strong,
.spot-price strong,
.spot-hero__catch strong,
.spot-cta__lead strong {
  font-weight: 700;
}

/* ヒーロー */
.spot-hero .spot-inner {
  gap: 20px;
  padding-block: 64px 72px;
}

.spot-hero__title {
  word-break: auto-phrase;
  margin: 0;
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.spot-hero__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 20px;
  background: var(--color-gold);
}

.spot-hero__catch {
  max-width: 34em;
  margin: 0;
  font-size: 19px;
  line-height: 1.85;
  word-break: auto-phrase;
}

.spot-hero__quotes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 4px;
}

.spot-hero__quote {
  max-width: 34em;
  margin: 0;
  padding: 4px 0 4px 20px;
  border-left: 1px solid var(--color-gold);
  font-size: 17px;
  line-height: 1.8;
  word-break: auto-phrase;
}

.spot-hero__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 見出し */
.spot-h2 {
  word-break: auto-phrase;
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-wrap: balance;
}

.spot-h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 16px;
  background: var(--color-gold);
}

.spot-h3 {
  word-break: auto-phrase;
  margin: 24px 0 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-wrap: balance;
}

.spot-h2 + .spot-h3,
.spot-inner > .spot-h3:first-child {
  margin-top: 0;
}

/* 「※」の注記 */
.spot-note {
  max-width: 42em;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.85;
  word-break: auto-phrase;
}

/* 料金の表示 */
.spot-price {
  margin: 0;
  font-size: clamp(24px, 5.2vw, 34px);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* 特に目立たせる注意事項:太字+細い枠線+金色の左線。赤などの警告色は使わない */
.spot-notice {
  max-width: 42em;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-gold);
  background: var(--spot-card-bg);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
  word-break: auto-phrase;
}

/* 注意事項をまとめる枠(見出し+注意事項)。中の注意事項は、枠線を重ねない */
.spot-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px 28px;
  border: 1px solid var(--color-line);
  background: var(--spot-card-bg);
}

.spot-box::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 28px;
  height: 2px;
  background: var(--color-gold);
}

.spot-box .spot-h3 {
  margin-top: 0;
}

.spot-box .spot-notice {
  padding: 0 0 0 16px;
  border: 0;
  border-left: 3px solid var(--color-gold);
  background: transparent;
}

/* カード(こんなときに) */
.spot-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.spot-card,
.spot-item {
  position: relative;
  border: 1px solid var(--color-line-soft);
  background: var(--spot-card-bg);
  text-align: left;
}

.spot-card::before,
.spot-item::before,
.spot-refund::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  width: 28px;
  height: 2px;
  background: var(--color-gold);
}

.spot-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px 24px;
  font-size: 15px;
  line-height: 1.85;
}

.spot-card__title {
  word-break: auto-phrase;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.spot-card__text {
  word-break: auto-phrase;
}

/* サポート内容の4項目 */
.spot-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 8px 0;
}

.spot-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 24px;
}

.spot-item .spot-text,
.spot-refund .spot-text {
  font-size: 15px;
  line-height: 1.9;
}

.spot-item__title {
  word-break: auto-phrase;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ご利用の流れ:番号つきの7ステップ。番号は CSS のカウンターで表示し、縦の細い線で順番をつなぐ */
.spot-steps {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: spot-step;
}

.spot-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 24px;
  padding-bottom: 36px;
  counter-increment: spot-step;
}

.spot-step:last-child {
  padding-bottom: 0;
}

.spot-step::before {
  content: counter(spot-step);
  display: flex;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-navy);
  border-radius: 50%;
  background: var(--color-bg);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

/* 次のステップへつなぐ縦線 */
.spot-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  bottom: 8px;
  left: 21.5px;
  width: 1px;
  background: var(--color-line);
}

.spot-step__title {
  word-break: auto-phrase;
  margin: 0;
  padding-top: 7px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-wrap: balance;
}

.spot-step__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

/* キャンセル・返金の4項目 */
.spot-refunds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 8px 0;
}

.spot-refund {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 24px;
  border: 1px solid var(--color-line-soft);
  background: var(--spot-card-bg);
}

.spot-refund__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.spot-refund__title strong {
  font-weight: 700;
}

/* よくあるご質問:回答は最初から開いた状態(JS不要)。質問行は押せる大きさ(44px以上) */
.spot-faq {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid var(--color-line);
}

.spot-faq__item {
  border-bottom: 1px solid var(--color-line);
}

.spot-faq__q {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 18px 40px 18px 4px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  list-style: none;
  word-break: auto-phrase;
  text-wrap: balance;
}

.spot-faq__q::-webkit-details-marker {
  display: none;
}

/* 開閉の目印(文字ではなく線で描く。開いているとき「−」、閉じているとき「+」) */
.spot-faq__q::before,
.spot-faq__q::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 1px;
  background: var(--color-navy);
}

.spot-faq__q::after {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.spot-faq__item[open] > .spot-faq__q::after {
  transform: rotate(0deg);
}

.spot-faq__a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px 24px;
}

.spot-faq__a .spot-text {
  font-size: 15px;
  line-height: 1.9;
}

/* 最下部のCTA */
.spot-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 8px 0 0;
  text-align: center;
}

.spot-cta .spot-text,
.spot-cta .spot-note {
  max-width: 36em;
}

.spot-cta__lead {
  max-width: 34em;
  margin: 0;
  font-size: 20px;
  line-height: 1.8;
  word-break: auto-phrase;
  text-wrap: balance;
}

.spot-cta__button {
  min-width: min(100%, 320px);
  margin-top: 8px;
  padding: 16px 40px;
  background: var(--color-navy);
  color: var(--color-bg);
  font-size: 16px;
  font-weight: 500;
}

.spot-cta__button:hover,
.spot-cta__button:focus-visible {
  background: var(--color-bg);
  color: var(--color-navy);
}

/* リンク先が未確定のあいだの、押せない表示(button[disabled])。ホバーしても変わらない */
.spot-cta__button:disabled,
.spot-cta__button:disabled:hover {
  border-style: dashed;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* 接続待ちの表示(リンク先が確定して href が入ると、出力されなくなる) */
.spot-cta__pending {
  max-width: 36em;
  margin: 0;
  color: var(--color-gold-text);
  font-size: 13px;
  line-height: 1.8;
}

@media (prefers-reduced-motion: reduce) {
  .spot-faq__q::after {
    transition: none;
  }
}

/* タブレット以下:2列のカードを1列にする */
@media (max-width: 768px) {
  .spot-cards,
  .spot-items,
  .spot-refunds {
    grid-template-columns: 1fr;
  }
}

/* スマホ */
@media (max-width: 600px) {
  .spot-inner {
    padding-block: 48px;
  }

  .spot-hero .spot-inner {
    padding-block: 44px 52px;
  }

  .spot-hero__catch {
    font-size: 17px;
  }

  .spot-hero__quote {
    font-size: 16px;
  }

  .spot-h2 {
    font-size: 23px;
  }

  .spot-h3 {
    font-size: 17px;
  }

  .spot-text {
    font-size: 15px;
    line-height: 1.9;
  }

  .spot-notice {
    padding: 14px 16px;
    font-size: 15px;
  }

  .spot-box {
    padding: 28px 18px 22px;
  }

  .spot-box::before {
    left: 18px;
  }

  .spot-box .spot-notice {
    padding: 0 0 0 12px;
  }

  .spot-card,
  .spot-item,
  .spot-refund {
    padding: 26px 18px 20px;
  }

  .spot-card::before,
  .spot-item::before,
  .spot-refund::before {
    left: 18px;
  }

  .spot-step {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 14px;
    padding-bottom: 30px;
  }

  .spot-step::before {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .spot-step:not(:last-child)::after {
    top: 44px;
    left: 17.5px;
  }

  .spot-step__title {
    padding-top: 4px;
    font-size: 17px;
  }

  .spot-faq__q {
    font-size: 16px;
  }

  .spot-cta__lead {
    font-size: 18px;
  }

  .spot-cta__button {
    width: 100%;
    padding-inline: 20px;
  }
}
