/* ========================================
   Main Visual Slider - slider.css
   ======================================== */

:root {
  --vh: 1vh;
  --vw: 1vw;
}

/* ----------------------------------------
   MV Container
   ---------------------------------------- */
.mv {
  padding: 60px 30px 50px;
  position: relative;
  z-index: 0;
  background: #f5f5f5;
  overflow: hidden;
}

.mv::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  height: 280px;
  background: linear-gradient(95deg, #0b1a3a 0%, #1b143a 100%);
  left: 0;
  right: 0;
  z-index: -1;
  transition: opacity 0.5s;
}

.mv.is-init::before {
  opacity: 0;
}

.mv-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* ----------------------------------------
   Slider Base
   ---------------------------------------- */
.mv-slider {
  min-height: 400px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  position: relative;
}

.mv-slider::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: -3px;
  right: -50vw;
  left: calc(63.4% - 237px);
  z-index: -1;
  background: #fff;
  border-radius: 10px 0 0 10px;
}

.is-init .mv-slider::after {
  opacity: 0;
  transition: opacity 0.5s;
}

/* ----------------------------------------
   Slide Item
   ---------------------------------------- */
.mv-slider-slide {
  display: flex;
  position: relative;
  grid-area: 1/1;
}

.mv-slider-slide.is-next {
  flex-direction: row-reverse;
  position: absolute;
  width: 100%;
  top: 0;
  left: calc(-100% - 20px);
  pointer-events: none;
}

.mv-slider-slide:not(.is-next):not(.is-current) {
  opacity: 0;
  visibility: hidden;
  position: absolute;
}

.mv-slider-slide.is-hide {
  opacity: 0;
  transition: opacity 0.2s;
}

.mv-slider-slide:hover .mv-slider-image img {
  transform: scale(1.1);
}

.mv-slider-slide.zoom-off .mv-slider-image img {
  transform: scale(1);
}

/* ----------------------------------------
   Slide Image
   ---------------------------------------- */
.mv-slider-image {
  flex: 0 0 auto;
  width: 63.4%;
  max-width: 760px;
  position: relative;
  top: -40px;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0;
}

.mv-slider-image::before {
  content: "";
  display: inline-block;
  padding-top: 52.6315%;
}

.mv-slider-image::after {
  content: none;
}

.mv-slider-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mv-slider-slide:not(.is-play):not(.is-init) .mv-slider-image img {
  transition: transform 0.2s ease-in-out;
}

/* Current Slide - Image Animation */
.is-current .mv-slider-image {
  transform: translateY(0);
}

.is-current.is-init .mv-slider-image {
  transform: translateX(-80px);
  opacity: 0;
}

.is-current.is-init .mv-slider-image img {
  transform: scale(1.2);
}

.is-current.is-play .mv-slider-image {
  transition:
    transform 0.5s ease-out,
    opacity 0.5s;
  transform: translateX(0);
  opacity: 1;
}

.is-current.is-play .mv-slider-image img {
  transition-timing-function: ease-out;
  transition-duration: 0.5s;
}

/* Next Slide - Image Animation */
.is-next .mv-slider-image {
  transform: translateY(0);
}

.is-next.is-init .mv-slider-image {
  transform: translateX(-80px);
  opacity: 0;
}

.is-next.is-init .mv-slider-image img {
  transform: scale(1.2);
}

.is-next.is-play .mv-slider-image {
  transition:
    transform 0.5s ease-out,
    opacity 0.5s;
  transform: translateY(0);
  opacity: 1;
}

.is-next.is-play .mv-slider-image img {
  transition-timing-function: ease-out;
  transition-duration: 0.5s;
}

/* Image Text Overlays (from add.css) */
.mv-slider-image-en {
  position: absolute;
  top: 32.5%;
  left: 10%;
  z-index: 2;
  padding: 6px 20px 2px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.mv-slider-image-title {
  position: absolute;
  top: 40%;
  left: 10%;
  z-index: 2;
  padding: 5px 20px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* ----------------------------------------
   Slide Contents
   ---------------------------------------- */
.mv-slider-contents {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  background: #fff;
  flex: 1 1 auto;
  min-height: 400px;
  position: relative;
}

.mv-slider-contents .inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.is-current .mv-slider-contents .inner {
  transform: none;
}

.is-current.is-init .mv-slider-contents .inner {
  transform: translateX(-80px);
  opacity: 0;
}

.is-current.is-play .mv-slider-contents .inner {
  transition:
    transform 0.5s ease-out,
    opacity 0.5s;
  transform: translateX(0);
  opacity: 1;
}

.is-next .mv-slider-contents {
  display: none;
}

.mv-slider-contents::before {
  content: none;
}

/* ----------------------------------------
   Slide Content Elements
   ---------------------------------------- */
.mv-category-wrapper {
  margin-bottom: 16px;
}

.mv-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  min-height: 28px;
  padding: 4px 12px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 4px;
}

.mv-slider-title {
  margin-bottom: 20px;
}

.mv-slider-title a {
  font-size: 26px;
  line-height: 1.6;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  max-height: 6.4em;
  overflow: hidden;
}

.mv-slider-title a::before {
  content: "";
  display: block;
  position: absolute;
  top: -40px;
  bottom: 0;
  right: 0;
  left: 0;
  cursor: pointer;
  z-index: 1;
}

.mv-description {
  font-size: 20px;
  line-height: 2;
  color: #333;
}

.mv-meta {
  margin-top: auto;
  font-size: 14px;
  color: #666;
}

/* ----------------------------------------
   Pagination
   ---------------------------------------- */
.mv-pagination {
  position: absolute;
  display: flex;
  left: 30px;
  bottom: 0;
  max-width: 400px;
  width: calc(63.4% - 237px);
  transition: opacity 0.5s;
  z-index: 1;
}

.is-init .mv-pagination {
  opacity: 0;
}

.mv-pagination > button {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: #ccc;
  margin-right: 10px;
  transition: background 0.3s;
  position: relative;
  border: none;
  cursor: pointer;
}

.mv-pagination > button:last-child {
  margin-right: 0;
}

.mv-pagination > button::before {
  display: none;
}

.mv-pagination > button.is-current {
  background: #b8860b;
}

/* ----------------------------------------
   UI Buttons
   ---------------------------------------- */
.mv-ui {
  display: flex;
  position: absolute;
  right: 0;
  bottom: -30px;
  transition: opacity 0.5s;
  z-index: 1;
}

.is-init .mv-ui {
  opacity: 0;
}

.mv-ui-button {
  width: 50px;
  height: 50px;
  position: relative;
  margin-left: 6px;
  border: none;
  background: none;
  cursor: pointer;
}

.mv-ui-button::before {
  content: "";
  display: block;
  position: absolute;
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  background: #1a1a2e;
  transition:
    width 0.2s,
    height 0.2s,
    background 0.2s;
}

.mv-ui-button::after {
  content: "";
  display: block;
  position: absolute;
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  background-position: center center;
  background-repeat: no-repeat;
}

.mv-ui-button:hover::before {
  width: 60px;
  height: 60px;
  background: #0d0d1a;
}

.mv-ui-button.jsPrev::after {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>');
  background-size: 24px;
}

.mv-ui-button.jsNext::after {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z"/></svg>');
  background-size: 24px;
}

.mv-ui-button.jsStop::after {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>');
  background-size: 18px;
}

.mv-ui-button.jsStop.is-stop::after {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>');
  background-size: 18px;
}

/* ----------------------------------------
   Responsive - Tablet
   ---------------------------------------- */
@media all and (max-width: 1024px) {
  .mv-pagination {
    bottom: -30px;
    width: 63.4%;
  }
}

/* ----------------------------------------
   Responsive - Mobile
   ---------------------------------------- */
@media all and (max-width: 640px) {
  .mv {
    padding: 25px 0 60px;
  }

  .mv::before {
    height: 363px;
  }

  .mv-slider {
    min-height: calc((var(--vw, 1vw) * 100 - 15px) * 0.526315);
  }

  .mv-slider::after {
    left: 25px;
    bottom: 0;
    top: calc((var(--vw, 1vw) * 100 - 15px) * 0.526315 - 30px);
    border-radius: 10px 0 0 10px;
  }

  .mv-slider-slide {
    flex-direction: column;
  }

  .mv-slider-image {
    width: auto;
    flex: 1 1 auto;
    top: 0;
    margin-bottom: -30px;
    margin-right: 15px;
    border-radius: 0 10px 10px 0;
  }

  .mv-slider-contents {
    position: relative;
    margin-left: 25px;
    padding: 50px 20px 25px;
    border-radius: 0 0 0 10px;
    min-height: auto;
  }

  .mv-slider-contents::before {
    border-radius: 10px 0 0 10px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .mv-slider-title a {
    font-size: 20px;
  }

  .mv-pagination {
    left: 30px;
    bottom: -22px;
    width: calc(100% - 200px);
  }

  .mv-ui {
    right: 10px;
    bottom: -24px;
  }

  .mv-ui-button {
    margin-left: 4px;
    width: 40px;
    height: 40px;
  }

  .mv-ui-button::before,
  .mv-ui-button::after {
    width: 40px;
    height: 40px;
  }

  .mv-ui-button:hover::before {
    width: 48px;
    height: 48px;
  }
}
/* =========================
   MV UI Buttons - style C
   ========================= */

.mv-ui {
  display: flex;
  gap: 10px;
  z-index: 5;
}

.mv-ui-button {
  width: 36px;
  height: 36px;
  margin: 0;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
}

.mv-ui-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  background: var(--color-gold);
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.mv-ui-button:hover::before{
  background: var(--color-gold);
  width: 40px;
  height: 40px;
}
.mv-ui-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  opacity: 1;
  background-position: center;
  background-repeat: no-repeat;
}

.mv-ui-button:hover::before {
  transform: translate(-50%, -50%) scale(1.1);
}

.mv-ui-button.jsPrev::after,
.mv-ui-button.jsNext::after {
  background-size: 16px;
}

.mv-ui-button.jsStop::after,
.mv-ui-button.jsStop.is-stop::after {
  background-size: 14px;
}

.mv-ui-button.jsPrev { order: 1; }
.mv-ui-button.jsStop { order: 3; }
.mv-ui-button.jsNext { order: 4; }


/* ----------------------------------------
   スライダーボタン変更
   ---------------------------------------- */

.mv-ui-button {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}

.mv-ui-button::before {
  width: 30px;
  height: 30px;
  background: var(--color-gold);
}

.mv-ui-button::after {
  width: 30px;
  height: 30px;
  background-size: 8px;
}

.mv-ui-button:hover::before {
  width: 33px;
  height: 33px;
  background: var(--color-gold);
}

.mv {
  padding: 36px 30px 30px;
}

.mv-slider {
  min-height: 240px;
}

.mv-slider-contents {
  min-height: 240px;
  padding: 24px 36px;
}

.mv-slider-image {
  max-width: 456px;
  top: -24px;
}

.mv-slider-image::before {
  padding-top: 52.6315%;
}

.mv::before {
  height: 196px;
}
.mv-slider-contents .mv-description {
  font-size: 16px;
  font-weight: bold;
}
.mv-slider::after {
  left: calc(63.4% - 400px);
}

.mv-slider-contents::before {
  left: calc(63.4% - 400px);
}

/* ----------------------------------------
   スライダーナビ変更：左右ボタン非表示、制御ボタンを右端に配置
   ---------------------------------------- */


.mv-pagination {
  left: 30px;
  transform: none;
  display: flex;
  justify-content: flex-start;
}

.mv-ui {
  position: absolute;
  left: auto;
  right: 0;
  bottom: 7px;
}

.mv-ui-button.jsStop {
  margin-left: 0;
}

.mv-slider-image {
 max-width: 550px;
 aspect-ratio: 2 / 1;
}


/* ボタン表示 */

.mv-ui-button.jsPrev,
.mv-ui-button.jsNext {
  display: inline-flex;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.mv-ui:hover .mv-ui-button.jsPrev,
.mv-ui:hover .mv-ui-button.jsNext {
  opacity: 1;
}

.mv-ui-button::before {
 border-radius: 1%;
}

.mv-pagination span,
.mv-pagination button {
  border-radius: 1px;
}

.mv-pagination {
  display: flex;
  gap: 10px;
}

.mv-pagination span,
.mv-pagination button {
  width: 8px; 
  height: 8px;
  margin: 0;

}

.mv-ui {
right: 16px;
}

.mv-ui-button.jsPrev::before,
.mv-ui-button.jsNext::before {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.mv-ui-button.jsPrev::after,
.mv-ui-button.jsNext::after {
  filter: brightness(0) invert(1);
}
.mv-ui-button::before {
  border-radius: 1px;
}

.mv-pagination > button {
    height: 8px;
    width: 8px;
    border-radius: 1px;
    background: #ccc;
    margin-right: 10px;
    transition: background 0.3s;
    position: relative;
    border: none;
    cursor: pointer;
}
.mv-pagination {
  display: flex;
  gap: 5px;
}