@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** アピールエリア：左テキスト＋右カルーセル
************************************/
.appeal {
  overflow: hidden;
}
.appeal::before,
.appeal::after,
.appeal-in::before,
.appeal-in::after,
.appeal-content::before,
.appeal-content::after {
  display: none !important;
}
.appeal .appeal-in {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 48px;
  box-sizing: border-box;
}
.appeal-content {
  flex: 1;
  text-align: left;
}

/* カルーセル本体 */
.appeal-carousel {
  width: 400px;
  flex-shrink: 0;
  position: relative;
}
.appeal-carousel-track {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

/* スライド（フェード切替） */
.appeal .appeal-in .appeal-slide,
.appeal-in .appeal-slide,
a.appeal-slide {
  display: block !important;
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: none !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  line-height: 0 !important;
  text-decoration: none !important;
  pointer-events: none;
}
.appeal .appeal-in .appeal-slide.active,
.appeal-in .appeal-slide.active,
a.appeal-slide.active {
  position: relative !important;
  opacity: 1;
  pointer-events: auto;
}
.appeal-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ドットナビ */
.appeal-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.appeal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}
.appeal-dot:hover {
  border-color: #fff;
}
.appeal-dot.active {
  background: #fff;
  border-color: #fff;
}

/************************************
** レスポンシブ
************************************/
@media screen and (max-width: 1023px){
  .appeal-carousel { width: 340px; }
}
@media screen and (max-width: 834px){
  .appeal .appeal-in {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
  }
  .appeal-carousel { width: 100%; max-width: 400px; }
}
