/* =============================================================
   PC base styles
   ============================================================= */

/* =============================================================
   VPS利用シーンページ専用スタイル

   使用ページ: vps/vps-case.html
   依存: style.css（先に読み込むこと）
   ============================================================= */

/* =============================================================
   VPS下層ページ共通ヘッダー
   NOTE: vps-subpage-headerは layout/vps-shared.css に定義されています
   ============================================================= */

/* =============================================================
   利用シーン紹介セクション
   .vps-use-cases / .vps-use-cases__title は layout/vps-shared.css
   ============================================================= */

.vps-use-cases__header {
  text-align: center;
  margin-bottom: 40px;
}

/* =============================================================
   利用シーン アンカーリンク
   (PC: 2カラム / @768 以下: 1カラム)
   ============================================================= */

.vps-use-cases__anchors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0 auto 80px;
  padding: 0;
  max-width: max-content;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* li を grid 化して内部の a を行内最大高さまで stretch させ、
   左右でテキスト行数が異なっても border-bottom 位置が揃うようにする */
.vps-use-cases__anchors li {
  display: grid;
}

.vps-use-cases__anchor {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid #dbe5f3;
  transition: background 0.2s ease;
}

/* PC 2列: 最終 2 項目 (= 最終行) の border-bottom を消す */
.vps-use-cases__anchors li:nth-last-child(-n + 2) .vps-use-cases__anchor {
  border-bottom: none;
}

.vps-use-cases__anchor:hover {
  background: #f5f9ff;
}

.vps-use-cases__anchor-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #31c0c5;
  border-radius: 50%;
  color: #ffffff;
  font-family: "Barlow", sans-serif;
  line-height: 1;
}

.vps-use-cases__anchor-badge-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.vps-use-cases__anchor-badge-number {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.vps-use-cases__anchor-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.vps-use-cases__anchor-arrow {
  width: 11px;
  height: 7px;
}

/* =============================================================
   カテゴリ（法人利用/個人利用）
   ============================================================= */

.vps-use-cases__category {
  background: #ffffff;
  border-radius: 10px;
  padding: 60px 40px;
  margin-bottom: 80px;
}

.vps-use-cases__category:last-of-type {
  margin-bottom: 0;
}

.vps-use-cases__category-title {
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  padding: 10px 30px;
  background: #ffffff;
  border: 1px solid #dbe5f3;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.vps-use-cases__scenes {
  display: grid;
  gap: 0;
}

/* =============================================================
   シーンカード
   ============================================================= */

.vps-scene {
  padding: 0;
  margin-bottom: 64px;
  /* アンカーリンク（#scene-0X）で飛んだ際の sticky header オフセット
     PC: topbar 32 + main 122 = 154px → 160px（+6px 余白）
     ≤ 1100px は SP モード（main 57px のみ）で 70px に切替（下記 @media 参照）*/
  scroll-margin-top: 160px;
}

.vps-scene:last-child {
  margin-bottom: 0;
}

/* シーンヘッダー */

.vps-scene__header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.vps-scene__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: #31c0c5;
  border-radius: 50%;
  flex-shrink: 0;
}

.vps-scene__text {
  line-height: 1.8;
}
.vps-scene__badge-text {
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.vps-scene__badge-number {
  font-family: "Barlow", sans-serif;
  line-height: 1;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
}

.vps-scene__title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vps-scene__title {
  color: #568F4C;
}

.vps-scene__text {
  line-height: 1.5;
  font-size: 14px;
}

.vps-scene__target {
  font-size: 14px;
}

.vps-scene__target-label {
  flex-shrink: 0;
  background: #b1d1fb;
  padding: 5px;
  margin-right: 1em;
  position: relative;
  border-radius: 4px;
}

/* 比較セクション（お悩み vs VPSで解決） */

.vps-scene__comparison {
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  gap: 0;
  margin-bottom: 32px;
  align-items: center;
}

.vps-scene__problem,
.vps-scene__solution {
  border-radius: 10px;
  height: 100%;
}

.vps-scene__problem {
  border: 1px solid #dbe5f3;
}

.vps-scene__solution {
  border: 1px solid #568F4C;
}

.vps-scene__comparison-heading {
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vps-scene__problem .vps-scene__comparison-heading {
  background: #f2f4f8;
  color: #111111;
}

.vps-scene__solution .vps-scene__comparison-heading {
  background: #568F4C;
  color: #ffffff;
  font-weight: 700;
}

.vps-scene__content {
  padding: 30px 35px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
}

.vps-scene__solution .vps-scene__content {
  grid-template-columns: 1fr;
  padding: 30px 35px;
  height: calc(100% - 60px); /* 比較見出しの高さを引いて残り全てを content に */
}

.vps-scene__image-wrapper {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.vps-scene__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vps-scene__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  padding: 0 25px;
}

.vps-scene__arrow img {
  width: 34px;
  height: auto;
  display: block;
}

/* Winserverだからできること */

.vps-scene__winserver-features {
  display: grid;
  grid-template-columns: 250px 1fr;
  margin-bottom: 24px;
  align-items: center;
}

.vps-scene__features-label {
  background: #186900;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  padding: 0 18px;
  border-radius: 10px 0 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.vps-scene__features-text {
  background: #ffffff;
  border: 1px solid #dbe5f3;
  border-left: none;
  border-radius: 0 10px 10px 0;
  padding: 20px 60px 20px;
  font-size: 18px;
  line-height: 1.8;
  display: flex;
  align-items: center;
  align-self: stretch;
}

/* 推奨プラン */

.vps-scene__recommended-plan {
  display: grid;
  grid-template-columns: 250px 1fr;
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  align-items: center;
}

.vps-scene__plan-label {
  background: #EFF9EB;
  color: #111111;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 0 30px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vps-scene__plan-content {
  padding: 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-self: stretch;
}

.vps-scene__plan-name {
  font-size: 20px;
  font-weight: 700;
  color: #568F4C;
}

.vps-scene__plan-note {
  font-size: 16px;
  color: #568F4C;
  a {
    text-decoration: underline;
  }
}

/* =============================================================
   サーバー診断CTA
   NOTE: このセクションは独立したセクションです
   ============================================================= */

.vps-server-diagnosis {
  text-align: center;
  padding: 100px 0;
  background: url("../../img/common/server-bg.svg") center top / cover no-repeat;
  position: relative;
  overflow: hidden;
  margin-bottom: 100px;
}

.vps-server-diagnosis__intro {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
  line-height: 1.43;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.vps-server-diagnosis__intro-text {
  text-align: center;
  font-size: 22px;
}

/* intro 内の装飾アイコンは 9x26 でサイズ override */
.vps-server-diagnosis__intro .vps-server-diagnosis__icon {
  width: 9px;
  height: 26px;
  margin: 0;
}

.vps-server-diagnosis__icon {
  width: 16px;
  height: 27px;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  z-index: 1;
}

.vps-server-diagnosis__icon--left {
  margin-right: 17px;
}

.vps-server-diagnosis__icon--right {
  margin-left: 17px;
}

.vps-server-diagnosis__btn {
  display: inline-grid;
  grid-template-columns: auto 21px;
  align-items: center;
  justify-content: center;
  gap: 21px;
  width: 100%;
  max-width: 520px;
  height: 74px;
  background: #ff8802;
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: filter 0.2s ease;
  isolation: isolate;
}

.vps-server-diagnosis__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100px at 50% -20%, rgba(255, 169, 89, 0.9) 0%, rgba(255, 169, 89, 0.9) 50%, rgba(255, 169, 89, 0.3) 55%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.vps-server-diagnosis__btn::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  background: url("../../img/common/icon-arrow-b-white.svg") center / contain no-repeat;
}

.vps-server-diagnosis__btn:hover {
  filter: brightness(0.9);
}

/* =============================================================
   料金プラン（このページ専用の調整）
   .vps-pricing 本体は layout/vps-shared.css。ここでは vps-case.html
   のセクション間スペースを足すスコープ override のみ。
   ============================================================= */

.page-vps-case .vps-pricing {
  margin-bottom: 100px;
}

/* =============================================================
   レスポンシブ対応
   ============================================================= */

/* タブレット */

/* スマートフォン */

/* =============================================================
   @media (max-width: 1024px)
   ============================================================= */

@media (max-width: 1024px) {
  .vps-use-cases {
    padding: 80px 0;
  }

  .vps-use-cases__header {
    margin-bottom: 60px;
  }

  .vps-use-cases__category {
    margin-bottom: 60px;
  }

  .vps-scene__problem,
  .vps-scene__solution {
    height: auto;
    width: 100%;
  }

  .vps-scene__arrow img {
    width: 34px;
  }

  .vps-scene__image-wrapper {
    width: 100px;
    height: 100px;
  }
  .vps-scene__content {
    padding: 20px;
    grid-template-columns: 100px 1fr;
  }

  .vps-scene__solution .vps-scene__content {
    padding: 20px;
    height: calc(100% - 40px);
  }

  .vps-scene__features-text,
  .vps-scene__plan-content {
    padding: 20px 40px;
  }
}

/* =============================================================
   @media (max-width: 768px)
   ============================================================= */

@media (max-width: 768px) {
  .vps-use-cases__category {
    padding: 40px 20px;
    margin-bottom: 40px;
    border-radius: 5px;
  }

  .vps-use-cases__category-title {
    margin-bottom: 20px;
    font-size: 14px;
    padding: 10px;
  }

  .vps-scene__header {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
  }

  .vps-scene__badge {
    width: 58px;
    height: 58px;
    grid-column: 1;
    grid-row: 1;
  }

  .vps-scene__badge-text {
    font-size: 10px;
  }

  .vps-scene__badge-number {
    font-size: 16px;
  }

  .vps-scene__title-group {
    display: contents;
    text-align: left;
  }

  .vps-scene__title {
    font-size: 18px;
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }

  .vps-scene__target-label {
    font-size: 12px;
  }

  .vps-scene__target {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
  }

  .vps-scene__target-label::after {
    display: none;
  }

  .vps-scene__comparison {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    margin-bottom: 40px;
    align-items: start;
  }

  .vps-scene__arrow {
    width: 34px;
    padding: 0;
  }

  .vps-scene__arrow img {
    width: 34px;
    transform: rotate(90deg);
  }

  .vps-scene__image-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto;
  }

  .vps-scene__content {
    padding: 20px;
    grid-template-columns: 90px 1fr;
  }

  .vps-scene__solution .vps-scene__content {
    padding: 20px;
  }

  .vps-scene__winserver-features {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
  }

  .vps-scene__features-label {
    border-radius: 5px 5px 0 0;
    padding: 10px;
    text-align: center;
    font-size: 18px;
  }

  .vps-scene__features-label br {
    display: none;
  }

  .vps-scene__features-text {
    border-left: 1px solid #dbe5f3;
    border-radius: 0 0 5px 5px;
    padding: 20px;
    border: 1px solid #dbe5f3;
    border-top: none;
    font-size: 16px;
  }

  .vps-scene__recommended-plan {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
    align-items: stretch;
    border-radius: 5px;
  }

  .vps-scene__plan-content {
    padding: 20px;
    align-self: auto;
  }

  .vps-scene__plan-label {
    padding: 10px;
    text-align: center;
    align-self: auto;
    font-size: 18px;
  }

  .vps-scene__problem,
  .vps-scene__solution {
    border-radius: 5px;
  }

  .vps-scene__comparison-heading {
    font-weight: 700;
  }

  .page-vps-case .vps-pricing {
    margin-bottom: 0;
  }
  .vps-use-cases {
    padding: 60px 0;
  }

  .vps-use-cases__header {
    margin-bottom: 40px;
  }

  .vps-use-cases__title {
    font-size: 18px;
    font-weight: 700;
  }

  /* アンカーリンク: 1カラム化、最終 1 項目のみ border-bottom: none */
  .vps-use-cases__anchors {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-bottom: 40px;
  }

  .vps-use-cases__anchors li:nth-last-child(-n + 2):not(:last-child) .vps-use-cases__anchor {
    border-bottom: 1px solid #dbe5f3;
  }

  .vps-use-cases__anchors li:last-child .vps-use-cases__anchor {
    border-bottom: none;
  }

  .vps-use-cases__anchor {
    padding: 12px 16px;
    gap: 8px;
  }

  .vps-scene__solution .vps-scene__content {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .vps-scene__arrow img {
    height: 34px;
  }

  .vps-server-diagnosis {
    padding: 60px 0;
    margin-bottom: 0;
  }

  .vps-server-diagnosis__intro {
    margin-bottom: 24px;
  }

  .vps-server-diagnosis__intro-text {
    font-size: 15px;
  }

  .vps-server-diagnosis__btn {
    font-size: 19px;
    width: 327px;
    height: 64px;
    gap: 0;
  }

  .vps-server-diagnosis__icon {
    width: 12px;
    height: 20px;
  }

  .vps-server-diagnosis__icon--left {
    margin-right: 12px;
  }

  .vps-server-diagnosis__icon--right {
    margin-left: 12px;
  }
}

@media (max-width: 480px) {
  .vps-scene__image-wrapper {
    width: 60px;
    height: 60px;
  }

  .vps-scene__content {
    grid-template-columns: 60px 1fr;
  }
}

/* === Phase 4 Round 2: responsive font-size overrides (@1024) === */
@media (max-width: 1024px) {
  .vps-use-cases__category-title {
    font-size: 20px;
  }
  .vps-scene__comparison-heading {
    font-size: 20px;
  }
  .vps-scene__features-label {
    font-size: 16px;
  }
  .vps-scene__features-text {
    font-size: 16px;
  }
  .vps-scene__plan-label {
    font-size: 16px;
  }
  .vps-server-diagnosis__intro-text {
    font-size: 20px;
  }
}

/* === Phase 4 Round 2: responsive font-size overrides (@768) === */
@media (max-width: 768px) {
  .vps-use-cases__category-title {
    font-size: 18px;
  }
  .vps-scene__comparison-heading {
    font-size: 18px;
  }
  .vps-scene__features-text {
    font-size: 14px;
  }
  .vps-scene__plan-label {
    font-size: 14px;
  }
  .vps-server-diagnosis__intro-text {
    font-size: 18px;
  }

  .vps-scene__plan-name {
    font-size: 16px;
  }
}

/* =============================================================
   レスポンシブ：≤ 480px（小型モバイル）
   ============================================================= */
@media (max-width: 480px) {
  .vps-server-diagnosis__intro-text {
    font-size: 15px;
  }
  .vps-server-diagnosis__intro {
    margin-bottom: 15px;
  }
}

/* =============================================================
   ≤ 1100px：sticky header が SP モード（main 57px のみ）に切替わる
   ※ header.css の @media (max-width: 1100px) と揃える
   ============================================================= */
@media (max-width: 1100px) {
  .vps-scene {
    scroll-margin-top: 70px; /* SP header 57px + 余白 13px */
  }
}

/* =============================================================
   ご利用までの流れ (PC_専用サーバー)
   ============================================================= */

.vps-steps {
  padding: 100px 0;
  background: #ffffff;
}

.vps-steps__lead {
  text-align: center;
  margin: 0 0 60px;
}

.vps-steps__lead a {
  color: #568F4C;;
  text-decoration: underline;
}

.vps-steps__list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.vps-steps__list::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 38px;
  width: 2px;
  background: #00a590;
  z-index: 0;
}

.vps-steps__item {
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: 24px;
  position: relative;
}

.vps-steps__item:not(:last-child) {
  margin-bottom: 40px;
}

.vps-steps__badge {
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 25px 25px;
  background: #568F4C;
  color: #ffffff;
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 700;
  border-radius: 5px;
}

.vps-steps__step-title {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 8px;
}

.vps-steps__text {
  font-size: 15px;
  margin: 0;
}

.vps-steps__btn.btn-more-link {
  width: auto;
  max-width: none;
  height: 52px;
  padding: 0 28px;
  margin: 16px 0 0;
}

.vps-steps__btn.vps-pricing__btn {
  max-width: none;
  margin: 16px 0 0;
}

/* =============================================================
   レスポンシブ
   ============================================================= */
@media (max-width: 768px) {
  .vps-steps {
    padding: 60px 0;
  }

  .vps-steps__lead {
    margin: 0 0 40px;
  }

  .vps-steps__list {
    max-width: 100%;
  }

  .vps-steps__list::before {
    left: 30px;
  }

  .vps-steps__item {
    grid-template-columns: 60px 1fr;
    column-gap: 16px;
  }

  .vps-steps__item:not(:last-child) {
    margin-bottom: 28px;
  }

  .vps-steps__badge {
    padding: 6px 10px;
    font-size: 13px;
  }

  .vps-steps__step-title {
    font-size: 17px;
  }

  .vps-steps__text {
    font-size: 14px;
  }

  .vps-steps__btn.btn-more-link {
    width: 100%;
    height: 48px;
    padding: 0;
  }
}


.vps-pricing__grid {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 1024px) {
  .vps-pricing__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.btn-more-link {
  color: #568F4C;
  border: 2px solid #568F4C;
  &:hover, &:focus-visible {
    background-color: #568F4C;
  }
}

/* =============================================================
   用途別 (PC_専用サーバー)
   ============================================================= */

.vps-selection {
    padding: 100px 0;
    background: #ffffff;
}

.vps-selection__table-wrapper {
  margin-top: 40px;
}

.vps-selection__table {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
}

.vps-selection__table th,
.vps-selection__table td {
  width: 33.333%;
  border: 1px solid #dbe5f3;
  padding: 20px 24px;
  vertical-align: middle;
}

.vps-selection__header {
  background: #568F4C;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  border-color: #568F4C;
}

.vps-selection__cell {
  font-size: 15px;
  text-align: center;
}

.vps-selection__table td.vps-selection__cell--btn {
  border: none;
  border-top: 1px solid #dbe5f3;
  padding: 24px 24px 0;
  background: transparent;
}

@media (max-width: 768px) {
  .vps-selection {
    padding: 0px 0 60px;
  }

  .vps-selection__table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 24px;
  }

  .vps-selection__table {
    width: 700px;
    max-width: none;
  }

  .vps-selection__header {
    font-size: 15px;
    padding: 14px 16px;
  }

  .vps-selection__cell {
    font-size: 13px;
    padding: 16px;
  }

  .vps-selection__cell--btn {
    padding: 16px 16px 0;
  }
}

.vps-consultation {
  background: #ffffff;
  text-align: center;
  img {
    display: inline;
  }
  .sp {
    display: none;
  }
  @media (max-width: 768px) {
    .pc {
      display: none;
    }
    .sp {
      display: initial;
    }
  }
}


.vps-trial-top-cta {
  background-color: #EFF9EB;
  padding: 60px 0;
}


.vps-what-is, .vps-use-cases {
  background-color: #EFF9EB;
}

.vps-subpage-header, .vps-server-diagnosis {
  background-image: none;
  background-color: #568F4C;
}
