/* ============================================================
   WORDS &#8212; トップページ CSS
   カラーミー「トップページCSSを編集する」に貼り付けてください
   ============================================================ */

/* ---------- NEWS BAR ---------- */
.news-bar {
  background: #fcfbf7;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 13px;
}
.news-list { list-style: none; }
.news-item { display: flex; gap: 14px; align-items: baseline; padding: 3px 0; }
.news-date { color: var(--muted); font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
.news-item a { color: var(--ink); transition: opacity .2s; }
.news-item a:hover { opacity: .6; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; background: var(--dark); overflow: hidden; }

/* 動画の下地（画像は使わず、読み込み中はダークの無地） */
.hero-img {
  position: absolute; inset: 0;
  background: var(--dark);
  transform-origin: 60% 50%;
}
/* ヒーロー動画（縦動画）：PCは枠に合わせて拡大、スマホはそのままフィット。
   見せたい位置は object-position の2つ目の値（30%＝やや上寄り）で調整できます */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
/* 2本目の動画はフェードで切り替わる */
.hero-video.hv2 { opacity: 0; transition: opacity .8s ease; }
.hero-video.hv2.show { opacity: 1; }
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(20,18,15,.86) 0%,
    rgba(20,18,15,.72) 32%,
    rgba(20,18,15,.25) 60%,
    rgba(20,18,15,.05) 100%);
}
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-inner .wrap { width: 100%; }
.hero h1 {
  font-family: var(--serif); color: #f6f1e7;
  font-weight: 500; font-size: 74px; line-height: 1.04; letter-spacing: .04em;
}
.hero .since {
  font-family: var(--serif); color: #f6f1e7;
  font-size: 30px; letter-spacing: .18em; margin-top: 14px; font-weight: 500;
}
.hero .jp {
  color: #ece6da; font-weight: 300; font-size: 16px;
  letter-spacing: .08em; margin-top: 26px; line-height: 2;
}
.hero-cta { display: flex; gap: 16px; margin-top: 38px; }
.scroll-ind {
  position: absolute; left: 32px; bottom: 44px; z-index: 3; color: #e8e1d4;
  writing-mode: vertical-rl; font-family: var(--serif); font-size: 12px; letter-spacing: .3em;
  display: flex; align-items: center; gap: 10px;
}
.scroll-ind .ln { width: 1px; height: 46px; background: #e8e1d4; transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-ind .ln { animation: scrollLn 2.2s ease-in-out infinite; }
  @keyframes scrollLn { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
}
.hero-count {
  position: absolute; right: 32px; bottom: 44px; z-index: 3;
  display: flex; align-items: center; gap: 14px; color: #ece6da; font-family: var(--serif);
}
.hero-count .cur { font-size: 22px; }
.hero-count .tot { font-size: 13px; opacity: .7; letter-spacing: .1em; }
.hero-count .dash { width: 26px; height: 1px; background: rgba(255,255,255,.45); }
.hero-count .dash.on { background: #fff; }
.hero-wave {
  position: absolute; left: -7%; right: auto; bottom: -1px;
  z-index: 4; width: 114%; display: block; height: auto; will-change: transform;
}
/* 二色の重なった波（奥＝薄い生成り、手前＝白） */
.hero-wave .w-back { fill: var(--cream2); }
.hero-wave .w-front { fill: var(--paper); }

/* ヒーロー入場アニメーション＋ゆっくりズーム（ケンバーンズ効果） */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .since, .hero .jp, .hero-cta {
    opacity: 0; transform: translateY(22px);
    animation: heroIn .95s cubic-bezier(.22,.61,.36,1) forwards;
  }
  .hero .since { animation-delay: .12s; }
  .hero .jp    { animation-delay: .26s; }
  .hero-cta    { animation-delay: .40s; }
  @keyframes heroIn { to { opacity: 1; transform: none; } }
  .hero-img { animation: kenburns 22s ease-in-out infinite alternate; }
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
}

/* ---------- POPULAR SERIES（カテゴリーカードの横スクロール：画像＋左上うたい文句＋カテゴリー名＋リンク） ---------- */
.pcard {
  flex: 0 0 264px; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 26px rgba(90,70,40,.08);
  display: block; scroll-snap-align: start;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(90,70,40,.15); }
/* 画像エリア（各カテゴリーの先頭商品の写真を自動取得＝data-img-from＝して全面表示） */
.pcard .pimg { position: relative; aspect-ratio: 1 / 1; background: #faf8f3; overflow: hidden; }
.pcard .pimg img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.pcard:hover .pimg img { transform: scale(1.04); }
/* 左上のうたい文句バッジ */
.pbadge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: #3a3f44; color: #fff; font-size: 11px; font-weight: 500;
  letter-spacing: .04em; padding: 6px 13px; border-radius: 6px;
}
.pcard-body { padding: 16px 18px 20px; }
.pcard-body .nm { font-size: 17px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.pcard-body .en {
  font-family: var(--serif); font-size: 12px; letter-spacing: .14em; color: var(--muted);
  margin-top: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.plink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gold-d); font-weight: 500; letter-spacing: .04em;
  margin-top: 12px; text-decoration: underline; text-underline-offset: 3px;
  transition: gap .2s;
}
.pcard:hover .plink { gap: 10px; }
.plink svg { width: 14px; height: 14px; stroke: var(--gold-d); fill: none; stroke-width: 1.8; }

/* ---------- RANKING ---------- */
.rank-wrap { position: relative; }
.rank-row { position: relative; z-index: 1; padding: 12px 6px 24px; }
.rcard {
  flex: 0 0 260px; background: #fff; border-radius: 10px;
  padding: 20px 20px 22px; position: relative;
  box-shadow: 0 8px 26px rgba(90,70,40,.08);
  display: block; scroll-snap-align: start;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.rcard:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(90,70,40,.15); }
.rbadge {
  position: absolute; top: 16px; left: 16px; color: #fff; z-index: 2;
  font-family: var(--serif); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; padding: 5px 14px; border-radius: 4px;
  background: #a89e88; /* 6位以降の既定色（1&#12316;5位は下で個別指定） */
}
.rbadge.b1 { background: var(--gold); }
.rbadge.b2 { background: #9c968b; }
.rbadge.b3 { background: #6f5436; }
.rbadge.b4 { background: #7e8a96; }
.rbadge.b5 { background: #b0a288; }
/* 6&#12316;10位：上位より控えめなトーンで統一 */
.rbadge.b6 { background: #b0a68f; }
.rbadge.b7 { background: #aaa088; }
.rbadge.b8 { background: #a89e88; }
.rbadge.b9 { background: #a39980; }
.rbadge.b10 { background: #9e947c; }
.rtag-xl {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: #b0322c; color: #fff; font-size: 11px; font-weight: 500;
  padding: 4px 9px; border-radius: 3px; letter-spacing: .02em;
}
.rcard .rimg { height: 185px; margin-top: 26px; display: flex; align-items: center; justify-content: center; }
.rcard .rimg img {
  max-height: 180px; max-width: 100%; width: auto; mix-blend-mode: multiply;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.rcard:hover .rimg img { transform: translateY(-5px) scale(1.04); }
.rcard .rnm { font-size: 14px; font-weight: 500; margin-top: 18px; letter-spacing: .04em; text-align: left;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rrow { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.rcard .rpr { font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.rar { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.8; flex: 0 0 auto;
  transition: transform .25s; }
.rcard:hover .rar, .xlcard:hover .rar { transform: translateX(4px); }

/* ---------- XL SIZE ---------- */
.xl-catch { font-size: 17px; font-weight: 700; line-height: 1.9; margin-top: 18px; letter-spacing: .03em; }
.xl-right { min-width: 0; }
.xl-lead { text-align: center; margin-bottom: 26px; }
.xl-lead .t { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.xl-lead .s { font-size: 13px; color: var(--muted); font-weight: 300; margin-top: 8px; letter-spacing: .04em; }
/* 「最大62cm」固定列＋カルーセルの2段組 */
.xl-body { display: grid; grid-template-columns: 156px 1fr; gap: 20px; align-items: start; }
.xl-body > * { min-width: 0; }
.xl-stat { padding: 4px 14px 0 0; }
.xl-max { font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.xl-num {
  font-family: var(--serif); font-weight: 600; font-size: 74px; line-height: .86;
  display: flex; align-items: flex-end; gap: 5px; color: var(--ink);
}
.xl-num span { font-size: 22px; font-weight: 500; margin-bottom: 11px; }
.xl-line { font-family: var(--serif); font-size: 13px; letter-spacing: .16em; margin-top: 10px; }
.xl-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.xl-chips span { border: 1px solid var(--line); font-size: 12px; padding: 5px 14px; color: var(--ink); background: #fff; }
.xlcard .sz { background: var(--cream); border-color: transparent; }
.xlcard {
  flex: 0 0 212px; display: block; background: #fff;
  padding: 16px 16px 18px; text-align: center;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease;
}
.xlcard:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(90,70,40,.12); }
.xlcard .ph {
  height: 170px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.xlcard .ph img { max-height: 160px; max-width: 100%; width: auto; mix-blend-mode: multiply; }
.xlcard .nm { font-size: 13px; font-weight: 500; margin-top: 12px; letter-spacing: .04em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xlcard .sz {
  display: inline-block; border: 1px solid var(--line); background: #fff;
  font-size: 11px; padding: 2px 12px; margin-top: 8px; color: var(--ink);
}
.xlcard .prw { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 0 2px; }
.xlcard .pr { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.xl-voice {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 34px; flex-wrap: wrap;
}
.xl-ic { width: 44px; height: 44px; color: var(--ink); flex: 0 0 auto; }
.xl-voice .vline { width: 1px; height: 40px; background: var(--line); }
.xl-voice p { font-size: 13px; line-height: 2; letter-spacing: .03em; }
.xl-voice .more { margin-top: 0; }

/* ---------- OUR STORY ---------- */
.story-media { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; height: 330px; }
.story-collage { position: relative; overflow: hidden; display: block; cursor: pointer; }
.story-collage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-collage.on .play { display: none; }
.story-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.story-collage:hover img { transform: scale(1.04); }
.play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.play svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--ink); }
.story-store { overflow: hidden; }
.story-store img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- INSTAGRAM（3列グリッド＋カード） ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ig-post {
  display: block; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(90,70,40,.06);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.ig-post:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(90,70,40,.13); }
.ig-photo { aspect-ratio: 1 / 1; position: relative; overflow: hidden; }
.ig-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.ig-post:hover .ig-photo img { transform: scale(1.07); }
.ig-info {
  padding: 10px 14px 12px; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); letter-spacing: .03em;
}
.ig-ic { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.6; flex: 0 0 auto; }
.ig-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center;
}
.ig-play svg { width: 12px; height: 12px; margin-left: 2px; fill: var(--ink); }

/* ---------- SHOP ---------- */
.shop-info .row {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 13px; font-weight: 300; margin-top: 8px;
}
.shop-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: 300px; }
.shop-media .ph { overflow: hidden; }
.shop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.shop-media .ph:hover img { transform: scale(1.04); }
.map-box { position: relative; overflow: hidden; border: 1px solid var(--line); }

/* ---------- NEW ARRIVAL（03と同じ縦長カードの横スクロール） ---------- */
.na-card {
  flex: 0 0 232px; background: #fff; border-radius: 10px;
  padding: 20px 20px 22px; position: relative;
  box-shadow: 0 8px 26px rgba(90,70,40,.08);
  display: block; scroll-snap-align: start;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.na-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(90,70,40,.15); }
.na-new {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--serif); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; color: #fff; background: var(--gold-d);
  padding: 5px 14px; border-radius: 4px;
}
.na-img { height: 185px; margin-top: 26px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.na-img img {
  max-height: 180px; max-width: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.na-card:hover .na-img img { transform: translateY(-5px) scale(1.04); }
.na-nm {
  font-size: 14px; font-weight: 500; margin-top: 18px; letter-spacing: .04em; text-align: left;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.na-md { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .06em; }
.na-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.na-pr { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.na-card:hover .rar { transform: translateX(4px); }

/* ---------- カルーセルのドット ---------- */
.caro-dots { display: flex; gap: 11px; justify-content: center; margin-top: 24px; }
.caro-dots button {
  width: 9px; height: 9px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--muted); background: transparent; transition: background .25s, border-color .25s;
}
.caro-dots button.on { background: var(--ink); border-color: var(--ink); }

/* ---------- RESPONSIVE（トップページ固有） ---------- */
@media (max-width: 980px) {
  /* スマホ・タブレットでは番号(01&#12316;07)は残し、下線（横棒）だけ非表示 */
  .sidehead .num::after { display: none; }
  /* ヒーローをひと回りコンパクトに */
  .hero { height: 78vh; min-height: 480px; }
  .hero h1 { font-size: 42px; }
  .hero .since { font-size: 19px; margin-top: 10px; }
  .hero .jp { font-size: 14px; margin-top: 18px; }
  .hero-cta { flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 26px; }
  .hero-cta .btn { font-size: 14px; padding: 13px 28px; }
  .scroll-ind { display: none; }
  /* スマホ・タブレットでは「01 / 07」とダッシュをまとめて非表示 */
  .hero-count { display: none; }
  .xl-body { grid-template-columns: 1fr; }
  /* スマホは少し小さめカードで No.1&#12316;5 を横スクロール */
  .rcard { flex: 0 0 218px; }
  .xlcard { flex: 0 0 190px; }
  .xl-voice { gap: 12px; }
  .xl-voice .vline { display: none; }
  .story-media, .shop-media { grid-template-columns: 1fr; height: auto; }
  .story-collage { height: 230px; }
  .story-store { height: 180px; }
  .shop-media .ph, .shop-media .map-box { height: 200px; }
  .xl-stat { display: none; }
  /* スマホはカードを少しコンパクトに */
  .rcard { flex: 0 0 218px; }
  .xlcard { flex: 0 0 190px; }
  /* スマホは01・02も少し小さめカードで横スクロール */
  .na-card, .pcard { flex: 0 0 206px; }
  /* Instagramは2列グリッドに */
  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 640px) {
  .hero { height: 70vh; min-height: 430px; }
  .hero h1 { font-size: 33px; }
  .hero .since { font-size: 16px; }
  .hero .jp { font-size: 13px; line-height: 1.9; }
  section.block { padding: 60px 0; }
}
