/* =====================================================
   Bring Your Device Page
===================================================== */

/* ---- Hero (company-hero と統一) ---- */
.byod-hero {
  background: linear-gradient(135deg, #0d1b35 0%, #1a3a6b 60%, #2563a8 100%);
  border-radius: 12px;
  padding: 52px 48px 48px;
  color: #fff;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.byod-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.byod-hero::after {
  content: '';
  position: absolute;
  right: 60px; bottom: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.byod-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; border-radius: 20px; padding: 5px 14px; margin-bottom: 16px;
}
.byod-hero h1 {
  font-size: 32px; font-weight: 800;
  margin: 0 0 10px; line-height: 1.2;
}
.byod-hero-sub {
  font-size: 15px; opacity: .85;
  margin: 0; max-width: 560px; line-height: 1.7;
}
@media(max-width:767px){
  .byod-hero { padding: 32px 22px 28px; border-radius: 8px; }
  .byod-hero h1 { font-size: 22px; }
}

/* ---- Section title ---- */
.byod-section-title {
  font-size: 20px; font-weight: 800; color: #0f172a;
  margin: 0 0 20px;
  display: flex; align-items: center; gap: 10px;
}
.byod-section-title::before {
  content: ''; display: inline-block;
  width: 4px; height: 22px; background: #1a3a6b; border-radius: 2px;
}

/* ---- Notice card ---- */
.byod-notice {
  background: #eff6ff; border: 1.5px solid #bfdbfe;
  border-radius: 12px; padding: 18px 22px;
  font-size: 14px; color: #1e40af; line-height: 1.7;
  margin-bottom: 36px;
}
.byod-notice i { margin-right: 6px; }
.byod-notice strong { font-weight: 800; }

/* ---- Band table ---- */
.byod-band-section { padding: 48px 0 32px; }
.byod-band-table-wrap {
  border-radius: 12px; overflow: hidden;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  margin-bottom: 16px;
}
table.byod-band-table {
  width: 100%; border-collapse: collapse; font-size: 14px; background: #fff;
}
.byod-band-table thead tr { background: #1a3a6b; }
.byod-band-table thead th {
  color: #fff; font-weight: 700; padding: 13px 18px;
  text-align: left; font-size: 13px; border: none;
}
.byod-band-table tbody tr { border-bottom: 1px solid #f1f5f9; }
.byod-band-table tbody tr:hover { background: #f8fafc; }
.byod-band-table tbody td { padding: 12px 18px; color: #334155; }
.byod-band-table tbody td:first-child { font-weight: 700; color: #1a3a6b; }
.byod-band-table .net-tag {
  display: inline-block; background: #eff6ff; color: #1d4ed8;
  border-radius: 4px; padding: 2px 7px; font-size: 11px; font-weight: 700;
  margin: 2px 2px 0 0;
}

/* ---- Search section ---- */
.byod-search-section { padding: 0 0 48px; }
.byod-search-card {
  background: #fff; border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  padding: 32px 36px;
}
@media(max-width:767px){ .byod-search-card { padding: 24px 20px; } }

.byod-search-box {
  display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap;
}
.byod-search-input {
  flex: 1; min-width: 220px;
  border: 2px solid #cbd5e1; border-radius: 10px;
  padding: 12px 16px; font-size: 15px; outline: none;
  transition: border-color .15s;
}
.byod-search-input:focus { border-color: #1a3a6b; }
.byod-search-btn {
  background: linear-gradient(135deg, #1a3a6b, #2563a8);
  color: #fff; border: none; border-radius: 10px;
  padding: 12px 28px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity .15s, transform .15s;
  white-space: nowrap;
}
.byod-search-btn:hover { opacity: .88; transform: translateY(-1px); }
.byod-search-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.byod-search-hint {
  font-size: 12px; color: #94a3b8; margin-top: 8px;
}

/* ---- Result table ---- */
.byod-result-section { margin-top: 24px; display: none; }
.byod-result-table-wrap {
  border-radius: 12px; overflow: hidden;
  border: 1.5px solid #e2e8f0;
}
table.byod-result-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.byod-result-table thead tr { background: #1a3a6b; }
.byod-result-table thead th {
  color: #fff; font-weight: 700; padding: 12px 16px; font-size: 13px; border: none;
}
.byod-result-table tbody tr { border-bottom: 1px solid #f1f5f9; }
.byod-result-table tbody tr:hover { background: #f8fafc; }
.byod-result-table tbody td { padding: 12px 16px; color: #334155; }
.compatible-yes {
  display: inline-flex; align-items: center; gap: 6px;
  color: #16a34a; font-weight: 700;
}
.compatible-no {
  display: inline-flex; align-items: center; gap: 6px;
  color: #dc2626; font-weight: 700;
}
.byod-select-plan-link {
  display: inline-block; margin-left: 10px;
  background: #1a3a6b; color: #fff;
  border-radius: 6px; padding: 4px 12px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  transition: background .15s;
}
.byod-select-plan-link:hover { background: #2563a8; color: #fff; text-decoration: none; }

.byod-msg { padding: 16px 0; font-size: 14px; color: #64748b; }
.byod-searching { color: #1a3a6b; }

/* ---- CTA ---- */
.byod-cta {
  background: linear-gradient(135deg, #0d1b35, #1a3a6b);
  border-radius: 16px; padding: 36px 32px;
  text-align: center; margin: 40px 0 60px; color: #fff;
}
.byod-cta h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.byod-cta p { font-size: 14px; opacity: .85; margin: 0 0 22px; }
.byod-cta-btn {
  display: inline-block; background: #e53e3e; color: #fff;
  font-weight: 800; font-size: 15px; border-radius: 10px;
  padding: 13px 30px; text-decoration: none;
  transition: background .15s, transform .15s;
}
.byod-cta-btn:hover { background: #c53030; color: #fff; text-decoration: none; transform: translateY(-2px); }
