/* ========================================
   アップグレードセクション - スライダー
   ======================================== */

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

body {
  font-family: 'Qubena Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  line-height: 1.5;
  color: #212423;
  background: #fff;
}

/* アップグレードセクション */
.upgrade-section {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 80px;
  padding: 0 20px;
}

.upgrade-section__inner {
  position: relative;
  width: 100%;
}

/* ヘッダー */
.upgrade-section__header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 5;
}

.upgrade-section__subtitle {
  font-family: 'Qubena Gothic', sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: normal;
  color: #00cc88;
  margin: 20px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.upgrade-section__subtitle-deco {
  width: 23px;
  height: 30px;
  display: inline-block;
}

.upgrade-section__subtitle-deco--left {
  /* 通常の向き */
}

.upgrade-section__subtitle-deco--right {
  transform: rotate(180deg) scaleY(-1);
}

.upgrade-section__title {
  font-family: 'Qubena Gothic', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: normal;
  color: #212423;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-section__title-text {
  display: inline;
  align-self: flex-end;
}

.upgrade-section__title-person {
  width: 108px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
}

.upgrade-section__title-person img {
  width: 100%;
  height: auto;
  display: block;
}

/* SP表示用の改行を非表示 */
.sp-only {
  display: none;
}

/* スライダーラッパー */
.upgrade-section__slider-wrapper {
  position: relative;
  width: 1020px;
  margin: 0 auto;
  background: #c8f1e3;
  border-radius: 20px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.13);
  padding: 30px 0 60px;
}

/* 通常版なら吹き出し */
.upgrade-section__badge {
  position: absolute;
  top: 148px;
  left: 166px;
  width: 122px;
  height: 54px;
  z-index: 10;
}

.upgrade-section__badge-bubble {
  position: absolute;
  left: 0;
  top: 0;
  width: 122px;
  height: 54px;
}

.upgrade-section__badge-text {
  position: absolute;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  font-family: 'Qubena Gothic', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: #212423;
  text-align: center;
  letter-spacing: -0.176px;
  margin: 0;
  white-space: nowrap;
}

/* スライダー */
.upgrade-slider {
  width: 100%;
}

/* スライド */
.upgrade-slide {
  outline: none;
}

.upgrade-slide__content {
  position: relative;
  width: 719px;
  height: 262px;
  background: white;
  border-radius: 15px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.13);
  margin: 0 auto;
  display: flex;
  gap: 20px;
  padding: 50px 30px 40px 40px;
}

/* スライドテキスト */
.upgrade-slide__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.upgrade-slide__title {
  font-family: 'Qubena Gothic', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
  color: #00cc88;
  margin: 0 0 15px 0;
}

.upgrade-slide__description {
  font-family: 'Qubena Gothic', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: #000;
  margin: 0;
}

/* スライド画像エリア */
.upgrade-slide__image {
  width: 244px;
  height: 177px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-slide__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ダミー画像プレースホルダー */
.upgrade-slide__placeholder {
  width: 100%;
  height: 100%;
  background: #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.upgrade-slide__placeholder p {
  font-family: 'Qubena Gothic', sans-serif;
  font-size: 16px;
  color: #666;
  text-align: center;
  line-height: 1.5;
}

/* 矢印ボタン - 真ん中のスライドに半分重ねる */
.upgrade-slider__arrow {
  position: absolute;
  top: 56%;
  transform: translateY(-50%);
  width: 33px;
  height: 33px;
  background: transparent;
  border: 2px solid #00cc88;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
  padding: 0;
}

.upgrade-slider__arrow:hover {
  opacity: 0.7;
}

.upgrade-slider__arrow:focus {
  outline: none;
}

/* 左矢印: スライドの左端に半分重ねる */
.upgrade-slider__arrow--prev {
  left: 133px;
}

/* 右矢印: スライドの右端に半分重ねる */
.upgrade-slider__arrow--next {
  right: 133px;
}

.upgrade-slider__arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Slickドットインジケーターのカスタマイズ - 左右中央揃え */
.upgrade-slider .slick-dots {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.upgrade-slider .slick-dots li {
  margin: 0;
  padding: 0;
}

.upgrade-slider .slick-dots li button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d9d9d9;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  color: transparent;
  transition: background 0.3s ease;
}

.upgrade-slider .slick-dots li button:before {
  content: none;
}

.upgrade-slider .slick-dots li button:hover {
  background: #00cc88;
  opacity: 0.7;
}

.upgrade-slider .slick-dots li.slick-active button {
  background: #00cc88;
}

/* Slickのデフォルトスタイルを上書き - 隣のスライドをコンテナの端まで表示 */
.upgrade-slider .slick-list {
  overflow: hidden;
}

.upgrade-slider .slick-track {
  display: flex;
  align-items: center;
  gap: 47px;
}

.upgrade-slider .slick-slide {
  outline: none;
}

.upgrade-slider .slick-slide > div {
  outline: none;
}

/* センターモードでも隣のスライドの背景枠を完全表示 */
.upgrade-slider .slick-slide {
  opacity: 1;
}

/* ========================================
   レスポンシブ対応 - SP版（750px以下）
   ======================================== */
@media (max-width: 750px) {
  .upgrade-section {
    margin: 50px auto 100px;
    padding: 0 15px;
  }

  .upgrade-section__header {
    margin: 10px -20px 40px;
  }

  .upgrade-section__subtitle {
    font-size: 14px;
    gap: 6px;
  }

  .upgrade-section__subtitle-deco {
    width: 15px;
    height: 20px;
  }

  .upgrade-section__title {
    font-size: 18px;
  }

  .upgrade-section__title-text {
    display: block;
    line-height: 22px;
    font-size: 16px;
  }

  .upgrade-section__title-person {
    width: 64px;
    height: 54px;
    margin-top: 30px;
  }

  /* SP表示用の改行を表示 */
  .sp-only {
    display: inline;
  }

  /* スライダーラッパー - SP版 */
  .upgrade-section__slider-wrapper {
    width: 100%;
    max-width: 330px;
    padding: 0 15px 10px;
    border-radius: 10px;
  }

  /* 吹き出し - SP版 */
  .upgrade-section__badge {
    top: 105px;
    left: 30px;
    width: 138px;
    height: 60px;
  }

  .upgrade-section__badge-bubble {
    width: 138px;
    height: 60px;
  }

  .upgrade-section__badge-text {
    font-size: 17.429px;
  }

  /* スライド - SP版 */
  .upgrade-slide__content {
    width: 100%;
    max-width: 300px;
    height: auto;
    flex-direction: column;
    padding: 40px 30px 30px 30px;
    border-radius: 10px;
  }

  .upgrade-slide__text {
    order: 1;
    width: 230px;
  }

  .upgrade-slide__title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .upgrade-slide__description {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .upgrade-slide__image {
    width: 100%;
    height: 180px;
    margin-top: -20px;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 矢印ボタン - SP版 */
  .upgrade-slider__arrow {
    width: 28px;
    height: 28px;
    top: 50%;
  }

  .upgrade-slider__arrow--prev {
    left: 5px;
  }

  .upgrade-slider__arrow--next {
    right: 5px;
  }

  /* ドット - SP版 */
  .upgrade-slider .slick-dots {
    bottom: -30px;
    gap: 8px;
  }

  .upgrade-slider .slick-dots li button {
    width: 8px;
    height: 8px;
  }
}

/* ========================================
   PC版縮小対応（1200px以下、960px以下）
   ======================================== */
@media (min-width: 751px) and (max-width: 1200px) {
  .upgrade-section {
    transform-origin: top center;
    margin: 0 auto 80px;
  }
}
