@charset "UTF-8";
/* ========================================
   SNS Landing (sns_link) 専用スタイル / boco-deco
   - テーマ共通CSSは読み込まない前提のスタンドアロン最小セット
   - 中央幅は --c-snslink-max（既定430px・テンプレートが上書き）
   - 名前空間 c-snslink-* で通常ページへ漏れないようにする
======================================== */

body.c-snslink-body {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}

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

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

.c-snslink-zone {
  display: block;
}

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

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

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

/* ========================================
   BC-SNS-B: 4列/3列グリッド・スライド・YouTube（c-snslink-* 名前空間）
======================================== */
.c-snslink-grid { display: grid; }
.c-snslink-grid--4 { grid-template-columns: repeat(4, 1fr); }
.c-snslink-grid--3 { grid-template-columns: repeat(3, 1fr); }
.c-snslink-grid__cell {
  aspect-ratio: 1 / 1;   /* 比率混在でも崩れない正方形セル */
  overflow: hidden;
  min-width: 0;
}
.c-snslink-grid__cell .c-snslink-link { display: block; width: 100%; height: 100%; }
.c-snslink-grid__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.c-snslink-zone--slider { position: relative; }
.c-snslink-swiper { position: relative; }
.c-snslink-slide { overflow: hidden; background: #f2f2f2; }
.c-snslink-slide .c-snslink-link { display: block; width: 100%; height: 100%; }
.c-snslink-slide__img { display: block; width: 100%; height: 100%; }
.c-snslink-swiper .swiper-pagination-bullet { background: #fff; opacity: .6; box-shadow: 0 0 2px rgba(0,0,0,.6); }
.c-snslink-swiper .swiper-pagination-bullet-active { background: #fff; opacity: 1; }
.c-snslink-swiper-btn {
  display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer;
}
.c-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; }
.c-snslink-swiper-btn--prev { left: 8px; }
.c-snslink-swiper-btn--next { right: 8px; }
.c-snslink-swiper-btn--prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.c-snslink-swiper-btn--next::before { transform: translate(-70%, -50%) rotate(135deg); }
.c-snslink-swiper-btn:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
@media (min-width: 768px) { .c-snslink-swiper-btn { display: block; } }
@media (prefers-reduced-motion: reduce) { .c-snslink-swiper .swiper-wrapper { transition-duration: 1ms !important; } }

.c-snslink-yt { position: relative; overflow: hidden; background: #000; width: 100%; }
.c-snslink-yt__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.c-snslink-yt--noimg .c-snslink-yt__thumb { display: none; }
.c-snslink-yt__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.12); cursor: pointer; }
.c-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,.72); }
.c-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; }
.c-snslink-yt__play:hover .c-snslink-yt__icon, .c-snslink-yt__play:focus-visible .c-snslink-yt__icon { background: #f00; }
.c-snslink-yt__play:focus-visible { outline: 3px solid #1a73e8; outline-offset: -3px; }
.c-snslink-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
