/* ========================================
   Front Page Specific Styles
   Scope: body.home (WordPress front page)
   Breakpoints:
     - <=480px: Mobile
     - 481-768px: Tablet (portrait)
     - 769-1024px: Tablet (landscape) / Notebook
     - >=1025px: Desktop
======================================== */

/* ========================================
   Services Section
======================================== */
body.home .services-section {
  padding: 120px 0;
}

/* 481px以上では「View More」を右寄せ用の余白に */
@media (min-width: 481px) {
  .products-section .view-more-btn {
    margin-right: 20px;
  }
}

.services-section .container {
  max-width: 1200px;
}

.services-wrapper {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto;
  gap: 60px;
  align-items: start;
}

.services-title-area {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.services-title-area .section-title {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

.services-title-area .section-title-en {
  display: block;
}

.services-wrapper .view-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #11312B;
  color: #fff;
  width: 160px;
  height: 50px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

.services-wrapper .view-more-btn:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  grid-column: 2;
  grid-row: 1 / 3;
}

.service-card {
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}



.service-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: 0;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 30px 30px 0;
  color: var(--text-dark);
}

.service-card p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 2;
  padding: 0 30px 40px;
}

/* ========================================
   Strengths Section
======================================== */
body.home .strengths-section {
  padding: 120px 0;
  background: linear-gradient(to top right, #0eb054, #13653b);
  color: #fff;
}

.strengths-section .container {
  max-width: none;
  padding-left: calc((100vw - 1200px) / 2);
  padding-right: 0;
}

.strengths-wrapper {
  display: grid;
  grid-template-columns: 350px 1fr;
  grid-template-rows: auto;
  gap: 60px;
  align-items: start;
}

.strengths-title-area {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.strengths-title-area .section-title {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
  color: #fff;
}

.strengths-title-area .section-title-en {
  display: block;
  color: rgba(255, 255, 255, 0.8);
}

.strengths-wrapper .view-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #11312B;
  color: #fff;
  width: 160px;
  height: 50px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

.strengths-wrapper .view-more-btn:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.strengths-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
}

.strength-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  border-radius: 40px 0 0 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  height: 240px;
  overflow: hidden;
}

.strength-image {
  width: 360px;
  height: 240px;
  object-fit: cover;
  flex-shrink: 0;
  order: 2;
  margin: 0;
  padding: 0;
}

.strength-content {
  flex: 1;
  order: 1;
  text-align: left;
}

.strength-content h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-dark);
  padding: 30px 30px 0;
}

.strength-content h3 .strength-note {
  font-size: 20px;
  font-weight: 400;
}

/* ========================================
   Products Section (Carousel)
======================================== */
body.home .products-section {
  margin: 120px 0 0;
  padding: 0;
  overflow-x: hidden;
}

.products-section .container {
  display: flex;
  flex-direction: column;
}

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



.products-header .section-title {
  flex: 1;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.products-header .section-title-en {
  display: block;
}

.products-section .view-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #11312B;
  color: #fff;
  width: 160px;
  height: 50px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.products-section .view-more-btn:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.products-carousel {
  position: relative;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
}

.products-carousel .slick-list {
  /* Desktop: Add left padding */
  padding: 10px 0 10px 160px;
}

.products-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.product-card {
  width: 400px;
  height: 400px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
}

.product-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 15px 15px 0 15px;
}

.product-card p {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-gray);
  padding: 0 15px 15px 15px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  justify-content: center;
}

.carousel-btn {
  background: var(--text-dark);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

/* Slick Carousel Arrow Styles for Products Section */
.products-carousel .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
  color: #333;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.products-carousel .slick-arrow:hover {
  background: #fff;
  border-color: #ccc;
}
.products-carousel .slick-prev { left: -25px; }
.products-carousel .slick-next { right: -25px; }

/* Remove default slick arrow pseudo-element */
.products-carousel .slick-arrow::before {
  content: none;
}

/* Hide disabled slick arrows */
.products-carousel .slick-arrow.slick-disabled {
  display: none !important;
}


/* ========================================
   News Section
======================================== */
body.home .news-section {
  padding: 120px 20px;
}

.news-section .container {
  max-width: 1160px;
  background: #ffffff;
  border-radius: 54px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 80px 120px;
}

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

.news-header .section-title {
  flex: 1;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.news-header .section-title-en {
  display: block;
}

.news-header .view-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #11312B;
  color: #fff;
  width: 160px;
  height: 50px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.news-header .view-more-btn:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Mobile-only View More under the list */
.news-view-more-mobile {
  display: none; /* PCでは非表示 */
}

.news-list {
  border-top: 1px solid #222222;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom:  1px solid #e0e0e0;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 14px;
  color: var(--text-gray);
  min-width: 100px;
}

.news-title {
  font-size:  15px;
  color: var(--text-dark);
}

.news-category {
  display: inline-block;
  background: var(--primary-green);
  color: #fff;
  padding: 3px 12px;
  border-radius:  3px;
  font-size:  12px;
  margin-left: 15px;
}

/* ========================================
   Front Page Responsive Design
======================================== */
@media (max-width: 1024px) {
  .services-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  
  .services-title-area {
    min-width: auto;
  }
  
  .services-title-area .section-title {
    writing-mode: horizontal-tb;
    text-orientation: initial;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .strengths-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  .strengths-title-area {
    min-width: auto;
  }
}

@media (min-width: 769px) {
  body.home .strengths-section {
    padding-left: 20px;
  }
  .products-section .view-more-mobile {
    display: none;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .strengths-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 30px 0;
  }

  .strengths-title-area {
    grid-column: 1;
    grid-row: 1;
  }

  /* View Moreをタイトルと横並び */
  .strengths-wrapper .view-more-btn {
    grid-column: 2;
    grid-row: 1;
    width: 160px;
    height: 50px;
    margin-right: 20px;
    align-self: flex-start;
  }

  .strengths-list {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .products-section .view-more-btn {
    margin-right: 20px;
  }
}

@media (max-width: 768px) {
  /* strengths-section: モバイルでは標準コンテナ余白に戻す */
  .strengths-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
  }
  .services-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  
  .services-title-area .section-title {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    margin-bottom: 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .strengths-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .strengths-title-area {
    order: 1;
  }
  
  .strengths-list {
    order: 2;
  }
  
  .strengths-wrapper .view-more-btn {
    order: 3;
    width: 160px;
    height: 50px;
    text-align: center;
    margin: 0 auto;
  }
  
  .strength-card {
    flex-direction: column;
    padding: 0;
    border-radius: 40px;
    height: auto;
    gap: 0px;
  }
  
  .strength-image {
    width: 100%;
    height: auto;
    order: 1;
  }
  
  .strength-content {
    order: 2;
    text-align: left; /* スマホ/タブレットでも左揃え */
    width: 100%;
  }
  
  .strength-content h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-dark);
    padding: 30px 30px 40px;
  }
  
  .products-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Hide desktop button on mobile/tablet */
  .products-header .view-more-btn {
    display: none;
  }

  .products-carousel-wrapper {
    margin-top: 40px;
  }

  /* Center mobile button in products section */
  .products-section .view-more-mobile {
    margin: 40px auto 0;
  }

  /* Show mobile button in products section */
  .products-section .view-more-mobile {
    display: flex !important;
  }

  .products-carousel .slick-list {
    padding: 10px 20px;
  }

  .contact-buttons {
    flex-direction: column;
  }
  
  .news-item {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  /* News: show View More below list on mobile/tablet */
  body.home .news-section .news-header .view-more-btn {
    display: none; /* PC用のボタンを非表示 */
  }
  body.home .news-section .news-view-more-mobile {
    display: flex; /* モバイル用のボタンを表示 */
    align-items: center;
    justify-content: center;
    background: #11312B;
    color: #fff;
    width: 160px;
    height: 50px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin: 20px auto 0;
  }
}

/* スマホ(<=480px)ではニュースのView More余白を40pxに上書き */
@media (max-width: 480px) {
  body.home .news-section .news-view-more-mobile { margin: 40px auto 0; }
}

/* Contact: stack vertically at <=1024px */
@media (max-width: 1024px) {
  .contact-section .container { flex-direction: column; align-items: center; gap: 20px; }
  .contact-buttons { flex-direction: column; gap: 16px; align-items: center; justify-content: center; }
}

/* Contact: 769-1024px buttons horizontal under heading */
@media (max-width: 1024px) and (min-width: 769px) {
  .contact-buttons { flex-direction: row; gap: 20px; justify-content: center; align-items: center; }
}

/* Contact: 481-1024px heading left aligned (original position) */
@media (max-width: 1024px) and (min-width: 481px) {
  .contact-section .container { align-items: stretch; }
  .contact-section .section-title { text-align: left; }
}

/* Mobile: adjust container padding for news/contact */
@media (max-width: 480px) {
  .news-section .container,
  .contact-section .container {
    padding: 80px 40px;
  }
}

@media (max-width: 480px) {
  /* strengths-section: スマホでは右端にくっつけない */
  .strengths-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
  }
  .services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 00px;
  }
  
  .services-title-area {
    order: 1;
  }
  
  .services-grid {
    order: 2;
    grid-template-columns: 1fr;
  }
  
  .services-wrapper .view-more-btn {
    order: 3;
    width: 160px;
    height: 50px;
    text-align: center;
    margin: 20px auto 0;
  }
  
  .services-title-area .section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .services-title-area .section-title-en {
    margin-bottom: 30px;
  }
  
  .strengths-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  
  .strengths-title-area {
    order: 1;
  }
  
  .strengths-list {
    order: 2;
  }
  
  .strengths-wrapper .view-more-btn {
    order: 3;
    width: 160px;
    height: 50px;
    text-align: center;
    margin: 20px auto 0;
  }
  
  .strengths-title-area .section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .strength-card {
    padding: 0;
    flex-direction: column; /* 明示的に縦並び */
    height: auto;
    gap: 0;
    border-radius: 40px;
  }
  
  .strength-image {
    height: auto;
    width: 100%; /* 画像をカード幅いっぱいに */
    order: 1;    /* 画像を上、テキストを下に */
  }
  
  .strength-content h3 {
    padding: 30px 30px 40px;
  }
  
  @media (min-width: 1025px) {
    .products-section .container {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }
  }
  
  .products-header {
    order: 1;
  }
  
  .products-carousel {
    order: 2;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
  }
  
  .products-section .view-more-btn {
    order: 3;
    width: 160px;
    height: 50px;
    margin: 40px auto 0;
  }
  
  .product-image {
    height: auto;
  }
}

/* スマホ(<=480px)のヒーローセクションのスライダー画像を調整 */
@media (max-width: 480px) {
  .hero-slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
  }
  .hero-content {
    top: 84px;
  }
}
