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

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Shippori Mincho", serif;
  background-color: white;
  color: #000;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 100px;
}

.container {
  max-width: 1345px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  font-weight: 400;
}

.mobile-br {
  display: inline;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 0;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 555px;
  width: 100%;
}

.logo {
  width: 100px;
  margin-bottom: -30px;
}

.logo svg {
  width: 100%;
  height: auto;
}

.hero-tagline {
  font-size: 0.875rem;
  margin-top: 2rem;
  line-height: 2;
  letter-spacing: 0.09em;
}

.hero-heading {
  margin-top: 1rem;
}

.hero-heading h1 {
  letter-spacing: 0.1em;
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1.49;
}

/* .hero-features {
  margin-top: 1rem;
} */

.hero-features p {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.hero-right {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.slideshow-container {
  width: 70%;
  margin: 0 auto;
  position: relative;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

.slideshow-wrapper {
  position: relative;
}

.slide {
  width: 100%;
  height: auto;
  opacity: 0;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: opacity 0.7s ease;
  mix-blend-mode: darken;
  filter: brightness(1.1) contrast(1.05);
}

.slide.active {
  opacity: 0.7;
  position: relative;
  z-index: 10;
}

.slideshow-indicators {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 20;
}

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

.slideshow-indicators .indicator:hover {
  transform: scale(1.25);
}

.slideshow-indicators .indicator.active {
  background-color: white;
  transform: scale(1.1);
}

/* Features Section */
.features-section {
  background-color: white;
  padding: 4rem 0;
}

.mobile-carousel {
  display: none;
  overflow-x: auto;
  padding: 0 1rem;
}

.carousel-wrapper {
  display: flex;
  gap: 1.25rem;
  width: max-content;
}

.feature-card,
.step-card {
  display: flex;
  flex-direction: column;
  width: 65vw;
  flex-shrink: 0;
}

.feature-card h3,
.step-card h3 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 400;
  /* text-align: center; */
}

.feature-image {
  background-color: #efefef;
  aspect-ratio: 1;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.8;
}

.mobile-indicators {
  display: none;
  margin-top: 2rem;
  gap: 1rem;
  justify-content: center;
}

.mobile-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d4d4d4;
  transition: all 0.3s;
}

.mobile-indicators .indicator.active {
  background-color: black;
  transform: scale(1.1);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1345px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  flex-direction: column;
}

.feature-item h3 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 400;
  /* text-align: center; */
}

/* Steps Section */
.steps-section {
  background-color: #fffbf3;
  padding: 4rem 0;
}

.step-image {
  background-color: #d9d9d9;
  aspect-ratio: 1;
  overflow: hidden;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.8;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1345px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  flex-direction: column;
}

.step-item h3 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 400;
  /* text-align: center; */
}

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

/* Audience Section */
.audience-section {
  background-color: white;
  padding: 4rem 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* gap: 2rem; */
  max-width: 1000px;
  margin: 0 auto;
}

.audience-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.audience-icon {
  max-width: 80px;
  width: 51px;
  height: 128px;
  height: 85px;
  flex-shrink: 0;
}

.audience-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.7;
}

.audience-item p {
  font-size: 0.875rem;
}

/* Samples Section */
.samples-section {
  background-color: #fffbf3;
  padding: 4rem 0;
}

.samples-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 1345px;
  margin: 0 auto;
}

.samples-carousel-container {
  position: relative;
  width: 100%;
  max-width: 768px;
}

.samples-carousel {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.sample-image {
  position: relative;
  transform: rotate(2deg);
}

.sample-image img {
  width: 192px;
  height: auto;
  opacity: 0.7;
  /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
}

.samples-indicators {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.samples-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d4d4d4;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.samples-indicators button:hover {
  transform: scale(1.25);
}

.samples-indicators button.active {
  background-color: #94aeb5;
  transform: scale(1.1);
}

.samples-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
  margin-right: 2rem;
}
/* Samples Section用 Swiper設定 */
.samples-section .swiper {
  width: 100%;
  /* 画像の高さ(300px想定) ＋ 丸ぽっちまでの隙間(50px) ＋ 丸ぽっちの高さ(20px) */
  height: 370px;
  padding-bottom: 70px; /* 画像の下に余白を作る */
  box-sizing: border-box;
}

.samples-section .swiper-slide {
  height: 100%; /* 親要素の高さに合わせる */
  overflow: hidden;
  cursor: pointer;
}

.samples-section .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /* clip-path: inset(0 20px 0 20px); */
}

/* リンクタグ（a）が隙間なく広がるようにする */
.samples-section .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

/* 丸ぽっちを一番下に固定 */
.samples-section .swiper-pagination {
  bottom: 0 !important;
}

/* 丸ぽっちのアクティブ色（必要なら変更） */
.samples-section .swiper-pagination-bullet-active {
  background: #555;
}

.fancybox__container {
  background-color: rgba(24, 24, 27, 0.4) !important;
}

.feature-point {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.circle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #d4d4d4;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.feature-point p {
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Trial Section */
.trial-section {
  background-color: white;
  padding: 4rem 0;
}

.trial-section .container {
  max-width: 1406px;
  width: 100%;
}

.trial-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 1345px;
  margin: 0 auto;
  justify-content: space-between;
}

.trial-text {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 640px;
}

.trial-description {
  font-size: 0.97rem;
  line-height: 2;
}

.trial-notes {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.trial-notes p {
  margin-bottom: 0.25rem;
}

.trial-image {
  position: relative;
  /* transform: rotate(-2deg); */
}

.trial-image img {
  width: 100%;
  max-width: 886px;
  height: auto;
  /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
}

/* CTA Section */
.cta-section {
  background-color: #94aeb5;
  padding: 4rem 0;
}

.cta-section .section-title {
  margin-bottom: 2.8rem;
  line-height: 1.5;
}

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

.cta-button {
  background-color: #fffbf3;
  padding: 1.25rem 2rem;
  border: none;
  cursor: pointer;
  font-family: "Shippori Mincho", serif;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: white;
}

.cta-button a {
  color: #000 !important;
  text-decoration: none;
}

.cta-note {
  font-size: 0.75rem;
  text-align: center;
}

/* Footer */
.footer {
  background-color: #3d5d66;
  padding: 1rem 0;
}

.footer p {
  color: white;
  font-size: 0.875rem;
  line-height: 4.29;
  text-align: center;
}

/* Fixed Bottom Banner */
.fixed-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: #94aeb5;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.fixed-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem 0;
}

.fixed-banner-text {
  font-size: 0.875rem;
  line-height: 1.6;
}

.text-black {
  color: black;
}

.text-yellow {
  color: #fff046;
  font-weight: 500;
}

.fixed-banner-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Shippori Mincho", serif;
  transition: opacity 0.3s;
}

.fixed-banner-button:hover {
  opacity: 0.9;
}

.fixed-banner-button svg {
  width: 12px;
  height: 12px;
}

/* Tablet Styles (640px and up) */
@media (min-width: 640px) {
  .mobile-br {
    display: none;
  }

  .mobile-carousel {
    display: none !important;
  }

  .mobile-indicators {
    display: none !important;
  }

  .features-grid,
  .steps-grid {
    display: grid;
  }
}

/* Mobile Styles */
@media (max-width: 639px) {
  .mobile-carousel {
    display: block;
  }

  .mobile-indicators {
    display: flex;
  }

  .features-grid,
  .steps-grid {
    display: none;
  }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 4rem;
  }

  .hero-section {
    min-height: 900px;
  }

  .container {
    padding: 0 2rem;
  }

  .hero-content {
    flex-direction: row;
    gap: 4rem;
    padding: 3rem 0 65px;
  }

  .hero-left {
    gap: 3rem;
  }

  .logo {
    width: 133px;
  }

  .hero-tagline {
    font-size: 1rem;
    margin-top: 3rem;
  }

  .hero-heading h1 {
    /* font-size: 2.6875rem; */
    font-size: 2.4rem;
  }

  .hero-features p {
    font-size: 1rem;
  }

  .hero-right {
    max-width: 650px;
  }

  .features-section,
  .steps-section,
  .audience-section,
  .samples-section,
  .trial-section,
  .cta-section {
    padding: 8rem 0;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .feature-item h3,
  .step-item h3 {
    margin-bottom: 1.5rem;
    white-space: nowrap;
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .audience-item p {
    font-size: 1rem;
  }

  .samples-content {
    margin-right: max(0px, calc((100vw - 1200px) / 2));
    max-width: 100%;
    flex-direction: row;
  }

  .sample-image img {
    width: 256px;
  }

  .feature-point p {
    font-size: 0.875rem;
  }

  .trial-content {
    flex-direction: row;
    gap: 4rem;
  }

  .trial-description {
    font-size: 1.125rem;
    line-height: 2.66;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .cta-button {
    font-size: 1rem;
  }

  .cta-note {
    font-size: 0.875rem;
  }

  .fixed-banner-content {
    gap: 0.75rem;
    padding: 1.5rem 0;
  }

  .fixed-banner-text {
    font-size: 1rem;
  }

  .fixed-banner-button {
    font-size: 1rem;
  }

  .fixed-banner-button svg {
    width: 16px;
    height: 16px;
  }
  .audience-icon {
    width: 80px; /* 親要素に合わせて調整する場合 */
  }

  .audience-icon img {
    width: 100%;
    height: auto; /* 比率を保つためにauto推奨 */
  }
}

/* Sample carousel desktop only */
@media (min-width: 1024px) {
  .samples-carousel {
    display: flex;
  }

  .samples-carousel.mobile-only {
    display: none;
  }
}

@media (max-width: 1023px) {
  .sample-image img {
    width: 256px;
  }
  .audience-grid {
    justify-items: center; /* グリッド内のアイテムを中央に寄せる */
  }

  .audience-item {
    width: 100%; /* スマホ幅からはみ出ないように */
    max-width: 350px; /* ここで幅を固定して、左端（アイコン位置）を揃える */
    margin: 0 auto;
  }

  .circle-icon {
    width: 20px;
    height: 20px;
  }
  .samples-features {
    margin-right: 0rem;
  }
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 4rem;
}
.logo img {
  width: clamp(80px, 6.93vw, 133px);
}

/* タブレットサイズ（640px 〜 1023px）のみ適用 */
@media (min-width: 640px) and (max-width: 1023px) {
  .features-grid,
  .steps-grid {
    /* 現在の 1.25rem から広げる */
    row-gap: 3rem;
  }
}

/* =========================================
   Fancybox デザイン修正（背景透過版）
========================================= */

/* 1. 背景を「半透明の黒」にする（ここが修正箇所） */
body .fancybox__backdrop {
  /* ご提示いただいたコードと同じ設定 */
  background: rgba(0, 0, 0, 0.5);

  /* 以前の opacity: 1 !important; は削除するか、
     Fancyboxのアニメーションを活かすために指定しないのがベストです */
}

/* 2. 閉じるボタン（右上の×）を「白」にする */
/* 背景が暗くなるため、黒ボタンだと見えなくなります */
body .f-button--close {
  background: transparent;
  color: #fff; /* ★ここを白に変更 */
  opacity: 0.8;
}

body .f-button--close:hover {
  background: rgba(255, 255, 255, 0.1); /* ホバー時にうっすら白く */
  opacity: 1;
}

/* --- 以下は前回のまま（下部のナビゲーションなど） --- */

/* ツールバーの背景透明化 */
body .fancybox__toolbar {
  background: transparent;
  text-shadow: none;
  padding: 20px;
}

/* ナビゲーションエリアを画面下に固定 */
body .fancybox__nav {
  display: flex !important;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 50px;
  left: 0;
  width: 100%;
  height: auto;
  top: auto;
  pointer-events: none;
}

/* 中央の線 */
body .fancybox__nav::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.5); /* ★線の色も少し明るく調整 */
  margin: 0 20px;
}
body .f-button--prev {
  order: 1;
}
body .fancybox__nav::after {
  order: 2;
}
body .f-button--next {
  order: 3;
}

/* 矢印ボタンのデザイン（白丸のまま） */
body .f-button--prev,
body .f-button--next {
  position: relative;
  width: 56px;
  height: 56px;
  border: 1px solid #fff; /* ★枠線を白に変更 */
  background: transparent; /* ★背景を透明に（お好みで #fff にしてもOK） */
  color: #fff; /* ★矢印の色を白に */
  border-radius: 50%;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

/* ホバー時の挙動 */
body .f-button--prev:hover,
body .f-button--next:hover {
  background: rgba(255, 255, 255, 0.2); /* 半透明の白 */
  border-color: #fff;
}
