/* 商品カードと商品紹介ページ。基本の色・フォントは style.css を共有。 */
.asset-heading { display: grid; gap: .8rem; margin-bottom: 2rem; }
.asset-heading > p, .asset-card-copy > p { color: var(--ink-soft); }
.asset-card { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; overflow: hidden; background: var(--white); border-radius: var(--round-l); box-shadow: var(--lift-1); }
.asset-card-image { display: block; background: #090b14; }
.asset-card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.asset-card-copy { display: grid; justify-items: start; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); }
.asset-card-copy h3 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.asset-card-copy .button { margin-top: .3rem; }
.skip-link { position: fixed; top: .5rem; left: 1rem; z-index: 50; padding: .6rem 1rem; background: var(--white); color: var(--ink); border-radius: 999px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.2rem; color: var(--ink-soft); font-size: .85rem; }
.crumbs a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.crumbs > [aria-current] { color: var(--ink); }
.product-intro { display: grid; justify-items: center; gap: 1.1rem; padding: clamp(2.5rem, 6vw, 5rem) 0 2.8rem; text-align: center; }
.product-intro .ribbon { justify-self: center; }
.product-intro h1 { font-size: clamp(2.8rem, 6.5vw, 5.8rem); line-height: 1; }
.product-intro h1 > span { color: var(--bean-dark); }
.product-tagline { font-family: var(--font-round); font-size: clamp(1.3rem, 3vw, 1.8rem); }
.product-lead { max-width: 36rem; color: var(--ink-soft); font-size: 1.12rem; }
.product-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.5rem; margin-top: .6rem; }
.text-link { font-weight: 700; text-underline-offset: .25em; }
.product-gallery { max-width: 66rem; margin-inline: auto; }
.gallery-main { overflow: hidden; border-radius: var(--round-m); background: var(--white); box-shadow: var(--lift-2); }
.gallery-image-link { display: block; position: relative; background: #090b14; }
.gallery-image-link > img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.gallery-enlarge { position: absolute; right: .8rem; bottom: .8rem; background: rgba(255,255,255,.94); color: var(--ink); padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.gallery-main figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; min-height: 3.8rem; font-size: .93rem; }
.gallery-count { white-space: nowrap; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin-top: 1.3rem; }
.gallery-thumbs > a { min-width: 0; padding: .3rem; border: 2px solid transparent; border-radius: var(--round-s); text-decoration: none; transition: border-color .2s, background-color .2s; }
.gallery-thumbs > a:hover { background: var(--sand); }
.gallery-thumbs > a[aria-current="true"] { border-color: var(--leaf-dark); background: var(--leaf-tint); }
.gallery-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #090b14; border-radius: 9px; }
.gallery-thumbs span { display: block; padding-top: .4rem; text-align: center; font-size: .85rem; font-weight: 700; }
.product-section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-heading { display: grid; gap: 1rem; margin-bottom: 2rem; }
.section-heading > p { max-width: 42rem; color: var(--ink-soft); font-size: 1.1rem; }
.shape-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.shape-panel { padding: clamp(1.4rem, 3vw, 2rem); background: var(--white); border-radius: var(--round-m); border: 1px solid var(--sand-deep); }
.shape-panel h3 { font-size: 1.4rem; margin-bottom: 1.3rem; }
.shape-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.shape-list li { padding: .45rem .9rem; background: var(--sand); border-radius: 999px; font-size: .95rem; }
.shape-panel:nth-child(2) .shape-list li { background: var(--leaf-tint); }
.section-footnote { color: var(--ink-soft); margin-top: 1.3rem; font-size: .95rem; }
.product-band { background: var(--sand); }
.feature-image { overflow: hidden; border-radius: var(--round-m); background: var(--white); border: 1px solid var(--sand-deep); }
.feature-image a { display: block; cursor: zoom-in; }
.feature-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.feature-image figcaption { padding: 1rem 1.3rem; color: var(--ink-soft); font-size: .93rem; }
.feature-image figcaption strong { color: var(--ink); }
.look-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.look-details h3, .workflow h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.look-details p, .workflow p { color: var(--ink-soft); font-size: .98rem; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.workflow li { display: grid; align-content: start; gap: 1rem; }
.step-number { display: grid; place-items: center; width: 2.8rem; height: 2.6rem; border-radius: var(--pebble-1); background: var(--bean-tint); color: var(--bean-dark); font-family: var(--font-round); font-size: 1.4rem; font-weight: 700; }
.demo-section { padding-top: 0; }
.product-end { display: flex; align-items: center; gap: 1.5rem; padding: clamp(1.8rem, 4vw, 3rem); background: var(--leaf-tint); border-radius: var(--round-l); margin-bottom: 2rem; }
.product-end > img { width: 4rem; height: 4rem; flex-shrink: 0; }
.product-end > div { flex: 1; }
.product-end h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.product-end p { margin-top: .5rem; color: var(--ink-soft); }
.product-end .button { flex-shrink: 0; }
.image-dialog { width: min(96vw, 90rem); max-width: none; max-height: 94dvh; padding: 1rem; border: 0; border-radius: var(--round-m); background: var(--paper); color: var(--ink); box-shadow: var(--lift-2); }
.image-dialog::backdrop { background: rgba(9, 11, 20, .87); }
html:has(.image-dialog[open]) { overflow: hidden; }
.dialog-toolbar, .dialog-navigation { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dialog-toolbar { margin-bottom: .8rem; }
.dialog-original { font-size: .85rem; text-underline-offset: .2em; }
.image-dialog button { min-height: 2.75rem; padding: .4rem 1rem; background: var(--sand); border-radius: 999px; font-weight: 700; }
.image-dialog button:hover { background: var(--leaf-tint); }
.dialog-image { width: 100%; max-height: 65dvh; object-fit: contain; background: #090b14; border-radius: 10px; }
.image-dialog figcaption { padding: .9rem .2rem; font-size: .93rem; }
.dialog-count { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: .85rem; }
@media (max-width: 54rem) {
  .asset-card { grid-template-columns: 1fr; }
  .product-end { flex-wrap: wrap; }
  .product-end > div { flex-basis: calc(100% - 6rem); }
}
@media (max-width: 40rem) {
  .shape-grid, .look-details, .workflow { grid-template-columns: 1fr; }
  .gallery-thumbs { display: flex; overflow-x: auto; padding-bottom: .5rem; gap: .5rem; }
  .gallery-thumbs > a { flex: 0 0 7.2rem; }
  .gallery-main figcaption { padding: .85rem 1rem; }
  .gallery-count { font-size: .8rem; }
  .look-details, .workflow { gap: 1.5rem; }
  .workflow li { grid-template-columns: auto 1fr; }
  .product-end { gap: 1rem; }
  .product-page .logo { font-size: 1rem; }
  .product-page .logo img { width: 1.8rem; height: 1.8rem; }
  .image-dialog { padding: .7rem; }
  .image-dialog button { padding-inline: .8rem; font-size: .85rem; }
}
@media (max-width: 26rem) {
  .topbar-inner { flex-wrap: wrap; justify-content: center; gap: .25rem .6rem; }
}
@media (prefers-reduced-motion: reduce) { .gallery-thumbs > a { transition: none; } }
