@charset "UTF-8";

/* ==========================================================================
   ステップカード（3ステップ / 通信対戦 共通）
   ========================================================================== */
.c-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 86px; /* 矢印（66px）+ 余白 */
  counter-reset: none;
}
.c-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 342px;
  align-self: stretch;
  padding: 17px;
  border: 5px solid var(--c-red-light);
  background: var(--c-red);
}
/* ステップ間の矢印。left はカードの枠線（5px）の内側から測るため、
   カード間の余白の中央に置くには (余白 + 矢印幅) / 2 + 枠線 だけ左へずらす */
.c-step + .c-step::before {
  content: "";
  position: absolute;
  left: -81px; /* (86 + 66) / 2 + 5 */
  top: 50%;
  width: 66px;
  height: 66px;
  margin-top: -33px;
  background: url("../images/common/arrow_box.svg") center / contain no-repeat;
  transform: scaleX(-1);
}
.c-step__no {
  font-family: var(--f-display);
  font-size: 42px;
  line-height: .81;
  color: #ff0;
}
.c-step__ttl {
  display: grid;
  place-items: center;
  min-height: 52px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  text-align: center;
}
.c-step__img {
  width: 100%;
  aspect-ratio: 1;
  border: 4px solid #fff;
  background: #fff;
  overflow: hidden;
}
.c-step__img--dark { background: #121212; }
.c-step__img--navy { background: var(--c-navy-deep); }
.c-step__img video,
.c-step__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.c-step__text { width: 100%; font-size: 16.5px; }

.c-steps--dark .c-step {
  border-color: #454545;
  background: #000;
}

@media (max-width: 1180px) {
  .c-steps { gap: 50px; }
  .c-step { width: 30%; }
  .c-step + .c-step::before { left: -52px; /* (50 + 44) / 2 + 5 */ width: 44px; height: 44px; margin-top: -22px; }
}

@media (max-width: 767px) {
  .c-steps { flex-direction: column; gap: 22px; }
  .c-step { align-self: center; width: 100%; max-width: 320px; padding: 14px 16px 18px; }
  .c-step + .c-step::before { display: none; }
  .c-step__no { font-size: 36px; }
  .c-step__ttl { min-height: 0; font-size: 22px; }
  .c-step__text { font-size: 14px; }
}

/* ==========================================================================
   3ステップ
   ========================================================================== */
.p-steps {
  position: relative;
  padding: 80px 20px;
  background: #000;
}
.p-steps::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/howtoplay/hero_bg.png") center bottom / cover no-repeat;
  opacity: .4;
  image-rendering: pixelated;
}
.p-steps::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 3, .25);
}
.p-steps > * { position: relative; z-index: 1; }
.p-steps__ttl { width: 758px; max-width: 100%; margin: 60px auto 30px; }

@media (max-width: 767px) {
  .p-steps { padding: 40px 30px 50px; }
  .p-steps__ttl { width: 92%; margin: 40px auto 20px; }
}

/* ==========================================================================
   操作方法
   ========================================================================== */
.p-control {
  padding-top: 80px;
  background-color: var(--c-red-bg);
  background-image: url("../images/common/bg_red_lines.webp"), url("../images/common/bg_dots_overlay.webp");
  background-size: cover, cover;
  background-position: center;
}
.p-control__head {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.p-control__sub {
  padding: 5px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
}
.p-control__ttl { width: 981px; max-width: calc(100% - 40px); }
.p-control__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1388px;
  margin: 30px auto 0;
  padding: 0 20px 30px;
}
.p-control__col { display: flex; flex-direction: column; gap: 16px; }
.p-control__col--left { width: 366px; }
.p-control__col--right { width: 376px; }
.p-control__device { width: 615px; flex-shrink: 1; }

.c-key {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 10px;
  padding: 20px;
  background: rgba(0, 0, 0, .3);
}
.c-key dt { grid-column: 1; color: #ff0; }
.c-key dd { grid-column: 1; }
.c-key .c-key__icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 0;
}
.c-key__icon img {
  width: 69px;
  border-radius: 10px;
  background: #000;
}
.c-key--icon-left { grid-template-columns: auto 1fr; }
.c-key--icon-left dt,
.c-key--icon-left dd { grid-column: 2; }
.c-key--icon-left .c-key__icon { grid-column: 1; }

.p-control__inochi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px 50px;
  background: #000;
}
.p-control__inochi-img { width: 223px; height: 140px; overflow: hidden; }
.p-control__inochi-img video { width: 100%; height: 100%; object-fit: cover; }
.p-control__inochi-text {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
}
.p-control__inochi-text em {
  font-style: normal;
  font-size: 23px;
  color: #ff0;
}
.p-control__inochi-text img {
  display: inline-block;
  width: 30px;
  margin: 0 .6em 0 .3em;
  vertical-align: -4px;
}
.p-control__inochi-text a { color: #ff0; }
.p-control__inochi-text a:hover { text-decoration: none; }

@media (max-width: 1180px) {
  .p-control__body { flex-wrap: wrap; }
  .p-control__device { order: -1; width: 100%; max-width: 615px; }
}

@media (max-width: 767px) {
  .p-control { padding-top: 40px; }
  .p-control__sub { font-size: 18px; }
  .p-control__body { gap: 10px; padding: 0 16px 24px; margin-top: 16px; }
  .p-control__col { width: 100%; gap: 10px; }
  .p-control__col--left,
  .p-control__col--right { width: 100%; }
  .c-key {
    grid-template-columns: auto 1fr;
    padding: 10px 12px;
    font-size: 11px;
  }
  .c-key dt, .c-key dd { grid-column: 2; }
  .c-key .c-key__icon { grid-column: 1; }
  .c-key__icon img { width: 36px; border-radius: 6px; }
  .p-control__inochi { flex-direction: column; gap: 16px; padding: 20px; }
  .p-control__inochi-img { width: 190px; height: 190px; }
  .p-control__inochi-text { font-size: 13px; text-align: center; }
  .p-control__inochi-text em { font-size: 18px; }
}

/* ==========================================================================
   通信対戦について
   ========================================================================== */
.p-battle {
  padding: 40px 20px 80px;
  background: var(--c-navy) url("../images/top/tag_bg.png") center / cover no-repeat;
}
.p-battle__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}
.p-battle__sub {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
}
.p-battle__ttl { width: 827px; max-width: 100%; }

@media (max-width: 767px) {
  .p-battle { padding: 40px 30px 50px; }
  .p-battle__sub { font-size: 16px; }
  .p-battle__ttl { width: 96%; }
}

/* ==========================================================================
   注意事項
   ========================================================================== */
.p-notice { padding: 80px 20px 0; background: #000; }
.p-notice__box {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px 20px;
  border: 1px solid #979797;
  background: rgba(0, 0, 0, .5);
}
.p-notice__ttl {
  border-bottom: 1px solid #fff;
  font-weight: 900;
  font-size: 24px;
  line-height: 50px;
  text-align: center;
}
.p-notice__list {
  margin-top: 30px;
  color: var(--c-text-sub);
}
.p-notice__list li {
  padding-left: 1em;
  text-indent: -1em;
}
.p-notice__list li::before { content: "・"; }

@media (max-width: 767px) {
  .p-notice { padding: 40px 14px 0; }
  .p-notice__box { padding: 0 20px 20px; }
  .p-notice__ttl { font-size: 18px; line-height: 44px; }
  .p-notice__list { margin-top: 16px; font-size: 14px; }
}
