/**
 * usage.css - 使い方ページ専用スタイル (Monster Hunter Wilds Theme)
 */

/* ==========================================
   Main Content
   ========================================== */
.main-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.content-container {
  background: rgba(29, 26, 20, 0.85);
  border: 2px solid var(--mhw-orange);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(212, 105, 42, 0.2);
}

/* ==========================================
   Title Section
   ========================================== */
.title-section {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--mhw-brown-light);
}

.page-title {
  font-size: 2.5rem;
  color: var(--mhw-gold);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-description {
  color: var(--mhw-text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* ==========================================
   Table of Contents
   ========================================== */
.toc-section {
  background: rgba(61, 53, 48, 0.4);
  border-left: 4px solid var(--mhw-orange);
  padding: 1.5rem 2rem;
  border-radius: 10px;
  margin-bottom: 3rem;
}

.section-heading {
  font-size: 1.8rem;
  color: var(--mhw-gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-number {
  background: linear-gradient(135deg, var(--mhw-orange) 0%, var(--mhw-orange-dark) 100%);
  color: var(--mhw-text);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(212, 105, 42, 0.4);
}

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

.toc-list li {
  margin-bottom: 0.75rem;
}

.toc-link {
  color: var(--mhw-text);
  text-decoration: none;
  font-size: 1.1rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.toc-link:hover {
  color: var(--mhw-gold);
  background: rgba(212, 105, 42, 0.1);
  text-decoration: none;
  transform: translateX(5px);
}

/* ==========================================
   Guide Sections
   ========================================== */
.guide-section {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
}

.guide-content {
  margin-top: 2rem;
}

.subsection-heading {
  font-size: 1.4rem;
  color: var(--mhw-text);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--mhw-brown-light);
}

.section-intro {
  color: var(--mhw-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ==========================================
   Step List
   ========================================== */
.step-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.step-number {
  background: linear-gradient(135deg, var(--mhw-orange) 0%, var(--mhw-orange-dark) 100%);
  color: var(--mhw-text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(212, 105, 42, 0.3);
}

.step-content {
  flex: 1;
}

.step-content p {
  color: var(--mhw-text);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.note-list {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  color: var(--mhw-text-muted);
  font-size: 0.95rem;
}

.note-list li {
  margin-bottom: 0.5rem;
}

/* ==========================================
   Info/Warning Boxes
   ========================================== */
.info-box,
.warning-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.info-box {
  background: rgba(52, 152, 219, 0.1);
  border-left: 4px solid #3498db;
}

.warning-box {
  background: rgba(192, 57, 43, 0.1);
  border-left: 4px solid #c0392b;
}

.info-icon,
.warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-content,
.warning-content {
  flex: 1;
}

.info-content p,
.warning-content p {
  color: var(--mhw-text);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.warning-list {
  margin-top: 1rem;
  padding-left: 1.5rem;
  color: var(--mhw-text);
}

.warning-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* ==========================================
   Pattern Cards (Screenshot Examples)
   ========================================== */
.pattern-container {
  margin: 2rem 0;
}

.pattern-card {
  background: rgba(61, 53, 48, 0.3);
  border: 1px solid var(--mhw-brown-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pattern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(212, 105, 42, 0.2);
}

.pattern-header {
  margin-bottom: 1rem;
}

.pattern-badge {
  background: linear-gradient(135deg, var(--mhw-orange) 0%, var(--mhw-orange-dark) 100%);
  color: var(--mhw-text);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.pattern-title {
  font-size: 1.2rem;
  color: var(--mhw-text);
  margin: 0;
}

.pattern-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pattern-image-container {
  background: rgba(26, 22, 20, 0.5);
  border: 2px solid var(--mhw-brown-light);
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.pattern-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Fallback for placeholder (if needed) */
.pattern-image-placeholder {
  background: rgba(26, 22, 20, 0.5);
  border: 2px dashed var(--mhw-brown-light);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  font-size: 2rem;
  color: var(--mhw-text-muted);
  margin-bottom: 0.5rem;
}

.placeholder-hint {
  font-size: 0.9rem;
  color: var(--mhw-text-muted);
  font-style: italic;
}

.pattern-description {
  color: var(--mhw-text-muted);
  line-height: 1.8;
}

/* ==========================================
   Feature Lists
   ========================================== */
.feature-heading {
  font-size: 1.2rem;
  color: var(--mhw-orange);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.feature-list {
  margin: 1rem 0;
  padding-left: 2rem;
  color: var(--mhw-text);
}

.feature-list li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.feature-list li strong {
  color: var(--mhw-gold);
}

/* ==========================================
   CSV Table
   ========================================== */
.csv-info {
  background: rgba(61, 53, 48, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.csv-heading {
  font-size: 1.1rem;
  color: var(--mhw-gold);
  margin-bottom: 1rem;
}

.csv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.csv-table th,
.csv-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--mhw-brown-light);
}

.csv-table thead th {
  background: rgba(212, 105, 42, 0.2);
  color: var(--mhw-gold);
  font-weight: bold;
}

.csv-table tbody tr:hover {
  background: rgba(212, 105, 42, 0.05);
}

.csv-table td {
  color: var(--mhw-text-muted);
}

/* ==========================================
   Support Card
   ========================================== */
.support-card {
  background: rgba(61, 53, 48, 0.3);
  border-left: 4px solid var(--mhw-orange);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.support-heading {
  font-size: 1.2rem;
  color: var(--mhw-gold);
  margin-bottom: 1rem;
}

.support-list {
  margin-top: 1rem;
  padding-left: 2rem;
  color: var(--mhw-text);
}

.support-list li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

/* ==========================================
   Inline Links
   ========================================== */
.inline-link {
  color: var(--mhw-orange);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.inline-link:hover {
  color: var(--mhw-gold);
  border-bottom-color: var(--mhw-gold);
  text-decoration: none;
}

/* ==========================================
   Back to Top
   ========================================== */
.back-to-top {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--mhw-brown-light);
}

.btn-back-to-top {
  display: inline-block;
  background: linear-gradient(135deg, var(--mhw-orange) 0%, var(--mhw-orange-dark) 100%);
  color: var(--mhw-text);
  padding: 0.75rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--mhw-gold);
  box-shadow: 0 4px 12px rgba(212, 105, 42, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 105, 42, 0.6);
  text-decoration: none;
}

/* ==========================================
   Responsive Design - Tablet
   ========================================== */
@media (max-width: 768px) {
  .main-content {
    padding: 2rem 1rem;
  }

  .content-container {
    padding: 2rem 1.5rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .step-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .csv-table {
    font-size: 0.9rem;
  }

  .csv-table th,
  .csv-table td {
    padding: 0.5rem;
  }
}

/* ==========================================
   Responsive Design - Mobile
   ========================================== */
@media (max-width: 480px) {
  .content-container {
    padding: 1.5rem 1rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .page-description {
    font-size: 0.95rem;
  }

  .section-heading {
    font-size: 1.3rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-number {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .toc-link {
    font-size: 1rem;
  }

  .subsection-heading {
    font-size: 1.2rem;
  }

  .pattern-image-placeholder {
    padding: 2rem 1rem;
    min-height: 150px;
  }

  .placeholder-text {
    font-size: 1.5rem;
  }

  .placeholder-hint {
    font-size: 0.8rem;
  }

  .csv-table {
    font-size: 0.85rem;
  }

  .csv-table th,
  .csv-table td {
    padding: 0.4rem;
  }

  .feature-list,
  .support-list {
    padding-left: 1.5rem;
  }

  .info-box,
  .warning-box {
    flex-direction: column;
    padding: 1rem;
  }

  .btn-back-to-top {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
  .back-to-top,
  .toc-section {
    display: none;
  }

  .main-content {
    max-width: 100%;
    padding: 0;
  }

  .content-container {
    border: none;
    box-shadow: none;
  }

  .pattern-image-placeholder {
    border: 1px solid #ccc;
  }
}
