@charset "UTF-8";
/* ============================================================
   10C REPIPI セレモニー2027 LP  base.css
   PC：ラフ(幅1366px)の座標を % / cqw に変換して配置
   SP：縦積み + 左右ずらしで再構成
============================================================ */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: #efecea;
}
a { text-decoration: none; color: #000; }
a:hover { opacity: 0.8; }

#wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  text-align: center;
  font-family: "Noto Sans JP", "Yu Gothic Medium", "游ゴシック Medium", sans-serif;
  font-weight: 400;
  color: #000;
}
#wrapper img { border: 0; vertical-align: bottom; max-width: 100%; display: block; }

/* ---------- 共通：セクション ---------- */
.sec {
  position: relative;
  width: 100%;
  aspect-ratio: 1366 / var(--H);
  container-type: inline-size;
  background-color: #e9e6e4;
}
.bg_fv    { background: #f1efec url("../images/bg/bg1.jpg") center / cover no-repeat; }
.bg_tweed { background: #bdbbbf url("../images/bg/bg2.jpg") center top / 100% auto repeat-y; }
.bg_dot   { background: #e6dcd5 url("../images/bg/bg3.jpg") center top / 100% auto repeat-y; }
.bg_cool  { background: #c4c0c4 url("../images/bg/bg2.jpg") center top / 100% auto repeat-y; }
.bg_lineup{ background: #c3c4c8 url("../images/bg/bg4.jpg") center / cover no-repeat; padding-bottom: 50%;}

/* 最上部の写真：ふんわりフェードイン */
.fv_in { animation: fvIn 2.4s ease-out 0.3s both; }
@keyframes fvIn {
  from { opacity: 0; filter: blur(8px); }
  to   { opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fv_in { animation: none; }
}

/* PC：座標配置 */
.abs {
  position: absolute;
  left: calc(var(--x) * 100% / 1366);
  top: calc(var(--y) * 100% / var(--H));
  width: calc(var(--w, 0) * 100% / 1366);
}
.abs img { width: 100%; height: auto; }

/* ---------- フォント ---------- */
.f_script { font-family: "Petit Formal Script", "BIZ UDPMincho", serif; font-weight: 400; }
.f_serif  { font-family: "Bodoni Moda", "Shree Bangali 1520", "BIZ UDPMincho", "Noto Serif JP", serif; font-weight: 600; }

/* ---------- テキスト ---------- */
.txt {
  font-size: calc(var(--fs, 23) * 100cqw / 1366);
  font-weight: 600;
  line-height: 1.82;
  letter-spacing: 0.08em;
  text-align: center;
  margin: 0;
}
.ib { display: inline-block; }
.ttl_script {
  font-size: calc(var(--fs, 66) * 120cqw / 1366);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0;
}
.ttl_script .y { font-size: 88%; }
.ttl_serif {
  font-size: calc(var(--fs, 50) * 100cqw / 1366);
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-align: center;
  margin: 0;
}
.ttl_serif .dot { font-family: "Petit Formal Script", serif; }

/* 商品リンク */
.links { text-align: center; }
.links a {
  display: table;
  margin: 0 auto calc(39 * 100cqw / 1366);
  font-size: calc(20 * 100cqw / 1366);
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}
.links a:last-child { margin-bottom: 0; }

/* ピル見出し */
.pill_wrap { left: 0; width: 100%; text-align: center; }
.pill {
  display: inline-block;
  width: calc(var(--pw) * 100cqw / 1366);
  height: calc(var(--ph) * 100cqw / 1366);
  line-height: calc(var(--ph) * 100cqw / 1366);
  border-radius: 999px;
  font-size: calc(var(--fs, 36) * 100cqw / 1366);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.pill_blue { background: #c8d0da; }
.pill_gray { background: #8f8f8c; }

.logo { mix-blend-mode: multiply; }

/* ---------- スタック（ぱらぱら切り替わる画像） ---------- */
.stack { aspect-ratio: var(--ar); }
.stack .sl {
  position: absolute;
  left: 0; top: 5%;
  width: 100%;
  opacity: 0;
  z-index: 0;
}
/* 新しい写真が上でフェードイン。差し替わる側は透明にならずに下で待機 */
.stack .sl.p0 { opacity: 1; z-index: 2; transition: opacity 1.2s ease-in-out; }
.stack .sl.prev { opacity: 1; z-index: 1; }

/* ---------- 3枚並び ---------- */
.trio {
  left: 0;
  width: 100%;
  display: flex;
  gap: 0.9%;
  padding: 0 3.4%;
  box-sizing: border-box;
}
.trio > div { flex: 1 1 0; min-width: 0; }
.trio img { width: 100%; height: auto; }

/* ---------- LINE UP ---------- */
.lu_item { text-align: center; }
.lu_item img { width: 100%; height: auto; margin: 0 auto; }
.lu_item .nm {
  display: inline-block;
  margin-top: calc(10 * 100cqw / 1366);
  font-size: calc(16.8 * 100cqw / 1366);
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.lu_item .sz {
  display: block;
  font-size: calc(16.8 * 100cqw / 1366);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.btn_all a {
  display: inline-block;
  font-size: calc(50 * 100cqw / 1366);
  line-height: 1.2;
  letter-spacing: 0.02em;
	margin-top: 6%;
}

.sp { display: none; }
.sp_row { display: contents; }

/* ============================================================
   SP（〜768px）
============================================================ */
@media only screen and (max-width: 768px) {
  .pc { display: none; }
  .sp { display: block; }

  .sec {
    aspect-ratio: auto;
    container-type: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12% 0 12%;
    box-sizing: border-box;
  }
  .bg_fv { background-position: 40% center; }
  .bg_tweed, .bg_dot, .bg_cool { background-size: 100% auto; }

  .abs {
    position: relative;
    left: auto; top: auto;
    width: var(--spw, 78%);
    margin: 0 auto 7%;
  }

  .ttl_script { font-size: 38px; line-height: 1.15; margin-bottom: 6%; }
  .ttl_serif  { font-size: 32px; }
  .txt { font-size: 13px; line-height: 1.95; letter-spacing: 0.04em; }

  .links a { font-size: 12.5px; margin-bottom: 14px; }
  .links a:last-child { margin-bottom: 0; }

  .pill {
    width: auto; height: auto;
    padding: 11px 31px;
    line-height: 1.4;
    font-size: 18.7px;
  }
  .pill_wrap { width: 100%; }
  .pill_wrap.gap_top { margin-top: 12%; }
  .sp_gap_top { margin-top: 12%; }

  /* 横2列 */
  .sp_row {
    display: flex;
    gap: 3%;
    width: 92%;
    margin: 0 auto 4%;
  }
  .sp_row .abs { flex: 1 1 0; min-width: 0; width: auto; margin: 0; }

  /* 左右ずらし配置 */
  .sp_l { margin-left: 5%; margin-right: auto; }
  .sp_r { margin-right: 5%; margin-left: auto; }
  .sp_c { margin-left: auto; margin-right: auto; }

  .stack {
    width: var(--spw, 64%);
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--spmt, 0);
    margin-bottom: var(--spmb, 18%);
  }

  .logo { width: 25%; --spw: 44%; margin-bottom: 7%; }

  /* 3枚：スワイプスライダー */
  .trio {
    width: 100%;
    gap: 3%;
    padding: 0 7%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-bottom: 7%;
  }
  .trio::-webkit-scrollbar { display: none; }
  .trio > div { flex: 0 0 72%; scroll-snap-align: center; }

  /* LINE UP：2列グリッド */
  .lu_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 4%;
    width: 92%;
    margin: 0 auto 10%;
    align-items: end;
  }
  .lu_grid .lu_item { width: auto; margin: 0; position: static; }
  .lu_grid .lu_item.full { grid-column: 1 / -1; width: 48%; justify-self: center; }
  /* 写真の見え方を統一（全て同じ正方形） */
  .lu_grid .lu_item img { aspect-ratio: 5 / 4; object-fit: contain; }
  .lu_item .nm, .lu_item .sz { font-size: 11.9px; margin-top: 4px; }
  .lu_item .sz { margin-top: 0; }
  .btn_all { margin-bottom: 0; }
  .btn_all a { font-size: 30px; }
}
