:root {
  color-scheme: light;
  --paper: #f6f5f2;
  --ink: #232321;
  --muted: #5b5a55;
  --line: #deddd8;
  --field: var(--paper);
  --lcd-ink: #192923;
  --lcd-rule: #81988e;
  --lcd-tint: #e5ede7;
  --mono: "SFMono-Regular", Menlo, Consolas, "Hiragino Kaku Gothic ProN", monospace;
  --gutter: clamp(22px, 5vw, 80px);
  --sans: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.65 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
#main { min-height: 66vh; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, select, input { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
h1, h2, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #4e655a; outline-offset: 4px; }
#main:focus { outline: 0; }
a:hover, .remove:hover { text-decoration: underline; text-underline-offset: 5px; }
.frame { width: min(100% - var(--gutter) * 2, 1400px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; z-index: 2; top: 8px; left: var(--gutter); transform: translateY(-200%); }
.skip:focus { transform: none; padding: 8px 12px; background: var(--paper); }
.site-header {
  min-height: 83px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 15px; border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 13px; font-weight: 600; letter-spacing: .115em; white-space: nowrap; width: fit-content; }
.site-tools {
  display: flex; align-items: center; gap: clamp(16px, 3.25vw, 48px);
  font-size: 12px; letter-spacing: .05em; white-space: nowrap;
}
.site-tools a { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; }
.site-tools .instagram-link { min-width: 44px; justify-content: center; }
.instagram-link svg { width: 16px; height: 16px; }
.site-header[data-entry] {
  position: absolute; inset: 0 0 auto; z-index: 1; grid-template-columns: 1fr;
  justify-items: end; border-bottom: 0; pointer-events: none;
}
.site-header[data-entry] .wordmark, .site-header[data-entry] #language-link,
.site-header[data-entry] #reservation-link { display: none; }
.site-header[data-entry] .instagram-link { pointer-events: auto; }
.site-header [aria-current] { text-decoration: underline; text-underline-offset: 6px; }

body:has(.language-entry) { background: #dde4de; }
.language-entry {
  display: grid; justify-items: center; align-content: center; min-height: 100svh;
  padding-block: 72px; gap: clamp(28px, 7svh, 72px);
}
.entry-name {
  width: min(100%, 292px); display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-bottom: 7px; color: var(--lcd-ink); border-bottom: 1px solid var(--lcd-rule);
  font: 600 12px/1.5 var(--mono); letter-spacing: .06em;
}
.entry-name span {
  font-size: 10px; font-weight: 400; letter-spacing: .09em;
}
@media (min-width: 851px) {
  #main:has(.language-entry) { width: calc(100% - 2 * var(--gutter)); }
  .entry-name {
    width: 100%; justify-content: center; align-items: baseline;
    gap: 20px; padding-bottom: 10px; font-size: 16px;
  }
  .entry-name span { font-size: 12px; }
}
.entry-stage { perspective: 1200px; display: grid; place-items: center; width: 100%; }
.entry-book {
  position: relative; width: min(34vw, 28svh, 260px); transform-style: preserve-3d;
  box-shadow: 1px 2px 2px #19292336, 5px 11px 17px -7px #19292350;
}
.entry-book::before, .entry-book::after {
  content: ""; position: absolute; width: 8px; height: 8px; pointer-events: none;
  border: solid var(--lcd-rule);
}
.entry-book::before { top: -7px; left: -7px; border-width: 1px 0 0 1px; }
.entry-book::after { right: -7px; bottom: -7px; border-width: 0 1px 1px 0; }
.is-opening .entry-book::before, .is-opening .entry-book::after { visibility: hidden; }
.entry-leaf { position: relative; transform-style: preserve-3d; transform-origin: left center; }
.entry-front, .entry-back { backface-visibility: hidden; }
.entry-front img { width: 100%; }
.entry-page { position: absolute; inset: 0; overflow: hidden; background: #edece8; }
.entry-page img { height: 100%; width: 200%; max-width: none; }
.entry-right img { transform: translateX(-50%); }
.entry-back { transform: rotateY(180deg); }
.entry-links {
  display: grid; gap: 4px; width: min(100%, 292px); padding: 11px 12px 13px;
  border: 2px solid var(--lcd-ink); color: var(--lcd-ink);
  --lcd-matrix: conic-gradient(at 1px 1px, transparent 75%, color-mix(in srgb, currentColor 13%, transparent) 0);
  background-color: #c9e8e1;
  background-image: var(--lcd-matrix); background-size: 3px 3px;
  box-shadow: inset 1px 1px 0 #effff5, inset -1px -1px 0 #7faaa0, 2px 3px 0 #323a32;
  font-family: var(--mono);
}
.entry-menu-title {
  margin-bottom: 3px; padding-bottom: 4px; border-bottom: 2px solid currentColor;
  box-shadow: 0 1px 0 #759b91;
  font-size: 11px; line-height: 1.4; letter-spacing: .06em;
}
.entry-links :is(a, summary) {
  display: flex; align-items: center; min-height: 44px; padding: 3px 14px;
  border: 1px solid var(--lcd-ink); box-shadow: 1px 0 0 #6b877d, 1px 2px 0 var(--lcd-ink);
  font-size: 16px; font-weight: 400; line-height: 1.45; letter-spacing: .025em;
}
.entry-more summary { cursor: pointer; list-style: none; }
.entry-more summary::-webkit-details-marker { display: none; }
.entry-more summary::after { content: '+'; margin-left: auto; }
.entry-more[open] summary::after { content: '−'; }
.entry-more a {
  position: relative; margin: 6px 0 0 24px; min-height: 38px;
  padding-inline: 12px; font-size: 14px;
}
/* Extend the tap area into the space between rows. */
.entry-more a::before { content: ""; position: absolute; inset: -4px -1px; }
.entry-links:not(:has(:is(a, summary):is(:hover, :focus, .is-selected))) > a:first-of-type,
.entry-links :is(a, summary):is(:hover, :focus, .is-selected) {
  color: #dcf3e9; background-color: var(--lcd-ink); text-decoration: none;
  background-image: var(--lcd-matrix); background-size: 3px 3px;
}
.entry-links :is(a, summary):focus-visible { outline: 2px solid var(--lcd-ink); outline-offset: 1px; }
.entry-links a:active { transform: translate(1px,1px); box-shadow: none; }
.entry-legend {
  display: flex; align-items: center; gap: 9px; margin-top: 3px; padding-top: 5px;
  border-top: 2px solid currentColor; font: 13px/1 var(--mono); pointer-events: none;
}
.entry-legend > span { display: inline-flex; align-items: center; gap: 2px; }
.entry-legend > span:first-child { margin-right: auto; }
.entry-legend b { padding: 1px 2px; color: #dcf3e9; background: var(--lcd-ink); font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .is-opening { --turn-duration: 1.5s; }
  .is-opening .entry-leaf { animation: entry-open var(--turn-duration) step-end both; }
  .is-opening .entry-book { animation: entry-center var(--turn-duration) step-end both; }
  @keyframes entry-open {
    0% { transform: rotateY(-7deg); }
    13% { transform: rotateY(-22deg); }
    27% { transform: rotateY(-44deg); }
    39% { transform: rotateY(-71deg); }
    50% { transform: rotateY(-102deg); }
    61% { transform: rotateY(-130deg); }
    73% { transform: rotateY(-154deg); }
    84% { transform: rotateY(-171deg); }
    92%, 100% { transform: rotateY(-179.5deg); }
  }
  @keyframes entry-center {
    0%, 39% { transform: translateX(0); }
    50% { transform: translateX(10%); }
    61% { transform: translateX(30%); }
    73% { transform: translateX(44%); }
    84%, 100% { transform: translateX(50%); }
  }
}

.shop { padding: 42px 0 clamp(75px, 12vw, 175px); }
.section-marker { margin-bottom: 20px; font-size: 12px; font-weight: 500; letter-spacing: .15em; }
.shop-feature {
  display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 126px); align-items: center;
}
.photo-field { background: var(--field); }
.feature-image {
  display: grid; place-items: center; padding: clamp(35px, 5vw, 80px);
  min-width: 0;
}
.feature-image img { width: min(100%, 465px); }
.feature-copy { max-width: 452px; }
.display {
  font-family: var(--serif); font-weight: 400; font-size: clamp(39px, 5.25vw, 86px);
  line-height: 1.04; letter-spacing: -.058em; overflow-wrap: anywhere;
}
.feature-copy .display { margin: 12px 0 14px; }
.product-author { font-size: 12px; font-weight: 500; letter-spacing: .11em; }
.item-price { margin-top: 22px; font-size: 18px; font-variant-numeric: tabular-nums; }
.arrow-link {
  border-bottom: 1px solid currentColor; padding: 10px 0; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 25px;
}
.feature-copy .arrow-link { width: min(100%, 265px); margin-top: 26px; }
.shop-spread {
  width: min(69%, 955px); margin: clamp(80px, 11vw, 165px) 0 0 auto;
}
.shop-spread img { width: 100%; }
.shop-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px;
  margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line);
}
.product-card img { background: var(--field); width: 100%; }
.product-card h2 { margin-top: 12px; font-size: 19px; font-weight: 500; }

.product-page { padding: 27px 0 clamp(75px, 11vw, 155px); }
.back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: 12px; color: var(--muted); }
.product-layout {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(30px, 6.5vw, 108px);
  align-items: start; margin-top: 13px;
}
.product-gallery { min-width: 0; }
.gallery-stage {
  position: relative; display: grid; place-items: center; width: 100%; min-width: 0;
  border: 0; padding: clamp(28px, 4.35vw, 67px); cursor: zoom-in;
}
.gallery-stage img { width: min(100%, 475px); }
.feature-image[data-mockup] { padding: clamp(18px, 3.6vw, 54px); }
.feature-image[data-mockup] img { width: min(100%, 600px); }
.gallery-stage[data-mockup] { padding: 0; }
.gallery-stage[data-mockup] img { width: 100%; }
.gallery-stage[data-spread] {
  aspect-ratio: 1.6; padding: clamp(13px, 2.4vw, 34px);
}
.gallery-stage[data-spread] img { width: 100%; }
.enlarge-mark {
  position: absolute; right: 12px; bottom: 12px; width: 31px; height: 31px;
  display: grid; place-items: center; font-size: 15px; line-height: 1; background: var(--paper);
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow: auto; padding: 5px; margin-left: -5px; }
.gallery-thumbs button {
  flex: 0 0 clamp(60px, 6.7vw, 104px); height: clamp(48px, 5.5vw, 77px); padding: 5px;
  border: 1px solid transparent; background: transparent;
}
.gallery-thumbs button:hover { border-color: #9b9a93; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--lcd-rule); background: var(--lcd-tint); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-body { max-width: 455px; padding-top: 18px; }
.product-body .display { margin: 0 0 12px; font-size: clamp(37px, 5vw, 76px); }
.shipping-separate { color: var(--muted); font-size: 11px; margin-top: 4px; }
.description { font-size: 14px; line-height: 1.9; margin-top: 22px; }
.product-buy { margin-top: 25px; }
.availability { border-top: 1px solid var(--line); padding-top: 12px; }
.buy-row { display: grid; grid-template-columns: minmax(75px, 99px) minmax(0, 1fr); align-items: end; gap: 12px; }
.field { display: grid; gap: 5px; font-size: 12px; }
.field select, .field input, .line-quantity select {
  background: var(--paper); border: 1px solid #aaa9a2; border-radius: 0;
  width: 100%; color: var(--ink); min-height: 46px; padding: 6px 10px; font-size: 16px;
}
.product-buy > .field { margin-bottom: 12px; }
.action {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  padding: 9px 16px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 13px;
}
.action:hover { background: #40403a; text-decoration: none; }
.action:disabled { background: var(--field); color: var(--muted); border-color: var(--line); }
.add-feedback { margin-top: 10px; font-size: 12px; }
.add-feedback a { text-decoration: underline; text-underline-offset: 4px; }
.specs { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 13px; font-size: 12px; }
.specs h2 { color: var(--lcd-ink); font: 600 12px/1.65 var(--mono); margin-bottom: 7px; }
.specs dl div, .summary-amounts div {
  display: flex; justify-content: space-between; gap: 16px; padding: 5px 0;
}
.specs dd { color: var(--muted); text-align: right; }
.return-terms summary { cursor: pointer; font-weight: 600; }
.return-terms p, .return-terms a { margin-top: 9px; }
.return-terms a { display: inline-block; text-decoration: underline; text-underline-offset: 4px; }

.standard-page { padding: clamp(34px, 6.5vw, 86px) 0 clamp(75px, 11vw, 155px); }
.page-title {
  font: 400 clamp(34px, 5.5vw, 78px)/1.12 var(--serif);
  letter-spacing: -.052em; margin-bottom: clamp(25px, 4vw, 50px);
}
:lang(ja) .page-title { font-size: clamp(27px, 4.5vw, 58px); letter-spacing: -.025em; }
.cart-layout {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 6.5vw, 104px);
  align-items: start;
}
.cart-lines { padding: 0; margin: 0; list-style: none; }
.cart-line {
  display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 17px;
  border-top: 1px solid var(--line); padding: 18px 0;
}
.cart-line:last-child { border-bottom: 1px solid var(--line); }
.cart-image img { width: 86px; }
.cart-item-title { font-weight: 600; }
.cart-item p { margin: 2px 0 10px; color: var(--muted); font-size: 11px; }
.line-quantity { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; }
.line-quantity select { width: auto; min-height: 43px; padding: 3px 5px; }
.remove { color: var(--muted); font-size: 12px; border: 0; background: none; padding: 11px 7px; margin-left: 5px; }
.line-price { text-align: right; font-variant-numeric: tabular-nums; }
.cart-summary { background: #edf1ec; border-top: 1px solid var(--lcd-rule); padding: clamp(20px, 3vw, 38px); }
.reservation-form .action { display: flex; width: 100%; margin-top: 18px; }
.reservation-form .field { margin: 13px 0; }
.summary-amounts { margin: 0 0 14px; }
.summary-amounts div { border-bottom: 1px solid var(--line); padding: 8px 0; }
.summary-amounts div:last-child { padding: 11px 0; font-weight: 600; }
.summary-amounts dd { text-align: right; font-variant-numeric: tabular-nums; }
.quiet { color: var(--muted); font-size: 12px; margin: 8px 0; }
.empty p { margin-bottom: 8px; }
.reservation-error { font-size: 13px; color: #8a2a27; margin-top: 12px; }
.reservation-reference { margin-bottom: 16px; overflow-wrap: anywhere; }
.reservation-reference dt { color: var(--muted); }
.payment-panel { max-width: 555px; border-top: 1px solid var(--line); padding-block: 12px; }
.payment-panel .payment-note { margin-bottom: 16px; }
.payment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; margin-block: 18px; }
.text-button { min-height: 44px; background: none; border: 0; padding: 7px 0; text-decoration: underline; text-underline-offset: 4px; }
.reservation > .arrow-link { margin-top: 14px; }
.site-footer {
  border-top: 1px solid var(--line); padding-block: 19px 28px; font-size: 10px; color: var(--muted);
  letter-spacing: .08em; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
}
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-page { max-width: 820px; }
:lang(ja) .legal-page .page-title { font-size: clamp(23px, 4.3vw, 43px); margin-bottom: 18px; line-height: 1.35; }
.legal-notice { color: var(--muted); margin-bottom: 30px; }
.disclosure { border-top: 1px solid var(--line); }
.disclosure > div {
  display: grid; grid-template-columns: minmax(8em, 1fr) minmax(0, 2.5fr);
  gap: 5px 20px; border-bottom: 1px solid var(--line); padding-block: 13px;
}
.disclosure dt { font-weight: 600; }
.disclosure dd { overflow-wrap: anywhere; }
.disclosure p + p { margin-top: 8px; }
.disclosure a { text-decoration: underline; text-underline-offset: 4px; }
dialog {
  max-width: min(94vw, 1350px); max-height: 94dvh; background: var(--paper); color: var(--ink);
  border: 0; padding: 12px 16px 16px; overflow: auto;
}
dialog::backdrop { background: #181817da; }
#image-viewer { width: min(94vw, 1350px); }
.viewer-stage { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; }
.viewer-stage img { grid-column: 2; grid-row: 1; width: 100%; height: min(76dvh, 920px); object-fit: contain; }
.viewer-step { grid-row: 1; min-height: 44px; font-size: 24px; border: 0; background: transparent; }
.viewer-step:last-child { grid-column: 3; }
@media (max-width: 640px) {
  .viewer-stage { grid-template-columns: 1fr 1fr; }
  .viewer-stage img { grid-area: 1 / 1 / 2 / 3; height: min(66dvh, 100vw); }
  .viewer-step { grid-area: 2 / 1; justify-self: start; width: 48px; }
  .viewer-step:last-child { grid-area: 2 / 2; justify-self: end; }
}
.viewer-bar { min-width: 90px; display: flex; justify-content: flex-end; }
.viewer-bar button { min-height: 44px; padding: 0 5px; background: none; border: 0; text-decoration: underline; }

@media (max-width: 850px) {
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .product-gallery, .product-body { display: contents; }
  .gallery-figure { max-width: 640px; }
  .product-summary { order: 2; max-width: 560px; }
  .gallery-thumbs { order: 1; margin-top: 0; max-width: 640px; }
  .product-copy { order: 3; max-width: 560px; }
  .product-copy .description { margin-top: 0; }
  .gallery-stage img { width: min(100%, 380px); }
  .gallery-stage[data-spread] img { width: 100%; }
}
@media (max-width: 640px) {
  .disclosure > div { grid-template-columns: minmax(0, 1fr); }
  .language-entry { padding-block: 48px 24px; gap: clamp(16px, 3.6svh, 30px); }
  .entry-book { width: min(62vw, 40svh, 320px); }
  @media (prefers-reduced-motion: no-preference) {
    .is-opening .entry-stage { animation: entry-fit-spread var(--turn-duration) step-end both; }
    @keyframes entry-fit-spread {
      0%, 39% { transform: scale(1); }
      50% { transform: scale(.95); }
      61% { transform: scale(.74); }
      73%, 100% { transform: scale(.70); }
    }
  }
  .site-header { min-height: 59px; }
  .site-tools { gap: 14px; font-size: 11px; }
  .wordmark { font-size: 11px; letter-spacing: .075em; }
  .shop { padding-top: 25px; }
  .section-marker { margin-bottom: 12px; }
  .shop-feature { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .feature-image { padding: clamp(21px, 7vw, 46px); }
  .feature-copy .display { margin: 7px 0 8px; font-size: clamp(40px, 10.5vw, 68px); }
  .item-price { margin-top: 14px; }
  .feature-copy .arrow-link { margin-top: 12px; }
  .shop-spread { width: 100%; margin-top: 67px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 15px; }
  .product-page { padding-top: 10px; }
  .product-layout { margin-top: 5px; }
  .product-body .display { font-size: clamp(39px, 11vw, 64px); }
  .gallery-stage { padding: clamp(18px, 7vw, 40px); }
  .gallery-thumbs { gap: 6px; }
  .gallery-thumbs button { flex-basis: clamp(44px, 13vw, 64px); }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 59px minmax(0, 1fr) auto; gap: 9px; }
  .cart-image img { width: 59px; }
}
@media (max-width: 365px) {
  :root { --gutter: 17px; }
  .site-header { gap: 8px; }
  .site-header .wordmark { white-space: normal; }
  .site-tools { gap: 8px; }
  .site-tools { letter-spacing: .04em; }
  .gallery-thumbs { gap: 4px; }
}
