/* プランモーダル用CSS */

/* モーダルオーバーレイ */
.plan-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.plan-modal-overlay.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

/* モーダルコンテンツ */
.plan-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.plan-modal-overlay.active .plan-modal-content {
  transform: scale(1);
}

/* モーダルヘッダー */
.plan-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.plan-modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.plan-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.plan-modal-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* プラン詳細コンテンツ */
.plan-details {
  margin-bottom: 25px;
}

.plan-price {
  font-size: 28px;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 15px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 15px;
  border-radius: 8px;
}

.plan-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
  font-weight: normal;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 25px;
}

.plan-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
  font-size: 16px;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-requirements {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
}

.plan-requirements h4 {
  color: #856404;
  margin: 0 0 10px 0;
  font-size: 16px;
}

.plan-requirements ul {
  margin: 0;
  padding-left: 20px;
}

.plan-requirements li {
  color: #856404;
  font-size: 14px;
  margin-bottom: 5px;
}

.plan-benefits {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
}

.plan-benefits h4 {
  color: #0c5460;
  margin: 0 0 10px 0;
  font-size: 16px;
}

.plan-benefits ul {
  margin: 0;
  padding-left: 20px;
}

.plan-benefits li {
  color: #0c5460;
  font-size: 14px;
  margin-bottom: 5px;
}

/* モーダルフッター */
.plan-modal-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.plan-select-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.plan-select-btn:hover {
  background: linear-gradient(135deg, #2980b9, #1f5f8b);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.plan-select-btn:active {
  transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .plan-modal-content {
    width: 95%;
    padding: 20px;
    margin: 10px;
  }

  .plan-modal-title {
    font-size: 20px;
  }

  .plan-price {
    font-size: 24px;
  }

  .plan-select-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .plan-modal-content {
    padding: 15px;
  }

  .plan-modal-title {
    font-size: 18px;
  }

  .plan-price {
    font-size: 20px;
  }

  .plan-description {
    font-size: 14px;
  }
}

/* アニメーション */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.plan-modal-overlay.active .plan-modal-content {
  animation: modalFadeIn 0.3s ease;
}

/* スクロールバーのスタイリング */
.plan-modal-content::-webkit-scrollbar {
  width: 8px;
}

.plan-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.plan-modal-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.plan-modal-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
