/* フェードアップ（PC時のみ）、共通CSSに置くと一部動作しない */
@media screen and (min-width: 768px) {
  .u-fade {
    opacity: 0;
    transition: all 2s;
  }
  .u-fade.is-scroll {
    opacity: 1;    
  }
  .u-fade-4item {
    opacity: 0;
    transform: translate(0, 40px);
    transition: all 2s ease;
  }
  .u-fade-4item:nth-of-type(4n+1) {
    transition: all 500ms;
  }
  .u-fade-4item:nth-of-type(4n+2) {
    transition: all 1000ms;
  }
  .u-fade-4item:nth-of-type(4n+3) {
    transition: all 1500ms;
  }
  .u-fade-4item:nth-of-type(4n+4) {
    transition: all 2000ms;
  }
  .u-fade-4item.is-scroll {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* slickアニメーション用（PC時のみ） */
@media screen and (min-width: 768px) {
  #slider div img {
    margin: 0 auto;
    transform: scale(1.1);
    transition: 9s ease-out;
  }
  #slider div.is-animation img{
    transform: scale(1);
  }
}
/* スライドショー */
#slider {
  background-color: #fff;
  margin: 0 auto 40px;
  opacity: 0;
  transition: opacity 0.3s ease 0s;
}
@media screen and (min-width: 768px) {
  #slider {
    margin: 0 auto 70px;
    max-width: 1920px;
  }
}
#slider.slick-initialized {
  opacity: 1;
}
#slider .slick-slide {
  position: relative;
  transition: opacity 2s ease 0s !important;
}
#slider .slick-slide > a {
  pointer-events: none;
}
#slider .slick-slide a:hover {
  opacity: 1;
}
@media screen and (min-width: 768px) {
  #slider .slick-slide img {
    max-width: 100%;
    height: auto;
  }
}
/* スライドショーのドットのサイズ */
#slider .slick-dots {
  position: static;
  margin-top: 5px;
}
@media screen and (min-width: 768px) {
  #slider .slick-dots {
    position: absolute;
    bottom: 10px;
    margin-top: 0;
  }
}
#slider .slick-dots li {
  margin: 0 2px;
}
#slider .slick-dots li button::before {
  color: var(--mv-dot-button-color);
  content: "●";
  font-size: 16px;
  opacity: 0.8;
}
#slider .slick-dots li.slick-active button::before {
  color: var(--mv-dot-button-color-active);
  content: "●";
  font-size: 16px;
}

/* スライドショーのキャプション */
.p-mv-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--general-background-color-gray);
  margin-right: 20px;
  padding: 5px;
  width: 100%;
  transition: all 0.3s ease;
}
@media screen and (min-width: 768px) {
  .p-mv-caption {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    background: transparent;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
  }
}
@media screen and (min-width: 1200px) {
  .p-mv-caption {
    padding: 0;
  }
}
@media screen and (min-width: 768px) {
  .slick-active .p-mv-caption {
    animation: fadeCaption 1.5s ease-in 0.5s normal both;
  }
  @keyframes fadeCaption {
    0% { opacity: 0; transform: translateY(-40%);}
    100% { opacity: 1; transform: translateY(-50%);}
  }
}
.p-mv-caption__ttl {
  color: var(--general-text-color);
  font-size: var(--mv-caption-font-size-sp);
  font-weight: var(--mv-caption-font-weight-sp);
  margin-right: 10px;
}
@media screen and (min-width: 768px) {
  .p-mv-caption__ttl {
    color: var(--mv-caption-text-color);
    font-family: var(--mv-caption-font-family);
    font-size: var(--mv-caption-font-size-pc);
    font-weight: var(--mv-caption-font-weight-pc);
    filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.3));
    margin-right: 0;
  }
}
.p-mv-caption__link {
  display: inline-block;
  line-height: 1;
  margin-top: 0;
}
@media screen and (min-width: 768px) {
  .p-mv-caption__link {
    margin-top: 30px;
  }
}
@media screen and (min-width: 768px) {
  .slick-active .p-mv-caption__link {
    animation: fadeLink 0.3s ease-in 2s normal both;
  }
  @keyframes fadeLink {
    0% { opacity: 0; }
    100% { opacity: 1;}
  }
}
.p-mv-caption__link a {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  color: var(--general-text-color);
  font-size: 12px;
  padding: 8px 12px;
}
@media screen and (min-width: 768px) {
  .p-mv-caption__link a {
    background: var(--mv-button-background-color);
    color: var(--mv-button-text-color);
    font-size: 16px;
    padding: 8px 20px;
  }
}
.p-mv-caption__link a:hover {
  background: var(--mv-button-background-color-hover);
  color: var(--mv-button-text-color-hover);
}
/***** 以下はサンプル用に追加したCSS、必須ではありません *****/
/* お知らせ */
.p-info h2 {
  font-weight: 500;
  border-bottom: 1px solid #000;
  margin-bottom: 20px;
  text-align: center;
}
.p-info ul {
  list-style: square;
  padding-left: 16px;
}
.p-info .c-bg-gray {
  background: #eee;
  border-radius: var(--item-border-radius);
  margin-top: 30px;
  padding: 20px;
}
li.infolist {
    margin: 5px;
}
p.infomore {
    font-weight: bold;
    text-align: right;
    padding: 10px;
}
.attention_sale a {
    border-bottom: 1px dotted;
}
/* カテゴリーの電球 */
.c-category-list .c-bulb {
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* 店長エリア */
.p-manager {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  /*filter: grayscale(0.7);*/
  padding: 30px 0 50px;
  width: 100%;
}
@media screen and (min-width: 768px) {
  .p-manager {
    padding: 60px 0 100px;  
  }
}
.p-manager-in {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
  height: 100%;
}
.p-manager h2 {
  font-family: var(--manager-name-font-family);
  font-size: var(--manager-name-font-size-sp);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
@media screen and (min-width: 768px) {
  .p-manager h2 {
    font-size: var(--manager-name-font-size-pc);
  }
}
.p-manager-in__memo {
  margin: 30px 0 40px; 
}
/* 店長エリアのボタン */
.c-btn-view {
  border: 1px solid #fff;
  border-radius: 25px;
  color: #fff;
  padding: 10px 30px;
}
.c-btn-view:hover {
  background: var(--general-background-color);
  border: 1px solid var(--general-background-color);
  color: #fff;
  opacity: 1;
}

/* フリースペース */
.p-freespace.c-section {
    display: none;
}
.p-freespace .c-heading__right {
  display: flex;
}
.p-freespace .c-heading__right-txt {
  border-bottom: 1px solid var(--general-text-color);
  margin-top: 3px;
}
.p-freespace .c-col-3 {
  background: #eee;
  border-radius: var(--item-border-radius);
  height: 240px;
  padding: 20px;
}
.p-freespace .c-col-3 p {
  font-size: 40px;
  font-family: var(--manager-name-font-family);
  font-weight: 700;
  color: #fff;
}
/* スライダー下 */
.three-image-block {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.image-item {
  flex: 0 0 auto;
  width: 80%;
  max-width: 300px;
  scroll-snap-align: start;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-item:hover img {
  transform: scale(1.02);
  opacity: 0.9;
}

/* PCでは4列に切り替え */
@media screen and (min-width: 768px) {
  .three-image-block {
    flex-wrap: wrap;
    justify-content: space-between;
    overflow-x: visible;
  }

  .image-item {
    flex: 1 1 calc(25% - 16px);
    max-width: none;
  }
}
/* note*/
/* noteカルーセル全体の余白調整 */
.note-carousel {
  width: 100%;
  padding: 1em 0;
}

/* swiper全体（ドットや矢印用の余白など） */
.swiper {
  padding-bottom: 2em;
}

/* スライドのデザイン */
.swiper-slide {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* リンク全体に適用 */
.note-slide a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* 画像 */
.swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.note-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.swiper-wrapper {
  display: flex;
}
.note-carousel .swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 180px; /* 必要に応じて調整 */
  object-fit: cover;
  border-radius: 6px;
}
/* タイトル */
.note-slide-title {
  display: flex;
  align-items: center;       /* 上下中央揃え */
  justify-content: center;   /* 左右中央揃え（念のため） */
  padding: 0.5em;
  font-size: 0.95rem;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  text-align: center;
  min-height: 2.8em;         /* 2行分の高さ（例：1.4 × 2） */
}
@media screen and (max-width: 767px) {
  .note-slide-title {
    font-size: 0.65rem;
    line-height: 1.3;
    padding: 0.3em 0.4em;
    min-height: 2.6em;        /* スマホ表示に合わせた2行分の高さ */
  }
}
/* noteカルーセル用ナビ矢印 */
.swiper-button-prev.note-prev,
.swiper-button-next.note-next,
.swiper-button-prev.cp-prev,
.swiper-button-next.cp-next {
  color: #333;
  font-size: 20px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  transition: background 0.3s ease;
}

.swiper-button-prev.note-prev::after,
.swiper-button-next.note-next::after,
.swiper-button-prev.cp-prev::after,
.swiper-button-next.cp-next::after {
  font-size: 14px;
  font-weight: 300;
}

.swiper-button-prev.note-prev:hover,
.swiper-button-next.note-next:hover,
.swiper-button-prev.cp-prev:hover,
.swiper-button-next.cp-next:hover {
  background: rgba(255, 255, 255, 0.9);
}
