@charset "UTF-8";
/* ========================================
   SNS Landing (sns_link) 専用スタイル
   - テーマ共通CSSは読み込まない前提のスタンドアロン最小セット
   - 中央幅は --snslink-max(既定430px・テンプレートが上書き)
======================================== */
body.snslink-body {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}

.snslink {
  width: 100%;
  max-width: var(--snslink-max, 430px);
  margin-inline: auto;
  min-height: 100vh;
  box-sizing: border-box;
}

.snslink *,
.snslink *::before,
.snslink *::after {
  box-sizing: border-box;
}

.snslink-zone {
  display: block;
}

.snslink-link {
  display: block;
  line-height: 0;
}

.snslink-img {
  display: block;
  width: 100%;
  height: auto;
}

.snslink-link:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

/* ========================================
   CL-144: 4列/3列グリッド・スライド・YouTube
======================================== */
/* ---- グリッド(セル幅は常に 4/3 等分・不足分は左詰めで空セル非出力) ---- */
.snslink-grid {
  display: grid;
}

.snslink-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.snslink-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.snslink-grid__cell {
  aspect-ratio: 1/1; /* 比率混在でも崩れない正方形セル */
  overflow: hidden;
  min-width: 0;
}

.snslink-grid__cell .snslink-link {
  display: block;
  width: 100%;
  height: 100%;
}

.snslink-grid__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- スライド ---- */
.snslink-zone--slider {
  position: relative;
}

.snslink-swiper {
  position: relative;
}

.snslink-slide {
  overflow: hidden;
  background: #f2f2f2;
}

.snslink-slide .snslink-link {
  display: block;
  width: 100%;
  height: 100%;
}

.snslink-slide__img {
  display: block;
  width: 100%;
  height: 100%;
}

.snslink-swiper .swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.6;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}

.snslink-swiper .swiper-pagination-bullet-active {
  background: #ffffff;
  opacity: 1;
}

.snslink-swiper-btn {
  display: none; /* SP: 非表示(フォーカス対象にも残さない) */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.snslink-swiper-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #333;
  border-left: 2px solid #333;
}

.snslink-swiper-btn--prev {
  left: 8px;
}

.snslink-swiper-btn--next {
  right: 8px;
}

.snslink-swiper-btn--prev::before {
  transform: translate(-30%, -50%) rotate(-45deg);
}

.snslink-swiper-btn--next::before {
  transform: translate(-70%, -50%) rotate(135deg);
}

.snslink-swiper-btn:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .snslink-swiper-btn {
    display: block;
  } /* PC のみ矢印表示 */
}
@media (prefers-reduced-motion: reduce) {
  .snslink-swiper .swiper-wrapper {
    transition-duration: 1ms !important;
  }
}
/* ---- YouTube ファサード ---- */
.snslink-yt {
  position: relative;
  overflow: hidden;
  background: #000;
  width: 100%;
}

.snslink-yt__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.snslink-yt--noimg .snslink-yt__thumb {
  display: none;
} /* サムネ取得失敗時は黒背景のみ */
.snslink-yt__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.snslink-yt__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.snslink-yt__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
}

.snslink-yt__play:hover .snslink-yt__icon,
.snslink-yt__play:focus-visible .snslink-yt__icon {
  background: #f00;
}

.snslink-yt__play:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: -3px;
}

.snslink-yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
