/* ===========================
   Reset & Base Styles
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #7a1825;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --accent: #7a1825;
  --accent-foreground: #ffffff;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --muted: #64748b;
  --muted-foreground: #475569;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --border: #e2e8f0;
  --background: #ffffff;
  --foreground: #0f172a;
}

/* ===========================
   Base Typography
=========================== */
body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* リンク共通ホバー演出 */
a {
  transition: filter 0.25s ease, opacity 0.25s ease;
}

a:hover {
  filter: brightness(1.1);
  opacity: 0.95;
}

/* ===========================
   Layout Utility
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.text-primary {
  color: var(--primary);
}

.text-destructive {
  color: var(--destructive);
}

.text-muted {
  color: var(--muted);
}

.text-small {
  font-size: 0.875rem;
}

.font-semibold {
  font-weight: 600;
}

/* ===========================
   Icons
=========================== */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
}

.icon-large {
  width: 2rem;
  height: 2rem;
}

.icon-xl {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.check-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* ===========================
   Buttons
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: rgba(122, 78, 45, 0.85);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--secondary);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary);
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===========================
   Badge
=========================== */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge.large {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

/* ===========================
   Header
=========================== */
.header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
}

.bookmark-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: transparent;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.bookmark-btn:hover {
  background-color: var(--secondary);
}

/* ===========================
   Desktop Navigation
=========================== */
.desktop-nav {
  display: none; /* モバイルでは非表示（PCで表示） */
  gap: 1.5rem;
  font-size: 0.95rem;
}

.desktop-nav a {
  color: var(--foreground);
  text-decoration: none;
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.2s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

/* ===========================
   Hamburger Button
=========================== */
.hamburger-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  gap: 0.25rem;
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  position: relative;
  z-index: 1100; /* オーバーレイより上に */
}

.hamburger-btn span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--foreground);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger-btn:hover {
  background-color: var(--secondary);
  border-color: var(--primary);
}

/* ===========================
   Mobile Menu (Overlay + Panel)
=========================== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 340px;
  height: 100%;
  background-color: var(--card);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1050;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
  font-size: 1rem;
  font-weight: 600;
}

.mobile-menu-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-menu-close:hover {
  background-color: var(--secondary);
  border-color: var(--primary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  gap: 0.75rem;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
  font-size: 0.95rem;
  font-weight: 500;
}

.mobile-nav a:hover {
  background-color: rgba(241, 245, 249, 0.9);
}

.mobile-menu-footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* mobile-menu-open 時の状態 */
body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mobile-menu-open .mobile-menu {
  transform: translateX(0);
}

/* ===========================
   Hero Section
=========================== */

.hero {
  padding: 4rem 0;
  background: linear-gradient(to bottom, rgba(241, 245, 249, 0.3), var(--background));
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* ===========================
   Fair Info Section
=========================== */
.fair-info {
  padding: 3rem 0;
  background-color: #e0d6b7;
}

.fair-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.fair-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fair-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.fair-item p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* ===========================
   Section Headers
=========================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* ===========================
   Problem Section
=========================== */
.problem-section {
  padding: 4rem 0;
  background-color: rgba(241, 245, 249, 0.3);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.problem-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.problem-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(220, 38, 38, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.problem-icon .icon-large {
  color: var(--destructive);
}

.problem-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.problem-card p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* ===========================
   Solution Section
=========================== */
.solution-section {
  padding: 4rem 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.solution-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.solution-item h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.solution-item p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.solution-image {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 0.5rem;
}

.solution-image img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.solution-image p {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* ===========================
   Products Section
=========================== */
.products-section {
  padding: 4rem 0;
  background-color: rgba(241, 245, 249, 0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.product-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-card.featured {
  border: 2px solid var(--primary);
}

.product-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.product-header h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-header p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

/* ===========================
   Cost Section
=========================== */
.cost-section {
  padding: 4rem 0;
}

/* 商品別価格比較セクション */
.product-comparison {
  margin-bottom: 3rem;
}

.product-comparison:last-child {
  margin-bottom: 0;
}

.comparison-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* 商品画像 */
.product-image-container {
  text-align: center;
  margin-bottom: 2rem;
}

.product-image {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  display: block;
}

.cost-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.cost-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cost-card.featured {
  border: 2px solid var(--primary);
}

.cost-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cost-header h3,
.cost-header h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cost-header p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.cost-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

.cost-value {
  font-weight: 600;
}

.savings-badge {
  text-align: center;
  margin-top: 2rem;
}

/* ===========================
   Testimonials Section
=========================== */
.testimonials-section {
  padding: 4rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(22, 163, 74, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* ===========================
   FAQ Section
=========================== */
.faq-section {
  padding: 4rem 0;
  background-color: rgba(241, 245, 249, 0.3);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--card);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: rgba(241, 245, 249, 0.5);
}

.faq-question h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--foreground);
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: none !important;
  overflow: visible !important;
}

.faq-answer p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===========================
   Bookmark CTA
=========================== */
.bookmark-cta {
  padding: 4rem 0;
  background-color: rgba(22, 163, 74, 0.05);
}

.bookmark-content {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.bookmark-content h2 {
  margin-bottom: 1.5rem;
}

.bookmark-content p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.bookmark-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* ===========================
   Final CTA
=========================== */
.final-cta {
  padding: 4rem 0;
  background-color: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* ===========================
   Footer
=========================== */
.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-section h3 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section li {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.notice-box {
  background-color: #e0d6b7;
  padding: 1rem;
  border-radius: 0.5rem;
}

.notice-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-foreground);
  margin-bottom: 0.5rem;
}

.notice-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-foreground);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0;
}
/* ===========================
   Back To Top Button
=========================== */
#back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 1200;
}

#back-to-top:hover {
  transform: translateY(-2px);
  background-color: rgba(122, 78, 45, 0.9);
}

body.show-backtotop #back-to-top {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* ===========================
   Responsive Design
=========================== */
@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .fair-content {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }

  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .solution-grid {
    grid-template-columns: 1fr 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cost-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bookmark-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-image {
    max-width: 500px;
    height: 300px;
  }
}

@media (min-width: 1024px) {
  /* PCではデスクトップナビ表示 & ハンバーガー非表示 */
  .desktop-nav {
    display: flex;
  }

  .hamburger-btn {
    display: none;
  }

  .mobile-menu,
  .mobile-menu-overlay {
    display: none; /* PCでは強制的に無効化 */
  }

  .hero-title {
    font-size: 3rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }
}
