/* tomosil.app: the app's colors and its own Zen Maru Gothic, cut down to the pages' characters (fonts/README.txt) */
@font-face { font-family: "Zen Maru Gothic"; font-weight: 500; font-display: block; src: url("fonts/zen-maru-gothic-500.woff2?v=dde4cd9d") format("woff2"); }
@font-face { font-family: "Zen Maru Gothic"; font-weight: 700; font-display: block; src: url("fonts/zen-maru-gothic-700.woff2?v=dde4cd9d") format("woff2"); }
:root {
  --bg: #FBF5F3; --surface: #FFFFFF; --surface2: #F6ECEA; --ink: #2F2427; --muted: #7C6A6F; --line: #EBDCD9;
  --rose: #D45C78; --apricot: #EF9E6E; --soft: #FCE6EA; --softInk: #A33A55; --link: #A33A55; --button: #C24A68;
  --like: #E9F1E4; --likeInk: #3E6447; --cream: #FFF0D4; --creamInk: #8A5A10;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1618; --surface: #261F22; --surface2: #2F272A; --ink: #F4EAEC; --muted: #B7A4A9; --line: #3B3135;
    --rose: #F08BA2; --apricot: #F3B089; --soft: #3A2329; --softInk: #F6B3C3; --link: #F6B3C3; --button: #F08BA2;
    --like: #243127; --likeInk: #B7D6B4; --cream: #3C2F1B; --creamInk: #F1C874;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif; font-weight: 500; line-height: 1.85; -webkit-text-size-adjust: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
strong { font-weight: 700; }
svg { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 64rem; margin: 0 auto; padding-inline: 20px; }
/* headings and questions break only between phrases (the <wbr>s), not in the middle of a word */
h1, h2, h3, summary, .phrase { word-break: keep-all; overflow-wrap: anywhere; }
.nw { white-space: nowrap; }
.narrow { max-width: 46rem; }

/* the bar at the top: just the logo, home (the other pages are linked in the footer) */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.site-head .home { line-height: 0; color: var(--ink); }
.logo { height: 30px; width: auto; }
/* the logo with its reading and subtitle (トモシル | ともだちを、知ろう), at the top of each page */
.logo.lockup { height: 76px; }

.site-foot { margin-top: 56px; border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 40px; font-size: 0.84rem; color: var(--muted); }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot nav a { color: var(--muted); }
.site-foot .logo { height: 22px; }

/* white boxes, as the app's cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
/* the FAQ's contact: the address as text to copy (no mail link) */
.contact { padding: 18px 20px; }
.contact p { margin: 0; }
.contact .mail { margin-top: 8px; font-weight: 700; font-size: 1.05rem; user-select: all; }
.contact .who { margin-top: 4px; font-size: 0.86rem; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 0.84rem; background: var(--soft); color: var(--softInk); font-weight: 700; }
.icon-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-dot svg { width: 22px; height: 22px; stroke: var(--softInk); }

/* the promises */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.promise { background: var(--soft); border-radius: 20px; padding: 18px 16px 14px; }
.promise h3 { margin: 10px 0 4px; font-size: 1rem; color: var(--softInk); font-weight: 700; }
.promise p { margin: 0; font-size: 0.86rem; line-height: 1.7; }
.promise .icon-dot { background: var(--surface); }
.promise .icon-dot svg { stroke: var(--rose); }

/* a phone, for the app's screens */
.phone { width: 270px; max-width: 100%; padding: 9px; background: #2F2427; border-radius: 40px; box-shadow: 0 18px 50px rgba(80, 40, 50, 0.18); flex: none; }
.phone img { display: block; width: 100%; height: auto; border-radius: 32px; }

@media (max-width: 640px) {
  .promises { grid-template-columns: 1fr; }
  .promise { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: start; }
  .promise h3 { margin: 0 0 2px; }
  .promise .icon-dot { grid-row: span 2; }
  .logo { height: 26px; }
  .logo.lockup { height: 60px; }
}
