/* White Melt Tools 見た目。紺と氷の色、白い紙。 */
:root {
  --paper: #f4f7fb; --card: #ffffff; --ink: #1b2436; --sub: #5d6b80; --line: #d9e2ee;
  --pen: #2f6fb0; --pen-soft: #e8f0fa; --navy: #14213d; --navy2: #1f3358; --ice: #a9ddf5;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0f1626; --card: #172238; --ink: #e5ebf5; --sub: #9fb0c8; --line: #2a3a58; --pen: #8ec3f2; --pen-soft: #1d2d4a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.85; font-size: 16px;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif; }
a { color: var(--pen); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 18px; }
.top { background: linear-gradient(135deg, var(--navy2), var(--navy) 70%); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.top a.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.top img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { margin-left: auto; font-size: .88rem; }
.top nav a { color: #cfe3f7; text-decoration: none; }
.hero { background: linear-gradient(135deg, var(--navy2), var(--navy) 70%); color: #fff; padding: 46px 0 54px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--paper);
  -webkit-mask: radial-gradient(circle at 20px 0, transparent 19px, #000 20px) 0 0 / 40px 26px repeat-x; mask: radial-gradient(circle at 20px 0, transparent 19px, #000 20px) 0 0 / 40px 26px repeat-x; }
.hero .wrap { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; }
.hero img { width: 120px; height: 120px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero h1 { margin: 0; font-size: 2rem; line-height: 1.25; letter-spacing: .02em; }
.hero p { margin: 8px 0 0; color: #cfe3f7; }
@media (max-width: 560px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; } .hero h1 { font-size: 1.6rem; } }
main { padding: 26px 0 40px; }
h2 { font-size: 1.3rem; margin: 34px 0 10px; padding-left: 12px; border-left: 5px solid var(--pen); line-height: 1.4; }
.tools { display: grid; gap: 14px; }
.tool { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tool:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20, 33, 61, .12); border-color: var(--pen); }
.tool b { font-size: 1.08rem; }
.tool span { display: block; color: var(--sub); font-size: .9rem; line-height: 1.6; margin-top: 2px; }
.tool .ic { width: 74px; height: 74px; border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.tool .ic i:nth-child(1) { background: #eaf0f7; } .tool .ic i:nth-child(2) { background: #2f6fb0; }
.tool .ic i:nth-child(3) { background: #d81b74; } .tool .ic i:nth-child(4) { background: #14213d; }
.page-h { margin: 6px 0 4px; font-size: 1.7rem; line-height: 1.35; }
.lead { color: var(--sub); margin: 0 0 14px; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; }
.summary ul { margin: 6px 0; padding-left: 1.2em; }
.tbl { overflow-x: auto; } table { border-collapse: collapse; width: 100%; background: var(--card); font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; } th { background: var(--pen-soft); }
.tbl-note { font-size: .8rem; color: var(--sub); margin: 6px 0 14px; }
.point { background: var(--pen-soft); border-left: 4px solid var(--pen); border-radius: 6px; padding: 10px 16px; margin: 14px 0; }
.point p { margin: 4px 0 0; }
ol.steps { padding-left: 1.4em; } ol.steps li { margin: 4px 0; }
footer { border-top: 1px solid var(--line); padding: 20px 0 34px; color: var(--sub); font-size: .85rem; }
footer a { color: var(--sub); }
/* ---- BOOTH のお店の色の道具(/booth-color/) ---- */
.bc { margin: 18px 0 30px; display: grid; gap: 14px; }
.bc-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bc-pre { all: unset; cursor: pointer; display: grid; gap: 2px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); transition: border-color .15s, transform .15s; }
.bc-pre:hover { border-color: var(--pen); transform: translateY(-1px); }
.bc-pre:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
.bc-pre b { font-size: .88rem; }
.bc-pre small { font-size: .72rem; color: var(--sub); line-height: 1.4; }
.bc-dots { display: flex; gap: 3px; margin-bottom: 3px; }
.bc-dots i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }

.bc-mock { --bc-bg: #FAFAFA; --bc-contents: #FFFFFF; --bc-border: #F3F3F3; --bc-text: #5A5A60; --bc-price: #BF2932; --bc-base: #000000; --bc-link: #000000;
  background: var(--bc-bg); border: 1px solid var(--line); border-radius: 6px; padding: 0 14px 16px; display: grid; gap: 12px; line-height: 1.6;
  font-family: -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; transition: background .2s; }
.bc-mock * { transition: color .2s, background-color .2s, border-color .2s; }
.bc-head { position: relative; margin: 0 -14px; aspect-ratio: 3 / 1; background: linear-gradient(135deg, #8fb4d9, #5b7ea8 55%, #3d5a80) center / cover no-repeat; border-radius: 5px 5px 0 0; }
.bc-head::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .28)); pointer-events: none; }
.bc-head.has-img::after { display: none; }
.bc-shopname { position: absolute; left: 126px; bottom: 8px; z-index: 1; color: var(--bc-base); font-size: 1.45rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 140px); }
.bc-card { background: var(--bc-contents); border: 1px solid var(--bc-border); border-radius: 6px; }
.bc-prof { position: relative; margin-top: -12px; padding: 10px 14px 12px 126px; min-height: 84px; }
.bc-icon { position: absolute; left: 12px; top: -46px; width: 100px; height: 100px; border: 4px solid var(--bc-contents); outline: 1px solid var(--bc-border); background: #14213d center / cover no-repeat; }
.bc-icon:not(.has-img)::before { content: ""; position: absolute; inset: 22%; border: 5px solid #fff; border-radius: 10px; }
.bc-follow, .bc-cart { display: inline-block; background: var(--bc-price); color: #fff; font-size: .78rem; font-weight: 700; border-radius: 3px; padding: 3px 10px; }
.bc-intro { margin: 8px 0 6px; font-size: .84rem; color: var(--bc-text); }
.bc-links { display: flex; gap: 6px; }
.bc-links i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--bc-border); color: var(--bc-link); font-style: normal; font-weight: 900; font-size: .8rem; }
.bc-item { display: grid; grid-template-columns: 1fr 1.15fr; overflow: hidden; }
.bc-thumb svg { display: block; width: 100%; height: auto; }
.bc-info { padding: 12px 14px; display: grid; gap: 6px; align-content: start; border-left: 1px solid var(--bc-border); }
.bc-crumb { font-size: .72rem; color: var(--bc-link); }
.bc-title { font-size: 1rem; font-weight: 700; color: var(--bc-text); line-height: 1.45; }
.bc-ghost { display: inline-block; font-size: .74rem; color: var(--bc-text); border: 1px solid var(--bc-text); background: var(--bc-contents); border-radius: 3px; padding: 2px 10px; justify-self: start; }
.bc-small { font-size: .7rem; color: var(--bc-text); text-align: center; }
.bc-price { font-size: 1.5rem; color: var(--bc-price); text-align: center; font-weight: 500; }
.bc-cart { text-align: center; padding: 8px; font-size: .86rem; border-radius: 20px; }
.bc-gift { text-align: center; padding: 6px; border-radius: 20px; justify-self: stretch; }
.bc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bc-mini { overflow: hidden; display: grid; font-size: .74rem; }
.bc-mini span { padding: 6px 8px 0; color: var(--bc-text); font-weight: 700; line-height: 1.35; }
.bc-mini b { padding: 2px 8px 8px; color: var(--bc-price); font-weight: 500; }
/* 選んでいる色の場所を光らせる */
@keyframes bc-blink { 50% { outline-color: transparent; } }
.bc-mock[data-hl="bg"] { box-shadow: inset 0 0 0 4px #ff2d95; }
.bc-mock[data-hl="contents"] [data-u~="contents"], .bc-mock[data-hl="border"] [data-u~="border"], .bc-mock[data-hl="text"] [data-u~="text"],
.bc-mock[data-hl="price"] [data-u~="price"], .bc-mock[data-hl="base"] [data-u~="base"], .bc-mock[data-hl="link"] [data-u~="link"] {
  outline: 3px dashed #ff2d95; outline-offset: 2px; animation: bc-blink .9s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .bc-mock * { transition: none; animation: none !important; } }

.bc-panel { display: grid; gap: 12px; }
.bc-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bc-row { display: grid; grid-template-columns: 42px 1fr 86px; gap: 8px; align-items: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.bc-row:hover, .bc-row:focus-within { border-color: #ff2d95; }
.bc-row input[type="color"] { width: 42px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: none; cursor: pointer; }
.bc-row-t { display: grid; line-height: 1.3; }
.bc-row-t b { font-size: .88rem; }
.bc-row-t small { font-size: .7rem; color: var(--sub); }
.bc-hex { font-family: ui-monospace, Consolas, monospace; font-size: .86rem; padding: 5px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); width: 100%; }
.bc-try { border: 1px solid var(--line); border-radius: 4px; background: var(--card); padding: 10px 14px; }
.bc-try summary { cursor: pointer; font-weight: 800; color: var(--pen); }
.bc-try label { display: grid; gap: 2px; margin-top: 8px; font-size: .86rem; font-weight: 700; }
.bc-try input[type="text"] { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: .9rem; }
.bc-try p { margin: 8px 0 0; font-size: .78rem; color: var(--sub); }
.bc-check, .bc-result { border: 1px solid var(--line); border-radius: 4px; background: var(--card); padding: 10px 14px; }
.bc-result { border: 2px solid var(--ink); }
.bc-checks, .bc-out { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.bc-checks li { display: grid; grid-template-columns: 112px 1fr auto; gap: 8px; align-items: center; font-size: .84rem; }
.bc-checks b { font-size: .72rem; color: #fff; border-radius: 2px; padding: 0 6px; text-align: center; }
.bc-checks b.ok { background: #23824a; } .bc-checks b.mid { background: #b7791f; } .bc-checks b.ng { background: #c4372f; }
.bc-checks em { font-style: normal; font-family: ui-monospace, Consolas, monospace; color: var(--sub); font-size: .8rem; }
.bc-out li { display: grid; grid-template-columns: 20px 1fr auto auto; gap: 8px; align-items: center; font-size: .88rem; }
.bc-out i { width: 20px; height: 20px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.bc-out code { font-family: ui-monospace, Consolas, monospace; font-size: .86rem; }
.bc-out button, .bc-acts button { font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; border: 1px solid var(--pen); color: var(--pen); background: var(--card); border-radius: 3px; padding: 2px 10px; }
.bc-out button:hover, .bc-acts button:hover { background: var(--pen-soft); }
.bc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bc-share { margin: 8px 0 0; font-size: .76rem; color: var(--sub); }
@media (max-width: 640px) {
  .bc-rows { grid-template-columns: 1fr; }
  .bc-item { grid-template-columns: 1fr; }
  .bc-info { border-left: 0; border-top: 1px solid var(--bc-border); }
  .bc-grid { grid-template-columns: 1fr 1fr; }
  .bc-grid .bc-mini:nth-child(3) { display: none; }
  .bc-prof { padding-left: 96px; }
  .bc-icon { width: 74px; height: 74px; top: -34px; }
  .bc-shopname { left: 96px; font-size: 1.1rem; max-width: calc(100% - 104px); }
}
/* 広い画面では見本と色の欄を横に並べる(本文の幅より広げる) */
.bc-body { display: grid; gap: 14px; }
@media (min-width: 1080px) {
  .bc { width: min(1180px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
  .bc-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .bc-mock { position: sticky; top: 12px; }
  .bc-rows { grid-template-columns: 1fr; }
  .bc-presets { grid-template-columns: repeat(7, 1fr); }
}