/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* レポートコンテナ */
.reports-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 見出しスタイル */

h2 {
  font-size: 1.7rem;
  font-weight: 600;
  color: #2c3e50;
  padding-bottom: 8px;
  border-bottom: 2px solid #e6f1ff;
  position: relative;
  scroll-margin-top: 100px;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
  scroll-margin-top: 100px;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  position: relative;
  padding-left: 15px;
}

h4:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--secondary-color);
  border-radius: 50%;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
  text-decoration: underline;
  text-decoration-color: #ddd;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  font-style: italic;
}

/* レスポンシブ対応 - 見出し */
@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  h5, h6 {
    font-size: 1rem;
  }
}

/* カードスタイル */
.card {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.card-body {
  padding: 25px;
}

/* 警告・注意事項セクション */
.warning-section {
  background: linear-gradient(135deg, #ff4757, #ff3742);
  border: 2px solid #ff3742;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.warning-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.1) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
}

.warning-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.warning-icon {
  font-size: 2rem;
  color: #fff;
  margin-right: 15px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.warning-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.warning-content {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.warning-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.warning-list li {
  position: relative;
  padding: 8px 0 8px 25px;
  margin-bottom: 8px;
}

.warning-list li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  top: 8px;
  color: #fff200;
  font-size: 1.1rem;
}

.warning-penalty {
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  font-weight: 600;
  text-align: center;
  font-size: 1.1rem;
}

.warning-penalty strong {
  color: #fff200;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .warning-section {
    padding: 15px;
  }
  
  .warning-icon {
    font-size: 1.5rem;
    margin-right: 10px;
  }
  
  .warning-title {
    font-size: 1.2rem;
  }
  
  .warning-content {
    font-size: 0.95rem;
  }
  
  .warning-penalty {
    font-size: 1rem;
    padding: 12px;
  }
}

/* 目次スタイル */
.manual-toc {
  margin-bottom: 10px;
}

.toc-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.toc-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 12px;
  font-size: 1rem;
}

.toc-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.toc-list a:hover {
  text-decoration: underline;
}

.toc-sublist {
  list-style-type: none;
  padding-left: 20px;
  margin: 8px 0 0 0;
}

.toc-sublist li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.toc-sublist a:before {
  content: "・";
  margin-right: 4px;
  color: var(--dark-gray);
}

/* セクション - ページ内リンク用に調整 */
.manual-section {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  scroll-margin-top: 100px; /* ヘッダー分の余白を確保 */
}

.manual-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.manual-section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e6f1ff;
}

/* サブセクション - ページ内リンク用に調整 */
.manual-subsection-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 25px 0 15px;
  scroll-margin-top: 100px; /* ヘッダー分の余白を確保 */
}

.manual-content {
}

/* リスト */
.manual-list {
  padding-left: 20px;
  margin-bottom: 20px;
}

.manual-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* 報告例 */
.report-example {
  margin: 25px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: var(--border-radius);
  border: 1px solid #e9ecef;
}

.example-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.example-description {
}

.example-description p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* フロー図 */
.manual-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.flow-item {
  text-align: center;
  margin: 10px;
  width: 100px;
}

.flow-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 auto 10px;
}

.flow-text {
  font-size: 0.9rem;
}

.flow-arrow {
  color: var(--primary-color);
  font-weight: bold;
  margin: 0 5px;
  font-size: 1.5rem;
}

/* 例のコンテナ */
.example-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.good-example, .bad-example {
  flex: 1;
  min-width: 250px;
  padding: 10px;
  border-radius: var(--border-radius);
}

.good-example {
  background-color: #f0f9f0;
  border: 1px solid #b7e1b7;
}

.bad-example {
  background-color: #fff0f0;
  border: 1px solid #e7c5c5;
}

.good-example h4, .bad-example h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.good-example h4 i {
  color: var(--secondary-color);
}

.bad-example h4 i {
  color: var(--danger-color);
}

/* FAQ */
.faq-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #eee;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.faq-answer {
  color: #555;
  padding-left: 15px;
  border-left: 3px solid #ddd;
}

/* サポート情報 */
.support-info {
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: 20px;
}

.support-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.support-info i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .card-body {
    padding: 20px 15px;
  }
  
  .manual-flow {
    flex-direction: column;
    align-items: center;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
  
  .example-container {
    flex-direction: column;
  }
  
  .manual-section-title {
    font-size: 1.3rem;
  }

  /* レスポンシブでのスクロールマージン調整 */
  .manual-section,
  .manual-subsection-title {
    scroll-margin-top: 80px;
  }
}

@media (max-width: 480px) {
  .card-body {
    padding: 15px 10px;
  }
  
  .manual-section-title {
    font-size: 1.2rem;
  }
  
  .manual-subsection-title {
    font-size: 1.1rem;
  }
  
  .toc-title {
    font-size: 1.2rem;
  }
  
  .toc-list li {
    font-size: 0.95rem;
  }
  
  .toc-sublist li {
    font-size: 0.9rem;
  }

  /* モバイルでのスクロールマージン調整 */
  .manual-section,
  .manual-subsection-title {
    scroll-margin-top: 70px;
  }
} 