:root {
  --bg: #f6f2ec;
  --card: #fffdf9;
  --ink: #2f2a26;
  --sub: #7a6f66;
  --line: #e6ddd2;
  --accent: #a8786a;
  --accent-soft: #f1e4de;
  --shadow: 0 1px 2px rgba(60, 40, 30, .06), 0 8px 24px rgba(60, 40, 30, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1a18;
    --card: #262220;
    --ink: #eee7e0;
    --sub: #a89c92;
    --line: #3a3430;
    --accent: #d2a596;
    --accent-soft: #3a2e2a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  --bg: #1d1a18;
  --card: #262220;
  --ink: #eee7e0;
  --sub: #a89c92;
  --line: #3a3430;
  --accent: #d2a596;
  --accent-soft: #3a2e2a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 16px 56px;
}

.hero { text-align: center; }
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card);
  box-shadow: var(--shadow);
}
h1 {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .08em;
  margin: 16px 0 2px;
}
.name-en { display: block; font-size: 17px; letter-spacing: .04em; margin-top: 2px; }
.bio {
  margin: 18px auto 0;
  font-size: 14.5px;
  color: var(--ink);
  max-width: 22em;
  text-wrap: balance;
}
.bio-line { display: block; }
.bio.en { margin-top: 10px; font-size: 13.5px; color: var(--sub); }
.thanks { font-size: 12.5px; margin: 14px 0 0; }
.thanks.en { margin-top: 2px; font-size: 12px; color: var(--sub); }

h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sub);
  margin: 36px 0 12px;
  text-align: center;
}

.links { display: grid; gap: 10px; }
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.link:hover { transform: translateY(-1px); border-color: var(--accent); }
.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.link svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.link .t { flex: 1; min-width: 0; }
.link .t b { display: block; font-weight: 600; font-size: 15px; }
.link .t small { display: block; color: var(--sub); font-size: 12.5px; }
.link .arrow { color: var(--sub); font-size: 18px; }

.friend {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
}
.friend-head { display: flex; align-items: center; gap: 14px; }
.friend-head img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.friend-head b { display: block; font-size: 16px; }
.friend-head small { display: block; color: var(--sub); font-size: 12.5px; line-height: 1.5; }
.friend p { font-size: 13.5px; margin: 12px 0 14px; color: var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}
.chip svg { width: 15px; height: 15px; fill: currentColor; }
.chip:hover { outline: 1px solid var(--accent); }

footer {
  text-align: center;
  color: var(--sub);
  font-size: 11.5px;
  margin-top: 40px;
}
