/* ホイール商品ページ共通：余白・文字サイズ・色は:rootで管理します。 */
:root {
  --collection-heading-top: 120px;
  --collection-logo-width: 261px;
  --collection-nav-gap: 40px;
  --collection-model-space: 48px;
  --collection-intro-gap: 48px;
  --collection-card-gap: 24px;
  --collection-card-space: 40px;
  --collection-photo-width: 800px;
  --collection-copy-width: 736px;
  --collection-card-width: 232px;
  --collection-photo-radius: 24px;
  --collection-dialog-width: 1000px;
  --collection-dialog-padding: 24px;
  --collection-backdrop: #111827b3;
  --collection-table-head: #888;
  --collection-table-border: #d9dde3;
  --collection-dialog-radius: 16px;
  --collection-dialog-image-width: 340px;
  --collection-dialog-mobile-height: 90dvh;
}
.collection-page { background: var(--color-white); }
.collection { padding-top: var(--collection-heading-top); padding-bottom: var(--section-space); }
.collection-logo { width: var(--collection-logo-width); margin-inline: var(--space-auto); }
.collection-nav { margin-top: var(--space-8); margin-bottom: var(--collection-nav-gap); }
.collection-tabs { display: flex; justify-content: safe center; gap: var(--space-6); overflow-x: auto; padding-block: var(--space-1) var(--space-3); scrollbar-width: thin;}
.collection-tabs li { flex-shrink: 0; }
.collection-tab { display: grid; place-items: center; min-width: 120px; min-height: 44px; padding: var(--space-2) var(--space-4); border: 1px solid var(--color-menu-shade); border-radius: var(--radius-round); background: linear-gradient(145deg, var(--color-menu), var(--color-menu-shade)); color: var(--color-black); font-size: var(--font-size-16); font-weight: 500; transition: color var(--duration-fast), box-shadow var(--duration-fast); }
.collection-tab:hover { color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.collection-model { padding-block: var(--collection-model-space); border-bottom: 1px solid var(--color-sub); }
.collection-model:first-child { padding-top: var(--space-0); }
.collection-model:last-child { padding-bottom: var(--space-0); border-bottom: 0; }
.collection-photo { width: min(100%, var(--collection-photo-width)); aspect-ratio: 2 / 1; object-fit: cover; margin-inline: var(--space-auto); border-radius: 0; }
/* 装着画像：画像は四角いままにして、表示枠の角丸だけで切り抜く。 */
.collection-photo-carousel { width: min(100%, var(--collection-photo-width)); min-width: 0; margin-inline: auto; }
.collection-photo-viewport { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--collection-photo-radius); }
[data-photo-carousel] .collection-photo-viewport { cursor: grab; touch-action: pan-x pan-y pinch-zoom; }
[data-photo-carousel] .collection-photo-viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.collection-photo-viewport::-webkit-scrollbar { display: none; }
.collection-photo-viewport .collection-photo { flex: 0 0 100%; width: 100%; min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.collection-photo-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-3); }
.collection-photo-arrow { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-white); color: var(--color-text); font-size: var(--font-size-30); line-height: 1; }
.collection-photo-arrow:hover { color: var(--color-accent); border-color: currentColor; }
.collection-photo-dots { display: flex; flex-wrap: wrap; justify-content: center; min-width: 0; }
.collection-photo-dots button { display: grid; place-items: center; width: 32px; height: 44px; background: transparent; border: 0; }
.collection-photo-dots button::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); }
.collection-photo-dots button[aria-current="true"]::after { background: var(--color-text); }
.collection-intro { width: min(100%, var(--collection-copy-width)); margin-top: var(--collection-intro-gap); margin-inline: var(--space-auto); text-align: center; }
.collection-title { font-size: var(--font-size-30); line-height: 1.3; }
.collection-subtitle { margin-top: var(--space-2); font-size: var(--font-size-16); text-align: center; }
.collection-description { margin-top: var(--space-6); font-size: var(--font-size-16); line-height: 1.8; }
.collection-cards { display: flex; justify-content: center; gap: var(--collection-card-gap); margin-top: var(--collection-card-space); }
.collection-card { display: flex; flex-direction: column; align-items: center; width: var(--collection-card-width); min-width: 0; flex-shrink: 1; text-align: center; }
.collection-wheel-link { display: block; }
.collection-wheel { width: 200px; height: 220px; object-fit: contain; }
.collection-size { margin-top: var(--space-6); color: var(--color-black); font-size: var(--font-size-16); }
.collection-color { display: flex; align-items: baseline; justify-content: center; gap: var(--space-2); align-self: stretch; min-height: 48px; margin-top: var(--space-2); color: var(--color-black); font-size: var(--font-size-14); line-height: 1.5; text-align: left; }
.collection-color span { flex-shrink: 0; padding: var(--space-0) var(--space-2); background: var(--color-black); color: var(--color-white); font-size: var(--font-size-12); }
.collection-button { position: relative; display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; min-height: 48px; padding: var(--space-3) var(--space-8); margin-top: var(--space-2); border-radius: var(--radius-round); background: var(--color-text); color: var(--color-white); font-size: var(--font-size-14); transition: background var(--duration-fast); }
.collection-button:hover { background: var(--color-heading); }

/* modul / 03_BountyCollection-SP_modal */
.collection-dialog { width: min(calc(100% - var(--space-12)), var(--collection-dialog-width)); max-width: none; max-height: 92vh; max-height: 92dvh; padding: var(--space-0); margin: var(--space-auto); overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: var(--collection-dialog-radius); background: var(--color-modal); color: var(--color-white); }
.collection-dialog::backdrop { background: var(--collection-backdrop); }
.collection-dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: center; height: 0; padding: var(--space-0); background: var(--color-text); }
.collection-dialog-info h2 { font-size: var(--font-size-30); line-height: 1.3; text-align: left; }
.collection-close { position: absolute; top: var(--space-4); right: var(--space-4); display: grid; place-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; }
.collection-close span { grid-area: 1 / 1; width: 28px; height: 2px; background: currentColor; transform: rotate(45deg); }
.collection-close span:last-child { transform: rotate(-45deg); }
.collection-dialog-content { display: grid; grid-template-columns: minmax(0, var(--collection-dialog-image-width)) minmax(0, 1fr); align-items: center; gap: var(--space-6); min-height: 600px; padding: var(--collection-dialog-padding); }
.collection-dialog-model { margin-top: var(--space-2); text-align: left; font-size: var(--font-size-30); line-height: 1.4; }
.collection-dialog-color { margin-top: var(--space-1); text-align: left; font-size: var(--font-size-16); }
.collection-gallery { margin-top: var(--space-6); }
.collection-gallery img { width: 360px; height: 360px; max-width: 100%; object-fit: contain; margin-inline: var(--space-auto); }
.collection-gallery-controls { display: flex; justify-content: center; gap: var(--space-1); margin-top: var(--space-2); }
.collection-gallery-controls button { position: relative; display: grid; place-items: center; width: 30px; height: 3px; border: 0; background: transparent; }
.collection-gallery-controls button::after { content: ''; width: 30px; height: 3px; background: var(--color-border); }
.collection-gallery-controls button[aria-pressed="true"]::after { background: var(--color-accent); }
.collection-gallery-controls:has(button:only-child) { display: none; }
.collection-scroll-hint { margin-top: var(--space-4); margin-bottom: var(--space-2); text-align: right; font-size: var(--font-size-12); }
.collection-table-scroll { overflow-x: auto; scrollbar-width: thin; }
.collection-table { width: 100%; min-width: 480px; border-collapse: collapse; color: var(--color-text); background: var(--color-white); font-size: var(--font-size-14); line-height: 1.4; text-align: center; white-space: nowrap; }
.collection-table th, .collection-table td { padding: var(--space-2); border: 1px solid var(--collection-table-border); font-weight: 400; }
.collection-table thead th { background: var(--collection-table-head); color: var(--color-white); }
.collection-spec-note { margin-top: var(--space-4); font-size: var(--font-size-14); }
.collection-dialog :focus-visible { outline-color: var(--color-white); outline-offset: -3px; }
body.is-product-open { position: fixed; top: var(--product-scroll-offset, 0px); right: 0; left: 0; width: 100%; overflow: hidden; }

@media (max-width: 767px) {
  :root { --collection-heading-top: 96px; --collection-nav-gap: 48px; --collection-dialog-padding: 16px; --collection-dialog-radius: 20px; }
  .collection-heading, .collection-list { width: calc(100% - var(--space-8)); }
  .collection-tabs { justify-content: flex-start; gap: var(--space-6);}
  .collection-photo-viewport { border-radius: var(--radius-sm); }
  .collection-intro { text-align: left; }
  .collection-title { text-align: center; }
  .collection-cards { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-0); padding-bottom: var(--space-3); scrollbar-width: thin; }
  .collection-card { flex-shrink: 0; scroll-snap-align: start; }
  .collection-cards:not(:has(.collection-card:nth-child(2))) { justify-content: flex-start; }
  .collection-dialog { inset: auto 0 0; width: 100%; height: var(--collection-dialog-mobile-height); max-height: var(--collection-dialog-mobile-height); margin: var(--space-0); border-radius: var(--collection-dialog-radius) var(--collection-dialog-radius) 0 0; }
  .collection-dialog-bar { height: 0; }
  .collection-dialog-content { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-0); min-height: 100%; padding-top: var(--space-22); }
  .collection-dialog-visual, .collection-dialog-info { display: contents; }
  .collection-dialog-info h2 { order: 1; text-align: center; font-size: var(--font-size-24); }
  .collection-dialog-model { order: 2; text-align: center; font-size: var(--font-size-22); }
  .collection-dialog-color { order: 3; text-align: center; }
  .collection-gallery { order: 4; }
  .collection-gallery-controls { order: 5; }
  .collection-scroll-hint { order: 6; margin-top: var(--space-8); }
  .collection-table-scroll { order: 7; }
  .collection-spec-note { order: 8; }
  .collection-close { top: var(--space-1); right: var(--space-1); }
  .collection-gallery img { width: 300px; height: 300px; }
  .collection-table th, .collection-table td { padding: var(--space-3); }
}
