/* MAKEシリーズ総合トップ（makebook.shop/） */
.hub-by { font-size: 12px; color: var(--ink-3); margin-left: 4px; }
@media (max-width: 640px) { .hub-by { display: none; } }
.hub-nav a { font-size: 14px; }
.hub-main { padding-top: 16px; padding-bottom: 40px; }
.hub-main .dp-slider { margin-top: 0; }
.hub-sec { margin: 48px 0; }
.hub-h2 { font-family: "Noto Serif JP", serif; font-size: 26px; text-align: center; margin: 0 0 22px; }
.hub-h2 small { display: block; font-family: "Noto Sans JP", sans-serif; font-size: 13px; font-weight: 400; color: var(--ink-3); margin-top: 6px; }
.series-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .series-cards { grid-template-columns: 1fr; } }
.series-card { display: grid; grid-template-rows: auto 1fr; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); transition: .15s; }
.series-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(15,35,80,.10); }
.sc-img { aspect-ratio: 16 / 9; overflow: hidden; background: #eee; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; }
.sc-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.sc-logo { height: 28px; width: auto; align-self: flex-start; }
.sc-sub { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.sc-body p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.sc-body ul { margin: 0; padding-left: 1.1em; font-size: 13px; line-height: 1.8; }
.sc-from { font-weight: 700; color: var(--accent); font-size: 14px; }
.sc-body .btn { margin-top: auto; align-self: flex-start; }
.hub-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .hub-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hub-points { grid-template-columns: 1fr; } }
.hub-points div { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.hub-points b { display: block; font-size: 15px; margin-bottom: 4px; }
.hub-points span { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.hub-factory { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: center; }
.hub-factory img { width: 100%; height: auto; border-radius: 14px; }
.hub-factory p { font-size: 14px; line-height: 1.9; }
@media (max-width: 800px) { .hub-factory { grid-template-columns: 1fr; } }
.hub-contact { text-align: center; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 28px 16px; }
.hub-tel a { font-size: 30px; font-weight: 800; color: var(--ink); text-decoration: none; font-family: "Noto Serif JP", serif; }
.hub-tel small { display: block; font-size: 12px; color: var(--ink-3); }

/* ---- メインのカルーセル（中央に1枚・左右に前後がのぞく） ---- */
.hc { position: relative; margin: 18px 0 0; --sw: min(1040px, 78vw); --gap: 28px; }
.hc-viewport { overflow: hidden; touch-action: pan-y; cursor: grab; padding: 14px 0 34px; }
.hc-viewport:active { cursor: grabbing; }
.hc-track { display: flex; gap: var(--gap); transition: transform .7s cubic-bezier(.22,.8,.24,1); will-change: transform; }
.hc-slide { position: relative; flex: 0 0 var(--sw); aspect-ratio: 16 / 7.4; min-height: 360px; border-radius: 18px; overflow: hidden; background: #1b2a44;
  opacity: .5; transform: scale(.8); transition: opacity .7s, transform .8s cubic-bezier(.2,.9,.25,1.12), box-shadow .8s; user-select: none; z-index: 0; }
/* 左右は小さく奥へ（中央側を基準に縮めて、すき間が広がらないように）。中央は手前にせり出す */
.hc-slide.is-left { transform-origin: right center; }
.hc-slide.is-right { transform-origin: left center; }
.hc-slide.is-active { opacity: 1; transform: scale(1); z-index: 1; box-shadow: 0 24px 50px rgba(15,35,80,.28); }
.hc-slide:not(.is-active) { cursor: pointer; }
.hc-slide picture, .hc-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-slide img { transform: scale(1.08); transition: transform 7s ease-out; }
.hc-slide.is-active img { transform: scale(1); }            /* ゆっくりズームアウト */
.hc-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,40,.74) 0%, rgba(10,20,40,.42) 40%, rgba(10,20,40,0) 68%); }
.hc-cap { position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: min(560px, 60%); display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px 44px 28px 64px; color: #fff; }
.hc-cap > * { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.hc-slide.is-active .hc-cap > * { opacity: 1; transform: none; }
.hc-slide.is-active .hc-cap > :nth-child(2) { transition-delay: .1s; }
.hc-slide.is-active .hc-cap > :nth-child(3) { transition-delay: .2s; }
.hc-slide.is-active .hc-cap > :nth-child(4) { transition-delay: .3s; }
.hc-slide.is-active .hc-cap > :nth-child(5) { transition-delay: .4s; }
.hc-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hc-badges span { font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: var(--accent-bright); color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.hc-futo .hc-badges span { background: #c78a45; }
.hc-denpyo .hc-badges span { background: #2f6fd0; }
.hc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #ffd9b3; }
.hc-cap h1, .hc-cap h2 { font-family: "Noto Serif JP", serif; font-size: clamp(22px, 3vw, 36px); line-height: 1.4; margin: 0; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hc-cap p { margin: 0; font-size: 14px; line-height: 1.8; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.hc-cap .btn { align-self: flex-start; margin-top: 6px; }
.hc-arrow { position: absolute; z-index: 2; top: calc(50% - 28px); transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #012667; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(15,35,80,.18); }
.hc-arrow.prev { left: calc((100% - var(--sw)) / 2 - 23px); }
.hc-arrow.next { right: calc((100% - var(--sw)) / 2 - 23px); }
.hc-arrow:hover { background: var(--accent); color: #fff; }
.hc-dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 0; }
.hc-dots button { width: 9px; height: 9px; border-radius: 5px; border: 0; padding: 0; background: #cfd5df; cursor: pointer; transition: width .3s, background .3s; }
.hc-dots button[aria-current] { background: var(--accent); width: 28px; }
@media (max-width: 700px) {
  .hc { --sw: 86vw; --gap: 10px; }
  .hc-slide { aspect-ratio: 4 / 5; min-height: 0; }
  .hc-slide::after { background: linear-gradient(0deg, rgba(10,20,40,.85) 0%, rgba(10,20,40,.5) 55%, rgba(10,20,40,.05) 100%); }
  .hc-cap { width: 100%; top: auto; padding: 18px 18px 22px; }
  .hc-arrow { display: none; }
}

/* ---- つくりたいものから探す（写真チップが2段で流れる） ---- */
.hub-find { margin: 8px 0 0; padding: 22px 0 26px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hub-find-h { text-align: center; font-family: "Noto Serif JP", serif; font-size: 20px; margin: 0 0 14px; }
.hub-find-h small { font-family: "Noto Sans JP", sans-serif; font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 10px; }
.mq { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-in { display: flex; gap: 12px; width: max-content; animation: mq 90s linear infinite; }
.mq-rev .mq-in { animation-direction: reverse; animation-duration: 70s; }
.mq:hover .mq-in { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-50% - 6px)); } }
.fchip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fbf9f5; text-decoration: none; color: var(--ink); white-space: nowrap; transition: transform .25s, border-color .25s, box-shadow .25s; }
.fchip:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 6px 16px rgba(15,35,80,.12); }
.fchip img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #eee; }
.fchip span { display: flex; flex-direction: column; line-height: 1.25; }
.fchip b { font-size: 14px; }
.fchip i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); }
.fchip-futo i { color: #a7702f; }
.fchip-denpyo i { color: #2f6fd0; }

/* ---- 数字で見る ---- */
.hub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .hub-stats { grid-template-columns: 1fr 1fr; } }
.stat { text-align: center; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 18px 10px; }
.stat b { font-family: "Noto Serif JP", serif; font-size: 40px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat i { font-style: normal; font-weight: 700; margin-left: 2px; color: var(--accent); }
.stat span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ---- スクロールでふわっと ---- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.8,.24,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---- ホバーの動き ---- */
.series-card .sc-img img { transition: transform .6s ease; }
.series-card:hover .sc-img img { transform: scale(1.06); }
.series-card { transition: border-color .2s, box-shadow .3s, transform .3s; }
.series-card:hover { transform: translateY(-4px); }
.hub-points div { transition: transform .3s, box-shadow .3s; }
.hub-points div:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15,35,80,.08); }

@media (prefers-reduced-motion: reduce) {
  .hc-track, .hc-slide, .hc-slide img, .hc-cap > *, .rv { transition: none !important; }
  .mq-in { animation: none; }
  .mq { overflow-x: auto; }
  .rv { opacity: 1; transform: none; }
}
.fchip-futo img, .fchip-denpyo img { object-fit: contain; background: #fff; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
