@charset "UTF-8";

/* .concept の幅を上書き（既存定義は触らず、修飾クラスで対応） */
#about .concept_carousel {
  width: 1148px;
}

/* h2 直下のリード文 */
#about .ai_carousel_lead {
  margin-top: 8px;
  color: #296767;
  font-size: 2rem;
  font-weight: 400;
  line-height: 2.3;
  letter-spacing: 0.05em;
  text-align: center;
}

/* カルーセル本体ラッパー */
#about .ai_carousel_body {
  position: relative;
  width: 100%;
  align-self: stretch;
  margin-top: 40px;
}

/* 白背景カード */
#about .ai_carousel_card {
  position: relative;
  width: 1080px;
  max-width: 100%;
  height: 448px;
  margin: 0 auto;
  padding: 48px 56px 48px 64px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 0 3.3px #BDDAD4;
  box-sizing: border-box;
  overflow: visible;
}

/* タグ列（絶対配置でSwiperの上に重ねる・静止） */
#about .ai_carousel_tags {
  position: absolute;
  top: 48px;
  left: 64px;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
}
#about .ai_carousel_tags_scroll {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
#about .ai_carousel_tag {
  position: relative;
  padding: 6px 16px 4px;
  background: #fff;
  border: 1px solid #79B1B1;
  border-radius: 29px;
  color: #79B1B1;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
#about .ai_carousel_tag.current {
  background: #1C9898;
  border-color: #1C9898;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 9px #BDDAD4;
}
#about .ai_carousel_tag.current::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 50%;
  width: 6.74px;
  height: 6.74px;
  background: #1C9898;
  border-radius: 50%;
  transform: translateX(-50%);
}

/* ステージ（Swiper・カード全高を使用） */
#about .ai_carousel_stage {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
#about .swiper.ai_carousel_swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
/* case_carousel.css が .swiper-slide を素セレクタで指定しているため、こちらで打ち消す */
#about .ai_carousel_swiper .swiper-wrapper {
  height: 100%;
}
#about .ai_carousel_swiper .swiper-slide {
  max-width: none;
  width: auto;
  height: 100%;
  flex-shrink: 0;
  background: #fff;         /* fade非crossで下のスライドが透けないよう白で覆う */
  border-radius: 0;
  box-shadow: none;
}

/* 左右の丸ボタン */
#about .ai_carousel_prev,
#about .ai_carousel_next {
  position: absolute;
  top: 50%;
  width: 66px;
  height: 66px;
  padding: 0;
  background: #DBE9E5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 2;
  transition: opacity 0.2s;
}
#about .ai_carousel_prev { left: -33px; }
#about .ai_carousel_next { right: -33px; }

/* ページネーション（白カードの下・中央揃え） */
#about .ai_carousel_pagination {
  position: static;         /* Swiper標準の絶対配置を打ち消し */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin-top: 40px;
}
#about .ai_carousel_pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  margin: 0;                /* Swiper標準の左右marginを打ち消し */
  background: #C4DDDB;
  opacity: 1;               /* Swiper標準の opacity: 0.2 を打ち消し */
  cursor: pointer;
  border-radius: 50%;
}
#about .ai_carousel_pagination .swiper-pagination-bullet-active {
  background: #689493;
  opacity: 1;
}
#about .ai_carousel_prev:hover,
#about .ai_carousel_next:hover {
  opacity: 0.75;
}
#about .ai_carousel_prev::after,
#about .ai_carousel_next::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid #79B1B1;
  border-width: 3px 3px 0 0;
}
#about .ai_carousel_prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}
#about .ai_carousel_next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}

/* スライド1枚のレイアウト */
#about .ai_carousel_slide {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
#about .ai_carousel_slide_content {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;      /* 高さいっぱいに伸ばして中身を上端から配置 */
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 69px;        /* タグ高さ(45) + Figmaのタグ→content間隔(24) */
}
#about .ai_carousel_slide_txt {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#about .ai_carousel_slide_title {
  color: #296767;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-align: left;
}
#about .ai_carousel_slide_title .accent {
  color: #1C9898;
}
#about .ai_carousel_slide_lead {
  color: #296767;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}
#about .ai_carousel_slide_img {
  flex: 0 0 334px;
  align-self: center;       /* 画像は上下中央のまま */
  width: 334px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}
#about .ai_carousel_slide_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* func-item */
#about .ai_carousel_func_list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;   /* Figma実測: 行間14 / 列間16 */
}
#about .ai_carousel_func_item {
  display: flex;
  align-items: center;
  gap: 5px;
  width: calc((100% - 32px) / 3);
  min-width: 0;
  height: 33px;
  padding-left: 16px;
  background: #F6F9F9;
  border-radius: 100px;
  box-sizing: border-box;
}
#about .ai_carousel_func_item img {
  flex-shrink: 0;
  width: 29px;
  height: 24px;
  object-fit: contain;
}
#about .ai_carousel_func_item span {
  color: #296767;
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 1;
}

/* 「Amane AI とは？」ボタン（スライド1にのみ） */
#about .ai_carousel_about_btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 318px;
  height: 58px;
  margin-top: 12px;
  padding-right: 32px;
  background: #fff;
  border: 1px solid #519999;
  border-radius: 8px;
  box-shadow: 0 0 20px 0 rgba(189, 218, 212, 0.3);
  color: #1C9898;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  display: none;
}
#about .ai_carousel_about_btn::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  width: 22px;
  height: 22px;
  background: #1C9898;
  border-radius: 50%;
  transform: translateY(-50%);
}
#about .ai_carousel_about_btn::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 24px;
  width: 6px;
  height: 6px;
  border: 2px solid #fff;
  border-width: 2px 2px 0 0;
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}

/* SP */
@media (max-width: 768px) {
  #about .concept_carousel {
    width: 100%;
  }
  #about .ai_carousel_lead {
    font-size: 1.6rem;
    line-height: 2.1;
    letter-spacing: 0.03em;
  }
  #about .ai_carousel_body {
    margin-top: 24px;
  }

  /* 白背景カード（SP） */
  #about .ai_carousel_card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    min-height: 745px;   /* 最大コンテンツ（carousel2）に合わせた仮値 */
    padding: 40px 20px;
    border-radius: 16px;
  }

  /* タグ列: SPではin-flowに戻して横スクロール */
  #about .ai_carousel_tags {
    position: static;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0px 0 13px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  #about .ai_carousel_tags::-webkit-scrollbar {
    display: none;
  }
  #about .ai_carousel_tags_scroll {
    padding: 0 20px;
    gap: 12px;
  }
  #about .ai_carousel_tag {
    font-size: 1.3rem;
  }
  #about .ai_carousel_tag.current::after {
    bottom: -12px;
    width: 6px;
    height: 6px;
  }

  /* ステージ（SP） */
  #about .ai_carousel_stage {
    padding-bottom: 0;
  }
  /* 矢印: SPも白カードの左右端上下中央 */
  #about .ai_carousel_prev,
  #about .ai_carousel_next {
    top: 54%;
    bottom: auto;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
  }
  #about .ai_carousel_prev { left: -16px; right: auto; }
  #about .ai_carousel_next { right: -16px; left: auto; }
  #about .ai_carousel_prev::after,
  #about .ai_carousel_next::after {
    width: 8px;
    height: 8px;
    border-width: 2px 2px 0 0;
  }

  /* ページネーション（SP）: バレットを小さく */
  #about .ai_carousel_pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }
  #about .ai_carousel_pagination {
    margin-top: 32px;
  }


  /* スライド: 縦積み */
  #about .ai_carousel_slide {
    flex-direction: column;
    gap: 32px;
    height: auto;
  }
  #about .ai_carousel_slide_content {
    flex: 0 0 auto;
    width: 100%;
    gap: 20px;
    padding-top: 0;         /* SPはタグがin-flowなのでpadding-top不要 */
    order: 1;
  }
  #about .ai_carousel_slide_img {
    flex: 0 0 auto;
    width: 100%;
    max-width: 284px;
    margin: 0 auto;
    order: 2;
  }
  #about .ai_carousel_slide_title {
    font-size: 2rem;
    line-height: 1.5;
  }
  #about .ai_carousel_slide_lead {
    font-size: 1.4rem;
    line-height: 1.6;
  }

  #about .ai_carousel_func_item {
    width: calc((100% - 16px) / 2);
    height: 28px;
    padding-left: 10px;
    gap: 4px;
  }
  #about .ai_carousel_func_item img {
    width: 22px;
    height: 18px;
  }
  #about .ai_carousel_func_item span {
    font-size: 1.2rem;
  }

  #about .ai_carousel_about_btn {
    width: 100%;
    max-width: 279px;
    height: 52px;
    margin: 12px auto 16px;
    font-size: 1.6rem;
  }

  /* SPカード: 高さ auto なので swiper も auto */
  #about .swiper.ai_carousel_swiper,
  #about .ai_carousel_swiper .swiper-wrapper,
  #about .ai_carousel_swiper .swiper-slide {
    height: auto;
  }
}
