@charset "utf-8";
/* ============================================================
   style.css
   ============================================================ */

/* ===== CSS変数 ===== */
:root {
  --center-w: 750px;
  --color-bg: #662D1A;
  --color-border: rgba(0, 0, 0, 0.09);
  --bg-top: url('../images/top/top-bg.webp');
  --bg-trend: url('../images/trend/t-bg.webp');
  --bg-outer: url('../images/outer/o-bg.webp');
  --bg-item: url('../images/item/i-bg.webp');
  --bg-kids: url('../images/kids/k-bg.webp');
}

/* ===== ベース ===== */
html,
body {
  height: 100%;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== LAYOUT =====
   左右 fluid（1fr）、中央 750px 厳密固定
===== */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ===== ヘッダーセクション ===== */
header {
  width: 100%;
  height: auto;
  background-color: #ffffff;
}

header img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* ===== 左右サイドバー共通 ===== */
.sidebar-left,
.sidebar-right {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 20px;
}

.sidebar-left {
  border-right: 1px solid var(--color-border);
}

.sidebar-right {
  border-left: 1px solid var(--color-border);
}

/* ===== 画像スロット ===== */
.img-slot {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sidebar-left .img-slot span {
  width: 94%;
  height: auto;
  display: block;
  min-width: 192px;
}

.sidebar-right .img-slot span {
  width: 79%;
  height: auto;
  display: block;
  min-width: 176px;
}

.img-slot svg {
  opacity: 0.35;
}

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ===== CENTER — 750px固定、スクロール ===== */
.main {
  background-image: var(--bg-top);
  background-size: cover;
  max-width: var(--center-w);
  width: 100%;
  padding: 0;
  position: relative;
}

/* ===== コンテンツ ===== */
.main-vj {
  width: 100%;
  height: auto;
  position: relative;
  overflow: clip;
}

.main-vj-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.main-vj h1 {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.main .lead {

  margin-bottom: 40px;
  font-size: 14px;
  padding: 0 40px;
}


section a {
  display: block;
}

.block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 14px;
}

.block h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.block p {
  margin: 0;
  font-size: 13px;
}

/* ===== トレンドページ ===== */
.trend {
  background-image: var(--bg-trend);
  background-size: cover;
}


/* ===== アウターページ ===== */
.outer {
  background-image: var(--bg-outer);
  background-size: cover;
}

/* ===== アイテムページ ===== */
.item {
  background-image: var(--bg-item);
  background-size: cover;
}

/* ===== キッズコーデページ ===== */
.kids {
  background-image: var(--bg-kids);
  background-size: cover;
  background-color: #ffffff;
}

/* ===== アニメーション定義 ===== */

/* キーフレーム */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* アニメーション前の初期状態（非表示） */
[data-anim] {
  opacity: 0;
}

/* 発火したら対応アニメーションを実行 */
[data-anim="fade-in"].animated {
  animation: fadeIn 0.7s ease forwards;
}

[data-anim="fade-up"].animated {
  animation: fadeUp 0.7s ease forwards;
}

[data-anim="fade-down"].animated {
  animation: fadeDown 0.6s ease forwards;
}

[data-anim="zoom-in"].animated {
  animation: zoomIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

[data-anim="slide-right"].animated {
  animation: slideRight 0.65s ease forwards;
}

[data-anim="slide-left"].animated {
  animation: slideLeft 0.65s ease forwards;
}


.btn-top {
  width: 20%;
  max-width: 80px;
  min-width: 50px;
  display: block;
  position: fixed;
  bottom: 3%;
  right: 2%;
  z-index: 100;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 表示された時のクラス */
.btn-top.is-show {
  opacity: 1;
  pointer-events: auto;
}

/* ===== ページリンクボタン ===== */
.link-btn {
  display: block;
  margin-top: 10%;
}

/* ブロックを順番に遅らせる（stagger） */
[data-anim][data-delay="1"] {
  animation-delay: 0.1s;
}

[data-anim][data-delay="2"] {
  animation-delay: 0.2s;
}

[data-anim][data-delay="3"] {
  animation-delay: 0.3s;
}

[data-anim][data-delay="4"] {
  animation-delay: 0.4s;
}

[data-anim][data-delay="5"] {
  animation-delay: 0.5s;
}

/* ===== スマホ用ハンバーガー ===== */
.hamburger {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 310;
  flex-direction: column;
  justify-content: center;
  gap: 12%;
  width: 44px;
  height: 44px;
  min-height: 2px;
  background: #3E0D00;
  border: none;
  border-radius: 0;
  padding: 2%;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  min-height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  flex-shrink: 0;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== OVERLAY ===== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 200;
}

.overlay.visible {
  display: block;
}

/* ===== MOBILE (≤750px) ===== */
@media (max-width: 750px) {
  .hamburger {
    display: flex;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 210;
  }

  .sidebar-left.open {
    transform: translateX(0);
  }

  .sidebar-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    justify-content: center;

    background-color: var(--color-bg);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 210;
  }

  .sidebar-right.open {
    transform: translateX(0);
  }

  .main {
    width: 100%;
  }

  .main h1,
  .main .lead {
    padding-left: 18px;
    padding-right: 18px;
  }

  .btn-top {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .btn-top.is-show {
    opacity: 1;
    pointer-events: auto;
  }


}