:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --ink: #1d2b2a;
  --muted: #7a8786;
  --line: #e6ecec;
  --accent: #0f9b8e;
  --accent-ink: #ffffff;
  --accent-soft: #e2f5f2;
  --hot: #ff6b5a;
  --hot-soft: #ffece9;
  --skill: #3c5bd6;
  --skill-soft: #eaeefd;
  --warn: #b7791f;
  --warn-soft: #fff4dd;
  --ok: #1f8a5b;
  --ok-soft: #e4f6ec;
  --err: #c53030;
  --err-soft: #fde8e8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 40, 38, .05), 0 6px 20px rgba(15, 40, 38, .07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111716; --surface: #1a2221; --ink: #e9f1f0; --muted: #94a3a1; --line: #2a3533;
    --accent: #2cc3b3; --accent-ink: #062321; --accent-soft: #15302d; --hot-soft: #3a211d;
    --skill: #8ea4ff; --skill-soft: #1f2645; --warn-soft: #3a2f1a; --ok-soft: #173326; --err-soft: #3a1f1f;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #111716; --surface: #1a2221; --ink: #e9f1f0; --muted: #94a3a1; --line: #2a3533;
  --accent: #2cc3b3; --accent-ink: #062321; --accent-soft: #15302d; --hot-soft: #3a211d;
  --skill: #8ea4ff; --skill-soft: #1f2645; --warn-soft: #3a2f1a; --ok-soft: #173326; --err-soft: #3a1f1f;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
a { color: inherit; }
img { max-width: 100%; }
h1 { font-size: 1.45rem; line-height: 1.4; margin: .2em 0 .6em; }
h2 { font-size: 1.15rem; margin: 1.4em 0 .6em; }
h3 { font-size: 1rem; margin: 1em 0 .4em; }
p { margin: .5em 0; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* header */
.hd { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hd-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--accent); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.logo small { font-size: .6rem; margin-left: 3px; color: var(--muted); }
.hd-search { flex: 1; display: none; }
.hd-search input { width: 100%; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.hd-nav { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: .9rem; }
.hd-nav a { text-decoration: none; white-space: nowrap; }
.hd-nav > a:not(.btn):not(.hd-me) { display: none; }
.hd-nav a[href="/login"] { display: inline; }
.hd-me { font-weight: 600; position: relative; }
@media (min-width: 768px) {
  .hd-search { display: block; }
  .hd-nav > a:not(.btn):not(.hd-me) { display: inline; }
  body { padding-bottom: 0; }
  .tabbar { display: none !important; }
}

/* layout */
.main { max-width: 760px; margin: 0 auto; padding: 8px 16px 32px; }
.main-wide { max-width: 1100px; }
.sec { margin: 8px 0 28px; }
.sec.narrow, .narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.sec-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-hd h1, .sec-hd h2 { margin-bottom: .4em; }
.sec-hd > a:not(.btn) { font-size: .88rem; color: var(--muted); text-decoration: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; box-shadow: var(--shadow); }
.card h2 { margin-top: 0; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; padding: 11px 20px; border-radius: 999px; text-decoration: none; }
.btn:hover { filter: brightness(.96); }
.btn-ghost { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-sm { padding: 6px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); border-color: var(--accent); }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 16px; margin: 0; display: grid; gap: 12px; background: var(--surface); }
legend { font-weight: 700; padding: 0 6px; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; }
.check input { margin-top: 6px; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.f-field { display: grid; gap: 2px; font-size: .82rem; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.check-pill { display: inline-flex !important; cursor: pointer; font-weight: 400 !important; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .85rem; }
.check-pill input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.check-pill input:focus-visible + span { outline: 2px solid var(--accent); }
.area-row { display: grid; gap: 4px; }
.area-row b { font-size: .82rem; color: var(--muted); }
.copy { display: flex; gap: 8px; }
.copy input { font-size: .85rem; }
.inline-form select { width: auto; }

/* search */
.search { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); margin-bottom: 12px; }
.search-q { display: flex; gap: 8px; }
.search-q .btn { flex: none; white-space: nowrap; }
.search-q input { border-radius: 999px; }
.search-more summary { cursor: pointer; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.search-more .f-grid { margin: 10px 0; }
.result-count { color: var(--muted); }
.result-count b { color: var(--ink); font-size: 1.1rem; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { font-size: .76rem; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); text-decoration: none; white-space: nowrap; }
.chip-skill { background: var(--skill-soft); color: var(--skill); }
.pill { display: inline-block; font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--muted); font-weight: 700; vertical-align: middle; }
.pill-hot { background: var(--accent); color: var(--accent-ink); }
.pill-line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-mute { background: var(--line); color: var(--muted); }
.badge-ok { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.dot { position: absolute; top: -4px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .62rem; font-style: normal; display: grid; place-items: center; }

/* avatar */
.av { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex: none; color: #fff; font-weight: 800; background: var(--line); }
.av-sm { width: 32px; height: 32px; font-size: .9rem; }
.av-md { width: 44px; height: 44px; font-size: 1.1rem; }
.av-lg { width: 72px; height: 72px; font-size: 1.7rem; }
.av-xl { width: 104px; height: 104px; font-size: 2.4rem; }

/* friend card */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.fcard { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; box-shadow: var(--shadow); transition: transform .12s; }
.fcard:hover { transform: translateY(-2px); }
@media (min-width: 900px) { .fcard { flex-direction: column; align-items: stretch; } .fcard-top { align-self: center; } }
.fcard-top { position: relative; }
.rank { position: absolute; left: -4px; top: -4px; font-size: .7rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.rank-1 { background: #d4a017; color: #fff; } .rank-2 { background: #9ea7ad; color: #fff; } .rank-3 { background: #b87333; color: #fff; }
.fcard-body { min-width: 0; display: grid; gap: 3px; }
.fcard-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard-meta { font-size: .78rem; color: var(--muted); }
.fcard-price { font-weight: 800; color: var(--accent); }
.fcard-price small { font-weight: 400; color: var(--muted); }
.fcard-head { font-size: .82rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard-foot { display: flex; gap: 10px; flex-wrap: wrap; font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* pager */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 20px 0; }
.pg { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .9rem; }
.pg-cur { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 800; }
.pg-gap { color: var(--muted); }
.pg-info { width: 100%; text-align: center; font-size: .78rem; color: var(--muted); }

/* hero */
.hero { padding: 20px 0 8px; }
.hero h1 { font-size: 1.9rem; margin-bottom: .3em; }
.hero > p { color: var(--muted); max-width: 560px; }
.hero .search { margin-top: 14px; }
.hero-friend { background: linear-gradient(135deg, var(--accent-soft), transparent); margin: 0 -16px; padding: 28px 16px; border-radius: 0 0 24px 24px; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: .82rem; letter-spacing: .1em; margin: 0; }
.campaign { margin-top: 14px; padding: 12px 14px; background: var(--surface); border: 2px dashed var(--accent); border-radius: var(--radius); display: grid; gap: 2px; }
.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .uses { grid-template-columns: repeat(3, 1fr); } }
.uses a { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-size: .88rem; font-weight: 600; }
.uses span { font-size: 1.3rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; }
.steps li::before { content: "STEP " counter(s); font-size: .7rem; font-weight: 800; color: var(--accent); }
.steps span { font-size: .85rem; color: var(--muted); }
.cta-band { text-align: center; background: var(--accent-soft); border-radius: 20px; padding: 24px 16px; margin: 24px 0; }
.cta-band h2 { margin-top: 0; }
.feats { display: grid; gap: 10px; }
@media (min-width: 700px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.feats p { font-size: .88rem; color: var(--muted); margin-bottom: 0; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 6px; align-content: start; text-align: center; }
.plan-best { border: 2px solid var(--accent); }
.plan-free { text-align: left; grid-template-columns: 1fr; border: 2px dashed var(--accent); }
@media (min-width: 700px) { .plan-free { grid-template-columns: 1fr 220px; align-items: center; } }
.price { font-size: 1.4rem; font-weight: 800; color: var(--accent); margin: 0; }
.price small { font-size: .8rem; color: var(--muted); }
.meter { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 2px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* profile */
.crumbs { font-size: .78rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.crumbs a { text-decoration: none; }
.profile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.pf-head { display: flex; gap: 16px; align-items: center; }
.pf-head h1 { margin: 0; font-size: 1.35rem; }
.pf-headline { font-weight: 600; }
.pf-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--muted); }
.pf-stats b { color: var(--ink); }
.pf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.pf-table { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pf-table dt { color: var(--muted); font-size: .85rem; }
.pf-table dd { margin: 0; }
.pf-sec h2 { font-size: 1rem; border-left: 4px solid var(--accent); padding-left: 8px; }
.pf-safe { margin-top: 20px; font-size: .82rem; background: var(--bg); border-radius: 10px; padding: 10px 14px; }
.pf-safe ul { margin: 4px 0 0; padding-left: 1.2em; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); padding: 8px 16px; z-index: 15; background: linear-gradient(transparent, var(--bg) 30%); }
@media (min-width: 768px) { .sticky-cta { display: none; } }
.avatar-up { display: flex; gap: 16px; align-items: center; }
.up-status { font-size: .82rem; color: var(--ok); }

/* lists */
.empty { text-align: center; padding: 28px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.post { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; }
.post h2, .post h3 { margin: 4px 0; font-size: 1rem; }
.post p { font-size: .88rem; color: var(--muted); margin: 0; }
.post-closed { opacity: .6; }
.post-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.post-top time, .post-foot { font-size: .75rem; color: var(--muted); }
.post-top time { margin-left: auto; }
.post-foot { display: flex; justify-content: space-between; margin-top: 6px; }
.post-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.proposals { list-style: none; padding: 0; display: grid; gap: 10px; }
.proposal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.proposal-who { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.proposal-who span { display: grid; }
.proposal-who small { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 4px; text-align: center; text-decoration: none; display: grid; }
.tile b { font-size: 1.3rem; }
.tile span { font-size: .72rem; color: var(--muted); }
.me-hd { display: flex; gap: 14px; align-items: center; }
.me-hd h1 { margin: 0; }
.notes { list-style: none; padding: 0; margin: 0; }
.notes li { border-bottom: 1px solid var(--line); padding: 10px 0; display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.notes li a { text-decoration: none; }
.notes li.unread a { font-weight: 700; }
.notes time { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.flash { padding: 10px 14px; border-radius: 10px; margin: 10px 0; font-size: .9rem; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-err { background: var(--err-soft); color: var(--err); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }

/* SEO pages */
.pref-row { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pref-row b { font-size: .85rem; color: var(--muted); }
.pref-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pref-links a { text-decoration: none; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; }
.pref-links a small { margin-left: 4px; color: var(--accent); font-weight: 700; }
.pref-none { padding: 4px 12px; font-size: .85rem; color: var(--muted); opacity: .6; }
.examples { padding-left: 1.2em; }
.faq dt { font-weight: 700; margin-top: 12px; }
.faq dt::before { content: "Q. "; color: var(--accent); }
.faq dd { margin: 4px 0 0; color: var(--muted); }
.article h2 { border-left: 4px solid var(--accent); padding-left: 8px; }

/* talk */
.rooms { list-style: none; padding: 0; margin: 0; }
.room { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.room-body { flex: 1; min-width: 0; }
.room-top { display: flex; gap: 6px; align-items: center; }
.room-top time { margin-left: auto; font-size: .72rem; color: var(--muted); }
.room-body p { margin: 0; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-unread p { color: var(--ink); font-weight: 600; }
.room .dot { position: static; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.chat-hd { display: flex; gap: 10px; align-items: center; position: sticky; top: 53px; background: var(--bg); padding: 8px 0; z-index: 5; border-bottom: 1px solid var(--line); }
.chat-hd a { text-decoration: none; }
.back { font-size: 1.6rem; line-height: 1; padding: 0 6px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; min-height: 40vh; }
.chat-hint { text-align: center; font-size: .85rem; color: var(--muted); background: var(--surface); padding: 10px; border-radius: 10px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 80%; }
.msg-me { align-self: flex-end; align-items: flex-end; }
.bubble { background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; border-radius: 16px 16px 16px 4px; word-break: break-word; }
.msg-me .bubble { background: var(--accent); color: #fff; border-color: var(--accent); border-radius: 16px 16px 4px 16px; }
.msg time { font-size: .68rem; color: var(--muted); margin-top: 2px; }
.chat-warn { font-size: .74rem; color: var(--muted); margin: 0; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); background: var(--bg); padding: 6px 0; }
@media (min-width: 768px) { .chat-form { bottom: 0; } }
.chat-form textarea { resize: none; max-height: 140px; border-radius: 20px; }
.bk { align-self: center; width: min(100%, 420px); background: var(--surface); border: 2px solid var(--accent-soft); border-radius: var(--radius); padding: 12px 14px; }
.bk-head { display: flex; justify-content: space-between; align-items: center; }
.bk dl { display: grid; grid-template-columns: 70px 1fr; gap: 4px 8px; font-size: .88rem; margin: 8px 0; }
.bk dt { color: var(--muted); }
.bk dd { margin: 0; }
.bk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.bk-form summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.bk-form form { margin-top: 10px; }

/* auth */
.auth { max-width: 420px; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; box-shadow: var(--shadow); }

/* footer & tabbar */
.ft { border-top: 1px solid var(--line); background: var(--surface); margin-top: 32px; }
.ft-in { max-width: 1100px; margin: 0 auto; padding: 24px 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .ft-in { grid-template-columns: repeat(5, 1fr); } }
.ft-col { display: grid; gap: 4px; align-content: start; font-size: .8rem; }
.ft-col h4 { margin: 0 0 4px; font-size: .85rem; }
.ft-col a { color: var(--muted); text-decoration: none; }
.ft-copy { text-align: center; font-size: .75rem; color: var(--muted); padding-bottom: 16px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; justify-items: center; gap: 1px; padding: 7px 0 6px; text-decoration: none; font-size: .64rem; color: var(--muted); position: relative; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--accent); font-weight: 700; }
.tabbar .dot { top: 3px; right: calc(50% - 20px); }
.pf-actions > :only-child { grid-column: 1 / -1; }
.btn { white-space: nowrap; }
.safety-links { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: .75rem; color: var(--muted); }
.safety-links a, .linkish { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
/* admin */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
.admin-nav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .88rem; background: var(--surface); }
.admin-nav a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.admin-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.admin-log { list-style: none; padding: 0; }
.admin-log li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.admin-log time { color: var(--muted); font-size: .75rem; }
.quote { background: var(--bg); border-left: 3px solid var(--line); padding: 8px 12px; }
.tiles-wide { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .tiles-wide { grid-template-columns: repeat(4, 1fr); } }
.tbl-sm { font-size: .85rem; }
.tbl-sm td, .tbl-sm th { padding: 6px 8px; vertical-align: top; }
.pill-err { background: var(--err-soft); color: var(--err); }
.kyc { display: grid; gap: 12px; }
@media (min-width: 800px) { .kyc { grid-template-columns: 1fr 280px; } }
.kyc-img { max-height: 320px; border-radius: 8px; border: 1px solid var(--line); }
.main-wide .tbl { display: block; overflow-x: auto; }
/* photos */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.photo-item { position: relative; aspect-ratio: 1; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.photo-main { position: absolute; left: 6px; top: 6px; }
.photo-item form { position: absolute; }
.ph-main-form { left: 6px; bottom: 6px; }
.ph-del-form { right: 6px; top: 6px; }
.photo-btn { border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 3px 8px; border-radius: 999px; cursor: pointer; }
.photo-del { width: 26px; height: 26px; padding: 0; font-size: 1rem; }
.photo-add { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 12px; display: grid; place-content: center; text-align: center; cursor: pointer; color: var(--accent); font-size: 1.6rem; }
.photo-add span { font-size: .75rem; }
.crop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100; display: grid; place-items: center; padding: 16px; }
.crop-panel { background: var(--surface); border-radius: 20px; padding: 18px; display: grid; gap: 10px; justify-items: center; max-width: 100%; }
.crop-panel canvas { touch-action: none; cursor: grab; border-radius: 8px; background: #000; max-width: 100%; }
.crop-panel input[type=range] { width: 100%; }
/* profile gallery */
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -4px 0; padding: 0 4px 6px; }
.gallery img { flex: none; width: 78%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; scroll-snap-align: start; }
.founder { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 800; color: #8a6d00; background: #fff3c4; padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
.campaign .left { color: var(--accent); margin-left: 6px; }
.campaign-list { margin: 6px 0; padding-left: 1.2em; font-size: .9rem; }
.prebar { background: var(--ink); color: var(--bg); text-align: center; font-size: .8rem; padding: 6px 12px; }
.prebar a { color: #ffd2c9; font-weight: 700; }
.pf-pre { grid-column: 1 / -1; text-align: center; margin: 0; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.share-x { background: #111; color: #fff; border-color: #111; }
.share-line { background: #06c755; color: #fff; border-color: #06c755; }
.share-mini { margin: 12px 0; }
.share-mini .share-btn { font-size: .75rem; padding: 4px 10px; }
.pre-cards { display: grid; gap: 10px; margin: 14px 0; }
@media (min-width: 700px) { .pre-cards { grid-template-columns: 1fr 1fr; } }
.pre-card { display: grid; gap: 4px; justify-items: start; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; box-shadow: var(--shadow); }
.pre-card + .pre-card { border-color: var(--line); }
.pre-card b { font-size: 1.05rem; }
.pre-card small { color: var(--muted); }
.easy { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.easy span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 700; }
mark { background: #ffe58a; color: #3a2f00; padding: 0 2px; border-radius: 3px; }

/* ============ 2026-10 リデザイン（マッチングアプリ風） ============ */
body { letter-spacing: .01em; }
h1, h2 { letter-spacing: .02em; }
.btn { border-radius: 14px; padding: 12px 20px; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-sm { border-radius: 10px; box-shadow: none; }
.btn-white { background: #fff; color: var(--accent); box-shadow: none; }

/* header */
.hd { background: color-mix(in srgb, var(--surface) 94%, transparent); }
.hd-in { gap: 12px; padding: 8px 16px; }
.logo { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 1.15rem; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #2cc3b3, #0f9b8e); color: #fff; display: grid; place-items: center; font-size: .95rem; font-weight: 900; }
.hd-search { position: relative; max-width: 420px; }
.hd-search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; }
.hd-search input { padding-left: 34px; background: var(--bg); border-color: transparent; }
.hd-nav { gap: 6px; }
.hd-nav > a:not(.btn):not(.hd-me) { display: none; }
.hd-nav .hd-icon, .hd-nav .hd-av { display: inline-grid !important; }
.hd-icon { place-items: center; width: 38px; height: 38px; border-radius: 12px; position: relative; color: var(--ink); }
.hd-icon:hover { background: var(--bg); }
.hd-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hd-icon .dot { top: 2px; right: 2px; }
.hd-av { margin-left: 2px; }
.hd-nav .hd-login { display: inline !important; padding: 0 8px; }
@media (min-width: 768px) {
  .hd-nav > a.hd-text { display: inline !important; padding: 0 8px; font-weight: 600; font-size: .88rem; }
  .hd-nav .hd-sp { display: none !important; }
}
.prebar { background: linear-gradient(90deg, #0f9b8e, #3c5bd6); }
.prebar a { color: #fff; text-decoration: underline; }

/* avatar */
.av-story { width: 64px; height: 64px; font-size: 1.5rem; }

/* 縦長の写真 */
.ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-none { display: grid; place-items: center; }
.ph-none i { font-style: normal; color: rgba(255,255,255,.95); font-weight: 900; font-size: clamp(2.2rem, 9vw, 4rem); text-shadow: 0 2px 12px rgba(0,0,0,.12); }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; flex: none; }
.live-online { background: #3ddc84; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.live-recent { background: #ffc94d; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.tag-hot { display: inline-block; background: var(--hot); color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }

/* 一覧カード */
.grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 18px 14px; } }
.pcard { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; min-width: 0; }
.pcard:hover { transform: translateY(-3px); }
.pcard-ph { position: relative; aspect-ratio: 3 / 4; background: var(--line); }
.pcard-top { position: absolute; left: 8px; top: 8px; right: 8px; display: flex; gap: 6px; align-items: center; }
.pcard-top .tag-hot { margin-left: auto; }
.pcard .rank { position: static; min-width: 24px; height: 24px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 8px; font-size: .75rem; background: rgba(0,0,0,.55); color: #fff; }
.pcard .rank-1 { background: #e3a400; } .pcard .rank-2 { background: #8e9ba3; } .pcard .rank-3 { background: #b9733a; }
.pcard-over { position: absolute; inset: auto 0 0 0; padding: 28px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.62)); color: #fff; }
.pcard-name { font-weight: 800; font-size: .98rem; display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-name .ok { font-size: .65rem; background: #3ddc84; color: #063; border-radius: 50%; width: 15px; height: 15px; display: inline-grid; place-items: center; flex: none; }
.pcard-name .star { color: #ffd54a; font-size: .8rem; flex: none; }
.pcard-meta { font-size: .76rem; opacity: .92; }
.pcard-body { padding: 8px 10px 10px; display: grid; gap: 5px; }
.pcard-head { margin: 0; font-size: .78rem; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.pcard-chips { display: flex; gap: 4px; overflow: hidden; flex-wrap: nowrap; }
.mini { font-size: .66rem; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.mini-skill { background: var(--skill-soft); color: var(--skill); }
.pcard-foot { display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.pcard-foot b { color: var(--ink); font-size: .9rem; }
.pcard-foot b small { color: var(--muted); font-weight: 400; }
.pcard-foot .fav { margin-left: auto; color: var(--hot); }

/* 横スクロール列 */
.hrow { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.hrow::-webkit-scrollbar { display: none; }
.hrow .pcard { scroll-snap-align: start; }
@media (min-width: 640px) { .hrow { grid-auto-columns: 28%; } }
@media (min-width: 960px) { .hrow { grid-auto-columns: 19%; } }

/* home */
.hero2 { padding: 22px 0 6px; }
.hero2-eyebrow { margin: 0 0 4px; font-size: .8rem; font-weight: 700; color: var(--accent); }
.hero2 h1 { font-size: 1.85rem; line-height: 1.35; margin: 0 0 14px; }
.hero2 h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 30%, transparent) 62%); }
@media (min-width: 768px) { .hero2 h1 { font-size: 2.4rem; } }
.bigsearch { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 18px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow); max-width: 640px; margin-bottom: 10px; }
.bigsearch svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.bigsearch input { border: 0; padding: 8px 4px; background: transparent; }
.bigsearch input:focus { outline: none; }
.bigsearch .btn { flex: none; padding: 10px 18px; box-shadow: none; }
.chips-scroll .chip { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 4px 12px; font-size: .8rem; }
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { display: grid; justify-items: center; gap: 4px; text-decoration: none; flex: none; width: 70px; }
.story-ring { padding: 3px; border-radius: 50%; background: linear-gradient(135deg, #2cc3b3, #3c5bd6); }
.story-ring .av { border: 3px solid var(--bg); }
.story-ring.is-online { background: linear-gradient(135deg, #3ddc84, #2cc3b3); }
.story-name { font-size: .72rem; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uses2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 768px) { .uses2 { grid-template-columns: repeat(8, 1fr); } }
.uses2 a { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; background: var(--surface); border-radius: 16px; text-decoration: none; font-size: .74rem; font-weight: 700; box-shadow: var(--shadow); }
.uses2 a span { font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 14px; }
.pre-cards { margin: 6px 0 18px; }
.pre-card { border: 0; box-shadow: var(--shadow); border-radius: var(--radius); }
.pre-card + .pre-card { border: 0; }
.pre-friend { background: linear-gradient(135deg, #0f9b8e, #3c5bd6); color: #fff; }
.pre-friend small { color: rgba(255,255,255,.88); }
.pre-badge { font-size: .7rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: #fff; color: var(--accent); }
.pre-badge-line { background: var(--accent-soft); }
.posts2 { list-style: none; padding: 0; margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.posts2 li + li { border-top: 1px solid var(--line); }
.posts2 a { display: flex; gap: 8px; align-items: center; padding: 12px 14px; text-decoration: none; }
.posts2 b { flex: 1; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-cta { display: block; margin-top: 10px; text-align: center; padding: 12px; border-radius: 14px; border: 1.5px dashed var(--accent); color: var(--accent); font-weight: 700; font-size: .86rem; text-decoration: none; }
.steps2 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: s; }
.steps2 li { counter-increment: s; text-align: center; display: grid; gap: 2px; background: var(--surface); border-radius: 14px; padding: 12px 4px; box-shadow: var(--shadow); }
.steps2 li::before { content: counter(s); width: 26px; height: 26px; margin: 0 auto 2px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.steps2 b { font-size: .9rem; }
.steps2 span { font-size: .68rem; color: var(--muted); }
.cta2 { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #0f9b8e, #3c5bd6); color: #fff; border-radius: 22px; padding: 22px 20px; margin: 24px 0; }
.cta2 b { font-size: 1.15rem; line-height: 1.4; }
.cta2 p { margin: 6px 0 0; opacity: .9; font-size: .88rem; }

/* プロフィール */
.pf { display: grid; gap: 18px; }
@media (min-width: 880px) { .pf { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; } .pf-media { position: sticky; top: 72px; } }
.pf-main { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: var(--line); margin: 0 -16px; border-radius: 0; }
@media (min-width: 600px) { .pf-main { margin: 0; border-radius: 22px; } }
.pf-live { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; }
.pf-thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.pf-thumb { width: 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; opacity: .65; }
.pf-thumb.on { border-color: var(--accent); opacity: 1; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-name { font-size: 1.6rem; margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pf-name span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pf-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.badge { font-size: .74rem; padding: 3px 10px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.b-ok { background: var(--ok-soft); color: var(--ok); box-shadow: none; font-weight: 700; }
.b-star { background: #fff3c4; color: #7a5d00; box-shadow: none; font-weight: 700; }
.b-mute { color: var(--muted); }
.pf-catch { font-size: 1.05rem; font-weight: 700; line-height: 1.6; margin: 10px 0 14px; padding-left: 12px; border-left: 4px solid var(--accent); }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 4px; text-align: center; }
.pf-stats div { display: grid; gap: 2px; }
.pf-stats div + div { border-left: 1px solid var(--line); }
.pf-stats b { font-size: 1.1rem; }
.pf-stats b small { font-size: .7rem; font-weight: 400; }
.pf-stats span { font-size: .68rem; color: var(--muted); }
.pf-price { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.pf-price div { display: flex; gap: 6px; align-items: baseline; }
.pf-price span { font-size: .8rem; color: var(--muted); }
.pf-price b { font-size: 1.5rem; color: var(--accent); }
.pf-first b { color: var(--hot); font-size: 1.15rem; }
.pf-price p { width: 100%; margin: 0; font-size: .76rem; color: var(--muted); }
.pf-block { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; box-shadow: var(--shadow); }
.pf-block h2 { font-size: .95rem; margin: 0 0 8px; }
.pf-block p { margin: 0; font-size: .92rem; }
.pf-dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0; font-size: .9rem; }
.pf-dl dt { color: var(--muted); }
.pf-dl dd { margin: 0; }
.pf-safe { background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); }

/* 下部固定のアクション（マッチングアプリ風） */
.actbar { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 25; display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
@media (min-width: 768px) { .actbar { bottom: 0; justify-content: center; } .actbar > * { max-width: 420px; } }
.actbar form { margin: 0; }
.act-main { flex: 1; }
.act-main .btn { width: 100%; flex-direction: column; gap: 0; padding: 9px 20px; line-height: 1.3; }
.act-main .btn small { font-size: .65rem; font-weight: 400; opacity: .85; }
.fav-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--hot); background: var(--surface); color: var(--hot); font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.fav-btn.on { background: var(--hot); color: #fff; }
.act-pre { flex: 1; display: grid; }
.act-pre small { color: var(--muted); font-size: .75rem; }
body.has-actbar { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { body.has-actbar { padding-bottom: 80px; } }

/* その他を新しい配色になじませる */
.card, .search, .fieldset, .post, .proposal, .tile, .empty, .plan, .feats div, .steps li, .uses a { border-radius: var(--radius); }
.search { box-shadow: var(--shadow); border: 0; }
.tabbar { border-top: 1px solid var(--line); }
.tabbar a.on { color: var(--accent); }
.check-pill input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.campaign { border-color: var(--accent); }
.hero-friend { background: linear-gradient(160deg, var(--accent-soft), transparent 70%); }

/* 写真グリッドも縦長に */
.photo-item, .photo-add { aspect-ratio: 3 / 4; }
.hd .btn-sm { padding: 7px 12px; font-size: .8rem; box-shadow: none; }
.hd .hd-login { font-size: .82rem; }
.sp-only { display: inline; } .pc-only { display: none; }
@media (min-width: 768px) { .sp-only { display: none; } .pc-only { display: inline; } }
.nbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; }
.search-more summary { font-weight: 700; color: var(--ink); }
.quick { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 10px; padding: 0 16px; scrollbar-width: none; }
.qchip { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .8rem; font-weight: 700; text-decoration: none; }
.qchip.on { background: var(--accent); color: #fff; box-shadow: none; }

/* ============ 初めての人向けトップ（イラスト） ============ */
.lp-hero { display: grid; gap: 8px; padding: 18px 0 8px; align-items: center; }
@media (min-width: 900px) { .lp-hero { grid-template-columns: 1fr 1.15fr; gap: 24px; padding: 28px 0 12px; } }
.lp-hero h1 { font-size: 2rem; line-height: 1.35; margin: 0 0 12px; }
@media (min-width: 900px) { .lp-hero h1 { font-size: 2.7rem; } }
.lp-hero h1 em { font-style: normal; color: var(--accent); }
.lp-lead { color: var(--muted); margin: 0 0 16px; }
.lp-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-ctas-c { justify-content: center; }
.lp-hero-art { position: relative; }
.lp-hero-art img { width: 100%; height: auto; display: block; }
.bubble { position: absolute; background: var(--surface); border-radius: 16px; padding: 7px 12px; font-size: .74rem; font-weight: 700; line-height: 1.4; box-shadow: var(--shadow); max-width: 44%; }
.bubble::after { content: ""; position: absolute; bottom: -7px; left: 22px; border: 8px solid transparent; border-top-color: var(--surface); border-bottom: 0; }
.bubble.c1 { left: 0; top: 4%; } .bubble.c2 { left: 2%; top: 30%; border: 2px solid var(--skill-soft); }
.bubble.c3 { left: 0; top: 56%; } .bubble.c4 { right: 0; top: 0; } .bubble.c5 { left: 6%; bottom: 4%; }
.bubble.c2 { background: var(--skill-soft); } .bubble.c2::after { border-top-color: var(--skill-soft); }
.bubble.c4 { background: var(--hot-soft); } .bubble.c4::after { border-top-color: var(--hot-soft); left: auto; right: 22px; }
@media (max-width: 600px) { .bubble { font-size: .66rem; padding: 5px 9px; max-width: 48%; } .bubble.c5 { display: none; } }
@media (min-width: 900px) { .bubble { font-size: .82rem; } }

.lp-sec { margin: 40px 0; }
.lp-h2 { text-align: center; font-size: 1.35rem; margin: 0 0 6px; }
.lp-h2 span { display: inline-block; padding: 0 28px; position: relative; }
.lp-h2 span::before, .lp-h2 span::after { content: ""; position: absolute; top: 50%; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); }
.lp-h2 span::before { left: 0; transform: rotate(45deg); } .lp-h2 span::after { right: 0; transform: rotate(-45deg); }
.lp-sub { text-align: center; color: var(--muted); margin: 0 0 18px; }
.lp-sub b { color: var(--ink); }

.lp-about { background: linear-gradient(180deg, var(--accent-soft), transparent); border-radius: 28px; padding: 28px 12px 16px; }
.how { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: end; gap: 6px; max-width: 900px; margin: 0 auto; }
.how-person { margin: 0; text-align: center; }
.how-person img { width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.how-person figcaption { display: grid; }
.how-person figcaption b { font-size: 1rem; }
.how-person figcaption small { color: var(--muted); font-size: .72rem; }
.how-arrows { display: grid; gap: 8px; align-self: center; }
.how-say { background: var(--surface); border-radius: 14px; padding: 8px 10px; font-size: .74rem; font-weight: 700; box-shadow: var(--shadow); line-height: 1.45; }
.how-say-l { border-left: 4px solid var(--hot); }
.how-say-r { border-left: 4px solid var(--accent); }
.how-arrow { text-align: center; font-weight: 800; font-size: .82rem; padding: 7px 4px; border-radius: 999px; color: #fff; }
.how-arrow i { font-style: normal; }
.how-arrow-r { background: var(--hot); }
.how-arrow-l { background: var(--accent); }
@media (min-width: 768px) { .how-say, .how-arrow { font-size: .9rem; } .how { gap: 20px; } }

.feats2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feats2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feats2 { grid-template-columns: repeat(4, 1fr); } }
.feat2 { background: var(--surface); border-radius: 22px; padding: 14px 16px 18px; box-shadow: var(--shadow); }
.feat2-art { background: var(--accent-soft); border-radius: 16px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; }
.feat2-art img { width: 100%; height: 100%; object-fit: contain; }
.feat2-no { display: inline-block; margin: 0; font-size: .72rem; font-weight: 800; color: #fff; background: var(--hot); padding: 1px 10px; border-radius: 999px; }
.feat2 h3 { margin: 6px 0; font-size: 1.05rem; }
.feat2 p:last-child { margin: 0; font-size: .86rem; color: var(--muted); }

.uses2 a span img { width: 34px; height: 34px; object-fit: contain; }
.lp-price { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 700px) { .lp-price { grid-template-columns: 1fr 1fr; } }
.lp-price > div { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.lp-price p { margin: 4px 0 0; font-size: .9rem; }
.lp-price strong { color: var(--accent); font-size: 1.2rem; }
.lp-final { text-align: center; background: var(--surface); border-radius: 28px; padding: 28px 16px; box-shadow: var(--shadow); }
.lp-final h2 { margin-top: 0; }

.cta3 { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; background: linear-gradient(135deg, #0f9b8e, #3c5bd6); color: #fff; border-radius: 24px; padding: 18px; margin: 28px 0; }
@media (min-width: 700px) { .cta3 { grid-template-columns: 220px 1fr; padding: 22px 32px; } }
.cta3 img { width: 100%; height: auto; background: rgba(255,255,255,.92); border-radius: 50%; }
.cta3 b { font-size: 1.15rem; line-height: 1.45; display: block; }
.cta3 p { margin: 6px 0 12px; font-size: .86rem; opacity: .92; }
.cta3-eyebrow { margin: 0 0 4px !important; font-weight: 800; font-size: .75rem !important; }

/* フレンド募集ページの絵 */
.hero-friend { display: grid; gap: 10px; }
@media (min-width: 860px) { .hero-friend { grid-template-columns: 1.2fr .8fr; align-items: center; } }
.hero-friend-art img { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
.empty-art { width: 180px; height: auto; display: block; margin: 0 auto 6px; }

/* ---- 修正：吹き出しは絵に重ねず、別の段に ---- */
h1, h2, h3, .bubble, .worries span, .how-say, .feat2 p, .pcard-head, .lp-lead { word-break: auto-phrase; text-wrap: pretty; }
.worries { list-style: none; padding: 0; margin: 0 auto; max-width: 980px; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .worries { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .worries { grid-template-columns: repeat(3, 1fr); } }
.worries li { position: relative; display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 700; font-size: .92rem; line-height: 1.5; }
.worries li::after { content: ""; position: absolute; left: 28px; bottom: -8px; border: 9px solid transparent; border-top-color: var(--surface); border-bottom: 0; }
.worries li img { width: 44px; height: 44px; flex: none; background: var(--accent-soft); border-radius: 12px; padding: 5px; }
.worries-ans { text-align: center; margin: 22px 0 0; font-size: 1rem; }
.worries-ans b { color: var(--accent); }
.how-ph { display: grid; place-items: center; width: min(160px, 26vw); aspect-ratio: 1; margin: 0 auto 8px; border-radius: 50%; font-size: clamp(2.4rem, 9vw, 4.2rem); box-shadow: var(--shadow); }
.how-ph-c { background: var(--hot-soft); }
.how-ph-f { background: var(--accent-soft); }
.how { align-items: center; }
@media (max-width: 600px) {
  .how { grid-template-columns: 1fr 1fr; }
  .how-arrows { grid-column: 1 / -1; grid-row: 2; }
  .how-person { grid-row: 1; }
}
.feat2-icon { width: 46% !important; height: auto !important; }
/* 修正：カードのタグは1行に収まる分だけ（はみ出たタグは丸ごと隠す） */
.pcard-chips { flex-wrap: wrap; max-height: 1.55em; overflow: hidden; }
.pcard-body { min-width: 0; }
/* 修正：料金プランがスマホではみ出る */
.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { min-width: 0; padding: 12px 10px; }
@media (max-width: 420px) { .plan .price { font-size: 1.15rem; } .plan .btn { padding: 10px 8px; font-size: .85rem; } }

/* ============ コミックエッセイ風の絵に合わせた装飾（トップ） ============ */
:root { --inkline: #1d2b2a; --yellow: #ffd54a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --inkline: #cfe0dd; } }
:root[data-theme="dark"] { --inkline: #cfe0dd; }

.lp-hero h1 em { position: relative; z-index: 0; }
.lp-hero h1 em::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: .08em; height: .38em; background: var(--yellow); border-radius: 6px; z-index: -1; transform: rotate(-1.5deg); }
.lp-h2 span::before, .lp-h2 span::after { background: var(--inkline); height: 4px; }

/* 吹き出し（こんなとき）を漫画の吹き出しに */
.worries li { border: 2.5px solid var(--inkline); box-shadow: 4px 4px 0 var(--inkline); border-radius: 22px; }
.worries li::before { content: ""; position: absolute; left: 24px; bottom: -13px; border: 11px solid transparent; border-top-color: var(--inkline); border-bottom: 0; }
.worries li::after { left: 27px; bottom: -8px; border-width: 8px; }
.worries li img { background: var(--yellow); }

/* 図解 */
.lp-about { background: #fff8ec; border: 2.5px solid var(--inkline); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-about { background: var(--surface); } }
.how-say { border: 2px solid var(--inkline); border-left-width: 6px; box-shadow: 3px 3px 0 var(--inkline); }
.how-arrow { border: 2px solid var(--inkline); box-shadow: 3px 3px 0 var(--inkline); }

/* 特徴カードを漫画のコマ風に */
.feat2 { border: 2.5px solid var(--inkline); box-shadow: 5px 5px 0 var(--inkline); }
.feat2-art { background: #fff8ec; border: 2px solid var(--inkline); }
.feat2-no { background: var(--yellow); color: var(--inkline); border: 2px solid var(--inkline); }

/* 料金・最後の呼びかけ */
.lp-price > div, .lp-final, .steps2 li { border: 2px solid var(--inkline); box-shadow: 4px 4px 0 var(--inkline); }
.lp-hero .btn, .lp-final .btn { border: 2.5px solid var(--inkline); box-shadow: 3px 3px 0 var(--inkline); }
.lp-hero .btn:active, .lp-final .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--inkline); }
.cta3 { border: 2.5px solid var(--inkline); box-shadow: 5px 5px 0 var(--inkline); }
.cta3 img { background: #fff8ec; border: 2.5px solid var(--inkline); }
.uses2 a { border: 2px solid var(--inkline); box-shadow: 3px 3px 0 var(--inkline); }
.uses2 a span { background: #fff8ec; }
/* 新しい絵（縦長・透明）に合わせた調整 */
.empty-art { width: 120px; }
.cta3 img { border-radius: 0; background: none; border: 0; max-height: 220px; object-fit: contain; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.25)); }
.hero-friend-art img { max-width: 300px; }
.how-person img { max-height: 260px; }
.nw { display: inline-block; }
.easy span::before { content: "✓ "; color: var(--accent); }
/* サンプル表示・フレンド募集中 */
.tag-demo { display: inline-block; background: #fff; color: var(--inkline); border: 1.5px solid var(--inkline); font-size: .66rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.pcard-top .tag-demo { margin-left: auto; }
.pcard-top .tag-hot + .tag-demo { margin-left: 0; }
.demo-note { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 8px 12px; font-size: .82rem; margin: 6px 0 12px; }
.recruit { display: grid; gap: 16px; align-items: center; background: #fff8ec; border: 2.5px solid var(--inkline); box-shadow: 5px 5px 0 var(--inkline); border-radius: 26px; padding: 20px; margin: 18px 0 28px; }
@media (min-width: 720px) { .recruit { grid-template-columns: 220px 1fr; padding: 26px 32px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .recruit { background: var(--surface); } }
.recruit img { width: 100%; max-width: 200px; height: auto; margin: 0 auto; display: block; }
.recruit h2 { margin: 2px 0 8px; font-size: 1.3rem; }
.recruit p { margin: 0 0 14px; }
.recruit-eyebrow { color: var(--hot); font-weight: 800; font-size: .8rem; margin: 0 !important; }
