@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@600;700;900&family=Roboto+Slab:wght@700&display=swap");

:root {
  --brand-ink: #16181d;
  --brand-icon: #0142ac;
  --brand-tint: #eaf0fb;
  --brand-spark: #fdad01;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--brand-ink);
  background: #ffffff;
}

a {
  color: var(--brand-icon);
}

.font-roboto-slab {
  font-family: "Roboto Slab", "Noto Serif JP", serif;
}

.font-serif {
  font-family: "Noto Serif JP", serif;
}

/* ティザーページ（index.html） */

.teaser-main {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.teaser-content {
  display: flex;
  width: 100%;
  max-width: 42rem;
  flex-direction: column;
  align-items: center;
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.masthead img {
  width: 8rem;
  height: 8rem;
}

.masthead .app-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.divider {
  margin-top: 1.5rem;
  height: 1px;
  width: 4rem;
  background: rgba(1, 66, 172, 0.3);
}

.headline {
  margin-top: 2rem;
  white-space: nowrap;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.subheadline {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.description {
  margin-top: 1rem;
  max-width: 42rem;
  white-space: pre-line;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #404040;
}

.details-link {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.release-label {
  display: block;
  margin-top: 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
}

@media (min-width: 640px) {
  .release-label {
    margin-top: 4rem;
  }
}

.release-date {
  margin-top: 1rem;
  font-family: "Noto Serif JP", serif;
  font-size: 2rem;
  font-weight: 900;
  color: #000000;
}

.footer-credit {
  margin-top: 4rem;
  font-size: 0.875rem;
  color: #525252;
}

.footer-credit a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 詳細ページ（details.html） */

.details-page {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

.details-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
}

.details-header-inner {
  margin: 0 auto;
  max-width: 42rem;
  padding: 0.75rem 1.5rem;
}

.details-header-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--brand-ink);
}

.details-header-link img {
  width: 2rem;
  height: 2rem;
}

.details-header-link .app-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.details-main {
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 42rem;
  flex-direction: column;
  padding: 3rem 1.5rem;
}

.details-main h1 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.details-lead {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #525252;
}

.details-warning {
  margin-top: 0.75rem;
  border-radius: 0.375rem;
  background: #fef2f2;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #b91c1c;
}

.toc {
  margin-top: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 1rem;
}

.toc p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.toc ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.25rem;
}

.toc a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

section {
  margin-top: 3rem;
  scroll-margin-top: 5rem;
}

section h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

section ol {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  color: #404040;
}

section ol li {
  margin-bottom: 0.25rem;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.25rem 0;
  color: #404040;
}

.fee-row .fee-amount {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--brand-ink);
}

.details-back {
  margin-top: 4rem;
  font-size: 1rem;
  color: #737373;
}

.details-back a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
