@charset "UTF-8";

:root {
  --text: #222;
  --muted: #555;
  --line: #8b8b8b;
  --content-width: 1040px;
  --message-width: 820px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: #fff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: calc(100% - 48px);
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.page-header {
  padding: 20px 24px 30px;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.hero {
  width: 100%;
}

.hero img {
  width: 100%;
  height: auto;
}

.message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 36px;
  align-items: center;
  max-width: var(--message-width);
  padding-top: 46px;
  padding-bottom: 34px;
}

.message-text {
  min-width: 0;
  font-size: 1.05rem;
}

.message-text p {
  margin: 0;
}

.message-text .signature {
  margin-top: 20px;
  text-align: right;
  font-weight: 500;
}

.portrait {
  width: 170px;
  max-width: 100%;
  aspect-ratio: 237 / 252;
  object-fit: cover;
}

.divider {
  margin-top: 8px;
  margin-bottom: 48px;
  border-top: 1px solid var(--line);
}

.appeal {
  padding-bottom: 52px;
}

.appeal h2 {
  margin: 0 0 34px;
  text-align: center;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.appeal h2 span {
  display: block;
}

.body-copy {
  color: #333;
  font-size: 1rem;
  overflow-wrap: break-word;
}

.body-copy p {
  margin: 0 0 28px;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 34px 0 0;
  color: var(--muted);
  font-style: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.contact a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 42px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 78px;
  padding: 16px 30px;
  border: 1px solid #333;
  background: #fff;
  font-size: clamp(1.25rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.download-button:hover,
.download-button:focus-visible {
  background: #222;
  color: #fff;
}

.signature-note {
  width: 100%;
  max-width: 760px;
  color: #333;
  font-size: 0.98rem;
  line-height: 1.8;
}

.signature-note > p {
  margin: 0 0 16px;
}

.mailing-address {
  padding: 16px 18px;
  background: #f7f7f7;
}

.mailing-address p {
  margin: 0;
}

.mailing-label {
  margin-bottom: 4px !important;
  font-weight: 700;
}

.mobile-break {
  display: none;
}

.home-link {
  margin-top: 2px;
  font-size: 1.12rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.home-link:hover,
.home-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  body {
    line-height: 1.8;
  }

  .container {
    width: calc(100% - 32px);
  }

  .page-header {
    padding: 16px 16px 22px;
  }

  .page-header h1 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .message {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 18px;
    align-items: start;
    padding-top: 30px;
    padding-bottom: 26px;
  }

  .message-text {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .message-text .signature {
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: left;
  }

  .portrait {
    width: 112px;
  }

  .divider {
    margin-top: 4px;
    margin-bottom: 32px;
  }

  .appeal h2 {
    margin-bottom: 26px;
    font-size: clamp(1.18rem, 5.2vw, 1.45rem);
    line-height: 1.65;
  }

  .appeal h2 span {
    display: inline;
  }

  .appeal h2 span + span::before {
    content: " ";
  }

  .body-copy {
    font-size: 0.95rem;
  }

  .body-copy p {
    margin-bottom: 24px;
  }

  .contact {
    gap: 4px;
    margin-top: 28px;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .actions {
    gap: 20px;
    margin-top: 32px;
  }

  .download-button {
    width: 100%;
    min-height: 64px;
    padding: 13px 14px;
    font-size: clamp(1.08rem, 5.4vw, 1.35rem);
  }

  .signature-note {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .mailing-address {
    padding: 14px;
  }

  .mobile-break {
    display: inline;
  }

  .home-link {
    font-size: 1rem;
  }
}

@media (max-width: 460px) {
  .container {
    width: calc(100% - 28px);
  }

  .page-header h1 {
    font-size: 1.7rem;
  }

  .message {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portrait {
    width: 128px;
    justify-self: center;
  }

  .message-text .signature {
    text-align: right;
  }

  .appeal h2 {
    font-size: 1.16rem;
  }

  .body-copy,
  .message-text {
    font-size: 0.92rem;
  }

  .contact span {
    display: block;
  }
}
