:root {
  --ink: #112940;
  --deep: #0b1d30;
  --gold: #b88c40;
  --paper: #fff;
  --wash: #f2f6f8;
  --line: #d6e0e5;
  --muted: #586b79;
  --danger: #a72d37;
  --success: #23684e;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  line-height: 1.8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 11px 22px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  font-weight: 600;
}
button:hover,
.button:hover {
  background: #244865;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.secondary:hover {
  background: var(--wash);
}
.danger {
  color: var(--danger);
  background: #fff;
  border-color: #deb6b9;
}
.small {
  font-size: 0.85rem;
  padding: 6px 12px;
  min-height: 38px;
}
.link-button {
  background: none;
  color: var(--ink);
  border: 0;
  padding: 4px;
  text-decoration: underline;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #a7bac5;
  border-radius: 5px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  min-height: 48px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[type="checkbox"] {
  display: inline-block;
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
  accent-color: var(--ink);
}
label {
  display: block;
  font-size: 0.93rem;
  font-weight: 600;
  margin: 0 0 17px;
}
label > input,
label > select,
label > textarea {
  margin-top: 6px;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
label.check input {
  margin-top: 6px;
}
label small,
small {
  font-weight: 400;
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid #b4862b;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 99;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 0;
}
.site-header {
  height: 90px;
  padding: 0 clamp(20px, 5vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 23px;
  font-weight: 700;
  white-space: nowrap;
}
.brand img {
  width: 49px;
  height: 49px;
  border-radius: 50%;
}
.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
}
.site-nav a {
  text-decoration: none;
}
.cart-link {
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 5px;
}
.cart-count {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 12px;
  margin-left: 5px;
}
.notice {
  background: var(--wash);
  padding: 9px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 570px;
  background: var(--deep);
  color: #fff;
  padding: 45px max(6vw, 24px);
  align-items: center;
  gap: 4vw;
}
.hero-copy {
  max-width: 530px;
  padding: 35px 0;
}
.hero h1 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(35px, 4.5vw, 65px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.06em;
  margin: 18px 0 24px;
}
.hero p {
  color: #c4d0da;
  font-size: 15px;
  line-height: 2.2;
  max-width: 390px;
}
.hero .origin {
  color: #dabd80;
  margin: 0;
  font-size: 14px;
}
.hero .button {
  background: #ddc08a;
  color: var(--deep);
  border-color: #ddc08a;
  margin-top: 15px;
  min-width: 220px;
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art img {
  width: min(100%, 460px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
}
.wrap {
  max-width: 1180px;
  padding: 65px 28px;
  margin: 0 auto;
}
.narrow {
  max-width: 800px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}
.section-head h2 {
  margin: 0;
  font-family: "Yu Mincho", serif;
  font-size: 32px;
  letter-spacing: 0.04em;
}
.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}
h1 {
  font-size: 32px;
  line-height: 1.5;
  margin: 0 0 18px;
}
h2 {
  font-size: 24px;
  line-height: 1.5;
}
h3 {
  font-size: 19px;
  line-height: 1.5;
}
.eyebrow {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}
.varieties {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.variety {
  border-top: 3px solid var(--gold);
  padding: 25px 0;
}
.variety h3 {
  font-family: "Yu Mincho", serif;
  font-size: 25px;
  margin: 0 0 10px;
}
.variety p {
  color: var(--muted);
  font-size: 14px;
}
.variety .price {
  font-size: 20px;
}
.soft-section {
  background: var(--wash);
}
.guides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.guide-item {
  padding: 15px 0;
}
.guide-item h3 {
  margin: 0 0 10px;
}
.guide-item p {
  color: var(--muted);
}
.footer {
  padding: 40px max(5vw, 24px);
  background: var(--deep);
  color: #c6d3df;
  font-size: 13px;
}
.footer-inner {
  max-width: 1150px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.footer strong {
  font-family: "Yu Mincho", serif;
  font-size: 24px;
  color: white;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 24px;
  max-width: 520px;
}
.footer a {
  text-decoration: none;
}
.copyright {
  margin-top: 30px;
  font-size: 11px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
}
.toolbar input {
  max-width: 320px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters button {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  font-size: 14px;
  padding: 7px 16px;
  min-height: 40px;
  border-radius: 25px;
}
.filters button.active {
  background: var(--ink);
  color: white;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 25px;
}
.product-card {
  text-decoration: none;
  display: block;
}
.product-card .photo {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--wash);
  overflow: hidden;
  border-radius: 8px;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.product-card:hover .photo img {
  transform: scale(1.025);
}
.placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--wash);
}
.product-card h3 {
  font-size: 18px;
  margin: 14px 0 6px;
}
.product-card p {
  margin: 5px 0;
}
.price {
  font-weight: 600;
  font-size: 24px;
}
.price small {
  font-size: 12px;
}
.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 3px;
  background: #eaf0f3;
  color: #314e61;
  font-size: 12px;
  font-weight: 600;
}
.badge.gold {
  background: #f1e9d5;
  color: #70591f;
}
.badge.red {
  background: #f8e6e7;
  color: #962d39;
}
.badge.green {
  background: #e5f3eb;
  color: #25624a;
}
.photo .badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
}
.empty {
  padding: 55px 24px;
  text-align: center;
  background: var(--wash);
  border-radius: 8px;
  margin: 28px 0;
}
.empty h2 {
  font-size: 22px;
}
.muted {
  color: var(--muted);
}
.breadcrumbs {
  font-size: 13px;
  margin-bottom: 25px;
  color: var(--muted);
}
.product-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 55px;
}
.main-media {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: var(--wash);
}
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}
.thumbs button {
  padding: 0;
  width: 75px;
  height: 75px;
  min-width: 75px;
  border-color: var(--line);
  background: var(--wash);
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.detail-text {
  padding-top: 15px;
}
.detail-text h1 {
  margin-top: 15px;
}
.description {
  white-space: pre-wrap;
  line-height: 2.1;
}
.purchase-box {
  background: var(--wash);
  padding: 22px;
  border-radius: 8px;
  margin: 25px 0;
}
.qty {
  max-width: 120px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.actions.stretch > * {
  flex: 1;
}
.callout {
  border-left: 4px solid var(--gold);
  background: #faf7ef;
  padding: 15px 20px;
  margin: 20px 0;
  font-size: 14px;
}
.error {
  background: #fbeef0;
  color: #8e2230;
  border-left: 4px solid #b23c49;
  padding: 14px 18px;
  margin: 18px 0;
}
.success {
  background: #edf7f0;
  color: var(--success);
  padding: 14px 18px;
  margin: 18px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.full {
  grid-column: 1/-1;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 45px;
}
.panel {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.summary {
  background: var(--wash);
  padding: 24px;
  border-radius: 8px;
  align-self: start;
  position: sticky;
  top: 20px;
}
.summary dl {
  margin: 0;
}
.summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
}
.summary dd {
  margin: 0;
}
.summary .total {
  border-top: 1px solid var(--line);
  font-size: 22px;
  font-weight: 700;
  margin-top: 12px;
  padding-top: 20px;
}
.line-item {
  display: grid;
  grid-template-columns: 75px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.line-item img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 5px;
}
.line-item h3 {
  margin: 0;
  font-size: 17px;
}
.line-item p {
  margin: 3px 0;
}
.line-item .qty {
  max-width: 80px;
  padding: 5px;
  min-height: 40px;
}
.step-indicator {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}
.step-indicator strong {
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
}
.legal h2 {
  margin-top: 35px;
}
.legal dl > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
}
.legal dt {
  font-weight: 600;
}
.legal dd {
  margin: 0;
  white-space: pre-wrap;
}
.legal p {
  line-height: 2;
}
.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 80vh;
  background: var(--wash);
}
.admin-sidebar {
  background: var(--ink);
  color: white;
  padding: 30px 20px;
}
.admin-sidebar h2 {
  font-size: 18px;
  margin: 0 0 25px;
}
.admin-sidebar a {
  display: block;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 5px;
  margin: 3px 0;
  color: #dce5ed;
}
.admin-sidebar a.active {
  background: #2a455e;
  color: white;
}
.admin-main {
  padding: 35px;
  max-width: 1300px;
  width: 100%;
  min-width: 0;
}
.admin-main .section-head h1 {
  font-size: 27px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  padding: 22px;
  border-radius: 7px;
  border-bottom: 3px solid var(--gold);
}
.stat strong {
  font-size: 32px;
  display: block;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}
.admin-list {
  display: grid;
  gap: 12px;
}
.admin-product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 20px;
  align-items: center;
}
.admin-product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}
.admin-product h3 {
  margin: 0;
  font-size: 17px;
}
.admin-product p {
  margin: 2px 0;
  font-size: 13px;
}
.upload-zone {
  padding: 25px;
  border: 2px dashed #9bafb9;
  border-radius: 8px;
  background: var(--wash);
  text-align: center;
}
.upload-zone input {
  border: 0;
  max-width: 440px;
  margin: 15px auto 0;
  padding: 0;
  background: none;
}
.media-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.media-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}
.media-item img,
.media-item video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.media-item .actions {
  gap: 4px;
  justify-content: center;
}
.media-item button {
  min-height: 35px;
  padding: 2px 8px;
  font-size: 13px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: #fff;
}
th,
td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  background: #e9eff2;
  font-weight: 600;
}
.chat {
  padding: 20px;
  background: var(--wash);
  border-radius: 8px;
  max-height: 500px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.message {
  max-width: 85%;
  align-self: flex-start;
}
.message.mine {
  align-self: flex-end;
}
.message-body {
  padding: 12px 17px;
  border-radius: 10px;
  background: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mine .message-body {
  background: #deebf1;
}
.message small {
  font-size: 11px;
}
.message.system {
  align-self: center;
  max-width: 100%;
  font-size: 13px;
}
.message.system .message-body {
  background: transparent;
  border: 1px solid var(--line);
}
.chat-form {
  margin-top: 15px;
}
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.order-id {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.detail-list {
  white-space: pre-wrap;
}
.loading {
  text-align: center;
  padding: 100px 20px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: var(--ink);
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  z-index: 100;
  box-shadow: 0 6px 25px #0002;
  display: none;
}
#toast.visible {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  padding: 28px;
  color: var(--ink);
}
dialog::backdrop {
  background: #11294099;
}
.sticky-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  margin-top: 25px;
}
.connection {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.checklist {
  padding-left: 22px;
}
.checklist li {
  margin: 8px 0;
}
.mobile-only {
  display: none;
}
.prose {
  max-width: 720px;
}
.prose p {
  line-height: 2.1;
}
.bank {
  white-space: pre-wrap;
  background: var(--wash);
  padding: 20px;
  border-radius: 7px;
}
.preview-strip {
  background: #fff0ce;
  color: #76591c;
  text-align: center;
  padding: 10px;
}
.admin-main .grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 850px) {
  .site-header {
    height: 76px;
    padding: 0 20px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 42px;
    height: 42px;
  }
  .site-nav {
    gap: 17px;
  }
  .site-nav .desktop {
    display: none;
  }
  .hero {
    min-height: 490px;
    padding: 35px 28px;
    gap: 25px;
  }
  .hero h1 {
    font-size: 37px;
  }
  .hero-art img {
    max-width: 330px;
  }
  .wrap {
    padding: 45px 24px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-detail {
    gap: 30px;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: auto;
  }
  .admin-sidebar h2 {
    display: none;
  }
  .admin-sidebar a {
    white-space: nowrap;
    margin: 0;
    font-size: 13px;
    padding: 5px 8px;
  }
  .admin-main {
    padding: 25px 20px;
  }
  .footer-inner {
    display: block;
  }
  .footer-links {
    margin-top: 20px;
  }
  .legal dl > div {
    grid-template-columns: 140px 1fr;
  }
}
@media (max-width: 550px) {
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .site-nav {
    gap: 12px;
    font-size: 12px;
  }
  .cart-link {
    padding: 6px 8px;
  }
  .site-nav .account-link {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    position: relative;
    padding: 35px 24px 42px;
    gap: 0;
  }
  .hero-copy {
    padding: 0;
    z-index: 1;
  }
  .hero h1 {
    font-size: 36px;
    margin-top: 10px;
    line-height: 1.65;
  }
  .hero p {
    font-size: 14px;
    max-width: 280px;
  }
  .hero-art {
    position: absolute;
    right: 16px;
    top: 35px;
    width: 145px;
    opacity: 0.25;
  }
  .hero .button {
    margin-top: 8px;
  }
  .hero-copy .origin {
    font-size: 12px;
  }
  .wrap {
    padding: 36px 20px;
  }
  .section-head {
    align-items: start;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .section-head p {
    font-size: 13px;
  }
  .varieties {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .variety {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 15px;
  }
  .variety h3 {
    font-size: 23px;
  }
  .variety p {
    grid-column: 1/-1;
    margin: 0;
  }
  .variety .price {
    font-size: 17px;
  }
  .guides {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .grid {
    gap: 25px 14px;
  }
  .product-card h3 {
    font-size: 15px;
  }
  .product-card .price {
    font-size: 20px;
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .detail-text {
    padding: 0;
  }
  .detail-text h1 {
    font-size: 27px;
  }
  .main-media {
    aspect-ratio: 4/3;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .full {
    grid-column: auto;
  }
  .panel {
    padding: 20px 16px;
  }
  .line-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }
  .line-item img {
    width: 60px;
    height: 60px;
  }
  .line-item > .actions {
    grid-column: 2;
  }
  .legal dl > div {
    display: block;
  }
  .legal dt {
    margin-bottom: 8px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 13px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat span {
    font-size: 11px;
  }
  .admin-product {
    grid-template-columns: 55px 1fr;
    gap: 12px;
  }
  .admin-product img {
    width: 55px;
    height: 55px;
  }
  .admin-product > .actions {
    grid-column: 2;
  }
  .admin-main .section-head {
    display: block;
  }
  .admin-main .section-head .button {
    margin-top: 12px;
  }
  .admin-main .grid {
    grid-template-columns: 1fr;
  }
  .media-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .order-header {
    display: block;
  }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .mobile-only {
    display: block;
  }
  .message {
    max-width: 94%;
  }
  .actions.stretch {
    align-items: stretch;
  }
  .actions.stretch > * {
    min-width: 120px;
  }
  .notice {
    font-size: 12px;
  }
  .toolbar input {
    max-width: none;
  }
}
.hero-copy {
  max-width: 650px;
}
.hero h1 {
  font-size: clamp(34px, 4vw, 56px);
}
.home-products {
  margin-top: 30px;
}
.panel + .panel {
  margin-top: 20px;
}
.admin-product > .placeholder {
  font-size: 11px;
  min-height: 72px;
}
.summary h2 {
  margin-top: 0;
}
@media (max-width: 550px) {
  .hero h1 {
    font-size: clamp(28px, 8.2vw, 34px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 850px) {
  .admin-shell {
    grid-template-rows: 70px 1fr;
  }
  .admin-sidebar {
    height: 70px;
    min-height: 0;
    align-self: start;
    scrollbar-width: thin;
  }
}
@media (max-width: 850px) {
  .admin-sidebar {
    overflow-y: hidden;
    height: 80px;
  }
  .admin-shell {
    grid-template-rows: 80px 1fr;
  }
}
/* Mobile-first storefront: photos, price, then product selection. */
:root {
  --ink: #272d33;
  --deep: #272d33;
  --gold: #5398b9;
  --wash: #f4f8fb;
  --line: #e0e7ec;
  --muted: #65717a;
}
.site-header {
  height: 72px;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  gap: 16px;
}
.brand {
  font-family: inherit;
  font-size: 20px;
  gap: 8px;
  letter-spacing: -0.04em;
}
.brand img {
  width: 36px;
  height: 36px;
}
.site-nav {
  gap: 20px;
}
.notice {
  background: #f4f8fb;
  padding: 6px 16px;
  font-size: 12px;
}
.storefront {
  padding-top: 26px;
  padding-bottom: 38px;
  min-height: 50vh;
}
.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.catalog-heading h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 650;
}
.catalog-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.storefront .toolbar {
  margin: 16px 0 20px;
  display: block;
}
.filters {
  gap: 7px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 5px;
}
.filters button {
  flex-shrink: 0;
  border: 0;
  background: #f1f5f8;
  color: #52616e;
  border-radius: 6px;
  min-height: 42px;
  padding: 8px 17px;
}
.filters button.active {
  color: #fff;
  background: #d9edf7;
}
.catalog-search {
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
}
.catalog-search summary {
  cursor: pointer;
  width: fit-content;
  min-height: 28px;
  display: list-item;
}
.catalog-search input {
  margin: 8px 0 12px;
  font-size: 16px;
}
.storefront .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}
.product-card .photo {
  aspect-ratio: 1;
  border-radius: 8px;
}
.product-card h3 {
  font-size: 15px;
  margin: 10px 0 3px;
  line-height: 1.6;
  font-weight: 500;
}
.product-card .photo .badge {
  background: #ffffffed;
  color: #35434e;
  font-size: 11px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.product-card .price {
  font-size: 21px;
  margin: 0;
  color: #272d33;
  font-weight: 700;
}
.card-action {
  font-size: 12px;
  border-bottom: 1px solid #acc6d6;
  padding: 4px 0;
}
.catalog-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}
.footer {
  background: #f6f8fa;
  color: var(--muted);
  padding: 25px max(20px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: block;
}
.shop-help {
  display: flex;
  gap: 16px 30px;
  flex-wrap: wrap;
}
.shop-help a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 13px;
  color: var(--ink);
  text-decoration: underline;
}
.footer-details {
  margin-top: 12px;
}
.footer-details summary {
  cursor: pointer;
  min-height: 40px;
  padding: 8px 0;
}
.footer-links {
  padding: 10px 0;
  gap: 12px 25px;
}
.copyright {
  margin-top: 18px;
}
:focus-visible {
  outline-color: #d9edf7;
}
@media (max-width: 850px) {
  .storefront .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .site-header {
    height: 62px;
    padding: 0 14px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .brand {
    font-size: 17px;
    gap: 6px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .site-nav {
    gap: 10px;
    width: auto;
    font-size: 11px;
  }
  .site-nav .account-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .cart-link {
    border: 0;
    padding: 5px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .cart-count {
    padding: 1px 6px;
    margin-left: 4px;
  }
  .storefront {
    padding: 18px 14px 28px;
    min-height: 45vh;
  }
  .catalog-heading h1 {
    font-size: 19px;
  }
  .storefront .toolbar {
    margin: 12px 0 14px;
  }
  .filters {
    gap: 6px;
  }
  .filters button {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 42px;
  }
  .storefront .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 12px;
  }
  .product-card h3 {
    font-size: 13px;
  }
  .product-card .price {
    font-size: 20px;
  }
  .card-action {
    font-size: 11px;
  }
  .catalog-empty {
    min-height: 150px;
  }
  .footer {
    padding: 18px 16px;
  }
  .shop-help {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .detail-text h1 {
    font-size: 22px;
  }
}
@media (max-width: 359px) {
  .brand {
    font-size: 15px;
  }
  .site-nav {
    gap: 6px;
    font-size: 10px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
}

/* Clear blue accents, with photographs retaining visual priority. */
.filters button.active {
  color: #204d68;
  background: #d9edf7;
  box-shadow: inset 0 -2px #73b4d4;
}
:focus-visible {
  outline-color: #367da2;
}
.product-card .card-note {
  font-size: 11px;
  color: #65717a;
  margin: 3px 0 9px;
  line-height: 1.5;
}
.card-action {
  background: #eaf4fa;
  border: 1px solid #c8e0ee;
  color: #275c7b;
  border-radius: 5px;
  padding: 7px 9px;
  white-space: nowrap;
}
.video-indicator {
  position: absolute;
  right: 7px;
  top: 7px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #ffffffed;
  color: #32414d;
  font-size: 10px;
}
#add-cart {
  background: #cae8f7;
  border-color: #a6cde2;
  color: #163f57;
  width: 100%;
}
#add-cart:hover:not(:disabled) {
  background: #b5def2;
}
.video-trim-dialog {
  max-width: 520px;
  max-height: 90dvh;
  overflow: auto;
}
.video-trim-dialog video {
  width: 100%;
  max-height: 40dvh;
  background: #111;
  border-radius: 6px;
}
.video-trim-dialog progress {
  width: 100%;
  accent-color: #468bae;
}
.video-trim-dialog [hidden] {
  display: none;
}
.video-trim-dialog .actions {
  flex-wrap: wrap;
}
@media (max-width: 550px) {
  .card-bottom {
    flex-wrap: wrap;
    gap: 7px;
  }
  .card-action {
    font-size: 11px;
  }
  .product-card .card-note {
    font-size: 10px;
  }
  .video-trim-dialog {
    padding: 20px 16px;
  }
}
.registration-choice {
  padding: 16px;
  margin: 18px 0;
  background: #f2f7fb;
  border: 1px solid #dce8ef;
  border-radius: 7px;
}
.registration-choice label {
  margin-bottom: 6px;
}
.registration-choice p {
  margin: 0 0 10px;
}
.account-switch {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.account-switch h2 {
  font-size: 20px;
}
@media (max-width: 550px) {
  .site-nav .account-link {
    font-size: 10px;
  }
  .registration-choice {
    padding: 13px;
  }
}
@media(max-width:550px) { .site-nav .account-link { font-size:12px; } }
@media(max-width:359px) { .site-nav .account-link { font-size:11px; } }

/* Small watercolor accents; the product photographs stay first. */
.catalog-title { display:flex; align-items:center; gap:14px; }
.catalog-title h1 { margin:0; }
.catalog-fish { width:108px; height:72px; object-fit:contain; }
.registration-choice.member-invitation { display:flex; align-items:center; gap:28px; padding:22px 28px; background:#fafbf9; border:1px solid #e1e8e9; border-left:3px solid #8eafbb; border-radius:8px; }
.member-fish { flex:0 0 auto; width:180px; height:120px; object-fit:contain; mix-blend-mode:multiply; }
.member-invitation-copy { min-width:0; }
.member-invitation .member-invitation-title { font-family:'Yu Mincho','Hiragino Mincho ProN',serif; font-size:23px; font-weight:600; line-height:1.65; letter-spacing:.045em; margin:0 0 13px; color:#314957; }
.member-invitation .button { background:#fff; border-color:#c8d9df; }
.member-invitation .link-button { margin-left:10px; color:#60717a; }
@media(max-width:550px) {
 .catalog-title { gap:8px; }
 .catalog-fish { width:68px; height:46px; }
 .registration-choice.member-invitation { position:relative; gap:0; padding:18px; }
 .member-fish { position:absolute; top:5px; right:6px; width:90px; height:60px; }
 .member-invitation-copy { width:100%; }
 .member-invitation .member-invitation-title { padding-right:64px; font-size:19px; margin-bottom:16px; }
 .member-invitation .button { font-size:12px; padding:10px 12px; }
 .member-invitation .link-button { margin-left:6px; font-size:12px; }
}
/* Member area: profile and one-to-one conversations. */
.member-menu {display:grid;gap:0;margin:20px 0;border-block:1px solid #e4e9ec}
.member-menu a {padding:15px 4px;text-decoration:none;border-bottom:1px solid #edf0f2}
.profile-editor summary {cursor:pointer;font-weight:600;padding:8px 0}
.profile-editor form {margin-top:20px}
.quiet-link {font-size:13px;margin:24px 0;color:#63717a}
.booth {min-height:220px;max-height:55vh}
.chat-photo {display:block;max-width:100%;width:auto;max-height:320px;border-radius:10px;margin-top:8px;object-fit:contain}
#chat-preview .chat-photo {max-height:180px}
.photo-choice input {max-width:100%}
.message small {display:block}
.message-body {overflow-wrap:anywhere}
#access-filter input {max-width:100%}
@media(max-width:480px){.chat-photo{max-height:260px}.member-menu a{min-height:48px}}
[hidden] { display: none !important; }
#logout {white-space:nowrap;flex-shrink:0}
@media(max-width:380px){.section-head{gap:12px}.section-head h1{font-size:26px}.order-header h3{font-size:16px;line-height:1.6}}
body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.bottom-nav { position: fixed; z-index: 90; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e4e9ec; box-shadow: 0 -3px 18px #1533480b; padding-bottom: env(safe-area-inset-bottom, 0px); }
.bottom-nav > div { max-width: 640px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.bottom-nav a { min-height: 72px; display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; text-decoration: none; color: #69757b; font-size: 12px; font-weight: 500; }
.bottom-nav a[aria-current=page] { color: #176580; font-weight: 700; background: #f3f9fa; }
.nav-icon, .member-chat-icon { position: relative; display: inline-flex; }
.nav-icon svg, .member-chat-icon svg { width: 25px; height: 25px; }
.chat-unread { position: absolute; top: -9px; right: -13px; background: #df3745; color: white; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font: 700 12px/1 system-ui, sans-serif; border: 2px solid white; box-sizing: border-box; }
.inline-unread { position: static; vertical-align: middle; }
.member-menu .member-chat-link { display: flex; align-items: center; gap: 20px; padding: 22px 18px; background: #f0f8fa; border: 1px solid #d5e9ed; border-radius: 12px; text-decoration: none; }
.member-chat-link > span:last-child { margin-left: auto; font-size: 24px; }
.member-chat-link small { display: block; font-size: 12px; margin-top: 4px; color: #62767e; }
#toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
