/* washi & ink: the app's own palette (src/lib/theme.ts) */
:root {
  --bg: #F6F1E7; --card: #FBF8F2; --fg: #1F1B16; --muted: #6F6658; --line: #E2D8C6;
  --accent: #B8432F; --badge: #2F4A7A; --hl: #EFE6D6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141414; --card: #1C1C1C; --fg: #E6E4E0; --muted: #A09D98; --line: #2E2E2E;
    --accent: #D98A78; --badge: #8FA3C8; --hl: #1E1E1E;
  }
}
:root[data-theme="dark"] {
  --bg: #141414; --card: #1C1C1C; --fg: #E6E4E0; --muted: #A09D98; --line: #2E2E2E;
  --accent: #D98A78; --badge: #8FA3C8; --hl: #1E1E1E;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-size: 17px; line-height: 1.65;
}
a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.brand .jp { color: var(--accent); }
.nav { display: flex; gap: 16px; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--fg); font-weight: 600; text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }

/* hero */
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px #0001; }
.hero h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.15; margin: 20px 0 8px; font-weight: 800; letter-spacing: -.01em; }
.hero .meaning { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.hero p.lead { font-size: 19px; margin: 0 0 24px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--fg); color: var(--bg); border-radius: 14px; padding: 11px 18px; font-weight: 800; font-size: 15px;
}
.btn.ghost { background: transparent; color: var(--muted); border: 2px dashed var(--line); font-weight: 700; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shots img { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 10px 30px #0002; }
.shots img:nth-child(2) { margin-top: 36px; }

/* sections */
section { padding: 36px 0; border-top: 1px solid var(--line); }
h2 { font-size: 26px; margin: 0 0 18px; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--card); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 18px; padding: 18px; }
.card .glyph { font-size: 34px; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); }

.org { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.org dl { margin: 0; }
.org dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 800; margin-top: 10px; }
.org dt:first-child { margin-top: 0; }
.org dd { margin: 2px 0 0; }

/* text pages (privacy policy) */
.doc { max-width: 720px; padding: 40px 0 56px; }
.doc h1 { font-size: 34px; line-height: 1.2; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 30px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.summary { background: var(--hl); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); font-weight: 600; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; }
  .grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .org { grid-template-columns: 1fr; }
  .nav { gap: 12px; font-size: 14px; }
}
