/* ==========================================================================
   hajimari-home.css  v89.8— Top の「はじまり」バナーの下に、各章の Hero を縮めたセルを横に並べる
   - セル＝章の Hero（1440×754）をそのままの比率で縮小（コンテナ単位 cqw。1440px＝100cqw）
   - 公開済みの章だけを新しい順に（予告は出さない。目次で見られるため）
   - ホバー：ほかのバナーと同じく Hero 全体が拡大して明るくなり、下帯の台紙が白くなる
   - 06 以降の有料章は note へ直リンク（下帯に価格と ↗。.is-note）
   - 下帯：月相と公開日／状態（無料公開・予告）
   - 送り・ドラッグは日縄日紀と同じ（hajimari-home.js）
   ========================================================================== */
.hajimari-home { width: calc(100% - var(--d-margin) * 2); margin: 0 auto; }
.hajimari-home__scroller {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.hajimari-home__scroller::-webkit-scrollbar { display: none; }
.hajimari-home__scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.hajimari-home__scroller.is-dragging a { pointer-events: none; }
.hajimari-home__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; width: max-content; }
.hajimari-home__card { flex: none; width: 360px; scroll-snap-align: start; }
.hajimari-home__link { display: block; color: var(--color-wine-typo); text-decoration: none; }

/* ---- 縮めた Hero ---- */
.hajimari-home__hero {
  position: relative; display: block; overflow: hidden;
  container-type: inline-size;
  aspect-ratio: 1440 / 754;
  background-color: var(--ch, #7a7272);
}
/* v89.8: 内箱にも章カラーを敷く。ホバーで transform／filter が掛かると内箱が独立した層になり、写偶の乗算（multiply）が下の地色に届かず白く抜けていた */
.hajimari-home__in { position: absolute; inset: 0; display: block; background-color: var(--ch, #7a7272); transition: transform .5s var(--ease-out), filter .5s var(--ease-out); }
.hajimari-home__in > * { position: absolute; margin: 0; line-height: 1; color: #fdd700; white-space: nowrap; }
.hajimari-home__fig { top: 0; left: 50%; height: 100%; width: auto; max-width: none; transform: translateX(-50%); mix-blend-mode: multiply; -webkit-user-drag: none; }
.hajimari-home__fig--half { top: 50%; height: 50%; transform: translate(-50%, -50%); }
.hajimari-home__serial { top: 5.5556cqw; left: 9.0625cqw; font-family: var(--font-goudy); font-size: 3.3333cqw; letter-spacing: var(--ls-display); }
.hajimari-home__series { top: 5.5556cqw; right: 9.0625cqw; height: 12.361cqw; width: auto; -webkit-user-drag: none; }
.hajimari-home__phase { top: 18.4722cqw; left: 9.0625cqw; font-family: var(--font-tsuku-old); font-size: 6.6667cqw; letter-spacing: -0.03em; }
.hajimari-home__ttl { top: 27.0139cqw; left: 9.0625cqw; font-family: var(--font-tsuku-old); font-size: 10.2778cqw; letter-spacing: -0.03em; font-feature-settings: "palt" 1; }
.hajimari-home__ttl .ph-prefix { font-size: 9.4444cqw; }
.hajimari-home__sub { top: 40.9028cqw; left: 9.0625cqw; font-family: var(--font-goudy); font-size: 3.8889cqw; letter-spacing: var(--ls-display); }

/* ---- 下帯 ---- */
.hajimari-home__foot { display: flex; justify-content: space-between; align-items: center; background: var(--color-pattern-bg); padding: 16px 20px; transition: background-color .4s var(--ease-out); }
.hajimari-home__date { display: inline-flex; align-items: center; gap: .3em; font-family: var(--font-goudy); font-size: 20px; line-height: 1; letter-spacing: var(--ls-display); }
.hajimari-home__date img { display: block; width: .75em; height: .75em; }
.hajimari-home__state { font-family: var(--font-tsuku-old); font-size: 15px; line-height: 1; transition: color .2s ease; }

@media (hover: hover) {
  .hajimari-home__link:hover .hajimari-home__in { transform: scale(1.06); filter: brightness(1.10); }   /* バナーと同じく、全体が寄って明るく */
  .hajimari-home__link:hover .hajimari-home__foot { background-color: var(--color-bg-light); }
  .hajimari-home__link:hover .hajimari-home__state { color: var(--color-yellow); }
}
/* 06 以降（有料・note へ直リンク）：下帯の右に価格と ↗ */
.hajimari-home__link.is-note .hajimari-home__state::after { content: " ↗"; font-family: var(--font-goudy); }

@media (max-width: 1024px) { .hajimari-home__card { width: 320px; } }
@media (max-width: 481px) {
  .hajimari-home__list { gap: 12px; }
  .hajimari-home__card { width: calc((100vw - 24px) * 0.6); }
  .hajimari-home__foot { padding: 10px 12px; }
  .hajimari-home__date { font-size: 15px; }
  .hajimari-home__state { font-size: 12px; }
}

/* 送りボタン（日縄日紀と同じ形） */
.hajimari-home__stage { position: relative; }
.hajimari-home__nav {
  position: absolute; z-index: 2; top: 50%;
  width: 49px; height: 49px; margin-top: -24.5px; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  opacity: .8; transition: opacity .25s ease;
}
.hajimari-home__nav img { display: block; width: 100%; height: 100%; }
.hajimari-home__nav--prev { left: 12px; }
.hajimari-home__nav--prev img { transform: scaleX(-1); }
.hajimari-home__nav--next { right: 12px; }
.hajimari-home__nav:focus-visible { outline: 2px solid var(--color-yellow); outline-offset: 3px; opacity: 1; }
.hajimari-home__nav.is-hidden { opacity: 0; pointer-events: none; }
@media (hover: hover) { .hajimari-home__nav:not(.is-hidden):hover { opacity: 1; } }
@media (max-width: 481px) { .hajimari-home__nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .hajimari-home__in, .hajimari-home__foot, .hajimari-home__nav { transition: none; } }

/* v91.1: 矢印は v91.0 の 70%（PC84／TAB67／SP45px）。v91.0: 右下の「無料公開」を、サイト共通の長い矢印に（CD 15.nov）。ホバーで金色・うねる（arrow.js） */
.hajimari-home__arrow { position: relative; top: 1px !important; display: block; margin: 0; width: 84px; height: 14.7px; flex: none; }
.hajimari-home__arrow svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hajimari-home__arrow path { fill: none; stroke: var(--color-wine-typo); stroke-width: 1.5; stroke-linecap: butt; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke .2s ease; }   /* v91.2: 線 1.5px（縮めても太さは一定） */
@media (hover: hover) { .hajimari-home__link:hover .hajimari-home__arrow path { stroke: var(--color-yellow); } }
@media (max-width: 1024px) { .hajimari-home__arrow { width: 67px; height: 11.8px; } }
@media (max-width: 481px)  { .hajimari-home__arrow { width: 45px; height: 7.9px; } .hajimari-home__arrow path { stroke-width: 1.2; } }

/* v102.6（CD 23.nov）：JOMON HOMON のカード（章の後ろ・寄り道）。目次のバナーと同じ地色と銅版の紋様、文字はワイン色で中央 */
.hajimari-home__card--homon .hajimari-home__in > .hajimari-home__pattern { top: 50%; left: 50%; width: 140%; height: auto; max-width: none; transform: translate(-50%, -50%); -webkit-user-drag: none; }
.hajimari-home__card--homon .hajimari-home__in > .hajimari-home__homon { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqw; color: var(--color-wine-typo); white-space: nowrap; }
.hajimari-home__homon-en { font-family: var(--font-goudy); font-size: 8cqw; line-height: 1; letter-spacing: 0; }
.hajimari-home__homon-ja { font-family: var(--font-tsuku-old); font-size: 6.2cqw; line-height: 1; }
.hajimari-home__card--homon .hajimari-home__state { color: var(--color-wine-typo); }
