:root {
  color-scheme: light;
  --ground: #f6f6f4;
  --ground-2: #eeeeeb;
  --panel: #e4e4e0;
  --card: #ffffff;
  --ink: #1c1d21;
  --sub: #5f6166;
  --rule: #e0e0dc;
  --field: #cfcfca;
  --sheet: #ffffff;
  --hold: #2f5d8a;
  --hold-deep: #24476a;
  --on-hold: #ffffff;
  --hero-wall: #ededea;
  --cat-blend: multiply;
  --cat-filter: none;
  --focus-ring: rgba(47, 93, 138, 0.22);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6166' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

  --display:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", system-ui, "Noto Sans JP", "Noto Sans CJK JP",
    "Yu Gothic UI", Meiryo, sans-serif;
  --body:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", system-ui, "Noto Sans JP", "Noto Sans CJK JP",
    "Yu Gothic UI", Meiryo, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --page: calc(40rem + 2 * var(--gutter));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #141415;
    --ground-2: #1a1a1b;
    --panel: #1f1f21;
    --card: #1f1f21;
    --ink: #ebecef;
    --sub: #a8a9ad;
    --rule: #2e2e31;
    --field: #3a3a3e;
    --sheet: #141415;
    --hold: #7fb0e0;
    --hold-deep: #5f93c4;
    --on-hold: #101114;
    --hero-wall: #1f1f21;
    --cat-blend: screen;
    --cat-filter: invert(1) brightness(0.86);
    --focus-ring: rgba(127, 176, 224, 0.3);
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8A9AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #141415;
  --ground-2: #1a1a1b;
  --panel: #1f1f21;
  --card: #1f1f21;
  --ink: #ebecef;
  --sub: #a8a9ad;
  --rule: #2e2e31;
  --field: #3a3a3e;
  --sheet: #141415;
  --hold: #7fb0e0;
  --hold-deep: #5f93c4;
  --on-hold: #101114;
  --hero-wall: #1f1f21;
  --cat-blend: screen;
  --cat-filter: invert(1) brightness(0.86);
  --focus-ring: rgba(127, 176, 224, 0.3);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8A9AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html,
body {
  margin: 0;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
a {
  color: inherit;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--hold);
  outline-offset: 3px;
  border-radius: 6px;
}
:is(p, li, h1, h2, h3, td, th) {
  overflow-wrap: anywhere;
  line-break: strict;
}
.nw {
  white-space: nowrap;
}
@media (max-width: 760px) {
  body {
    font-feature-settings: "palt";
    letter-spacing: 0.03em;
  }
  h1,
  h2,
  h3 {
    font-feature-settings: normal;
    letter-spacing: 0;
  }
}

body > .top,
body > main,
body > .foot {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
body > main {
  flex: 1;
}

.top {
  display: flex;
  align-items: center;
  padding-block: 20px;
}

/* web のアイコン(public/img/icon-256.jpg・icon-512.jpg)は、アプリのアイコン(mobile/assets/icon.png)と別に持つ。
   アプリ側はまだ旧案(赤)のため。#367 でアプリ側が紺の N1 に替わったら、どちらを正本にするか決めて 1 か所にまとめる */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.appicon {
  display: block;
  flex: none;
  width: clamp(64px, 6.4vw, 84px);
  height: clamp(64px, 6.4vw, 84px);
  border-radius: 22.37%;
  background: url("/img/icon-512.jpg") center / cover no-repeat;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.12);
}
/* 名前の文字はアプリのサインイン画面のロゴ(mobile/src/components/LogoText.tsx)と同じ 4 色のグラデーション。色は mobile/src/theme.ts の logoGradient */
.brand-name {
  background: linear-gradient(90deg, #2f5d8a, #6856d8, #b948c4, #e5484d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 24px 40px;
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: baseline;
  font-size: 13px;
  color: var(--sub);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.foot nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.foot nav a:hover {
  text-decoration: underline;
}
.foot nav a[aria-current="page"] {
  color: var(--sub);
}

.doc {
  padding-block: 24px 0;
}
.doc h1 {
  font-family: var(--display);
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.3;
  margin: 0 0 12px;
  word-break: keep-all;
  text-wrap: balance;
}
.doc h1::before {
  content: "";
  display: block;
  width: 28px;
  height: 8px;
  border-radius: 2px;
  background: var(--hold);
  margin-bottom: 18px;
}

.doc h1 + p {
  white-space: pre-line;
  font-size: 14px;
  color: var(--sub);
  margin: 0 0 32px;
}
.doc h2 {
  font-family: var(--display);
  font-weight: 700;
  font-synthesis: none;
  font-size: 20px;
  line-height: 1.5;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.doc h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
  margin: 28px 0 8px;
}
.doc p {
  margin: 0 0 1em;
}
.doc :is(ol, ul) {
  margin: 0 0 1em;
  padding-left: 1.7em;
}
.doc :is(ol, ul) :is(ol, ul) {
  margin: 0.4em 0 0.2em;
}
.doc li {
  margin: 0.45em 0;
  padding-left: 0.2em;
}
.doc li::marker {
  color: var(--sub);
  font-family: var(--mono);
  font-size: 0.9em;
}
.doc a {
  text-decoration-color: var(--hold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.doc a:hover {
  text-decoration-thickness: 2px;
}
.doc strong {
  font-weight: 700;
}
.doc hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}
.doc blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--rule);
  color: var(--sub);
}
.doc code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--ground-2);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.doc table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 8px 0 1.4em;
  font-size: 14px;
  line-height: 1.7;
}
.doc th,
.doc td {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  background: var(--card);
  min-width: 8em;
}
.doc th {
  background: var(--ground-2);
  font-weight: 700;
  white-space: nowrap;
}

.lede {
  color: var(--sub);
  margin: 0 0 8px;
}
.contact {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field > label {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.req,
.opt {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.req {
  background: var(--hold);
  color: var(--on-hold);
}
.opt {
  background: var(--ground-2);
  color: var(--sub);
  border: 1px solid var(--rule);
}
.hint {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
  margin: -2px 0 0;
}
.contact :is(input[type="email"], input[type="text"], select, textarea) {
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--ink);
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--card);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.contact textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.7;
}
.contact select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background: var(--card) var(--chev) no-repeat right 14px center / 18px 18px;
  cursor: pointer;
}
.contact :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--hold);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.contact [aria-invalid="true"] {
  border-color: var(--hold);
}
.error {
  color: var(--hold);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
  display: flex;
  gap: 6px;
}
.error::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--hold);
  color: var(--on-hold);
  font-size: 12px;
  font-family: var(--mono);
}
.alert {
  border: 1px solid var(--hold);
  border-left-width: 4px;
  background: var(--card);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 20px;
}
.alert p {
  margin: 0;
}
.alert p + p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--sub);
  font-weight: 500;
}
.alert .error::before {
  display: none;
}
.field > .consent,
.consent {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  font-weight: 500;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  line-height: 1.6;
}
.consent > span {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--hold);
  cursor: pointer;
}
.consent a {
  font-weight: 700;
  text-decoration-color: var(--hold);
  text-underline-offset: 3px;
}
.cf-turnstile {
  min-height: 65px;
}
.contact button[type="submit"] {
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--hold);
  color: var(--on-hold);
  cursor: pointer;
}
.contact button[type="submit"]:hover {
  background: var(--hold-deep);
}
.contact button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: progress;
}
@media (min-width: 640px) {
  .contact button[type="submit"] {
    width: auto;
    min-width: 240px;
    align-self: flex-start;
  }
}
.done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 16px;
}
.done .mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hold);
  color: var(--on-hold);
}
.done .mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.done h1 {
  margin: 0;
}
.done h1::before {
  display: none;
}
.done p {
  margin: 0;
}
.btn-line {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.btn-line:hover {
  background: var(--ground-2);
}

.stores {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .stores {
    grid-template-columns: 1fr;
  }
}
.btn-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--ground);
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  cursor: default;
  white-space: nowrap;
}
a.btn-soon {
  cursor: pointer;
}
.btn-soon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn-soon small {
  font-family: var(--body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  border-left: 1px solid currentColor;
  padding-left: 10px;
}

.nf {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 16px;
}
.nf .code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--sub);
}
.nf h1 {
  font-family: var(--display);
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.3;
  margin: 0;
}
.nf h1::before {
  content: "";
  display: block;
  width: 28px;
  height: 8px;
  border-radius: 2px;
  background: var(--hold);
  margin-bottom: 18px;
}
.nf p {
  margin: 0;
  color: var(--sub);
}
.nf .btn-line {
  align-self: flex-start;
}

.invite {
  --page: 552px;
}
.invite > main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 8px;
}
.invite .foot {
  margin-top: 32px;
}
.invite .who {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px;
}
.invite .av {
  object-fit: cover;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ground);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}
.invite .avatar-glyph {
  width: 32px;
  height: 32px;
  filter: invert(1);
}
.invite .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
.invite .msg {
  margin: 0;
  font-size: 14px;
  color: var(--sub);
  word-break: keep-all;
}
.invite .flow {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 14px 8px;
  border-radius: 8px;
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.invite .flow li {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--sub);
  text-align: center;
  position: relative;
}
.invite .flow li + li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--field);
  border-right: 2px solid var(--field);
  transform: rotate(45deg);
}
.invite .flow svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 12px;
  background: var(--ground-2);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.invite .flow .goal {
  color: var(--hold);
}
.invite .flow .goal svg {
  background: var(--hold);
  stroke: var(--on-hold);
}
.invite .steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.invite .steps h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  word-break: keep-all;
}
.invite .steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.invite .steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  font-size: 15px;
  line-height: 1.7;
  align-items: start;
  word-break: keep-all;
}
.invite .steps li > i {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--ground);
  margin-top: 2px;
}
.invite .steps .stores {
  display: grid;
  margin-top: 10px;
}
.invite .open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 10px;
  border-radius: 12px;
  background: var(--hold);
  color: var(--on-hold);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.invite .open:hover {
  background: var(--hold-deep);
}
.invite .open svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
