:root {
    --bg: #faf7f2;
    --card: #ffffff;
    --ink: #2b2622;
    --muted: #6f655c;
    --line: #e7dfd4;
    --accent: #b5654a;
    --accent-soft: #f4e6df;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #1d1a17; --card: #26221e; --ink: #f1ebe3; --muted: #b3a89c;
      --line: #3a342e; --accent: #e08f72; --accent-soft: #3a2a23;
    }
  }
  :root[data-theme="dark"] {
    --bg: #1d1a17; --card: #26221e; --ink: #f1ebe3; --muted: #b3a89c;
    --line: #3a342e; --accent: #e08f72; --accent-soft: #3a2a23;
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
    font-size: 17px; line-height: 1.9;
  }
  main { max-width: 520px; margin: 0 auto; padding: 56px 16px 72px; }
  .photos { display: flex; justify-content: center; gap: 24px; margin: 0 0 28px; }
  .photos figure { margin: 0; text-align: center; }
  .photos img {
    width: 156px; height: 156px; border-radius: 50%; object-fit: cover; display: block;
    border: 4px solid var(--card); box-shadow: 0 2px 12px rgba(60, 40, 20, .12);
  }
  .photos figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; letter-spacing: .1em; }
  .photos figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
  .photos figcaption b { display: block; font-size: 16px; color: var(--ink); font-weight: 500; }
  .map { margin: 40px -16px 0; }
  .map svg { width: 100%; height: auto; display: block; }
  .map .land { fill: var(--line); }
  .map .mali { fill: #c98a3a; }
  .map .japan { fill: #c9524a; }
  .map .canada { fill: var(--accent-soft); }
  .map .arc { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 4 5; }
  .map .pin { fill: var(--accent); stroke: var(--card); stroke-width: 2.5; }
  .map .pin-ring, .map .pin-tail { fill: var(--card); filter: drop-shadow(0 2px 4px rgba(60, 40, 20, .25)); }
  .legend { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 14px; color: var(--muted); }
  .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
  .dot.mali { background: #c98a3a; } .dot.japan { background: #c9524a; } .dot.home { background: var(--accent); }
  .map-wrap { position: relative; }
  .map h2 { margin-top: 0; }
  .map-lead { text-align: center; color: var(--muted); font-size: 16px; margin: 0 16px 20px; }
  .map .pin-name { font-size: 30px; font-weight: 500; fill: var(--ink); text-anchor: middle; }
  .toto-float {
    position: absolute; width: 56px; margin: 10px 0 0 -44px; z-index: 1; text-align: center;
    animation: float 4.5s ease-in-out infinite;
  }
  .toto-name { display: block; font-size: 13px; font-weight: 500; line-height: 1.4; margin-top: 2px; }
  .toto-float img {
    display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--card); box-shadow: 0 6px 14px rgba(60, 40, 20, .18);
  }
  @keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
  }
  .card.has-toto { position: relative; }
  .toto-sit {
    position: absolute; right: 18px; top: -66px; width: 70px;
    filter: drop-shadow(0 3px 4px rgba(60, 40, 20, .15));
  }
  .toto-pop { width: 110px; display: block; margin: 0 auto 8px; animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes pop {
    from { transform: translateY(30px) scale(.4); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .toto-float, .toto-pop { animation: none; }
  }
  .timeline { list-style: none; margin: 28px 16px 0; padding: 0; position: relative; }
  .timeline::before {
    content: ""; position: absolute; left: 5px; top: 10px; bottom: 34px;
    width: 0; border-left: 2px dotted var(--accent); opacity: .45;
  }
  .timeline li { position: relative; padding: 0 0 28px 30px; }
  .timeline li::before {
    content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--accent);
  }
  .timeline .year {
    display: inline-block; font-family: "Zen Old Mincho", serif; font-weight: 700;
    font-size: 14px; color: var(--accent); background: var(--accent-soft); border-radius: 999px;
    padding: 0 12px; line-height: 1.8; margin-bottom: 6px;
  }
  .timeline p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
  .timeline p b { display: block; font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.6; margin-bottom: 2px; }
  .timeline li > div p + p { margin-top: 12px; }
  .timeline-note { text-align: center; color: var(--muted); font-size: 15px; margin: 12px 16px 0; }
  .future-title {
    font-family: "Zen Old Mincho", serif; font-size: 23px; font-weight: 700; color: var(--ink);
    text-align: center; margin: 16px 0 0;
  }
  .future { margin: 24px 16px 0; }
  .future p { margin: 12px 0 0; font-size: 16px; line-height: 1.9; }
  .value small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-right: 4px; }
  .abroad { margin-top: 28px; }
  .abroad summary {
    cursor: pointer; text-align: center; color: var(--muted); font-size: 15px; list-style: none; padding: 8px 0;
  }
  .abroad summary::-webkit-details-marker { display: none; }
  .abroad summary::after { content: " ＋"; color: var(--accent); }
  .abroad[open] summary::after { content: " －"; }
  .abroad .card { margin-top: 12px; }
  .names {
    font-family: "Zen Old Mincho", serif; font-weight: 700;
    font-size: 34px; letter-spacing: .08em; text-align: center; margin: 0;
  }
  .names span { color: var(--accent); font-weight: 500; margin: 0 .4em; }
  .date { text-align: center; color: var(--muted); font-size: 15px; letter-spacing: .1em; margin: 8px 0 40px; }
  .greeting p { margin: 0 0 1.2em; }
  h2 {
    font-family: "Zen Old Mincho", serif; font-size: 27px; font-weight: 700; letter-spacing: .04em;
    margin: 48px 0 16px; text-align: center;
  }
  h3 { font-size: 17px; font-weight: 500; color: var(--muted); text-align: center; margin: 32px 0 12px; }
  .card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 16px; padding: 24px 20px;
  }
  .row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--line);
  }
  .row:last-of-type { border-bottom: none; }
  .label { color: var(--muted); font-size: 15px; white-space: nowrap; }
  .value { font-weight: 500; text-align: right; }
  .value.big { font-size: 20px; letter-spacing: .06em; }
  button {
    font: inherit; cursor: pointer; border-radius: 999px;
    border: 1px solid var(--accent); background: transparent; color: var(--accent);
    padding: 4px 14px; font-size: 14px; margin-left: 8px;
  }
  button:disabled { opacity: .6; }
  .card-text { margin: 0; }
  .jump { margin-top: 28px; }
  button.primary.outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); margin-top: 24px; }
  #send h2 { margin-top: 40px; }
  a.primary { text-decoration: none; text-align: center; border-radius: 999px; box-sizing: border-box; }
  button.primary, a.primary {
    display: block; width: 100%; margin: 20px 0 0; padding: 14px;
    background: var(--accent); color: #fff; font-size: 17px; font-weight: 500;
  }
  .note { font-size: 15px; color: var(--muted); margin: 16px 0 0; }
  form label { display: block; font-size: 15px; color: var(--muted); margin: 16px 0 6px; }
  form label:first-child { margin-top: 0; }
  input, textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--bg);
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  }
  textarea { min-height: 120px; resize: vertical; }
  .field-note { font-size: 14px; color: var(--muted); margin: 6px 0 0; line-height: 1.6; }
  .thanks { text-align: center; display: none; }
  .thanks.show { display: block; }
  footer { text-align: center; color: var(--muted); font-size: 14px; margin-top: 56px; }
  .toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
    background: var(--ink); color: var(--bg); padding: 8px 18px; border-radius: 999px;
    font-size: 15px; opacity: 0; transition: opacity .2s; pointer-events: none;
  }
  .toast.show { opacity: 1; }
.gift-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 28px 0 0; padding: 20px; border-radius: 18px; text-decoration: none;
  background: var(--accent); color: #fff; font-size: 19px; font-weight: 500;
  box-shadow: 0 6px 18px rgba(120, 60, 40, .22);
}
.gift-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back { display: inline-block; color: var(--muted); font-size: 15px; text-decoration: none; margin-bottom: 24px; }
.page-title { font-family: "Zen Old Mincho", serif; font-size: 30px; text-align: center; margin: 0; }
.page-lead { text-align: center; color: var(--muted); margin: 8px 0 8px; }
.section-lead { text-align: center; color: var(--muted); font-size: 15px; line-height: 1.9; margin: -4px 0 72px; }
.gift-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.4; }
.gift-label small { font-size: 13px; font-weight: 400; opacity: .85; margin-top: 2px; }
.card.pay { margin-top: 20px; }
.pay-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pay-head b { display: block; font-size: 18px; font-weight: 500; }
.pay-head small { display: block; font-size: 14px; color: var(--muted); }
.pay-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent);
}
.pay-icon svg, .ext { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acct {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px;
  background: var(--bg); border-radius: 12px; padding: 14px 16px; margin: 18px 0 6px;
}
.acct-label { grid-column: 1; font-size: 14px; color: var(--muted); }
.acct-num { grid-column: 1; font-size: 28px; font-weight: 500; letter-spacing: .08em; line-height: 1.3; }
.acct button { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.card.pay button.primary.outline { margin-top: 18px; }
.brands { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brands li { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }
a.primary { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ext { width: 18px; height: 18px; stroke-width: 2; }
.card.pay .note { text-align: center; font-size: 14px; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0;
  padding: 18px 8px; border-radius: 16px; font-size: 16px; font-weight: 500;
  background: var(--card); color: var(--muted); border: 1.5px solid var(--line);
}
.tile svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile[aria-selected="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.choose + .card.pay, .choose ~ .card.pay { margin-top: 16px; }
button.copied { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero { text-align: center; }
.eyebrow {
  font-family: "Zen Old Mincho", serif; font-size: 14px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 24px;
}
.pair { display: flex; justify-content: center; align-items: center; position: relative; margin-bottom: 28px; }
.pair img {
  width: 148px; height: 148px; border-radius: 50%; object-fit: cover;
  border: 5px solid var(--card); box-shadow: 0 6px 20px rgba(60, 40, 20, .14);
}
.pair img + .heart + img { margin-left: -18px; }
.pair img:first-child { position: relative; z-index: 1; }
.heart {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: var(--card);
  display: grid; place-items: center; box-shadow: 0 3px 10px rgba(60, 40, 20, .15);
}
.heart svg { width: 20px; height: 20px; fill: var(--accent); }
h1.names { margin: 0; }
.hero .date { margin: 10px 0 0; }
.divider { width: 48px; height: 0; margin: 44px auto; border-top: 2px dotted var(--accent); opacity: .5; }
.contact { font-size: 13px; } .contact a { color: var(--muted); }
.thanks-heart { width: 64px; height: 64px; fill: var(--accent); display: block; margin: 4px auto 12px; animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@media (prefers-reduced-motion: reduce) { .thanks-heart { animation: none; } }
.script { font-family: "Great Vibes", cursive; font-weight: 400; }
.fancy { text-align: center; margin: 48px 0 20px; line-height: 1; }
.fancy .script { display: block; font-size: 52px; color: var(--accent); letter-spacing: 0; }
.fancy .jp {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 10px;
  font-family: "Zen Old Mincho", serif; font-size: 15px; font-weight: 500; letter-spacing: .2em; color: var(--ink);
}
.fancy .jp::before, .fancy .jp::after { content: ""; width: 28px; border-top: 1px solid var(--accent); opacity: .6; }
h3.fancy { margin-top: 40px; }
h3.fancy .script { font-size: 44px; }
.eyebrow.script { font-size: 34px; letter-spacing: 0; text-transform: none; margin-bottom: 16px; }
.names span { font-family: "Great Vibes", cursive; font-weight: 400; font-size: 1.25em; }
.lang { display: flex; justify-content: flex-end; gap: 6px; margin: -32px 0 16px; }
.lang button {
  margin: 0; padding: 2px 8px; font-size: 20px; line-height: 1.4; border-radius: 999px;
  background: transparent; border: 1.5px solid transparent; opacity: .55;
}
.lang button[aria-pressed="true"] { opacity: 1; border-color: var(--accent); background: var(--card); }
.acct-email { grid-template-columns: 1fr; }
.acct-num.email { font-size: 19px; letter-spacing: 0; white-space: nowrap; }
.acct-email button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
.interac-to { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.acct-email + .acct-email { margin-top: 10px; }
.pay .interac-to + .acct { margin-top: 8px; }
.value .sub { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.row .value { text-align: right; }
