/* ==========================================================================
   1. CSS Reset & Variables (Japanese Typography Optimized)
   ========================================================================== */

:root {
  /* Color Palette */
  --color-bg: #F1DA92;
  --color-text: #222222;
  --color-text-muted: #555555;
  --color-accent: #005bac;
  --color-hero-bg: #0f172a;
  --color-hero-text: #f8fafc;
  --color-hero-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-card-bg: #D9EAE3;

  /* Typography tuned for Japanese */
  --font-japanese: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", 
                   "Meiryo", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout Bounds */
  --max-width-text: 720px;
  --max-width-site: 1000px;
  --container-padding: 1.25rem;
}

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

html {
  font-family: var(--font-japanese);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8; /* Increased line-height for Japanese characters */
  word-break: break-all; /* Essential for mobile CJK rendering without side-scroll */
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   2. Layout Container
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width-site);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.article-body {
  max-width: var(--max-width-text);
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  flex: 1;
}

/* ==========================================================================
   3. Prominent Hero Section
   ========================================================================== */

.hero {
  background-color: var(--color-hero-bg);
  color: var(--color-hero-text);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-content {
  max-width: var(--max-width-text);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw + 1rem, 2.75rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw + 0.8rem, 1.15rem);
  line-height: 1.6;
  color: var(--color-hero-muted);
}

/* Style the picture wrapper */
.hero-picture {
  display: block;     /* Changes picture from inline to block level */
  width: 100%;
  max-width: 500px;   /* Set a maximum display size for desktop */
  margin: 0 auto;     /* Centers image on mobile screens */
}

/* Style the inner img tag */
.hero-img {
  width: 100%;        /* Forces image to scale down to container width */
  height: auto;       /* Maintains aspect ratio without stretching */
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   4. Accordion FAQ Styling
   ========================================================================== */

.faq-group + .faq-group {
  margin-top: 3rem;
}

.category-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-accent);
}

.faq-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--color-accent);
}

.faq-question {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none; /* Hide default arrow */
  user-select: none;
  background-color: #D9EAD3;
}

/* Custom dropdown indicator */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.faq-item[open] .faq-question::after {
  content: "\2212"; /* Minus sign */
}

.q-prefix {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-right: 0.75rem;
  font-weight: 800;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  border-top: 1px dashed var(--color-border);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
}

.faq-answer ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}
img.products {
    display: block;
    width: 100%;
    height: auto;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.card {
    display: block;
    padding: 2rem;
    text-decoration: none;
    flex: 1 1 250px;
}
.card-content {
    padding: 5px;
}

/* ==========================================================================
   5. Footer & Media Queries
   ========================================================================== */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

@media (min-width: 640px) {
  :root {
    --container-padding: 2rem;
  }

  .hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  .faq-question {
    padding: 1.25rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}