.replica-end {
  --end-ink: #414141;
  background: #ecf5bf;
  color: var(--end-ink);
  font-family: Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
}
.replica-end :where(h2, p, nav, form, section, picture, img) { margin: 0; }
.replica-end :where(h2, .end-contact form > p:first-of-type, .end-support-links a) {
  font-family: var(--hand, "Klee", "Yu Mincho", serif);
  font-weight: 600;
}
.replica-end :where(img, picture) { display: block; }
.replica-end :where(a, button, input, textarea):focus-visible {
  outline: 3px solid #6d3867; outline-offset: 3px;
}
.replica-end section[id] { scroll-margin-top: var(--anchor-offset, 5rem); }
.end-institutions {
  padding: 11px 0 59px; display: grid; grid-template-columns: 1fr 1fr;
  width: min(100%, 980px); margin-inline: auto;
}
.end-institution {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 449px;
}
.end-institution picture { position: relative; }
.end-institution img {
  width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: left center;
}
.end-institution-copy {
  min-width: 0; background: #fee9fa; padding-top: 69px;
}
#schools .end-institution-copy { background: #fdfeba; }
.end-institution h2 { font-size: clamp(19px, 2.15vw, 24px); text-align: center; line-height: 2; }
.end-institution-detail { padding: 10px 8% 0 15%; font-size: 13px; line-height: 1.55; }
#schools .end-institution-detail { padding: 58px 8px 0 10px; font-size: 12px; }
.end-pills { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 17px auto 0; }
#welfare .end-pills { align-items: flex-start; }
.end-pills a {
  display: grid; place-items: center; text-align: center;
  max-width: 100%; width: 171px; min-height: 41px; padding: 5px 7px; border-radius: 40px;
  font-size: 12px; line-height: 1.4; background: rgb(255 255 255 / 88%); color: #874e78; text-decoration: none;
}
#schools .end-pills a { width: 163px; min-height: 47px; font-size: 14px; color: #746218; }
.replica-end a:hover { text-decoration: underline; }
.end-contact { padding: 24px 15px 20px; }
.end-form {
  width: min(700px, 100%); margin: 0 auto; padding: 14px 44px 24px; text-align: center;
  background: rgb(255 255 255 / 29%); border-radius: 10px;
}
.end-form h2 { font-size: 32px; line-height: 2; }
.end-form > p:first-of-type { font-size: 16px; line-height: 1.6; }
.end-fields { display: grid; gap: 17px; margin-top: 5px; }
.end-fields label { display: block; }
.end-fields label > span {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.end-fields input, .end-fields textarea {
  display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 50px; padding: .65rem;
  font: 15px/1.5 Meiryo, "Hiragino Kaku Gothic ProN", sans-serif; color: #414141;
  background: rgba(255,232,254,.76); border: 1px solid transparent; border-radius: 6px;
}
.end-fields :is(input,textarea)::placeholder { color: #625660; opacity: 1; }
.end-fields label:last-child { margin-top: 18px; }
.end-fields textarea { height: 247px; resize: vertical; }
.end-form button {
  display: block; margin: 28px auto 0; width: min(219px, 100%); min-height: 45px;
  background: rgb(255 255 255 / 78%); color: #373b4d; border: 1px solid #8b8b82; border-radius: 10px;
  font: inherit; cursor: pointer;
}
.end-form button:hover { background: white; border-color: #474c45; }
.end-draft-note { font-size: 12px; line-height: 1.6; margin-top: 8px; }
.end-draft-note a { color: inherit; white-space: nowrap; }
.end-form > img { width: 174px; height: auto; margin: 18px auto 0; }
.end-support { text-align: center; padding: 16px 0 0; }
.end-direct {
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: 30px;
  font-size: 19px; line-height: 1.7;
}
.end-direct a { color: inherit; text-decoration: none; }
.end-support-heading {
  width: min(100%, 320px); height: 180px; margin: 42px auto -7px; position: relative;
  display: grid; place-items: center;
}
.end-support-heading img { position: absolute; width: 181px; height: 180px; left: 0; top: 0; object-fit: contain; }
.end-support-heading h2 { position: relative; font-size: 28px; line-height: 1.4; }
.end-support-links {
  width: min(700px, calc(100% - 30px)); margin: 0 auto; padding-right: 27px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 47px 17px;
}
.end-support-links a {
  display: grid; place-items: center; min-height: 94px; text-decoration: none; text-align: center;
  font-size: 21px; line-height: 1.4; padding: 10px; border-radius: 20px; color: #414141;
  background-position: center; background-repeat: no-repeat;
}
.end-support-links a:nth-child(1) { background-color: #ffce76; background-image: url('assets/replica/end-donate.jpg'); background-size: 153% auto; }
.end-support-links a:nth-child(2) { background-color: #e3f978; background-image: url('assets/replica/end-sns.png'); background-size: 179% auto; }
.end-support-links a:nth-child(3) { background-color: #f7c2f2; background-image: url('assets/replica/end-cheer.png'); background-size: 196% auto; }
.end-support-links a:nth-child(4) { background-color: #f9caca; background-image: url('assets/replica/end-press.png'); background-size: 169% auto; }
.end-signature { width: 280px; height: auto; margin: 35px auto 0; }
@media (max-width: 720px) {
  .end-institutions { grid-template-columns: 1fr; gap: 20px; padding: 10px 0 20px; }
  .end-institution { grid-template-columns: 1fr; min-height: 0; }
  .end-institution picture { aspect-ratio: 8 / 5; }
  .end-institution-copy { padding: 6px 12px 18px; }
  .end-institution h2 { font-size: 21px; }
  .end-institution-detail { display: grid; grid-template-columns: 1fr 1.05fr; gap: 8px; align-items: center; padding: 1px 0 0; font-size: clamp(11px, 3.2vw, 14px); }
  #schools .end-institution-detail { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 3% 0; }
  .end-pills { gap: 8px; margin: 0; align-items: stretch; }
  #welfare .end-pills { align-items: stretch; }
  .end-pills a { width: 100%; min-height: 42px; }
  #schools .end-pills { margin-left: auto; }
  #schools .end-pills a { min-height: 42px; width: 140px; }
  .end-contact { padding: 8px 12px; }
  .end-form { padding: 10px clamp(12px, 5vw, 24px) 14px; }
  .end-form h2 { font-size: 23px; }
  .end-form > p:first-of-type { font-size: 14px; }
  .end-fields { gap: 10px; margin-top: 17px; }
  .end-fields input, .end-fields textarea { min-height: 44px; font-size: 16px; }
  .end-fields textarea { height: 100px; }
  .end-fields label:last-child { margin: 0; }
  .end-form button { margin-top: 12px; width: auto; padding-inline: 15px; }
  .end-form > img { width: 84px; margin-top: 12px; }
  .end-direct { flex-direction: column; gap: 2px; font-size: 15px; }
  .end-support-heading { width: 182px; height: 84px; margin: 22px auto 12px; }
  .end-support-heading img { width: 84px; height: 84px; }
  .end-support-heading h2 { font-size: 22px; padding-left: 20px; }
  .end-support-links { width: min(100% - 24px, 480px); padding: 0; gap: 16px 9px; }
  .end-support-links a { min-height: 46px; padding: 6px; border-radius: 12px; font-size: clamp(14px, 3.7vw, 18px); }
  .end-signature { width: 110px; margin: 25px auto 0; }
}
