:root {
  --paper: #f7f2e8;
  --paper-2: #efe6d4;
  --ink: #2b2620;
  --ink-soft: #6b6155;
  --line: #ddd0b8;
  --shu: #c8452f;        /* 朱 */
  --shu-soft: #f6dcd3;
  --kin: #c99a3a;        /* 金 */
  --card: #fffdf8;
  --shadow: 0 1px 0 rgba(43, 38, 32, .04), 0 10px 30px -18px rgba(43, 38, 32, .35);
  --radius: 22px;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --latin: "Outfit", "Zen Maru Gothic", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1916;
    --paper-2: #24201b;
    --ink: #f1e9dc;
    --ink-soft: #b5a993;
    --line: #3a332b;
    --shu: #ec7258;
    --shu-soft: #3a2420;
    --kin: #e2b866;
    --card: #26221d;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 30px -20px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(201, 154, 58, .07), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(200, 69, 47, .05), transparent 45%);
}
a { color: var(--shu); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }

/* ── header ── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--latin); font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--shu); }
.brand b, .nav a { white-space: nowrap; }
@media (max-width: 560px) { .nav { display: none; } .brand b { font-size: 14px; } }

/* ── hero ── */
.hero { padding: 88px 0 72px; text-align: center; }
.hero .boxes { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.hero .boxes span {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--ink);
  animation: drop .9s cubic-bezier(.2, 1.4, .4, 1) both;
}
.hero .boxes span:nth-child(1) { background: var(--shu); animation-delay: .05s; }
.hero .boxes span:nth-child(2) { background: var(--kin); animation-delay: .15s; }
.hero .boxes span:nth-child(3) { background: var(--card); animation-delay: .25s; }
.hero .boxes span:nth-child(4) { background: var(--shu-soft); animation-delay: .35s; }
@keyframes drop { from { transform: translateY(-26px) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero .boxes span { animation: none; } }
.hero h1 {
  margin: 0; font-family: var(--latin); font-weight: 800;
  font-size: clamp(40px, 9vw, 84px); letter-spacing: .08em; line-height: 1.05;
}
.hero h1 small { display: block; font-size: .28em; letter-spacing: .5em; font-weight: 500; color: var(--ink-soft); margin-top: 10px; }
.hero .catch { font-family: var(--serif); font-size: clamp(20px, 3.6vw, 28px); margin: 34px 0 10px; }
.hero .lead { color: var(--ink-soft); margin: 0 auto; max-width: 34em; }

/* ── sections ── */
section { padding: 56px 0; }
.sec-title { display: flex; align-items: baseline; gap: 14px; margin: 0 0 28px; }
.sec-title h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 700; }
.sec-title span { font-family: var(--latin); font-size: 12px; letter-spacing: .3em; color: var(--shu); font-weight: 600; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.app {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.app header { display: flex; align-items: center; gap: 16px; }
.app header img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35); }
.app header .ph {
  width: 72px; height: 72px; border-radius: 18px; flex: none;
  border: 2px dashed var(--line); display: grid; place-items: center; color: var(--ink-soft); font-size: 26px;
}
.app h3 { margin: 0; font-family: var(--serif); font-size: 22px; }
.app .kind { font-size: 13px; color: var(--ink-soft); }
.app p { margin: 0; }
.app ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); font-size: 15px; }
.app .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink-soft); }
.tag.shu { background: var(--shu-soft); color: var(--shu); }
.links { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 14px; }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
.about p { margin: 0 0 14px; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; }
.facts dl { margin: 0; }
.facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.contact { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 22px; box-shadow: var(--shadow); }
.contact .mail {
  display: inline-block; margin: 16px 0 8px; padding: 12px 26px; border-radius: 99px;
  background: var(--shu); color: #fff; text-decoration: none; font-family: var(--latin); font-weight: 600; letter-spacing: .04em;
}
.contact small { color: var(--ink-soft); display: block; }

footer { padding: 40px 0 56px; color: var(--ink-soft); font-size: 13px; text-align: center; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
footer a { color: var(--ink-soft); }

/* ── 文書ページ(プライバシーポリシー) ── */
.doc { padding: 48px 0 24px; }
.doc .wrap { width: min(760px, 100% - 32px); }
.doc h1 { font-family: var(--serif); font-size: clamp(26px, 5vw, 34px); margin: 0 0 6px; line-height: 1.4; }
.doc .date { color: var(--ink-soft); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-family: var(--serif); font-size: 21px; margin: 40px 0 12px; padding-left: 12px; border-left: 4px solid var(--shu); line-height: 1.5; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--paper-2); font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td:first-child { font-weight: 700; border-bottom: 0; padding-bottom: 0; }
}
.doc ul { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
