/* ==========================================================================
   端末情報セクション (サイバーネオン ✕ モーダル表示安全化版)
   ========================================================================== */

.wimax-device-section-v2 {
  position: relative;
  background: transparent; /* 地模様（グリッド）を透過 */
  padding: 40px 0;
}

@media (min-width: 768px) {
  .wimax-device-section-v2 {
    padding: 40px 0 90px;
  }
}

/* 大見出し */
.device-section-title-v2 {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 40px;
}

.device-section-title-v2 .device-title-sub {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.guide-link-wrap {
  margin-top: 10px;
}

.device-guide-btn {
  display: inline-block;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid var(--color-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
  transition: all 0.2s ease;
}

.device-guide-btn:hover {
  background: var(--color-primary);
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.6);
}

@media (min-width: 768px) {
  .device-section-title-v2 { font-size: 40px; margin-bottom: 60px; }
  .device-guide-btn { font-size: 14px; padding: 8px 24px; }
}

/* 端末個別カードリスト */
.device-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}

.device-card-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: rgba(22, 25, 34, 0.9);
  border: 1px solid rgba(255, 107, 0, 0.3);
  /* サイバーカッティング角丸 */
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  padding: 32px 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 107, 0, 0.15);
  backdrop-filter: blur(8px);
}

.device-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, transparent 80%);
}

@media (min-width: 900px) {
  .device-card-v2 {
    display: grid;
    grid-template-columns: 52% 48%;
    align-items: center;
    gap: 20px;
    padding: 40px 36px;
  }
}

/* --- 左側：テキスト ＆ 迫力スペック --- */
.device-info-col {
  width: 100%;
}

.device-capsule-tag {
  display: inline-block;
  background: rgba(255, 107, 0, 0.2);
  border: 1px solid var(--color-primary);
  color: #ff8c00;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.device-catch-title {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 16px;
}

.wimax-text-orange {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}

.model-name-large {
  display: block;
  font-size: 24px;
  font-weight: 900;
  margin-top: 6px;
  color: #ffffff;
}

@media (min-width: 768px) {
  .device-catch-title { font-size: 24px; }
  .model-name-large { font-size: 30px; }
}

/* 回線対応バッジ */
.device-network-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.net-tag {
  background: rgba(30, 35, 48, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
}

/* 巨大スペック表示エリア */
.device-big-specs {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-group.main-speed {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 14px;
  font-weight: 900;
  color: #d0d0d0;
}

.spec-value-orange {
  font-size: 40px;
  font-weight: 900;
  color: var(--color-primary);
  font-family: 'Arial Black', sans-serif;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
}

.spec-value-orange .unit {
  font-size: 14px;
  color: #ffffff;
  font-family: sans-serif;
  margin-left: 2px;
}

@media (min-width: 768px) {
  .spec-value-orange { font-size: 72px; }
  .spec-value-orange .unit { font-size: 28px; }
}

.spec-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
}

.spec-group.sub-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-sub-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sub-label {
  font-size: 14px;
  font-weight: 700;
  color: #a0a0a0;
  min-width: 35px;
}

.sub-val-orange {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-primary);
  font-family: 'Arial Black', sans-serif;
  line-height: 1;
}

.sub-val-orange small,
.sub-val small {
  font-size: 13px;
  color: #ffffff;
  font-weight: normal;
  font-family: sans-serif;
}

.sub-val {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
}

.sub-val-multi {
  font-size: 12px;
  color: #ffffff;
  line-height: 1.2;
}

.orange-num {
  font-size: 22px;
  color: var(--color-primary);
  font-family: 'Arial Black', sans-serif;
}

/* PDF・ガイドリンク */
.device-pdf-links {
  display: flex;
  gap: 20px;
}

.device-pdf-links a {
  font-size: 13px;
  font-weight: 700;
  color: #00c6ff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.device-pdf-links a:hover {
  color: #1ad1ff;
}

/* --- 右側：ネオンステージ ＋ 巨大画像 ＋ ボタンエリア --- */
.device-visual-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.device-cyber-stage {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 160px;
  background: radial-gradient(ellipse at center, rgba(255, 107, 0, 0.3) 0%, rgba(255, 107, 0, 0.05) 50%, transparent 75%);
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 0, 0.3);
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.2);
  z-index: 1;
}

.device-large-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-large-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.9));
}

.device-large-img.img-l13 {
  height: 280px;
}

.device-large-img.img-l13 img {
  max-height: 270px;
}

@media (min-width: 768px) {
  .device-large-img { max-width: 420px; height: 280px; }
  .device-large-img.img-l13 { height: 320px; }
  .device-large-img.img-l13 img { max-height: 310px; }
}

.device-action-box {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 440px;
  margin-top: 10px;
}

.device-action-buttons {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

/* 詳細ボタン：補助導線なのでオレンジ系グラデーション */
.device-btn-cyber {
  position: relative;
  flex: 0 1 46%;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #ff9800 0%, #ff7200 48%, #ff4b00 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border-radius: 24px;
  border: 1px solid rgba(255, 190, 92, 0.72);
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -2px 0 rgba(143, 38, 0, 0.30),
    0 5px 12px rgba(0, 0, 0, 0.34),
    0 0 14px rgba(255, 100, 0, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.device-btn-cyber::before,
.device-btn-apply::before {
  content: '';
  position: absolute;
  inset: 1px 2px auto;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent);
  pointer-events: none;
}

.device-btn-cyber > *,
.device-btn-apply > * {
  position: relative;
  z-index: 1;
}

.device-btn-cyber:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -2px 0 rgba(143, 38, 0, 0.24),
    0 7px 16px rgba(0, 0, 0, 0.40),
    0 0 20px rgba(255, 111, 0, 0.56);
}

/* 今すぐ申し込む：主要CTAなのでブルー系グラデーション */
.device-btn-apply {
  position: relative;
  flex: 1 1 54%;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #00c6ff 0%, #008cff 48%, #006cff 100%);
  border: 1px solid rgba(126, 224, 255, 0.72);
  border-radius: 24px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -2px 0 rgba(0, 49, 139, 0.34),
    0 7px 14px rgba(0, 0, 0, 0.40),
    0 0 18px rgba(0, 166, 255, 0.46);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.device-btn-apply:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -2px 0 rgba(0, 49, 139, 0.25),
    0 9px 18px rgba(0, 0, 0, 0.44),
    0 0 24px rgba(0, 198, 255, 0.66);
}

.device-btn-apply-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.device-btn-apply:hover .device-btn-apply-arrow {
  transform: translateX(2px);
}

.arrow-circle {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

@media (max-width: 420px) {
  .device-action-buttons {
    gap: 8px;
  }

  .device-btn-cyber,
  .device-btn-apply {
    padding-left: 10px;
    padding-right: 10px;
  }

  .device-btn-cyber {
    font-size: 13px;
  }

  .device-btn-apply {
    font-size: 14px;
  }
}

.device-card-notes {
  margin-top: 10px;
  background: rgba(15, 17, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: 6px;
}

.device-card-notes p {
  font-size: 10px;
  color: var(--color-text-sub);
  line-height: 1.4;
  margin: 2px 0;
}

/* --- モーダル表示強制上書きCSS --- */
.wimax-modal.is-open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 99999 !important;
}

.modal-container-wide {
  max-width: 680px !important;
}

.device-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.device-spec-table th,
.device-spec-table td {
  padding: 10px 12px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.device-spec-table th {
  width: 32%;
  background-color: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  font-weight: 700;
  text-align: left;
}

.device-spec-table td {
  color: #ffffff;
}

.modal-note-bottom {
  font-size: 11px;
  color: var(--color-text-sub);
  margin-top: 12px;
}