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

/* =============================================================
   仮想デスクトップ共通コンポーネント

   このファイルは仮想デスクトップフォルダ以下（desktop/）のページでのみ共通使用される
   コンポーネントを定義します。
   使用ページ: desktop/index.html, desktop/desktop-features.html, desktop/desktop-case.html
   依存: base/* を先に読み込むこと
   ※ desktop/ 以外のページからも利用されるコンポーネントは shared.css へ分離済み
   ============================================================= */

/* =============================================================
   仮想デスクトップ下層ページ共通ヘッダー
   ============================================================= */

.desktop-subpage-header {
  position: relative;
  width: 100%;
  height: 300px;
  background: #16a291;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.desktop-subpage-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding-left: 120px;
}

.desktop-subpage-header__title {
  display: flex;
  flex-direction: column;
  color: #ffffff;
  font-weight: 700;
}

.desktop-subpage-header__title-main {
  font-size: 56px;
  margin-bottom: 0;
}

.desktop-subpage-header__title-sub {
  font-size: 30px;
}

/* =============================================================
   ページ内ナビゲーション
   ============================================================= */

.page-nav {
  display: grid;
  place-items: center;
  min-height: 170px;
  background: #ffffff;
}

.page-nav__container {
  width: min(calc(100% - 60px), 1074px);
}

.page-nav__inner {
  display: grid;
  grid-template-columns: repeat(5, auto);
  align-items: center;
  justify-content: center;
  gap: 64px;
  height: 70px;
  padding-block: 16px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.page-nav__link {
  display: grid;
  grid-template-columns: auto 9px;
  align-items: center;
  gap: 19px;
  font-size: 20px;
  font-weight: 500;
  color: #111111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-nav__link::after {
  content: "";
  width: 7.2px;
  height: 11.2px;
  background: url("../../img/common/icon_arrow-black.svg") center / contain no-repeat;
}

.page-nav__link:hover {
  color: #1977f2;
}

/* =============================================================
   トライアルCTA（青背景）
   ============================================================= */

.desktop-trial-cta {
  background: url("../../img/vps/cta_background.svg") center top / cover no-repeat;
  padding-bottom: 60px;
}

.desktop-trial-cta__top {
  padding: 60px 0 40px;
  text-align: center;
}

.desktop-trial-cta__trial {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desktop-trial-cta__trial-cta {
  width: 100%;
}

.desktop-trial-cta__trial-heading {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  padding-bottom: 5px;
  border-bottom: 2px solid #ffd724;
}

.desktop-trial-cta__trial-heading strong {
  font-weight: 700;
}

.desktop-trial-cta__trial-asterisk {
  font-size: 10px;
  vertical-align: super;
  position: relative;
  top: -6px;
}

.desktop-trial-cta__trial-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  position: relative;
}

.desktop-trial-cta__trial-note::before,
.desktop-trial-cta__trial-note::after {
  content: "";
  width: 8px;
  height: 15px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.desktop-trial-cta__trial-note::before {
  background-image: url("../../img/desktop/mv-slash-right.svg");
}

.desktop-trial-cta__trial-note::after {
  background-image: url("../../img/desktop/mv-slash-left.svg");
}

.desktop-trial-cta__trial-btn {
  display: inline-grid;
  grid-template-columns: auto 21px;
  align-items: center;
  justify-content: center;
  gap: 21px;
  width: 100%;
  max-width: 442px;
  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;
}

.desktop-trial-cta__trial-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;
}

.desktop-trial-cta__trial-btn:hover {
  filter: brightness(0.9);
}

.desktop-trial-cta__trial-btn::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 14px;
  height: 24px;
  background: url("../../img/common/icon-arrow-b-white.svg") center / contain no-repeat;
}

.desktop-trial-cta__trial-footnote {
  width: 100%;
  max-width: 442px;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  text-align: right;
  margin-top: 8px;
}

.desktop-trial-cta__bottom .container {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px 80px 40px;
}

.desktop-trial-cta__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
  justify-items: center;
  max-width: 850px;
  margin: 0 auto;
}

.desktop-trial-cta__card {
  text-align: center;
  width: 100%;
  max-width: 385px;
}

.desktop-trial-cta__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #ff8802;
  margin: 0 0 20px;
}

.desktop-trial-cta__card-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 10px;
  position: relative;
}

.desktop-trial-cta__card-note::before,
.desktop-trial-cta__card-note::after {
  content: "";
  width: 8px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.desktop-trial-cta__card-note::before {
  background-image: url("../../img/desktop/mv-slash-right-black.svg");
}

.desktop-trial-cta__card-note::after {
  background-image: url("../../img/desktop/mv-slash-left-black.svg");
}

.desktop-trial-cta__card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  height: 64px;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: filter 0.2s ease;
}

.desktop-trial-cta__card-btn--orange {
  position: relative;
  background-color: #ff8802;
  background-image: url("../../img/common/icon_arrow-white.svg");
  background-position: right 24px center;
  background-repeat: no-repeat;
  background-size: 7px 12px;
  color: #ffffff;
}

.desktop-trial-cta__card-btn--orange::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 8px;
  pointer-events: none;
}

.desktop-trial-cta__card-btn--orange:hover {
  filter: brightness(0.9);
}

.desktop-trial-cta__card-btn--phone {
  background: #ffffff;
  color: #1977f2;
  font-size: 32px;
  border: 2px solid #1977f2;
  font-family: "Barlow", sans-serif;
  cursor: default;
}

/* =============================================================
   料金プラン
   ============================================================= */

/* .section-title (components/section.css) との dual-class で .section-title 側の
   margin-bottom (pages/desktop.css の duplicate 定義) に負けるため、compound selector
   で specificity を上げて勝たせる。 */
.section-title.desktop-pricing__title,
.desktop-pricing__title {
  margin-bottom: 90px;
}

.desktop-pricing {
  padding: 0px;
}

.desktop-pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 10px;
}

.desktop-pricing__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  text-align: center;
  border-left: 1px solid #dbe5f3;
  border-bottom: 1px solid #dbe5f3;
}

.desktop-pricing__card:last-child {
  border-right: 1px solid #dbe5f3;
}

.desktop-pricing__card--recommended::before {
  content: "";
  position: absolute;
  top: -7px;
  left: -7px;
  right: -7px;
  bottom: -7px;
  border: 7px solid #ffd724;
  pointer-events: none;
  z-index: 1;
  border-radius: 6px;
}

.desktop-pricing__badge {
  position: absolute;
  top: auto;
  bottom: 100%;
  margin-bottom: 0;
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffd724;
  font-size: 28px;
  font-weight: 700;
  padding: 10px;
  border-radius: 5px 5px 0 0;
  z-index: 2;
}

.desktop-pricing__header {
  padding: 16px 0;
  background: #e0edff;
}

.desktop-pricing__memory {
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}

.desktop-pricing__info {
  background: #f2f4f8;
  padding: 24px 20px;
}

.desktop-pricing__plan-name {
  font-size: 20px;
  margin: 0 0;
}

.desktop-pricing__price-label {
  font-size: 20px;
  margin-right: 4px;
}

.desktop-pricing__price-unit {
  font-size: 20px;
}

.desktop-pricing__price-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.75;
}

.desktop-pricing__specs {
  padding: 20px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 0;
  text-align: left;
}

.desktop-pricing__specs dt {
  font-size: 18px;
}

.desktop-pricing__specs dd {
  font-weight: 500;
  font-size: 18px;
  text-align: right;
}

.desktop-pricing__specs dt,
.desktop-pricing__specs dd {
  padding-bottom: 12px;
  border-bottom: 1px solid #dbe5f3;
  border-top: none;
  padding-top: 0;
  margin: 0;
}

.desktop-pricing__specs dt:last-of-type,
.desktop-pricing__specs dd:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.desktop-pricing__features {
  list-style: none;
  background: #f2f4f8;
  padding: 20px 5px;
  margin: 0 0 14px 0;
  text-align: left;
  /* 各 li (アイコン+左寄せテキスト) はそのまま、リスト全体の塊を
     横方向中央にまとめる */
  display: grid;
  justify-content: center;
}

.desktop-pricing__features li {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  margin-bottom: 8px;
}

.desktop-pricing__features li:last-child {
  margin-bottom: 0;
}

.desktop-pricing__features li img {
  margin-top: 2px;
}

.desktop-pricing__week {
  text-align: center;
  margin-top: auto;
  margin-bottom: 10px;
  font-weight: 700;
}

.desktop-pricing__features + .desktop-pricing__btn {
  margin-top: auto;
}

.desktop-pricing__btn {
  display: inline-grid;
  grid-template-columns: auto 9px;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 8px;
  width: 100%;
  max-width: 235px;
  padding: 18px 24px;
  margin: 0 20px 20px 20px;
  background: #ff8802;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 1px 2px 2px darkgrey;
}

.desktop-pricing__btn::after {
  content: "";
  width: 7.2px;
  height: 11.2px;
  background: url("../../img/common/icon_arrow-white.svg") center / contain no-repeat;
}

.desktop-pricing__btn:hover {
  background: #e67700;
  transform: translateY(-2px);
}

.desktop-pricing__desc {
  text-align: right;
  margin-bottom: 40px;
}

/* .desktop-pricing__more / .desktop-pricing__more-link は .btn-more-link__wrap / .btn-more-link へ統合（components/buttons.css）*/

/* =============================================================
   仮想デスクトップでできること / 利用シーン（複数ページ共通の親コンテナとタイトルbase）
   使用ページ: desktop-features.html, desktop-case.html
   ページ固有の余白は .page-desktop-features / .page-desktop-case でscope
   ============================================================= */

.desktop-use-cases {
  padding: 100px 0;
  background: #edfdfb;
}

.desktop-use-cases__title {
  margin-bottom: 24px;
}

/* desktop-features.html ではタイトル直下にサブタイトルが続くため詰める */

.page-desktop-features .desktop-use-cases__title {
  margin-bottom: 16px;
}

/* =============================================================
   レスポンシブ（@media 集約）
   ※ 順序: max-width 1024 → 768 → 480
   ============================================================= */

@media (max-width: 1024px) {
  .desktop-subpage-header__inner {
    padding-left: 60px;
  }

  .page-nav {
    min-height: auto;
    padding-block: 32px;
  }

  .page-nav__container {
    width: min(calc(100% - 48px), 1074px);
  }

  .page-nav__inner {
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 2.5vw, 32px);
    height: auto;
    min-height: 70px;
    padding: 17px 24px;
  }

  .desktop-pricing__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 100px 15px;
  }

  .desktop-pricing__card {
    border: 1px solid #dbe5f3;
    border-radius: 0;
  }

  /* PC base の compound selector (specificity 0,2,0) を上書きするため、
     @1024 でも compound selector を使う */
  .section-title.desktop-pricing__title,
  .desktop-pricing__title {
    margin-bottom: 40px;
  }

  .page-nav__link {
    font-size: 18px;
  }
  .desktop-trial-cta__trial-note {
    font-size: 16px;
  }
  .desktop-trial-cta__card-title {
    font-size: 20px;
  }
  .desktop-trial-cta__card-btn {
    font-size: 20px;
  }
  .desktop-trial-cta__card-btn--phone {
    font-size: 26px;
  }
  .desktop-pricing__plan-name {
    font-size: 14px;
  }
  .desktop-pricing__price-label {
    font-size: 18px;
  }
  .desktop-pricing__price-unit {
    font-size: 18px;
  }
  .desktop-pricing__specs dt {
    font-size: 18px;
  }
  .desktop-pricing__features li {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-nav__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
    height: auto;
    padding: 16px;
    margin-inline: 20px;
  }

  .desktop-trial-cta__grid {
    gap: 7px;
    padding: 0;
  }

  .desktop-subpage-header {
    height: 120px;
  }

  .desktop-subpage-header__inner {
    padding-left: 20px;
  }

  .desktop-subpage-header__title-main {
    font-size: 22px;
  }

  .desktop-subpage-header__title-sub {
    font-size: 16px;
  }

  .page-nav {
    padding-block: 24px;
  }

  .page-nav__container {
    width: 100%;
  }

  .page-nav__link {
    font-size: 16px;
    grid-template-columns: auto 9px;
    justify-content: space-between;
    gap: 8px;
  }

  .desktop-trial-cta__trial-btn::after {
    width: 9px;
    height: 14px;
  }

  .desktop-trial-cta__top {
    padding: 60px 0 20px;
  }

  .desktop-trial-cta__trial-asterisk {
    top: -2px;
  }

  .desktop-trial-cta__trial-heading {
    margin-bottom: 12px;
    padding-bottom: 12px;
    font-size: 18px;
  }

  .desktop-trial-cta__trial-note {
    gap: 8px;
    font-size: 15px;
  }

  .desktop-trial-cta__trial-btn {
    width: 327px;
    height: 64px;
    gap: 16px;
    font-size: 18px;
  }

  .desktop-trial-cta__trial-footnote {
    width: 327px;
    margin-top: 6px;
  }

  .desktop-trial-cta__bottom .container {
    padding: 24px 12px;
  }

  .desktop-trial-cta__card {
    max-width: 100%;
  }

  .desktop-trial-cta__card-title {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .desktop-trial-cta__card-note {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .desktop-trial-cta__card-btn {
    gap: 4px;
  }

  .desktop-trial-cta__card-btn {
    font-size: 14px;
    height: 52px;
    max-width: 100%;
    border-radius: 5px;
  }

  .desktop-trial-cta__card-btn.desktop-trial-cta__card-btn--phone {
    font-size: 18px;
  }

  .desktop-trial-cta__card-btn--orange::after {
    border-radius: 5px;
  }

  .desktop-trial-cta__card-btn--orange {
    background-position: right 16px center;
  }

  .desktop-trial-cta__card-btn--phone img {
    width: 18px;
    height: 18px;
  }

  .desktop-pricing {
    padding: 60px 0;
  }

  .desktop-pricing__title {
    margin-bottom: 40px;
  }

  .desktop-pricing__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 15px;
    padding: 0;
  }

  .desktop-pricing__card {
    border: 1px solid #dbe5f3;
    border-radius: 0;
  }

  .desktop-pricing__card:last-child {
    border-right: 1px solid #dbe5f3;
  }

  .desktop-pricing__badge {
    font-size: 16px;
    padding: 6px;
  }

  .desktop-pricing__header {
    padding: 5px 0;
  }

  .desktop-pricing__memory {
    font-size: 14px;
  }

  .desktop-pricing__info {
    padding: 12px 4px;
  }

  .desktop-pricing__plan-name {
    font-size: 14px;
  }

  .desktop-pricing__price-label,
  .desktop-pricing__price-unit {
    font-size: 14px;
  }

  .desktop-pricing__price-label {
    margin-right: 0;
  }

  .desktop-pricing__price-value {
    font-size: 24px;
  }

  .desktop-pricing__specs {
    padding: 12px 8px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 0;
    text-align: left;
  }

  .desktop-pricing__specs dt,
  .desktop-pricing__specs dd {
    padding-bottom: 12px;
    border-bottom: 1px solid #dbe5f3;
    border-top: none;
    padding-top: 0;
    margin: 0;
  }

  .desktop-pricing__specs dt:last-of-type,
  .desktop-pricing__specs dd:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  .desktop-pricing__specs dt {
    font-size: 12px;
    text-align: left;
  }

  .desktop-pricing__specs dd {
    font-size: 13px;
    text-align: right;
  }

  .desktop-pricing__features {
    padding: 12px 8px;
    margin-bottom: 12px;
    height: 100px;
  }

  .desktop-pricing__features li {
    font-size: 12px;
    gap: 4px;
    margin-bottom: 4px;
  }

  .desktop-pricing__card--recommended::before {
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid #ffd724;
    pointer-events: none;
    border-radius: 0;
  }

  .desktop-pricing__btn {
    max-width: 100%;
    width: calc(100% - 20px);
    font-size: 12px;
    margin: 0 8px 12px;
    padding: 14px 20px;
  }

  .desktop-pricing__desc {
    font-size: 12px;
  }

  /* .desktop-pricing__more-link SP override は components/buttons.css に移動済み */
}

@media (max-width: 480px) {
  .desktop-trial-cta__card-note {
    gap: 5px;
  }
}
