/* プリントクラフト — 採用案「すみれの輪」。白い紙と薄紫、すみれ色。 */
:root {
  --paper: oklch(96.671% .00953 320.547); --paper2: oklch(99.529% .00251 48.720); --card: oklch(99.529% .00251 48.720);
  --ink: oklch(34.308% .04029 319.464); --ink2: oklch(46% .04 319); --line: oklch(85% .025 320);
  --shu: oklch(45.856% .08257 329.292); --shu-d: oklch(37% .075 329); --ai: oklch(45.856% .08257 329.292); --kin: oklch(92.413% .02331 323.619);
  --r: 14px; --max: 1120px;
  --f-head: "BIZ UDPGothic", "Yu Gothic", "Meiryo", sans-serif;
  --f-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}
html { font-size: 112.5%; scroll-behavior: smooth; }
html[data-fs="l"] { font-size: 128%; }
html[data-fs="x"] { font-size: 146%; }
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--f-body); color: var(--ink); line-height: 1.85;
  background-color: var(--paper);
}
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: var(--shu-d); }
:focus-visible { outline: 3px solid var(--shu); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 9; }
.skip:focus { left: 0; }
.small { font-size: .85rem; color: var(--ink2); }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.4; letter-spacing: .02em; word-break: auto-phrase; text-wrap: balance; }

/* ヘッダー */
.hd { background: var(--paper2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.hd-in { max-width: var(--max); margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-head); font-weight: 900; font-size: 1.15rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo img { width: 300px; height: auto; max-width: 100%; }
.logo { min-width: 0; max-width: 100%; }
.search { display: flex; }
.search input { font: inherit; font-size: .9rem; padding: .4rem .7rem; border: 2px solid var(--ink); border-right: 0; border-radius: 99px 0 0 99px; background: #fff; width: 12.5rem; min-width: 0; }
.search button { font: inherit; font-size: .9rem; font-weight: 700; padding: .4rem .9rem; border: 2px solid var(--ink); background: var(--ink); color: #fff; border-radius: 0 99px 99px 0; cursor: pointer; }
.fs { display: flex; align-items: center; font-size: .8rem; gap: .4rem; }
.fs button { font: inherit; font-weight: 700; padding: .35rem .7rem; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; margin-left: -2px; }
.fs button:first-of-type { border-radius: 8px 0 0 8px; margin-left: 0; } .fs button:last-of-type { border-radius: 0 8px 8px 0; }
.fs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.gnav { max-width: var(--max); margin: 0 auto; padding: 0 1rem; display: flex; gap: .2rem; overflow-x: auto; }
.gnav a { white-space: nowrap; padding: .45rem .8rem; text-decoration: none; font-weight: 700; font-size: .9rem; border-bottom: 4px solid transparent; }
.gnav a:hover { border-color: var(--shu); color: var(--ink); }

main { max-width: var(--max); margin: 0 auto; padding: 1rem 1rem 4rem; }
.crumbs { font-size: .82rem; color: var(--ink2); margin: .2rem 0 1rem; }
.crumbs span { margin: 0 .2em; }

/* 見出し */
main h1 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin: .4rem 0 .8rem; font-weight: 900; }
main h1 small { display: block; font-size: .9rem; font-weight: 700; color: var(--shu-d); margin-top: .2rem; }
.sec { margin-top: 3.2rem; }
.sec > h2, .prose h2 { font-size: 1.35rem; margin: 0 0 1rem; padding-left: .9rem; position: relative; }
.sec > h2::before, .prose h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: .38rem; background: var(--shu); border-radius: 3px; }
.lead { font-size: 1.02rem; max-width: 46em; }

/* トップ */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; background: var(--paper2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 4vw, 3rem); box-shadow: 0 8px 28px rgba(113,70,110,.08); margin-top: .6rem; overflow: hidden; }
.eyebrow { font-weight: 700; color: var(--shu-d); margin: 0; font-size: .95rem; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.25; margin: .3rem 0 1rem; }
.hero-v { position: relative; height: 22rem; }
.hv { position: absolute; width: 56%; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(113,70,110,.22); background: #fff; animation: drop .7s cubic-bezier(.2,.9,.3,1.2) both; }
.hv0 { left: 0; top: 12%; transform: rotate(-7deg); animation-delay: .05s; }
.hv1 { left: 24%; top: 0; transform: rotate(2deg); z-index: 1; animation-delay: .18s; }
.hv2 { left: 46%; top: 18%; transform: rotate(9deg); animation-delay: .31s; }
@keyframes drop { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }
.stamp { position: absolute; right: 2%; bottom: 0; z-index: 2; min-width: 5rem; padding: .45rem .9rem; display: grid; place-items: center; color: var(--paper2); border-radius: 12px; font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; transform: rotate(-5deg); background: var(--shu); }
.btn-main { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: .6rem; background: var(--shu); color: var(--paper2); font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; padding: .85rem 1.8rem; border-radius: 12px; text-decoration: none; border: 1px solid var(--shu); box-shadow: 0 3px 10px rgba(113,70,110,.14); transition: translate .12s, box-shadow .12s; }
.btn-main:hover { background: var(--shu-d); color: var(--paper2); translate: 0 -1px; box-shadow: 0 5px 14px rgba(113,70,110,.18); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1rem; }
.tcard { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; position: relative; transition: translate .12s, box-shadow .12s; box-shadow: 0 2px 8px rgba(113,70,110,.06); }
.tcard:hover { translate: -2px -2px; box-shadow: 0 5px 14px rgba(113,70,110,.12); color: var(--ink); }
.tcard strong { font-family: var(--f-head); font-size: 1.25rem; }
.tcard span { font-size: .88rem; line-height: 1.65; color: var(--ink2); }
.tcard em { font-style: normal; font-weight: 700; color: var(--shu-d); margin-top: auto; }
.trow { margin-bottom: 2rem; }
.trow h3 { display: flex; align-items: center; gap: 1rem; margin: 0 0 .7rem; font-size: 1rem; }
.trow h3 a { font-family: var(--f-body); font-size: .88rem; font-weight: 400; }
.steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; }
.steps li { counter-increment: st; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem 1.1rem 4.2rem; position: relative; font-size: .92rem; }
.steps li::before { content: counter(st); position: absolute; left: 1rem; top: 1rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 50%; font-family: var(--f-head); font-weight: 900; font-size: 1.2rem; }
.steps b { display: block; font-family: var(--f-head); font-size: 1.15rem; }
.note-sec { background: var(--paper2); border: 1px dashed var(--ink2); border-radius: var(--r); padding: 1.4rem 1.5rem; }

/* 種類の札 */
.type { --tc: var(--ink); display: inline-flex; align-items: center; gap: .4em; font-family: var(--f-body); font-size: .8rem; font-weight: 700; color: var(--tc); border: 1.5px solid var(--tc); border-radius: 6px; padding: .05em .6em; background: #fff; width: fit-content; }
.type::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--tc); }

/* カード */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1.2rem; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 2px 0 var(--line); transition: translate .14s, box-shadow .14s; }
.card:hover { translate: 0 -3px; box-shadow: 0 8px 18px rgba(113,70,110,.16); }
.card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.thumb { display: block; padding: .8rem .8rem 0; height: 12.5rem; overflow: hidden; background: #F0E7F2; border-radius: var(--r) var(--r) 0 0; border-bottom: 1px solid var(--line); }
.thumb img { width: 100%; border: 1px solid #D9CADB; box-shadow: 0 3px 10px rgba(113,70,110,.18); }
.card-b { display: flex; flex-direction: column; gap: .35rem; padding: .8rem .9rem 1rem; }
.card-b strong { font-family: var(--f-head); font-size: 1rem; line-height: 1.5; }
.meta { font-size: .85rem; font-weight: 700; }
.meta2 { font-size: .78rem; color: var(--ink2); }
.fav { position: absolute; right: .5rem; top: .5rem; z-index: 2; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink); }
.fav[aria-pressed="true"] { background: var(--kin); }

/* しぼりこみ */
.filter { background: var(--paper2); border: 2px solid var(--ink); border-radius: var(--r); padding: 1rem 1.1rem; margin: 1.4rem 0 1rem; display: grid; gap: .7rem; }
.frow { display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; }
.flabel { font-weight: 700; font-size: .85rem; min-width: 2.4em; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips button, .tool { font: inherit; font-size: .88rem; font-weight: 700; padding: .4rem .95rem; min-height: 2.6rem; border-radius: 99px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: .45em; }
.chips button i { width: .65em; height: .65em; border-radius: 50%; background: var(--tc); }
.chips button[aria-pressed="true"], .tool[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tools { border-top: 1px dashed var(--line); padding-top: .7rem; align-items: center; }
.tool { border-style: dashed; }
#shareMsg { font-size: .82rem; color: var(--shu-d); }
.count { font-weight: 700; margin: .4rem 0 .8rem; }
.empty { padding: 2rem; text-align: center; background: var(--card); border: 1px dashed var(--ink2); border-radius: var(--r); }
.favnote { margin-top: 1.2rem; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; color: var(--shu-d); cursor: pointer; }

/* 表・箇条書き */
.pills { list-style: none; padding: 0; margin: .8rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pills li { font-size: .85rem; font-weight: 700; padding: .2rem .8rem; border-radius: 99px; background: var(--ink); color: #fff; }
.pills li.tg { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.tw { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(113,70,110,.035); }
.guide { display: grid; gap: .2rem; margin: 0; }
.guide dt { font-family: var(--f-head); font-weight: 700; margin-top: .9rem; }
.guide dt::before { content: "◆ "; color: var(--shu); }
.guide dd { margin: 0 0 0 1.3em; }

/* 個別ページ */
.d-top { display: grid; grid-template-columns: minmax(0, 23rem) 1fr; gap: 2.2rem; align-items: start; }
.d-prev { position: relative; display: block; padding: 1rem; background: #F0E7F2; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 18px rgba(113,70,110,.1); }
.d-prev img { width: 100%; border: 1px solid #D9CADB; }
.badge { position: absolute; left: .7rem; top: .7rem; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; padding: .15rem .8rem; border-radius: 99px; }
.d-main h1 { margin-top: .6rem; }
.dl { display: grid; gap: .7rem; margin: 1.3rem 0 1rem; }
.dl2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.btn-dl, .btn-sub { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; font-family: var(--f-head); font-weight: 900; border: 2px solid var(--ink); border-radius: 16px; line-height: 1.4; transition: translate .12s, box-shadow .12s; }
.btn-dl { background: var(--shu); color: #fff; font-size: 1.3rem; padding: 1rem; box-shadow: 0 3px 10px rgba(113,70,110,.14); }
.btn-dl:hover { color: #fff; translate: 2px 2px; box-shadow: 0 5px 14px rgba(113,70,110,.18); }
.btn-sub { background: #fff; color: var(--ink); font-size: 1rem; padding: .7rem .5rem; }
.btn-sub:hover { background: var(--ink); color: #fff; }
.btn-dl small, .btn-sub small { font-family: var(--f-body); font-weight: 400; font-size: .8rem; }
.peek { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.peek a { text-decoration: none; text-align: center; font-size: .85rem; font-weight: 700; }
.peek img { border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(113,70,110,.15); margin-bottom: .4rem; transition: translate .14s; }
.peek a:hover img { translate: 0 -4px; }
.prose h3 { font-size: 1.08rem; margin: 1.6rem 0 .3rem; }
.prose p, .prose li { max-width: 44em; }
.page h2 { margin-top: 2.6rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1.1rem; margin-bottom: .6rem; }
.faq summary { font-weight: 700; cursor: pointer; padding: .7rem 0; }
.faq summary::marker { color: var(--shu); }
.faq p { margin: 0 0 .9rem; }

/* フッター */
.ft { background: var(--ink); color: #EEE1EF; margin-top: 3rem; }
.ft-in { max-width: var(--max); margin: 0 auto; padding: 2.4rem 1rem 1rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; font-size: .88rem; }
.ft a { color: #fff; } .ft .logo { color: #fff; }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; align-content: start; }
.copy { text-align: center; font-size: .78rem; margin: 0; padding: 1rem; opacity: .7; }

@media (max-width: 760px) {
  .hero, .d-top { grid-template-columns: 1fr; }
  .hero-v { height: 15rem; order: -1; }
  .hv { width: 44%; }
  .ft-in { grid-template-columns: 1fr; }
  .search input { width: 8.5rem; }
  .hd { position: static; }
  .gnav { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 0; padding: 0 .4rem; }
  .gnav a { padding: .6rem .1rem; font-size: .82rem; text-align: center; white-space: normal; line-height: 1.3; }
  .fav { min-width: 2.75rem; min-height: 2.75rem; }
  .dl2, .peek { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(min(9.8rem, 100%), 1fr)); gap: .8rem; }
  .hero > *, .d-top > * { min-width: 0; }
  .thumb { height: 9rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media print { .hd, .ft, .filter, .fav { display: none; } body { background: #fff; } }

/* 1枚ずつ開く */
.singles { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem; }
.singles a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 3.4rem; padding: .35rem .3rem; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; line-height: 1.25; text-align: center; }
.singles a:hover, .singles a:focus-visible { border-color: var(--shu); color: var(--shu-d); }
.singles b { font-family: var(--f-head); font-size: 1.15rem; }
.singles span { font-size: .78rem; color: var(--ink2); }

.singles .sn { font-size: .78rem; color: var(--ink2); word-break: break-all; }
/* 月ごとに選ぶ */
.mnav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; position: sticky; top: 0; background: var(--paper); padding: .5rem 0; z-index: 2; }
.mnav a { min-width: 3.4rem; text-align: center; padding: .35rem .5rem; border: 1.5px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); text-decoration: none; font-family: var(--f-head); font-weight: 700; }
.mnav a:hover, .mnav a:focus-visible { border-color: var(--shu); color: var(--shu-d); }
.mblock h3 { font-size: 1.3rem; margin: 0 0 .3rem; }

/* 大きな字版の案内・運営者の表 */
.vlink { margin: 1rem 0 0; padding: .7rem 1rem; background: var(--card); border: 1.5px dashed var(--shu); border-radius: var(--r); }
.kv { border-collapse: collapse; margin: .5rem 0 0; }
.kv th, .kv td { text-align: left; padding: .45rem .8rem .45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { white-space: nowrap; color: var(--ink2); font-weight: 700; }

/* 「今から使う」の選択情報。すみれの輪の共通色で表示。 */
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 8rem; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.quick-grid > *, .quick-card { min-width: 0; }
.quick-card { height: 100%; padding: 1.1rem; border: 1px solid var(--line); border-top: 4px solid var(--shu); border-radius: var(--r); background: var(--card); display: flex; flex-direction: column; }
.quick-card h3 { font-size: 1.35rem; margin: .2rem 0; }
.quick-card .eyebrow { font-size: .78rem; margin: 0; }
.quick-material { font-weight: 700; font-size: .92rem; margin: .3rem 0; }
.quick-facts { margin: .3rem 0 1rem; font-size: .83rem; line-height: 1.7; }
.quick-facts dt { font-weight: 700; margin-top: .6rem; }
.quick-facts dd { margin: 0; }
.quick-card .btn-main { margin-top: auto; font-size: .88rem; padding: .7rem; text-align: center; }
.quick-links, .set-months { display: flex; flex-wrap: wrap; gap: .6rem; }
.quick-links a, .set-months a { display: block; padding: .6rem .9rem; border: 2px solid var(--ink); border-radius: 8px; background: var(--card); font-weight: 700; text-decoration: none; }
.set-months a[aria-current] { background: var(--ink); color: white; }
.use-summary { display: grid; gap: .2rem; margin-top: .4rem; padding-top: .5rem; border-top: 1px dashed var(--line); font-size: .78rem; line-height: 1.7; }
.use-summary b { font-weight: 700; }
.use-details { background: var(--card); border: 1px solid var(--line); padding: .7rem; border-radius: 8px; margin: .8rem 0; font-size: .86rem; }
.use-details > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: .6rem; padding: .25rem 0; }
.use-details dt { font-weight: 700; }
.use-details dd { margin: 0; }
.filter-help { margin: 0; }
.set-print-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem; margin: 1.5rem 0; align-items: start; }
.set-print-grid > a { display: block; padding: .7rem; border: 1px solid var(--line); background: var(--card); }
.set-print-grid .btn-dl, .set-print-grid .btn-sub { width: 100%; margin: .8rem 0; }
.memo-print { font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .quick-grid, .set-print-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 1.1rem; }
  .hero-v { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .hero-t > p:not(.eyebrow):not(.small) { font-size: .9rem; }
  .hero .btn-main { padding: .75rem 1rem; font-size: 1rem; }
  .quick-card { height: auto; }
  .quick-card .btn-main { margin-top: .4rem; }
  .use-details > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  section[id] { scroll-margin-top: 1rem; }
}
