/* ================================================
   ガイドラインページ専用スタイル
   トンマナ: 暖色系オレンジ / 手作り感 / 読みやすさ重視
   ================================================ */

/* セクションタイトル */
.section-title {
  border-left: 4px solid var(--primary-color, #fd7e14);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  color: var(--dark-text, #212529);
  font-weight: 600;
}

.section-title i {
  color: var(--primary-color, #fd7e14);
}

/* ガイドラインカード - 基本スタイル */
.guideline-card {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid var(--border-light, #e9ecef);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.guideline-card:hover {
  box-shadow: 0 4px 16px rgba(253, 126, 20, 0.12);
}

/* カード左側のアクセントライン */
.guideline-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color, #fd7e14) 0%, #ffab40 100%);
}

.guideline-card .card-header {
  background: linear-gradient(135deg, #fffaf5 0%, #fff8f0 100%);
  border-bottom: 1px solid rgba(253, 126, 20, 0.15);
  padding: 1rem 1rem 1rem 1.25rem;
}

.guideline-card .card-header h4 {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
}

.guideline-card .card-body {
  padding: 1.25rem 1.5rem;
}

/* リード文 */
.guideline-card .lead {
  font-size: 1rem;
  color: var(--medium-text, #495057);
  line-height: 1.8;
}

/* ガイドラインリスト - 基本 */
.guideline-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.guideline-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  line-height: 1.7;
  color: var(--dark-text, #212529);
}

.guideline-list li:last-child {
  margin-bottom: 0;
}

.guideline-list li::before {
  content: "●";
  color: var(--primary-color, #fd7e14);
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 0.35rem;
}

.guideline-list li small {
  display: block;
  margin-top: 0.25rem;
  color: var(--light-text, #6c757d);
  line-height: 1.6;
}

/* OK リスト - 緑系 */
.ok-list li::before {
  content: "○";
  color: #2e7d32;
  font-size: 0.875rem;
  top: 0.25rem;
}

/* NG リスト - 赤系 */
.ng-list li::before {
  content: "×";
  color: #c62828;
  font-size: 0.875rem;
  font-weight: bold;
  top: 0.25rem;
}

/* 注意リスト - アンバー系（オレンジに寄せた黄色） */
.caution-list li::before {
  content: "△";
  color: #e65100;
  font-size: 0.875rem;
  top: 0.25rem;
}

/* ヘッダーアイコン色調整 */
.card-header .text-success {
  color: #2e7d32 !important;
}

.card-header .text-danger {
  color: #c62828 !important;
}

.card-header .text-warning {
  color: #e65100 !important;
}

/* 更新情報 */
.update-info {
  font-size: 0.875rem;
  color: var(--light-text, #6c757d);
  border-left: 3px solid var(--border-medium, #dee2e6);
  padding-left: 1rem;
  margin: 1rem 0;
  background: transparent;
}

.update-info strong {
  color: var(--medium-text, #495057);
}

/* ガイドラインセクション */
.guideline-section {
  margin-bottom: 2.5rem;
}

.guideline-section > h3 {
  color: var(--dark-text, #212529);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px dotted rgba(253, 126, 20, 0.3);
}

.guideline-section > h3 i {
  color: var(--primary-color, #fd7e14);
}

/* ノート・補足情報 */
.guideline-note {
  background: linear-gradient(135deg, #fffbf5 0%, #fff9f0 100%);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-left: 4px solid var(--primary-color, #fd7e14);
  position: relative;
}

.guideline-note::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 10px,
    rgba(253, 126, 20, 0.02) 10px,
    rgba(253, 126, 20, 0.02) 12px
  );
  pointer-events: none;
  border-radius: 6px;
}

.guideline-note p {
  position: relative;
  z-index: 1;
  color: var(--medium-text, #495057);
  font-size: 0.9rem;
  line-height: 1.7;
}

.guideline-note i {
  color: var(--primary-color, #fd7e14);
}

/* Bootstrap text-success オーバーライド */
.guideline-card .text-success {
  color: #2e7d32 !important;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .guideline-card .card-body {
    padding: 1rem;
  }

  .guideline-list li {
    padding-left: 1.5rem;
    font-size: 0.9375rem;
  }

  .guideline-note {
    padding: 0.875rem 1rem;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guideline-section {
  animation: fadeInUp 0.4s ease-out;
}

.guideline-section:nth-child(2) { animation-delay: 0.1s; }
.guideline-section:nth-child(3) { animation-delay: 0.2s; }
.guideline-section:nth-child(4) { animation-delay: 0.3s; }
