/* ==========================================================================
   XM 出金拒否 - SEO記事寄りLPサイト
   モバイルファースト設計
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
}

ul, ol {
  padding-left: 1.25em;
}

/* --------------------------------------------------------------------------
   2. Container & Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: #f8fafc;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
}

h1 {
  font-size: 1.625rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #2563eb;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: #374151;
}

h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: #1a1a1a;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Hero Section (ファーストビュー)
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 0.9375rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: #fff;
  color: #2563eb;
}

.btn-primary:hover {
  background-color: #f0f7ff;
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cta {
  background-color: #dc2626;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-cta:hover {
  background-color: #b91c1c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* --------------------------------------------------------------------------
   6. Comparison Box (結論セクション)
   -------------------------------------------------------------------------- */
.comparison-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.box {
  padding: 1.25rem;
  border-radius: 10px;
}

.box h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
}

.box ul {
  list-style: none;
  padding: 0;
}

.box li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.box li::before {
  position: absolute;
  left: 0;
  font-weight: bold;
}

.box-fit {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.box-fit h3 {
  color: #047857;
}

.box-fit li::before {
  content: "✓";
  color: #10b981;
}

.box-notfit {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
}

.box-notfit h3 {
  color: #b91c1c;
}

.box-notfit li::before {
  content: "△";
  color: #ef4444;
}

/* --------------------------------------------------------------------------
   7. Article Blocks (記事コンテンツ)
   -------------------------------------------------------------------------- */
.article-block {
  margin-bottom: 2.5rem;
}

.article-block:last-child {
  margin-bottom: 0;
}

.article-block h3 {
  background-color: #f1f5f9;
  padding: 0.75rem 1rem;
  border-left: 4px solid #2563eb;
  margin-bottom: 1rem;
}

.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.detail-list li strong {
  display: block;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   8. Info Box & Caution Box
   -------------------------------------------------------------------------- */
.info-box {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.info-box h4 {
  color: #1e40af;
  margin-bottom: 0.75rem;
}

.info-box ul {
  margin-bottom: 0;
}

.info-box li {
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}

.caution-box {
  background-color: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 2rem;
}

.caution-box h4 {
  color: #b45309;
  margin-bottom: 0.75rem;
}

.caution-box ul {
  margin-bottom: 0.75rem;
}

.caution-box li {
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
}

.caution-box p {
  font-size: 0.875rem;
  color: #78350f;
}

/* --------------------------------------------------------------------------
   9. Criteria List (判断軸)
   -------------------------------------------------------------------------- */
.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.criteria-item {
  padding: 1.25rem;
  background-color: #f8fafc;
  border-radius: 10px;
  border-left: 4px solid #2563eb;
}

.criteria-item h3 {
  color: #1e40af;
  margin-bottom: 0.75rem;
}

.criteria-item p {
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   10. Select Guide (選び方ガイド)
   -------------------------------------------------------------------------- */
.select-guide {
  margin: 1.5rem 0;
}

.guide-item {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.guide-item h3 {
  color: #374151;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid #6366f1;
}

.guide-item p {
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   11. Steps (ステップ)
   -------------------------------------------------------------------------- */
.steps {
  margin: 1.5rem 0 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background-color: #f8fafc;
  border-radius: 10px;
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   12. CTA Box
   -------------------------------------------------------------------------- */
.cta-box {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: #f0f7ff;
  border-radius: 12px;
  margin-top: 2rem;
}

.cta-box p {
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.cta-final {
  background: linear-gradient(135deg, #fef2f2 0%, #fef9f9 100%);
  border: 2px solid #fecaca;
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  margin-bottom: 0.75rem;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  padding-right: 2.5rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
  font-size: 0.9375rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid #e5e7eb;
  background-color: #f8fafc;
}

.faq-answer {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
}

.faq-answer p {
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   14. Summary Section
   -------------------------------------------------------------------------- */
.summary-content {
  padding: 1.5rem;
  background-color: #f8fafc;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.summary-list {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

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

.summary-note {
  font-size: 0.9375rem;
  color: #4b5563;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  border-left: 4px solid #10b981;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   15. Disclaimer
   -------------------------------------------------------------------------- */
.disclaimer {
  background-color: #f3f4f6;
  padding: 2rem 0;
}

.disclaimer h2 {
  font-size: 1rem;
  border-bottom: none;
  margin-bottom: 1rem;
}

.disclaimer-content {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.7;
}

.disclaimer-content ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.disclaimer-content li {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: #1e3a5f;
  color: #94a3b8;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   17. Note / Utility
   -------------------------------------------------------------------------- */
.note {
  font-size: 0.875rem;
  color: #6b7280;
  padding: 0.75rem 1rem;
  background-color: #f9fafb;
  border-radius: 6px;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   18. Media Queries - Tablet & Desktop
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  html {
    font-size: 17px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .comparison-box {
    flex-direction: row;
  }
  
  .box {
    flex: 1;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
  
  .container {
    padding: 0 2rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .hero {
    padding: 5rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.625rem;
  }
  
  .step {
    padding: 1.5rem;
  }
  
  .cta-box {
    padding: 2.5rem 2rem;
  }
}

/* --------------------------------------------------------------------------
   19. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .hero {
    background: #1e3a5f !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .btn {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* --------------------------------------------------------------------------
   20. Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}