* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef2ed;
  color: #222;
  font-family: Meiryo, "メイリオ", sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-page {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 16px 14px 28px;
  background: #ffffff;
}

.top-title {
  margin-bottom: 20px;
  padding: 10px 16px;
  background: #f0f0f0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.hero-card,
.info-card,
.link-card,
.step-box,
.contact-box {
  border: 1px solid #3a7d5a;
  background: #fff;
}

.hero-card {
  margin-bottom: 18px;
}

.hero-header,
.section-header {
  padding: 10px 14px;
  background: #3a7d5a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hero-body,
.info-body,
.contact-body {
  padding: 16px;
}

.hero-lead {
  margin: 0 0 14px;
  font-size: 12px;
}

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

.summary-box {
  border: 1px solid #ff4b73;
  padding: 12px 14px 14px;
}

.summary-box h2 {
  margin: -20px 0 10px;
  display: inline-block;
  padding: 0 6px;
  background: #fff;
  color: #ff1a4e;
  font-size: 12px;
}

.summary-box p {
  margin: 0;
  text-align: center;
  font-size: 14px;
}

.summary-box strong {
  font-size: 18px;
}

.info-body {
  text-align: center;
  font-size: 12px;
}

.info-date {
  margin: 0 0 8px;
  text-align: right;
  color: #0086ef;
  font-size: 16px;
  font-weight: 700;
}

.blue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 168px;
  margin-top: 10px;
  padding: 8px 14px;
  background: #3a7d5a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.button-icon {
  flex: 0 0 auto;
}

.blue-button.secondary {
  margin-left: 8px;
}

.blue-button:hover {
  background: #2d6b4a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.teal-button {
  background: #3a7d5a;
}

.teal-button:hover {
  background: #2d6b4a;
}

.deadline {
  margin: 14px 0 4px;
  font-size: 14px;
}

.note,
.intro-text {
  margin: 10px 0;
  font-size: 12px;
}

.intro-period {
  margin: 8px 0;
  font-size: 16px;
}

.marker-highlight {
  color: #1a4a8e;
  font-weight: 700;
  background: linear-gradient(transparent 50%, #fff29a 50%);
  padding: 0 4px;
  white-space: nowrap;
}

.link-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0 24px;
}

.link-card {
  display: flex;
  align-items: stretch;
}

.section-header {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
}

.link-body {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  font-size: 12px;
  flex: 1;
  text-align: left;
}

.link-body p {
  margin: 0;
  flex: 1;
  min-height: unset;
}

.important-text {
  color: #cc2244;
}

.link-body .blue-button {
  flex: 0 0 auto;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
}

.closed {
  color: #f33;
  font-weight: 700;
}

.steps-title,
.contact-title {
  margin: 22px 0 14px;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.step-box {
  padding: 18px 20px;
  border-color: #c0dac8;
  border-width: 2px;
}

.step-box h3 {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #bbb;
  font-size: 14px;
  font-weight: 400;
}

.step-box p {
  margin: 0;
  font-size: 12px;
}

.step-box p + p {
  margin-top: 8px;
}

.step-important {
  color: #cc2244;
  font-weight: 700;
}

.step-link {
  color: #3a7d5a;
  text-decoration: underline;
}

.step-warning {
  color: #cc2244;
}

.strong-warning {
  font-weight: 700;
}

.step-arrow {
  margin: 6px 0 8px;
  text-align: center;
  color: #3a7d5a;
  font-size: 26px;
  line-height: 1;
}

.contact-box {
  border-color: #a0390a;
}

.contact-header {
  padding: 10px 14px;
  background: #a0390a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.contact-body {
  font-size: 12px;
}

.contact-body p {
  margin: 0 0 6px;
}

.org {
  font-weight: 700;
}

.contact-phone {
  margin: 10px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.contact-phone strong {
  font-size: 24px;
}

.contact-phone span {
  font-size: 14px;
  font-weight: 400;
}

@media (max-width: 760px) {
  .app-page {
    padding: 10px 10px 20px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    flex-direction: column;
  }

  .section-header {
    flex: unset;
    width: 100%;
  }

  .link-body {
    flex-direction: column;
    text-align: center;
  }

  .blue-button.secondary {
    margin-left: 0;
  }

  .contact-phone strong {
    font-size: 20px;
  }
}
