.klx-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  cursor: pointer;
}

.klx-modal-content {
  position: relative;
  background-color: #ffffff;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 32px 36px;
  box-sizing: border-box;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  cursor: default;
  border-top: 6px solid #b81c22;
}

.klx-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #666;
  cursor: pointer;
}
.klx-modal-close:hover {
  color: #000;
}

.klx-modal-header {
  text-align: center;
  margin-bottom: 18px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 14px;
}
.klx-badge {
  display: inline-block;
  background-color: #b81c22;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.klx-modal-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  color: #222;
  font-weight: bold;
}

.klx-apology {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 18px;
}
.klx-apology strong {
  color: #b81c22;
}

.klx-link-box {
  text-align: center;
  margin-bottom: 20px;
}

.klx-guide-grid {
  display: flex;
  gap: 16px;
}
.klx-guide-card {
  flex: 1;
  background-color: #f4f6f9;
  border: 1px solid #dce2ec;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.klx-guide-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #003366;
  font-weight: bold;
}
.klx-guide-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 12px;
}

/* モーダル内ボタン（枠拡大＋影） */
.klx-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 4px;
  box-sizing: border-box;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.klx-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.klx-btn-outline {
  max-width: 340px;
  border: 2px solid #333;
  color: #333;
  background-color: #fff;
}
.klx-btn-primary {
  background-color: #003366;
  color: #fff;
}

/* 右下フローティング案内 */
.klx-floating-banner {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999998;
  width: 280px;
  background-color: #ffffff;
  border: 1px solid #dce2ec;
  border-top: 4px solid #b81c22;
  border-radius: 6px;
  padding: 16px 18px;
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.klx-floating-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: bold;
  color: #b81c22;
}
.klx-floating-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

/* 右下フローティング内ボタン（枠拡大＋影） */
.klx-floating-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  text-align: center;
  background-color: #003366;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  padding: 10px 12px;
  border-radius: 4px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.klx-floating-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 51, 102, 0.25);
}

/* 「＞」をちょい動かすアニメーション */
.klx-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.klx-btn:hover .klx-arrow,
.klx-floating-btn:hover .klx-arrow {
  transform: translateX(4px);
}

.klx-floating-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #333;
  color: #fff;
  border: 2px solid #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .klx-modal-content {
    padding: 24px 18px;
  }
  .klx-modal-header h2 {
    font-size: 18px;
  }
  .klx-guide-grid {
    flex-direction: column;
  }
  .klx-floating-banner {
    width: 240px;
    padding: 12px 14px;
    bottom: 15px;
    right: 15px;
  }
}