/* =============================================================
   ページ：総合TOP（assistup / Winserver サービスポータル）
   ============================================================= */

/* =============================================================
   MV（メインビジュアル）
   ============================================================= */
.top-mv {
  position: relative;
  overflow: hidden;
  padding: 40px;
  background-color: #eaf2fb; /* 画像読込前/cover 端の fallback。画像が container より高くて余りが出た場合の地色 */
  background-image: url("../../img/common/top-mv-bg.jpg");
  /* 画像 (1440×889) の上端に ~120px の白い余白が含まれるため、
     bottom 寄せにして白い帯を container の上にはみ出させ非表示にする */
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

.top-mv__inner {
  position: relative;
  z-index: 10; /* 装飾(z:1)より確実に前面 */
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0;
  max-width: 980px;
  /* 子要素のスタッキングコンテキストを孤立させて装飾と確実に分離 */
  isolation: isolate;
}

.top-mv .vps-mv__trial {
  max-width: 422px;
  width: 100%;
}

/* ── バッジ（Windowsサーバー専門ホスティング）
   */
.top-mv__badge {
  display: inline-grid;
  grid-template-columns: clamp(22px, 2vw, 27px) auto;
  align-items: center;
  gap: clamp(4px, 0.5vw, 8px);
  color: #111111;
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top-mv__badge img {
  width: clamp(22px, 2vw, 27px);
  height: auto;
}

/* ── メイン見出し
   */
.top-mv__title {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.vps-mv__trial-heading {
  color: #ff8802;
  border-color: #ff8802;
}

.vps-mv__trial-note::before {
  background-image: url(../../img/common/mv-slash-right-black.svg);
}

.vps-mv__trial-note::after {
  background-image: url(../../img/common/mv-slash-left-black.svg);
}

.vps-mv__trial-note::before,
.vps-mv__trial-note::after {
  width: 10px;
}

.vps-mv__trial-cta {
  max-width: 420px;
}

.top-mv__title-accent {
  color: #0068b7;
}

/* ── リード文 ── */
.top-mv__lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: #111111;
}

/* ── 4スタット円アイコン
   icon を上段に揃え、テキスト2行を下段に揃える。
   ============================================================ */
.top-mv__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 640px;
  padding-block: 16px;
}

.top-mv__stat {
  /* 3行明示：icon / label / value。
     align-content: start + 固定 padding-top で
     4カード間で icon / label / value の縦位置を完全一致させる */
  display: flex;
  align-items: center;
  justify-items: center;
  width: 130px;
  height: 130px;
  gap: 4px;
  aspect-ratio: 1;
  background: #eefafa;
  border-radius: 50%;
  color: #00a590;
  text-align: center;
  line-height: 1.15;
}

.top-mv__stat-icon {
  display: grid;
  place-items: center;
  width: clamp(18px, 2.4vw, 34px);
  aspect-ratio: 1;
  margin: 0 auto 10px;
}

.top-mv__stat-icon img {
  width: 100%;
  height: auto;
}

.top-mv__stat--inner {
  width: 100%;
  margin-top: -10px;
}

.top-mv__stat-label {
  font-size: 14px;
  color: #111111;
  line-height: 1;
  white-space: nowrap;
}

.top-mv__stat-value {
  font-family: "Barlow", "DIN 2014", "Arial Narrow", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #00a590;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.top-mv__stat-value small {
  font-size: 0.55em;
  font-weight: 700;
}

/* テキスト型のスタット値（"電話サポート" 等）はフォントを基本に戻す */
.top-mv__stat-value--text,
.top-mv__stat-value--adds {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 18px;
  letter-spacing: 0;
  margin-top: 5px;
}

.top-mv__stat-value--adds {
  color: #111111;
  font-weight: normal;
  font-size: 14px;
}

.top-mv__stat-label.und {
  font-size: 18px;
  font-weight: bold;
  color: #00a590;
}

/* CTA（無料トライアル）は .vps-mv__trial-* (vps-shared.css) を流用 */

/* ── 装飾イラスト（左右）
   - .top-mv 内に絶対配置（位置固定）
   - ナチュラルサイズ、ブラウザ幅が狭まったら画面外にはみ出して消える
   - PC / SP 共通表示（SPでも見える部分だけ見える） ── */
.top-mv__decor {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.top-mv__decor--left {
  right: 72%;
}

.top-mv__decor--right {
  left: 72%;
}

.top-mv__decor img {
  /* SVG の natural サイズをそのまま使用（縮小しない） */
  width: auto;
  height: auto;
  max-width: none;
  display: block;
}

/* =============================================================
   .top-mv  SPレイアウト（≤900px）
   ============================================================= */
@media (max-width: 900px) {
  .top-mv {
    min-height: 0;
    background-image: url("../../img/common/top-mv-bg-sp.jpg");
  }

  .top-mv__title {
    font-size: 32px;
    text-align: left;
  }

  .top-mv__lead {
    font-size: 14px;
    text-align: left;
  }

  .top-mv__stat {
    background: #ffffff;
  }

  .top-mv .vps-mv__trial-heading {
    font-size: 18px;
  }

  .top-mv .vps-mv__trial-note {
    font-size: 15px;
  }

  .top-mv__decor--right {
    display: none;
  }

  .top-mv__decor--left {
    left: inherit;
    right: 11%;
    top: 20%;
    width: 15vw;
  }
}

/* =============================================================
   セクション共通：top-section padding / title 余白
   ※ vps/*.html と同等の「上下100px、SPで60px」リズム
   ============================================================= */
/* .top-cta の padding-block は vps-shared.css に移動済（voice.html と共用） */
.top-campaign,
.top-reasons,
.top-purpose,
.top-services,
.top-support,
.top-column,
.top-news {
  padding-block: clamp(60px, 8vw, 100px);
}

.top-options {
  position: 0 0;
  margin: 0 auto 60px;
}

/* ── セクションタイトル（メイン + サブ "campaigns" 等） ── */
.top-campaign__title,
.top-reasons__title,
.top-purpose__title,
.top-services__title,
.top-support__title,
.top-column__title,
.top-news__title {
  display: grid;
  gap: 4px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.top-options__title {
  font-size: 22px;
  font-weight: 500;
}
.top-reasons__title,
.top-purpose__title {
  margin-bottom: 0;
}

/* =============================================================
   キャンペーン情報（top-campaign）
   3枚のバナー画像（common/campaigns_ban01〜03.jpg）を表示。
   SP: 横スクロール / PC: 3列グリッド
   ============================================================= */
/* カルーセル本体（タイトル外、最大1400px幅）
   - PC: スライド 460px 固定。ブラウザ幅を縮めると両端の見切れ量が減る
   - ≤600px: 60vw（左右 20% 見切れ）
   - 1400px を超える場合は左右に余白（margin-inline: auto） */
.top-campaign__carousel {
  position: relative;
  max-width: 1400px;
  margin-inline: auto;
}

.top-campaign__list {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* scroll-behavior は JS 側で個別指定（silent jump は instant） */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* 端のスライドが中央スナップできるよう左右に余白（PC: slide=460px） */
  padding-inline: calc(50% - 460px / 2);
  padding-block: 8px;
  margin: 0;
  list-style: none;
}
.top-campaign__list::-webkit-scrollbar {
  display: none;
}

.top-campaign__slide {
  flex: 0 0 460px;
  scroll-snap-align: center;
}

.top-campaign__card {
  display: block;
  overflow: hidden;
  transition:
    filter 200ms ease,
    transform 200ms ease;
}

.top-campaign__card img {
  width: 100%;
  height: auto;
  display: block;
}

.top-campaign__card:hover,
.top-campaign__card:focus-visible {
  filter: brightness(1.03);
  transform: translateY(-2px);
  opacity: 1;
}

/* Prev/Next ボタン */
.top-campaign__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dbe5f3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition:
    background 200ms ease,
    transform 200ms ease;
}

.top-campaign__nav:hover,
.top-campaign__nav:focus-visible {
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.top-campaign__nav--prev {
  left: clamp(8px, 2vw, 24px);
}
.top-campaign__nav--next {
  right: clamp(8px, 2vw, 24px);
}

/* 矢印（CSS だけで描画：border 2 辺を傾けて V 字） */
.top-campaign__nav span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #0068b7;
  border-right: 2px solid #0068b7;
}
.top-campaign__nav--prev span {
  transform: rotate(-135deg);
  margin-left: 4px;
}
.top-campaign__nav--next span {
  transform: rotate(45deg);
  margin-right: 4px;
}

/* ドットナビゲーション */
.top-campaign__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: clamp(16px, 2vw, 24px) 0 0;
}

.top-campaign__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ccd5e0;
  cursor: pointer;
  transition: background 200ms ease;
}

.top-campaign__dot.is-active {
  background: #0068b7;
}

.top-campaign__dot:hover {
  background: #99adbf;
}

/* ≤600px: SP モード（中央 60vw + 左右 ~20% 見切れ） */
@media (max-width: 600px) {
  .top-campaign__list {
    padding-inline: calc(50% - 60vw / 2);
  }

  .top-campaign__slide {
    flex: 0 0 60vw;
  }

  .top-campaign__nav {
    width: 36px;
    height: 36px;
  }
}

/* =============================================================
   Winserverが選ばれる理由（top-reasons）
   ============================================================= */
.top-reasons {
  background: #eaf2fb;
}

.top-reasons__header {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 60px);
}

.top-reasons__list {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  max-width: 1080px;
  margin-inline: auto;
}

.top-reasons__card {
  display: grid;
  grid-template-columns: 156px 1fr;
  align-items: center;
  gap: 80px;
  padding: 48px 64px;
  background: #ffffff;
  border-radius: 8px;
}

@media (max-width: 1239px) {
  .top-reasons__card {
    padding: 30px;
  }
}

.top-reasons__icon img {
  width: 100%;
  height: auto;
}

.top-reasons__body {
  display: grid;
  gap: 8px;
}

.top-reasons__num {
  font-family: "Barlow", "DIN 2014", "Arial Narrow", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #002b69;
  line-height: 1;
  margin-bottom: 10px;
}

.top-reasons__heading {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #0068b7;
  line-height: 1.4;
}

.top-reasons__text {
  font-size: 18px;
  line-height: 1.8;
}

.top-reasons__ref {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
}

.top-reasons__note {
  display: block;
  text-align: right;
  font-size: 0.8em;
  margin-top: 0.5em;
}

/* PC では SP 用 <br> を非表示（@768 以下で表示に切替） */
.top-reasons__br--sp {
  display: none;
}

/* =============================================================
   ≤900px：セクションタイトル / キャンペーン / 選ばれる理由 SPレイアウト
   ============================================================= */
@media (max-width: 900px) {
  /* セクションタイトル共通 */
  .section-title {
    font-size: 22px;
  }

  /* SP用：top-purpose 各カードの改行を表示
     base 側の `.top-purpose__br { display: none }` よりソース順で前にあるため、
     specificity を高めて打ち勝つ */

  /* 選ばれる理由カード：縦積み（アイコン上、ナンバー+見出し横並び、テキスト下） */
  .top-reasons__card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px !important; /* 上下24px、左右はカード内余白で対応 */
    justify-items: start;
  }

  /* アイコンは横方向センタリング（margin: auto） */
  .top-reasons__icon {
    display: block;
    justify-self: center; /* card の justify-items: start を上書き */
    margin-inline: auto;
  }

  .top-reasons__icon img {
    width: 80px;
    height: auto;
  }

  .top-reasons__body {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 12px;
    row-gap: 10px;
    width: 100%;
  }

  .top-reasons__num {
    grid-column: 1;
    grid-row: 1;
    font-size: 22px;
    margin-bottom: 0;
  }

  .top-reasons__heading {
    grid-column: 2;
    grid-row: 1;
    font-size: 18px;
  }

  .top-reasons__text {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 13px;
    line-height: 1.7;
  }

  .top-reasons__title,
  .top-purpose__title {
    margin-bottom: 0;
  }
}

/* 「もっと見る」ボタンのラッパー（.btn-more-link__wrap）に上余白を付与 */
.page-top .top-reasons .btn-more-link__wrap,
.page-top .top-options .btn-more-link__wrap,
.page-top .top-column .btn-more-link__wrap,
.page-top .top-news .btn-more-link__wrap {
  margin-top: clamp(32px, 4vw, 60px);
}

/* =============================================================
   目的から探す（top-purpose）
   ============================================================= */
.top-purpose__header {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 60px);
}

.top-purpose__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .top-purpose__list {
    grid-template-columns: 1fr;
    gap: clamp(8px, 1vw, 16px);
  }
}

.top-purpose__card {
  display: grid;
  grid-template-columns: clamp(64px, 8vw, 88px) 1fr 23px;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(16px, 2vw, 14px) clamp(20px, 3vw, 32px);
  background: #ffffff;
  border: 1px solid #dbe5f3;
  border-radius: 5px;
  color: #111111;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  transition:
    border-color 200ms ease,
    background 200ms ease;
}

.top-purpose__text {
  font-size: 15px;
}

/* PC（≥901px）では各カードの改行を抑制。SP 用の <br class="top-purpose__br" / .top-support__br / .top-column__br>
   のみ控えめに非表示。@media (max-width: 900px) で表示に戻す（下の SP ブロック参照） */
.top-support__br,
.top-column__br {
  display: block;
}

.top-purpose__card::after {
  content: "";
  width: 23px;
  aspect-ratio: 1;
  background: url("../../img/common/icon-tp-green.svg") center / contain no-repeat;
  justify-self: end;
}

.top-purpose__card:hover,
.top-purpose__card:focus-visible {
  border-color: #1977f2;
  background: #eaf2fb;
  opacity: 1;
}

/* =============================================================
   サービス一覧（top-services）
   ============================================================= */
.top-services {
  padding-top: 0;
}

.top-services__header {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 60px);
}

.top-services__lead {
  font-size: 18px;
  line-height: 1.7;
}

.top-services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .top-services__list {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 1.5vw, 20px);
  }

  /* top-reasons：SP用改行 <br> 表示 */
  .top-reasons__br--sp {
    display: inline;
  }

  /* @900 の 2列グリッドから flex-wrap に切替：
     - num + heading は横並びのまま、グループとして中央寄せ
     - text は flex-basis: 100% で次行（フル幅）に折返し */
  .top-reasons__body {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    column-gap: 12px;
    row-gap: 10px;
  }

  /* 不要になった @900 の grid-column / grid-row 割当てを解除 */
  .top-reasons__num,
  .top-reasons__heading {
    grid-column: auto;
    grid-row: auto;
  }

  .top-reasons__text {
    grid-column: auto;
    grid-row: auto;
    flex-basis: 100%; /* 次行に独立して配置 */
  }
}

.top-services__list > li {
  display: grid;
}

.top-services__card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: 0 0 56px;
  background: #ffffff;
  border-radius: 8px;
  color: #111111;
  overflow: hidden;
  height: 100%;
  filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.1));
  transition: transform 200ms ease;
}

.top-services__card::after {
  content: "";
  position: absolute;
  right: clamp(12px, 1.5vw, 18px);
  bottom: clamp(12px, 1.5vw, 18px);
  width: clamp(24px, 3vw, 32px);
  aspect-ratio: 1;
  background: url("../../img/common/icon-tp-green.svg") center / contain no-repeat;
}

.top-services__card:hover,
.top-services__card:focus-visible {
  transform: translateY(-2px);
  opacity: 1;
}

.top-services__label {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding-block: 8px;
  padding-inline: 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

/* サービス別カラー（PCメガと同じ暫定値） */
.top-services__card--c1 .top-services__label {
  background: #ffcd00;
}
.top-services__card--c2 .top-services__label {
  background: #1877f2;
}
.top-services__card--c3 .top-services__label {
  background: #16a291;
}
.top-services__card--c4 .top-services__label {
  background: #09cae3;
}
.top-services__card--c5 .top-services__label {
  background: #72b935;
}
.top-services__card--c6 .top-services__label {
  background: #6574e8;
}

.top-services__visual {
  display: block;
}

.top-services__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.top-services__desc {
  padding: 20px 24px 0;
  font-size: 14px;
  line-height: 1.7;
}

/* .top-services__list の SP override は base 直下に max-width: 768px で記述済 */

/* =============================================================
   オプション・関連サービス（top-options）
   各カード：白背景 + 左にアイコン + 右にタイトル/説明 + 右下に緑矢印
   ============================================================= */
.top-options__header {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 60px);
}

.top-options__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin-inline: auto;
}

.top-options__card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(18px, 4.7vw, 64px) 1fr;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  padding: 15px 15px;
  background: #ffffff;
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  color: #111111;
  transition:
    border-color 200ms ease,
    transform 200ms ease;
  height: 100%;
}

.top-options__card::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 23px;
  aspect-ratio: 1;
  background: url("../../img/common/icon-tp-green.svg") center / contain no-repeat;
}

.top-options__card:hover,
.top-options__card:focus-visible {
  border-color: #1977f2;
  transform: translateY(-2px);
  opacity: 1;
}

.top-options__icon {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
}

.top-options__icon img {
  width: 100%;
  height: auto;
}

.top-options__body {
  display: grid;
  gap: 4px;
}

.top-options__name {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  line-height: 1.4;
}

.top-options__desc {
  font-size: 14px;
  line-height: 1.7;
  color: #111111;
}

/* ラッパー .vps-pricing__more に統一済（margin-top は上で定義） */

.vps-pricing__bans {
  margin: 60px auto 0;
  max-width: 1080px;
}

/* =============================================================
   導入前から運用まで安心のサポート体制（top-support）
   ============================================================= */
.top-support {
  background: #002b69;
  color: #ffffff;
}

.top-support__header {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 90px;
  color: #ffffff;
}

.top-support__title {
  color: #ffffff;
}

.top-support__lead {
  font-size: 18px;
  line-height: 1.8;
}

/* primary cards (3)
   - 3カード横並び（PCで3列、SPで1列）
   - カード上端を跨ぐようにアイコン（84px）が浮く
   - 白背景 + drop-shadow、角丸10px
   - チャット/メール：青ボタン（お問い合わせ）+ 緑バッジ（吹き出し風）
   - 電話：電話番号 + 受付時間
   ============================================================ */
/* .top-support__primary*（チャット/メール/電話 3 カード）の定義は
   layout/vps-shared.css に移動。index.html と voice.html で共用。 */

/* secondary cards (5)
   - 5カード（上段3・下段2）、下段は中央寄せ
   - 白背景 + border #DBE5F3 + 角丸5px + padding 24px
   - 左にアイコン(57px) + 右にタイトル/説明、gap 16px
   - 右下に小さい緑矢印（icon-tp-green.svg）
   ============================================================ */
/* .top-support__secondary / .top-support__sec-* は layout/vps-shared.css に移動済み（reason.html と共用）*/

@media (max-width: 900px) {
  .top-support__header {
    margin-bottom: 50px;
  }

  .top-support__lead {
    font-size: 14px;
    font-weight: normal;
  }
}

/* NOTE: Winserverが安心して使える理由（.vps-trust__*）は
   layout/vps-shared.css に集約しています（VPS/総合TOP共通） */

.vps-trust {
  padding-bottom: 0;
}

/* =============================================================
   コラム（top-column）
   ============================================================= */
.top-column {
  background: #eaf2fb;
}

.top-column__header {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 60px);
}

.top-column__lead {
  font-size: 18px;
  line-height: 1.8;
}

/* SP: 横スクロール / PC: 3列グリッド
   - カード: 338×384、白bg、角丸5、shadow 0 0 30 rgba(169,185,207,.16)
   - サムネ: 338×220、カード上端に密着（角丸は上のみ）
   - タイトル: 18px Medium #111 行高1.7、サイド余白22px
   - 日付: 14px Regular #8e8e93 行高1.9
   ============================================================ */
.top-column__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 338px;
  gap: 33px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: 24px;
  max-width: 1080px;
  margin-inline: auto;
  -webkit-overflow-scrolling: touch;
}

.top-column__list > li {
  scroll-snap-align: start;
}

.top-column__card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  height: 100%;
  background: #ffffff;
  border-radius: 5px;
  color: #111111;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(169, 185, 207, 0.16);
  transition: transform 200ms ease;
}

.top-column__card:hover,
.top-column__card:focus-visible {
  transform: translateY(-2px);
  opacity: 1;
}

.top-column__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 338 / 220;
  overflow: hidden;
  background: #ffffff;
}

.top-column__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-column__body {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  padding: 18px 22px 20px;
}

.top-column__heading {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: #111111;
  /* 3行クランプ */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-column__date {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: #8e8e93;
}

/* タブレット以上：横スクロール解除 → 3列固定グリッド */
@media (min-width: 769px) {
  .top-column__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: unset;
    overflow: visible;
    padding-inline: 0;
  }

  .top-column__list > li {
    min-width: 0;
  }
}

/* ラッパー .vps-pricing__more に統一済（margin-top は上で定義） */

/* =============================================================
   お知らせ（top-news）— タブ切り替え
   ============================================================= */
.top-news__header {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 40px;
}

/* タブストリップ
             角丸5（上のみ）、下に細い水平線 #DBE5F3
   ============================================================ */
.top-news__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1080px;
  margin-inline: auto;
  margin-bottom: 0;
  border-bottom: 1px solid #dbe5f3;
}

.top-news__tab {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 12px 16px;
  background: #f2f4f8;
  color: #111111;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.top-news__tab:hover,
.top-news__tab:focus-visible {
  background: #eaf2fb;
  opacity: 1;
}

.top-news__tab.is-active,
.top-news__tab[aria-selected="true"] {
  background: #0068b7;
  color: #ffffff;
  font-weight: 700;
}

.top-news__tab-label {
  display: inline-block;
}

.top-news__panels {
  max-width: 1080px;
  padding: 40px 40px 0;
  margin-inline: auto;
  /* タブストリップ下端の line と最初のニュース項目との間隔 */
  margin-top: 0;
}

.top-news__panel[hidden] {
  display: none;
}

/* 各タブパネル内のニュースリスト（<ul>）— デフォルト装飾解除 */
.top-news__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-news__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(16px, 2.5vw, 40px);
  padding: clamp(16px, 2vw, 20px) clamp(12px, 2vw, 24px);
  border-bottom: 1px solid #dbe5f3;
  color: #111111;

  line-height: 1.7;
  transition:
    color 200ms ease,
    background 200ms ease;
}

.top-news__item:hover,
.top-news__item:focus-visible {
  background: #eaf2fb;
  color: #1977f2;
  opacity: 1;
}

.top-news__date {
  letter-spacing: 0;
  min-width: 96px;
}

/* ラッパー .vps-pricing__more に統一済（margin-top は上で定義） */

/* .top-cta*（トライアル + サポート3カード セクション全体）の定義は
   layout/vps-shared.css に移動。index.html と voice.html で共用。 */

/* .vps-pricing__more-link の font-size 20px override は .btn-more-link 本体に取り込み済み（components/buttons.css）*/

@media (max-width: 1100px) {
  .top-reasons__card {
    gap: 40px;
    padding-inline: 80px;
  }
}

@media (max-width: 900px) {
  /* ① top-purpose アイコン縮小 */
  .top-purpose__card {
    grid-template-columns: 52px 1fr 23px;
  }
  .top-purpose__icon {
    width: 52px;
  }
  .top-purpose__icon img {
    width: 100%;
    height: auto;
  }

  /* .btn-more-link の @900px font-size 16px override は components/buttons.css に移動済み */

  /* ③④⑤⑥ top-services SPレイアウト */
  .top-services__card {
    padding: 0 0 36px;
    border-radius: 5px;
  }
  .top-services__card::after {
    width: 20px;
  }
  .top-services__label {
    font-size: 15px;
  }
  .top-services__desc {
    padding: 10px 14px 0;
    font-size: 12px;
  }

  /* ⑦ section-title かつ top-options__title（h2 のフォントサイズを縮小） */
  .top-options__title {
    font-size: 16px;
  }

  /* ⑧ top-options__list は2カラム */
  .top-options__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* top-options カード右下矢印を小さく */
  .top-options__card::after {
    width: 16px;
  }

  /* top-support 見出し・リード文の SP 改行を有効化 */
  .top-support__title .top-support__br,
  .top-support__lead .top-support__br {
    display: inline;
  }

  /* top-support リードの PC専用 <br> は SP で非表示 */
  .top-support__lead .top-support__br--pc {
    display: none;
  }

  .top-services__lead {
    font-size: 14px;
  }

  /* top-support__primary SP グリッド再配置・カード本体 SP 調整は
     layout/vps-shared.css に移動済 */

  /* top-support__secondary：gap 10px、フォントサイズ調整
     base がソース順で後ろにあるため `.top-support` chain で specificity を上げる */
  .top-support .top-support__secondary {
    gap: 10px;
  }
  .top-support .top-support__sec-name {
    font-size: 17px;
  }
  /* sec-card 右下矢印の縦軸センター配置は base 側で既定済（削除済） */

  /* top-column SP調整 */
  .top-column .top-column__lead {
    font-size: 16px;
  }
  .top-column__lead .top-column__br {
    display: inline;
  }
  .top-column .top-column__heading {
    font-size: 14px;
  }
  .top-column .top-column__date {
    font-size: 12px;
  }
  .top-column .top-column__list {
    gap: 10px;
    grid-auto-columns: 220px;
    /* 横スクロール時、右端を viewport の右端まで広げる
       （次のカードが右からチラ見えするようにして、スクロール可能を視覚提示） */
    max-width: none;
    margin-right: calc(50% - 50vw);
    padding-right: 0;
  }

  /* top-cta / top-support__primary SP 調整は layout/vps-shared.css に移動済 */

  /* ⑨ top-options__card：上にアイコン+見出し、下にテキスト
     display: contents で .top-options__body 内の name/desc を
     card の直接子として grid 配置する。
     base ルールがソース順で後ろにあるため、selector を chain して specificity を上げて打ち勝つ */
  .top-options__card {
    grid-template-columns: 20px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
    padding: 16px 14px;
    border-radius: 5px;
    padding-right: 28px; /* 右下矢印分の余白 */
  }
  .top-options__card .top-options__icon {
    grid-column: 1;
    grid-row: 1;
    width: 20px;
    aspect-ratio: 1;
  }
  .top-options__card .top-options__body {
    display: contents;
  }
  .top-options__card .top-options__name {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
  }
  .top-options__card .top-options__desc {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 11px;
    line-height: 1.6;
  }
}

/* SP: タブを固定幅110pxで左寄せ、高さ68px、テキスト2行可 */
@media (max-width: 768px) {
  .top-news__header {
    margin-bottom: 0;
  }
  .top-news__tabs {
    gap: 8px;
  }
  .top-news__tab {
    min-height: 68px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    padding: 8px 4px;
  }

  /* 中央タブのラベル切替は base ユーティリティ（.pc-only / .sp-only）に任せる：
     - ≥768px：pc-only 表示（メンテナンス/障害情報）
     - ≤767px：sp-only 表示（メンテナンス / 障害情報）
     ここでは個別上書きしない */

  /* パネル左右 padding 解除 */
  .top-news__panels {
    padding: 20px 0 0 !important;
  }

  /* item を縦積み：上に日付、下にテキスト */
  .top-news__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
/* 3コンタクトカード：.top-support__primary-* コンポーネントを流用
   PC + SP（≤900px・≤480px）のスタイルは layout/vps-shared.css に集約済 */

@media (max-width: 650px) {
  .top-mv__decor--left {
    left: inherit;
    right: -10vw;
    top: 25%;
    width: 45vw;
  }

  .top-mv__stats {
    gap: 20px;
    width: 100%;
    max-width: max-content;
    padding-block: 20px;
  }

  .top-mv__stat {
    width: 100px;
    height: 100px;
  }

  .top-mv {
    padding: 40px 0;
  }

  .top-mv__inner {
    display: block;
    justify-content: flex-start;
  }

  .top-mv__badge,
  .top-mv__title,
  .top-mv__lead {
    width: 100%;
    justify-content: flex-start;
  }
  .top-mv__title {
    margin-bottom: 10px;
  }

  .top-mv__decor--left img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 528px) {
  .top-mv__stats {
    gap: 20px;
    width: max-content;
    max-width: max-content;
    padding-block: 20px;
  }

  .top-mv__stat-icon {
    margin-bottom: 5px;
  }

  .top-reasons__card {
    gap: 20px;
  }

  .top-purpose__card {
    padding: 12px 16px;
  }

  .top-mv__stat {
    width: 80px;
    height: 80px;
  }

  .top-mv__stat-value {
    font-size: 20px;
  }

  .top-mv__stat-label.und {
    font-size: 14px;
  }

  .top-mv__stat-value--text,
  .top-mv__stat-value--adds {
    font-size: 14px;
  }

  .top-mv__lead {
    font-size: 13px;
  }

  .top-mv__stat-label {
    font-size: 12px;
  }

  .top-mv__decor--left {
    right: -12vw;
    top: 30%;
    width: 35vw;
  }

  .top-campaign {
    padding: 50px 0;
  }
}

@media (max-width: 420px) {
  .top-mv__stats {
    gap: 10px;
  }
}

@media (min-width: 901px) {
  .top-purpose .top-purpose__card {
    grid-template-columns: clamp(64px, 8vw, 88px) 1fr 32px;
  }

  .top-purpose .top-purpose__card::after {
    width: 32px;
  }

  .top-purpose .top-purpose__text {
    font-size: 18px;
  }
}
