/* ==========================================
   リフォーム住宅販売会社 公式サイト
   カラーパレット:
   - Primary: #A68D6A (アースカラー、ベージュ系)
   - Secondary: #EFE6DC (淡いクリーム系)
   - Text: #3C3C3C (落ち着いたダークグレー)
========================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #3c3c3c;
  background-color: #ffffff;
}

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

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

ul {
  list-style: none;
}

/* ==========================================
   Container & Layout
========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   Header (Sticky)
========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  height: 40px;
  width: auto;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: #a68d6a;
}

.navigation ul {
  display: flex;
  gap: 30px;
}

.navigation a {
  color: #3c3c3c;
  font-weight: 500;
  position: relative;
}

.navigation a:hover {
  color: #a68d6a;
}

.navigation a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #a68d6a;
  transition: width 0.3s ease;
}

.navigation a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  gap: 15px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #a68d6a;
  transition: all 0.3s ease;
}

/* ==========================================
   Floating Badge (Global Notification)
========================================== */
.floating-badge {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #a68d6a;
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(166, 141, 106, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.floating-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(166, 141, 106, 0.5);
}

.badge-icon {
  font-size: 20px;
}

/* ==========================================
   Buttons
========================================== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 33px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #a68d6a;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #8f7555;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(166, 141, 106, 0.3);
}

.btn-secondary {
  background-color: #efe6dc;
  color: #3c3c3c;
}

.btn-secondary:hover {
  background-color: #e0d5c8;
}

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

.btn-outline:hover {
  background-color: #ffffff;
  color: #a68d6a;
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

/* ==========================================
   Hero Section
========================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(60, 60, 60, 0.6) 0%,
    rgba(166, 141, 106, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: #ffffff;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-headline {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subheadline {
  font-size: 20px;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
  background-color: #a68d6a;
  width: 30px;
  border-radius: 6px;
}

/* ==========================================
   Section Common Styles
========================================== */
section {
  padding: 100px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #3c3c3c;
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  color: #666666;
  margin-bottom: 60px;
}

/* ==========================================
   Value Proposition: Company Concept
========================================== */
.value-proposition {
  background: linear-gradient(135deg, #efe6dc 0%, #e8ded0 100%);
  position: relative;
}

.value-proposition::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(166, 141, 106, 0.3) 50%,
    transparent 100%
  );
}

.concept-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.concept-header .section-title {
  margin-bottom: 25px;
}

.concept-lead {
  font-size: 18px;
  line-height: 2;
  color: #666666;
  font-weight: 500;
}

.concept-content {
  max-width: 1100px;
  margin: 0 auto;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.concept-item {
  position: relative;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  padding: 40px;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  overflow: hidden;
}

.concept-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.concept-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(60, 60, 60, 0.2) 0%,
    rgba(60, 60, 60, 0.75) 100%
  );
  z-index: 1;
  transition: background 0.4s ease;
}

.concept-item:hover .concept-overlay {
  background: linear-gradient(
    to bottom,
    rgba(60, 60, 60, 0.3) 0%,
    rgba(60, 60, 60, 0.85) 100%
  );
}

.concept-text {
  position: relative;
  z-index: 2;
}

.concept-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.concept-description {
  font-size: 15px;
  line-height: 1.9;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.concept-footer {
  text-align: center;
  padding: 20px 0 0;
}

/* ==========================================
   Greeting Section
========================================== */
.greeting {
  background-color: #ffffff;
}

.greeting-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.greeting-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.greeting-text {
  padding: 20px 0;
}

.greeting-text .section-title {
  text-align: left;
  margin-bottom: 10px;
}

.greeting-name {
  font-size: 20px;
  color: #a68d6a;
  margin-bottom: 30px;
}

.greeting-text p {
  margin-bottom: 20px;
  line-height: 2;
}

.greeting-signature {
  font-style: italic;
  color: #a68d6a;
  font-weight: 500;
}

/* ==========================================
   Portfolio Section
========================================== */
.portfolio {
  background-color: #fafafa;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.portfolio-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 30px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #3c3c3c;
}

.card-description {
  color: #666666;
  margin-bottom: 20px;
  line-height: 1.8;
}

.card-link {
  color: #a68d6a;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.card-link:hover {
  color: #8f7555;
}

.portfolio-more {
  text-align: center;
}

/* ==========================================
   Testimonials Section
========================================== */
.testimonials {
  background-color: #ffffff;
}

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

.testimonial-card {
  background-color: #efe6dc;
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #a68d6a;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-rating {
  color: #ffb800;
  font-size: 20px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-size: 14px;
  color: #666666;
  font-weight: 500;
}

/* ==========================================
   Contact Section
========================================== */
.contact {
  background-color: #fafafa;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #a68d6a;
}

.contact-info p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.phone-number {
  font-size: 32px;
  font-weight: 700;
  color: #a68d6a;
  margin-bottom: 10px;
}

.business-hours {
  font-size: 14px;
  color: #666666;
  margin-bottom: 40px;
}

.contact-form {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #3c3c3c;
}

.required {
  color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dddddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #a68d6a;
}

.form-group textarea {
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.contact-form .btn {
  width: 100%;
}

/* ==========================================
   Footer
========================================== */
.footer {
  background-color: #3c3c3c;
  color: #ffffff;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-company h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #a68d6a;
}

.footer-company p {
  line-height: 1.8;
}

.footer-sitemap h4,
.footer-social h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #a68d6a;
}

.footer-sitemap ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-sitemap a:hover {
  color: #a68d6a;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #a68d6a;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 14px;
  color: #aaaaaa;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 14px;
  color: #aaaaaa;
}

.footer-links a:hover {
  color: #a68d6a;
}

/* ==========================================
   Responsive Design
========================================== */

/* Tablet (768px以下) */
@media (max-width: 768px) {
  .navigation {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .navigation.mobile-active {
    left: 0;
  }

  .navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
  }

  .navigation li {
    border-bottom: 1px solid #efe6dc;
  }

  .navigation a {
    display: block;
    padding: 15px 30px;
  }

  .navigation a::after {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .header-cta {
    display: none;
  }

  .hero-headline {
    font-size: 32px;
  }

  .hero-subheadline {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .concept-header {
    margin-bottom: 40px;
  }

  .concept-lead {
    font-size: 16px;
  }

  .concept-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
  }

  .concept-item {
    padding: 30px;
    min-height: 280px;
  }

  .concept-footer {
    padding: 10px 0 0;
  }

  .greeting-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .greeting-text .section-title {
    text-align: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .floating-badge {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .badge-text {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Mobile (480px以下) */
@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* Large Desktop (1400px以上) */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .header-container {
    max-width: 1400px;
  }
}

/* ==========================================
   Animations & Transitions
========================================== */

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ヘッダースクロール時のスタイル */
.header.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* フローティングバッジの表示アニメーション */
.floating-badge {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.floating-badge.visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   Page Header
========================================== */
.page-header {
  padding: 150px 0 80px;
  background-color: #efe6dc;
  text-align: center;
  margin-top: 25px;
}

.page-title {
  font-size: 42px;
  font-weight: 700;
  color: #3c3c3c;
  margin-bottom: 15px;
}

.page-subtitle {
  font-size: 18px;
  color: #666666;
}

/* ==========================================
   Portfolio Page
========================================== */
.portfolio-page {
  padding: 100px 0;
  background-color: #ffffff;
}

.card-details {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  padding: 10px 0;
  border-top: 1px solid #efe6dc;
  font-size: 14px;
  color: #666666;
}

/* ==========================================
   CTA Section
========================================== */
.cta-section {
  background-image: linear-gradient(
      rgba(166, 141, 106, 0.55),
      rgba(166, 141, 106, 0.55)
    ),
    url("../images/cta-section_img.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-subtitle {
  font-size: 18px;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.cta-section .btn-outline:hover {
  background-color: #ffffff;
  color: #a68d6a;
}

/* ==========================================
   Testimonials Page
========================================== */
.testimonials-page {
  padding: 100px 0;
  background-color: #fafafa;
}

.testimonial-detail {
  font-size: 13px;
  color: #999999;
  margin-top: 10px;
}

/* ==========================================
   About Page
========================================== */
.about-page {
  padding: 100px 0;
  background-color: #ffffff;
}

.about-mission {
  text-align: center;
  margin-bottom: 80px;
}

.mission-text {
  font-size: 18px;
  line-height: 2;
  color: #3c3c3c;
  margin-top: 30px;
}

.about-info {
  max-width: 900px;
  margin: 0 auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}

.company-table th,
.company-table td {
  padding: 20px;
  border-bottom: 1px solid #efe6dc;
  text-align: left;
}

.company-table th {
  width: 200px;
  font-weight: 500;
  color: #a68d6a;
  background-color: #fafafa;
}

.company-table td {
  color: #3c3c3c;
}

/* ==========================================
   Contact Page
========================================== */
.contact-page {
  padding: 100px 0;
  background-color: #fafafa;
}

@media (max-width: 768px) {
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 15px;
  }

  .company-table th {
    background-color: #efe6dc;
    border-bottom: none;
  }
}

/* ==========================================
   Case Detail Page
========================================== */

/* Breadcrumb */
.breadcrumb {
  background-color: #fafafa;
  padding: 120px 0 20px 0;
  border-bottom: 1px solid #efe6dc;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666666;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "›";
  margin-left: 10px;
  color: #999999;
}

.breadcrumb-list a {
  color: #a68d6a;
  transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
  color: #8a7252;
  text-decoration: underline;
}

/* Case Detail Hero */
.case-detail-hero {
  background-color: #fafafa;
  padding: 40px 0 60px 0;
}

.case-detail-title {
  font-size: 36px;
  font-weight: 700;
  color: #3c3c3c;
  margin-bottom: 20px;
  line-height: 1.4;
}

.case-detail-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #666666;
}

.meta-item svg {
  color: #a68d6a;
}

/* Case Detail Comparison */
.case-detail-comparison {
  padding: 80px 0;
  background-color: #ffffff;
}

.section-subtitle-case {
  font-size: 28px;
  font-weight: 700;
  color: #3c3c3c;
  text-align: center;
  margin-bottom: 15px;
}

.section-description {
  text-align: center;
  color: #666666;
  margin-bottom: 40px;
}

/* Case Detail Gallery */
.case-detail-gallery {
  padding: 80px 0;
  background-color: #fafafa;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.gallery-item {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-caption {
  padding: 20px;
  font-size: 14px;
  color: #3c3c3c;
  text-align: center;
  font-weight: 500;
}

/* Case Detail Content */
.case-detail-content {
  padding: 80px 0;
  background-color: #ffffff;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
}

.main-content {
  max-width: 800px;
}

.case-article h2 {
  font-size: 28px;
  font-weight: 700;
  color: #3c3c3c;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #a68d6a;
}

.case-article h3 {
  font-size: 22px;
  font-weight: 700;
  color: #3c3c3c;
  margin-top: 40px;
  margin-bottom: 15px;
}

.case-article h4 {
  font-size: 18px;
  font-weight: 600;
  color: #a68d6a;
  margin-top: 30px;
  margin-bottom: 12px;
}

.case-article p {
  line-height: 2;
  color: #3c3c3c;
  margin-bottom: 20px;
}

.detail-list {
  list-style: none;
  margin: 20px 0;
}

.detail-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.8;
  color: #3c3c3c;
}

.detail-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #a68d6a;
  font-weight: 700;
}

.detail-list li strong {
  color: #a68d6a;
  font-weight: 600;
}

.customer-voice {
  background-color: #fafafa;
  border-left: 4px solid #a68d6a;
  padding: 30px;
  margin: 40px 0;
  border-radius: 4px;
}

.customer-voice p {
  font-size: 16px;
  line-height: 2;
  color: #3c3c3c;
  margin-bottom: 15px;
}

.customer-voice cite {
  display: block;
  text-align: right;
  font-style: normal;
  font-size: 14px;
  color: #666666;
  margin-top: 20px;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.sidebar-card {
  background-color: #fafafa;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #3c3c3c;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #a68d6a;
}

.data-list {
  display: grid;
  gap: 15px;
}

.data-list dt {
  font-weight: 600;
  color: #a68d6a;
  font-size: 14px;
  margin-bottom: 5px;
}

.data-list dd {
  color: #3c3c3c;
  font-size: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.data-list dd:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-cta {
  background: linear-gradient(135deg, #a68d6a 0%, #8a7252 100%);
  color: #ffffff;
}

.sidebar-cta h3 {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.sidebar-cta p {
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 20px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
}

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

.sidebar-cta .btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.sidebar-cta .btn-outline:hover {
  background-color: #ffffff;
  color: #a68d6a;
}

/* Related Cases */
.related-cases {
  padding: 80px 0;
  background-color: #fafafa;
}

/* Responsive Design for Case Detail */
@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sidebar {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 100px 0 15px 0;
  }

  .breadcrumb-list {
    font-size: 12px;
  }

  .case-detail-hero {
    padding: 30px 0 40px 0;
  }

  .case-detail-title {
    font-size: 28px;
  }

  .case-detail-meta {
    gap: 15px;
  }

  .meta-item {
    font-size: 13px;
  }

  .section-subtitle-case {
    font-size: 24px;
  }

  .case-detail-comparison,
  .case-detail-gallery,
  .case-detail-content,
  .related-cases {
    padding: 50px 0;
  }

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

  .gallery-image {
    height: 200px;
  }

  .case-article h2 {
    font-size: 24px;
  }

  .case-article h3 {
    font-size: 20px;
    margin-top: 30px;
  }

  .case-article h4 {
    font-size: 17px;
    margin-top: 25px;
  }

  .sidebar-card {
    padding: 25px;
  }
}

/* ==========================================
   Before/After Comparison Slider
   ========================================== */

.case-detail-comparison {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.section-description {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  font-size: 15px;
}

.comparison-slider {
  max-width: 900px;
  margin: 0 auto;
}

.comparison-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background-color: #f5f5f5;
}

.comparison-image {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.comparison-image.active {
  opacity: 1;
  position: relative;
}

.comparison-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-button {
  flex: 1;
  max-width: 200px;
  padding: 15px 30px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.comparison-button:hover {
  border-color: #a68d6a;
  background-color: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comparison-button.active {
  background-color: #a68d6a;
  border-color: #a68d6a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(166, 141, 106, 0.3);
}

.button-label {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.button-sublabel {
  font-size: 13px;
  opacity: 0.8;
}

/* Responsive Design for Comparison Slider */
@media (max-width: 768px) {
  .case-detail-comparison {
    padding: 50px 0;
  }

  .comparison-controls {
    gap: 10px;
    margin-top: 20px;
  }

  .comparison-button {
    padding: 12px 20px;
  }

  .button-label {
    font-size: 16px;
  }

  .button-sublabel {
    font-size: 12px;
  }
}
