:root {
  /* Colors inspired by modern, clean design while retaining brand identity */
  --primary: #d4467a; /* Brand color retained */
  --primary-light: #fdf2f6; /* Softer light version */
  --primary-dark: #b73862;
  --accent: #f4a4c0;
  
  /* Neutral Colors - Key for clean design (Apple-esque) */
  --text-dark: #1d1d1f; /* Almost black for high contrast */
  --text-body: #424245; /* Main body text */
  --text-light: #86868b; /* Lighter text for subtitles/metadata */
  
  --bg-white: #ffffff;
  --bg-light: #f5f5f7; /* Off-white background for sections */
  --bg-dark: #1d1d1f; 
  
  --border-color: #e0e0e0; /* Subtle borders */
  --gold: #d4a574;

  /* Typography */
  --font-sans: 'Noto Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  /* Changed font to Sans-serif for a modern look */
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Responsive Table Handling --- */
/* Wrapper for horizontal scrolling on mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Wrapper for visual styling (shadow, rounded corners) */
.table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    /* Ensures rounded corners are applied even when content overflows */
    overflow: hidden; 
}

/* Specific positioning for the comparison table */
.comparison-wrapper {
    max-width: 800px;
    margin: 0 auto;
}


/* Hero Section */
.hero {
  min-height: 70vh;
  /* 調整: オーバーレイの不透明度を下げて(例: 0.85→0.75, 0.95→0.85)、画像を少し目立たせる */
  background: linear-gradient(rgba(245, 245, 247, 0.75), rgba(245, 245, 247, 0.85)), url('after.jpg') center/cover no-repeat;
  /* Fallback color */
  background-color: var(--bg-light); 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 20px;
}


.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(40px, 6vw, 68px); /* Larger, bolder title */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark);
  /* Removed text gradient for cleaner look */
}

.hero-highlight {
    color: var(--primary);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-body);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}


/* Buttons */
.btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 32px; /* Slightly reduced padding */
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px; /* Less rounded corners for a modern feel */
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  letter-spacing: 0.5px;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  /* Removed strong shadow, relying on color contrast */
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-cta {
    background: linear-gradient(90deg, #ff6b6b, var(--primary));
    color: white;
    font-size: 18px;
    padding: 16px 48px;
    box-shadow: 0 5px 15px rgba(212, 70, 122, 0.3);
}

.btn-cta:hover {
    box-shadow: 0 8px 25px rgba(212, 70, 122, 0.4);
    transform: translateY(-2px);
}


/* Section Styles */
.section {
  padding: 100px 0; /* Increased padding for better separation */
}

.section-title {
  font-size: clamp(32px, 4vw, 40px);
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-dark);
  font-weight: 700;
  /* Removed underline decoration */
}


/* --- お悩み (Concerns) --- */
.concerns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.concern-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  /* Subtle shadow instead of strong border */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

.concern-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-weight: 600;
  /* Added a visual cue (icon replacement since emojis are out) */
  padding-left: 30px;
  position: relative;
}

.concern-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
}

.concern-description {
  color: var(--text-body);
}

/* --- 解決策 (Solutions) --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.solution-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.solution-icon {
    font-size: 30px; /* Adjusted for Font Awesome icons */
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
}

.solution-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.solution-description {
    font-size: 16px;
    color: var(--text-body);
}


/* --- 料金比較表 (Comparison Table) --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    /* 変更：スマホでの横スクロールを有効にするため、最低幅を設定 */
    min-width: 550px; 
}

.comparison-table th, .comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

/* 変更：料金などが不自然に改行されないように設定 */
.comparison-table td {
    white-space: nowrap;
}

.comparison-table thead th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
    white-space: nowrap;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table .highlight {
    color: var(--primary);
    font-weight: 700;
}

.comparison-table .total-row td {
    font-weight: 700;
    font-size: 18px;
    background-color: var(--primary-light);
}

/* 変更：合計行の最後のセル（お得額詳細）のみ改行を許可 */
.comparison-table .total-row td:last-child {
    white-space: normal;
}


.comparison-table small {
    font-size: 14px;
    font-weight: normal;
}

.comparison-notes {
    max-width: 800px;
    margin: 30px auto 0;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-notes span {
    color: var(--primary);
    font-size: 18px;
}

/* --- 利用ケース (Case Studies) --- */
.case-study {
    margin-bottom: 50px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.case-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    /* 変更：アバターと情報を横並びにする */
    display: flex;
    align-items: center;
    gap: 25px;
}

/* 追加：アバター画像スタイル */
.case-avatar {
    flex-shrink: 0; /* 画像が縮まないようにする */
    width: 80px;
    height: 80px;
}

.case-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* 画像を丸く表示 */
}


.case-info {
    flex-grow: 1;
}


.case-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.case-meta {
    color: var(--text-light);
    font-size: 16px;
}

.case-timeline {
    margin-bottom: 30px;
}

.case-step {
    display: flex;
    margin-bottom: 20px;
}

.case-date {
    width: 120px;
    font-weight: 600;
    color: var(--text-dark);
    flex-shrink: 0;
}

.case-content {
    flex-grow: 1;
}

.case-action {
    font-weight: 600;
    color: var(--text-body);
}

.case-detail {
    color: var(--text-light);
    margin-top: 5px;
    font-size: 15px;
}

.case-result {
    background-color: var(--primary-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.case-result span {
    color: var(--primary);
    font-size: 20px;
}

.case-result small {
    font-size: 14px;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}


/* --- 料金プラン (Pricing Plans) --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.pricing-card.recommended {
  border: 2px solid var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.pricing-header p {
  color: var(--text-light);
  font-size: 16px;
  margin-top: 5px;
  min-height: 2.4em; /* 2行分の高さを確保 */
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 20px 0 10px;
}

.pricing-unit {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 400;
}

.pricing-discount {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    min-height: 1.2em; /* 1行分の高さを確保 */
}

.pricing-details {
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-details table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.pricing-details th, .pricing-details td {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.pricing-details th {
    font-weight: 600;
    color: var(--text-dark);
    width: 35%;
}

.pricing-details td {
    color: var(--text-body);
}

.pricing-note {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}


.pricing-features-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.pricing-features {
  list-style: none;
  padding: 0;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 10px;
  color: var(--text-body);
  font-size: 15px;
  display: flex;
}

.pricing-features li::before {
  content: '・';
  color: var(--primary);
  font-weight: bold;
  margin-right: 8px;
}

/* --- プラン選びガイド (Plan Guide) --- */
.guide-table {
    width: 100%;
    border-collapse: collapse;
    /* 変更：スマホでの横スクロールを有効にするため、最低幅を設定 */
    min-width: 650px;
}

.guide-table th, .guide-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.guide-table thead th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.guide-table tbody tr:nth-child(even) {
    /* 変更：背景色を.table-wrapperの背景色(white)に合わせるため微調整 */
    background-color: #fafafa;
}

.guide-table .plan-name {
    font-weight: 600;
    color: var(--primary);
    /* 変更：プラン名が不自然に改行されないように設定 */
    white-space: nowrap;
}

/* --- ご利用の流れ (Process) --- */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
}

.timeline-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

.timeline-content {
  margin-left: 20px;
  flex: 1;
}

.timeline-title {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 600;
}

.timeline-description {
  color: var(--text-body);
}

.process-note {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    margin-top: 20px;
}

/* --- お客様の声 (Testimonials) --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 20px;
    flex-grow: 1;
    font-style: italic;
}

.testimonial-author {
    font-size: 14px;
    color: var(--text-light);
    text-align: right;
}

/* FAQ Section */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border-color);
  /* Removed shadow for a flatter look */
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--bg-light);
}

.faq-question::before {
    content: 'Q.';
    color: var(--primary);
    margin-right: 10px;
}

.faq-question .icon {
  font-size: 24px;
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg); /* + becomes x */
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-body);
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px; /* Increased max-height for longer answers */
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
  background: var(--bg-light);
  padding: 80px 0;
  text-align: center;
}

.cta-title {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 20px;
  color: var(--text-dark);
  font-weight: 700;
}

.cta-description {
  font-size: 18px;
  color: var(--text-body);
  margin-bottom: 20px;
}

.cta-features {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 40px;
}

.cta-urgency {
    margin-top: 40px;
    color: var(--text-light);
    font-size: 16px;
}

.cta-urgency strong {
    color: var(--text-dark);
}


/* Footer */
footer {
  background: var(--bg-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.footer-meta {
    color: var(--text-light);
    margin-bottom: 30px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-copyright {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}


/* --- パンくずリスト --- */
.breadcrumb-container {
  padding: 15px 0;
  background-color: var(--bg-white);
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 最後の項目以外のli要素の後に区切り文字「>」を追加 */
.breadcrumb li:not(:last-child)::after {
  content: '/'; /* Apple style uses / */
  margin: 0 10px;
  color: var(--text-light);
}

.breadcrumb li a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb li a:hover {
  text-decoration: underline;
}

/* 現在のページ（active）のスタイル */
.breadcrumb li.active {
  color: var(--text-light);
}

/* トップへ戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  background: var(--primary-dark);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
    gap: 50px;
  }
  .pricing-card.recommended {
    transform: scale(1);
  }
  .testimonial-grid {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
      min-height: 60vh;
  }
  
  .concerns-grid, .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }

  /* 変更：スマホでのフォントサイズや余白の微調整 */
  .comparison-table, .guide-table {
      font-size: 15px;
  }

  .comparison-table th, .comparison-table td,
  .guide-table th, .guide-table td {
      padding: 14px 15px;
  }

  .case-study {
      padding: 30px;
  }

  /* 追加：スマホでのアバターサイズ調整 */
  .case-avatar {
      width: 60px;
      height: 60px;
  }

  .case-title {
      font-size: 20px;
  }

  .case-step {
      flex-direction: column;
  }
  .case-date {
      margin-bottom: 5px;
  }
}