/*
Theme Name: SWELL CHILD
Template: swell
Theme URI: https://swell-theme.com/
Description: SWELLの子テーマ
Version: 1.0.0
Author: LOOS WEB STUDIO
Author URI: https://loos-web-studio.com/
License: GNU General Public License
License URI: http://www.gnu.org/licenses/gpl.html
Text Domain: swell-child
*/



@charset "UTF-8";
/*
  SWELL CHILD style.css
  - MV Scroll Hint
  - Fullscreen Hero Slider
  - Center Coverflow Carousel (My Bar Style)
*/

/* ===== MV Scroll Hint ===== */
.p-mainVisual {
  position: relative;
  z-index: 0;
  --line-h: 60px;
  --line-color: #f8f8f8;
}
.p-mainVisual::before {
  content: "SCROLL";
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding-bottom: calc(var(--line-h) + 10px);
  text-align: center;
  font-family: serif;
  color: var(--line-color);
  font-size: 6px;
  line-height: 1;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
  pointer-events: none;
  z-index: 10;
}
.p-mainVisual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, transparent, var(--line-color));
  animation: mv-extend 2s infinite;
  z-index: 10;
}
@keyframes mv-extend {
  0%, 100% { height: 0; }
  50%      { height: var(--line-h); }
}
@media (max-width: 767px) {
  .p-mainVisual { --line-h: 40px; }
  .p-mainVisual::before { font-size: 8px; }
}

/* ===== Fullscreen Hero Slider ===== */
.hero-slider {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.hero-slider .swiper { width: 100%; height: 100%; }
.hero-slider .swiper-slide { position: relative; }
.hero-slider .slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-slider::before {
  content:""; position:absolute; inset:0;
  z-index:1; pointer-events:none;
  box-shadow: inset 0 0 200px rgba(0,0,0,.35);
}
.hero-slider::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.15) 100%);
  pointer-events:none; z-index:1;
}
.hero-slider .hero-center {
  position:absolute; inset:0; display:grid; place-items:center;
  text-align:center; z-index:2; padding:24px;
}
.hero-slider .hero-title {
  font-size: clamp(28px, 6vw, 60px);
  color:#fff; letter-spacing:.08em; font-weight:600;
}
.hero-slider .hero-sub {
  margin-top:.6rem; color:#ddd; font-size:clamp(12px, 2.2vw, 16px);
}
.hero-slider .swiper-pagination-bullets .swiper-pagination-bullet { background: rgba(255,255,255,.75); opacity:.6; }
.hero-slider .swiper-pagination-bullet-active { opacity:1; }
.hero-slider .scroll-cue {
  position:absolute; left:50%; bottom:18px; transform:translateX(-50%);
  z-index:2; display:inline-flex; flex-direction:column; align-items:center; gap:6px;
  color:#eaeaea; font-size:12px; text-decoration:none;
}
.hero-slider .scroll-cue .dot {
  width:1px; height:70px; background:linear-gradient(to bottom, transparent, #eaeaea);
  animation: cueExtend 2s infinite;
}
@keyframes cueExtend { 0%,100%{height:0;opacity:.6;} 50%{height:70px;opacity:1;} }
@media (max-height:580px){ .hero-slider .hero-title { font-size: clamp(24px, 5vw, 40px); } }
.hero-source-wrap { display:none; }

/* ===== Center Coverflow Carousel (My Bar Style) ===== */
.carousel-slider.alignfull{
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  width: 100vw;
  background: #121212;
  overflow: hidden;
  padding: 24px 0 56px; /* 下部にドット分の余白 */
}

.carousel-slider .swiper{
  width: 100vw;
  padding: 0 6vw; /* 両端余白（黒帯）。0～8vwで調整可 */
}

.carousel-slider .swiper-wrapper{ align-items: center; }

.carousel-slider .swiper-slide{
  width: clamp(260px, 68vw, 1100px); /* 中央の大きさ */
  transition: transform .5s ease, opacity .5s ease;
  will-change: transform;
}

/* 画像の高さ（横長〜16:9） */
.carousel-slider .ratio{
  position: relative; width: 100%;
  padding-top: 70%; /* 高さ比率。*/
  overflow: hidden; border-radius: 0px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.carousel-slider .ratio > img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; display:block;
}

/* ドット */
.carousel-slider .swiper-pagination-bullets .swiper-pagination-bullet{
  background: rgba(255,255,255,.35); opacity:1;
}
.carousel-slider .swiper-pagination-bullet-active{
  background: rgba(255,255,255,.9);
}

/* 矢印は使用しない */
.carousel-slider .swiper-button-prev,
.carousel-slider .swiper-button-next{
  display: none !important;
}

/* ===== ドットカラー調整（アクティブのみ#00494e） ===== */
.carousel-slider .swiper-pagination-bullet {
  background: rgba(255, 255, 255, .35); /* 非アクティブ：そのまま白系 */
  opacity: 1;
}
.carousel-slider .swiper-pagination-bullet-active {
  background: #102A24 !important; /* アクティブ：深いグリーン系 */
}

/* ===== Scrollの文字を消して線アニメだけ残す ===== */
/* p-mainVisual 版（擬似要素 ::before が文字） */
.p-mainVisual::before{
  content: "";      /* 文字ノードを空にする */
  display: none;    /* 擬似要素自体を非表示 */
}

/* hero-slider 版を使っている場合（.scroll-cue に文字がある場合） */
.hero-slider .scroll-cue{
  font-size: 0;     /* テキストだけ不可視にして */
  line-height: 0;
}
.hero-slider .scroll-cue .dot{
  /* ラインのアニメはそのまま */
  width: 1px;
  height: 70px;
  animation: cueExtend 2s infinite;
}

/* ===== SP固定バナー（blog_parts id=1024 用） ===== */
.blog_parts[id="1024"],
.blog_parts-1024,
.sp-fixed-banner {
  display: none; /* PCでは非表示 */
}

@media (max-width: 768px){
  .blog_parts[id="1024"],
  .blog_parts-1024,
  .sp-fixed-banner {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #000; /* 画像バナーなら削ってOK */
    text-align: center;
  }
  .blog_parts[id="1024"] img,
  .blog_parts-1024 img {
    width: 100%;
    height: auto;
    display: block;
  }
  .blog_parts[id="1024"] a,
  .blog_parts-1024 a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
  }
} 

/* ===== スマホ時にスライド画像を拡大表示 ===== */
@media (max-width: 768px) {
  .carousel-slider .swiper-slide {
    width: 88vw !important; /* ← デフォルト68vw → スマホで88vwに拡大 */
  }

  .carousel-slider .ratio {
    padding-top: 70% !important; /* ← 高さ比率（縦長にしたい場合は70〜80%） */
  }
}

/* MV内ブログパーツのリンクカラーを上書き */
.p-mainVisual .post_content a,
.p-mainVisual .c-postContent a {
  color: #f8f8f8 !important;
}

.p-mainVisual .post_content a:hover,
.p-mainVisual .c-postContent a:hover {
  color: #f8f8f8 !important;
  opacity: 0.8;
}
