/*
Theme Name:Yumeyumerabitt
Description:musician site
Author:kengo
Version:1.0
*/

/* 使用フォント */
:root {
  --NotoSans: "Noto Sans JP", sans-serif;
}


body {
  min-height: 100vh;
  font-family: var(--NotoSans);
  color: white;
  background-color: black;
  position: relative;
  overflow-x: hidden;
}

html {
  font-size: calc(10 / 1280 * 100vw);
  /* 画面幅1280pxで10px*/
  /* overflow-y: overlay; */
}

img {
  width: 100%;
  object-fit: cover;
  height: 100%;
}

.sp_only {
  display: none;
}


/*fade表示関連*/

.fade_in {
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0, 0.42, 0.58, 1);
}

.fade_up {
  transform: translateY(2vw);
  opacity: 0;
  transition: all 1.2s cubic-bezier(0, 0.42, 0.58, 1);
}

.fade_in.show {
  opacity: 1;
}

.fade_up.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* -----------------------------------------------
  カルーセル スタイル
  style.css に移動してもOKです
----------------------------------------------- */
.my-carousel {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.my-carousel__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

/* カード */
.my-carousel__card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    position: relative;
}

.my-carousel__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

/* サムネイル */
.my-carousel__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.my-carousel__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.my-carousel__card:hover .my-carousel__thumb img {
    transform: scale(1.04);
}

.my-carousel__no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
}

/* テキストエリア */
.my-carousel__body {
    padding: 1rem 1.25rem 1.5rem;
    position: absolute; 
    bottom: 0; 
    right: 0;
}

.my-carousel__date {
    font-size: 0.75rem;
    color: #3a3a3a;
    background-color: white;
    letter-spacing: 0.08em;
}

.my-carousel__post-title {
    font-size: 1rem;
    font-weight: 600;
    color: black;
    background-color: white;
    margin: 0.4rem 0 0.6rem;
    line-height: 1.5;
    /* 2行で切る */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Swiper ナビゲーション色（既存テーマに合わせて変更） */
.my-carousel .swiper-button-prev,
.my-carousel .swiper-button-next {
    color: #333;
}

.my-carousel .swiper-pagination-bullet-active {
    background: #333;
}


@media screen and (max-width: 699.98px) {
  html {
    font-size: calc(10 / 375 * 100vw);
    /* 画面幅375pxで10px*/
  }

  .pc_only {
    display: none;
  }

  .sp_only {
    display: block;
  }

}