/* The site's own pages — 使い方, 利用規約, プライバシーポリシー, アカウント削除
   (ja and en) and お問い合わせ — in the LP's look (the owner, 2026-10-23: their
   header and design were old). The LP's header and footer, a watercolour day
   across the top with Poji, and the words on a sheet of paper in the LP's
   type. The LP itself is landing.css; invite.html and the old home keep
   styles.css. M PLUS Rounded 1c (SIL OFL 1.1), cut down to these pages'
   characters (tools/marketing/subset_lp_font.sh); Regular and Medium only. */
@font-face { font-family: "Pojipo Rounded"; src: url("/assets/fonts/mplus-rounded-1c-400.pages.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pojipo Rounded"; src: url("/assets/fonts/mplus-rounded-1c-500.pages.woff") format("woff"); font-weight: 500; font-display: swap; }
:root {
  --paper: #f8f3e4;
  --sheet: rgba(255, 254, 250, .95);
  --gold-ink: #8a5c00;
  --gold: #e9b44c;
  --butter: #fff3d1;
  --ink: #4a4237;
  --text: #3f382e;
  --text-soft: #5f5648;
  --line: rgba(91, 84, 72, .14);
  --haze-day: rgba(255, 250, 238, .8);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); background: var(--paper);
  font-family: "Pojipo Rounded", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  line-height: 1.9; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
p, li, small, summary { text-wrap: pretty; }
@supports (word-break: auto-phrase) { p, li, summary, small, h3 { word-break: auto-phrase; } }
h1, h2 { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.hidden { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; transform: translateY(-160%); background: #fff; padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { transform: none; }

/* ---------- The header, as on the LP ---------- */
.site-header { width: min(1200px, calc(100% - 40px)); height: 78px; margin: 0 auto; display: flex; align-items: center; gap: 34px; position: relative; z-index: 20; }
.wordmark { display: block; line-height: 0; }
.wordmark img { height: 44px; width: auto; display: block; }
.header-nav { display: flex; gap: 28px; margin-left: auto; }
.header-nav a { text-decoration: none; font-size: 14px; font-weight: 700; color: #7a7062; }
.header-nav a:hover { color: var(--gold-ink); }
.lang-switch { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; min-width: 44px; height: 34px; padding: 0 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .72); color: var(--ink); font-size: 12px; font-weight: 800; }

/* ---------- The page's own header: the LP's watercolour day ----------
   The words in the paper sky over a soft haze, the day's landscape below
   them, Poji on its right. */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(36px, 4.6vw, 64px) 20px calc(clamp(170px, 17vw, 250px) + 50px);
  text-align: center;
  background: var(--paper) url("/assets/lp/moments-bg-pc.webp") center bottom / max(100%, 1500px) auto no-repeat;
}
.page-hero-copy { position: relative; max-width: 760px; margin: 0 auto; }
.page-hero-copy::before {
  content: ""; position: absolute; z-index: -1; inset: -40px -64px; border-radius: 90px;
  background: var(--haze-day); filter: blur(34px); pointer-events: none;
}
.page-hero h1 { margin: 0 0 14px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.3; letter-spacing: -.02em; color: var(--ink); font-weight: 800; }
.page-hero p { margin: 0 auto; max-width: 34em; color: var(--text); font-weight: 500; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.95; }
.page-hero-poji {
  position: absolute; z-index: 1; right: max(5vw, calc(50% - 600px)); bottom: clamp(56px, 6vw, 96px);
  width: clamp(120px, 13vw, 190px); height: auto; filter: drop-shadow(0 14px 22px rgba(87, 65, 27, .22));
}
.page-privacy .page-hero-poji { width: clamp(170px, 18vw, 270px); bottom: clamp(44px, 5vw, 80px); }

/* ---------- The sheet of paper ---------- */
.page { position: relative; z-index: 2; width: min(880px, calc(100% - 40px)); margin: -56px auto 0; }
.card {
  position: relative; margin: 0 0 26px; padding: clamp(26px, 5vw, 56px);
  background: var(--sheet); border: 1px solid rgba(255, 255, 255, .85); border-radius: 26px;
  box-shadow: 0 26px 64px rgba(120, 90, 40, .1), inset 0 0 0 1px rgba(214, 180, 110, .2);
}
.card h2 { margin: 0; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.45; letter-spacing: -.01em; color: var(--ink); font-weight: 800; }
.card h3 { color: var(--ink); }
.card p, .card li { font-size: 16px; }
.card ul, .card ol { padding-left: 1.4em; margin: 10px 0 16px; }
.card li { margin: 7px 0; }
.card li::marker { color: #d9a531; }
.card ol > li::marker { color: var(--gold-ink); font-weight: 700; }
.card strong { color: var(--ink); }
.lead { margin: 0 0 26px; font-size: 17px; font-weight: 500; color: var(--text); line-height: 1.95; }
.card-head, .doc-head .title { display: flex; align-items: center; gap: 14px; }
.card-head { margin-bottom: 18px; }
.doc-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 22px; }
.doc-head .updated { color: var(--text-soft); font-size: 13px; white-space: nowrap; }
/* The small mark by a heading: one of the LP's 3D things (drawn by Codex). */
.card-head .ic, .doc-head .ic {
  width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center;
  border-radius: 50%; background: center / contain no-repeat;
}
.card-head .ic svg, .doc-head .ic svg { display: none; }
.card-head .ic img, .doc-head .ic img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- 大切にしていること ---------- */
.values-card { background: linear-gradient(160deg, rgba(255, 252, 240, .97), rgba(255, 246, 222, .95)); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value .badge { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; background: none; }
.value .badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.value h3 { margin: 4px 0 4px; font-size: 17px; line-height: 1.5; font-weight: 800; }
.value p { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.8; }

/* ---------- The documents: numbered sections that open, as the LP's FAQ ---------- */
details.sec { border-top: 1px solid var(--line); }
details.sec:last-of-type { border-bottom: 1px solid var(--line); }
summary.sec-h {
  position: relative; list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 14px;
  padding: 19px 4px; font-size: 17px; font-weight: 700; line-height: 1.6; color: var(--ink);
}
summary.sec-h::-webkit-details-marker { display: none; }
summary.sec-h > span[id]:empty { position: absolute; left: 0; top: 0; } /* (old ids kept as link targets: out of the row, still scrolled to) */
summary.sec-h:hover { color: var(--gold-ink); }
summary.sec-h .num { min-width: 1.7em; color: var(--gold-ink); font-weight: 800; }
summary.sec-h .chev {
  margin-left: auto; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(245, 214, 140, .45); color: var(--gold-ink); transition: transform .22s ease;
}
summary.sec-h .chev svg { width: 16px; height: 16px; stroke: currentColor; }
details.sec[open] summary.sec-h .chev { transform: rotate(180deg); }
.sec-body { padding: 0 4px 22px calc(1.7em + 18px); }
.sec-body p { margin: 0 0 12px; line-height: 1.95; }
.sec-body li { line-height: 1.85; }

/* ---------- 使い方 ---------- */
.help, .help [id] { scroll-margin-top: 20px; }
.card .help-toc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.help-toc li { margin: 0; }
.help-toc a {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px 14px 12px 12px;
  border-radius: 16px; background: #fffaf0; border: 1px solid rgba(214, 180, 110, .28);
  color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.45; text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.help-toc a::before { content: ""; flex: 0 0 36px; height: 36px; background: center / contain no-repeat; }
.help-toc a:hover { background: var(--butter); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(150, 110, 40, .1); }
.help-toc .num { display: none; }
.help-toc li:nth-child(1) a::before, #start .card-head .ic { background-image: url("/assets/lp/ic-sprout.webp"); }
.help-toc li:nth-child(2) a::before, #companion .card-head .ic { background-image: url("/assets/lp/ic-sun.webp"); }
.help-toc li:nth-child(3) a::before, #write .card-head .ic { background-image: url("/assets/lp/ic-pencil.webp"); }
.help-toc li:nth-child(4) a::before, #everyone .card-head .ic { background-image: url("/assets/lp/ic-globe.webp"); }
.help-toc li:nth-child(5) a::before, #reflect .card-head .ic { background-image: url("/assets/lp/ic-garden.webp"); }
.help-toc li:nth-child(6) a::before, #me .card-head .ic { background-image: url("/assets/lp/ic-diary.webp"); }
.help-toc li:nth-child(7) a::before, #settings .card-head .ic { background-image: url("/assets/lp/ic-gear.webp"); }
.help-toc li:nth-child(8) a::before, #faq .card-head .ic { background-image: url("/assets/lp/ic-bulb.webp"); }
.help-toc li:nth-child(9) a::before, #contact .card-head .ic { background-image: url("/assets/lp/ic-letter.webp"); }
#toc .doc-head .ic, main:has(.page-terms) .doc-head .ic { background-image: url("/assets/lp/ic-document.webp"); }
main:has(.page-privacy) .doc-head .ic { background-image: url("/assets/lp/ic-lock.webp"); }
.help .lead { margin-bottom: 14px; }
.help h3 {
  display: flex; align-items: center; gap: 12px; margin: 34px -12px 10px; padding: 4px 12px; border-radius: 12px;
  font-size: 19px; font-weight: 800; line-height: 1.5; transition: background .3s;
}
.help h3::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(255, 214, 107, .25); }
.help h3:target, .help h3:has(> span:target) { background: rgba(255, 214, 107, .25); } /* (an old id kept inside) */
.help h3 > span[id] { align-self: flex-start; scroll-margin-top: 24px; } /* lands where the h3's own id would */
.help p { margin: 0 0 12px; }
.help .note { margin: 12px 0 16px; padding: 14px 18px; border-radius: 16px; background: #fff6df; color: var(--text-soft); font-size: 15px; line-height: 1.85; }
.help .to-toc { margin: 22px 0 0; text-align: right; font-size: 14px; }
.help .to-toc a { color: var(--text-soft); text-decoration: none; }
.help .to-toc a:hover { color: var(--gold-ink); }
.help details.sec .sec-body { padding-left: 4px; }
/* The app's own screens beside the steps: no wider than a phone each. */
.help .shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; max-width: 640px; margin: 12px 0 22px; }
.help .shots figure { margin: 0; }
.help .shots img { display: block; width: 100%; height: auto; border-radius: 20px; border: 4px solid #fff; background: #fff; box-shadow: 0 12px 28px rgba(74, 63, 48, .12); }
.help .shots figcaption { margin-top: 8px; color: var(--text-soft); font-size: 13.5px; line-height: 1.5; text-align: center; }

/* ---------- The closing words ----------
   A painted spring morning by the lake (the LP's), the words on its misty
   left, Poji peeking in from the right and waving. */
.closing {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: 230px; margin: 0 0 26px; padding: clamp(30px, 4vw, 44px) 38% clamp(30px, 4vw, 44px) clamp(28px, 5vw, 56px);
  border-radius: 26px; box-shadow: 0 22px 54px rgba(120, 90, 40, .12), inset 0 0 0 1px rgba(255, 255, 255, .7);
  background:
    linear-gradient(90deg, rgba(255, 251, 240, .96) 0%, rgba(255, 251, 240, .9) 46%, rgba(255, 251, 240, 0) 74%),
    #f6efe1 url("/assets/lp/features-bg-pc.webp") 70% 62% / cover no-repeat;
}
.closing-poji {
  position: absolute; z-index: 1; right: 6%; bottom: -8px; width: clamp(120px, 17%, 150px); height: auto;
  filter: drop-shadow(0 14px 20px rgba(87, 65, 27, .22));
}
.closing h3 { margin: 0 0 8px; color: var(--ink); font-size: clamp(20px, 2.2vw, 24px); font-weight: 800; line-height: 1.5; }
.closing p { margin: 0; color: var(--text); font-weight: 500; font-size: 16px; line-height: 1.9; }

/* ---------- アカウント削除 ---------- */
.doc-simple h2 { margin: 34px 0 10px; font-size: 21px; }
.doc-simple h2:first-of-type { margin-top: 8px; }
.doc-simple p:not(.lead) { margin: 0 0 14px; line-height: 1.9; }
.doc-simple .steps { margin: 10px 0 16px; padding-left: 1.5em; }
.doc-simple .steps li { margin: 8px 0; line-height: 1.8; }

/* ---------- お問い合わせ ---------- */
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 15px; font-weight: 700; }
.field label .req { margin-left: 4px; color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1px solid rgba(91, 84, 72, .2); border-radius: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 214, 107, .32); }
.field-note { margin: 12px 2px 0; padding: 12px 16px; border-radius: 14px; background: #fff6df; color: var(--text-soft); font-size: 14.5px; line-height: 1.8; }
.reply-note { margin: 8px 0 24px; padding: 16px 18px; border-radius: 16px; background: rgba(214, 236, 196, .4); }
.reply-note strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }
.reply-note p { margin: 0; color: var(--text-soft); font-size: 14.5px; line-height: 1.85; }
.btn-submit {
  width: 100%; padding: 17px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 800; color: #4a3f30;
  background: linear-gradient(180deg, #ffdf86, #f6c654); box-shadow: 0 10px 22px rgba(214, 160, 40, .28), inset 0 -2px 0 rgba(160, 110, 10, .15);
  transition: filter .15s, transform .15s;
}
.btn-submit:hover { filter: brightness(1.03); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .6; cursor: default; transform: none; }
.form-note { margin-top: 16px; color: var(--text-soft); font-size: 14.5px; }
.form-ok { padding: 30px 8px; text-align: center; }
.form-ok .big { margin-bottom: 10px; color: var(--ink); font-size: 21px; font-weight: 800; }
.form-ok p { margin: 0; color: var(--text-soft); font-size: 15px; }
.bug-tips h2 { margin: 0 0 12px; font-size: 21px; }
.bug-tips p { margin: 0 0 12px; color: var(--text-soft); font-size: 15.5px; }
.bug-tips ul { margin: 0; color: var(--text); font-size: 15.5px; }

/* ---------- The footer, as on the LP ----------
   The page's paper fades into the footer's light, a gold line with a
   sprout, Poji waving from the flowers. */
.site-footer {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center;
  margin-top: 40px; padding: max(120px, 9.6vw) max(24px, 7.6vw) 40px; overflow: hidden; color: #4f473c;
  background: #fffcf3 url("/assets/lp/footer-bg-pc.webp") center top / 100% auto no-repeat;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 0; pointer-events: none;
  height: clamp(90px, 9vw, 150px); background: linear-gradient(var(--paper), rgba(248, 243, 228, 0));
}
.site-footer > :not(.footer-stage) { position: relative; z-index: 3; }
.footer-stage, .footer-stage > * { position: absolute; }
.footer-stage { inset: 0; z-index: 1; pointer-events: none; container-type: inline-size; }
.footer-stage img { display: block; height: auto; }
.ft-line { left: 22cqw; top: 3.2cqw; width: 56cqw; z-index: 2; }
.ft-poji { left: 84.3cqw; top: 3cqw; width: 9.8cqw; z-index: 3; filter: drop-shadow(0 10px 14px rgba(110, 90, 30, .18)); }
.ft-flowers { left: 0; top: -17cqw; width: 100cqw; z-index: 1; opacity: .9; -webkit-mask-image: linear-gradient(to bottom, transparent 51%, #000 68%); mask-image: linear-gradient(to bottom, transparent 51%, #000 68%); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.footer-brand a { line-height: 0; }
.footer-brand img { height: clamp(40px, 3.8vw, 64px); width: auto; display: block; }
.footer-brand small { font-size: clamp(13px, 1.05vw, 17px); color: #4f473c; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; margin-right: 8vw; }
.site-footer nav a { padding: 2px clamp(10px, 1.2vw, 20px); color: #4f473c; font-size: clamp(13px, .95vw, 15px); text-decoration: none; }
.site-footer nav a + a { border-left: 1px solid rgba(91, 84, 72, .22); }
.site-footer nav a:last-child { padding-right: 0; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--gold-ink); }
.site-footer > small { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: #6b6255; font-size: 12px; }

/* ---------- Narrower screens ---------- */
@media (max-width: 920px) {
  .header-nav { display: none; }
  .lang-switch { margin-left: auto; }
  .card .help-toc { grid-template-columns: 1fr 1fr; }
  .site-footer { grid-template-columns: 1fr; padding: 150px 24px 36px; background-image: url("/assets/lp/footer-bg-sp.webp"); background-size: cover; }
  .ft-line { left: 6cqw; top: 6cqw; width: 88cqw; }
  .ft-poji { left: auto; right: 4cqw; top: 8cqw; width: 22cqw; }
  .ft-flowers { left: -20cqw; top: -6cqw; width: 140cqw; -webkit-mask-image: linear-gradient(to bottom, transparent 13%, #000 32%); mask-image: linear-gradient(to bottom, transparent 13%, #000 32%); }
  .site-footer nav { justify-content: flex-start; gap: 12px 22px; margin-right: 0; }
  .site-footer nav a { padding: 2px 0; }
  .site-footer nav a + a { border-left: 0; }
}
@media (max-width: 640px) {
  .site-header { width: calc(100% - 28px); height: 66px; }
  .wordmark img { height: 36px; }
  .page-hero { padding: 30px 22px 210px; background-size: auto 250px; }
  .page-hero-copy::before { inset: -26px -18px; border-radius: 56px; filter: blur(22px); }
  .page-hero h1 { font-size: min(34px, 8.6vw); } /* (プライバシーポリシー stays on one line) */
  .page-hero p { font-size: 15.5px; }
  .page-hero-poji { right: 6%; bottom: 44px; width: 104px; }
  .page-privacy .page-hero-poji { width: 150px; bottom: 36px; }
  .page { width: calc(100% - 24px); margin-top: -40px; }
  .card { border-radius: 20px; padding: 26px 20px; }
  .card p, .card li { font-size: 15.5px; }
  .lead { font-size: 16px; }
  .values { grid-template-columns: 1fr; gap: 20px; }
  summary.sec-h { padding: 17px 2px; font-size: 16px; gap: 10px; }
  .sec-body { padding-left: 2px; padding-right: 2px; }
  .card .help-toc { grid-template-columns: 1fr; gap: 8px; }
  .help-toc a { padding: 9px 12px 9px 10px; }
  .help-toc a::before { flex-basis: 30px; height: 30px; }
  .help h3 { font-size: 18px; }
  .closing {
    display: block; min-height: 0; padding: 26px 22px 170px; text-align: left;
    background:
      linear-gradient(180deg, rgba(255, 251, 240, .97) 0%, rgba(255, 251, 240, .92) 52%, rgba(255, 251, 240, 0) 76%),
      #f6efe1 url("/assets/lp/features-bg-sp.webp") center 78% / cover no-repeat;
  }
  .closing-poji { right: 50%; translate: 50% 0; width: 118px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
