@charset "UTF-8";
/**
 * css/bto-desktop/bto_desktop_base.css - デスクトップPC（/bto-desktop/・office/・compact/・guide/）共通の部品
 * テンプレート: app/templates/bto-desktop/（接頭辞 bd-。グローバル CSS は上書きしない）
 * css/bto-pc/bto_hub_base.css と同じ部品を接頭辞だけ変えて持つ（ページごとに独立して直せるよう共有しない）
 *
 * @changelog
 *   2026-11-11  AI(Cursor)  初版作成
 *   2026-11-11  AI(Cursor)  /bto/ から /bto-pc/ へ移動（商品ページ bto.cgi の /bto/ とぶつかるため）
 */

.bd-page {
  --bd-brand: var(--main-key-cl, #004896);
  --bd-brand-2: var(--main-key-cl-2, #006dcc);
  --bd-navy: #0b1d3a;
  --bd-navy-2: #10284d;
  --bd-cyan: #6cc4ff;
  --bd-ink: #1b2430;
  --bd-ink-soft: #3a4553;
  --bd-muted: #4f5b69;
  --bd-line: #d5dce5;
  --bd-line-strong: #b9c4d2;
  --bd-tint: #f2f5f9;
  --bd-white: #ffffff;
  --bd-sale: #bd2222;
  --bd-ok: #1d7a46;
  --bd-radius: 10px;
  --bd-wrap: 1348px;
  color: var(--bd-ink);
  font-size: 16px;
  line-height: 1.8;
  line-break: strict;
  overflow-wrap: anywhere;
}

.bd-page *,
.bd-page *::before,
.bd-page *::after {
  box-sizing: border-box;
}

.bd-page p,
.bd-page li,
.bd-page dd,
.bd-page td {
  text-wrap: pretty;
}

.bd-page h1,
.bd-page h2,
.bd-page h3,
.bd-page h4 {
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
  word-break: auto-phrase;
  overflow-wrap: normal;
}

/* 余白のリセットはクラス 1 個分の詳細度に抑え、後に書く部品側（.bd-note など）の margin を優先させる */
.bd-page :where(h1, h2, h3, h4, p) {
  margin: 0;
}

.bd-page :where(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bd-page img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.bd-page a {
  color: var(--bd-brand);
}

.bd-page a:focus-visible,
.bd-page summary:focus-visible {
  outline: 3px solid var(--bd-brand-2);
  outline-offset: 3px;
}

.bd-wrap {
  width: 100%;
  max-width: var(--bd-wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.bd-phrase {
  display: inline-block;
}

.bd-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.bd-icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.bd-icon--sm {
  width: 18px;
  height: 18px;
}

.bd-icon--lg {
  width: 36px;
  height: 36px;
  stroke-width: 1.4;
}

/* ---------- ボタン・リンク ---------- */
.bd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}

.bd-page .bd-btn--primary {
  background: var(--bd-brand-2);
  border-color: var(--bd-brand-2);
  color: var(--bd-white);
}

.bd-page .bd-btn--primary:hover {
  background: var(--bd-brand);
  border-color: var(--bd-brand);
}

.bd-page .bd-btn--outline {
  background: var(--bd-white);
  border-color: var(--bd-brand);
  color: var(--bd-brand);
}

.bd-page .bd-btn--outline:hover {
  background: var(--bd-tint);
}

.bd-page .bd-btn--outline-light {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .85);
  color: var(--bd-white);
}

.bd-page .bd-btn--outline-light:hover {
  background: rgba(255, 255, 255, .16);
}

.bd-btn--lg {
  min-height: 56px;
  padding: 12px 32px;
  font-size: 17px;
}

.bd-btn--block {
  display: flex;
  width: 100%;
}

.bd-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bd-link-arrow::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* ---------- ヒーロー ---------- */
.bd-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.bd-hero__bg img {
  display: block;
  width: 100%;
}

.bd-hero__inner {
  position: relative;
  z-index: 1;
}

.bd-hero__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  word-break: auto-phrase;
}

.bd-hero__title {
  font-size: clamp(32px, 3.3vw, 50px);
  letter-spacing: .02em;
}

.bd-hero__title-sub {
  display: block;
  margin-top: 8px;
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 700;
  letter-spacing: 0;
}

.bd-hero__lead {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.85;
}

.bd-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.bd-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 14px;
}

.bd-hero__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.bd-hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bd-hero__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.bd-hero__facts strong {
  font-weight: 700;
}

.bd-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 18px;
  font-size: 16px;
}

/* 暗い背景のヒーロー（/bto-pc/・/bto-pc/customize/） */
.bd-hero--dark {
  background: var(--bd-navy);
  color: var(--bd-white);
}

.bd-hero--dark .bd-hero__eyebrow {
  background: rgba(108, 196, 255, .14);
  color: #cfe9ff;
}

.bd-hero--dark .bd-hero__lead {
  color: #e3ebf5;
}

.bd-hero--dark .bd-hero__links a {
  color: var(--bd-white);
}

.bd-hero--dark .bd-hero__facts li {
  background: rgba(9, 22, 46, .78);
  border: 1px solid rgba(108, 196, 255, .28);
  color: #e8f0fa;
}

.bd-hero--dark .bd-hero__facts .bd-icon {
  color: var(--bd-cyan);
}

.bd-hero--dark .bd-hero__meta {
  color: #d4deea;
}

/* 明るい背景のヒーロー（/bto-pc/choose/） */
.bd-hero--light {
  background: #eef3f9;
  color: var(--bd-ink);
}

.bd-hero--light .bd-hero__eyebrow {
  background: var(--bd-brand);
  color: var(--bd-white);
}

.bd-hero--light .bd-hero__title {
  color: var(--bd-navy);
}

.bd-hero--light .bd-hero__lead {
  color: var(--bd-ink-soft);
}

.bd-hero--light .bd-hero__links a {
  color: var(--bd-brand);
}

.bd-hero--light .bd-hero__meta {
  color: var(--bd-muted);
}

@media (min-width: 900px) {
  .bd-hero {
    min-height: clamp(560px, 42vw, 760px);
    display: flex;
  }

  .bd-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
  }

  .bd-hero__bg img {
    height: 100%;
    object-fit: cover;
    object-position: 72% 50%;
  }

  .bd-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
  }

  .bd-hero--dark::after {
    background: linear-gradient(90deg, rgba(7, 18, 40, .9) 0%, rgba(7, 18, 40, .72) 34%, rgba(7, 18, 40, 0) 58%);
  }

  .bd-hero--light::after {
    background: linear-gradient(90deg, rgba(244, 248, 252, .94) 0%, rgba(244, 248, 252, .8) 36%, rgba(244, 248, 252, 0) 60%);
  }

  .bd-hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .bd-hero__panel {
    max-width: 540px;
  }
}

/* 超ワイド: 横幅いっぱいに拡大すると上下が大きく切れて商品が見切れるため、高さに合わせて
   共通ヘッダと同じ 1300px の枠の右端に置き、左右の端を背景色へなじませる */
@media (min-width: 1680px) {
  .bd-hero__bg img {
    position: absolute;
    top: 0;
    right: calc((100% - 1300px) / 2);
    width: auto;
    max-width: 1300px;
    height: 100%;
    object-fit: cover;
    object-position: 100% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 88%, transparent 100%);
  }
}

/* 中間幅: 商品写真を右へ寄せ、文字の列を狭める（写真と文字を重ねない） */
@media (max-width: 1279px) and (min-width: 900px) {
  .bd-hero__bg {
    left: 20%;
  }

  .bd-hero__bg img {
    object-position: 100% 50%;
  }

  .bd-hero--dark::after {
    background: linear-gradient(90deg, rgba(7, 18, 40, 1) 0%, rgba(7, 18, 40, .92) 30%, rgba(7, 18, 40, 0) 50%);
  }

  .bd-hero--light::after {
    background: linear-gradient(90deg, rgba(244, 248, 252, 1) 0%, rgba(244, 248, 252, .92) 30%, rgba(244, 248, 252, 0) 50%);
  }

  .bd-hero__panel {
    max-width: 440px;
  }

  .bd-hero__facts {
    grid-template-columns: repeat(2, minmax(0, 300px));
  }
}

@media (max-width: 899px) {
  .bd-hero__bg img {
    aspect-ratio: 828 / 520;
    object-fit: cover;
  }

  .bd-hero__inner {
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .bd-hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .bd-hero__cta .bd-btn {
    flex: 1 1 220px;
  }
}

@media (max-width: 479px) {
  .bd-hero__facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 374px) {
  .bd-hero__eyebrow {
    padding: 4px 10px;
    letter-spacing: 0;
  }

  .bd-hero__title {
    font-size: 24px;
    letter-spacing: 0;
  }
}

/* ---------- セクション ---------- */
.bd-section {
  padding: 80px 0;
}

.bd-section--tint {
  background: var(--bd-tint);
}

.bd-section--navy {
  background: var(--bd-navy);
  color: #e6edf6;
}

.bd-section__head {
  max-width: 820px;
  margin-bottom: 40px;
}

.bd-eyebrow {
  margin-bottom: 8px;
  color: var(--bd-brand-2);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
}

.bd-section__title {
  color: var(--bd-navy);
  font-size: clamp(26px, 2.4vw, 36px);
}

.bd-section__lead {
  margin-top: 14px;
  color: var(--bd-ink-soft);
  font-size: 17px;
}

.bd-section--navy .bd-eyebrow {
  color: var(--bd-cyan);
}

.bd-section--navy .bd-section__title {
  color: var(--bd-white);
}

.bd-section--navy .bd-section__lead {
  color: #d4deea;
}

.bd-note {
  margin-top: 20px;
  color: var(--bd-muted);
  font-size: 16px;
}

.bd-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--bd-line-strong);
  border-radius: 4px;
  background: var(--bd-white);
  color: var(--bd-ink-soft);
  font-size: 16px;
  line-height: 1.6;
  white-space: nowrap;
}

.bd-notice {
  padding: 24px;
  border: 1px solid #e3b5b5;
  border-left: 4px solid var(--bd-sale);
  border-radius: 8px;
  background: #fff6f6;
}

.bd-notice__title {
  font-weight: 700;
}

@media (max-width: 767px) {
  .bd-section {
    padding: 56px 0;
  }

  .bd-section__head {
    margin-bottom: 28px;
  }
}

/* ---------- 商品カード ---------- */
.bd-card {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius);
  background: var(--bd-white);
}

.bd-card__media {
  display: block;
  align-self: start;
  border-radius: 8px;
  background: var(--bd-tint);
}

.bd-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.bd-card__case {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--bd-muted);
  font-size: 16px;
  line-height: 1.5;
}

.bd-card__case-size {
  padding: 0 8px;
  border-radius: 4px;
  background: var(--bd-tint);
  color: var(--bd-ink-soft);
  font-weight: 700;
}

.bd-card__name {
  margin-top: 2px;
  font-size: 20px;
}

.bd-card__name a {
  display: block;
  min-height: 44px;
  padding: 8px 0;
  color: var(--bd-navy);
  text-decoration: none;
}

.bd-card__name a:hover {
  text-decoration: underline;
}

.bd-spec {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
}

.bd-spec__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  font-size: 16px;
  line-height: 1.55;
}

.bd-spec__row dt {
  color: var(--bd-muted);
  font-weight: 700;
}

.bd-spec__row dd {
  margin: 0;
}

.bd-price {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--bd-line);
}

.bd-price__sale {
  color: var(--bd-sale);
  font-size: 16px;
  font-weight: 700;
}

.bd-price__main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 4px;
  color: var(--bd-ink);
}

.bd-price__num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.bd-price__unit {
  font-size: 18px;
  font-weight: 700;
}

.bd-price__tax {
  margin-left: 4px;
  color: var(--bd-muted);
  font-size: 16px;
}

.bd-price__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  color: var(--bd-ink-soft);
  font-size: 16px;
}

.bd-price__pay strong {
  color: var(--bd-ink);
  font-size: 18px;
}

.bd-price__pay span {
  color: var(--bd-ok);
  font-weight: 700;
}

.bd-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.bd-card__meta li {
  padding: 0 8px;
  border: 1px solid var(--bd-line);
  border-radius: 4px;
  color: var(--bd-ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.bd-card__actions {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: 16px;
}

.bd-card__sub {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (max-width: 599px) {
  .bd-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .bd-card__media {
    max-width: 240px;
    width: 100%;
    justify-self: center;
  }
}

/* ---------- 表 ---------- */
.bd-table-wrap {
  overflow-x: auto;
}

.bd-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--bd-line);
  border-radius: var(--bd-radius);
  background: var(--bd-white);
  font-size: 16px;
  line-height: 1.65;
}

.bd-table th,
.bd-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--bd-line);
  text-align: left;
  vertical-align: top;
}

.bd-table tbody tr:last-child th,
.bd-table tbody tr:last-child td {
  border-bottom: 0;
}

.bd-table thead th {
  background: var(--bd-tint);
  color: var(--bd-navy);
  font-weight: 700;
}

.bd-table tbody th {
  color: var(--bd-ink);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- パーツの場所の図 ---------- */
.bd-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 0;
}

.bd-map__photo {
  position: relative;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}

.bd-map__photo img {
  display: block;
  width: 100%;
}

.bd-map__pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 2px solid var(--bd-white);
  border-radius: 50%;
  background: var(--bd-brand-2);
  box-shadow: 0 0 0 4px rgba(0, 109, 204, .35);
  color: var(--bd-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.bd-map__pin--fan { top: 16%; left: 51%; }
.bd-map__pin--cooler { top: 37%; left: 41%; }
.bd-map__pin--memory { top: 28%; left: 64%; }
.bd-map__pin--board { top: 47%; left: 72%; }
.bd-map__pin--gpu { top: 61%; left: 51%; }
.bd-map__pin--psu { top: 82%; left: 31%; }

.bd-map__list {
  display: grid;
  gap: 8px;
}

.bd-map__list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--bd-line);
  border-radius: 8px;
  background: var(--bd-white);
  color: var(--bd-ink);
  text-decoration: none;
  transition: border-color .15s;
}

.bd-map__list a:hover {
  border-color: var(--bd-brand-2);
}

.bd-map__num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bd-brand-2);
  color: var(--bd-white);
  font-weight: 700;
  line-height: 1;
}

.bd-map__name {
  font-weight: 700;
  line-height: 1.5;
}

.bd-map__role {
  color: var(--bd-muted);
  font-size: 16px;
  line-height: 1.5;
}

.bd-map__note {
  margin-top: 12px;
  color: var(--bd-muted);
  font-size: 16px;
}

@media (max-width: 767px) {
  .bd-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-map__photo {
    max-width: 360px;
  }

  .bd-map__pin {
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
  }
}

/* ---------- 3 ページの相互リンク ---------- */
.bd-guide-nav {
  margin-top: 56px;
}

.bd-guide-nav__title {
  margin-bottom: 16px;
  color: var(--bd-navy);
  font-size: 22px;
}

.bd-guide-nav__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bd-guide-nav__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--bd-line);
  border-top: 4px solid var(--bd-brand-2);
  border-radius: 8px;
  background: var(--bd-white);
  color: var(--bd-ink);
  text-decoration: none;
}

a.bd-guide-nav__link:hover {
  border-color: var(--bd-brand-2);
}

.bd-guide-nav__label {
  color: var(--bd-brand);
  font-size: 18px;
  font-weight: 700;
}

.bd-guide-nav__text {
  color: var(--bd-ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.bd-guide-nav__item.is-current .bd-guide-nav__link {
  border-top-color: var(--bd-line-strong);
  background: var(--bd-tint);
}

.bd-guide-nav__item.is-current .bd-guide-nav__label {
  color: var(--bd-ink);
}

.bd-guide-nav__here {
  align-self: flex-start;
  margin-top: 4px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--bd-ink-soft);
  color: var(--bd-white);
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 899px) {
  .bd-guide-nav__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 最終CTA ---------- */
.bd-final__box {
  padding: 48px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--bd-navy) 0%, var(--bd-navy-2) 60%, #123a6e 100%);
  color: var(--bd-white);
  text-align: center;
}

.bd-final__title {
  font-size: clamp(24px, 2.2vw, 32px);
}

.bd-final__text {
  max-width: 720px;
  margin: 14px auto 0;
  color: #dbe5f1;
}

.bd-final__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.bd-final__cta .bd-btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .85);
  color: var(--bd-white);
}

.bd-final__cta .bd-btn--outline:hover {
  background: rgba(255, 255, 255, .14);
}

@media (max-width: 599px) {
  .bd-final__box {
    padding: 32px 20px;
  }

  .bd-final__cta .bd-btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bd-page * {
    transition: none !important; /* 動きを減らす設定を優先する（ページ内の transition をまとめて止める） */
  }
}
