/* Promptpedia Service Pages - Unified Design System */
/* Aligns with Master-of-css.md design philosophy */

/* Import Promptpedia Typography */
body {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Base Layout */
.service-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Helvetica Neue', sans-serif;
}

.service-content {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(54, 196, 183, 0.1);
  min-height: 400px;
  border: 1px solid rgba(54, 196, 183, 0.1);
}

/* Typography Hierarchy */
.service-content h1 {
  color: #2c3e50;
  margin-bottom: 32px;
  font-size: 32px;
  font-weight: 600;
  border-bottom: 3px solid #36C4B7;
  padding-bottom: 16px;
}

.service-content h2 {
  color: #36C4B7;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
  position: relative;
  padding-left: 16px;
}

.service-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: #36C4B7;
  border-radius: 2px;
}

.service-content h3 {
  color: #2c3e50;
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 500;
}

.service-content p {
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555;
  font-size: 16px;
}

.service-content ul, 
.service-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.service-content li {
  margin-bottom: 12px;
  color: #555;
  line-height: 1.6;
}

/* Unified Card System */
.promptpedia-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(54, 196, 183, 0.08);
  border: 1px solid rgba(54, 196, 183, 0.15);
  transition: all 0.3s ease;
}

.promptpedia-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(54, 196, 183, 0.15);
}

/* Information Boxes - Unified Design */
.info-box {
  background: linear-gradient(135deg, rgba(54, 196, 183, 0.05), rgba(54, 196, 183, 0.02));
  border: 1px solid rgba(54, 196, 183, 0.2);
  border-left: 4px solid #36C4B7;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  position: relative;
}

.success-box {
  background: linear-gradient(135deg, rgba(54, 196, 183, 0.08), rgba(54, 196, 183, 0.03));
  border: 1px solid rgba(54, 196, 183, 0.3);
  border-left: 4px solid #36C4B7;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  position: relative;
}

.success-box::before {
  content: '✅';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 18px;
}

.warning-box {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 193, 7, 0.03));
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-left: 4px solid #ffc107;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  position: relative;
}

.danger-box {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.08), rgba(220, 53, 69, 0.03));
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-left: 4px solid #dc3545;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  position: relative;
}

/* Replace all colored boxes with unified design */
.info-green-box, .info-blue-box, .info-red-box, 
.info-orange-box, .info-yellow-box, .info-gray-box {
  background: linear-gradient(135deg, rgba(54, 196, 183, 0.05), rgba(54, 196, 183, 0.02));
  border: 1px solid rgba(54, 196, 183, 0.2);
  border-left: 4px solid #36C4B7;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.info-green-box:hover, .info-blue-box:hover, .info-red-box:hover,
.info-orange-box:hover, .info-yellow-box:hover, .info-gray-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(54, 196, 183, 0.12);
}

/* Company Info Box */
.company-info-box {
  background: white;
  border: 1px solid rgba(54, 196, 183, 0.2);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: 0 4px 20px rgba(54, 196, 183, 0.1);
  position: relative;
  overflow: hidden;
}

.company-info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #36C4B7, #2BA89A, #36C4B7);
}

/* Section Titles */
.section-title {
  color: #36C4B7;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  border-bottom: 2px solid rgba(54, 196, 183, 0.2);
  padding-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #36C4B7;
  border-radius: 1px;
}

/* Modern Table Design */
.service-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(54, 196, 183, 0.08);
  border: 1px solid rgba(54, 196, 183, 0.15);
}

.service-table th {
  background: linear-gradient(135deg, #36C4B7, #2BA89A);
  color: white;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(54, 196, 183, 0.1);
  vertical-align: top;
}

.service-table tr:nth-child(even) {
  background: rgba(54, 196, 183, 0.02);
}

.service-table tr:hover {
  background: rgba(54, 196, 183, 0.05);
  transition: background-color 0.3s ease;
}

.label-cell {
  font-weight: 600;
  color: #36C4B7;
  background: rgba(54, 196, 183, 0.05) !important;
  width: 30%;
}

/* Refund Grid Layout */
.refund-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.refund-partial-box, .refund-full-box {
  background: white;
  border: 2px solid rgba(54, 196, 183, 0.2);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.refund-partial-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #36C4B7, #2BA89A);
  border-radius: 12px 12px 0 0;
}

.refund-full-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffc107, #ffb300);
  border-radius: 12px 12px 0 0;
}

.refund-partial-box:hover, .refund-full-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(54, 196, 183, 0.15);
}

/* Text Colors - Unified */
.text-success {
  color: #36C4B7;
  font-weight: 500;
}

.text-info {
  color: #36C4B7;
  font-weight: 500;
}

.text-danger {
  color: #dc3545;
  font-weight: 500;
}

.text-warning {
  color: #ffc107;
  font-weight: 500;
}

.text-muted {
  color: #6c757d;
  font-size: 14px;
}

/* Links */
.contact-link {
  color: #36C4B7;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.contact-link:hover {
  color: #2BA89A;
  border-bottom-color: #36C4B7;
}

/* Process Box */
.process-box {
  background: linear-gradient(135deg, rgba(54, 196, 183, 0.05), rgba(54, 196, 183, 0.02));
  border: 1px solid rgba(54, 196, 183, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

/* FAQ Section */
.faq-section {
  margin-bottom: 32px;
}

.faq-section h3 {
  color: #36C4B7;
  border-left: 4px solid #36C4B7;
  padding-left: 16px;
  margin-bottom: 16px;
}

/* Privacy Security Box */
.privacy-security-box {
  background: white;
  border: 2px solid rgba(54, 196, 183, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  position: relative;
}

/* Utility Classes */
.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .service-container {
    padding: 16px;
  }
  
  .service-content {
    padding: 24px;
    border-radius: 12px;
  }
  
  .service-content h1 {
    font-size: 28px;
    margin-bottom: 24px;
  }
  
  .service-content h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 16px;
  }
  
  .company-info-box {
    padding: 20px;
    margin: 20px 0;
  }
  
  .refund-grid {
    grid-template-columns: 1fr;
  }
  
  .service-table {
    font-size: 14px;
  }
  
  .service-table th,
  .service-table td {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .service-content {
    padding: 16px;
  }
  
  .service-content h1 {
    font-size: 24px;
  }
  
  .service-content h2 {
    font-size: 18px;
  }
  
  .info-box::before,
  .success-box::before,
  .warning-box::before,
  .danger-box::before {
    display: none;
  }
}

/* Legacy support for old table styles */
.refund-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(54, 196, 183, 0.08);
  border: 1px solid rgba(54, 196, 183, 0.15);
}

.refund-table th {
  background: linear-gradient(135deg, #36C4B7, #2BA89A);
  color: white;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.refund-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(54, 196, 183, 0.1);
  vertical-align: top;
}

.refund-table tr:nth-child(even) {
  background: rgba(54, 196, 183, 0.02);
}

.refund-table tr:hover {
  background: rgba(54, 196, 183, 0.05);
  transition: background-color 0.3s ease;
}

.refund-table .table-header {
  background: linear-gradient(135deg, #36C4B7, #2BA89A);
}

.refund-table .table-cell-header,
.refund-table .table-cell-header-last {
  background: linear-gradient(135deg, #36C4B7, #2BA89A);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* List Styles - Unified */
.colored-list {
  padding-left: 24px;
  margin-bottom: 20px;
}

.colored-list li {
  margin-bottom: 8px;
  color: #555;
  line-height: 1.6;
}

.success-list, .danger-list, .info-list {
  padding-left: 24px;
  margin-bottom: 20px;
}

.success-list li, .danger-list li, .info-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Flex Container - Unified */
.flex-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.flex-item, .flex-item-blue, .flex-item-orange {
  background: white;
  border: 2px solid rgba(54, 196, 183, 0.2);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.flex-item::before, .flex-item-blue::before, .flex-item-orange::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #36C4B7, #2BA89A);
  border-radius: 12px 12px 0 0;
}

.flex-item:hover, .flex-item-blue:hover, .flex-item-orange:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(54, 196, 183, 0.15);
}

/* Grid Layout - Unified */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.grid-item {
  background: white;
  border: 1px solid rgba(54, 196, 183, 0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #36C4B7, #2BA89A);
  border-radius: 12px 12px 0 0;
}

.grid-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(54, 196, 183, 0.12);
}

.grid-item h4 {
  color: #36C4B7;
  margin-bottom: 12px;
  font-size: 1.1em;
  font-weight: 600;
}

.grid-item p {
  color: #555;
  font-size: 0.9em;
  line-height: 1.6;
}

/* Policy Section - Unified */
.policy-section {
  background: linear-gradient(135deg, rgba(54, 196, 183, 0.08), rgba(54, 196, 183, 0.03));
  border: 1px solid rgba(54, 196, 183, 0.3);
  border-left: 4px solid #36C4B7;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.policy-section h3 {
  color: #36C4B7;
  margin-bottom: 16px;
  font-weight: 600;
}

/* 特別なマージンとパディング */
.mb-8 {
  margin-bottom: 8px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

/* Pricing Plans Section */
.pricing-container {
  display: flex;
  gap: 24px;
  margin: 32px 0;
  flex-wrap: wrap;
}

/* Free Plan Card */
.plan-card-free {
  flex: 1;
  min-width: 300px;
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  border: 2px solid #28a745;
}

.plan-card-free .plan-header {
  text-align: center;
  margin-bottom: 20px;
}

.plan-card-free .plan-title {
  color: #28a745;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 600;
}

.plan-card-free .plan-price {
  font-size: 32px;
  font-weight: bold;
  color: #28a745;
}

.plan-card-free .plan-period {
  color: #666;
  font-size: 14px;
}

.plan-card-free .plan-features-title {
  margin-bottom: 16px;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.plan-card-free .plan-features {
  margin-bottom: 24px;
  padding-left: 20px;
}

.plan-card-free .plan-features li {
  margin-bottom: 8px;
  color: #555;
  line-height: 1.5;
}

.plan-card-free .plan-status {
  text-align: center;
}

.plan-card-free .plan-button {
  background: #28a745;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* Premium Plan Card */
.plan-card-premium {
  flex: 1;
  min-width: 300px;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  padding: 24px;
  border-radius: 12px;
  color: white;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.plan-card-premium .premium-badge {
  position: absolute;
  top: -8px;
  right: 16px;
  background: #36C4B7;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.plan-card-premium .plan-header {
  text-align: center;
  margin-bottom: 20px;
}

.plan-card-premium .plan-title {
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
  font-size: 24px;
}

.plan-card-premium .plan-price {
  font-size: 32px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.plan-card-premium .plan-period {
  opacity: 0.9;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.plan-card-premium .plan-features-title {
  margin-bottom: 16px;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  font-weight: 600;
  font-size: 18px;
}

.plan-card-premium .plan-features {
  margin-bottom: 24px;
  padding-left: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.plan-card-premium .plan-features li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: white;
}

.plan-card-premium .plan-status {
  text-align: center;
}

.plan-card-premium .plan-button {
  background: rgba(54, 196, 183, 0.8);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  border: 1px solid rgba(54, 196, 183, 1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .service-content {
    padding: 16px;
  }
  
  .promptpedia-card {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .service-table {
    font-size: 14px;
  }
  
  .refund-grid {
    grid-template-columns: 1fr;
  }
  
  .refund-partial-box::before,
  .refund-full-box::before {
    display: none;
  }
  
  .pricing-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .plan-card-free,
  .plan-card-premium {
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .service-content h1 {
    font-size: 24px;
  }
  
  .service-content h2 {
    font-size: 20px;
  }
  
  .promptpedia-card {
    padding: 12px;
  }
  
  .plan-card-free,
  .plan-card-premium {
    padding: 16px;
  }
  
  .plan-title {
    font-size: 20px !important;
  }
  
  .plan-price {
    font-size: 28px !important;
  }
}

/* Legal Tab Info Boxes */
.legal-info-box {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid;
}

.legal-info-box.success {
  background: #d4edda;
  border-color: #c3e6cb;
}

.legal-info-box.warning {
  background: #fff3cd;
  border-color: #ffeaa7;
}

/* Future Plans Info Box */
.future-plans-box {
  background: #e3f2fd;
  padding: 16px;
  border-radius: 8px;
  margin-top: 24px;
  border-left: 4px solid #2196f3;
}

.future-plans-box h3,
.future-plans-box p,
.future-plans-box ul {
  color: #1976d2;
}

.future-plans-box h3 {
  margin-bottom: 12px;
}

.future-plans-box p {
  margin-bottom: 8px;
}
