/* Network Rule Popup */
.network-rule-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.network-rule-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.network-rule-popup__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.network-rule-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.network-rule-popup__header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.network-rule-popup__close {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.network-rule-popup__close:hover {
  color: #000;
}

.network-rule-popup__body {
  padding: 20px;
  max-height: calc(80vh - 80px);
  overflow-y: auto;
}
.cookie_consent-network_rule--other .cookie_consent-network_rule__content{
  height: auto!important;
}

/* モバイル対応 */
@media (max-width: 640px) {
  .network-rule-popup__content {
    width: 95%;
    max-height: 90vh;
  }

  .network-rule-popup__header {
    padding: 15px;
  }

  .network-rule-popup__header h3 {
    font-size: 18px;
  }

  .network-rule-popup__body {
    padding: 15px;
    max-height: calc(90vh - 60px);
  }
}

