:root {
  --ink: #2d2926;
  --green: #659e78;
  --muted: #6e6b67;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
button, select { font: inherit; }
button { cursor: pointer; }
.stamp-page { width: min(100%, 760px); margin: 0 auto; padding: 0 0 56px; overflow: hidden; background: #fff; }
.stamp-hero { width: 100%; }
.stamp-hero-image { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
.stamp-hero-search { display: grid; gap: 10px; margin: 16px 24px 14px; padding: 18px; border-radius: 3px; background: rgba(234, 245, 238, .94); box-shadow: 0 8px 24px rgba(65, 104, 78, .08); }
.stamp-hero-select { width: 100%; min-height: 50px; padding: 0 42px 0 16px; border: 1px solid #e3e6e2; border-radius: 12px; appearance: auto; background: #fff; color: var(--ink); font-size: 16px; font-weight: 600; }
.stamp-search-button { min-height: 52px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .04em; box-shadow: 0 4px 10px rgba(65, 116, 82, .18); }
.stamp-search-button:active { transform: translateY(1px); }
.stamp-hero-select:focus, .stamp-search-button:focus-visible, .stamp-image-link:focus-visible, .stamp-card-button:focus-visible, .stamp-modal-link:focus-visible { outline: 3px solid #b9dfc6; outline-offset: 2px; }
.stamp-request-note { margin: 0 24px 18px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.stamp-request-note a { color: #3f9660; text-decoration: underline; text-underline-offset: 3px; }
.stamp-results { width: calc(100% - 32px); margin: 0 auto; }
.stamp-results[hidden] { display: none; }
.stamp-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #e8e6e1; }
.stamp-list-heading h2 { margin: 0; font-size: 23px; letter-spacing: .04em; }
.stamp-result-count { margin: 0; color: var(--muted); font-size: 14px; }
.stamp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.stamp-card { display: flex; min-width: 0; flex-direction: column; align-items: center; padding: 5px 5px 12px; border: 1px solid #ebe9e5; border-radius: 9px; background: #fff; box-shadow: 0 3px 12px rgba(37, 32, 25, .04); }
.stamp-image-link { display: block; width: 100%; padding: 0; border: 0; border-radius: 5px; background: transparent; }
.stamp-image-wrap { display: grid; width: 100%; aspect-ratio: 1 / .82; place-items: center; overflow: hidden; border-radius: 5px; background: #fff; }
.stamp-card-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.stamp-info { display: grid; grid-template-rows: 19px 12px; width: 100%; min-height: 35px; padding: 4px 2px 0; text-align: center; }
.stamp-dog-name, .stamp-series { margin: 0; overflow-wrap: anywhere; }
.stamp-dog-name { align-self: center; justify-self: center; max-width: 100%; color: #77716c; font-size: 12px; font-weight: 600; line-height: 1.15; white-space: nowrap; }
.stamp-dog-name.is-long-name { font-size: 9px; letter-spacing: -.04em; }
.stamp-dog-name.is-extra-long-name { font-size: 8px; letter-spacing: -.06em; }
.stamp-series { align-self: start; justify-self: center; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.2; transform: translateY(-1px); }
.stamp-card-button { width: min(100%, 132px); min-height: 32px; margin-top: 5px; padding: 5px 9px; border: 1px solid #9e9a94; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; }
.stamp-card-button.is-disabled { display: grid; place-items: center; color: #999; border-color: #d7d5d1; background: #fff; font-size: 10px; }
.stamp-no-result { margin: 20px 0 0; color: var(--muted); text-align: center; }
.stamp-modal { position: fixed; z-index: 1000; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; }
.stamp-modal.is-open { display: flex; }
.stamp-modal-overlay { position: absolute; inset: 0; background: rgba(24, 23, 21, .45); }
.stamp-modal-content { position: relative; z-index: 1; display: grid; gap: 10px; width: min(100%, 360px); padding: 24px 20px 20px; background: #fff; text-align: center; }
.stamp-modal-content h2 { margin: 0 0 8px; font-size: 20px; }
.stamp-modal-content p { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.stamp-modal-actions { display: grid; gap: 10px; }
.stamp-modal-link, .stamp-modal-button { display: grid; min-height: 52px; place-items: center; border: 1px solid var(--green); text-decoration: none; font-size: 16px; font-weight: 700; }
.stamp-modal-link.is-line, .stamp-line-button { background: #06c755; border-color: #06c755; color: #fff; }
.stamp-modal-link.is-browser, .stamp-browser-button { border-color: #06c755; background: #fff; color: #06c755; }
.stamp-modal-close { margin-top: 14px; padding: 4px 10px; border: 0; background: transparent; color: var(--muted); text-decoration: underline; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
@media (min-width: 560px) { .stamp-hero-search { margin: 20px 40px 16px; padding: 20px; } .stamp-request-note { margin: 0 40px 20px; } .stamp-results { width: calc(100% - 64px); } .stamp-grid { gap: 18px; } .stamp-dog-name { font-size: 14px; } .stamp-series { font-size: 10px; } .stamp-card-button { width: 150px; font-size: 13px; } }
@media (max-width: 360px) { .stamp-hero-search { margin: 12px 16px; gap: 8px; padding: 12px; } .stamp-request-note { margin: 0 16px 16px; font-size: 11px; } .stamp-hero-select { min-height: 46px; font-size: 15px; } .stamp-search-button { min-height: 48px; font-size: 16px; } }


