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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "A P-OTF A1 Mincho StdN", "A-OTF A1 Mincho Std", "A1 Mincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
  background-color: #ffffff;
  color: #4a4a4a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.gothic {
  font-family: "Zen Kaku Gothic New", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", "游ゴシック", sans-serif;
  font-weight: 500;
}

.mincho {
  font-family: "A P-OTF A1 Mincho StdN", "A-OTF A1 Mincho Std", "A1 Mincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
}

/* ふわっとフェードイン */
.fade-soft {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

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

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

/* メインラッパー */
.lp {
  max-width: 750px;
  margin: 0 auto;
  background-color: #ffffff;
  overflow: hidden;
}

/* セクション共通 */
.lp section {
  width: 100%;
  font-size: 0;
  line-height: 0;
}

.lp section img {
  width: 100%;
  display: block;
  vertical-align: top;
}

.lp section .cta {
  font-size: 16px;
  line-height: 1.6;
}

/* ヒーロー */
.hero {
  background-color: #ffffff;
}

/* リンク画像 */
.img-link {
  display: block;
  transition: opacity 0.25s ease;
}
.img-link:hover {
  opacity: 0.85;
}

/* 画像下部の余白をクリップするラッパー */
.img-clip {
  width: 100%;
  overflow: hidden;
  display: block;
  font-size: 0;
  line-height: 0;
}
.img-clip img {
  width: 100%;
  display: block;
}

/* 6.jpg: 1200x1665 → 下部262pxの余白を削る (1200x1403) */
.clip-6 {
  aspect-ratio: 1200 / 1403;
}

/* 8.jpg: 1200x1333 → 下部312pxの余白を削る (1200x1021) */
.clip-8 {
  aspect-ratio: 1200 / 1021;
}

/* 13.jpg: 1200x1079 → 下部346pxの余白を削る (1200x733) */
.clip-13 {
  aspect-ratio: 1200 / 733;
}

/* CTAボタン */
.cta {
  text-align: center;
  padding: 16px 5% 24px;
  background-color: #ffffff;
  margin: 0;
}

.cta-final {
  padding: 16px 5% 40px;
}

.btn-banner {
  display: inline-block;
  width: 90%;
  max-width: 560px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.btn-banner:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.btn-banner:active {
  transform: translateY(0);
}

.btn-banner img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(193, 142, 138, 0.25));
}

/* セクション間の区切り背景の調整 */
.courses-top,
.message,
.voice,
.emotion {
  background-color: #ffffff;
}

/* 6.jpg / 13.jpg はクリーム背景 */
.greeting,
.courses-bottom {
  background-color: #f6f5f1;
}

/* CTAの背景は直前画像の色に合わせる */
.courses-top .cta {
  background-color: #ffffff;
}
.greeting .cta {
  background-color: #f6f5f1;
}
.message .cta {
  background-color: #f6f5f1;
}
.voice .cta {
  background-color: #f6f5f1;
}
.courses-bottom .cta {
  background-color: #f6f5f1;
}

.recipients,
.merit,
.support {
  background-color: #ffffff;
  padding: 0;
  font-size: 0;
}

.recipients img,
.merit img,
.support img {
  display: block;
  margin: 0;
}

/* ご利用の流れ（スライダー） */
.flow {
  background-color: #ffffff;
  padding: 0 0 24px;
  font-size: 0;
}

.flow-title {
  margin: 0;
  display: block;
}

.slider {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding-top: 16px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 4%;
}

.slide img {
  width: 100%;
  height: auto;
}

/* スライダーボタン */
.slider-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #c18e8a;
  font-size: 28px;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 4px;
  z-index: 5;
}

.slider-btn:hover {
  background: #c18e8a;
  color: #fff;
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn.prev {
  left: 8px;
}

.slider-btn.next {
  right: 8px;
}

/* ドット */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d9cfc4;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s;
}

.dot.active {
  background-color: #c18e8a;
  transform: scale(1.25);
}

.dot:hover {
  background-color: #b87b76;
}

/* レスポンシブ */
@media (max-width: 480px) {
  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .slider-btn.prev {
    left: 4px;
  }

  .slider-btn.next {
    right: 4px;
  }

  .cta {
    padding: 20px 4% 28px;
  }
}

@media (min-width: 768px) {
  .slide {
    padding: 0 8%;
  }
}

/* 15.jpg in .voice: overlay button on the empty area inside the image */
.voice .voice-wrap {
  position: relative;
}

.voice .cta-overlay {
  position: absolute;
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 5%;
  background: transparent;
}

.voice .cta-overlay.cta-final {
  padding-top: 0;
  padding-bottom: 0;
}
