@charset "UTF-8";
/* ==========================================================================
   ほぼチカ トップ：カテゴリ別の棚 / フロアマップ / キャラ / トップの上部 / イベント広場 / ほぼチカとは？
   base.css・layout.css・catalog.css の後に読み込みます。

   棚の色は js/categories.js から CSS 変数で渡します。
     --c-main / --c-on-main / --c-bg / --c-panel / --c-band
     --shelf-bg-pc / --shelf-bg-sp … 背景イラスト（SP は .hc-shelf-bg で画面に固定）
   カテゴリごとに位置などを調整するときは .hc-shelf.is-{id} に書きます。

   特別トップ（1119-index.html など）だけのスタイルは、
   このファイルの末尾に html.is-{日付} を付けて書きます。
   ========================================================================== */
:root {
  --color-shelf-line: #2e2e2e;     /* 枠・ボタンの線 */
  --color-shelf-lead: #fff;        /* 帯の文字 */
  --color-floormap-bg: #fffde4;
  --shelf-width: 1440px;           /* 棚の中身の最大幅。これより広い画面では枠と帯と商品の並びを画面端まで伸ばす */
  --shelf-card-min: 235px;         /* PC の棚の商品カード：広い画面では、この幅のカードがもう1つ入るごとに並ぶ数を増やす（js/top.js） */
}

/* ------------------------------------------
   フォント
------------------------------------------ */
.hc-shelf-lead,
.hc-shelf-sign.is-text {
  font-family: "Koburina Gothic W6 JIS2004", sans-serif;
}

/* ------------------------------------------
   棚（SP）
   [看板][キャラ]
   [   帯（lead）   ]
   [ 枠：商品5つ + 全部みる ]
------------------------------------------ */
.hc-shelf {
  position: relative;
  overflow-x: clip;
  padding: 40px 0 48px;
  background-color: var(--c-bg);
  clip-path: inset(0);  /* 固定した背景（.hc-shelf-bg）をこの棚の範囲だけに見せる */
}
/* SP：背景は画面に固定して、スクロールすると棚ごとに切り替わって見える
   （iOS Safari は background-attachment: fixed が効かないため、position: fixed の要素で作る） */
.hc-shelf-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  background: var(--shelf-bg-sp) center top / cover no-repeat;
  pointer-events: none;
}
.hc-shelf-inner {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto 12px;
  grid-template-areas:
    ".    sign  chara ."
    "lead lead  lead  lead"
    ".    body  body  ."
    ".    more  more  .";
  align-items: end;
}
.hc-shelf.is-reverse .hc-shelf-inner {
  grid-template-columns: 12px auto minmax(0, 1fr) 12px;
  grid-template-areas:
    ".    chara sign  ."
    "lead lead  lead  lead"
    ".    body  body  ."
    ".    more  more  .";
}

/* 看板（＋看板の横の小さいキャラ）。画像が無いときは文字（js/top.js が .is-text を付ける） */
.hc-shelf-head {
  grid-area: sign;
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hc-shelf-sign img {
  width: auto;
  max-width: 100%;
  height: 104px;
  object-fit: contain;
}
/* SP：看板の幅・位置を指定したカテゴリ（categories.js の sp.sign / sp.signY）。横の空きより大きくてよく、キャラの側にはみ出す */
.hc-shelf-head {
  translate: var(--sp-sign-x, 0px) var(--sp-sign-y, 0px);
}
.hc-shelf.has-sign-sp .hc-shelf-head {
  justify-self: start;
}
.hc-shelf.has-sign-sp.is-reverse .hc-shelf-head {
  justify-self: end;
}
.hc-shelf.has-sign-sp .hc-shelf-sign img {
  width: var(--sp-sign);
  max-width: none;
  height: auto;
}
/* 看板の横の小さいキャラ（SP は看板の下） */
.hc-shelf-friends {
  display: flex;
  margin-top: -4px;
}
.hc-shelf-friends .hc-chara {
  width: 60px;
  margin: 0 -4px;
}
.hc-shelf-sign.is-text {
  width: auto;
  padding: 8px 20px;
  border: 2px solid var(--color-shelf-line);
  border-radius: 16px;
  border-image: var(--rough-16);  /* 手描き風の枠線（base.css） */
  background-clip: padding-box;
  background-color: var(--c-panel);
  font-size: 28px;
  font-weight: var(--font-bolder-weight);
  line-height: 1.3;
}
/* キャラ：SP は下を帯に隠す */
.hc-shelf-chara {
  grid-area: chara;
  width: var(--sp-chara, 160px);  /* categories.js の sp.chara / sp.charaX / sp.charaY で調整 */
  /* 上：画像の上の透明な余白の分だけ詰める（--chara-top は余白 ÷ 画像の幅。js/top.js） */
  margin: calc(var(--sp-chara, 160px) * var(--chara-top, 0) * -1) 0 var(--sp-chara-y, -64px);
  translate: var(--sp-chara-x, 0px) 0;
  /* 下：帯にもぐる深さが帯の高さより深いときは、帯の下にはみ出す分（足元）を切る（--lead-h は js/top.js） */
  clip-path: inset(0 0 max(0px, calc(var(--sp-chara-y, -64px) * -1 - var(--lead-h, 1000px))) 0);
}
.hc-shelf-lead {
  grid-area: lead;
  position: relative;
  z-index: 1;
  padding: 16px 28px;
  background-color: var(--c-band);
  color: var(--color-shelf-lead);
  font-family: 'Shin Maru Go Medium', sans-serif;
  font-size: 15px;
  font-weight: normal;
  line-height: 1.6;
  letter-spacing: 0.15px;
  text-align: left;
}

/* 枠：本体（商品）と「全部みる」の後ろに敷く */
.hc-shelf-panel {
  grid-row: 3 / 5;
  grid-column: 2 / 4;
  align-self: stretch;
  margin-top: 16px;
  border: 2px solid var(--color-shelf-line);
  border-radius: 18px;
  border-image: var(--rough-16-thick);  /* 手描き風の枠線（base.css） */
  background-clip: padding-box;
  background-color: var(--c-panel);
}
.hc-shelf-body {
  grid-area: body;
  position: relative;
  min-width: 0;
  align-self: start;
  margin: 16px 22px 0;
  padding-top: 32px;
}
/* SP：2つ + 大きく1つ + 2つ（大きく出す商品は categories.js の large。js/top.js が .is-large を付ける） */
.hc-shelf-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 16px;
}
.hc-shelf-list .hc-card-link {
  font-size: 16px;
}
.hc-shelf-list > li.is-large {
  grid-column: 1 / -1;
}
.hc-shelf-list > li.is-large .hc-card-link {
  font-size: 20px;
}
/* SP の商品名：小さい画像 17px、大きい画像 21px（PC は catalog.css のまま） */
@media (max-width: 768px) {
  .hc-shelf-list .hc-card-name {
    font-size: 15px;
  }
  .hc-shelf-list > li.is-large .hc-card-name {
    font-size: 18px;
  }
}
/* 商品画像の角に乗せる小さいキャラ（categories.js の minis） */
.hc-chara.hc-shelf-mini {  /* .hc-chara の position: relative より優先 */
  position: absolute;
  z-index: 3;
  width: 60px;
  pointer-events: none;
}
.hc-card-image .hc-shelf-mini img {  /* 商品画像の img のスタイル（catalog.css）を打ち消す */
  height: auto;
  border-radius: 0;
  object-fit: fill;
}
/* ずっとパラパラではなく、ときどき動く：ふだんは2コマ目で止まっていて、SOMETIMES の長さごとに1コマ目と2回行き来する
   キャラごとのずれは js/top.js の --flip-delay（マイナスの値で、途中から始める） */
.hc-chara.hc-shelf-mini img {
  animation: hc-sometimes-1 6s step-end var(--flip-delay, 0s) infinite;
}
.hc-chara.hc-shelf-mini img + img {
  animation-name: hc-sometimes-2;
}
@keyframes hc-sometimes-1 {  /* 1コマ目 */
  0% { opacity: 0; }
  80% { opacity: 1; }
  85% { opacity: 0; }
  90% { opacity: 1; }
  95%, 100% { opacity: 0; }
}
@keyframes hc-sometimes-2 {  /* 2コマ目 */
  0% { opacity: 1; }
  80% { opacity: 0; }
  85% { opacity: 1; }
  90% { opacity: 0; }
  95%, 100% { opacity: 1; }
}
.hc-shelf-mini.is-tl { top: -20px; left: -18px; }
.hc-shelf-mini.is-tr { top: -48px; right: -30px; }
.hc-shelf-mini.is-bl { bottom: 0; left: -18px; }
.hc-shelf-mini.is-br { bottom: 0; right: -24px; }
.hc-shelf-list > li.is-large .hc-shelf-mini {
  width: 72px;
}
.hc-shelf-mini.is-pc-only {
  display: none;
}
.hc-shelf-list > li:nth-child(n+6) {
  display: none;
}
.hc-shelf-arrow {
  display: none;
}

/* 全部みる */
.hc-shelf-more {
  grid-area: more;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 62px;
  margin: 32px 22px 28px;
  border: 2px solid var(--color-shelf-line);
  border-radius: 8px;
  border-image: var(--rough-8);  /* 手描き風の枠線（base.css） */
  background-clip: padding-box;
  background-color: var(--c-main);
  color: var(--c-on-main);
  font-family: 'Shin Maru Go Heavy', sans-serif;
  font-size: 18px;
  line-height: 1;
}
.hc-shelf-more:hover {
  color: var(--c-on-main);
}
.hc-shelf-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ------------------------------------------
   棚（PC）
   左右どちらかにキャラと「全部みる」、反対側は枠と帯を画面端まで伸ばす
   [キャラ] [ 余白 ][看板][帯 →→ 画面端]
   [キャラ] [ 枠：商品（横スクロール） →→ 画面端]
   [全部みる][                         ]
------------------------------------------ */
@media (min-width: 769px) {
  .hc-shelf {
    --bleed: max(0px, (100vw - var(--shelf-width)) / 2);
    padding: 74px 0 32px;  /* 上：棚の上の端から帯（.hc-shelf-lead）まで 74px（看板の高さに関係なく） */
    clip-path: none;  /* PC は背景を固定しないので切らない（大きい看板が棚の上に少しはみ出してもよい） */
    background: var(--shelf-bg-pc) center / cover no-repeat, var(--c-bg);
  }
  .hc-shelf-bg {
    display: none;
  }
  .hc-shelf-inner,
  .hc-shelf.is-reverse .hc-shelf-inner {
    max-width: var(--shelf-width);
    margin: 0 auto;
    grid-template-rows: auto 1fr auto;
  }
  .hc-shelf-inner {
    grid-template-columns: 30px 210px 40px clamp(0px, 11vw, 160px) auto minmax(0, 1fr);
    grid-template-areas:
      ".    chara .    .    sign lead"
      ".    chara .    body body body"
      ".    more  .    body body body";
  }
  .hc-shelf.is-reverse .hc-shelf-inner {
    grid-template-columns: minmax(0, 1fr) auto clamp(0px, 11vw, 160px) 40px 210px 30px;
    grid-template-areas:
      "lead sign .    . chara ."
      "body body body     . chara ."
      "body body body     . more  .";
  }

  .hc-shelf-head {
    position: relative;
    z-index: 2;
    align-self: end;
    justify-self: start;
    margin-top: -300px;  /* 看板の高さで帯の段が高くならないように（看板は帯より上にはみ出す） */
    margin-bottom: -32px;  /* 枠の上に少しかぶせる */
    translate: none;  /* PC は sp.signY を使わない */
  }
  .hc-shelf.is-reverse .hc-shelf-head {
    justify-self: end;
  }
  /* 看板の横の小さいキャラ（PC は看板の外側に、枠の上に立たせる） */
  .hc-shelf-friends {
    position: absolute;
    right: calc(100% - 14px);
    bottom: 30px;
    margin: 0;
  }
  .hc-shelf.is-reverse .hc-shelf-friends {
    right: auto;
    left: calc(100% - 14px);
  }
  .hc-shelf-friends .hc-chara {
    width: 66px;
    margin: 0 -6px;
  }
  .hc-shelf-sign img,
  .hc-shelf.has-sign-sp .hc-shelf-sign img {  /* PC は sp.sign を使わない */
    width: auto;
    max-width: 214px;
    height: 112px;
    object-fit: contain;
  }
  /* 看板の幅を指定したカテゴリ（categories.js の pc.sign。上限は pc.signMax。書かなければ上限なし） */
  .hc-shelf.has-sign-pc .hc-shelf-sign img {
    width: var(--pc-sign);
    max-width: var(--pc-sign-max, none);
    height: auto;
  }
  .hc-shelf-chara {
    grid-row: 1 / 3;
    align-self: end;
    justify-self: center;
    width: 220px;
    margin: 0 0 20px;
    translate: none;  /* PC は sp.charaX を使わない */
    clip-path: none;
  }
  /* 帯：看板の下に少しもぐらせて、すき間をなくす。
     文が帯に収まらないときは、js/top.js が .is-marquee を付けて右から左へ流す */
  .hc-shelf-lead {
    --tuck: 24px;
    align-self: end;
    margin-left: calc(var(--tuck) * -1);
    padding: 6px 16px 6px calc(16px + var(--tuck));
    font-size: 16px;
    letter-spacing: 0.02em;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
  }
  .hc-shelf.is-reverse .hc-shelf-lead {
    margin-right: calc(var(--tuck) * -1);
    padding: 6px calc(16px + var(--tuck)) 6px 16px;
  }
  /* 看板が右の棚は、文を右（看板側）に寄せて、看板とのすき間を左の棚とそろえる（流すときは左から） */
  .hc-shelf.is-reverse .hc-shelf-lead:not(.is-marquee) {
    text-align: right;
  }
  .hc-shelf-lead-track {
    display: inline-flex;
  }
  .hc-shelf-lead.is-marquee .hc-shelf-lead-text {
    padding-right: 5em;  /* 文の終わりと次の始まりの間 */
  }
  /* 画面の目線の高さに来たら流し始める（js/top.js が .is-running を付ける）。画面の外では止める */
  .hc-shelf-lead.is-marquee .hc-shelf-lead-track {
    animation: hc-shelf-marquee var(--marquee-duration, 20s) linear infinite paused;
  }
  .hc-shelf-lead.is-marquee.is-running .hc-shelf-lead-track {
    animation-play-state: running;
  }
  .hc-shelf-lead.is-marquee:hover .hc-shelf-lead-track {
    animation-play-state: paused;
  }
  .hc-shelf-panel {
    grid-area: body;
    margin-top: 0;
    border-radius: 18px 0 0 18px;
    border-right: 0;
    /* 画面端の側は線を出さず、角もまっすぐ（手描き風の枠線：base.css） */
    border-image-width: var(--rough-thick) 0 var(--rough-thick) var(--rough-thick);
  }
  .hc-shelf.is-reverse .hc-shelf-panel {
    border-radius: 0 18px 18px 0;
    border-right: 2px solid var(--color-shelf-line);
    border-left: 0;
    border-image-width: var(--rough-thick) var(--rough-thick) var(--rough-thick) 0;
  }
  /* 画面端まで伸ばす */
  .hc-shelf-lead,
  .hc-shelf-panel {
    margin-right: calc(var(--bleed) * -1);
  }
  .hc-shelf.is-reverse .hc-shelf-panel {
    margin-right: 0;
    margin-left: calc(var(--bleed) * -1);
  }
  .hc-shelf.is-reverse .hc-shelf-lead {
    margin-left: calc(var(--bleed) * -1);
  }

  /* 商品の並びも画面端まで伸ばす（広い画面では、カードが増えて見える） */
  .hc-shelf-body {
    align-self: center;
    margin: 0 calc(var(--bleed) * -1) 0 0;
    padding: 28px 84px 32px;
  }
  .hc-shelf.is-reverse .hc-shelf-body {
    margin: 0 0 0 calc(var(--bleed) * -1);
  }
  .hc-shelf-list {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    /* 一度に見えるカードの数（--shelf-cols）でちょうど割り切る（カードが途中で切れない）
       標準は 4つ（1100px 以下は 3つ）。広い画面では js/top.js が --shelf-cols を増やす */
    --shelf-cols: 4;
    grid-auto-columns: calc((100% - 18px * (var(--shelf-cols) - 1)) / var(--shelf-cols));
    gap: 18px;
    padding-left: 10px;
    margin-left: -10px;
    padding-right: 16px;
    margin-right: -16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 10px;
    scrollbar-width: none;
  }
  .hc-shelf-list::-webkit-scrollbar {
    display: none;
  }
  /* キャラが右の棚は、商品が少なくて枠に収まるときは右（キャラの側）に寄せる
     safe：収まらないときは左寄せに戻る（スクロールできなくならないように。未対応のブラウザも左寄せのまま） */
  .hc-shelf.is-reverse .hc-shelf-list {
    justify-content: safe end;
  }
  .hc-shelf-list > li,
  .hc-shelf-list > li.is-large,
  .hc-shelf-list > li:nth-child(n+6) {
    display: block;
    grid-column: auto;
    scroll-snap-align: start;
  }
  .hc-shelf-list > li.is-large .hc-card-link {
    font-size: 16px;
  }
  .hc-shelf-list > li.is-large .hc-shelf-mini {
    width: 60px;
  }
  .hc-shelf-mini.is-pc-only {
    display: block;
  }
  .hc-shelf-mini.is-sp-only {
    display: none;
  }

  .hc-shelf-arrow {
    position: absolute;
    top: calc(50% - 40px);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--c-main);
    color: var(--c-on-main);
    cursor: pointer;
    transition: opacity 0.3s;
  }
  .hc-shelf-arrow:disabled {
    opacity: 0.3;
    cursor: default;
  }
  .hc-shelf.is-static .hc-shelf-arrow {
    visibility: hidden;
  }
  .hc-shelf-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
  .hc-shelf-prev {
    left: 24px;
  }
  .hc-shelf-prev svg {
    transform: scaleX(-1);
  }
  .hc-shelf-next {
    right: 24px;
  }

  .hc-shelf-more {
    align-self: end;
    width: 100%;
    height: 50px;
    margin: 0;
    font-size: 16px;
  }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .hc-shelf-list {
    --shelf-cols: 3;
  }
}

/* 帯の文を流す（PC・文が帯に収まらないとき）。2つ並べた文の1つ分だけ動かして、つなぎ目なくくり返す */
@keyframes hc-shelf-marquee {
  to { transform: translateX(-50%); }
}
/* 動きを減らす設定の人には流さず、折り返して全文を見せる（js/top.js も流さない） */
@media (prefers-reduced-motion: reduce) {
  .hc-shelf-lead {
    white-space: normal;
  }
}

/* ------------------------------------------
   ボタンのホバー（トップ）
   背景を少し濃くして（--hover-darken を重ねる）、矢印を矢印の向きに少し動かす（--hover-nudge）
   ※ a:hover の半透明（base.css）は使わない
------------------------------------------ */
:is(.hc-shelf-more, .hc-event-more, .hc-hero-all, .hc-shelf-arrow, .hc-carousel-prev, .hc-carousel-next) svg {
  transition: transform 0.3s;
}
@media (hover: hover) {
  :is(.hc-shelf-more, .hc-event-more, .hc-hero-all,
      .hc-shelf-arrow:not(:disabled), .hc-carousel-prev:not(:disabled), .hc-carousel-next:not(:disabled)):hover {
    opacity: 1;
    background-image: linear-gradient(var(--hover-darken), var(--hover-darken));
  }
  :is(.hc-shelf-more, .hc-event-more, .hc-hero-all,
      .hc-shelf-next:not(:disabled), .hc-carousel-next:not(:disabled)):hover svg {
    transform: translateX(var(--hover-nudge));
  }
  /* 左向きの矢印は左右反転してあるので、反転したまま動かす（＝左へ動く） */
  :is(.hc-shelf-prev, .hc-carousel-prev):not(:disabled):hover svg {
    transform: scaleX(-1) translateX(var(--hover-nudge));
  }
}

/* ------------------------------------------
   フロアマップ
   画像の上に SVG のリンクを重ねる（座標は viewBox 0 0 2425 3533 = 画像の実寸）
   ホバー・フォーカスで、光った画像（.hc-floormap-on）を重ねて見せる
------------------------------------------ */
.hc-floormap {
  padding: 0;
  background-color: var(--color-floormap-bg);
}
.hc-floormap-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}
.hc-floormap-base {
  width: 100%;
}
.hc-floormap-on {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.hc-floormap-on.is-active {
  opacity: 1;
}
@media (max-width: 768px) {
  .hc-floormap-on {
    display: none;
  }
}
.hc-floormap-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hc-floormap-links a {
  outline: none;
}
.hc-floormap-links :is(polygon, ellipse) {
  fill: transparent;
  stroke: transparent;
  stroke-width: 12;
}
.hc-floormap-links a:focus-visible :is(polygon, ellipse) {
  stroke: var(--color-text);
}
/* マップの下のクレジット。中央寄せ */
.hc-floormap-credit {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px var(--gutter) 16px;
  font-size: 12px;
  text-align: center;
}
@media (min-width: 769px) {
  .hc-floormap {
    padding: 16px var(--gutter);
  }
  .hc-floormap-credit {
    padding: 8px 0 22px;
    font-size: 13px;
  }
}

/* ------------------------------------------
   パラパラ切り替えのキャラ（js/ui.js の chara()）
   2枚を重ねて、交互に表示する（背景が透明なので、片方を出すときはもう片方を消す）
------------------------------------------ */
.hc-chara {
  position: relative;
  display: block;
}
.hc-chara img {
  display: block;
  width: 100%;
  height: auto;
  animation: hc-flip-1 var(--flip-interval, 1.2s) steps(1, end) var(--flip-delay, 0s) infinite;
}
.hc-chara img + img {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation-name: hc-flip-2;
}
.hc-chara.is-paused img {
  animation-play-state: paused;
}
@keyframes hc-flip-1 {
  0% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes hc-flip-2 {
  0% { opacity: 0; }
  50%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-chara img {
    animation: none !important;
  }
  .hc-chara img + img {
    opacity: 0;
  }
}
/* 1コマだけで動かさないキャラ（chara() の options.frame） */
.hc-chara.is-still img {
  animation: none;
}

/* 画面に入ったら、近い側の画面の端からすべり込ませてふわっと出す（js/ui.js の slideIn。広場のキャラ・棚の横のキャラ）
   SP の棚のキャラは translate で位置を調整しているので、ここでは transform を使う */
.hc-slide-in {
  --slide-distance: 100px;
  opacity: 0;
}
.hc-slide-in.is-from-left {
  transform: translateX(calc(var(--slide-distance) * -1));
}
.hc-slide-in.is-from-right {
  transform: translateX(var(--slide-distance));
}
.hc-slide-in.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------
   トップの上部（通常デザイン）
   --hero-bg-pc / --hero-bg-sp / --hero-card / --hero-arrow は js/hero.js が入れる
   全員集合（data-theme="all"）は、キャラを % で重ねて置く。吹き出しの位置・しっぽは js/hero.js が決める
   SP：[ロゴ][吹き出し][キャラ][今のイチ押し（横長）][ボタン]
   PC：[    ロゴ    ]
       [吹き出し・キャラ][今のイチ押し・ボタン]
------------------------------------------ */
.hc-hero-logo,
.hc-hero-speech,
.hc-hero-all,
.hc-ichioshi-text {
  font-family: "Koburina Gothic W6 JIS2004", sans-serif;
}
.hc-hero {
  overflow: hidden;
  background: var(--hero-bg-sp, none) center top / cover no-repeat, #fff;
}
.hc-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 48px 12px;
}
.hc-hero-logo {
  justify-self: center;
  width: min(100%, 336px);
}
.hc-hero-logo img {
  width: 100%;
}
.hc-hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px;
  margin-top: 50px;
}
/* 吹き出し
   SP は文の長さに合わせた幅にして、真ん中に置く（左右の余白をそろえる。2026-11-13）。長い文は横いっぱいで折り返す */
.hc-hero-speech {
  position: relative;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 15px;
  padding: 16px 22px;
  border: 2px solid var(--color-text);
  border-radius: 32px;
  background-color: #fff;
  font-family: 'Shin Maru Go Heavy', sans-serif;
  font-size: min(16px, 4.1vw);
  line-height: 1.56;
  letter-spacing: -0.32px;
  white-space: pre-line;  /* json の \n で改行 */
}
/* しっぽ（SP は images/top/speech-tail-sp.svg。22×22 / PC は images/top/speech-tail.svg。30×29）
   上の白い部分で吹き出しの下の線を消してつなげる。--tail-x（指したい位置）にしっぽの先を合わせる */
.hc-hero-speech::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--tail-x, 50%);
  width: 22px;
  height: 22px;
  background: url("../images/top/speech-tail-sp.svg") 0 0 / 100% 100% no-repeat;
  transform: translateX(-27px);
}
@media (max-width: 768px) {
  /* SP は吹き出しの線を細くする（しっぽの線の太さに合わせる。2026-11-14） */
  .hc-hero-speech {
    border-width: 1.6px;
  }
  /* SP でしっぽを左右反転（js/hero.js の THEMES の sp.tailFlip）。反転しないときと同じ所をしっぽの先が指すようにずらす */
  .hc-hero-speech.is-tail-flip-sp::after {
    transform: translateX(-9.4px) scaleX(-1);
  }
}
/* キャラ：1人（パラパラ）/ 全員集合（重ねて置く） */
.hc-hero-charas {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hc-hero-charas .hc-chara {
  width: 180px;
}
.hc-hero-charas.is-group {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1534 / 988;  /* js/hero.js の GROUP_W / GROUP_H */
}
/* キャラの動き（js/hero.js がクラスを付ける。流れは js/hero.js の先頭）
   はじめは1コマ目 → .is-pose で2コマ目に切り替えて止める（キャラごとに --pose-delay ずつずらす）
   → .is-flip で、全員集合のキャラ（.is-loop）はパラパラを続ける（2コマ目の次の1コマ目から）。1人表示のテーマは2コマ目のまま */
.hc-hero-charas .hc-chara img {
  animation: none;
  transition: opacity 0s var(--pose-delay, 0s);
}
/* 動きを減らす設定の人・「戻る」「進む」で来たときは、ずらさずに最初から2コマ目 */
@media (prefers-reduced-motion: reduce) {
  .hc-hero-charas .hc-chara img {
    transition: none;
  }
}
.hc-hero.is-instant .hc-hero-charas .hc-chara img {
  transition: none;
}
.hc-hero.is-pose .hc-hero-charas .hc-chara img {
  opacity: 0;
}
.hc-hero.is-pose .hc-hero-charas .hc-chara img + img {
  opacity: 1;
}
/* 全員集合で speechTo がキャラの名前のとき、ほかのキャラ（.is-first）は2コマ目に切り替えず1コマ目のまま */
.hc-hero.is-pose .hc-hero-charas .hc-chara.is-first img {
  opacity: 1;
}
.hc-hero.is-pose .hc-hero-charas .hc-chara.is-first img + img {
  opacity: 0;
}
.hc-hero.is-flip .hc-hero-charas .hc-chara.is-loop img {
  animation: hc-flip-1 var(--flip-interval, 1.2s) steps(1, end) var(--flip-delay, 0s) infinite;
}
.hc-hero.is-flip .hc-hero-charas .hc-chara.is-loop img + img {
  animation-name: hc-flip-2;
}
.hc-hero-charas .hc-group-chara {  /* パラパラのキャラ（.hc-chara）の position: relative より優先 */
  position: absolute;
  height: auto;  /* 幅は js/hero.js の GROUP で1人ずつ決める */
}

/* 1人表示のテーマ：キャラと吹き出しを、枠（.hc-hero-stage）の下の端から測って置く
   位置と大きさは js/hero.js の THEMES の sp / pc（--sp-w・--sp-speech など）。デザインカンプから測った値 */
.hc-hero:not([data-theme="all"]) .hc-hero-stage {
  position: relative;
  display: block;
  height: 528px;  /* ロゴの下からキャラの足元まで */
  min-height: 0;
}
.hc-hero:not([data-theme="all"]) .hc-hero-speech {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--sp-speech);
  z-index: 1;
  margin: 0 auto;  /* 文に合わせた幅で、真ん中に */
  --tail-x: var(--sp-tail);  /* SP は js/hero.js が、吹き出しの位置に合わせて直す（fitTail） */
}
.hc-hero:not([data-theme="all"]) .hc-hero-charas {
  position: absolute;
  inset: 0;
  display: block;
}
.hc-hero:not([data-theme="all"]) .hc-hero-charas .hc-chara {
  position: absolute;
  bottom: var(--sp-y);
  left: calc(50% + var(--sp-x) - var(--sp-w) / 2);
  width: var(--sp-w);
}

/* 今のイチ押し・ボタン */
.hc-hero-side {
  display: grid;
  gap: 4px;
  margin-top: 2%;
}
.hc-ichioshi {
  position: relative;
  padding-top: 20px;
  margin-bottom: 4px;
}
.hc-ichioshi-label {
  position: absolute;
  top: 4px;
  left: 14px;
  z-index: 1;
  width: 150px;
}
.hc-ichioshi-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 12px;
  border: 2px solid var(--color-text);
  border-radius: 16px;
  border-image: var(--rough-16);  /* 手描き風の枠線（base.css） */
  background-clip: padding-box;
  background-color: var(--hero-card);
  color: #fff;
}
.hc-ichioshi-card:hover {
  color: #fff;
}
/* 画像を包む枠。マウスを乗せたときに拡大した画像を、角丸の中で切る（商品カードの .hc-card-photo と同じ） */
.hc-ichioshi-photo {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background-color: #fff;
  isolation: isolate;  /* Safari で、拡大中に角丸の外へはみ出さないように */
}
.hc-ichioshi-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
/* 3行まで。はみ出す分は「…」で省略する（読み上げでは全文が読まれる） */
.hc-ichioshi-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 14px;
  font-weight: var(--font-bolder-weight);
  line-height: 1.5;
}
.hc-ichioshi-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: url("../images/top/ichioshi-arrow-bg.png") center / 100% 100% no-repeat;  /* 手描き風の白い丸（76×76 の2倍書き出し） */
  color: var(--hero-arrow);
}
.hc-ichioshi-arrow svg,
.hc-hero-all svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
/* ブラウザの「戻る」「進む」で来たとき（js/hero.js が .is-instant を付ける）：ふわっと出さずに、すぐ出す */
.hc-hero.is-instant * {
  transition: none !important;
}
/* イチ押し：カードにマウスを乗せたら、背景を少し濃くして、矢印を少し動かす（ボタンのホバーと同じ）
   画像は枠の中で少し大きくする（商品カードと同じ） */
.hc-ichioshi-arrow svg {
  transition: transform 0.3s;
}
@media (hover: hover) {
  .hc-ichioshi-card:hover {
    opacity: 1;
    background-image: linear-gradient(var(--hover-darken), var(--hover-darken));
  }
  .hc-ichioshi-card:hover .hc-ichioshi-arrow svg {
    transform: translateX(var(--hover-nudge));
  }
  .hc-ichioshi-image {
    transition: transform 0.25s ease;
    will-change: transform;  /* Safari で、拡大の始めと終わりに画像がガタつかないように（最初から別の層で描く） */
    backface-visibility: hidden;
  }
  .hc-ichioshi-card:hover .hc-ichioshi-image {
    transform: scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hc-ichioshi-image {
    transition: none;
  }
}
.hc-hero-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  border: 2px solid var(--color-text);
  border-radius: 8px;
  border-image: var(--rough-8);  /* 手描き風の枠線（base.css） */
  background-clip: padding-box;
  background-color: #fff89e;
  font-family: 'Shin Maru Go Bold', sans-serif;
  font-size: 18px;
}
.hc-hero-about {
  display: grid;
  place-items: center;
  height: 56px;
  padding: 0;
  border: 2px solid var(--color-text);
  border-top-width: 1px;
  border-radius: 8px;
  border-image: var(--rough-8);  /* 手描き風の枠線（base.css） */
  background-clip: padding-box;
  background-color: #302f2d;
  cursor: pointer;
  transition: opacity 0.3s;
}
@media (hover: hover) {
  .hc-hero-about:hover {
    opacity: 0.8;
  }
}
.hc-hero-about img {
  width: 132px;
}
@media (min-width: 769px) {
  .hc-hero {
    background-image: var(--hero-bg-pc, none);
    background-position: bottom center;
  }
  .hc-hero-inner {
    max-width: calc(1160px + var(--gutter) * 2);
    margin: 0 auto;
    padding: 42px 8px 72px;
    grid-template-columns: minmax(0, 1fr) 200px;
    grid-template-areas:
      "logo  logo"
      "stage side";
    column-gap: 40px;
    align-items: end;
  }
  .hc-hero-logo {
    grid-area: logo;
    width: 600px;
  }
  .hc-hero-stage {
    grid-area: stage;
    min-height: 480px;
    margin-top: 140px;
    margin-left: 138px;
    justify-content: flex-end;
  }
  /* PC も文の長さに合わせた幅（最大 452px。長い文は折り返す。2026-11-18）
     fit-content だと、left で右に寄せたとき（全員集合など）に右の空きまでで折り返してしまうので max-content */
  .hc-hero-speech {
    align-self: center;
    width: max-content;
    max-width: 452px;
    margin-bottom: 20px;
    padding: 20px 32px;
    font-size: 18px;
    border-radius: 36px;
  }
  .hc-hero-speech::after {
    width: 30px;
    height: 29px;
    background-image: url("../images/top/speech-tail.svg");
  }
  /* しっぽを左右反転（js/hero.js の tailFlip）。反転すると先が画像の x=3 になるので、そこを --tail-x に合わせる */
  .hc-hero-speech.is-tail-flip-pc::after {
    transform: translateX(-3px) scaleX(-1);
  }
  .hc-hero-charas .hc-chara {
    width: 260px;
  }
  /* 1人表示のテーマ：枠をページの真ん中に（右の列の「今のイチ押し」とは重ねる） */
  /* 枠は margin-left: 138px の分、ページの真ん中より 69px 右にある（--pc-center-shift）
     吹き出しとキャラは、その分だけ左に動かしてページの真ん中から置く（THEMES の pc.x / pc.speechX はページの真ん中からの値） */
  .hc-hero:not([data-theme="all"]) .hc-hero-stage {
    --pc-center-shift: 69px;
    grid-column: 1 / -1;
    grid-row: 2;
    height: 585px;  /* 全員集合と同じ高さ（2026-11-12。前は 713px） */
    margin-top: 0;
  }
  .hc-hero:not([data-theme="all"]) .hc-hero-side {
    position: relative;
    z-index: 1;
  }
  /* 吹き出しの真ん中を、幅 452px のときの真ん中にそろえる（短い文は左右から縮む）
     しっぽの先（pc.tail は幅 452px のときの左の端からの位置）も、縮んだ分だけずらして同じ所を指す
     しっぽが角丸にかからないように、端から 52px（反転は 24px）・24px（反転は 52px）の間に収める */
  .hc-hero:not([data-theme="all"]) .hc-hero-speech {
    left: calc(50% + var(--pc-speech-x) - var(--pc-center-shift));
    right: auto;
    translate: -50% 0;
    bottom: var(--pc-speech);
    --tail-x: clamp(52px, calc(var(--pc-tail) - 226px + 50%), calc(100% - 24px));
  }
  .hc-hero:not([data-theme="all"]) .hc-hero-speech.is-tail-flip-pc {
    --tail-x: clamp(24px, calc(var(--pc-tail) - 226px + 50%), calc(100% - 52px));
  }
  .hc-hero:not([data-theme="all"]) .hc-hero-charas .hc-chara {
    bottom: var(--pc-y);
    left: calc(50% + var(--pc-x) - var(--pc-w) / 2 - var(--pc-center-shift));
    width: var(--pc-w);
  }
  /* 全員集合：並びの枠を基準に、吹き出しを重ねて置く
     枠の幅は PC のデザインの大きさ（767px）の 90%（2026-11-12 に小さくした。690px） */
  .hc-hero[data-theme="all"] .hc-hero-stage {
    position: relative;
    justify-self: center;
    width: min(100%, 690px);
    min-height: 0;
  }
  .hc-hero[data-theme="all"] .hc-hero-speech {
    position: absolute;
    left: 32.6%;    /* デザインの決まった位置 */
    bottom: 95.3%;
    z-index: 1;
    margin: 0;
  }
  /* キャラを指さないとき：幅 452px のときの真ん中にそろえて、短い文は左右から縮む */
  .hc-hero[data-theme="all"] .hc-hero-speech:not(.has-target) {
    left: calc(32.6% + 226px);
    translate: -50% 0;
  }
  .hc-hero[data-theme="all"] .hc-hero-speech:not(.has-target)::after {
    left: 48%;
  }
  /* speechTo が "all"（全員に話しかける）のときは、少し下げて、しっぽを左へ（js/hero.js の is-to-all。2026-11-18） */
  .hc-hero[data-theme="all"] .hc-hero-speech.is-to-all {
    bottom: 85.3%;
  }
  .hc-hero[data-theme="all"] .hc-hero-speech.is-to-all::after {
    left: 40%;
  }
  .hc-hero[data-theme="all"] .hc-hero-speech.has-target {
    bottom: 101%;  /* キャラを指すときは並びの上に置く（left は js/hero.js） */
  }
  .hc-hero-side {
    grid-area: side;
    gap: 14px;
    margin: 0 0 6px;
  }
  .hc-ichioshi {
    padding-top: 16px;
  }
  .hc-ichioshi-label {
    top: -8px;
    left: -6px;
    width: 204px;
  }
  .hc-ichioshi-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 8px 8px 12px;
    border-radius: 16px;  /* 手描き風の枠線（rough-line-16）に合わせる */
  }
  .hc-ichioshi-photo {
    border-radius: 10px;
  }
  .hc-ichioshi-text {
    margin: 12px 4px 0;
    font-size: 13px;
  }
  .hc-ichioshi-arrow {
    justify-self: end;
    width: 36px;
    height: 36px;
    margin-top: 8px;
  }
  .hc-hero-all {
    height: 54px;
    font-size: 18px;
  }
  .hc-hero-about {
    height: 42px;
  }
}

/* ------------------------------------------
   トップの上部：登場アニメーション
   .hc-hero.is-intro の間は中身を隠し、js/hero.js が順にクラスを付けて出す
     is-step-title  … タイトルが上から降りてくる
     is-step-today  … キャラ（.is-today。全員集合では9人とも）がふわっと出る
     is-step-speech … 吹き出しが出て、文字（.hc-speech-char）が1字ずつ出る（--d は js/hero.js）
     is-step-rest   … ほかの全部がふわっと出る
   最後に js/hero.js がクラスを全部外す
------------------------------------------ */
.hc-hero-logo {
  transition: opacity 0.4s ease, transform 0.9s cubic-bezier(0.34, 1.35, 0.64, 1);
}
/* タイトル以外は動かさず、その場でふわっと出す */
.hc-hero-charas > *,
.hc-hero-side {
  transition: opacity 0.8s ease;
}
.hc-hero-speech {
  transition: opacity 0.4s ease;
}

/* 出る前 */
.hc-hero.is-intro .hc-hero-logo {
  opacity: 0;
  transform: translateY(-120px);
}
.hc-hero.is-intro .hc-hero-charas > *,
.hc-hero.is-intro .hc-hero-side,
.hc-hero.is-intro .hc-hero-speech {
  opacity: 0;
}
.hc-hero.is-intro .hc-speech-char {
  opacity: 0;
}

/* 出る */
.hc-hero.is-step-title .hc-hero-logo,
.hc-hero.is-step-today .hc-hero-charas > .is-today,
.hc-hero.is-step-speech .hc-hero-speech,
.hc-hero.is-step-rest .hc-hero-charas > *,
.hc-hero.is-step-rest .hc-hero-side,
.hc-hero.is-step-rest .hc-hero-speech {
  opacity: 1;
  transform: none;
}
.hc-hero.is-step-speech .hc-speech-char {
  animation: hc-speech-type 0.15s ease var(--d, 0s) both;
}
.hc-hero.is-step-rest .hc-speech-char {
  opacity: 1;
}
@keyframes hc-speech-type {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* JS が動かなかったときの保険：5秒たったら全部出す */
.hc-hero.is-intro:not(.is-started) .hc-hero-logo,
.hc-hero.is-intro:not(.is-started) .hc-hero-side {
  animation: hc-hero-fallback 0.4s ease 5s both;
}
@keyframes hc-hero-fallback {
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------
   イベント広場
   SP：[看板・キャラ][よこく・よみもの（横スクロール）][短い動画][ピックアップ商品]（背景は画面に固定）
   PC：[        看板        ]
       [よこく・よみもの][短い動画]
       [  大2＋小3   ][ピックアップ商品]
------------------------------------------ */
:root {
  --color-event-bg: #d8e6ae;
  --color-event-green: #298A0C;      /* ボタン・矢印 */
  --color-event-title: #216b0b;      /* 見出し（ひさし）の文字 */
  --color-event-stripe1: #e9ffaa;
  --color-event-stripe2: #b1cd5e;
  --color-event-panel: #f7faef;
}
.hc-awning,
.hc-article-title,
.hc-event-more {
  font-family: "Koburina Gothic W6 JIS2004", sans-serif;
}
.hc-event {
  position: relative;
  overflow-x: clip;  /* すべり込む前のキャラ（.hc-slide-in）で、画面が横にスクロールしないように */
  padding: 32px 0 48px;
  background-color: var(--color-event-bg);
  clip-path: inset(0);
}
.hc-event-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  background: url("../images/event/bg-sp.webp") center top / cover no-repeat;
  pointer-events: none;
}
.hc-event-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 0 12px;
}
.hc-event-head {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.hc-event-sign img {
  width: 220px;
}
/* 広場のキャラ：PC は看板の左上（.hc-event-chara）、SP は「短い動画」の枠の右下（.hc-event-chara-sp） */
.hc-event-chara {
  display: none;
}
.hc-chara.hc-event-chara-sp {
  position: absolute;
  right: 4px;
  bottom: 8px;
  z-index: 6;  /* 枠線（.hc-event-panel::after）より上 */
  width: 116px;
  pointer-events: none;
}
/* SP だけ「よこく・よみもの」の枠の左上（看板と枠の間から、枠の角に乗る）。PC は隠す */
.hc-chara.hc-event-chara-articles {
  position: absolute;
  top: -90px;
  left: -8px;
  z-index: 6;  /* 枠線（.hc-event-panel::after）より上 */
  width: 70px;
  pointer-events: none;
}
/* 中身と背景は、透明な 2px の枠の内側に収める（手描き風の線の外にはみ出さないように） */
.hc-event-panel {
  position: relative;
  isolation: isolate;  /* 枠線（::after）の重なりを枠の中だけにする（外のキャラ .hc-event-chara は枠線より上） */
  padding-bottom: 28px;
  border: 2px solid transparent;
  border-radius: 22px;  /* 手描き風の線（太い）の角に合わせる */
  background-clip: padding-box;
  background-color: var(--color-event-panel);
}
/* 枠線は、中身（見出しの背景など）より上に重ねて描く（手描き風の枠線：base.css） */
.hc-event-panel::after {
  content: "";
  position: absolute;
  inset: -2px;  /* 透明な枠の外側に合わせる */
  z-index: 5;
  border: 2px solid var(--color-text);
  border-radius: inherit;
  border-image: var(--rough-16-thick);
  pointer-events: none;
}
/* 見出し：しましまのひさし
   しま1本 51px（2本で 102px）。下は波形（images/event/awning-wave.svg を 102px ごとにくり返す）
   しまと波の位置は --awning-x（js/event.js が、文字の後ろの帯の両端が薄い緑のしまに来るように決める。
   スクリプトが動かないときは真ん中にそろえる）。文字の後ろには読みやすいように薄い緑の帯を敷く */
.hc-awning {
  --stripe: 51px;
  --awning-x: 50%;
  --wave-h: 23px;
  border-radius: 20px 20px 0 0;  /* 枠（.hc-event-panel）の内側の角丸に合わせる */
  padding: 18px 0 calc(var(--wave-h) + 16px);
  background:
    linear-gradient(90deg, var(--color-event-stripe1) 50%, var(--color-event-stripe2) 50%)
    var(--awning-x) top / calc(var(--stripe) * 2) 100% repeat-x;
  color: var(--color-event-title);
  font-family: 'Shin Maru Go Heavy', sans-serif;
  font-size: 30px;
  font-weight: normal;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 3px;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--wave-h)) no-repeat,
    url("../images/event/awning-wave.svg") var(--awning-x) bottom / calc(var(--stripe) * 2) var(--wave-h) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--wave-h)) no-repeat,
    url("../images/event/awning-wave.svg") var(--awning-x) bottom / calc(var(--stripe) * 2) var(--wave-h) repeat-x;
}
.hc-awning span {
  display: inline-block;
  padding: 3px 14px 4px 18px;  /* letter-spacing のぶん右を狭く */
  background-color: var(--color-event-stripe1);
}
.hc-event-insta {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #302f2d;
  color: #fff;
}
.hc-event-insta:hover {
  color: #fff;
}
.hc-event-insta svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* よこく・よみもの：SP は横スクロール */
.hc-articles {
  display: grid;
  grid-auto-flow: column;
  /* カードは画面の約 52%。左右の余白を同じにして、最初（と最後）のカードが真ん中に来るように
     （列の幅は余白を除いた幅に対する %。100% = 画面の 52%） */
  grid-auto-columns: 100%;
  gap: 16px;
  padding: 32px 24% 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hc-articles::-webkit-scrollbar {
  display: none;
}
.hc-article {
  scroll-snap-align: center;
}
/* PC で枠の下が空いたときだけ出す記事（js/event.js）。SP は出さない */
.hc-article.is-extra {
  display: none;
}
.hc-article-link {
  display: block;
}
@media (hover: hover) {
  .hc-article-link:hover {
    opacity: 1;
    color: var(--color-event-green);
  }
  /* マウスを乗せたら画像だけを少し大きくする（商品カードと同じ。形（clip-path）と白い線（::after）はそのまま） */
  .hc-article-image img {
    transition: transform 0.25s ease;
    will-change: transform;  /* Safari で、拡大の始めと終わりに画像がガタつかないように（最初から別の層で描く） */
    backface-visibility: hidden;
  }
  .hc-article-link:hover .hc-article-image img {
    transform: scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hc-article-image img {
    transition: none;
  }
}
/* 画像の形：角丸の四角（角は幅の 7%）。4つめだけ丸（5つごとにくり返す。6つめ以降（SP の横スクロール・PC の足す段）も同じ）
   2026-11-18 に、一部を欠いた形（images/event/mask/article-1〜5.svg）をやめた。丸だけ残す
   切り抜きは clip-path（ホバーで大きくした画像もはみ出さない）。白い枠（内側 3px）は ::after で重ねる */
.hc-article-image {
  --radius: 7%;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #fff;
  clip-path: inset(0 round var(--radius));
}
.hc-article-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid #fff;
  border-radius: var(--radius);
  pointer-events: none;
}
.hc-article:nth-child(5n+4) .hc-article-image {
  --radius: 50%;
}
.hc-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 2行まで。はみ出す分は「…」で省略する（読み上げでは全文が読まれる） */
.hc-article-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 12px;
  font-size: 16px;
  letter-spacing: 0.54px;
  line-height: 1.33;
}
.hc-event-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 44px);  /* SP：左右 22px あけて、最大 320px で真ん中に */
  max-width: 320px;
  height: 62px;
  margin: 24px auto 0;
  border: 2px solid var(--color-text);
  border-top-width: 1px;
  border-radius: 8px;
  border-image: var(--rough-8);  /* 手描き風の枠線（base.css） */
  background-clip: padding-box;
  background-color: var(--color-event-green);
  color: #fff;
  font-family: 'Shin Maru Go Heavy', sans-serif;
  font-size: 16px;
  letter-spacing: 0.48px;
}
.hc-event-more:hover {
  color: #fff;
}
.hc-event-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* 短い動画・ピックアップ商品：真ん中に1つ、左右に少し見える横スクロール */
.hc-carousel {
  position: relative;
  margin-top: 4px;
}
.hc-carousel-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--item-w);
  gap: 14px;
  padding: 12px calc(50% - var(--item-w) / 2) 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hc-carousel-list::-webkit-scrollbar {
  display: none;
}
.hc-carousel-list > li {
  scroll-snap-align: center;
}
.hc-carousel-prev,
.hc-carousel-next {
  position: absolute;
  top: var(--arrow-top, 50%);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 56px;
  padding: 0;
  border: 0;
  background-color: var(--color-event-green);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.3s;
}
.hc-carousel-prev {
  left: 0;
  border-radius: 0 999px 999px 0;
}
.hc-carousel-next {
  right: 0;
  border-radius: 999px 0 0 999px;
}
.hc-carousel-prev:disabled,
.hc-carousel-next:disabled {
  opacity: 0.3;
  cursor: default;
}
.is-static .hc-carousel-prev,
.is-static .hc-carousel-next {
  visibility: hidden;
}
.hc-carousel-prev svg,
.hc-carousel-next svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.hc-carousel-prev svg {
  transform: scaleX(-1);
}
.hc-event-videos {
  --item-w: 250px;
}
.hc-video-link {
  display: block;
}
.hc-video {
  position: relative;
  transform: scale(var(--video-scale, 1));  /* SP：真ん中以外を小さく（js/event.js） */
}
.hc-video-link img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 16px;
  background-color: #eee;
}
/* 自動再生：サムネイルにぴったり重ねる。クリックは下のリンクに通す（js/event.js） */
.hc-video-player {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border: 0;
  border-radius: 13px;
  background-color: #000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.hc-video.is-playing .hc-video-player {
  opacity: 1;
}
.hc-video-toggle {
  display: block;
  margin: 10px 16px 0 auto;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--color-event-green);
  font-size: 13px;
  font-weight: var(--font-bolder-weight);
  text-decoration: underline;
  cursor: pointer;
}
.hc-event-pickup {
  --item-w: 175px;
  --arrow-top: calc(12px + var(--item-w) / 2);
}
/* 画像は 円 → 角丸の四角 → 円 … の交互 */
@media (hover: hover) {
  .hc-event-pickup .hc-card-link:hover {
    color: var(--color-event-green);
  }
}
.hc-event-pickup .hc-card:nth-child(odd) .hc-card-image,
.hc-event-pickup .hc-card:nth-child(odd) .hc-card-photo {
  border-radius: 50%;
}
@media (min-width: 769px) {
  .hc-event {
    padding: 32px 0;
    background: url("../images/event/bg-pc.webp") center / cover no-repeat, var(--color-event-bg);
  }
  .hc-event-bg {
    display: none;
  }
  .hc-event-inner {
    max-width: calc(1214px + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
    grid-template-columns: minmax(0, 1fr) 436px;
    grid-template-areas:
      "head     head"
      "articles videos"
      "articles pickup";
    grid-template-rows: auto auto 1fr;
    gap: 16px 14px;
  }
  /* 右の列（動画・ピックアップ商品）が無いときは、よこく・よみものだけを全幅で */
  .hc-event:not(.has-side) .hc-event-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "articles";
  }
  .hc-event-head {
    grid-area: head;
    padding-right: 0;
  }
  .hc-event-sign img {
    width: 244px;
  }
  /* PC は看板の左上に加えて、「短い動画」の枠の右下にも（枠の右と下にはみ出す） */
  .hc-event-videos {
    z-index: 1;  /* はみ出したキャラを、下の「ピックアップ商品」の枠より上に出す */
  }
  .hc-chara.hc-event-chara-articles {
    display: none;
  }
  .hc-chara.hc-event-chara-sp {
    right: -43px;
    bottom: -85px;
    width: 130px;
  }
  .hc-event-chara {
    position: absolute;
    z-index: 2;
    display: block;
    top: 50px;
    right: auto;
    bottom: auto;
    left: -54px;
    width: 136px;
  }
  .hc-event-articles {
    grid-area: articles;
    display: flex;
    flex-direction: column;
  }
  .hc-event-videos {
    grid-area: videos;
    --item-w: 180px;
  }
  .hc-event-pickup {
    grid-area: pickup;
    --item-w: 230px;
  }
  .hc-awning {
    font-size: 30px;
  }
  /* よこく・よみもの：大2つ＋小3つ */
  .hc-articles {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px 24px;  /* 段の間（28px）は、枠の下が空いたぶん js/event.js が広げる（最大 ARTICLES_GAP_MAX） */
    padding: 16px 36px 0;
    overflow: visible;
  }
  .hc-article {
    grid-column: span 2;
  }
  .hc-article:nth-child(-n+2) {
    grid-column: span 3;
  }
  .hc-article:nth-child(-n+2) .hc-article-title {
    font-size: 20px;
  }
  .hc-article:nth-child(n+6) {
    display: none;
  }
  /* 枠の下が空いたときに足す段（js/event.js が is-shown を付ける） */
  .hc-article.is-extra.is-shown {
    display: block;
  }
  .hc-event-more {
    align-self: flex-end;
    width: 208px;
    height: 50px;
    margin: auto 34px 0 0;
    padding: 0;
    font-size: 16px;
  }
  .hc-articles + .hc-event-more {
    margin-top: 28px;
  }
}

/* ------------------------------------------
   短い動画を再生する窓（<dialog>。js/event.js の createVideoDialog）
   縦長（9:16）の動画を、画面の高さに収まる大きさで真ん中に。下に「YouTubeで見る」
------------------------------------------ */
.hc-video-dialog {
  --video-h: min(100dvh - 150px, 720px);
  width: fit-content;  /* 動画の幅に合わせる（auto だと画面の幅いっぱいになり、閉じるボタンが画面の右端に行く） */
  max-width: calc(100% - 24px);
  max-height: none;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}
.hc-video-dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hc-video-dialog::backdrop {
  background-color: rgba(52, 70, 80, 0.85);
}
.hc-video-dialog-frame {
  width: calc(var(--video-h) * 9 / 16);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background-color: #000;
  overflow: hidden;
}
.hc-video-dialog-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* PC：動画の右上の外（動画の右の端から 12px あける。YouTube の設定ボタンに重ならないように） */
.hc-video-dialog-close {
  position: absolute;
  top: -12px;
  right: -60px;
  z-index: 1;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;  /* フォーカスの枠を丸く */
  background: none;
  cursor: pointer;
}
.hc-video-dialog-close img {
  width: 100%;
  height: 100%;
}
.hc-video-dialog-youtube {
  padding: 10px 28px;
  border-radius: 999px;
  background-color: #fff;
  color: var(--color-text);
  font-weight: var(--font-bold-weight);
  font-size: 15px;
}
/* SP：閉じるボタンは動画の上の右端に（画面の端からはみ出さず、YouTube の設定ボタンに重ならないように） */
@media (max-width: 768px) {
  .hc-video-dialog {
    --video-h: min(100dvh - 220px, 720px);
    margin-top: max(64px, calc((100dvh - var(--video-h) - 70px) / 2));
  }
  .hc-video-dialog-close {
    top: -56px;
    right: 0;
  }
}

/* ------------------------------------------
   ほぼチカとは？（<dialog>）
------------------------------------------ */
.is-dialog-open {
  overflow: hidden;
}
.hc-about {
  width: min(100% - 24px, 688px);
  max-width: none;
  max-height: calc(100% - 48px);
  padding: 0;
  border: 2px solid var(--color-text);
  border-radius: 22px;  /* 太い手描き風の線の角に合わせる（18px だと角で白い背景が線の外にはみ出す） */
  background: url("../images/top/bg-default-pc.jpg") center top / 1440px auto, #fff;
  border-image: var(--rough-16-thick);  /* 手描き風の枠線（base.css） */
  background-clip: padding-box;
  color: var(--color-text);
  overflow: hidden;
}
/* 中身だけスクロールして、閉じるボタンは右上に残す */
.hc-about[open] {
  display: flex;
  flex-direction: column;
}
.hc-about::backdrop {
  background-color: rgba(52, 70, 80, 0.75);
}
.hc-about-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;  /* フォーカスの枠を丸く */
  background: none;
  cursor: pointer;
}
/* 手描き風の丸いボタン（images/top/about-close.png。117×117 の2倍書き出し） */
.hc-about-close img {
  width: 100%;
  height: 100%;
}
.hc-about-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;  /* 縦に収まらないとき（SP の低い画面など）は中身だけスクロール。閉じるボタンは枠に固定のまま */
  overscroll-behavior: contain;  /* スクロールしきっても背面のページが動かないように */
}
.hc-about-inner {
  padding: 56px 24px 48px;
}
.hc-about-title img {
  width: min(100%, 300px);
  margin: 0 auto;
}
.hc-about-illust {
  width: min(100%, 503px);
  margin: 24px auto 0;
}
.hc-about-text {
  margin-top: 32px;
  font-size: 15px;
  font-weight: var(--font-bolder-weight);
  line-height: 2.1;
}
.hc-about-text br {
  display: none;  /* SP は改行位置を決めずに流す */
}
@media (min-width: 769px) {
  .hc-about-close {
    top: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
  }
  .hc-about-inner {
    padding: 72px 0 64px;
  }
  .hc-about-title img {
    width: 556px;
  }
  .hc-about-illust {
    margin-top: 32px;
  }
  .hc-about-text {
    width: fit-content;  /* いちばん長い行の幅にして、そのかたまりを真ん中に置く（文字は左揃えのまま） */
    margin-inline: auto;
    padding: 0 64px;
  }
  .hc-about-text {
    font-size: 16px;
  }
  .hc-about-text br {
    display: inline;
  }
}

/* ------------------------------------------
   タブレット（SP の並べ方で、幅が 600〜768px：iPad mini の縦など）
   SP の並べ方のままだと横に間延びするので、中身を最大 --tablet-width で真ん中に寄せる
   （背景・帯は画面いっぱいのまま）。棚の商品は 3つずつ 2段（6つ）
------------------------------------------ */
@media (min-width: 600px) and (max-width: 768px) {
  :root {
    --tablet-width: 640px;
    --tablet-gutter: max(12px, calc((100% - var(--tablet-width)) / 2));
  }
  .hc-hero-inner,
  .hc-event-inner {
    max-width: calc(var(--tablet-width) + 24px);
    margin: 0 auto;
  }
  /* 棚：看板・キャラ・枠を真ん中の 640px に（帯は画面いっぱい） */
  .hc-shelf-inner {
    grid-template-columns: var(--tablet-gutter) minmax(0, 1fr) auto var(--tablet-gutter);
  }
  .hc-shelf.is-reverse .hc-shelf-inner {
    grid-template-columns: var(--tablet-gutter) auto minmax(0, 1fr) var(--tablet-gutter);
  }
  .hc-shelf-lead {
    padding-right: var(--tablet-gutter);
    padding-left: var(--tablet-gutter);
  }
  /* 商品は 3つずつ 2段。大きく出す商品は作らない */
  .hc-shelf-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hc-shelf-list > li.is-large {
    grid-column: auto;
  }
  .hc-shelf-list > li:nth-child(6) {
    display: block;
  }
  .hc-shelf-list > li.is-large .hc-card-link {
    font-size: 16px;
  }
  .hc-shelf-list > li.is-large .hc-card-name {
    font-size: 17px;
  }
  .hc-shelf-list > li.is-large .hc-shelf-mini {
    width: 60px;
  }
  /* 商品に乗せる小さいキャラは、PC 用の並び（横に並ぶ前提）を使う */
  .hc-shelf-mini.is-pc-only {
    display: block;
  }
  .hc-shelf-mini.is-sp-only {
    display: none;
  }
  /* よこく・よみもの：カードは最大 300px */
  .hc-articles {
    padding-right: max(24%, calc(50% - 150px));
    padding-left: max(24%, calc(50% - 150px));
  }
}

/* ------------------------------------------
   特別トップ（日付ごと）
   例：html.is-1119 .hc-shelf { ... }
------------------------------------------ */
