/* ============================================================
   travel の一覧に混ぜる YouTube(2026-12-06 板羽)
   - カード:写真と同じ枠(縦横 3:4)に動画のサムネイルを切り抜いて、まん中にショートのマーク
   - 再生画面:画面を暗くして重ねる。左右ボタンは travel の左右ボタンと同じ位置・大きさ
     (PC=画面の左右 2rem・高さのまん中 / SP=右下 30px・20px。SP は左下にも「前へ」)
============================================================ */

/* ---------- カードの大きさ(TOP・travel ページ共通) ----------
   2026-12-06 吉田さん「もうすこし縦長」「width: 20rem くらい」:PC=幅20rem・SP=高さ16rem、縦横 3:4 */
.inner.travel img.card__image.pic,
.uoya-insta-slider img.card__image.pic,
.uoyaTravelLoop img.card__image.pic {
  width: 20rem !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  object-position: center;
  border-radius: 16px;
}
@media (max-width: 768px) {
  .inner.travel img.card__image.pic,
  .uoya-insta-slider img.card__image.pic,
  .uoyaTravelLoop img.card__image.pic {
    width: auto !important;
    height: 16rem !important;
  }
}

/* ---------- uoyaな人の記事の下の TRAVEL(PRODUCT と同じ見出し・コンテナ幅100%・まん中から左右に無限に続く) ----------
   記事ページには Swiper の CSS が無い(読み込むと SP の商品欄が崩れる)ので、要る分だけここに書く */
.companyTravel {
  width: 100%;
  margin: 0 auto;
  padding: 8rem 0 6rem;
  overflow: hidden;
}
.companyTravel .product-label {
  margin-bottom: 2.5rem;
}
.uoyaTravelLoop {
  width: 100%;
}
.uoyaTravelLoop__swiper {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.uoyaTravelLoop__swiper .swiper-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: content-box;
  width: 100%;
  transition-property: transform;
  transform: translate3d(0, 0, 0);
}
.uoyaTravelLoop__swiper .swiper-slide {
  position: relative;
  flex-shrink: 0;
  width: auto !important; /* 記事ページの SP にはスライド幅を 80% にする CSS があるので、カードの幅に合わせる */
  margin-left: 0 !important;
  padding: 0 !important;
}
/* Swiper が動き出すまでは、まん中寄せで横に並べておく(読み込みの間に縦に積まれないように) */
.uoyaTravelLoop__swiper:not(.is-ready) .swiper-wrapper {
  justify-content: center;
  gap: 50px;
}
.uoyaTravelLoop a,
.uoyaTravelLoop .uoyaShortCard {
  display: block;
  line-height: 0;
}
@media (max-width: 768px) {
  .companyTravel {
    padding: 14% 0 10%;
  }
  .companyTravel .product-label {
    margin-bottom: 1.25rem;
  }
  .uoyaTravelLoop__swiper:not(.is-ready) .swiper-wrapper {
    gap: 15px;
  }
}

/* 2026-12-06 吉田さん「uoyaな人のカードは若干広く(余白はそのまま)」:記事の下の TRAVEL だけ PC 幅22rem・SP 高さ17rem */
.uoyaTravelLoop img.card__image.pic {
  width: 22rem !important;
}
@media (max-width: 768px) {
  /* SP は横幅を大きく(縦横 3:4 はそのまま)。2026-12-06 吉田さん「スマホカード横幅大きく、縦横かえずに」 */
  .uoyaTravelLoop img.card__image.pic {
    width: 68vw !important;
    height: auto !important;
  }
}

/* ---------- 記事の下の TRAVEL:画面のまん中に来たら背景が黒に(上下の余白は広め) ----------
   2026-12-06 吉田さん「縦線やめてカラートランジションで…」→「黒がいいかもね」「商品はトランジション外して」「上下の余白はちゃんととってね」 */
.uoyaTransZone {
  width: 100%;
  margin: 7rem 0 2rem;
  background-color: #fff;
  transition: background-color .9s ease;
}
.uoyaTransZone.is-on {
  background-color: #111;
}
.uoyaTransZone .companyTravel {
  padding: 8rem 0 10rem; /* 2026-12-06 吉田さん「PC も若干下の余白が黒も白も少ない」 */
}
.uoyaTransZone .companyTravel .product-label::before {
  display: none; /* 縦線はやめる */
}
.uoyaTransZone .product-label {
  transition: color .9s ease;
}
.uoyaTransZone.is-on .product-label {
  color: #fff;
}
/* SP(2026-12-06 吉田さん):TRAVEL の文字はまん中、カードの間を広く、カードの下から黒の終わりまでを広く */
@media (max-width: 768px) {
  .uoyaTransZone {
    margin: 3.5rem 0 1rem;
  }
  .uoyaTransZone .companyTravel {
    padding: 4.5rem 0 7rem;
  }
  .uoyaTransZone .companyTravel .product-label {
    display: flex;
    justify-content: center;
    width: auto;
    margin: 0 auto 1.75rem;
    text-align: center;
  }
  .uoyaTransZone .uoyaTravelLoop__swiper:not(.is-ready) .swiper-wrapper {
    gap: 28px;
  }
}

/* 商品4つ(TOP の商品カードと同じ形・コンテナ幅100%) */
.uoyaRandomGoods {
  width: 100%;
  padding: 6rem 5vw 6rem;
  box-sizing: border-box;
}
.uoyaRandomGoods__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
/* 見出し RELATED GOODS(PRODUCT・TRAVEL と同じ字。縦線は付けない) */
.uoyaRandomGoods .product-label {
  margin: 0 auto 2.5rem;
}
.uoyaRandomGoods .product-label::before {
  display: none;
}
.uoyaRandomGoods__card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.uoyaRandomGoods__thumbLink {
  display: block;
}
.uoyaRandomGoods__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: .8rem;
  background: #f3f4f5;
}
.uoyaRandomGoods__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) {
  .uoyaRandomGoods__thumbLink:hover img {
    transform: scale(1.03);
  }
}
.uoyaRandomGoods__title {
  margin: 0;
  color: #333;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1px;
}
.uoyaRandomGoods__meta {
  margin: -.4rem 0 0;
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: .02em;
}
/* SP(2026-12-06 吉田さん):黒の下の余白を広く。商品は横にスライドして 2.2 枚くらい見える */
@media (max-width: 768px) {
  .uoyaRandomGoods {
    padding: 4.5rem 0 3.5rem;
  }
  .uoyaRandomGoods__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((95vw - 3rem) / 2.2);
    gap: 1.5rem; /* 2026-12-06 吉田さん「商品ももう少し余白広く」 */
    padding: 0 5vw;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 5vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .uoyaRandomGoods__grid::-webkit-scrollbar {
    display: none;
  }
  .uoyaRandomGoods__card {
    scroll-snap-align: start;
  }
  .uoyaRandomGoods .product-label {
    display: flex;
    justify-content: center;
    width: auto;
    margin: 0 auto 1.5rem;
    text-align: center;
  }
  .uoyaRandomGoods__thumb {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }
}

/* ---------- 動画のカード ---------- */
.uoyaShortCard {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 0;
  cursor: pointer;
}
.uoyaShortCard img.card__image.pic {
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  object-position: center;
}
.uoyaShortCard__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4rem;
  height: 4rem;
  margin: -2rem 0 0 -2rem;
  border-radius: 50%;
  background: rgb(0 0 0 / 32%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: background-color .25s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
}
.uoyaShortCard__play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: .7rem 0 .7rem 1.1rem;
  border-color: transparent transparent transparent #fff;
}
@media (hover: hover) {
  .uoyaShortCard:hover .uoyaShortCard__play {
    background-color: rgba(34, 165, 191, .6);
    transform: scale(1.06);
  }
}
.uoyaShortCard:focus-visible {
  outline: 2px solid #22a5bf;
  outline-offset: 4px;
  border-radius: 16px;
}
/* ショートのマーク(YouTube のショートと同じ形)。まん中に */
.uoyaShortCard__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 30%));
  pointer-events: none;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) {
  .uoyaShortCard:hover .uoyaShortCard__mark {
    transform: scale(1.08);
  }
}
@media (max-width: 768px) {
  .uoyaShortCard__play {
    width: 3.25rem;
    height: 3.25rem;
    margin: -1.625rem 0 0 -1.625rem;
  }
  .uoyaShortCard__play::before {
    border-width: .6rem 0 .6rem .95rem;
  }
  .uoyaShortCard__mark {
    width: 3.25rem;
    height: 3.25rem;
    margin: -1.625rem 0 0 -1.625rem;
  }
}

/* TOP の PC は写真に 20px の余白(margin)が付く。重ねる文字・マークが写真からずれないよう、余白はカードの外側へ移す */
.uoyaShortCard img.card__image.pic,
.uoyaContentCard img.card__image.pic {
  margin: 0 !important;
}
.inner.travel .uoyaShortCard,
.inner.travel .uoyaContentCard {
  margin: 20px;
}
@media (max-width: 768px) {
  .inner.travel .uoyaShortCard,
  .inner.travel .uoyaContentCard {
    margin: 0;
  }
}

/* ---------- コンテンツ(uoyaな人・コラム)のカード:写真と同じ枠(タイトルは出さない) ---------- */
.uoyaContentCard {
  display: block;
  position: relative;
  line-height: 0;
  color: #fff;
  text-decoration: none;
}
.uoyaContentCard img.card__image.pic {
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  object-position: center;
}
/* ---------- 再生画面 ---------- */
html.uoyaShortsOpen,
html.uoyaShortsOpen body {
  overflow: hidden !important;
}
.uoyaShorts {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 7rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.uoyaShorts[hidden] {
  display: none;
}
.uoyaShorts.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease;
}
.uoyaShorts__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 95%);
}
.uoyaShorts__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  transform: scale(.96);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.uoyaShorts.is-open .uoyaShorts__stage {
  transform: none;
}
.uoyaShorts__player {
  position: relative;
  height: min(80vh, 54rem);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}
.uoyaShorts__player.is-video {
  height: auto;
  width: min(100%, 70rem, calc(80vh * 16 / 9));
  aspect-ratio: 16 / 9;
}
.uoyaShorts__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.uoyaShorts__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
}
.uoyaShorts__title {
  margin: 0;
  color: rgb(255 255 255 / 85%);
  font-size: .875rem;
  line-height: 1.6;
  letter-spacing: .08em;
}
.uoyaShorts__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: .8125rem;
  letter-spacing: .06em;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.uoyaShorts__link:hover {
  background: #22a5bf;
  color: #fff;
}
.uoyaShorts__link[hidden] {
  display: none;
}

/* 左右・閉じるボタン(travel の .uoyaTravelNav__btn と同じ大きさ・位置) */
.uoyaShorts__nav,
.uoyaShorts__close {
  position: fixed;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 16%);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), background-color .25s ease, box-shadow .25s ease;
}
.uoyaShorts__nav[hidden] {
  display: none;
}
.uoyaShorts__prev {
  top: 50%;
  left: 2rem;
}
.uoyaShorts__next {
  top: 50%;
  right: 2rem;
}
.uoyaShorts__close {
  top: 1.5rem;
  right: 2rem;
  font-size: 1.5rem;
}
@media (hover: hover) and (min-width: 768px) {
  .uoyaShorts__nav:hover,
  .uoyaShorts__close:hover {
    transform: scale(1.02);
    background-color: rgba(34, 165, 191, .6);
    box-shadow: 0 6px 20px rgba(34, 165, 191, .35);
  }
  .uoyaShorts__nav:active,
  .uoyaShorts__close:active {
    transform: scale(.97);
    background-color: #1b93a7;
  }
}

/* SP:travel の右下ボタン(58px・右 20px・下 30px)と同じ。前へは左下に同じ形で */
@media (max-width: 767px) {
  .uoyaShorts {
    padding: 4.5rem 1rem 7.5rem;
  }
  .uoyaShorts__player {
    height: auto;
    width: min(88vw, calc((100svh - 18rem) * 9 / 16));
  }
  .uoyaShorts__player.is-video {
    width: 92vw;
  }
  .uoyaShorts__meta {
    flex-direction: column;
    gap: .6rem;
    text-align: center;
  }
  .uoyaShorts__nav {
    top: auto;
    bottom: 30px;
    width: 58px;
    height: 58px;
    font-size: 22px;
    background: rgb(206 206 206 / 55%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  }
  .uoyaShorts__next {
    right: 20px;
  }
  .uoyaShorts__prev {
    left: 20px;
  }
  .uoyaShorts__close {
    top: 1rem;
    right: 1rem;
  }
}
