

/* ===== MV Base ===== */

.p-front-page__mv {
  position: relative;
  min-height: clamp(420px, 100vh, 1080px);
  display: grid;
  /* MV → 下のお知らせバナーのスペースを確保 */
  grid-template-rows: 1fr auto;
  color: #fff;
  overflow: hidden;
}

/* 読みやすさ用の左→右の濃淡グラデ・オーバーレイ */
.p-front-page__mv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .25) 35%, rgba(0, 0, 0, .0) 70%);
  pointer-events: none;
}


/* ===== About Ryokanbook (左下のタイトルセット) ===== */
.p-front-page__mv-about-ryokanbook {
  position: relative;
  /* overlayの上に出す */
  z-index: 1;
  display: flex;
  align-items: flex-end;
  /* 下寄せ */
  padding: clamp(24px, 10vw, 80px);
}

.p-front-page__mv-about-ryokanbook-titleset {
  max-width: min(520px, 90vw);
}

.p-front-page__mv-about-ryokanbook-title {
  margin: 0 0 .4em;
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.2;
  letter-spacing: .02em;
}

.p-front-page__mv-about-ryokanbook-subtitle {
  margin: 0 0 1.2em;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.9;
  opacity: .95;
}

/* ボタン */
.p-front-page__mv-about-ryokanbook-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9em 1.4em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  transition: transform .12s ease, filter .12s ease;
}

.p-front-page__mv-about-ryokanbook-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ===== おすすめ宿フローティング（今回は無視） ===== */
.p-front-page__mv-recommend-ryokan-banner {
  display: none;
}

/* ===== 運営からのお知らせ（下部横断バナー） ===== */
.p-front-page__mv-info-banner {
  position: relative;
  z-index: 1;
  background: #282828;
  backdrop-filter: blur(2px);
  padding: 12px clamp(16px, 4vw, 32px);
}

.p-front-page__mv-info-banner a {
  color: inherit;
  text-decoration: none;
}

.p-front-page__mv-info-banner a:hover {
  text-decoration: underline;
}


/* ===== ryokan LIST ===== */

/* ---- Carousel Row ---- */
.ryokan-list-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 28px);
  padding: clamp(8px, 1.2vw, 16px) 0 clamp(40px, 6vw, 72px);
}

@media (max-width: 1100px) {
  .ryokan-list-carousel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ryokan-list-carousel {
    grid-template-columns: 1fr;
  }
}

/* ---- Card ---- */
.ryokan-list-carousel-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #e9eaec;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
  isolation: isolate;

  /* オーバーレイ濃さ（左→右：テキストが載る左側を暗く） */
  --ov-l: .60;
  --ov-m: .30;
  --ov-r: 0;
  --ov-stop1: 32%;
  --ov-stop2: 68%;
}

/* 比率：16:9 目安（画像に近い） */
@supports (aspect-ratio: 1 / 1) {
  .ryokan-list-carousel-card {
    aspect-ratio: 16 / 9;
  }
}

@supports not (aspect-ratio: 1 / 1) {
  .ryokan-list-carousel-card::after {
    content: "";
    display: block;
    padding-bottom: 56.25%;
  }
}

/* 画像全面 */
.ryokan-list-thumbnail,
.ryokan-list-thumbnail img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}

.ryokan-list-thumbnail img {
  filter: saturate(.98) contrast(.98) brightness(.94);
  transition: transform .35s ease, filter .25s ease;
}

/* 暗いグラデのオーバーレイ（左強→右弱） */
.ryokan-list-carousel-card .ryokan-list-thumbnail img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, var(--ov-l)) 0%,
      rgba(0, 0, 0, var(--ov-m)) var(--ov-stop1),
      rgba(0, 0, 0, var(--ov-r)) var(--ov-stop2));
}

/* ---- Post Info（左下） ---- */
.ryokan-list-post-info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

.ryokan-list-taxonomy-info {
  display: flex;
  align-items: center;
  gap: .75em;
  font-size: 14px;
  opacity: .95;
  margin-top: .5em;
  flex-wrap: wrap;
}

.ryokan-list-pref-name,
.ryokan-list-city-name {
  white-space: nowrap;
}

.ryokan-list-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(16px, 1.8vw, 20px);
}

/* タグのピル */
.ryokan-list-tags {
  display: flex;
  gap: .5em;
  width: 100%;
  margin-top: .75em;
}

.ryokan-list-tag-name {
  display: inline-block;
  padding: .35em .7em;
  background: rgba(255, 255, 255, .92);
  color: #111;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
}

/* ---- Hover ---- */
.ryokan-list-carousel-card:hover .ryokan-list-thumbnail img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1) brightness(.98);
}

/* ---- Carousel Nav（右下の矢印） ---- */
.ryokan-list-carousel+.ryokan-list-carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 6px 4px 60px;
}

.ryokan-list-carousel-nav .ryokan-list-prev-button,
.ryokan-list-carousel-nav .ryokan-list-next-button {
  inline-size: 54px;
  block-size: 34px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
  opacity: .75;
  transition: opacity .15s ease, transform .15s ease;
}

.ryokan-list-carousel-nav .ryokan-list-prev-button::before,
.ryokan-list-carousel-nav .ryokan-list-next-button::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  inline-size: 24px;
  block-size: 24px;
  border-right: 2px solid rgba(0, 0, 0, .6);
  border-bottom: 2px solid rgba(0, 0, 0, .6);
  transform: rotate(135deg);
  /* ← */
}

.ryokan-list-carousel-nav .ryokan-list-next-button::before {
  transform: rotate(-45deg);
  /* → */
}

.ryokan-list-carousel-nav .ryokan-list-prev-button:hover,
.ryokan-list-carousel-nav .ryokan-list-next-button:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* ===== END ryokan LIST ===== */