/* 自分らしさ穴埋め50音〈人間関係編〉 */
:root {
  --main: #b4533a;        /* テラコッタ（白地で約5:1） */
  --main-dark: #8f3f2b;
  --main-soft: #fbeee8;
  --accent: #2f6f6a;      /* 深い青緑 */
  --ink: #2d2a28;
  --muted: #6b635e;
  --line: #eadfd8;
  --bg: #fbf8f5;
  --card: #ffffff;
  --mark: #ffe8a8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Meiryo', sans-serif;
  font-size: 17px; line-height: 1.8; -webkit-text-size-adjust: 100%;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
small, .small-note { font-size: 0.86rem; color: var(--muted); }
b { color: var(--main-dark); }

/* ヘッダー */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.site-icon { width: 28px; height: 28px; border-radius: 6px; }
.header-links { display: flex; gap: 14px; font-size: 0.88rem; }
.header-links a { color: var(--muted); text-decoration: none; }
.header-links a:hover { color: var(--main); }

main { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ヒーロー */
.hero { text-align: center; padding: 32px 0 24px; }
.hero-kicker { display: inline-block; margin: 0 0 10px; padding: 2px 12px; border-radius: 999px;
  background: var(--main-soft); color: var(--main-dark); font-size: 0.85rem; font-weight: 700; }
.hero h1 { font-size: clamp(1.5rem, 6vw, 2.1rem); line-height: 1.45; margin: 0 0 12px; }
.hero-sub { margin: 0 0 20px; color: var(--muted); }
.how { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 0 0 18px; }
.how-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px;
  width: 30%; max-width: 150px; font-size: 0.9rem; line-height: 1.5; font-weight: 700; }
.how-item .n { display: block; color: var(--main); font-size: 1.2rem; }
.how-arrow { color: var(--main); font-size: 1.4rem; }
.what-is { text-align: left; font-size: 0.92rem; background: #fff; border-left: 4px solid var(--accent);
  padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 0 0 22px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--main);
  background: #fff; color: var(--main-dark); font-size: 1rem; font-weight: 700; font-family: inherit;
  cursor: pointer; text-decoration: none; line-height: 1.3;
}
.btn:hover { background: var(--main-soft); }
.btn.primary { background: var(--main); color: #fff; }
.btn.primary:hover { background: var(--main-dark); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--main-dark); background: var(--main-soft); }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 0.9rem; }
.btn.big { min-height: 56px; padding: 12px 36px; font-size: 1.1rem; }
.btn.wide { width: 100%; }
.btn.disabled { opacity: 0.55; pointer-events: none; }
.btn:focus-visible, .row-tab:focus-visible, .word-card:focus-visible, .chip:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; }

/* アプリ */
.app-section { padding: 8px 0 24px; scroll-margin-top: 8px; }
.anaume-app { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  box-shadow: 0 6px 20px rgba(80, 50, 30, 0.06); }
.row-tabs-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; -webkit-overflow-scrolling: touch; }
.row-tabs { display: flex; gap: 6px; width: max-content; }
.row-tab { min-width: 52px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-size: 0.95rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.row-tab.active { background: var(--main); border-color: var(--main); color: #fff; }

.steps { list-style: none; display: flex; justify-content: space-between; gap: 4px; padding: 0; margin: 14px 0 16px;
  font-size: 0.78rem; color: var(--muted); }
.steps li { flex: 1; text-align: center; line-height: 1.3; }
.steps .num { display: block; width: 26px; height: 26px; margin: 0 auto 2px; border-radius: 50%; border: 2px solid var(--line);
  line-height: 22px; font-weight: 700; background: #fff; }
.steps li.now { color: var(--main-dark); font-weight: 700; }
.steps li.now .num { border-color: var(--main); background: var(--main); color: #fff; }
.steps li.done .num { border-color: var(--main); color: var(--main); }

.step-lead { margin: 0 0 12px; }
.word-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .word-grid { grid-template-columns: 1fr 1fr; } }
.word-card { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; text-align: left;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; color: var(--ink); }
.word-card:hover { border-color: var(--main); background: var(--main-soft); }
.word-card .kana { grid-row: 1 / 3; align-self: center; width: 44px; height: 44px; border-radius: 50%; background: var(--main-soft);
  color: var(--main-dark); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.word-card .word { font-size: 1.1rem; font-weight: 700; }
.word-card .q { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

.q-card { background: var(--bg); border-radius: 14px; padding: 14px; }
.q-word { font-size: 0.85rem; color: var(--accent); font-weight: 700; }
.q-text { font-size: 1.2rem; font-weight: 700; line-height: 1.5; margin: 4px 0 6px; }
.q-guide { font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }
textarea { width: 100%; font-family: inherit; font-size: 1.05rem; line-height: 1.6; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); resize: vertical; }
textarea:focus { outline: none; border-color: var(--main); }
.counter { text-align: right; font-size: 0.82rem; color: var(--muted); }
.join-label { font-weight: 700; color: var(--main-dark); margin: 6px 0 4px; }
.hint-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chip { min-height: 40px; padding: 4px 12px; border-radius: 999px; border: 1px dashed var(--main); background: #fff;
  color: var(--main-dark); font-family: inherit; font-size: 0.9rem; cursor: pointer; }
.chip:hover { background: var(--main-soft); }

.live-preview { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; font-size: 0.95rem; }
.live-preview p { margin: 0 0 4px; }
.lp-title { font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }
.fill { background: linear-gradient(transparent 60%, var(--mark) 60%); font-weight: 700; color: var(--main-dark); padding: 0 2px; }
.blank { color: #c9bfb8; letter-spacing: 0.05em; }

.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.nav-row.wrap { flex-wrap: wrap; justify-content: flex-start; }

/* できあがり */
.result-card { position: relative; background: #fff; border: 2px solid var(--main); border-radius: 16px; padding: 22px 20px 14px;
  background-image: radial-gradient(circle at 100% 0, var(--main-soft) 0, var(--main-soft) 70px, transparent 71px); }
.rc-title { display: inline-block; background: var(--main); color: #fff; font-weight: 700; padding: 4px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 0.95rem; }
.rc-title b { color: var(--mark); font-size: 1.1em; }
.rc-body { font-size: 1.08rem; line-height: 1.9; }
.rc-body p { margin: 0 0 10px; }
.rc-foot { text-align: right; font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.result-note { font-size: 0.9rem; color: var(--muted); margin: 12px 0; }
.main-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
@media (max-width: 380px) { .main-actions { grid-template-columns: 1fr; } }
details { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin: 10px 0; background: #fff; }
details summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; }
details[open] { padding-bottom: 12px; }
details p { margin: 0 0 8px; font-size: 0.93rem; }

.toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -40%); width: max-content; max-width: calc(100% - 48px);
  background: var(--ink); color: #fff; padding: 16px 22px; border-radius: 14px; font-size: 1.05rem; opacity: 0;
  pointer-events: none; transition: opacity .2s, transform .2s; z-index: 150; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, -50%); }

.privacy-note { font-size: 0.82rem; color: var(--muted); margin: 10px 4px 0; }

/* 使いみち・PDF */
.uses, .pdf-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 16px 0; }
.uses h2, .pdf-box h2 { font-size: 1.15rem; margin: 0 0 8px; }
.uses ul { margin: 0; padding-left: 1.2em; }
.pdf-box { border-color: var(--accent); }
.pdf-box .btn { margin: 6px 0; }

.site-footer { text-align: center; font-size: 0.82rem; color: var(--muted); padding: 24px 16px 40px; }

/* アプリ内ブラウザの案内 */
.overlay { position: fixed; inset: 0; background: rgba(30, 20, 15, 0.55); display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 100; }
.overlay.active { opacity: 1; visibility: visible; }
.modal { background: #fff; border-radius: 16px; padding: 20px; max-width: 440px; width: 100%; }
.modal h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--main-dark); }
.modal p { font-size: 0.93rem; margin: 0 0 8px; }
/* ワークシートのお届け登録フォーム（仕事編） */
.pdf-form { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pdf-form h3 { font-size: 1.02rem; margin: 0 0 10px; }
.pdf-form label { display: block; font-weight: 700; font-size: 0.9rem; margin: 10px 0 4px; }
.pdf-form input, .pdf-form textarea { width: 100%; box-sizing: border-box; padding: 12px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pdf-form .btn { margin-top: 14px; }
