/* taichicraft.app — one stylesheet for every page. Colours follow とも暦's milk tea theme.
   No web fonts, no external files: the device's own (rounded where available) Japanese fonts. */
:root {
  --bg: #efe2cf;
  --paper: #fffcf7;
  --accent: #95704f;
  --dark: #725034;
  --soft: #ddc5a8;
  --ink: #57402e;
  --muted: #755f49;
  --line: #e2cfb6;
  --radius: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.85;
  letter-spacing: .02em;
}
/* Body text: the last line never holds a lone character or two. Short headline text breaks only
   where the page marks it (<wbr>), so phrases stay whole. */
p { text-wrap: pretty; }
.lead, .subtitle, h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
a { color: var(--dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap { width: min(960px, 100% - 32px); margin-inline: auto; }

/* The draft notice: removed before the site is published. */
.draft { background: var(--dark); color: var(--paper); text-align: center; font-size: .82rem; padding: 6px 16px; }

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; gap: 18px; font-size: .92rem; }
.site-nav a { text-decoration: none; color: var(--muted); }

.hero { padding: 40px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 0 0 8px; letter-spacing: .08em; }
.hero .lead { margin: 0 auto; max-width: 34em; color: var(--muted); }
.stamp-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.stamp-row img { width: 56px; height: 56px; }

.section { padding: 8px 0 48px; }
.section > .wrap > h2 { font-size: 1.25rem; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.section > .wrap > h2::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 6px 18px rgba(114, 80, 52, .07); }
.app-card { display: grid; grid-template-columns: 88px 1fr; gap: 18px 22px; align-items: center; text-decoration: none; color: inherit; transition: transform .15s ease; }
.app-card:hover { transform: translateY(-2px); color: inherit; }
.app-card img { width: 88px; height: 88px; border-radius: 22px; border: 1px solid var(--line); }
.app-card h3 { margin: 0; font-size: 1.3rem; }
.app-card .subtitle { margin: 2px 0 6px; color: var(--accent); font-size: .92rem; }
.app-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.more { display: inline-block; margin-top: 10px; font-size: .9rem; color: var(--dark); }

.app-hero { padding: 28px 0 48px; text-align: center; }
.app-hero img.icon { width: 112px; height: 112px; margin: 0 auto 14px; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(114, 80, 52, .12); }
.app-hero h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 3rem); letter-spacing: .12em; }
.app-hero h1 rt { font-size: .32em; letter-spacing: .3em; color: var(--muted); }
.app-hero .subtitle { margin: 4px 0 16px; color: var(--accent); font-weight: 700; }
.app-hero .lead { max-width: 30em; margin: 0 auto; color: var(--muted); }

.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store { display: inline-flex; flex-direction: column; align-items: center; min-width: 170px; padding: 10px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: .78rem; line-height: 1.4; }
.store strong { font-size: 1.02rem; }
.store.soon { background: var(--soft); color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.feature { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.feature img { width: 64px; height: 64px; }
.feature h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 640px; margin-inline: auto; }
.shot { aspect-ratio: 9 / 19; border-radius: 28px; border: 6px solid var(--paper); background: repeating-linear-gradient(135deg, var(--soft) 0 14px, #e5d0b5 14px 28px); display: grid; place-items: center; color: var(--muted); font-size: .85rem; box-shadow: 0 8px 22px rgba(114, 80, 52, .1); }

.links { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.links a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-size: .92rem; }
.tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .72rem; vertical-align: middle; }

.contact { text-align: center; }
.contact p { margin: 0 0 8px; color: var(--muted); }
.mail { font-size: 1.1rem; font-weight: 700; }

.site-footer { padding: 28px 0 40px; text-align: center; font-size: .82rem; color: var(--muted); }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }

/* Long text pages: the policies, the terms, the support page. */
.doc { padding: 12px 0 48px; }
.doc .card { padding: 28px clamp(18px, 5vw, 40px); }
.doc h1 { font-size: clamp(1.5rem, 5vw, 1.9rem); margin: 0 0 6px; }
.doc .meta { margin: 0 0 22px; color: var(--muted); font-size: .88rem; }
.doc h2 { font-size: 1.12rem; margin: 30px 0 8px; padding-left: 12px; border-left: 4px solid var(--accent); border-radius: 0; }
.doc h3 { font-size: 1rem; margin: 18px 0 4px; }
.doc p, .doc li { font-size: .97rem; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc .table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 10px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: #f6ecdf; white-space: nowrap; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.breadcrumb a { color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--accent); font-weight: 700; }
.faq details[open] summary { color: var(--dark); }
.faq details > div { padding: 6px 0 0 24px; color: var(--muted); }
.faq details > div p { margin: 6px 0; }
.note { font-size: .85rem; color: var(--muted); }

@media (max-width: 600px) {
  /* Tables become one block per row, each cell under its column's name. */
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc tr:first-child { display: none; }
  .doc tr { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; margin: 10px 0; background: #fffaf3; }
  .doc td { border: 0; padding: 4px 0; }
  .doc td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--accent); }
  /* A table of facts (a heading on each row): the heading goes above its value. */
  .doc table.facts tr:first-child { display: block; }
  .doc table.facts th { display: block; border: 0; padding: 0; background: none; white-space: normal; font-size: .78rem; color: var(--accent); }
  .site-nav { gap: 12px; font-size: .85rem; }
  .app-card { grid-template-columns: 64px 1fr; }
  .app-card img { width: 64px; height: 64px; border-radius: 16px; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .shot { border-width: 4px; border-radius: 18px; font-size: .7rem; }
  .stamp-row img { width: 44px; height: 44px; }
}
