:root {
  --th-black: #080808;
  --th-yellow: #ffd400;
  --th-white: #ffffff;
  --th-gray-050: #fafafa;
  --th-gray-100: #f1f1ef;
  --th-gray-300: #c9c9c9;
  --th-gray-600: #5d5d5d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--th-gray-100);
  color: #111111;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.55;
}

button,
input,
select,
textarea { font: inherit; }

a { color: inherit; }

img { max-width: 100%; height: auto; }

.site-shell {
  position: relative;
  width: min(100%, 1160px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--th-white);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12);
}

.update-strip {
  padding: 8px 16px;
  background: var(--th-yellow);
  color: var(--th-black);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.site-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 5px solid var(--th-yellow);
  background: var(--th-white);
}

.brand {
  display: block;
  min-width: 0;
  width: min(100%, 640px);
}

.brand > a { display: block; text-decoration: none; }
.brand .custom-logo-link { display: block; }
.brand .custom-logo { display: block; width: auto; max-width: 100%; height: auto; max-height: 82px; }
.brand__source-logo {
  display: block;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 3 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.menu-toggle,
.menu-close,
.buylist-dialog__close {
  border: 2px solid var(--th-black);
  border-radius: 4px;
  background: var(--th-yellow);
  color: var(--th-black);
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle { min-height: 44px; padding: 10px 12px; white-space: nowrap; }
.menu-close,
.buylist-dialog__close { padding: 7px 10px; }

.site-menu {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 14px;
  width: min(360px, calc(100% - 28px));
  border: 3px solid var(--th-black);
  background: var(--th-white);
  box-shadow: 8px 8px 0 var(--th-yellow);
}

.site-menu.is-open { display: block; }

.site-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--th-black);
  color: var(--th-white);
}

.site-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu__list li { margin: 0; }

.site-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 12px;
  border-bottom: 1px solid #d6d6d6;
  color: #111111;
  font-weight: 700;
  text-decoration: none;
}

.site-menu__list li:last-child .site-menu__item { border-bottom: 0; }
.site-menu__list a.site-menu__item:hover { background: #fff8c4; }

.site-menu__item--disabled {
  background: #f3f3f3;
  color: #777777;
  cursor: not-allowed;
}

.site-menu__status {
  flex: 0 0 auto;
  padding: 3px 6px;
  background: #dfdfdf;
  color: #555555;
  font-size: 0.68rem;
  line-height: 1;
}

.site-main { background: var(--th-white); }

.content-page {
  min-height: 60vh;
  padding: 22px 16px 36px;
  background: var(--th-white);
}

.content-page > article {
  width: min(100%, 880px);
  margin: 0 auto;
}

.content-page__hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 20px 18px 17px;
  border-bottom: 5px solid var(--th-yellow);
  background: var(--th-black);
  color: var(--th-white);
}

.content-page__hero::after {
  content: "";
  position: absolute;
  top: -28px;
  right: -18px;
  width: 96px;
  height: 120px;
  background: var(--th-yellow);
  transform: skewX(-18deg);
}

.content-page__hero > * { position: relative; z-index: 1; }
.content-page__hero > span { color: var(--th-yellow); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; }
.content-page__hero h1 { max-width: calc(100% - 54px); margin: 4px 0 8px; font-size: clamp(1.55rem, 7vw, 2.25rem); line-height: 1.25; }
.content-page__hero time { color: #d8d8d8; font-size: 0.72rem; }

.content-page__body {
  color: #202020;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.content-page__body h2 {
  margin: 30px 0 12px;
  padding: 0 0 8px 12px;
  border-bottom: 2px solid var(--th-black);
  border-left: 7px solid var(--th-yellow);
  color: var(--th-black);
  font-size: 1.15rem;
  line-height: 1.4;
}

.content-page__body p { margin: 0 0 14px; }
.content-page__body ul { margin: 0 0 18px; padding-left: 1.35em; }
.content-page__body li + li { margin-top: 7px; }
.content-page__body a { color: #725d00; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.policy-intro {
  padding: 16px;
  border: 2px solid var(--th-black);
  border-left: 9px solid var(--th-yellow);
  background: #fffdf0;
}

.policy-intro strong { display: block; margin-bottom: 5px; color: var(--th-black); font-size: 1.05rem; }
.policy-intro p { margin: 0; }

.policy-data {
  margin: 0;
  border-top: 2px solid var(--th-black);
  border-left: 1px solid var(--th-gray-300);
  border-right: 1px solid var(--th-gray-300);
}

.policy-data > div { border-bottom: 1px solid var(--th-gray-300); }
.policy-data dt { padding: 8px 10px; background: var(--th-gray-100); color: var(--th-black); font-weight: 800; }
.policy-data dd { margin: 0; padding: 10px; }
.policy-date { margin-top: 30px !important; padding-top: 12px; border-top: 1px solid var(--th-gray-300); color: var(--th-gray-600); font-size: 0.78rem; }

.contact-panel {
  padding: 14px;
  border: 2px solid var(--th-black);
  background: var(--th-gray-050);
}

.contact-notice { padding: 11px 12px; border: 2px solid var(--th-black); font-weight: 800; }
.contact-notice--success { background: #e9f8df; }
.contact-notice--error { background: #fff1f1; color: #8e1111; }
.contact-form { display: grid; gap: 14px; }
.contact-field { display: grid; gap: 6px; color: var(--th-black); font-weight: 800; }
.contact-field b { color: #8e1111; font-size: 0.7rem; }
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 2px solid var(--th-black);
  border-radius: 0;
  background: var(--th-white);
  color: var(--th-black);
  font-weight: 500;
}

.contact-field textarea { resize: vertical; }
.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible { outline: 4px solid rgba(255, 212, 0, 0.55); outline-offset: 1px; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-consent { display: flex; align-items: flex-start; gap: 9px; color: #333333; font-size: 0.82rem; }
.contact-consent input { width: 20px; height: 20px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--th-yellow); }
.contact-submit {
  min-height: 48px;
  padding: 11px 16px;
  border: 3px solid var(--th-black);
  background: var(--th-yellow);
  color: var(--th-black);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--th-black);
}

.contact-submit:hover,
.contact-submit:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--th-black); }
.content-page__back { display: inline-block; margin-top: 30px; padding: 10px 13px; border: 2px solid var(--th-black); background: var(--th-white); color: var(--th-black); font-weight: 800; text-decoration: none; }
.content-page__back:hover { background: var(--th-yellow); }

.content-listing__description { margin-bottom: 18px; }

.content-list {
  display: grid;
  gap: 14px;
}

.content-list__item {
  padding: 16px;
  border: 1px solid var(--th-gray-300);
  border-left: 7px solid var(--th-yellow);
  background: var(--th-white);
}

.content-list__item h2 { margin: 0 0 5px; font-size: 1.08rem; line-height: 1.4; }
.content-list__item h2 a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content-list__item time { color: var(--th-gray-600); font-size: 0.72rem; }
.content-list__excerpt p { margin: 10px 0 0; }
.content-list__empty { padding: 20px; border: 2px solid var(--th-gray-300); text-align: center; }

.navigation.pagination { margin-top: 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-links .page-numbers { min-width: 42px; padding: 8px; border: 1px solid var(--th-black); text-align: center; text-decoration: none; }
.nav-links .current { background: var(--th-yellow); font-weight: 800; }

.buylist-single__layout { display: grid; gap: 18px; }
.buylist-single__figure { margin: 0; }

.buylist-single__zoom {
  overflow: hidden;
  border: 1px solid var(--th-gray-300);
  background: var(--th-gray-050);
}

.buylist-single__zoom img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.buylist-single__figure figcaption { margin-top: 6px; color: var(--th-gray-600); font-size: 0.75rem; text-align: center; }

.buylist-single__facts {
  margin: 0;
  border-top: 2px solid var(--th-black);
  border-left: 1px solid var(--th-gray-300);
}

.buylist-single__facts > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); border-right: 1px solid var(--th-gray-300); border-bottom: 1px solid var(--th-gray-300); }
.buylist-single__facts dt { padding: 9px 10px; background: var(--th-gray-100); font-weight: 800; }
.buylist-single__facts dd { margin: 0; padding: 9px 10px; }
.buylist-single__content { padding: 14px; border-left: 7px solid var(--th-yellow); background: #fffdf0; }

.buylist-single__external {
  display: block;
  min-height: 48px;
  padding: 12px 16px;
  border: 2px solid var(--th-black);
  background: var(--th-yellow);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.buylist-single__external:hover { background: #ffe45c; }
.buylist-single__navigation { display: flex; flex-wrap: wrap; gap: 10px; }
.buylist-archive__grid { margin-top: 4px; }

/* Post Image Maker/Core-generated accessible price table. */
.pim-price-table-block {
  margin: 20px 0;
  overflow: hidden;
  border: 2px solid var(--th-black);
  background: var(--th-white);
}

.pim-price-table__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 11px 13px;
  border-left: 8px solid var(--th-yellow);
  background: var(--th-black);
  color: var(--th-white);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
}

.pim-price-table__header h2,
.pim-price-table__header p { margin: 0; }
.pim-price-table__header h2 { color: inherit; font-size: 1rem; }
.pim-price-table__header p { color: #e8e8e2; font-size: 0.72rem; }

.pim-price-table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.pim-price-table-wrap > table.pim-price-table {
  width: 100%;
  min-width: 680px;
  border: 0;
  border-collapse: collapse;
  color: var(--th-black);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.pim-price-table__caption {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pim-price-table__head { background: var(--th-black); color: var(--th-white); }
.pim-price-table__row { border-bottom: 1px solid var(--th-gray-300); }
.pim-price-table__body .pim-price-table__row:nth-child(even) { background: var(--th-gray-050); }

.pim-price-table th,
.pim-price-table td { padding: 10px 12px; border-right: 1px solid var(--th-gray-300); vertical-align: middle; }
.pim-price-table th:last-child,
.pim-price-table td:last-child { border-right: 0; }
.pim-price-table__card-name { min-width: 210px; font-weight: 800; }
.pim-price-table__product-number { white-space: nowrap; }
.pim-price-table__shop-name { min-width: 150px; font-weight: 700; }
.pim-price-table__price { color: var(--th-black); font-size: 1rem; font-weight: 900; text-align: right; white-space: nowrap; }
.pim-price-table__checked-date { color: var(--th-gray-600); font-size: 0.74rem; white-space: nowrap; }
.pim-price-table__source { white-space: nowrap; }
.pim-price-table__source a { color: #715b00; font-weight: 800; text-underline-offset: 3px; }

.pim-price-table__note {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid var(--th-gray-300);
  background: var(--th-gray-050);
  color: var(--th-gray-600);
  font-size: 0.74rem;
}

@media (max-width: 520px) {
  .pim-price-table__header { align-items: flex-start; flex-direction: column; }
}

.postal-section,
.regions-section { padding: 24px 16px 28px; }

.date-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.daily-label {
  display: inline-block;
  margin-bottom: 7px;
  padding: 5px 9px;
  background: var(--th-yellow);
  color: var(--th-black);
  font-size: 0.78rem;
  font-weight: 700;
}

.date-heading h1 {
  margin: 0;
  font-size: clamp(1.08rem, 4vw, 1.55rem);
  line-height: 1.35;
}

.date-heading time,
.date-heading__pending {
  flex: 0 0 auto;
  color: var(--th-gray-600);
  font-size: 0.72rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-left: 8px solid var(--th-yellow);
  background: var(--th-black);
  color: var(--th-white);
  font-weight: 700;
}

.section-heading small {
  flex: 0 0 auto;
  color: var(--th-yellow);
  font-size: 0.72rem;
  white-space: nowrap;
}

.section-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
  color: var(--th-gray-600);
  font-size: 0.76rem;
}

.buylist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.buylist-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--th-gray-300);
  background: var(--th-white);
}

.buylist-grid--postal .buylist-card:first-child { border: 3px solid var(--th-yellow); }

.buylist-card__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--th-white);
  cursor: zoom-in;
}

.buylist-card__zoom img {
  display: block;
  width: 100%;
  background: var(--th-white);
}

.buylist-card__paper { padding: 7px; }

.buylist-card__mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 5px;
  padding: 4px;
  overflow: hidden;
  border-top: 2px solid var(--th-black);
  border-bottom: 2px solid var(--th-black);
  font-size: clamp(0.38rem, 1.6vw, 0.62rem);
  white-space: nowrap;
}

.buylist-card__mini-head b {
  max-width: 50%;
  padding: 2px 4px;
  overflow: hidden;
  background: var(--th-black);
  color: var(--th-white);
  text-overflow: ellipsis;
}

.buylist-card__matrix {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 2px;
}

.buylist-card__matrix span {
  display: block;
  aspect-ratio: 0.62;
  border: 1px solid #dddddd;
  background:
    radial-gradient(circle at 70% 26%, #fff2a2 0 12%, transparent 13%),
    linear-gradient(145deg, #d5a335 0 35%, #3e7790 36% 68%, #f0f0ed 69%);
  border-bottom: 4px solid var(--th-yellow);
}

.buylist-card__matrix span:nth-child(6n+2) { background-color: #5b9f94; filter: hue-rotate(25deg); }
.buylist-card__matrix span:nth-child(6n+3) { filter: hue-rotate(65deg); }
.buylist-card__matrix span:nth-child(6n+4) { filter: hue-rotate(115deg); }
.buylist-card__matrix span:nth-child(6n+5) { filter: hue-rotate(170deg); }
.buylist-card__matrix span:nth-child(6n+6) { filter: hue-rotate(225deg); }

.buylist-card__caption {
  margin: 0;
  padding: 6px 7px;
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
}

.buylist-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  margin: 0;
  padding: 7px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
}

.buylist-card__detail,
.buylist-card__meta time {
  overflow: hidden;
  text-overflow: ellipsis;
}

.buylist-card__detail { color: var(--th-black); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.buylist-card__detail:hover { color: #725d00; }

.buylist-card__meta time { flex: 0 0 auto; color: var(--th-gray-600); font-weight: 400; }

.buylist-card__link {
  display: block;
  padding: 7px;
  border-top: 1px solid #dedede;
  background: #fff8c4;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.oripa-ad {
  margin: 0 16px 28px;
  border: 3px solid var(--th-black);
  background: var(--th-yellow);
  box-shadow: 7px 7px 0 var(--th-black);
}

.oripa-ad__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.oripa-pack {
  position: relative;
  display: grid;
  width: 76px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--th-black);
  background: var(--th-black);
  color: var(--th-yellow);
  font-weight: 700;
  transform: rotate(-3deg);
}

.oripa-pack::before,
.oripa-pack::after {
  position: absolute;
  width: 135%;
  height: 7px;
  background: var(--th-yellow);
  content: "";
  transform: rotate(-35deg);
}

.oripa-pack::before { top: 12px; }
.oripa-pack::after { bottom: 11px; }
.oripa-pack span { position: relative; z-index: 1; }

.ad-label {
  display: inline-block;
  margin-bottom: 5px;
  padding: 3px 6px;
  background: var(--th-black);
  color: var(--th-white);
  font-size: 0.68rem;
  font-weight: 700;
}

.oripa-ad__copy strong { display: block; margin-bottom: 3px; }
.oripa-ad__copy p { margin: 0; color: #353535; font-size: 0.76rem; }

.oripa-ad__cta {
  display: block;
  padding: 10px 12px;
  background: var(--th-black);
  color: var(--th-white);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.oripa-ad__cta--disabled { color: #bdbdbd; }

.postal-shop-links {
  margin: 0 16px 28px;
  border: 2px solid var(--th-black);
  background: var(--th-white);
}

.postal-shop-links details { margin: 0; }

.postal-shop-links summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 11px 13px;
  background: var(--th-black);
  color: var(--th-white);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.postal-shop-links summary::-webkit-details-marker { display: none; }
.postal-shop-links summary::after { content: "＋"; flex: 0 0 auto; color: var(--th-yellow); font-size: 1.15rem; }
.postal-shop-links details[open] summary::after { content: "−"; }
.postal-shop-links summary small { margin-left: auto; color: var(--th-yellow); font-size: 0.68rem; white-space: nowrap; }

.postal-shop-links__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.postal-shop-links__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  border: 2px solid var(--th-black);
  background: #fffdf0;
  color: var(--th-black);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.postal-shop-links__item small { color: #806900; font-size: 0.64rem; font-weight: 700; }
.postal-shop-links__item:hover,
.postal-shop-links__item:focus-visible { background: var(--th-yellow); }

.postal-shop-links__note {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--th-gray-600);
  font-size: 0.66rem;
}

.region-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 11px -2px 14px;
  padding: 2px 2px 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.region-nav a {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--th-black);
  background: var(--th-white);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.region-nav a:hover,
.region-nav a:focus-visible { background: var(--th-yellow); }

.regions-summary {
  margin: 10px 0 0;
  color: var(--th-gray-600);
  font-size: 0.72rem;
  line-height: 1.7;
}

.region-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.region-block {
  min-width: 0;
  scroll-margin-top: 16px;
}

.region-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 3px solid var(--th-black);
}

.region-heading__number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--th-yellow);
  color: var(--th-black);
  font-weight: 700;
}

.region-heading h2 { margin: 0; font-size: 1rem; }
.region-heading__title { min-width: 0; }
.region-heading__title small {
  display: block;
  margin-top: 2px;
  color: var(--th-gray-600);
  font-size: 0.64rem;
  line-height: 1.35;
}
.region-heading__count {
  margin-left: auto;
  color: var(--th-gray-600);
  font-size: 0.68rem;
  white-space: nowrap;
}

.region-coming-soon {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--th-gray-300);
  border-left: 6px solid var(--th-yellow);
  background: var(--th-white);
}

.region-coming-soon strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  background: var(--th-black);
  color: var(--th-yellow);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.region-coming-soon span {
  color: var(--th-gray-600);
  font-size: 0.72rem;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 20px;
  padding: 18px 16px;
  background: var(--th-black);
  color: var(--th-white);
  font-size: 0.74rem;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

html.is-buylist-viewer-open,
html.is-buylist-viewer-open body {
	overflow: hidden;
}

.buylist-dialog {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
  padding: 0;
	border: 0;
	overflow: hidden;
	background: transparent;
	color: var(--th-white);
}

.buylist-dialog[open] {
	display: grid;
	grid-template-rows: minmax(0, 1fr);
}

.buylist-dialog::backdrop { background: rgba(0, 0, 0, 0.92); }

.buylist-dialog__title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.buylist-dialog__close {
	position: fixed;
	z-index: 4;
	top: max(12px, env(safe-area-inset-top));
	right: max(12px, env(safe-area-inset-right));
	display: grid;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	padding: 0;
	place-items: center;
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
	color: #080808;
	font-size: 2rem;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.buylist-dialog__close:hover {
	background: var(--th-yellow);
}

.buylist-dialog__close:focus-visible {
	outline: 3px solid var(--th-yellow);
	outline-offset: 3px;
}

.buylist-dialog__controls {
	position: fixed;
	z-index: 3;
	left: 50%;
	bottom: max(12px, env(safe-area-inset-bottom));
	display: grid;
	width: min(calc(100% - 24px), 460px);
	transform: translateX(-50%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 8px;
	overflow: hidden;
	background: rgba(8, 8, 8, 0.82);
	box-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(5px);
}

.buylist-dialog__toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 7px 10px 4px;
}

.buylist-dialog__toolbar button {
	min-width: 44px;
	min-height: 44px;
	border: 1px solid #777777;
	border-radius: 4px;
	background: rgba(34, 34, 34, 0.94);
	color: var(--th-white);
	cursor: pointer;
	font-size: 1rem;
	font-weight: 800;
}

.buylist-dialog__toolbar button:disabled {
	opacity: 0.38;
	cursor: default;
}

.buylist-dialog__toolbar .buylist-dialog__reset {
	min-width: 92px;
	padding: 0 12px;
	background: var(--th-yellow);
	color: var(--th-black);
}

.buylist-dialog__zoom-value {
	min-width: 58px;
	color: var(--th-white);
	font-size: 0.84rem;
	font-weight: 800;
	text-align: center;
}

.buylist-dialog__help {
	margin: 0;
	padding: 2px 10px 7px;
	color: #cfcfcf;
	font-size: 0.68rem;
	line-height: 1.35;
	text-align: center;
}

.buylist-dialog__stage {
	display: grid;
	overflow: hidden;
	min-width: 0;
	min-height: 0;
	place-items: center;
	padding: max(68px, calc(env(safe-area-inset-top) + 60px)) max(14px, env(safe-area-inset-right)) max(106px, calc(env(safe-area-inset-bottom) + 98px)) max(14px, env(safe-area-inset-left));
	background: rgba(0, 0, 0, 0.9);
	cursor: zoom-in;
	outline: none;
	overscroll-behavior: contain;
	touch-action: none;
	user-select: none;
}

.buylist-dialog__stage.is-zoomed { cursor: grab; }
.buylist-dialog__stage.is-interacting { cursor: grabbing; }

.buylist-dialog__stage:focus-visible {
	box-shadow: inset 0 0 0 2px var(--th-yellow);
}

.buylist-dialog__stage img {
  display: block;
	width: auto;
	max-width: 100%;
  height: auto;
	max-height: 100%;
	object-fit: contain;
	background: var(--th-white);
	box-shadow: 0 3px 22px rgba(0, 0, 0, 0.58);
	transform: translate3d(0, 0, 0) scale(1);
	transform-origin: center;
	transition: transform 120ms ease-out;
	user-select: none;
	will-change: transform;
}

.buylist-dialog__stage.is-interacting img { transition: none; }

@media (min-width: 760px) {
  .site-header,
  .postal-section,
  .regions-section {
    padding-left: 34px;
    padding-right: 34px;
  }

  .buylist-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

  .buylist-card__meta { flex-direction: row; align-items: center; }

  .oripa-ad { margin-left: 34px; margin-right: 34px; }
	.postal-shop-links { margin-left: 34px; margin-right: 34px; }
	.postal-shop-links__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.region-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oripa-ad__inner { grid-template-columns: auto minmax(0, 1fr) auto; padding: 18px 22px; }
  .oripa-ad__cta { min-width: 210px; }

  .content-page { padding: 36px 34px 52px; }
  .content-page__hero { padding: 28px 30px 24px; }
  .content-page__body { padding: 0 12px; font-size: 1rem; }
  .policy-data > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
  .policy-data dt { display: flex; align-items: center; }
  .contact-panel { padding: 20px; }
}

@media (max-width: 420px) {
  .site-header { grid-template-columns: minmax(0, 1fr) 54px; gap: 8px; padding: 8px; }
  .menu-toggle { padding: 8px 5px; font-size: 0.76rem; }
  .postal-section,
  .regions-section { padding-left: 12px; padding-right: 12px; }
  .oripa-ad { margin-left: 12px; margin-right: 12px; }
	.postal-shop-links { margin-left: 12px; margin-right: 12px; }
  .date-heading { align-items: start; }
  .date-heading time,
  .date-heading__pending { padding-top: 31px; }
  .section-heading { align-items: flex-start; padding: 10px; }
  .section-heading > span { min-width: 0; line-height: 1.35; }
  .oripa-ad__inner { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .oripa-pack { width: 68px; height: 84px; }
  .oripa-ad__cta { grid-column: 1 / -1; }
	.buylist-dialog__close {
		top: max(8px, env(safe-area-inset-top));
		right: max(8px, env(safe-area-inset-right));
	}
	.buylist-dialog__stage {
		padding-left: max(8px, env(safe-area-inset-left));
		padding-right: max(8px, env(safe-area-inset-right));
	}
	.buylist-dialog__help { font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
	.buylist-dialog__stage img { transition: none; }
}
