.certificate-delivery { margin: 2rem 0 4rem; padding: 1.6rem; border: 2px solid #b83c47; border-radius: 16px; background: #fff8ec; color: #463629; }
.certificate-delivery h2 { margin: 0 0 1rem; padding: 0; border: 0; background: none; color: #9b2835; font-size: 1.3rem; }
.certificate-delivery__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.certificate-delivery__options a { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .5rem 1.5rem; padding: 1rem; border-radius: 8px; background: white; color: #463629; text-decoration: none; border: 1px solid #e5cabb; }
.certificate-delivery__options strong { font-size: 2rem; color: #9b2835; }
.certificate-delivery p { margin: 1rem 0 0; text-align: center; font-weight: bold; }
.certificate-delivery p a { color: #9b2835; text-decoration: underline; }
.certificate-service { margin-bottom: 5rem; scroll-margin-top: 2rem; }
.certificate-service h2 span { display: block; color: #a92e3d; font-size: 1.15em; }
.certificate-gallery { max-width: 900px; margin: 2rem auto 0; }
.certificate-gallery figure { margin: 0; }
.certificate-gallery figcaption { margin-bottom: 1rem; text-align: center; font-size: 1.4rem; font-weight: bold; color: #a92e3d; }
.certificate-gallery__full { display: block; }
.certificate-gallery__image { display: block; width: 100%; height: auto; aspect-ratio: 1.4157; object-fit: contain; background: white; border: 1px solid #e4ddd2; box-sizing: border-box; }
.certificate-gallery__hint { font-size: .85rem; text-align: center; margin: 1rem 0; }
.certificate-gallery__choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.certificate-gallery__choices button { cursor: pointer; border: 2px solid #dfd6ce; border-radius: 8px; padding: .5rem; background: white; color: #59483c; font: inherit; }
.certificate-gallery__choices button img { display: block; width: 100%; aspect-ratio: 1.4157; object-fit: contain; }
.certificate-gallery__choices button span { display: block; margin-top: .3rem; font-weight: bold; }
.certificate-gallery__choices button[aria-pressed="true"] { border-color: #b83c47; background: #fff1f2; color: #9b2835; }
.certificate-gallery__choices button:hover { border-color: #b83c47; }
.certificate-gallery a:focus-visible, .certificate-gallery button:focus-visible, .certificate-delivery a:focus-visible { outline: 3px solid #245a9b; outline-offset: 3px; }
@media (max-width: 600px) {
  .certificate-delivery { padding: 1rem; }
  .certificate-delivery__options { grid-template-columns: 1fr; gap: .65rem; }
  .certificate-delivery__options a { padding: .6rem; }
  .certificate-gallery__choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .certificate-service h2 { line-height: 1.6; }
}
