/* Article Detail Page Styles - Template Compliant */

/* Article Container */
.article-container {
  max-width: 48rem; /* 768px */
  margin: 0 auto;
  padding: 0 1rem;
}

/* Article Title (separate from body) */
.article-title {
  font-size: 2rem; /* 32px */
  line-height: 1.25;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.25rem; /* 36px */
  }
}

/* Article Body - Main Content Area */
.article-body {
  /* Typography */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--text-primary);

  /* Japanese text handling */
  word-break: break-word;
  overflow-wrap: anywhere;
  line-break: strict;
}

@media (min-width: 768px) {
  .article-body {
    font-size: 17px;
  }
}

/* Headings */
.article-body h1 {
  font-size: 2rem; /* 32px */
  line-height: 1.25;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .article-body h1 {
    font-size: 2.25rem; /* 36px */
  }
}

.article-body h2 {
  font-size: 1.5rem; /* 24px */
  line-height: 1.4;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .article-body h2 {
    font-size: 1.75rem; /* 28px */
  }
}

.article-body h3 {
  font-size: 1.25rem; /* 20px */
  line-height: 1.5;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .article-body h3 {
    font-size: 1.375rem; /* 22px */
  }
}

.article-body h4 {
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-primary);
}

.article-body h5,
.article-body h6 {
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--text-primary);
}

/* Paragraphs */
.article-body p {
  margin: 0.9rem 0;
  line-height: 1.9;
}

/* Lists */
.article-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.9rem 0;
}

.article-body ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0.9rem 0;
}

.article-body li {
  margin: 0.25rem 0;
  line-height: 1.9;
}

/* Nested lists */
.article-body ul ul {
  list-style: circle;
  margin: 0.25rem 0;
}

.article-body ul ul ul {
  list-style: square;
}

.article-body ol ol {
  list-style: lower-alpha;
  margin: 0.25rem 0;
}

.article-body ol ol ol {
  list-style: lower-roman;
}

/* Blockquotes */
.article-body blockquote {
  border-left: 4px solid #d1d5db;
  padding-left: 0.75rem;
  margin: 1.25rem 0;
  color: #4b5563;
  font-style: italic;
}

/* Inline Code */
.article-body code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  background-color: #f6f8fa;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Code Blocks */
.article-body pre {
  background-color: #f6f8fa;
  border-radius: 6px;
  padding: 1rem;
  margin: 1.25rem 0;
  overflow: auto;
}

.article-body pre code {
  display: block;
  background-color: transparent;
  padding: 0;
  line-height: 1.6;
  font-size: 0.875rem;
}

/* Horizontal Rules */
.article-body hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

/* Links */
.article-body a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.article-body a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  overflow-x: auto;
  display: block;
}

.article-body th,
.article-body td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.article-body th {
  font-weight: 600;
  background-color: #f9fafb;
}

.article-body tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Images */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
  display: block;
}

.article-body figure {
  margin: 1.5rem 0;
}

.article-body figcaption {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  margin-top: 0.5rem;
}

/* Strong and Emphasis */
.article-body strong {
  font-weight: 700;
}

.article-body em {
  font-style: italic;
}

/* Dark Mode Support */
[data-theme="dark"] .article-body,
@media (prefers-color-scheme: dark) {
  body[data-theme="dark"] .article-body {
    color: #e2e8f0;
  }

  body[data-theme="dark"] .article-body h1,
  body[data-theme="dark"] .article-body h2,
  body[data-theme="dark"] .article-body h3,
  body[data-theme="dark"] .article-body h4,
  body[data-theme="dark"] .article-body h5,
  body[data-theme="dark"] .article-body h6 {
    color: #f1f5f9;
  }

  body[data-theme="dark"] .article-body code {
    background-color: #1e293b;
    color: #e2e8f0;
  }

  body[data-theme="dark"] .article-body pre {
    background-color: #1e293b;
  }

  body[data-theme="dark"] .article-body blockquote {
    border-left-color: #475569;
    color: #94a3b8;
  }

  body[data-theme="dark"] .article-body th,
  body[data-theme="dark"] .article-body td {
    border-color: #334155;
  }

  body[data-theme="dark"] .article-body th {
    background-color: #1e293b;
  }

  body[data-theme="dark"] .article-body tbody tr:nth-child(even) {
    background-color: #1e293b;
  }

  body[data-theme="dark"] .article-body hr {
    border-top-color: #334155;
  }

  body[data-theme="dark"] .article-body a {
    color: #60a5fa;
  }

  body[data-theme="dark"] .article-body a:hover {
    color: #93c5fd;
  }
}
:root {
  /* Colors */
  --bg-color: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-primary: #2563eb;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.1);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.6);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--text-secondary);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Hero */
.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.05em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  padding: 1rem;
  border-radius: 0.75rem;
  color: var(--accent-primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Flow */
.flow-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--bg-secondary);
  z-index: -1;
}

.step {
  background: var(--bg-color);
  padding: 0 1rem;
  text-align: center;
  flex: 1;
}

.step-number {
  width: 4rem;
  height: 4rem;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  color: var(--accent-primary);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--bg-secondary);
  padding: 3rem 2rem;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, var(--bg-secondary) 100%);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1.5rem 0;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-icon {
  color: var(--accent-primary);
}

/* Contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-color);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.copyright {
  text-align: center;
  color: var(--text-secondary);
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
    /* Simple hide for mobile for now */
  }

  .flow-steps {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .flow-steps::before {
    display: none;
  }

  .step {
    width: 100%;
  }
}

/* Problems Section */
.problem-box {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.problem-item:last-child {
  margin-bottom: 0;
}

.problem-icon {
  color: var(--accent-secondary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Tech Stack */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.tech-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color 0.3s;
}

.tech-tag:hover {
  border-color: var(--accent-primary);
}

/* Idea Cards (for ideas.html) */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.idea-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.idea-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-primary);
}

.idea-image {
  height: 180px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.idea-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.idea-category {
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.idea-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.idea-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.idea-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.idea-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.idea-link {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Idea Detail Page (idea_template.html) */
.detail-hero {
  background: var(--bg-secondary);
  padding: 8rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.detail-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

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

.detail-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.detail-list li::before {
  content: "•";
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -0.4rem;
  line-height: 1.5;
}

.price-box {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Filter/Tag Styles (for ideas.html) */
.filter-section {
  margin-bottom: 3rem;
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.2em;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-chip {
  background: var(--bg-color);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.tag-chip:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
}
/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
