.brand{font:500 23px/1.3 var(--serif);letter-spacing:.06em;color:var(--ink)}.brand span{display:block;font:9px/1.7 Arial,sans-serif;letter-spacing:.15em}.header-nav a,.header-nav button{color:var(--ink)}.demo-notice{margin-top:22px;padding:10px 14px;background:#efefec;color:#525658;font-size:11px;line-height:1.7}.section-heading h1{font:500 32px/1.6 var(--serif)}.filter-group select{width:100%;padding:9px 6px;background:white;border:1px solid var(--line);font-size:12px;color:var(--ink)}.sample-art{width:100%;aspect-ratio:1;display:grid;place-items:center;background:#f0f0ee;color:#858987;font:11px/1.6 Arial,sans-serif;letter-spacing:.12em}.sample-art span{border:1px solid #cdd0ce;padding:14px 18px}.product-open{display:block;width:100%;text-align:inherit}.product-body{padding-top:13px}.product-brand{font-size:10px;color:var(--muted)}.product-title{font:500 15px/1.7 var(--sans);margin:3px 0}.sample-meta{font-size:11px;line-height:1.8;color:var(--muted)}.card-actions{display:flex;gap:14px;margin-top:10px}.card-actions button,.detail-actions button{font-size:11px;min-height:40px}.card-actions button[aria-pressed=true]{color:#a34a52}.guide-placeholder{display:grid;place-items:center;aspect-ratio:1;background:#eceeed;color:#858987;letter-spacing:.2em;font:11px Arial}.guide-status{display:block;margin-top:16px;font-size:11px;color:var(--muted)}.footer-brand{font:500 20px var(--serif)}.compare-tray[hidden]{display:none}.compare-tray{display:flex;gap:18px;align-items:center}.compare-tray span{font-size:12px}.compare-tray .primary-button{min-height:40px}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-header h2{font:500 22px var(--serif)}.icon-button{font-size:26px;line-height:1}.detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:36px;padding:12px 30px 35px}.detail-info h2{font:500 28px/1.5 var(--serif);margin:8px 0}.detail-info h3{font-size:13px;margin:24px 0 10px}.detail-info .demo-notice{margin:0 0 14px}.color-options{display:flex;flex-wrap:wrap;gap:8px}.color-options button{border:1px solid var(--line);padding:9px 12px;font-size:12px}.color-options button[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:#fff}.facts{margin-top:20px;border-top:1px solid var(--line)}.facts div{display:grid;grid-template-columns:140px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.facts dt{color:var(--muted)}.facts dd{margin:0}.detail-actions{display:flex;gap:16px;margin-top:16px}.detail-top{display:flex;justify-content:space-between;align-items:center;padding:12px 25px}.detail-top span{font-size:11px;color:var(--muted)}#compare-dialog,#filter-dialog{padding:24px;width:min(900px,94vw);max-height:90vh;overflow:auto}#filter-dialog{width:min(480px,94vw)}#comparison{overflow:auto}.comparison-table{min-width:550px;width:100%;border-collapse:collapse;margin-top:20px}.comparison-table th,.comparison-table td{border:1px solid var(--line);padding:12px;text-align:left;font-size:12px;vertical-align:top}.comparison-table th{width:140px}.comparison-table td button{display:block;margin-top:8px;text-decoration:underline;font-size:11px}.filter-dialog-footer{display:flex;justify-content:space-between;align-items:center;padding-top:20px}.filter-dialog-footer .primary-button{padding:12px 20px}#empty{font-size:13px;line-height:2;color:var(--muted);padding:35px 0}
@media(max-width:700px){.brand{font-size:19px}.brand span{font-size:8px}.header-nav{gap:10px}.header-nav a,.header-nav button{font-size:10px}.section-heading h1{font-size:27px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-sidebar{display:none}.catalog-layout{display:block}.mobile-filter-button{display:block;padding:9px}.detail-layout{display:block;padding:8px 20px 30px}.detail-info{margin-top:22px}.detail-info h2{font-size:24px}.compare-tray{gap:10px}.facts div{grid-template-columns:115px 1fr}.gallery-ending{grid-template-columns:100px 1fr}.sample-art{font-size:9px}.sample-art span{padding:10px}.card-actions{gap:8px}.card-actions button{font-size:10px}}
.comparison-remove{display:block;margin-top:8px;text-decoration:underline;font-size:11px;min-height:36px}
.source-link{margin-top:12px;font-size:12px}.source-link a{text-decoration:underline;text-underline-offset:4px}

.detail-visuals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.detail-visuals .sample-meta{margin:0 0 6px}
.gallery-ending{display:block}.detail-actions{flex-wrap:wrap}.detail-actions [data-share]{display:inline-flex;align-items:center;gap:5px}.share-icon{width:16px;height:16px}.share-result{font-size:11px;line-height:1.8;color:var(--muted)}.share-url{display:block;width:100%;padding:10px;border:1px solid var(--line);background:var(--paper);font-size:12px}

/* 商品詳細 */
.brand .brand-logo { display:block; width:284.144px; max-width:100%; height:auto; }
@media(max-width:700px){.brand .brand-logo{width:190.096px}}
@media(max-width:359px){.brand .brand-logo{width:165.084px}}

#detail-dialog { width: min(920px, calc(100% - 32px)); }
.lens-dialog-heading, .lens-dialog-body { padding-inline: clamp(18px, 4vw, 36px); }
.lens-dialog-heading {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding-top: 24px; padding-bottom: 20px;
}
.lens-dialog-heading h2 {
  margin: 4px 0 0; font: 500 clamp(20px, 3vw, 27px)/1.45 var(--serif);
  overflow-wrap: anywhere;
}
#detail-title:focus { outline: none; }
.lens-dialog-heading .close-dialog { width: 44px; height: 44px; }
.lens-dialog-body { padding-bottom: 22px; }
.lens-overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lens-overview .detail-info { margin: 0; min-width: 0; }
.lens-overview h3 { margin: 0 0 10px; }
.lens-overview .sample-meta { margin-top: 7px; }
.lens-overview .detail-actions { gap: 4px 16px; margin-top: 12px; }
.color-options button { border: 0; background: transparent; min-height: 40px; padding: 6px 9px; }
.color-options button::before { content: '✓'; visibility: hidden; margin-right: 4px; }
.color-options button[aria-pressed=true] { background: transparent; color: var(--ink); font-weight: 600; }
.color-options button[aria-pressed=true]::before { visibility: visible; }
.color-options button:hover { background: #f3f3f1; }
#detail-dialog button:focus-visible, .lens-powers summary:focus-visible {
  outline: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.filter-group select:focus { outline: none; box-shadow: none; }
.filter-group select:focus-visible { background: #e8ebe8; text-decoration: underline; }
.lens-specs {
  margin: 22px 0 0; padding: 14px 0; border-block: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 14px 18px;
}
.lens-specs dt, .lens-source { font-size: 11px; color: var(--muted); }
.lens-specs dd { margin: 3px 0 0; font-size: 14px; }
.lens-powers { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.lens-powers summary { cursor: pointer; padding: 6px 0; }
.lens-powers summary span { margin-left: 12px; }
.lens-powers p { line-height: 2; margin: 8px 0; }
.lens-source { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.lens-source-links { display: grid; gap: 6px; }
.lens-source a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
@media (max-width: 700px) {
  #detail-dialog { width: calc(100% - 16px); max-width: calc(100% - 16px); }
  .lens-dialog-heading { padding-top: 16px; padding-bottom: 14px; }
  .lens-overview { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lens-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* 一覧の共有結果と狭い画面での操作列 */
.card-actions{flex-wrap:wrap;justify-content:flex-start}
.product-card .share-result{min-width:0;overflow-wrap:anywhere}

/* 商品カードの操作は全画面幅で同じ順番に並べる。 */
.product-card .card-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:100%}
.product-card .card-actions>button{min-width:0;min-height:44px;gap:2px;padding-inline:1px}
.product-card .card-actions>.share-button .icon{display:block;width:16px;height:16px;flex:none}
.product-card .card-actions>.favorite-button .icon{width:19px;height:19px}
.product-card .card-actions>.favorite-button[aria-pressed=true] .icon{fill:currentColor}
@media(max-width:700px){.product-card .card-actions>button{font-size:10px;white-space:normal;line-height:1.3}.product-card .card-actions>.share-button{white-space:nowrap}}

/* Place product images on the same backdrop without changing the source files. */
.sample-art { background: #f1f1f1; }
.product-image-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f1f1f1;
}
.product-image-frame--eye,
.detail-visuals > :nth-child(2) > .sample-art { aspect-ratio: 3 / 2; }
.product-image-frame > .product-art {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}
.product-image-frame--measured > .product-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--framed-width);
  height: auto;
  max-width: none;
  translate: calc(-1 * var(--framed-x)) calc(-1 * var(--framed-y));
}
.product-image-frame--cut > .product-art {
  mask-image: radial-gradient(ellipse var(--framed-rx) var(--framed-ry) at var(--framed-x) var(--framed-y), #000 var(--framed-retain), transparent 100%);
}

#catalog #filters.filters { align-items: start; }
.lens-filter { min-width: 0; }
.lens-filter-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.lens-filter-foot .reset { min-height: 44px; margin-left: auto; }
#saved-nav[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
