/* houfu.com — 今年の抱負 */
:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --card: #fffdf8;
  --ink: #1f1c19;
  --sub: #685f55;
  --line: #ddd2bf;
  --accent: #b3262d;
  --accent-ink: #ffffff;
  --accent-soft: #f6e3df;
  --gold: #a8873a;
  --ok: #2e6b46;
  --ok-soft: #e4f0e7;
  --err: #a3242a;
  --err-soft: #f8e4e2;
  --r: 5px;
  --min: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --got: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}
* { 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(--got); font-weight: 500; font-size: 17px; line-height: 1.9; letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.wrap.narrow { max-width: 792px; }
.center { text-align: center; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ヘッダー */
.site-h { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.h-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-seal { display: grid; place-items: center; width: 38px; height: 38px; background: var(--accent); color: #fff; font-family: var(--min); font-weight: 700; font-size: 13px; line-height: 1.05; writing-mode: vertical-rl; letter-spacing: 0; border-radius: 2px; }
.logo-t { display: flex; flex-direction: column; font-family: var(--min); font-weight: 700; font-size: 19px; line-height: 1.2; }
.logo-t small { font-family: var(--got); font-size: 12px; color: var(--sub); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: var(--r); font-size: 15px; }
.nav a:hover { background: var(--paper-2); }
.nav .nav-cta { background: var(--accent); color: #fff; padding: 8px 16px; margin-left: 4px; }
.nav .nav-cta:hover { background: #962026; }
.nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .logo-t small { display: none; }
  .nav { gap: 0; }
  .nav a { padding: 8px 7px; font-size: 14px; }
  .nav .nav-cta { padding: 8px 12px; }
}
@media (max-width: 400px) {
  .logo-t { font-size: 16px; }
  .nav a { padding: 8px 5px; }
}

/* ヒーロー */
.hero { padding: 48px 0 40px; background: linear-gradient(180deg, var(--card) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .12em; }
.hero h1 { font-family: var(--min); font-weight: 700; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.4; margin: 0 0 18px; letter-spacing: .04em; }
.lead { font-size: 17px; color: var(--sub); margin: 0 0 24px; }
.hero-card img { border-radius: var(--r); box-shadow: 0 1px 2px rgba(60,40,20,.08), 0 12px 32px rgba(60,40,20,.12); }
.hero-card { margin: 0; }
@media (max-width: 860px) {
  .hero { padding: 28px 0 32px; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
}

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px; line-height: 1.4; padding: 13px 22px; border-radius: var(--r); border: 1px solid transparent; cursor: pointer; text-decoration: none; min-height: 48px; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-main:hover { background: #962026; color: #fff; }
.btn-sub { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-sub:hover { border-color: var(--sub); }
.btn-danger { background: var(--card); color: var(--err); border-color: #d9a3a0; }
.btn-danger:hover { background: var(--err-soft); }
.btn-wide { width: 100%; padding: 16px; font-size: 18px; margin-top: 8px; }
.btn-s { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.btn:focus-visible, .in:focus-visible, a:focus-visible, .style-opt:focus-within { outline: 3px solid #e2a6a0; outline-offset: 2px; }

/* 使い方 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 40px; padding-bottom: 8px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 16px; }
.step .ic { width: 28px; height: 28px; color: var(--accent); }
.step h2 { font-family: var(--min); font-size: 20px; margin: 8px 0 4px; }
.step p { margin: 0; color: var(--sub); font-size: 15px; line-height: 1.8; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; padding-top: 28px; } }

/* 見出し */
.sec-h { font-family: var(--min); font-weight: 700; font-size: clamp(24px, 3.2vw, 30px); text-align: center; margin: 0 0 24px; letter-spacing: .05em; }
.sec-h::after { content: ""; display: block; width: 40px; height: 2px; background: var(--accent); margin: 12px auto 0; }
.page-h { font-family: var(--min); font-weight: 700; font-size: clamp(26px, 3.8vw, 36px); line-height: 1.45; margin: 0 0 16px; letter-spacing: .04em; }
.sec-h2 { display: flex; align-items: center; gap: 10px; font-family: var(--min); font-weight: 700; font-size: 22px; line-height: 1.5; margin: 44px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sec-h2 .ic { color: var(--accent); }

/* フォーム */
.write { padding: 48px 0 56px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 28px 24px; }
@media (max-width: 560px) { .form { padding: 20px 16px; } }
.f-row { margin: 0 0 24px; border: 0; padding: 0; min-width: 0; }
.f-lab { display: block; font-weight: 700; font-size: 16px; margin: 0 0 8px; padding: 0; }
.opt, .req { font-weight: 500; font-size: 13px; color: var(--sub); margin-left: 6px; }
.req { color: var(--accent); }
.in { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1px solid #cbbfaa; border-radius: var(--r); padding: 12px 14px; min-height: 50px; }
.in::placeholder { color: #a39987; }
textarea.in { resize: vertical; line-height: 1.7; }
.help { font-size: 14px; color: var(--sub); margin: 8px 0 0; line-height: 1.7; }
.note { font-size: 15px; color: var(--sub); background: var(--paper); border-radius: var(--r); padding: 12px 14px; }
.kanji-in { display: flex; gap: 16px; align-items: center; }
.in-kanji { width: 92px; height: 92px; flex: none; text-align: center; font-family: var(--min); font-size: 52px; font-weight: 700; padding: 0; line-height: 1; }
.kanji-in .help { margin: 0; }
.item-in { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.item-n { font-family: var(--min); font-weight: 700; color: var(--accent); font-size: 18px; width: 22px; flex: none; text-align: center; }
.in-name { max-width: 320px; }
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .styles { grid-template-columns: 1fr; } }
.style-opt { position: relative; display: block; border: 2px solid var(--line); border-radius: var(--r); padding: 8px; cursor: pointer; background: #fff; }
.style-opt input { position: absolute; opacity: 0; }
.style-opt img { border-radius: 3px; border: 1px solid var(--line); }
.style-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.style-n { display: block; font-weight: 700; margin-top: 6px; }
.style-d { display: block; font-size: 13px; color: var(--sub); line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { border-radius: var(--r); padding: 14px 16px; margin: 0 0 20px; font-size: 16px; line-height: 1.8; }
.flash-ok { background: var(--ok-soft); color: #1d4a2f; border: 1px solid #b9d5c0; }
.flash-err { background: var(--err-soft); color: #7a1a1f; border: 1px solid #e3b6b2; }

/* 書く前に */
.more { padding-bottom: 64px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .more-grid { grid-template-columns: 1fr; } }
.more-c { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: var(--ink); text-decoration: none; }
.more-c:hover { border-color: var(--accent); }
.more-k { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.more-c strong { font-family: var(--min); font-size: 20px; }
.more-c span:last-child { font-size: 15px; color: var(--sub); line-height: 1.7; }

/* カード・共有 */
.pub, .owner, .doc { padding-top: 36px; padding-bottom: 64px; }
.card-fig { margin: 0 0 8px; }
.card-fig img { border-radius: var(--r); box-shadow: 0 1px 2px rgba(60,40,20,.08), 0 10px 28px rgba(60,40,20,.10); }
.card-post img { max-width: min(440px, 100%); margin: 0 auto; }
.card-fig figcaption { text-align: center; margin: 10px auto 0; max-width: 440px; }
.pub-items { font-size: 18px; padding-left: 1.4em; }
.keep { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r); padding: 14px 16px; margin: 0 0 20px; font-size: 15px; line-height: 1.8; }
.keep p { margin: 0; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 12px; background: var(--card); }
.tab { font: inherit; font-size: 14px; padding: 6px 16px; border: 0; background: transparent; cursor: pointer; color: var(--sub); min-height: 36px; }
.tab.on { background: var(--ink); color: #fff; }
.share, .dl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.sbtn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 15px; font-weight: 700; padding: 10px 14px; min-height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; }
.sbtn:hover { border-color: var(--sub); }
.sbtn-x { background: #111; color: #fff; border-color: #111; }
.sbtn-line { background: #06c755; color: #fff; border-color: #06c755; }
.sbtn-fb { background: #1877f2; color: #fff; border-color: #1877f2; }
.sbtn.done { background: var(--ok-soft); border-color: #b9d5c0; color: #1d4a2f; }
.cta-box { margin: 40px 0 0; padding: 24px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.cta-t { font-family: var(--min); font-weight: 700; font-size: 19px; margin: 0 0 14px; }
.report { margin-top: 28px; font-size: 14px; color: var(--sub); }
.report summary, .edit-d summary, .del-d summary { cursor: pointer; }
.report form { margin-top: 8px; }

/* 記録 */
.log-row { margin: 0 0 18px; }
.log-row label { display: flex; gap: 8px; font-weight: 700; line-height: 1.6; margin-bottom: 4px; }
.range { display: flex; align-items: center; gap: 12px; }
.range input { flex: 1; accent-color: var(--accent); height: 32px; }
.range output { width: 52px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.log-form .btn { margin-top: 14px; }
.hist-wrap { overflow-x: auto; margin-top: 20px; }
.hist { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); }
.hist th, .hist td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; white-space: nowrap; }
.hist thead th { font-size: 13px; color: var(--sub); }
.hist td { position: relative; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 4px; width: var(--w); background: var(--accent); border-radius: 2px; margin: 4px 0 2px; min-width: 2px; }
.hist-note { white-space: normal !important; min-width: 180px; color: var(--sub); }
.mail-row { display: flex; gap: 8px; }
.mail-row .in { flex: 1; min-width: 0; }
@media (max-width: 560px) { .mail-row { flex-direction: column; } }
.inline-f { margin: 0; }
.edit-d, .del-d { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.edit-d[open] summary { margin-bottom: 14px; }
.edit-d .form { border: 0; padding: 0; }
.del-d { margin-top: 32px; font-size: 15px; }
.del-d form { margin-top: 10px; }

/* 例文・一文字・書き方 */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
.toc a { font-size: 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--card); }
.toc a:hover { border-color: var(--accent); }
.rei-list { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.rei-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.rei-list li:first-child { border-top: 0; }
.rei-t { font-size: 17px; }
.rei-use { flex: none; font-size: 13px; font-weight: 700; text-decoration: none; padding: 6px 10px; border: 1px solid #e0b9b5; border-radius: var(--r); white-space: nowrap; }
.rei-use:hover { background: var(--accent-soft); }
@media (max-width: 560px) { .rei-list li { flex-direction: column; align-items: flex-start; gap: 6px; } }
.kanji-grid { list-style: none; padding: 0; margin: 28px 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.kanji-c { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 16px 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.kanji-c:hover { border-color: var(--accent); }
.kanji-ch { font-family: var(--min); font-weight: 700; font-size: 56px; line-height: 1.15; }
.kanji-y { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.kanji-m { font-size: 14px; color: var(--sub); line-height: 1.6; }
@media (max-width: 400px) { .kanji-grid { grid-template-columns: 1fr 1fr; } .kanji-ch { font-size: 46px; } }
.tips { padding: 0; margin: 0; list-style: none; counter-reset: t; }
.tips li { counter-increment: t; position: relative; padding: 14px 16px 14px 56px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.tips li::before { content: counter(t); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; display: grid; place-items: center; line-height: 1; }
.tips strong { display: block; font-size: 17px; }
.tips span { display: block; color: var(--sub); font-size: 15px; line-height: 1.8; }
.cmp { width: 100%; border-collapse: collapse; background: var(--card); font-size: 16px; }
.cmp th, .cmp td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.cmp th { background: var(--paper-2); font-size: 14px; }
.cmp td:last-child { font-weight: 700; }
.speech { margin: 0; padding: 18px 20px; background: var(--card); border-left: 4px solid var(--accent); border-radius: var(--r); font-family: var(--min); font-size: 17px; line-height: 2; }
.plain { padding-left: 1.2em; }
.plain li { margin-bottom: 8px; }

/* 管理 */
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 16px; display: flex; flex-direction: column; min-width: 110px; }
.stat-n { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-k { font-size: 13px; color: var(--sub); }
.adm td { white-space: normal; }
.adm-act { display: flex; gap: 6px; }
.adm-act form { margin: 0; }
.is-hidden { opacity: .55; }

/* フッター */
.site-f { background: var(--ink); color: #d8d0c4; padding: 32px 0 40px; font-size: 14px; }
.f-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 28px; margin-bottom: 18px; }
.f-nav a { color: #f0e9de; text-decoration: none; }
.f-nav a:hover { text-decoration: underline; }
.f-copy { margin: 0; color: #a9a093; }

/* ---- みんなの抱負（グループ） ---- */
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-btns .btn small { font-weight: 500; font-size: 13px; color: var(--sub); margin-left: 2px; }
@media (max-width: 560px) { .hero-btns .btn { width: 100%; } }
.grp-intro { padding: 48px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.grp-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.sec-h.left { text-align: left; }
.sec-h.left::after { margin-left: 0; }
.grp-points { margin: 0 0 20px; }
@media (max-width: 860px) { .grp-in { grid-template-columns: 1fr; gap: 24px; } }
.cta-sub { margin: 14px 0 0; font-size: 15px; }
.cta-sub a { display: inline-flex; align-items: center; gap: 6px; }
.sub-h { font-family: var(--min); font-weight: 700; font-size: 19px; margin: 28px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.grp-steps { padding: 0; margin: 20px 0; list-style: none; counter-reset: t; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grp-steps li { counter-increment: t; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.grp-steps li::before { content: counter(t); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; line-height: 1; float: left; margin: 0 10px 0 0; }
.grp-steps strong { display: block; font-size: 16px; line-height: 26px; }
.grp-steps span { display: block; color: var(--sub); font-size: 14px; line-height: 1.7; }
@media (max-width: 760px) { .grp-steps { grid-template-columns: 1fr; } }
.grp-count { margin: -8px 0 16px; color: var(--sub); font-weight: 700; }
.join-box { margin: 28px 0; }
.join-box .form { margin-top: 8px; }
.grp-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.grp-list > li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.grp-k { flex: none; width: 56px; height: 56px; display: grid; place-items: center; font-family: var(--min); font-weight: 700; font-size: 34px; line-height: 1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.grp-k.none { color: var(--line); }
.grp-m { flex: 1; min-width: 0; }
.grp-n { margin: 0; font-weight: 700; }
.grp-m ol { margin: 2px 0 0; padding-left: 1.4em; font-size: 15px; line-height: 1.75; color: var(--ink); }
.grp-list form { flex: none; }
.tag { display: inline-block; margin-left: 8px; padding: 0 8px; font-size: 12px; line-height: 1.8; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); vertical-align: 2px; }
.grp-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.grp-box p { margin: 0 0 12px; }
.grp-links { display: flex; flex-wrap: wrap; gap: 10px; }
.invite { margin: 16px 0 8px; }
.invite textarea { width: 100%; resize: vertical; font-size: 15px; margin-bottom: 8px; }
.cnt-tbl td, .cnt-tbl th { text-align: right; font-variant-numeric: tabular-nums; }
.cnt-tbl th:first-child, .cnt-tbl td:first-child { text-align: left; }

/* ---- 応援スタンプ ---- */
.stamp-f { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-weight: 700; font-size: 14px; line-height: 1.4; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 4px 8px; cursor: pointer; min-height: 84px; }
.stamp .ic { width: 26px; height: 26px; stroke: var(--accent); }
.stamp:hover { border-color: var(--accent); }
.stamp.on { background: var(--accent-soft); border-color: var(--accent); }
.stamp.on .ic { fill: var(--accent); fill-opacity: .18; }
.stamp:disabled { opacity: .6; }
.stamp-n { font-size: 13px; font-weight: 500; color: var(--sub); font-variant-numeric: tabular-nums; }
.stamp-thx { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--ok); }
.stamps-s { margin-top: 8px; }
.stamps-s .stamp-f { gap: 6px; }
.stamps-s .stamp { flex-direction: row; gap: 4px; min-height: 36px; padding: 4px 6px; font-size: 12px; }
.stamps-s .stamp .ic { width: 16px; height: 16px; flex: none; }
.stamps-s .stamp-n { font-size: 12px; }
@media (max-width: 560px) {
  .stamp-f { grid-template-columns: repeat(2, 1fr); }
  .stamps-s .stamp-f { grid-template-columns: repeat(2, 1fr); }
}
.stamp-cta { margin: 16px 0 0; padding: 16px; background: var(--ok-soft); border-radius: var(--r); }
.stamp-cta p { margin: 0 0 12px; font-size: 15px; line-height: 1.8; }
.stamp-got { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stamp-got li { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 4px; font-weight: 700; font-size: 14px; }
.stamp-got li .ic { width: 24px; height: 24px; stroke: var(--accent); }
.stamp-got li .stamp-n { font-size: 22px; font-weight: 700; color: var(--ink); }
.stamp-got li.zero { opacity: .55; }
@media (max-width: 560px) { .stamp-got { grid-template-columns: repeat(2, 1fr); } }
.sec-h2 .tag { font-family: var(--got); }
.stamps-s .stamp-l { white-space: nowrap; letter-spacing: 0; }
@media (max-width: 420px) { .stamps-s .stamp { padding: 4px 3px; gap: 3px; font-size: 11px; } .stamps-s .stamp .ic { width: 14px; height: 14px; } }

/* 年末のふり返り */
.rv-row { margin: 0 0 18px; }
.rv-row .item-in { margin-bottom: 2px; }
.rv-row .range { padding-left: 32px; }
.rv-item { display: flex; gap: 8px; font-weight: 700; line-height: 1.6; margin: 0 0 2px; }
.rv-cards { margin-top: 8px; }
.rv-list { list-style: none; padding: 0; margin: 18px 0 8px; }
.rv-list li { display: grid; grid-template-columns: 1fr 150px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rv-t { font-weight: 700; line-height: 1.6; }
.rv-p { display: flex; align-items: center; gap: 10px; font-weight: 700; font-variant-numeric: tabular-nums; justify-content: flex-end; }
.rv-p .bar { flex: none; width: 80px; height: 8px; margin: 0; background: linear-gradient(90deg, var(--accent) var(--w), var(--line) var(--w)); border-radius: 4px; }
.rv-note { font-family: var(--min); font-weight: 700; font-size: 19px; text-align: center; margin: 18px 0 8px; }
.plain-ol { padding-left: 1.4em; }
.plain-ol li { margin-bottom: 12px; }
.rv-intro { padding-top: 8px; }
.rv-intro-c { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: var(--ink); text-decoration: none; }
.rv-intro-c:hover { border-color: var(--accent); }
.rv-intro-c img { width: 100%; height: auto; display: block; border-radius: 2px; }
.rv-intro-c > span { display: flex; flex-direction: column; gap: 4px; }
.rv-intro-c strong { font-family: var(--min); font-size: 21px; }
.rv-intro-c > span > span:last-child { font-size: 15px; color: var(--sub); line-height: 1.7; }
@media (max-width: 620px) {
  .rv-intro-c { grid-template-columns: 1fr; gap: 12px; }
  .rv-list li { grid-template-columns: 1fr; gap: 4px; }
  .rv-p { justify-content: flex-start; }
  .rv-row .range { padding-left: 0; }
}

/* =====================================================================
   和風の正月（紅白・金・墨・和紙）。柄は細い線を薄く。2026-11-15
   ===================================================================== */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe6d4;
  --card: #fffdf8;
  --ink: #1e1b18;
  --sub: #665d52;
  --line: #e0d4bd;
  --gold: #b08b3e;
  --gold-soft: #d9c391;
  --brush: "Yuji Syuku", "Shippori Mincho", serif;
  /* 柄（金の細線） */
  --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cg fill='%23f7f2e8' stroke='%23b08b3e' stroke-width='.6'%3E%3Ccircle cx='0' cy='10' r='18'/%3E%3Ccircle cx='0' cy='10' r='13'/%3E%3Ccircle cx='0' cy='10' r='8'/%3E%3Ccircle cx='0' cy='10' r='3'/%3E%3Ccircle cx='40' cy='10' r='18'/%3E%3Ccircle cx='40' cy='10' r='13'/%3E%3Ccircle cx='40' cy='10' r='8'/%3E%3Ccircle cx='40' cy='10' r='3'/%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Ccircle cx='20' cy='20' r='13'/%3E%3Ccircle cx='20' cy='20' r='8'/%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --shippo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23b08b3e' stroke-width='.6'%3E%3Ccircle cx='0' cy='0' r='18'/%3E%3Ccircle cx='36' cy='0' r='18'/%3E%3Ccircle cx='0' cy='36' r='18'/%3E%3Ccircle cx='36' cy='36' r='18'/%3E%3Ccircle cx='18' cy='18' r='18'/%3E%3C/g%3E%3C/svg%3E");
  --asanoha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='52' viewBox='0 0 30 52'%3E%3Cg fill='none' stroke='%23c9a65a' stroke-width='.5'%3E%3Cpath d='M15 0v52M0 8.66v34.64M30 8.66v34.64M0 8.66l30 17.32M30 8.66L0 25.98M0 25.98l30 17.32M30 25.98L0 43.3M0 8.66L15 0l15 8.66M0 43.3L15 52l15-8.66M15 17.32L0 8.66M15 17.32l15-8.66M15 17.32v17.32M15 34.64L0 43.3M15 34.64l15 8.66'/%3E%3C/g%3E%3C/svg%3E");
  --mizuhiki: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='16' viewBox='0 0 132 16'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M2 6h48M82 6h48M2 10h48M82 10h48' stroke='%23b08b3e' stroke-width='1'/%3E%3Cpath d='M50 6c6 0 9-5 14-2s-1 8-6 6M82 6c-6 0-9-5-14-2s1 8 6 6M50 10c6 0 10 4 16 0M82 10c-6 0-10 4-16 0' stroke='%23b3262d' stroke-width='1.3'/%3E%3Ccircle cx='66' cy='8' r='2.2' fill='%23b08b3e'/%3E%3C/g%3E%3C/svg%3E");
  --washi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body { background: var(--paper) var(--washi); }

/* ヘッダー：上に紅白の細い帯と金の線 */
.site-h { background: var(--card); border-bottom: 1px solid var(--line); }
.site-h::before { content: ""; display: block; height: 5px; background: linear-gradient(180deg, var(--accent) 0 3px, var(--card) 3px 4px, var(--gold) 4px 5px); }
.logo-seal { font-family: var(--brush); font-weight: 400; font-size: 14px; border-radius: 3px; }
.nav-ja { font-family: var(--min); }

/* 見出しは筆文字（英語のページは明朝） */
.hero h1, .page-h, .sec-h { font-family: var(--brush); font-weight: 400; letter-spacing: .06em; }
body.en .hero h1, body.en .page-h, body.en .sec-h { font-family: var(--min); font-weight: 700; letter-spacing: .01em; }
.hero h1 { line-height: 1.45; }
.sec-h::after { width: 132px; height: 16px; background: var(--mizuhiki) center / contain no-repeat; margin-top: 10px; }
.sec-h.left::after { background-position: left center; margin-left: -2px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); flex: none; }
body.en .eyebrow { letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }

/* ヒーロー：右上に青海波を薄く */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--card) 0%, rgba(247,242,232,.6) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--seigaiha) repeat; opacity: .32;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, rgba(0,0,0,.35) 35%, transparent 62%); mask-image: linear-gradient(200deg, #000 0%, rgba(0,0,0,.35) 35%, transparent 62%); pointer-events: none; }
.hero-in { position: relative; }
.hero-card img { box-shadow: 0 1px 2px rgba(60,40,20,.08), 0 14px 36px rgba(60,40,20,.14); }

/* 使い方・カード類：上に金の細線 */
.step, .more-c, .cta-box, .rv-intro-c { border-top: 2px solid var(--gold-soft); }
.step h2, .more-c strong, .cta-t, .rv-intro-c strong { font-family: var(--min); }
.form { border-top: 3px solid var(--accent); }
.write { background: linear-gradient(180deg, transparent, rgba(239,230,212,.45)); }

/* みんなの抱負の帯：七宝を薄く */
.grp-intro { position: relative; overflow: hidden; }
.grp-intro::before { content: ""; position: absolute; inset: 0; background: var(--shippo) repeat; opacity: .18; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.grp-in { position: relative; }

/* フッター：墨に麻の葉 */
.site-f { position: relative; background: #1e1b18; border-top: 3px solid var(--accent); }
.site-f::before { content: ""; position: absolute; inset: 0; background: var(--asanoha) repeat; opacity: .12; pointer-events: none; }
.f-in { position: relative; }

/* デザインの選択（4つ） */
.styles { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .styles { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.style-opt { padding: 6px; }
.style-d { font-size: 12px; }

/* 英語版：English の案内（日本語以外のブラウザだけ） */
.lang-bar { background: var(--ink); color: #f0e9de; font-size: 14px; }
.lang-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.lang-bar a { color: #fff; font-weight: 700; text-decoration: none; }
.lang-bar a:hover { text-decoration: underline; }
.lang-x { font: inherit; font-size: 20px; line-height: 1; background: none; border: 0; color: #d8d0c4; cursor: pointer; padding: 6px 8px; }
.sbtn-wa { background: #1f8f4e; color: #fff; border-color: #1f8f4e; }

/* 英語版：一文字を意味から選ぶ */
.kanji-in.en { display: block; }
.in-kanji-en { max-width: 360px; }
.kanji-pv { margin: 8px 0 0; font-family: var(--min); font-weight: 700; font-size: 20px; color: var(--accent); min-height: 1.4em; line-height: 1.4; }
.kpick { margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.kpick summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.kpick[open] summary { margin-bottom: 10px; }
.kpick-q { min-height: 44px; font-size: 16px; margin-bottom: 10px; }
.kpick-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; max-height: 330px; overflow-y: auto; }
.kpick-b { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0; font: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 4px; cursor: pointer; color: var(--ink); }
.kpick-b:hover { border-color: var(--accent); }
.kpick-b.on { border-color: var(--accent); background: var(--accent-soft); }
.kpick-ch { font-family: var(--brush); font-size: 30px; line-height: 1.25; }
.kpick-m { font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; }
.kpick-r { font-size: 11px; color: var(--sub); line-height: 1.3; }
.kanji-note { margin: 4px 0 0; font-family: var(--min); font-weight: 700; color: var(--sub); }
.kanji-note span[lang] { color: var(--ink); font-size: 1.2em; margin-right: 2px; }
.kfilter { max-width: 420px; margin-top: 8px; }
.kanji-grid.en { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.kanji-grid .kanji-ch { font-family: var(--brush); font-weight: 400; }
.kanji-e { font-family: var(--min); font-weight: 700; font-size: 17px; line-height: 1.3; margin-bottom: 4px; }
@media (max-width: 400px) { .kanji-grid.en { grid-template-columns: 1fr 1fr; } }
.in-kanji { font-family: var(--brush); font-weight: 400; }
.grp-k { font-family: var(--brush); font-weight: 400; }
body.en .rei-t { font-size: 16px; }
@media (max-width: 400px) { body.en .nav a { padding: 8px 4px; font-size: 13px; } }

/* line breaks: avoid short last lines; Japanese breaks at phrase boundaries */
p, li, .lead, .help, .note, dd { text-wrap: pretty; }
h1, h2, h3, .cta-t, .sec-h, .page-h, .more-c strong { text-wrap: balance; }
html[lang="ja"] body { word-break: auto-phrase; }
.hero-btns .btn { flex-wrap: wrap; row-gap: 0; }
.hero-btns .btn small { white-space: nowrap; }

/* 会社・学校向け（準備中） */
.team-box { margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r); background: var(--card); display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; }
.team-box p { margin: 0; flex: 1 1 260px; font-size: 15px; line-height: 1.8; }
.team-box strong { display: block; }
.team-list { margin: 16px 0; padding-left: 1.3em; line-height: 1.9; }
.opts { display: grid; gap: 8px; }
label.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #fff; border: 1px solid #cbbfaa; border-radius: var(--r); cursor: pointer; line-height: 1.6; }
label.opt input { margin-top: 5px; flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
select.in { appearance: auto; }

/* 特別版 */
.plus-box { margin: 28px 0; padding: 4px 18px 16px; border: 1px solid #d8c08a; border-radius: var(--r); background: linear-gradient(180deg, #fbf5e6, var(--card)); }
.plus-list { margin: 14px 0 16px; padding-left: 1.3em; line-height: 1.9; }
.plus-box .help a { white-space: nowrap; }
table.legal th { width: 32%; text-align: left; vertical-align: top; white-space: normal; }
table.legal td { line-height: 1.8; }
.plus-box > .sec-h2:first-child { margin-top: 14px; }

/* チーム版（会社・学校向け） */
.team-plans { display: grid; gap: 10px; margin: 6px 0 14px; }
.team-buy { margin: 0 0 10px; }
.team-plans .team-buy { margin: 0; }
.team-plan .form { margin-top: 14px; }
.team-plan .dl { margin: 14px 0 6px; }
.in.in-s { width: auto; min-height: 34px; padding: 4px 8px; font-size: 14px; margin: 4px 4px 0 0; }

/* 仕事始め・学校の例文ページ */
.speech { display: flex; gap: 16px; padding: 16px; margin: 0 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.speech-k { flex: none; width: 64px; font-family: var(--min); font-size: 48px; line-height: 1.1; text-align: center; color: var(--ink); }
.speech-b { min-width: 0; }
.speech-b p { margin: 0 0 8px; line-height: 1.85; }
.speech-t { font-weight: 700; font-size: 17px; }
.speech .rei-use { display: inline-block; }
.kanji-grid.kanji-grid-s { margin: 12px 0; }
.cta-box .btn + .btn { margin-left: 6px; }
@media (max-width: 480px) { .speech { gap: 12px; padding: 14px; } .speech-k { width: 44px; font-size: 36px; } .cta-box .btn + .btn { margin: 8px 0 0; } }

/* 書いている途中のカードの見本 */
.live { margin: 8px 0 22px; }
.live-fig { margin: 6px 0 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #f6f2ea; aspect-ratio: 1200 / 630; transition: opacity .2s; }
.live-fig img { display: block; width: 100%; height: auto; }
.live.busy .live-fig { opacity: .6; }
.live-msg:empty { display: none; }
/* 見本の形：縦長・年賀状は小さめに（スマホで入力欄やボタンが遠くならないよう、画面の高さの4割ほどまで）2026-11-16 */
.live[data-shape="post"] .live-fig { aspect-ratio: 1080 / 1350; width: 100%; width: min(100%, 360px, calc(56vh * .8)); margin-left: auto; margin-right: auto; }
.live[data-shape="nenga"] .live-fig { aspect-ratio: 1181 / 1748; width: 100%; width: min(100%, 330px, calc(56vh * .676)); margin-left: auto; margin-right: auto; }
@media (max-width: 700px) {
  .live[data-shape="post"] .live-fig { width: min(100%, 360px, calc(38vh * .8)); }
  .live[data-shape="nenga"] .live-fig { width: min(100%, 330px, calc(38vh * .676)); }
}
.shape-sw { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 12px; }
.live .shape-sw { margin: 6px 0 4px; }
.shape-l { font-size: 13px; color: var(--sub); margin-right: 4px; }
.shape-sw button { font: inherit; font-size: 14px; line-height: 1.2; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: inherit; cursor: pointer; }
.shape-sw button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.shape-sw button:focus-visible { outline: 3px solid #e2a6a0; outline-offset: 2px; }
/* 縦長・年賀状のデザインの見本：細い列で並べる（スマホは2列・名前と説明も。4列は小さいとユーザーの指示・2026-11-16） */
.styles.styles-tall { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
@media (max-width: 700px) { .styles.styles-tall { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* 拡散：画像のまま共有・Threads・ページの共有・友だちにすすめる */
.sbtn-th { background: #000; color: #fff; border-color: #000; }
.sbtn-img { background: var(--accent); color: var(--accent-ink); border-color: transparent; flex-basis: 100%; justify-content: center; }
.sbtn-img:hover { filter: brightness(1.06); border-color: transparent; }
.page-share { padding-top: 8px; padding-bottom: 40px; }
.page-share .ps-t { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--sub); margin: 0 0 8px; }
.invite-f { margin: 20px 0 0; padding: 16px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); }
.invite-t { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; }
.invite-f .help { margin: 0 0 10px; }

/* 抱負とは：よくある質問・表の横スクロール */
.faq { margin: 0; }
.faq dt { font-weight: 700; margin: 18px 0 4px; padding-left: 1.6em; text-indent: -1.6em; }
.faq dt::before { content: "Q"; display: inline-block; width: 1.6em; text-indent: 0; color: var(--accent); font-family: var(--min); }
.faq dd { margin: 0; padding-left: 1.6em; color: var(--ink); }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-wrap .cmp { min-width: 0; }
@media (max-width: 520px) { .tbl-wrap .cmp th, .tbl-wrap .cmp td { font-size: 14px; padding: 8px; } .tbl-wrap .cmp td:first-child { white-space: nowrap; } }
.more-sub { text-align: center; margin: 18px 0 0; font-size: 15px; }
.kj { font-family: var(--min); font-weight: 700; font-size: 1.25em; }
.sbtn[hidden] { display: none; }   /* 共有できない端末では出さない */

/* =====================================================================
   背景の絵：京都の森の神社（日本画ふう・2026-11-16）。字の側は和紙の色を重ねて読みやすく
   ===================================================================== */
:root { --shrine-w: image-set(url("/assets/bg/shrine-w.webp") type("image/webp"), url("/assets/bg/shrine-w.jpg") type("image/jpeg"));
        --shrine-t: image-set(url("/assets/bg/shrine-t.webp") type("image/webp"), url("/assets/bg/shrine-t.jpg") type("image/jpeg")); }
.hero { background: linear-gradient(90deg, rgba(247,242,232,.96) 0%, rgba(247,242,232,.88) 38%, rgba(247,242,232,.35) 70%, rgba(247,242,232,.12) 100%), url("/assets/bg/shrine-w.jpg") right center / cover no-repeat;
        background: linear-gradient(90deg, rgba(247,242,232,.96) 0%, rgba(247,242,232,.88) 38%, rgba(247,242,232,.35) 70%, rgba(247,242,232,.12) 100%), var(--shrine-w) right center / cover no-repeat; }
.hero::before { display: none; }
@media (max-width: 860px) {
  .hero { background: linear-gradient(180deg, rgba(247,242,232,.95) 0%, rgba(247,242,232,.86) 45%, rgba(247,242,232,.45) 100%), url("/assets/bg/shrine-t.jpg") center bottom / cover no-repeat;
          background: linear-gradient(180deg, rgba(247,242,232,.95) 0%, rgba(247,242,232,.86) 45%, rgba(247,242,232,.45) 100%), var(--shrine-t) center bottom / cover no-repeat; }
}

/* おみくじ */
.omi .page-h { margin-bottom: 10px; }
.omi-sample img { max-width: min(400px, 100%); }
.omi-form { margin: 24px 0 0; }
.omi-city-lab { margin-top: 16px; }
.omi-banner { display: flex; align-items: center; gap: 18px; margin: 28px auto 0; max-width: 760px; padding: 18px 20px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-top: 2px solid var(--gold-soft); border-radius: var(--r);
  background: linear-gradient(90deg, rgba(255,253,248,.97) 0%, rgba(255,253,248,.9) 55%, rgba(255,253,248,.55) 100%), url("/assets/bg/shrine-w.jpg") right 30% / cover no-repeat; }
.omi-banner:hover { border-color: var(--gold); }
.omi-banner strong { display: block; font-family: var(--min); font-size: 18px; }
.omi-banner span span, .omi-banner > span:last-child { font-size: 15px; color: var(--sub); }
.omi-banner-k { flex: none; width: 64px; height: 64px; display: grid; place-items: center; background: var(--accent); color: #fbf5e8; font-family: var(--brush); font-size: 26px; border-radius: 3px; writing-mode: vertical-rl; letter-spacing: .05em; }
.omi-res .omi-head { text-align: center; padding: 28px 16px 22px; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,253,248,.9), rgba(255,253,248,.82)), url("/assets/bg/shrine-w.jpg") center 35% / cover no-repeat; }
.omi-level { font-family: var(--brush); font-size: clamp(72px, 18vw, 120px); line-height: 1.1; color: var(--accent); margin: 0; letter-spacing: .08em; }
.omi-read { margin: 4px 0 8px; color: var(--sub); font-weight: 700; }
.omi-who { margin: 0; font-family: var(--min); font-weight: 700; font-size: 19px; }
.omi-msg { font-family: var(--min); font-size: 19px; line-height: 2; margin: 22px 0; padding: 0 4px; }
.omi-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0 0 18px; border-top: 1px solid var(--line); }
.omi-cats > div, .omi-luck > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.omi-cats dt, .omi-luck dt { font-family: var(--min); font-weight: 700; color: var(--accent); font-size: 15px; }
.omi-cats dt span { color: var(--sub); font-weight: 500; margin-left: 4px; }
.omi-cats dd, .omi-luck dd { margin: 2px 0 0; }
.omi-luck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 18px; margin: 0 0 20px; }
@media (max-width: 560px) { .omi-cats { grid-template-columns: 1fr; } .omi-luck { grid-template-columns: 1fr 1fr; } }
.omi-kanji { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 28px; }
.omi-kanji p { margin: 0 0 10px; }
.omi-kj { flex: none; width: 84px; height: 84px; display: grid; place-items: center; background: var(--accent); color: #fbf5e8; font-family: var(--brush); font-size: 54px; border-radius: 3px; }
@media (max-width: 560px) { .omi-kanji { flex-direction: column; text-align: center; } .omi-kanji .btn { width: 100%; } }
/* 引いた直後：紙が開くように */
.omi-fresh .omi-head { animation: omi-open .9s cubic-bezier(.2,.8,.2,1) both; }
.omi-fresh .omi-level { animation: omi-ink 1.2s .35s ease-out both; }
@keyframes omi-open { from { transform: scaleY(.15); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes omi-ink { from { opacity: 0; filter: blur(6px); transform: scale(1.15); } to { opacity: 1; filter: none; transform: none; } }
@media (prefers-reduced-motion: reduce) { .omi-fresh .omi-head, .omi-fresh .omi-level { animation: none; } }
/* 書き順と読みの音声 */
.kanji-grid li { position: relative; }
.kanji-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.kanji-tools-t { position: static; display: inline-flex; gap: 6px; vertical-align: middle; margin-left: 8px; }
.kvg-btn, .yomi-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--accent); cursor: pointer; vertical-align: middle; }
.kvg-btn:hover, .yomi-btn:hover, .yomi-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.kvg-btn .ic, .yomi-btn .ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yomi-btn .ic path:first-child { fill: currentColor; }
.kvg-btn-t { width: auto; border-radius: var(--r); padding: 0 12px 0 10px; gap: 6px; display: inline-flex; align-items: center; font: inherit; font-size: 14px; font-weight: 700; height: 34px; }
.yomi-btn { margin: 0 4px; }
.kj-row { display: flex; gap: 8px; flex-wrap: wrap; }
.kvg-dlg { width: min(420px, calc(100vw - 24px)); padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.kvg-dlg::backdrop { background: rgba(31,28,25,.55); }
.kvg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kvg-info { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kvg-ch { font-family: var(--min); font-weight: 700; font-size: 32px; line-height: 1.2; }
.kvg-read { color: var(--sub); font-size: 14px; line-height: 1.5; }
.kvg-x { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--sub); padding: 0 4px; }
.kvg-box { margin: 10px auto 0; width: 100%; max-width: 340px; aspect-ratio: 1; background: #fffaf0; border: 1px solid var(--line); border-radius: var(--r); }
.kvg-svg { width: 100%; height: 100%; display: block; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.kvg-svg.tracing { touch-action: none; cursor: crosshair; }
.kvg-grid rect, .kvg-grid line { fill: none; stroke: #e6d9c2; stroke-width: .5; stroke-dasharray: 2 2; }
.kvg-ghost path { fill: none; stroke: #e9e1d2; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.kvg-ink path { fill: none; stroke: var(--ink); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.kvg-live { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.kvg-dot { fill: var(--accent); }
.kvg-msg { min-height: 1.8em; margin: 8px 0 4px; text-align: center; font-size: 15px; font-weight: 700; color: var(--ink); }
.kvg-ctrl { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.kvg-ctrl .sbtn { font-size: 14px; }
.kvg-ctrl .sbtn[hidden] { display: none; }
.kvg-credit { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--sub); }
.f-credit { font-size: 12px; color: inherit; opacity: .8; margin: 4px 0 0; }
.f-credit a { color: inherit; }
/* 絵馬の掲示板 */
.ema-banner { margin-top: 12px; }
.ema-banner .omi-banner-k { background: #b98a52; }
.ema-top { padding: 28px 0 32px; background: linear-gradient(90deg, rgba(247,242,232,.97) 0%, rgba(247,242,232,.9) 50%, rgba(247,242,232,.62) 100%), url("/assets/bg/shrine-w.jpg") right 40% / cover no-repeat;
  background: linear-gradient(90deg, rgba(247,242,232,.97) 0%, rgba(247,242,232,.9) 50%, rgba(247,242,232,.62) 100%), var(--shrine-w) right 40% / cover no-repeat; border-bottom: 1px solid var(--line); }
.ema-form { background: rgba(255,253,248,.92); }
.ema-board-wrap { padding-top: 8px; padding-bottom: 8px; }
.ema-count { font-size: 15px; color: var(--sub); font-family: var(--got); font-weight: 500; }
.ema-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 30px 16px; padding: 34px 18px 26px; border-radius: var(--r);
  background: linear-gradient(rgba(60,40,20,.55), rgba(60,40,20,.55)), url("/assets/bg/shrine-w.jpg") center / cover;
  background: linear-gradient(rgba(60,40,20,.55), rgba(60,40,20,.55)), var(--shrine-w) center / cover; }
.ema { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 168px; padding: 52px 14px 14px; text-decoration: none; color: #2a1a0c;
  clip-path: polygon(0 26%, 50% 0, 100% 26%, 100% 100%, 0 100%);
  background: repeating-linear-gradient(176deg, rgba(150,105,55,.0) 0 9px, rgba(150,105,55,.13) 9px 10px), linear-gradient(180deg, #e3c394, #d5ae79); transform: rotate(-1.5deg); transition: transform .2s; }
.ema:nth-child(3n) { transform: rotate(1.8deg); }
.ema:nth-child(4n+1) { transform: rotate(.6deg); }
a.ema:hover { transform: rotate(0) translateY(-3px); }
.ema::after { content: ""; position: absolute; left: 0; right: 0; top: calc(26% + 6px); height: 2px; background: rgba(140,95,50,.45); }
.ema-cord { position: absolute; top: 14px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #5a3a1c; box-shadow: 0 0 0 3px #c0262d; }
.ema-y { font-family: var(--min); font-size: 12px; color: #6b4a28; margin-top: 4px; letter-spacing: .1em; }
.ema-w { font-family: var(--min); font-weight: 700; font-size: 17px; line-height: 1.6; text-align: center; margin: 8px 0 6px; overflow-wrap: anywhere; }
.ema-m .ema-w { font-size: 15px; }
.ema-s .ema-w { font-size: 13px; line-height: 1.55; }
.ema-n { margin-top: auto; align-self: flex-end; font-family: var(--min); font-size: 13px; color: #6b4a28; }
.ema-sample { opacity: .85; }
.ema-empty { grid-column: 1 / -1; margin: 0; color: #fbf5e8; font-weight: 700; text-align: center; }
.ema-stage { padding: 36px 16px; border-radius: var(--r); display: flex; justify-content: center; margin: 8px 0 24px;
  background: linear-gradient(rgba(60,40,20,.35), rgba(60,40,20,.35)), url("/assets/bg/shrine-w.jpg") right center / cover; background: linear-gradient(rgba(60,40,20,.35), rgba(60,40,20,.35)), var(--shrine-w) right center / cover; }
.ema.ema-big { width: min(420px, 100%); min-height: 330px; padding: 96px 30px 26px; transform: none; }
.ema-big .ema-y { font-size: 16px; }
.ema-big .ema-cord { top: 28px; width: 16px; height: 16px; margin-left: -8px; box-shadow: 0 0 0 4px #c0262d; }
.ema-big .ema-w { font-size: 26px; margin-top: 18px; }
.ema-big.ema-m .ema-w { font-size: 22px; }
.ema-big.ema-s .ema-w { font-size: 18px; }
.ema-big .ema-n { font-size: 17px; }
.pager { display: flex; justify-content: center; gap: 10px; margin: 18px 0 0; }
@media (max-width: 560px) { .ema-board { grid-template-columns: 1fr 1fr; gap: 24px 12px; padding: 28px 12px 20px; } .ema { min-height: 150px; padding: 46px 10px 12px; } .ema-w { font-size: 15px; } }

/* 名前を漢字に */
.kn-form .kn-kana { font-size: 20px; letter-spacing: .08em; }
.kn-res { margin-top: 28px; }
.kn-show { display: flex; align-items: center; gap: 24px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.kn-seal { width: 150px; height: 150px; flex: none; }
.kn-big { font-family: "Yuji Syuku", var(--min); font-size: 64px; line-height: 1.15; margin: 0; letter-spacing: .06em; }
.kn-kana-show { margin: 6px 0 0; color: var(--sub); font-size: 15px; }
.kn-sound { border: 0; padding: 0; margin: 0 0 14px; }
.kn-sound legend { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.kn-sound { display: flex; flex-wrap: wrap; gap: 8px; }
.kn-sound legend { width: 100%; }
.kn-opt { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); cursor: pointer; min-height: 44px; }
.kn-opt input { position: absolute; opacity: 0; pointer-events: none; }
.kn-opt.on, .kn-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kn-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.kn-ch { font-family: var(--min); font-weight: 700; font-size: 26px; line-height: 1; }
.kn-m { font-size: 14px; color: var(--sub); }
@media (max-width: 560px) { .kn-show { flex-direction: column; text-align: center; } .kn-big { font-size: 52px; } }

/* 英語の年賀状 */
.ecard-designs { border: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ecard-designs legend { padding: 0; margin-bottom: 6px; }
.ecard-opt { position: relative; display: block; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--card); }
.ecard-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ecard-opt span { display: block; text-align: center; font-size: 14px; font-weight: 700; padding: 4px 0 6px; }
.ecard-opt.on, .ecard-opt:has(input:checked) { border-color: var(--accent); }
.ecard-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .ecard-designs { grid-template-columns: 1fr 1fr; } }
.ec-words dt { font-weight: 700; margin: 16px 0 2px; }
.ec-words dd { margin: 0; }
.ecard-one .narrow-c { max-width: 760px; margin: 0 auto; }
.ecard-fig { margin: 8px auto 20px; max-width: 1000px; }
.ecard-fig img { width: 100%; border-radius: var(--r); box-shadow: 0 10px 30px rgba(60,40,20,.25); animation: ec-open .9s cubic-bezier(.2,.8,.2,1) both; transform-origin: 50% 80%; }
@keyframes ec-open { from { opacity: 0; transform: perspective(900px) rotateX(18deg) translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ecard-fig img { animation: none; } }
.ecard-say { font-family: var(--min); font-size: 22px; font-weight: 700; text-align: center; line-height: 1.6; }
.ecard-say .help { font-family: var(--got); font-size: 14px; font-weight: 500; }

/* お正月の過ごし方 */
.guide-key { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 6px 18px; margin: 0 0 20px; }
.guide-key p { margin: 10px 0; }
.toc ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.glist { margin: 0; }
.gitem { padding: 14px 0; border-bottom: 1px solid var(--line); }
.gitem dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.g-ja { font-family: var(--min); font-weight: 700; font-size: 24px; }
.g-ro { font-weight: 700; color: var(--accent); }
.g-en { color: var(--sub); font-size: 15px; }
.gitem dd { margin: 6px 0 0; }
.guide-more { grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; }
@media (max-width: 560px) { .guide-more { grid-template-columns: 1fr; } }
form.inline { display: inline; margin: 0 4px 0 0; }
tr.off td { opacity: .55; }

/* SEO で足した中身：絵馬の例文・人気の名前の表・関連リンク */
.ema-ex { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.ema-ex li { background: #f3e2c2; border: 1px solid #d8b98a; border-radius: 6px; padding: 10px 14px; font-family: var(--min); line-height: 1.7; }
.ema-ex strong { display: block; line-height: 1.5; font-family: var(--got); font-size: 13px; color: var(--accent); }
.kn-pop td, .kn-pop th { padding: 8px 10px; }
.kn-pop td:last-child { font-weight: 400; color: var(--sub); font-size: 14px; }
.kn-pop-k { font-family: var(--min); font-size: 20px; color: #b0232a; white-space: nowrap; }
.related-jp { margin-top: 40px; margin-bottom: 24px; }

/* 年額パス */
.pass-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0; }
.pass-plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 14px; }
.pass-plan.pass-main { border: 2px solid var(--accent); }
.pass-name { font-family: var(--min); font-size: 19px; margin: 0 0 6px; }
.pass-price { font-size: 30px; font-weight: 700; margin: 0; line-height: 1.3; }
.pass-price small { font-size: 15px; font-weight: 500; color: var(--sub); }
.pass-for { color: var(--sub); font-size: 15px; line-height: 1.7; margin: 6px 0 0; }
.pass-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.radio { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.pass-org { display: block; font-size: 16px; color: var(--sub); font-family: var(--got); margin-top: 4px; }
.pass-status { font-weight: 700; padding: 10px 14px; border-radius: var(--r); }
.pass-status.ok { background: #eef6ea; color: #2f5d22; }
.pass-status.off { background: #fbefe6; color: #8a3b12; }
.pass-boards { list-style: none; padding: 0; margin: 0; }
.pass-boards li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pass-boards li strong { flex: 1 1 100%; font-family: var(--min); font-size: 18px; }
@media (max-width: 560px) { .pass-plans { grid-template-columns: 1fr; } }

/* 季節の掲示板：七夕の短冊・節分 */
.wish-top { padding: 34px 0 10px; }
.wish-tz { background: linear-gradient(180deg, #1b2a55 0, #2b3f78 100%); padding-bottom: 34px; }
.wish-tz .eyebrow, .wish-tz .page-h, .wish-tz > .wrap > .lead { color: #fbf5e8; }
.wish-tz .lead a { color: #f4d27a; }
.wish-tz .wish-form { margin-top: 18px; }
.wish-board { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.wb-tz { background: linear-gradient(180deg, #1b2a55, #2e467f); border-radius: var(--r); padding: 22px 16px 26px; justify-content: center; }
.tz { --c: #e7473c; position: relative; display: flex; flex-direction: column; align-items: center; width: 86px; min-height: 250px; padding: 30px 8px 12px; background: var(--c); color: #1d1a16; text-decoration: none; border-radius: 2px; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.tz::after { content: ""; position: absolute; inset: 22px 6px 6px; background: rgba(255,255,255,.88); z-index: 0; }
.tz > * { position: relative; z-index: 1; }
.tz-c1 { --c: #2f6db5; } .tz-c2 { --c: #e9b528; } .tz-c3 { --c: #3a9b5a; } .tz-c4 { --c: #8a56b8; }
.tz-hole { position: absolute; top: 7px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #1b2a55; z-index: 1; }
.tz-hole::before { content: ""; position: absolute; left: 4px; bottom: 8px; width: 2px; height: 26px; background: #e8dcc0; }
.tz-w { font-family: var(--min); font-weight: 700; font-size: 17px; line-height: 1.5; word-break: break-word; flex: 1; }
.tz-v .tz-w { writing-mode: vertical-rl; text-orientation: upright; font-size: 19px; letter-spacing: .06em; line-height: 1.3; max-height: 230px; }
.tz-m .tz-w { font-size: 15px; } .tz-v.tz-m .tz-w { font-size: 16px; }
.tz-s .tz-w { font-size: 13px; } .tz-v.tz-s .tz-w { font-size: 14px; }
.tz-n { margin-top: 8px; font-size: 12px; color: #4a3f33; }
.tz-v .tz-n { writing-mode: vertical-rl; }
/* 英語の短冊は横向き（字を右へ倒して縦に流す）＝和紙の短冊と同じ細長い形のまま */
.tz-r .tz-w { writing-mode: vertical-rl; font-size: 18px; line-height: 1.3; flex: none; height: 220px; }
.tz-r.tz-m .tz-w { font-size: 15px; } .tz-r.tz-s .tz-w { font-size: 13px; }
.tz-r .tz-n { writing-mode: vertical-rl; }
.tz-r.is-big .tz-w { font-size: 26px; height: 330px; }
a.tz:hover { transform: translateY(-2px); }
.tz.is-big { width: 130px; min-height: 380px; }
.tz.is-big .tz-w { font-size: 24px; } .tz-v.is-big .tz-w { font-size: 28px; max-height: 340px; }
.wish-stage { display: flex; justify-content: center; padding: 26px 10px; border-radius: var(--r); }
.wish-stage.wb-tz { background: linear-gradient(180deg, #1b2a55, #2e467f); }
.onic { position: relative; display: block; width: 232px; padding: 14px 14px 14px 76px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; min-height: 96px; }
.onic-face { position: absolute; left: 12px; top: 18px; width: 52px; height: 56px; border-radius: 50% 50% 46% 46%; background: #d2442e; }
.onic-face::before, .onic-face::after { content: ""; position: absolute; top: -10px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 16px solid #f2c14e; }
.onic-face::before { left: 6px; transform: rotate(-14deg); } .onic-face::after { right: 6px; transform: rotate(14deg); }
.onic-l { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #b3262d; border-radius: 3px; padding: 0 6px; margin-top: 2px; }
.onic-l.onic-in { background: #a8873a; margin-top: 8px; }
.onic-w { display: block; font-family: var(--min); font-weight: 700; font-size: 16px; line-height: 1.5; word-break: break-word; }
.onic-n { display: block; margin-top: 6px; font-size: 12px; color: var(--sub); }
a.onic:hover { border-color: var(--accent); }
.onic.is-big { width: min(100%, 420px); padding: 22px 22px 22px 110px; }
.onic.is-big .onic-face { width: 74px; height: 80px; left: 18px; top: 26px; }
.onic.is-big .onic-w { font-size: 22px; }
.is-sample { opacity: .8; }
.kit-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kit-list a { display: block; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.kit-list a:hover { border-color: var(--accent); }
.kit-list strong { display: block; font-family: var(--min); }
.kit-list span { font-size: 13px; color: var(--sub); }
@media (max-width: 560px) { .kit-list { grid-template-columns: 1fr; } .tz { width: 74px; } .onic { width: 100%; } }
/* 名前の落款パック（2026-11-16） */
.kn-pack .sub-h{margin-top:0}
.kn-pack-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:10px 0}
.kn-pack-row img{width:84px;height:84px;background:repeating-conic-gradient(#f3efe6 0 25%,#fff 0 50%) 0 0/16px 16px;border-radius:5px}
.kn-pack-dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin:16px 0}
.kn-pack-dl figure{margin:0;text-align:center}
.kn-pack-dl img{display:block;margin:0 auto;width:100%;max-width:200px;height:auto;background:repeating-conic-gradient(#f3efe6 0 25%,#fff 0 50%) 0 0/20px 20px;border-radius:5px}
.kn-pack-dl figcaption{font-size:.9rem;margin-top:6px}
.kn-pack-dl .sbtn{margin-top:6px}
.keep-up{margin:10px 0 0;padding:10px 12px;font-size:.92rem;background:#fbf5e6;border:1px solid #e6d5aa;border-radius:5px}
.keep-up svg{width:1em;height:1em;vertical-align:-.12em;margin-right:4px;color:#b0232a}
/* 提携リンクの枠（2026-11-16） */
.aff{margin-top:28px;margin-bottom:8px}
.aff-h{font-weight:700;margin:0 0 8px}
.aff-tag{display:inline-block;font-size:11px;font-weight:700;padding:1px 6px;margin-right:8px;border:1px solid var(--sub);color:var(--sub);border-radius:3px;vertical-align:.1em}
.aff-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.aff-list a{display:block;height:100%;padding:10px 12px;border:1px solid var(--line,#e5dccb);border-radius:5px;background:var(--card);text-decoration:none;color:inherit}
.aff-list a:hover{border-color:#b0232a}
.aff-list strong{display:block}
.aff-list span{display:block;font-size:.88rem;color:var(--sub)}
.aff .help{font-size:.8rem}
.nw{white-space:nowrap}
/* 幅360px前後のスマホでヘッダーがはみ出さないように（2026-11-16） */
@media (max-width: 380px) {
  .h-in { gap: 6px; }
  .logo { gap: 7px; }
  .logo-seal { width: 34px; height: 34px; font-size: 12px; }
  .logo-t { font-size: 15px; }
  .nav a, body.en .nav a { padding: 8px 4px; font-size: 13px; }
  .nav .nav-cta { padding: 8px 10px; margin-left: 2px; }
}
.hist.legal th, .hist.legal td { white-space: normal; }
/* トップの「次の行事」と英語トップの先生向け（2026-11-16） */
.season { margin-top: 28px; margin-bottom: 8px; }
.season-c { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 5px; color: var(--ink); text-decoration: none; }
.season-c:hover { border-color: var(--accent); }
.season-c strong { font-family: var(--min); font-size: 24px; line-height: 1.3; }
.season-c strong small { font-family: var(--got); font-size: 15px; color: var(--accent); font-weight: 700; margin-left: 6px; white-space: nowrap; }
.season-c > span:nth-child(3) { color: var(--sub); line-height: 1.7; }
.season-go { color: var(--accent); font-weight: 700; }
.season-all { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 2px 0; font-size: 14px; color: var(--sub); }
.season-all a { color: var(--ink); }
.teach { margin-top: 40px; }
.teach-in { padding: 24px; border: 1px solid #d8c08a; border-radius: 5px; background: linear-gradient(180deg, #fbf5e6, var(--card)); }
.teach-h { font-family: var(--min); font-size: 24px; line-height: 1.35; margin: 6px 0 10px; }
.teach-in p { color: var(--sub); line-height: 1.75; margin: 0 0 14px; }
.teach-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .teach-btns .btn { width: 100%; } .season-c strong { font-size: 21px; } }
/* フッターのまとまり（2026-11-16） */
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin: 0 0 7px; line-height: 1.5; }
.f-h { margin: 0 0 10px; font-family: var(--min); font-weight: 700; color: #fff; font-size: 15px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.18); }
.f-lang { margin: 0 0 12px; }
.f-lang a { color: #f0e9de; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; padding: 5px 12px; text-decoration: none; display: inline-block; }
@media (max-width: 860px) { .f-nav { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .f-nav { gap: 18px 16px; } .f-col li { font-size: 13px; } }
/* 楽しさの直し（2026-11-16）：鬼の顔・豆まき・短冊と絵馬のゆれ・カードのお披露目 */
.onic-face i { position: absolute; display: block; }
.onic-face .oe { top: 36%; width: 24%; height: 21%; background: #fff; border-radius: 50%; }
.onic-face .oe.l { left: 17%; } .onic-face .oe.r { right: 17%; }
.onic-face .oe::after { content: ""; position: absolute; left: 30%; top: 28%; width: 48%; height: 56%; background: #1d1a16; border-radius: 50%; }
.onic-face .oe::before { content: ""; position: absolute; top: -48%; left: -12%; width: 124%; height: 26%; background: #1d1a16; border-radius: 2px; transform: rotate(20deg); }
.onic-face .oe.r::before { transform: rotate(-20deg); }
.onic-face .om { left: 26%; bottom: 13%; width: 48%; height: 15%; background: #6e1610; border-radius: 0 0 50% 50%; }
.onic-face .om::before, .onic-face .om::after { content: ""; position: absolute; top: 0; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 6px solid #fff; }
.onic-face .om::before { left: 12%; } .onic-face .om::after { right: 12%; }
.onic.is-big .onic-face .om::before, .onic.is-big .onic-face .om::after { border-left-width: 4px; border-right-width: 4px; border-top-width: 9px; }
.beans { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3; }
.beans i { position: absolute; left: 55px; top: 66px; width: 11px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f7e3b0, #d4a85a 70%); box-shadow: 0 1px 1px rgba(0,0,0,.25); opacity: 0; }
.moment .beans i { animation: bean .55s cubic-bezier(.3,.6,.4,1) both; }
.beans i:nth-child(1) { --x: 260px; --y: 90px;  animation-delay: .15s !important; }
.beans i:nth-child(2) { --x: 300px; --y: 20px;  animation-delay: .3s !important; }
.beans i:nth-child(3) { --x: 240px; --y: 140px; animation-delay: .42s !important; }
.beans i:nth-child(4) { --x: 320px; --y: 70px;  animation-delay: .55s !important; }
.beans i:nth-child(5) { --x: 280px; --y: -20px; animation-delay: .66s !important; }
.beans i:nth-child(6) { --x: 230px; --y: 60px;  animation-delay: .78s !important; }
.beans i:nth-child(7) { --x: 310px; --y: 120px; animation-delay: .9s !important; }
@keyframes bean { 0% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(0); } 80% { opacity: 1; transform: translate(4px, 2px) rotate(300deg); } 100% { opacity: 0; transform: translate(-14px, 30px) rotate(360deg); } }
.moment .onic-face { animation: oni-flee 2.3s ease-in both; }
@keyframes oni-flee { 0%, 20% { transform: none; opacity: 1; } 26% { transform: translateX(-3px) rotate(-6deg); } 32% { transform: translateX(3px) rotate(6deg); } 38% { transform: translateX(-3px) rotate(-6deg); } 44% { transform: translateX(3px) rotate(5deg); } 52% { transform: translateY(-6px) scale(.96); } 100% { transform: translate(-150px, -40px) rotate(-35deg) scale(.6); opacity: 0; } }
.onic.is-big::before { content: "福"; position: absolute; left: 18px; top: 30px; width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: #b0232a; color: #fff; font-family: var(--brush, var(--min)); font-size: 40px; box-shadow: inset 0 0 0 3px #b0232a, inset 0 0 0 5px #f6e7c8; opacity: 0; transform: scale(.3) rotate(-20deg); z-index: 2; }
.moment .onic.is-big::before { animation: fuku-in .5s 2.1s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes fuku-in { to { opacity: 1; transform: none; } }
.wish-stage, .ema-stage { position: relative; overflow: hidden; }
.moment .tz.is-big { transform-origin: 50% 0; animation: sway 2.6s ease-out both; }
.moment.ema-stage .ema-big { transform-origin: 50% 0; animation: sway 2.2s ease-out both; }
@keyframes sway { 0% { transform: rotate(9deg); } 22% { transform: rotate(-7deg); } 44% { transform: rotate(4.5deg); } 64% { transform: rotate(-2.5deg); } 82% { transform: rotate(1deg); } 100% { transform: none; } }
.wish-stage.wb-tz::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .0;
  background: radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 84% 12%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 22% 64%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 90% 78%, #ffe9a8 50%, transparent 51%), radial-gradient(1.5px 1.5px at 8% 88%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 52% 8%, #ffe9a8 50%, transparent 51%); }
.wish-stage.wb-tz::after { opacity: .85; }
.moment.wish-stage.wb-tz::after { animation: twinkle 1.6s ease-in-out 2 alternate; }
@keyframes twinkle { 0% { opacity: .3; } 100% { opacity: 1; } }
.replay { text-align: center; margin: -8px 0 20px; }
.card-fig.reveal img { animation: ec-open .9s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .moment *, .moment, .moment::after, .card-fig.reveal img { animation: none !important; }
  .moment .onic-face { opacity: 0; } .moment .onic.is-big::before { opacity: 1; transform: none; }
}
/* デザインの見本を自分の字で（2026-11-16） */
.styles-note { margin: 0 0 8px; color: var(--accent); font-weight: 700; }
.style-opt.st-mine img { animation: st-pop .6s ease; }
@keyframes st-pop { 0% { transform: scale(.96); opacity: .5; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .style-opt.st-mine img { animation: none; } }
/* 豆まき（タップで投げる・2026-11-16） */
[data-mame] { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.mame { position: absolute; left: 0; top: 0; width: 12px; height: 11px; margin: -5px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f7e3b0, #d4a85a 70%); box-shadow: 0 1px 1px rgba(0,0,0,.25); pointer-events: none; z-index: 3; }
.fuku .onic.is-big::before { opacity: 1; transform: none; transition: opacity .3s, transform .5s cubic-bezier(.2,1.6,.4,1); }
.mame-ui { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.mame-c { flex-basis: 100%; margin: 0; text-align: center; color: var(--sub); min-height: 1.6em; }
.mame-ui[hidden], .mame-ui [hidden] { display: none !important; }
/* 加わった直後・ふり返りの直後のお祝い（2026-11-16） */
[data-confetti] { position: relative; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.confetti i { position: absolute; top: 0; display: block; border-radius: 1px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
.join-moment { margin: 6px 0 26px; padding: 18px 18px 6px; border: 1px solid #d8c08a; border-radius: 5px; background: linear-gradient(180deg, #fbf5e6, var(--card)); text-align: center; }
.join-h { margin: 0; font-family: var(--min); font-weight: 700; font-size: 26px; color: var(--accent); line-height: 1.35; }
.join-sub { margin: 4px 0 14px; color: var(--sub); }
.join-moment .card-fig { margin-bottom: 14px; }
.join-go { margin: 0 0 8px; }
.join-note { margin: 0 0 10px; }
.rv-moment { margin: 0 0 14px; padding: 14px 16px; border-left: 5px solid var(--accent); background: var(--card); border-radius: 5px; font-family: var(--min); font-size: 19px; line-height: 1.6; }
.rv-moment b { font-size: 34px; color: var(--accent); font-variant-numeric: tabular-nums; margin: 0 2px; }
.rv-moment span { display: block; font-family: var(--got); font-size: 14px; color: var(--sub); margin-top: 2px; }
@media (max-width: 560px) { .join-h { font-size: 22px; } .rv-moment { font-size: 17px; } .rv-moment b { font-size: 30px; } }
/* 月の印（2026-11-16） */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seal-book { margin: 0 0 18px; padding: 16px 16px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 5px; }
.sb-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 4px; }
.sb-h span { font-family: var(--min); font-weight: 700; font-size: 18px; }
.sb-h small { color: var(--sub); font-size: 14px; }
.sb-line { margin: 0 0 12px; color: var(--sub); line-height: 1.7; }
.is-fresh .sb-line { color: var(--accent); font-weight: 700; }
.sb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 8px; }
.sb-c { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sb-seal { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; font-family: var(--brush, var(--min)); font-size: 26px; line-height: 1; border: 1.5px dashed #d8c08a; color: #e2d3ae; background: transparent; }
.sb-m { font-size: 12px; color: var(--sub); }
.sb-got .sb-seal { border: 0; color: #fff; background: #b0232a; box-shadow: inset 0 0 0 3px #b0232a, inset 0 0 0 5px #f6e7c8; }
.sb-c:nth-child(3n+1).sb-got .sb-seal { transform: rotate(-6deg); } .sb-c:nth-child(3n+2).sb-got .sb-seal { transform: rotate(4deg); }
.sb-now .sb-seal { border: 2px dashed var(--accent); color: var(--accent); opacity: .75; }
.sb-now .sb-m { color: var(--accent); font-weight: 700; }
.sb-miss .sb-seal { opacity: .55; }
.sb-new .sb-seal { animation: sb-stamp .55s .35s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes sb-stamp { 0% { opacity: 0; transform: scale(1.9) rotate(-18deg); } 70% { opacity: 1; transform: scale(.94) rotate(2deg); } 100% { opacity: 1; transform: rotate(-4deg); } }
@media (max-width: 560px) { .sb-grid { grid-template-columns: repeat(4, 1fr); } .sb-seal { width: 46px; height: 46px; font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .sb-new .sb-seal { animation: none; } }
/* 笹に下げる短冊（2026-11-16）：枝は .sasa-k ごとの切れ端をつないで1本に見せる・糸の長さは --drop */
.wish-board.wb-tz { position: relative; justify-content: flex-start; gap: 0 14px; padding: 14px 16px 30px 50px; }
.wish-board.wb-tz::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; width: 18px; border-radius: 9px 9px 4px 4px;
  background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,0) 45%, rgba(0,0,0,.28)), repeating-linear-gradient(180deg, #7cad4c 0, #5d9036 150px, #3d6a24 150px, #3d6a24 155px); }
.sasa-k { --drop: 36px; position: relative; padding-top: var(--drop); }
.sasa-k:nth-child(3n+2) { --drop: 54px; } .sasa-k:nth-child(3n) { --drop: 44px; }
.sasa-k::before { content: ""; position: absolute; top: 4px; left: -20px; right: -8px; height: 5px; border-radius: 3px; background: linear-gradient(180deg, #8bbd57, #4c7c2d); }
.sasa-k::after { content: ""; position: absolute; top: 2px; left: -16px; width: 52px; height: 38px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 44'%3E%3Cpath fill='%236fae48' d='M10 2C24 2 42 6 57 16C40 12 24 8 10 2Z'/%3E%3Cpath fill='%235e9a3c' d='M8 2C20 6 34 18 44 39C30 26 16 16 8 2Z'/%3E%3Cpath fill='%23477f2d' d='M9 3C14 14 16 26 13 43C9 28 7 16 9 3Z'/%3E%3C/svg%3E") 0 0 / contain no-repeat; }
.sasa-k:nth-child(even)::after { left: auto; right: -22px; transform: scaleX(-1); }
.sasa-k:nth-child(4n+3)::after { width: 40px; height: 30px; }
.sasa-k .tz-hole::before { height: calc(var(--drop) + 3px); }
.sasa-k .tz { transform-origin: 50% calc(var(--drop) * -1); animation: breeze 5.2s ease-in-out infinite; }
.sasa-k:nth-child(3n+2) .tz { animation-duration: 6.1s; animation-delay: -1.7s; }
.sasa-k:nth-child(3n) .tz { animation-duration: 4.6s; animation-delay: -3.1s; }
.sasa-k a.tz:hover { transform: none; filter: brightness(1.08); }
@keyframes breeze { 0%, 100% { transform: rotate(-1.8deg); } 50% { transform: rotate(1.8deg); } }
.wish-board.wb-tz .ema-empty { width: 100%; color: #e9e2d0; }
/* 本人のページ：1枚だけ枝から下げる */
.wish-stage.sasa-one { padding-top: 22px; }
.sasa-one .sasa-k { --drop: 58px; position: static; }
.sasa-one .sasa-k::before { top: 26px; left: 0; right: 0; height: 7px; }
.sasa-one .sasa-k::after { top: 20px; left: 8%; width: 84%; height: 54px; transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 44'%3E%3Cpath fill='%236fae48' d='M10 2C24 2 42 6 57 16C40 12 24 8 10 2Z'/%3E%3Cpath fill='%235e9a3c' d='M8 2C20 6 34 18 44 39C30 26 16 16 8 2Z'/%3E%3Cpath fill='%23477f2d' d='M9 3C14 14 16 26 13 43C9 28 7 16 9 3Z'/%3E%3C/svg%3E") 0 0 / 72px auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 44'%3E%3Cpath fill='%236fae48' d='M10 2C24 2 42 6 57 16C40 12 24 8 10 2Z'/%3E%3Cpath fill='%235e9a3c' d='M8 2C20 6 34 18 44 39C30 26 16 16 8 2Z'/%3E%3Cpath fill='%23477f2d' d='M9 3C14 14 16 26 13 43C9 28 7 16 9 3Z'/%3E%3C/svg%3E") 100% 0 / 58px auto no-repeat; }
.sasa-one .tz.is-big { transform-origin: 50% calc(var(--drop) * -1); animation: breeze 5.6s ease-in-out infinite; }
.moment.sasa-one .tz.is-big { animation: sway 2.6s ease-out both, breeze 5.6s 2.6s ease-in-out infinite; }
@media (max-width: 560px) { .wish-board.wb-tz { gap: 0 10px; padding-left: 40px; } .wish-board.wb-tz::before { left: 12px; width: 15px; } }
@media (prefers-reduced-motion: reduce) { .sasa-k .tz, .sasa-one .tz.is-big, .moment.sasa-one .tz.is-big { animation: none; } }
/* 掲示板に掛ける箱 */
.hang-box { margin: 22px 0; padding: 18px 18px 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); }
.hang-box.is-hung { border-left-color: #3a9b5a; }
.hang-h { font-family: var(--min); font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.hang-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 6px; }
.hang-box .help { margin: 6px 0 0; }
/* 干支の絵馬（2027＝未から・2026-11-16）：絵は白地を透明にした PNG/WebP（assets/eto/） */
.ema-eto { display: inline-block; margin-left: 6px; padding: 0 3px; background: #c0262d; color: #fbf5e8; font-weight: 700; line-height: 1.35; border-radius: 2px; letter-spacing: 0; }
.ema-art { display: block; height: 54px; width: auto; max-width: 80%; margin: 4px auto 0; }
.ema-big .ema-art { height: 120px; margin-top: 10px; }
@media (max-width: 560px) { .ema-art { height: 46px; } }
/* ヘッダーの名前をひと回り大きく（2026-11-16・角印＋houfu.com の形のまま） */
.h-in { min-height: 76px; }
.logo { gap: 12px; }
.logo-seal { width: 50px; height: 50px; font-size: 18px; border-radius: 4px; }
.logo-t { font-size: 25px; line-height: 1.15; }
.logo-t small { font-size: 13px; margin-top: 2px; }
@media (max-width: 560px) { .h-in { min-height: 66px; } .logo { gap: 9px; } .logo-seal { width: 42px; height: 42px; font-size: 15px; } .logo-t { font-size: 20px; } }
@media (max-width: 380px) { .logo { gap: 7px; } .logo-seal { width: 38px; height: 38px; font-size: 14px; } .logo-t { font-size: 17px; } }

/* メニューの名前を長く（何のページかわかるように）・スマホは2段＝上に名前と「抱負を書く」、下に3つ（2026-11-16） */
.nav-sub { display: none; }
@media (max-width: 760px) {
  .nav .nav-l { display: none; }
  .nav .nav-cta, body.en .nav .nav-cta { padding: 9px 14px; font-size: 14px; margin-left: 8px; }
  .nav-sub { display: block; background: var(--card); border-bottom: 1px solid var(--line); }
  .nav-sub-in { display: grid; grid-template-columns: repeat(3, 1fr); }
  .nav-sub a { color: var(--ink); text-decoration: none; text-align: center; padding: 10px 2px; font-size: 13.5px; white-space: nowrap; }
  .nav-sub a + a { border-left: 1px solid var(--line); }
  .nav-sub a:hover { background: var(--paper-2); }
}
@media (max-width: 380px) {
  .nav-sub a { font-size: 12.5px; }
  .nav .nav-cta, body.en .nav .nav-cta { padding: 8px 10px; font-size: 13px; }
}

/* 右上のボタンを角印（赤い四角）と見分けられるように：白地に赤い枠の丸い形＋ペンの印 */
.nav .nav-cta { display: inline-flex; align-items: center; gap: 5px; background: var(--card); color: var(--accent); border: 1.5px solid var(--accent); border-radius: 999px; font-weight: 700; }
.nav .nav-cta:hover { background: var(--accent); color: #fff; }
.nav .nav-cta .ic { width: 1em; height: 1em; }

/* みんなの気配（本物の数がそろったら出る・lib/buzz.php） */
.buzz { margin-top: 16px; font-size: 14px; color: var(--sub); }
.buzz-n { margin: 0 0 6px; } .buzz-n b { color: var(--ink); }
.buzz-k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.buzz-k span { margin-right: 4px; }
.buzz-k a { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 5px; background: var(--card); color: var(--ink); text-decoration: none; font-family: var(--min); font-size: 19px; font-weight: 700; }
.buzz-k a:hover { border-color: var(--accent); color: var(--accent); }
.buzz-k a small { font-family: var(--got); font-size: 12px; font-weight: 500; color: var(--sub); margin-left: 5px; }
body.en .buzz-k a { width: auto; padding: 0 9px; }
body.en .buzz-k a { display: inline-flex; align-items: center; height: 34px; }
body.en .buzz-k a small { margin-left: 6px; }

/* 特別版の見本：横長のカード＋スマホの待ち受け（2026-11-16） */
.plus-pv { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: end; margin: 8px 0 14px; }
.plus-pv figure { margin: 0; }
.plus-pv figcaption { font-size: 12.5px; color: var(--sub); text-align: center; margin-top: 4px; }
.plus-phone img { width: 100%; height: auto; border-radius: 12px; border: 3px solid #222; box-shadow: 0 4px 14px rgba(0,0,0,.18); display: block; }
@media (max-width: 480px) { .plus-pv { grid-template-columns: 1fr 88px; gap: 10px; } }
.hang-plus { margin: 12px 0 4px; padding: 10px 12px; border: 1px dashed var(--gold, #b8953a); border-radius: 5px; font-size: 14px; background: var(--card); }

/* 管理画面：対応が要るもの・目次・検索（2026-11-16） */
.adm-todo { margin: 18px 0 10px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 5px; background: var(--card); }
.adm-todo-h { margin: 0 0 6px; font-weight: 700; }
.adm-todo ul { margin: 0 0 8px; padding-left: 1.2em; } .adm-todo li { margin: 3px 0; }
.adm-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.adm-nav a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 13.5px; }
.adm-nav a:hover { border-color: var(--accent); color: var(--accent); }
.adm-search { display: flex; gap: 8px; margin: 6px 0 8px; } .adm-search .in { flex: 1; max-width: 420px; }
.adm-more { margin: 8px 0; } .adm-more > summary { cursor: pointer; color: var(--sub); font-size: 14px; padding: 4px 0; }
.adm-plus { color: #8a6d1d; font-weight: 700; }
.admin [id] { scroll-margin-top: 90px; }

/* できること（/dekiru/・/en/features/） */
.feat-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.feat-toc a { font-size: 14px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; }
.feat-toc a:hover { border-color: var(--accent); }
.feat-sec { margin-top: 48px; scroll-margin-top: 90px; }
.feat-sub { color: var(--sub); margin: -4px 0 16px; }
.feat .more-c strong { font-size: 18px; }
.feat .plus-list { margin-bottom: 20px; }
.tbl-wrap .cmp.feat-price td { white-space: normal; }
.feat-price td:last-child { width: 42%; }
.feat-note { font-size: 14px; color: var(--sub); margin-top: 10px; }
.feat .cta-box { margin-top: 56px; }

/* 編集用リンクのコピー・QR・作り直し（keylink.php） */
.keep-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.keep-qr { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 12px; }
.keep-qr[hidden] { display: none; }
.keep-qr-img svg { display: block; width: 168px; height: 168px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.keep-qr-t { flex: 1 1 220px; }
.keep-qr-t p { margin: 0 0 8px; font-size: 14px; }
.keep-qr-dl { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.keep-qr-dl .ic { width: 1.1em; height: 1.1em; }
.keep-re { margin-top: 14px; font-size: 14px; }
.keep-re summary { cursor: pointer; color: var(--sub); }
.keep-re p { margin: 8px 0 10px; }

/* 一年の記録帳（特別版の欄） */
.rec-box{display:flex;gap:16px;align-items:flex-start;margin:18px 0 6px;padding:14px;border:1px solid #e0cf9f;border-radius:8px;background:#fbf6e7}
.rec-thumb{flex:0 0 150px;display:block}
.rec-thumb img{display:block;width:100%;height:auto;border-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.rec-t{flex:1;min-width:0}
.rec-t p{margin:0 0 8px}
.rec-h{font-weight:700;font-size:1.05em}
@media (max-width:560px){.rec-box{flex-direction:column}.rec-thumb{flex:none;width:60%;max-width:220px;margin:0 auto}}

/* 特別版を贈る（カードのページ）・贈られた印（本人ページ） */
.gift-box{margin:22px 0 6px;padding:12px 14px;border:1px solid #e0cf9f;border-radius:8px;background:#fbf6e7}
.gift-box summary{cursor:pointer;font-weight:700;display:flex;align-items:center;gap:6px}
.gift-box[open] summary{margin-bottom:8px}
.gift-form{display:grid;gap:10px;margin:10px 0}
.gift-form label{display:grid;gap:4px;font-size:.95em}
.gift-form input{width:100%;box-sizing:border-box}
.gift-note{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 12px;padding:10px 12px;border-radius:8px;background:#fbf1d9}
.gift-msg{flex-basis:100%;font-size:1.05em}

/* スマホ：作る画面の下にいつも出る「カードを作る」（app.js が作る・パソコンでは出さない）2026-11-16 */
.sticky-go { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(60,40,20,.10); }
.sticky-go[hidden] { display: none; }
.sticky-go .btn-wide { margin-top: 0; padding: 13px 16px; }
@media (min-width: 701px) { .sticky-go { display: none !important; } }

/* バーガーメニュー（ヘッダーの右端・右から出る・2026-11-17） */
.nav-burger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; margin-left: 6px; padding: 4px 4px 3px; background: none; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font: inherit; cursor: pointer; }
.nav-burger:hover { background: var(--paper-2); }
.burger-i { display: grid; gap: 4px; width: 20px; }
.burger-i span { display: block; height: 2px; background: currentColor; border-radius: 1px; }
.burger-t { font-size: 10px; line-height: 1; letter-spacing: 0; white-space: nowrap; }
html.menu-open { overflow: hidden; }
.menu { position: fixed; inset: 0; z-index: 50; }
.menu[hidden] { display: none; }
.menu-back { position: absolute; inset: 0; background: rgba(31, 28, 25, .45); opacity: 0; transition: opacity .2s; }
.menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--card); box-shadow: -8px 0 24px rgba(0, 0, 0, .15); overflow-y: auto; overscroll-behavior: contain; padding: 0 20px calc(28px + env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform .22s ease; }
.menu.on .menu-back { opacity: 1; }
.menu.on .menu-panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .menu-back, .menu-panel { transition: none; } }
.menu-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: 64px; margin: 0 -20px 16px; padding: 0 10px 0 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.menu-t { font-family: var(--min); font-weight: 700; font-size: 18px; }
.menu-x { width: 44px; height: 44px; font-size: 30px; line-height: 1; background: none; border: 0; border-radius: var(--r); color: var(--ink); cursor: pointer; }
.menu-x:hover { background: var(--paper-2); }
.menu .menu-cta { margin: 0 0 4px; font-size: 17px; padding: 13px 16px; }
.menu-h { margin: 22px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-family: var(--min); font-weight: 700; font-size: 15px; color: var(--sub); }
.menu-nav ul { list-style: none; margin: 0; padding: 0; }
.menu-nav a { display: block; padding: 10px 6px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1.5; }
.menu-nav a:hover { background: var(--paper-2); }
.menu-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.menu-lang { margin: 22px 0 0; }
.menu-lang a { display: inline-block; padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.menu-lang a:hover { background: var(--paper-2); }
@media (max-width: 560px) { .nav-burger { min-width: 42px; margin-left: 6px; } }
@media (max-width: 380px) { .nav-burger { min-width: 40px; margin-left: 4px; } }
/* とても狭い画面（320px など）：バーガーが入るように、「抱負を書く」のペンの絵を外して間を詰める */
@media (max-width: 350px) {
  .h-in { gap: 8px; }
  .nav .nav-cta .ic { display: none; }
  .nav .nav-cta, body.en .nav .nav-cta { margin-left: 2px; padding: 8px 9px; }
  .nav-burger { margin-left: 4px; }
}

/* =====================================================================
   トップの作り直し（2026-11-17）：上のメニュー（パソコン）・最初の画面・できることのマス・いまの時期
   ===================================================================== */
.nav-d { display: flex; align-items: center; gap: 2px; }
.nav .nav-w { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 700; }
.nav .nav-w .ic { width: 1em; height: 1em; }
.nav .nav-box { margin-left: 8px; padding: 7px 14px; border: 1px solid var(--accent); color: var(--accent); font-weight: 700; }
.nav .nav-box:hover { background: var(--accent-soft); }
.nav-dd { position: relative; }
.nav-dd > summary { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: var(--r); font-size: 15px; white-space: nowrap; cursor: pointer; list-style: none; }
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary:hover, .nav-dd[open] > summary { background: var(--paper-2); }
.nav-dd .chev { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nav-dd[open] .chev { transform: rotate(180deg); }
.nav-dd-p { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; display: grid; min-width: 200px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 28px rgba(60, 40, 20, .14); }
.nav .nav-dd-p a { padding: 9px 12px; font-size: 15px; white-space: nowrap; }
@media (min-width: 961px) { .nav .nav-cta { display: none; } }
@media (max-width: 960px) {
  .nav-d { display: none; }
  .nav-sub { display: block; background: var(--card); border-bottom: 1px solid var(--line); }
  .nav-sub-in { display: grid; grid-template-columns: repeat(3, 1fr); }
  .nav-sub a { color: var(--ink); text-decoration: none; text-align: center; padding: 10px 2px; font-size: 13.5px; white-space: nowrap; }
  .nav-sub a + a { border-left: 1px solid var(--line); }
  .nav-sub a:hover { background: var(--paper-2); }
}
/* 英語は言葉が長いので、パソコンのメニューは広い画面だけ */
@media (min-width: 961px) and (max-width: 1100px) {
  body.en .nav-d { display: none; }
  body.en .nav .nav-cta { display: inline-flex; }
  body.en .nav-sub { display: block; background: var(--card); border-bottom: 1px solid var(--line); }
  body.en .nav-sub-in { display: grid; grid-template-columns: repeat(3, 1fr); }
  body.en .nav-sub a { color: var(--ink); text-decoration: none; text-align: center; padding: 10px 2px; font-size: 13.5px; white-space: nowrap; }
  body.en .nav-sub a + a { border-left: 1px solid var(--line); }
}

.hero2 .hero-in { grid-template-columns: 1.05fr .95fr; gap: 40px; }
.hero2 .eyebrow { letter-spacing: .05em; }
.hero2 h1 { margin-bottom: 14px; }
.hero2 .lead { font-size: 16.5px; margin-bottom: 22px; }
.hero-stack { position: relative; margin: 0; aspect-ratio: 25 / 16; }
.hero-stack img { position: absolute; height: auto; border-radius: var(--r); background: #fff; box-shadow: 0 2px 4px rgba(60, 40, 20, .08), 0 14px 32px rgba(60, 40, 20, .18); }
.hero-stack .hs-a { width: 66%; left: 0; top: 13%; transform: rotate(-3deg); }
.hero-stack .hs-b { width: 38%; right: 2%; top: 0; transform: rotate(4deg); }
.hero-stack .hs-c { width: 38%; left: 36%; bottom: 0; transform: rotate(1.5deg); }
@media (max-width: 860px) {
  .hero2 .hero-in { grid-template-columns: 1fr; gap: 16px; }
  .hero-stack { order: -1; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) { .hero2 .lead { font-size: 15.5px; } }

.can { padding-top: 40px; }
.can-h { margin-bottom: 18px; }
.can-sub { margin: -6px 0 16px; color: var(--sub); font-size: 15px; }
.can-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.can-t { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.can-t:hover { border-color: var(--accent); }
.can-k { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--accent); color: #fff; font-family: var(--min); font-weight: 700; font-size: 24px; line-height: 1; }
.can-k.g { background: var(--gold); }
.can-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.can-b strong { font-family: var(--min); font-size: 17px; line-height: 1.4; }
.can-d { font-size: 13.5px; line-height: 1.65; color: var(--sub); }
.can-p { font-size: 13px; font-weight: 700; color: var(--accent); }
.can-more { margin: 14px 0 0; text-align: right; font-weight: 700; }
.can-more a { color: var(--accent); }
@media (max-width: 1000px) { .can-grid { grid-template-columns: repeat(2, 1fr); } }
/* スマホ：説明を隠して「印・名前・値段」だけの2列×4段（フォームを近くに） */
@media (max-width: 700px) {
  .can { padding-top: 28px; }
  .can-grid { gap: 8px; }
  .can-t { grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px 12px; }
  .can-k { width: 34px; height: 34px; font-size: 19px; }
  .can-d { display: none; }
  .can-b { gap: 0; }
  .can-b strong { font-size: 15px; }
  .can-p { font-size: 12px; }
  .can-more { margin-top: 10px; font-size: 15px; }
}
@media (max-width: 380px) { .can-t { gap: 8px; padding: 9px 10px; } .can-k { width: 30px; height: 30px; font-size: 17px; } .can-b strong { font-size: 14px; } }

.now { margin-top: 24px; margin-bottom: 8px; }
.now-in { margin: 0; padding: 12px 18px; background: var(--accent-soft); border: 1px solid #ecc9bf; border-radius: var(--r); font-size: 15px; line-height: 1.8; }
.now-in b { margin-right: 10px; color: var(--accent); }
.now-in a { color: var(--accent); font-weight: 700; white-space: nowrap; }
@media (max-width: 360px) { .can-t { grid-template-columns: 28px 1fr; gap: 7px; } .can-k { width: 28px; height: 28px; font-size: 16px; } .can-b strong { font-size: 13px; } .can-p { font-size: 11px; } }
@media (max-width: 700px) { body.en .can-b strong { font-size: 14px; letter-spacing: 0; } }

/* バーガーメニューの整理（2026-11-17）：上にボタン2つ・3つのまとまりを2列・運営のことは下に小さく */
.menu-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu .menu-btns .btn { min-height: 46px; padding: 10px 8px; font-size: 15px; gap: 6px; }
.menu-h { margin-top: 20px; }
.menu-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6px; }
.menu-nav .menu-2 a { padding: 9px 6px; font-size: 15px; line-height: 1.45; }
.menu-small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.8; }
.menu-small a { color: var(--sub); }
.menu-small a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.menu-small .menu-lang { padding: 3px 12px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.menu-small .menu-lang:hover { background: var(--paper-2); }

.menu-m { margin-left: .45em; font-size: 12px; color: var(--sub); font-weight: 400; }
.menu-small a { text-decoration: none; }
.menu-small a:hover { text-decoration: underline; }
@media (max-width: 370px) {
  .menu-panel { width: 92vw; padding-left: 16px; padding-right: 16px; }
  .menu-nav .menu-2 a { padding: 9px 4px; font-size: 14px; }
  .menu .menu-btns .btn { font-size: 14px; padding: 10px 6px; }
}

/* 見出しの上の小さな行が2行になっても「◆」を1行目の高さに（2026-11-17・宣伝セッションの確認から） */
.eyebrow { align-items: flex-start; }
.eyebrow::before { margin-top: calc(.95em - 3.5px); margin-top: calc(.5lh - 3.5px); }
@media (max-width: 340px) { .can-t { grid-template-columns: 24px 1fr; gap: 6px; padding: 9px 8px; } .can-k { width: 24px; height: 24px; font-size: 14px; } }   /* 320px でも名前と値段を1行に */
@media (max-width: 340px) { body.en .can-b strong { font-size: 12.5px; } }


/* メニュー 2026-11-17 ユーザーの並び：おみくじ・絵馬 → 抱負を書く（開いたまま） → ほかは見出しだけ（押すと開く） */
.menu-nav .menu-top-l { margin: 14px 0 0; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.menu-nav .menu-top-l a { padding: 11px 6px; font-size: 16px; font-weight: 700; }
.menu-g { border-bottom: 1px solid var(--line); }
.menu-g > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 6px 6px; list-style: none; cursor: pointer; font-weight: 700; font-size: 16px; border-radius: var(--r); }
.menu-g > summary::-webkit-details-marker { display: none; }
.menu-g > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.menu-g[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.menu-g > summary:hover { background: var(--paper-2); }
.menu-nav .menu-g > ul { padding: 0 0 8px 14px; }
.menu-nav .menu-g a { padding: 8px 6px; font-size: 15px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .menu-g > summary::after { transition: none; } }
/* おみくじ：スマホは下に「おみくじを引く」をいつも出す（app.js の sticky-omi）・その分だけページの下をあける・2026-11-17 */
.omi-form { scroll-margin-top: 84px; }
@media (max-width: 700px) { body.has-sticky .site-f { padding-bottom: calc(40px + 80px + env(safe-area-inset-bottom)); } }   /* フッターの色のまま下をのばす */
/* メニューの有料のもの（一部有料を含む）の赤い印・2026-11-17 ユーザーの指示 */
.menu-dot { display: inline-block; width: 7px; height: 7px; margin-left: .5em; border-radius: 50%; background: var(--accent); vertical-align: middle; position: relative; top: -1px; }
.menu-key { margin: 12px 0 0; padding: 0 6px; font-size: 12.5px; color: var(--sub); }
.menu-key .menu-dot { margin: 0 .4em 0 0; }

/* 名前の漢字の作品（2026-11-17・knart.php） */
.kn-art-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.kn-art-row figure { margin: 0; text-align: center; }
.kn-art-row img, .kn-art-one img { display: block; width: 100%; height: auto; border-radius: 5px; box-shadow: 0 1px 6px rgba(30, 27, 24, .18); }
.kn-art-row figcaption { font-size: 13px; color: var(--sub); margin-top: 6px; line-height: 1.35; }
.kn-art-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; margin: 18px 0; }
.kn-art-one .sub-h { margin: 10px 0 6px; font-size: 17px; }
.kn-art-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kn-art-files .sbtn { width: 100%; justify-content: flex-start; }
@media (max-width: 560px) { .kn-art-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin-left: -2px; margin-right: -2px; } .kn-art-row figure { scroll-snap-align: center; } }

/* 特別版の売り場を一年の流れで・月替わりの待ち受け（2026-11-17・wall.php） */
.plus-lead { margin: 10px 0 8px; font-weight: 600; }
.plus-time { list-style: none; margin: 10px 0 16px; padding: 0; border-left: 2px solid #e0cf9f; }
.plus-time li { position: relative; display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; padding: 8px 0 8px 14px; line-height: 1.75; }
.plus-time li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #b0232a; }
.pt-when { font-weight: 700; color: #8a6a2e; white-space: nowrap; }
.wall-thumb { flex: 0 0 104px; }
.wall-thumb img { border-radius: 12px; border: 3px solid #222; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
@media (max-width: 560px) { .plus-time li { grid-template-columns: 1fr; gap: 0; } .wall-thumb { width: 40%; max-width: 150px; } }

/* 見積書・領収書（2026-11-17・quote.php） */
.quote-box { margin: 14px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r); background: var(--card); display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.quote-box p { margin: 0; flex: 1 1 260px; font-size: 15px; line-height: 1.8; }
.quote-box strong { display: block; }
.radio.q-item { align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.radio.q-item input { margin-top: 6px; }
.q-item span { line-height: 1.6; }
.q-item small { display: block; color: var(--sub); font-size: 13px; }
.q-qty { max-width: 8em; }
.q-honor { margin-top: 6px; display: flex; gap: 8px; }
.q-honor .opt { flex: 1; }

/* 英語の言葉を漢字に（kword.php・2026-11-17） */
.kw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; margin: 12px 0 20px; }
.kw-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 5px; color: var(--ink); text-decoration: none; text-align: center; }
.kw-card:hover { border-color: var(--accent); }
.kw-k { font-family: var(--brush); font-size: 40px; line-height: 1.2; white-space: nowrap; }
.kw-k.kw-k4 { font-size: 27px; line-height: 1.78; }
.kw-card strong { font-size: 15px; line-height: 1.3; }
.kw-ro { font-size: 13px; color: var(--sub); font-style: italic; }
.kw-show { align-items: center; }
.kw-big { font-family: var(--brush); font-size: 84px; white-space: nowrap; flex: none; padding: 0 8px; }
.kw-big.kw-big4 { font-size: 58px; }
.kw-read { font-size: 19px; margin: 0 0 8px; }
.kw-read span { font-size: 22px; }
.kw-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kw-parts .kn-ch { font-size: 22px; margin-right: 6px; }
@media (max-width: 560px) { .kw-big { font-size: 72px; } .kw-big.kw-big4 { font-size: 48px; } .kw-grid { grid-template-columns: repeat(2, 1fr); } }

/* 印刷できるカレンダー（kcal.php・2026-11-17） */
.kcal-row { grid-template-columns: repeat(2, 1fr); }
.kcal-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 6px 0 20px; }
.kcal-pick .f-row { flex: 1 1 220px; margin: 0; }
.kcal-pick select { font-size: 17px; }
.kcal-hol td, .kcal-hol th, .kcal-wafu td, .kcal-wafu th { padding: 8px 10px; }
.kcal-wk { font-family: var(--brush); font-size: 20px; margin-right: 4px; white-space: nowrap; }
.kcal-wafu small { color: var(--sub); font-size: 13px; }
.kcal-pdf { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.kcal-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 14px 0; }
.kcal-pages figure { margin: 0; text-align: center; font-size: 14px; }
.kcal-pages img { display: block; width: 100%; height: auto; border-radius: 5px; box-shadow: 0 1px 6px rgba(30, 27, 24, .18); margin-bottom: 6px; }
@media (max-width: 560px) { .kcal-row { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; } }

/* 家族の名前を漢字に（kfam.php・2026-11-17） */
.kf-one { border: 1px solid var(--line); border-radius: 5px; background: var(--card); padding: 12px 14px; margin: 0 0 12px; }
.kf-one legend { padding: 0 6px; font-weight: 700; }
.kf-big { font-family: var(--brush); font-size: 30px; line-height: 1.2; margin-right: 6px; }
.kf-kana { color: var(--sub); font-weight: 400; margin-left: 4px; }
.kf-sounds { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.kf-sounds label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.kf-sounds select { width: auto; min-width: 150px; padding-top: 8px; padding-bottom: 8px; }
.kf-hint { margin: 14px 0 0; font-size: 15px; }
.kf-list { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 4px; }

/* タトゥー用の漢字デザイン（ktat.php・2026-11-17） */
.kt-row { display: flex; gap: 18px; align-items: flex-start; margin: 10px 0 14px; }
.kt-row img { width: 180px; height: auto; flex: none; border: 1px solid var(--line, #e4ddd0); border-radius: 5px; background: #fff; }
.kt-row > div { flex: 1; min-width: 0; }
.kt-row p { margin-top: 0; }
.kt-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 10px 0; }
.kt-files figure { margin: 0; text-align: center; font-size: .9em; }
.kt-files img { width: 100%; height: 150px; object-fit: contain; border-radius: 5px; border: 1px solid var(--line, #e4ddd0);
  background: #fff repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
@media (max-width: 560px) { .kt-row { flex-direction: column; } .kt-row img { width: 100%; max-width: 270px; align-self: center; } }

/* 漢字の練習プリント（kws.php・2026-11-17） */
.kws-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 18px; }
.kws-samples figure { margin: 0; text-align: center; font-size: .9em; }
.kws-samples img { width: 100%; height: auto; border: 1px solid var(--line, #e4ddd0); border-radius: 5px; background: #fff; }
.kws-own { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.kws-own label { width: 100%; font-weight: 700; font-size: .92em; }
.kws-own input { flex: 1; min-width: 0; font-size: 1.15em; padding: 8px 10px; border: 1px solid var(--line, #d8d0c2); border-radius: 5px; }
.kws-chars { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.kws-chars span { width: 2.2em; height: 2.2em; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3em; background: #fff; border: 1px solid var(--line, #e4ddd0); border-radius: 5px; }
.kws-n5 { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 12px; font-size: .92em; }
.kws-n5 li { display: flex; gap: 8px; align-items: baseline; }
.kws-n5 .kn-ch { font-size: 1.35em; }
