:root {
  --ink: #26312d;
  --muted: #68736f;
  --paper: #fffdf8;
  --line: #dfd8c9;
  --leaf: #536f5a;
  --sun: #e7a947;
  --water: #6a9fb5;
  --rose: #cf746b;
  --soft: #f3efe4;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(231, 169, 71, 0.18), transparent 34rem),
    linear-gradient(180deg, #fbf7ed 0%, #f4f1e8 100%);
  color: var(--ink);
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-shell,
.memo-shell,
.page-shell {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.site-header,
.memo-header,
.page-header {
  padding: 16px 2px 8px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
}

.stage {
  margin: 20px 0 8px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
}

p,
li {
  line-height: 1.75;
}

.line-context,
.secondary-message,
.candidate-card p,
.footnote p,
.intro-copy,
.page-section p,
.page-section li,
.footer-links {
  color: var(--muted);
}

.conclusion,
.checklist,
.selected-preview,
.candidate-panel,
.footnote,
.page-section,
.home-panel,
.memo-link-panel {
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(223, 216, 201, 0.92);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(47, 42, 31, 0.08);
}

.home-panel,
.page-section {
  margin: 16px 0;
  padding: 18px;
}

.intro-copy {
  margin: 14px 0 0;
}

.memo-link-panel {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 18px;
  text-decoration: none;
}

.memo-link-panel strong {
  font-size: 18px;
}

.memo-link-panel span {
  color: var(--muted);
  line-height: 1.6;
}

.small-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.conclusion {
  padding: 18px;
  margin: 16px 0;
}

.primary-message {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.secondary-message {
  margin: 0;
}

.checklist {
  padding: 12px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 12px;
}

.section-heading p,
.selected-preview p,
.candidate-label {
  margin: 0;
  font-weight: 900;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.memo-item {
  display: grid;
  grid-template-columns: 28px 58px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 10px 6px;
  border-top: 1px solid var(--line);
}

.memo-item input {
  width: 22px;
  height: 22px;
  accent-color: var(--leaf);
}

.thumb,
.candidate-card > img {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(38, 49, 45, 0.09);
}

.thumb img,
.candidate-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.item-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-topline strong {
  color: var(--ink);
  font-size: 16px;
}

.item-topline em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8efe5;
  color: var(--leaf);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.muted .item-topline em {
  background: #edf3f5;
  color: #38697a;
}

.selected-preview {
  margin: 14px 0;
  padding: 14px 16px;
}

.selected-preview strong {
  display: block;
  margin-top: 6px;
  color: var(--leaf);
  font-size: 18px;
  line-height: 1.35;
}

.primary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  box-shadow: 0 14px 24px rgba(38, 49, 45, 0.18);
}

.text-button {
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  background: var(--sun);
  color: #2d2410;
}

.candidate-panel {
  display: none;
  margin-top: 16px;
  padding: 12px;
}

.candidate-panel.is-open {
  display: grid;
  gap: 12px;
}

.outbound-notice,
.ad-notice {
  margin: 0;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.candidate-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
}

.candidate-card:first-of-type {
  border-top: 0;
}

.candidate-card p {
  margin: 4px 0 10px;
  font-size: 13px;
}

.candidate-card a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  background: #f1c665;
  color: #2d2410;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.candidate-card[data-candidate="bath"] a {
  background: #d8e9ee;
  color: #244c5a;
}

.footnote {
  margin-top: 14px;
  padding: 12px 14px;
}

.footnote summary {
  cursor: pointer;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
  font-size: 12px;
}

.footer-links a {
  color: var(--muted);
}

.placeholder {
  border-left: 4px solid var(--sun);
  padding-left: 12px;
}

@media (min-width: 700px) {
  .site-shell,
  .memo-shell,
  .page-shell {
    padding-top: 38px;
  }

  h1 {
    font-size: 38px;
  }
}
