/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 4rem 0;
}

.bg-white {
  background-color: #fff;
}

.bg-light {
  background-color: #f8f9fa;
}

.bg-accent {
  background-color: #005bbb;
  color: #fff;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #203764;
}

.section-text {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 0%;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: auto;
}

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

.hero-slider .slide.active {
  opacity: 1;
  position: relative;
}

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

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

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

.hero-subtitle {
  font-size: 1.1rem;
}

.hero-history {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.slider-nav button {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.product-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.product-card {
  flex: 1 1 300px;
  max-width: 350px;
  background: #fff;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  border-radius: 4px;
}

.product-card h3 {
  font-size: 1.4rem;
  color: #203764;
  margin: 1rem 0;
}

.product-card p {
  font-size: 1rem;
}

.cta-button {
  display: inline-block;
  background: #005bbb;
  color: #fff;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
}

.cta-button:hover {
  background: #004499;
}

.cta-button.tel-button {
  background: #28a745;
}

.cta-button.tel-button:hover {
  background: #218838;
}

.cta-button.small {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* ギャラリースライダー共通 */
.gallery-slider-wrapper {
  position: relative;
  margin-top: 2rem;
  overflow: visible;
  /* ← ここを visible に変更 */
}

.gallery-slider {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.gallery-slider .slide {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 250px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: zoom-in;
}

/* 拡大アイコン表示 */
.gallery-slider .slide::after {
  content: "\f00e";
  /* FontAwesome: 検索虫眼鏡 */
  font-family: "Font Awesome 5 Free";
  /* ※読み込み済前提 */
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  position: absolute;
  bottom: 8px;
  right: 8px;
  pointer-events: none;
  z-index: 1;
}

/* モバイル時のスワイプ対応 */
@media (max-width: 768px) {
  .gallery-slider {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .gallery-slider .slide {
    width: 80vw;
    flex-shrink: 0;
  }

  .gallery-nav {
    display: none;
  }
}

/* モーダル */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.gallery-modal-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}

.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}




.sales-highlight {
  text-align: center;
  padding: 4rem 1rem;
}

.sales-highlight p {
  font-size: 1.4rem;
  font-weight: bold;
}

.sales-highlight span {
  display: block;
  margin-top: 0.5rem;
  font-weight: normal;
}

.news-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #333;
  border: 2px solid #005bbb;
  background-color: #f6f9fc;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-link:hover {
  background-color: #e0f0ff;
  border-color: #0066cc;
  transform: translateY(-2px);
}

.news-date {
  font-weight: bold;
  font-size: 0.95rem;
  color: #555;
  min-width: 100px;
  flex-shrink: 0;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-new {
  background-color: #d90000;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.flow-section {
  background-color: #f8f9fa;
  padding: 4rem 1rem;
}

.flow-steps {
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
}

.flow-steps li {
  position: relative;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem 1rem 1rem 3.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  line-height: 1.6;
}

.flow-steps li:hover {
  transform: translateY(-2px);
  transition: transform 0.2s;
}

.flow-steps .step-number {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  background: #005bbb;
  color: #fff;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cta-box {
  text-align: center;
}

.contact-hours {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

@media(max-width:768px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .product-card {
    flex: 1 1 100%;
  }
}