.home-page {
  min-height: 100vh;
  background: var(--md-surface-container-low);
}

.home-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.home-introduction {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.home-introduction h1 {
  max-width: 980px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.home-introduction p {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.home-notice,
.home-updates,
.home-tools {
  margin-top: 46px;
}

.home-notice {
  padding: clamp(24px, 4vw, 38px);
  border-left: 5px solid #00a9bd;
  border-radius: 0 12px 12px 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.home-notice h2,
.home-section-head h2,
.home-tools > h2 {
  margin: 0;
  font-size: 25px;
}

.home-notice > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.home-contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.home-notice > .home-legal-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.youtube-card,
.contact-form-card {
  min-width: 0;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--md-surface-container-lowest);
  color: var(--text);
  text-decoration: none;
}

.youtube-card:hover {
  border-color: #e62117;
}

.contact-form-card:hover {
  border-color: #008f67;
}

.youtube-card:focus-visible,
.contact-form-card:focus-visible {
  outline: 3px solid rgba(0, 143, 103, 0.28);
  outline-offset: 2px;
}

.youtube-mark {
  flex: 0 0 46px;
  width: 46px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e62117;
  color: #fff;
  font-size: 16px;
}

.contact-form-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #008f67;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.youtube-card > span:last-child,
.contact-form-card > span:last-child {
  min-width: 0;
}

.youtube-card strong,
.youtube-card small,
.contact-form-card strong,
.contact-form-card small {
  display: block;
}

.youtube-card small,
.contact-form-card small {
  margin-top: 4px;
  color: var(--muted);
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.update-list,
.updates-modal-list {
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
}

.update-row time {
  color: #007f91;
  font-weight: 800;
}

.update-row strong {
  font-size: 15px;
}

.update-row p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-empty-message {
  color: var(--muted);
}

.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.home-tool-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-tool-card {
  flex: 1 1 auto;
  min-height: 270px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.home-tool-card:hover {
  border-color: #00a9bd;
}

.home-tool-card h3 {
  margin: 0;
  font-size: 22px;
}

.home-tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.home-tool-card > strong {
  align-self: end;
  color: #007f91;
}

.home-tool-number {
  color: #00a9bd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.home-how-to-link {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 0 0 14px 14px;
  background: #006a60;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.home-how-to-link:hover {
  background: #005048;
}

.updates-modal {
  width: min(760px, calc(100% - 28px));
  max-height: min(80vh, 760px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.updates-modal::backdrop {
  background: rgba(0, 0, 0, 0.46);
}

.updates-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.updates-modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.updates-modal-list {
  max-height: calc(min(80vh, 760px) - 70px);
  padding: 0 20px 20px;
  overflow-y: auto;
}

.mobile-only-break {
  display: none;
}

.info-page {
  min-height: 100vh;
  background: var(--md-surface-container-low);
}

.info-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.info-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
}

.info-breadcrumb a {
  color: #007f91;
  font-weight: 800;
}

.info-hero,
.info-content section {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.info-hero > p {
  margin: 0 0 8px;
  color: #007f91;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.info-hero h1,
.info-content h2 {
  margin: 0;
}

.info-hero > div,
.info-content p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.85;
}

.info-content {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.info-content section {
  scroll-margin-top: 100px;
}

.info-back-link {
  color: #007f91;
  font-weight: 800;
}

@media (max-width: 767px) {
  .home-shell {
    width: calc(100% - 24px);
    padding: 32px 0 56px;
  }

  .info-shell {
    width: calc(100% - 24px);
  }

  .mobile-only-break {
    display: block;
  }

  .home-introduction {
    padding-bottom: 30px;
  }

  .home-introduction h1 {
    font-size: clamp(29px, 9.5vw, 40px);
  }

  .home-contact-links,
  .home-tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .home-tool-card {
    min-height: 0;
  }

  .updates-modal-head,
  .updates-modal-list {
    padding-inline: 14px;
  }
}
