@import url("https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@400;500;600;700&display=swap");

button, input { font: inherit; }
html, body { font-family: "M PLUS 1", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
main { box-sizing: border-box; }
.lab-logo { color-scheme: light; }

/* Shared controls used by the standalone product detail prototype. */
.ui-control { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 6px; font-weight: 500; text-decoration: none; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s, opacity .15s, transform .15s; }
.ui-control svg { width: 15px; height: 15px; stroke-width: 1.8; }
.ui-icon-button { width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; }
.ui-sm { height: 26px; min-height: 26px; padding: 0 8px; font-size: 11px; }
.ui-md { height: 34px; min-height: 34px; padding: 0 12px; font-size: 13px; }
.ui-xl { min-height: 42px; padding: 0 14px; font-size: 13px; }
.ui-action-pink { border: 1px solid rgb(232, 74, 138); color: #fff; background: rgb(232, 74, 138); }
.ui-secondary { border: 1px solid #2b394c; color: #f3f6fb; background: #151f2e; }
.ui-text { border: 1px solid transparent; color: #9ca8b8; background: transparent; }
.ui-action-pink:hover { border-color: #ff7aae; background: rgb(232, 74, 138); filter: brightness(1.08); transform: translateY(-1px); }
.ui-secondary:hover { border-color: #ff7aae; color: #ff7aae; background: #1b1924; transform: translateY(-1px); }
.ui-text:hover { color: #ff7aae; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.ui-control:focus-visible, .ui-input:focus-visible, .filter-chip:focus-visible, .related-card:focus-visible { outline: 2px solid #ff7aae; outline-offset: 2px; }
.ui-control:active { transform: translateY(0); }
.ui-control:disabled { opacity: .52; cursor: not-allowed; }
.ui-input { box-sizing: border-box; border: 1px solid #2b394c; border-radius: 8px; color: #f3f6fb; background: #0d1118; box-shadow: 0 1px 2px rgba(0,0,0,.18); outline: 0; transition: border-color .15s, box-shadow .15s; }
.ui-input::placeholder { color: #7f8a9a; }
.ui-input:hover, .ui-input:focus { border-color: #ff7aae; }

body:has(.product-proto) { --site-font-sans: "M PLUS 1", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; font-family: var(--site-font-sans) !important; color: #f3f6fb; background: #0d1118 !important; }
body:has(.product-proto) #page,
body:has(.product-proto) .wp-site-blocks,
body:has(.product-proto) .entry-content,
body:has(.product-proto) .wp-block-post-content { width: 100% !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
body:has(.product-proto) .product-detail-page,
body:has(.product-proto) .product-detail-page * { box-sizing: border-box; font-family: var(--site-font-sans) !important; }
body:has(.product-proto) .product-detail-page { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; color: #f3f6fb; background: #0d1118; }
.product-proto, .product-detail-page { color: #f3f6fb; background: #0d1118; }
.product-proto a:not(.ui-control), .product-detail-page a:not(.ui-control) { color: inherit; }
.site-nav .ui-md { width: auto; height: 36px; min-height: 36px; padding-inline: 12px; white-space: nowrap; }
.site-nav .nav-search .ui-input { width: auto; }

.price-table-back { color: #c8d0dc !important; }
.price-table-back svg { width: 16px; height: 16px; }
.product-layout { display: block; }
.product-content, .product-sidebar { min-width: 0; }
.product-content { width: 100%; max-width: 560px; margin-inline: auto; }
.product-hero { display: flex; width: 100%; flex-direction: column; gap: 14px; }
.product-visual, .product-info, .product-sample { width: 100%; }
.product-sidebar { margin-top: 20px; }
.product-image-link { display: grid; width: 100%; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; text-decoration: none !important; }
.product-image-placeholder { display: grid; width: 100%; height: 100%; min-height: 0; place-items: center; align-content: center; gap: 7px; border: 1px solid #35465d; border-radius: 8px; color: #aeb8c6; background: linear-gradient(145deg, #182435 0%, #0b1018 72%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 18px 45px rgba(0,0,0,.2); }
.product-image-placeholder span { color: #d8e0ea; font-size: clamp(28px, 4vw, 52px); font-weight: 600; letter-spacing: .08em; }
.product-image-source { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; border: 1px solid #35465d; border-radius: 8px; background: #0b1018; box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 18px 45px rgba(0,0,0,.2); object-fit: contain; }
.product-image-link:hover .product-image-source { border-color: #ff7aae; }
.product-gallery { display: grid; width: 100%; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 7px; margin-top: 8px; }
.product-gallery-item { display: block; min-width: 0; padding: 0; border: 1px solid #35465d; border-radius: 5px; background: #0b1018; cursor: pointer; overflow: hidden; }
.product-gallery-item:hover, .product-gallery-item.is-active { border-color: #ff7aae; }
.product-gallery-item.is-active { box-shadow: 0 0 0 1px rgba(255,122,174,.28); }
.product-gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; object-fit: cover; }

.sample-player { box-sizing: border-box; padding: 12px; border: 1px solid #2b394c; border-radius: 6px; background: #101927; box-shadow: 0 8px 22px rgba(0,0,0,.15); }
.sample-player-head { display: block; }
.sample-player-head h2 { margin: 0; color: #f3f6fb; font-size: 18px; font-weight: 600; }
.sample-player-head small { display: block; margin-top: 2px; color: #9ca8b8; font-size: 11px; }
.sample-status { padding: 4px 8px; border: 1px solid #45556c; border-radius: 999px; color: #9ca8b8; font-size: 10px; }
.sample-video, .sample-player iframe { display: block; width: 100%; height: clamp(208px, 56.25vw, 315px); max-height: none; margin-top: 12px; border: 0; border-radius: 6px; background: #05070b; object-fit: contain; }
.sample-audio { display: block; width: 100%; margin-top: 12px; }

.product-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.product-badge { padding: 4px 8px; border: 1px solid #394b63; border-radius: 4px; color: #b8c3d1; background: #151f2e; font-size: 10px; }
.product-badge-id { border-color: rgba(255,122,174,.65); color: #ffb1cb; background: rgba(232,74,138,.14); }
.product-title { margin: 12px 0 0; color: #f3f6fb; font-size: clamp(19px, 2vw, 24px); font-weight: 600; line-height: 1.45; }
.product-title a { color: inherit !important; text-decoration: none !important; }
.product-title a:hover { color: #ff7aae !important; text-decoration: underline !important; text-underline-offset: 3px; }
.product-submeta { margin: 5px 0 0; color: #9ca8b8; font-size: 11px; }
.product-meta-section { margin-top: 18px; padding: 12px; border: 1px solid #2b394c; border-radius: 6px; background: #101927; }
.product-meta-section .section-heading { display: block; margin-bottom: 12px; }
.product-meta-section .section-heading h2 { margin: 0; color: #f3f6fb; font-size: 18px; font-weight: 600; }
.product-detail-page .product-meta { display: grid; gap: 9px; margin: 0; }
.product-meta > div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 9px; align-items: start; row-gap: 8px; }
.product-meta dt { padding-top: 5px; color: #9ca8b8; font-size: 12px; }
.product-meta dd { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.filter-chip { display: inline-flex; min-height: 27px; align-items: center; padding: 2px 8px; border: 1px solid #45556c; border-radius: 5px; color: #dce4ed !important; background: #151f2e; box-shadow: 0 1px 2px rgba(0,0,0,.14); font-size: 11px; text-decoration: none !important; }
.filter-chip:hover { border-color: #ff7aae; color: #ff7aae !important; background: #1b1924; }

.product-price-card { margin-top: 12px; padding: 12px; border: 1px solid #2b394c !important; border-radius: 6px; background: #101927; box-shadow: 0 8px 22px rgba(0,0,0,.15); }
.price-card-heading h2 { margin: 0; color: #f3f6fb; font-size: 18px; font-weight: 600; }
.price-discount-badge { margin-top: 7px; }
.price-card-main { margin-top: 9px; padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,.07); }
.price-card-main small, .price-card-main del, .price-card-main .price-card-official { display: block; color: #9ca8b8; font-size: 11px; }
.price-card-main strong { display: block; margin-top: 2px; color: #e6edf5; font-size: clamp(25px, 3vw, 34px); font-weight: 600; }
.price-card-main strong.is-lowest { color: #7ee787; }
.price-card-sub { margin-top: 10px; color: #9ca8b8; font-size: 12px; }
.price-card-sub b { color: #e6edf5; font-weight: 500; }
.text-green { color: #7ee787 !important; }
.product-price-table-link { display: flex; width: 100%; min-height: 36px; margin-top: 8px; color: #dce4ed !important; font-size: 13px; }
.product-actions { display: grid; gap: 8px; margin-top: 12px; }
.product-actions > .ui-control { width: 100%; min-height: 42px; box-shadow: 0 3px 9px rgba(0,0,0,.16); }
.product-actions .price-mobile-detail-buy { width: 100% !important; max-width: none !important; min-height: 42px; margin: 0; color: #fff !important; background: rgb(232,74,138) !important; }
.product-actions .price-mobile-detail-buy:hover { color: #fff !important; background: rgb(232,74,138) !important; }
.product-actions .dlsite-external-icon { width: 18px !important; height: 18px !important; flex: 0 0 18px; margin: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-watch-control { display: flex; width: 100%; align-items: center; justify-content: center; gap: 7px; }
.product-watch-control .watchlist-control, .product-watch-control .watchlist-star-icon-wrap { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; margin: 0; }
.product-watch-control .watchlist-star-button { display: inline-flex; width: 16px; min-width: 16px; height: 16px; min-height: 16px; align-items: center; justify-content: center; padding: 0; border: 0; color: #aab4c5; background: transparent; font-size: 0; }
.product-watch-control .watchlist-star-icon, .product-watch-control .watchlist-star-icon-wrap svg { display: block; width: 18px !important; height: 18px !important; flex: 0 0 18px; }
.product-watch-control .watchlist-star-button.watched { color: #ff7aae; }
.product-watch-control .watchlist-control[data-product-detail-watch="1"] { display: flex; width: 100%; height: 42px; }
.product-watch-control .watchlist-control[data-product-detail-watch="1"] .watchlist-star-button { display: inline-flex; width: 100%; min-width: 0; height: 100%; min-height: 42px; gap: 7px; color: #f3f6fb; cursor: pointer; font-size: 13px; font-weight: 600; }
.product-watch-control .watchlist-control[data-product-detail-watch="1"] .watchlist-star-button.watched { color: #ff7aae; }
.product-watch-control .watchlist-control[data-product-detail-watch="1"] .watchlist-star-button .watchlist-action-label { line-height: 1; }

.section-kicker { display: block; margin-bottom: 3px; color: #ff7aae; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.section-heading h3 { margin: 0; color: #f3f6fb; font-size: 18px; font-weight: 600; }
.price-history, .product-description { margin-top: 20px; padding: 16px; border: 1px solid #2b394c; border-radius: 6px; background: #101927; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.price-history { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.price-history h2, .product-description h2 { margin: 0; color: #f3f6fb; font-size: 18px; font-weight: 600; }
.price-history p { margin: 3px 0 0; color: #9ca8b8; font-size: 12px; }
.price-history-toggle { flex-shrink: 0; }
.price-history-toggle { flex-shrink: 0; padding-inline: 4px; }
.price-chart-panel[hidden] { display: none; }
.price-history-inline { width: 100%; margin-top: 4px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.price-history-inline [data-price-history-chart] { min-height: 360px; }
.price-history-inline .price-chart { min-width: 0; }
.price-history-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.price-history-summary > div { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 5px; background: #0d1118; }
.price-history-summary span { color: #9ca8b8; font-size: 10px; }
.price-history-summary strong { color: #dce4ed; font-size: 12px; font-weight: 600; }
.price-history-summary small { color: #7f8c9f; font-size: 9px; }
.chart-wrap { overflow-x: auto; }
.price-chart { display: block; min-width: 650px; width: 100%; height: auto; overflow: hidden; }
.product-description .section-heading { display: block; margin-bottom: 14px; }
.product-description .section-heading h2 { margin: 0; color: #f3f6fb; font-size: 18px; line-height: 1.35; }
.description-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 0; }
.description-grid > div { display: grid; gap: 7px; padding: 12px 13px; border: 1px solid rgba(255,255,255,.06); border-radius: 5px; background: #0d1118; }
.description-grid span, .work-description-copy > span { color: #9ca8b8; font-size: 10px; }
.description-grid strong { color: #dce4ed; font-size: 12px; font-weight: 500; }
.work-description-copy { margin-top: 16px; padding: 14px; border: 1px solid rgba(255,255,255,.06); border-radius: 5px; background: #0d1118; }
.work-description-copy p { margin: 10px 0 0; color: #c8d0dc; font-size: 12px; line-height: 1.8; }

.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.related-card { display: block; overflow: hidden; border: 1px solid #2b394c; border-radius: 6px; color: #f3f6fb !important; background: #101927; text-decoration: none !important; transition: border-color .15s, transform .15s, background-color .15s; }
.related-card:hover { border-color: #ff7aae; background: #151f2e; transform: translateY(-2px); }
.related-image { position: relative; display: grid; min-height: 160px; place-items: center; border-bottom: 1px solid #2b394c; color: #8795a8; background: linear-gradient(145deg, #182435 0%, #0b1018 72%); font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.related-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.related-badges { position: absolute; top: 9px; right: 9px; display: flex; gap: 3px; }
.related-status { padding: 4px 7px; border-radius: 4px; color: #0d1118; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.related-status.sale { background: #d68b2d; }
.related-status.lowest { background: #7ee787; }
.related-copy { display: grid; gap: 5px; padding: 11px; }
.related-copy strong { overflow: hidden; font-size: 13px; font-weight: 500; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.related-copy span { overflow: hidden; color: #9ca8b8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.related-copy b { color: #7ee787; font-size: 13px; font-weight: 600; }
.product-sidebar .section-heading { display: block; align-items: flex-start; }
.product-sidebar .section-heading > span { display: block; max-width: none; margin-top: 5px; text-align: left; }
.product-sidebar > .related-works { margin-top: 0; }
.product-sidebar > .price-related-works { margin-top: 20px; }
.product-sidebar .related-grid { grid-template-columns: 1fr; }
.product-sidebar .related-image { min-height: 120px; }
.product-sidebar .related-copy { gap: 4px; padding: 9px; }
.product-sidebar .related-copy strong, .product-sidebar .related-copy b { font-size: 12px; }
.product-sidebar .section-heading h2 { margin: 0; color: #f3f6fb; font-size: 18px; font-weight: 600; }
.product-sidebar .section-heading h2 { line-height: 1.35; }
.product-sidebar .section-heading > span { margin-top: 5px; color: #9ca8b8; font-size: 10px; line-height: 1.5; }
.product-sidebar .related-grid { margin-top: 12px; }

.product-detail-page .product-main { width: 100%; max-width: 1000px; margin-inline: auto; padding: 16px; }
.product-detail-page .product-detail-empty { color: #9ca8b8; font-size: 12px; }

@media (min-width: 1025px) {
    .product-detail-page .product-layout { display: grid; grid-template-columns: minmax(0, 560px) 250px; gap: 20px; align-items: start; justify-content: center; }
    .product-detail-page .product-content { max-width: none; }
    .product-detail-page .product-sidebar { position: sticky; top: 16px; margin-top: 0; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .product-detail-page .product-main { padding: 14px; }
    .product-detail-page .product-content, .product-detail-page .product-sidebar { max-width: 520px; margin-inline: auto; }
    .product-detail-page .product-sidebar .related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 767px) {
    .product-detail-page .product-main { padding: 10px; }
    .product-detail-page .price-table-back { width: 100%; justify-content: flex-start; padding-inline: 0; }
    .product-detail-page .product-content, .product-detail-page .product-sidebar { max-width: none; }
    .product-detail-page .product-hero { gap: 12px; }
    .product-detail-page .product-title { font-size: 19px; line-height: 1.45; }
    .product-detail-page .product-meta-section { margin-top: 12px; padding: 10px; }
    .product-detail-page .product-meta > div { grid-template-columns: 50px minmax(0,1fr); gap: 6px; }
    .product-detail-page .product-meta dt { font-size: 10px; }
    .product-detail-page .filter-chip { min-height: 24px; padding-inline: 6px; font-size: 10px; }
    .product-detail-page .sample-player { padding: 10px; }
    .product-detail-page .price-history-inline [data-price-history-chart] { min-height: 260px; }
    .product-detail-page .price-history-summary { grid-template-columns: 1fr; }
    .product-detail-page .price-history, .product-detail-page .product-description { padding: 12px; }
    .product-detail-page .description-grid { grid-template-columns: 1fr; gap: 10px; }
    .product-detail-page .product-description .section-heading { margin-bottom: 12px; }
    .product-detail-page .price-history { align-items: flex-start; flex-direction: column; }
    .product-detail-page .price-history-toggle { width: 100%; justify-content: center; }
    .product-detail-page .related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
    .product-detail-page .related-image { min-height: 112px; font-size: 13px; }
    .product-detail-page .related-copy { gap: 4px; padding: 8px; }
    .product-detail-page .related-copy strong { font-size: 11px; }
    .product-detail-page .related-copy span { font-size: 9px; }
    .product-detail-page .related-copy b { font-size: 11px; }
}
