/* STUDIO MANAGER（案件ボード版）— 明るいホワイトボードと付箋の配色 */
:root {
    --ink: #2E2A36; --mute: #6C6577; --paper: #FFFDF7; --cream: #FFF6DD; --line: #E9E1CC;
    --orange: #FF7A1A; --orange-d: #D85A00; --teal: #13B5A4; --teal-d: #0B8073; --yellow: #FFE36E; --pink: #FF6FA3; --sky: #DDF2FF;
    --memo: #FFF3A6; --ok: #19A974; --ng: #E8483B;
    --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
    --r: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
    min-height: 100dvh; color: var(--ink); font-family: var(--font); font-weight: 400; line-height: 1.6; overflow-x: hidden;
    background-color: #F3FAFF;
    background-image: linear-gradient(rgba(126, 178, 214, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 178, 214, .16) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-text-size-adjust: 100%; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
button { font: inherit; color: inherit; }
p { margin: 0; }
img { -webkit-user-drag: none; }
[hidden] { display: none !important; }
.sm-app { min-height: 100dvh; }

/* ───── ボタン ───── */
.sm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-height: 46px; cursor: pointer; text-decoration: none;
    padding: .5em 1.2em; border: 3px solid var(--ink); border-radius: 999px; font-weight: 800; font-size: 16px; line-height: 1.25; letter-spacing: .03em;
    background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .06s, box-shadow .06s; word-break: keep-all;
}
.sm-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.sm-btn:disabled { cursor: default; opacity: .55; box-shadow: 0 2px 0 rgba(46, 42, 54, .4); }
.sm-btn-main { background: linear-gradient(180deg, #FF9A45, var(--orange)); color: #fff; text-shadow: 0 2px 0 var(--orange-d); }
.sm-btn-go { background: linear-gradient(180deg, #2FD0BE, var(--teal)); color: #fff; text-shadow: 0 2px 0 var(--teal-d); }
.sm-btn-ship { background: linear-gradient(180deg, #FFE98A, #FFC531); }
.sm-btn-busy { background: linear-gradient(180deg, #FF8DBB, var(--pink)); color: #fff; text-shadow: 0 2px 0 #C93E74; }
.sm-btn-sub { background: #fff; }
.sm-btn-memo { background: var(--memo); }
.sm-btn-wait { background: #F1EEE6; color: var(--mute); flex-direction: column; gap: 0; font-size: 14px; }
.sm-btn-wait small { font-weight: 400; font-size: 12px; }
.sm-btn-big { font-size: 22px; min-height: 60px; padding: .5em 2.2em; animation: smPulse 1.6s ease-in-out infinite; }
.sm-btn-s { min-height: 42px; font-size: 15px; padding: .4em 1em; }
.sm-btn-xs { min-height: 36px; font-size: 14px; padding: .2em .9em; }
.sm-link { background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-size: 14px; min-height: 44px; padding: 0 .5em; display: inline-flex; align-items: center; }
@keyframes smPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.sm-card { background: #fff; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 0 5px 0 rgba(46, 42, 54, .18); }
.sm-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sm-small { font-size: 13px; color: var(--mute); }
.sm-pre { white-space: pre-line; }
.sm-empty { text-align: center; color: var(--mute); padding: 1.5em 0; }

/* ───── タグ ───── */
.sm-cat, .sm-role, .sm-tagx { display: inline-block; font-size: 12px; font-weight: 800; line-height: 1; padding: .35em .7em; border-radius: 999px; color: #fff; background: var(--c); white-space: nowrap; }
.sm-role { margin-left: .3em; }
.sm-tagx { margin-left: .35em; color: var(--ink); border: 2px solid var(--ink); padding: .2em .6em; }
.t-repeat { background: #C9F2E6; } .t-ref { background: #FFD6E6; }
.sm-stars { color: #FFB400; letter-spacing: .05em; font-size: 18px; white-space: nowrap; text-shadow: 0 1px 0 #B87A00; }
.sm-stars i { font-style: normal; color: #E5DFD0; text-shadow: none; }

/* ───── タイトル ───── */
.sm-screen { min-height: 100dvh; }
.sm-title { position: relative; display: flex; align-items: center; justify-content: center; padding: 28px 16px 24px; overflow: hidden;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #CFEFFF, #FFF6DD 75%); }
.sm-title-main { position: relative; z-index: 1; width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.sm-kicker { font-size: 13px; font-weight: 800; color: var(--teal-d); background: #fff; border: 2px solid var(--teal); border-radius: 999px; padding: .25em 1em; }
.sm-logo { margin: 4px 0 0; display: flex; flex-direction: column; align-items: center; line-height: .92; font-weight: 800; letter-spacing: .02em; transform: rotate(-3deg); animation: smFloat 3s ease-in-out infinite; }
.sm-logo span { display: grid; }
.sm-logo i, .sm-logo u, .sm-logo em { grid-area: 1 / 1; font-style: normal; text-decoration: none; }
.sm-logo i { color: var(--ink); -webkit-text-stroke: 18px var(--ink); transform: translateY(7px); }
.sm-logo u { position: relative; color: #fff; -webkit-text-stroke: 12px #fff; }
.sm-logo em { position: relative; color: transparent; -webkit-background-clip: text; background-clip: text; }
.sm-logo .l1 { font-size: clamp(40px, 13vw, 76px); }
.sm-logo .l1 em { background-image: linear-gradient(180deg, #8FF5E8 0 45%, #13B5A4 45% 100%); }
.sm-logo .l2 { font-size: clamp(46px, 15.5vw, 92px); margin-top: 6px; }
.sm-logo .l2 em { background-image: linear-gradient(180deg, #FFF07A 0 32%, #FF9A45 32% 68%, #FF4F6D 68%); }
@keyframes smFloat { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-6px); } }
.sm-logo-sub { font-weight: 800; font-size: 15px; letter-spacing: .25em; color: #fff; background: var(--ink); padding: .3em 1.1em .3em 1.35em; border-radius: 999px; }
.sm-catch { font-weight: 800; font-size: clamp(15px, 4.4vw, 19px); line-height: 1.6; }
.sm-title-crew { display: flex; gap: 8px; justify-content: center; }
.sm-title-face { margin: 0; width: 72px; display: flex; flex-direction: column; align-items: center; animation: smBob 2.4s ease-in-out infinite; }
.sm-title-face:nth-child(2) { animation-delay: .3s; } .sm-title-face:nth-child(3) { animation-delay: .6s; } .sm-title-face:nth-child(4) { animation-delay: .9s; }
.sm-title-face img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; border: 3px solid var(--c); box-shadow: 0 3px 0 var(--ink); }
.sm-title-face figcaption { margin-top: 4px; font-size: 12px; font-weight: 800; color: #fff; background: var(--c); border-radius: 999px; padding: 0 .7em; }
@keyframes smBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.sm-title-btns { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 4px; }
.sm-best { font-size: 13px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: .2em 1em; }
.sm-best b { color: var(--orange-d); }
.sm-foot-note { font-size: 12px; color: var(--mute); background: rgba(255, 255, 255, .85); border-radius: 10px; padding: .4em .9em; }
.sm-sound { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2; min-height: 44px; padding: 0 1em; border: 3px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.sm-title-notes { position: absolute; inset: 0; pointer-events: none; }
.sm-note { position: absolute; font-weight: 800; font-size: 13px; padding: .7em .9em; background: var(--memo); border-radius: 4px; box-shadow: 0 4px 8px rgba(46, 42, 54, .15); animation: smSway 4s ease-in-out infinite; }
.sm-note::before { content: ''; position: absolute; left: 50%; top: -8px; width: 34px; height: 14px; margin-left: -17px; background: rgba(255, 255, 255, .7); transform: rotate(-4deg); }
.sm-note.n1 { left: 4%; top: 6%; transform: rotate(-8deg); }
.sm-note.n2 { left: 42%; top: 1.5%; background: #FFD6E6; transform: rotate(6deg); animation-delay: .5s; }
.sm-note.n3 { left: 2%; top: 44%; background: #C9F2E6; transform: rotate(5deg); animation-delay: 1s; }
.sm-note.n4 { right: 2%; top: 38%; background: #DCEFFF; transform: rotate(-6deg); animation-delay: 1.5s; }
.sm-note.n5 { left: 5%; bottom: 8%; background: #ECE4FF; transform: rotate(-4deg); animation-delay: 2s; }
.sm-note.n6 { right: 5%; bottom: 10%; transform: rotate(7deg); animation-delay: 2.5s; }
@keyframes smSway { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (max-width: 640px) { .sm-note { font-size: 11px; padding: .5em .6em; opacity: .9; } .sm-note.n3, .sm-note.n4 { display: none; } }

/* ───── あそびかた・図鑑 ───── */
.sm-page { padding: 0 16px 32px; max-width: 760px; margin: 0 auto; }
.sm-topbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 0; background: linear-gradient(180deg, #F3FAFF 75%, rgba(243, 250, 255, 0)); }
.sm-back { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; font-size: 26px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.sm-page-title { font-size: 20px; font-weight: 800; }
.sm-page-body { display: flex; flex-direction: column; gap: 14px; }
.sm-lead { font-size: 15px; }
.sm-how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sm-how li { display: flex; gap: 12px; background: #fff; border: 3px solid var(--ink); border-radius: var(--r); padding: 12px; font-size: 14px; }
.sm-how li > b { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 17px; }
.sm-how em { display: block; font-style: normal; font-weight: 800; font-size: 16px; margin-bottom: 2px; }
.sm-how-goal { font-weight: 800; background: var(--memo); border-radius: 10px; padding: .6em 1em; }
.sm-page-body > .sm-btn { align-self: center; }
.sm-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.sm-tab { flex: 1; min-height: 44px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; }
.sm-tab.is-on { background: var(--ink); color: #fff; }
.sm-dex-role { padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; border-color: var(--c); background: linear-gradient(180deg, var(--l), #fff 90px); }
.sm-dex-head { display: flex; align-items: center; gap: 12px; }
.sm-dex-head img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--c); background: #fff; flex: none; }
.sm-dex-short { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--c); border-radius: 999px; padding: 0 .8em; }
.sm-dex-name { font-weight: 800; font-size: 17px; }
.sm-dex-member { font-size: 12px; color: var(--mute); }
.sm-dex-stage { display: flex; gap: 12px; padding: 12px 14px; font-size: 14px; }
.sm-dex-no { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* ───── プレイ画面 ───── */
.sm-play { display: flex; flex-direction: column; height: 100dvh; }
.sm-hud { flex: none; display: flex; align-items: stretch; gap: 6px; padding: max(8px, env(safe-area-inset-top)) 10px 8px; background: #fff; border-bottom: 3px solid var(--ink); }
.sm-hud > div { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.1; background: var(--cream); border-radius: 12px; padding: 4px 8px; }
.sm-hud small { font-size: 11px; color: var(--mute); font-weight: 800; white-space: nowrap; }
.sm-hud b { font-size: 20px; font-weight: 800; }
.sm-hud span { font-size: 11px; color: var(--mute); }
.sm-hud-week { flex: 1.25 !important; background: var(--ink) !important; color: #fff; display: grid !important; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto auto; column-gap: 4px; align-items: end; }
.sm-hud-week small { grid-column: 1 / -1; color: #FFE36E; }
.sm-hud-week span { color: #ddd; padding-bottom: 2px; }
.sm-weekbar { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); margin-top: 3px; overflow: hidden; }
.sm-weekbar em { display: block; height: 100%; background: #FFE36E; }
.sm-hud-stat b { color: var(--orange-d); }
.sm-icon-btn { flex: none; width: 46px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; font-size: 22px; font-weight: 800; cursor: pointer; }
@media (max-width: 420px) { .sm-hud { gap: 4px; padding-left: 8px; padding-right: 8px; } .sm-hud > div { padding: 4px 6px; } .sm-hud b { font-size: 17px; } .sm-hud small { font-size: 11px; letter-spacing: -.04em; } .sm-icon-btn { width: 40px; } }

.sm-board-wrap { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 10px 12px 16px; }
.sm-board-head { display: flex; align-items: baseline; gap: 10px; margin: 2px 2px 8px; }
.sm-board-head span { font-weight: 800; font-size: 16px; background: var(--ink); color: #fff; border-radius: 8px; padding: 0 .6em; }
.sm-board-head small { font-size: 12px; color: var(--mute); }
.sm-lanes { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .sm-lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sm-board-wrap { padding: 14px 20px 18px; } }
@media (min-width: 900px) { .sm-board-wrap { padding-left: max(20px, calc((100% - 1240px) / 2)); padding-right: max(20px, calc((100% - 1240px) / 2)); } .sm-hud { padding-left: max(10px, calc((100% - 1240px) / 2)); padding-right: max(10px, calc((100% - 1240px) / 2)); } .sm-lane-title { font-size: 19px; } }
.sm-lane { position: relative; padding: 12px 12px 12px; display: flex; flex-direction: column; gap: 8px; border-top: 8px solid var(--c); min-width: 0; }
.sm-lane-empty { border: 3px dashed #B9B0C6; border-radius: var(--r); background: rgba(255, 255, 255, .6); align-items: center; justify-content: center; min-height: 120px; color: var(--mute); font-weight: 800; }
.sm-lane-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.sm-due { margin-left: auto; font-size: 12px; color: var(--mute); }
.sm-due.is-warn { color: var(--ng); }
.sm-lane-client { font-size: 12px; color: var(--mute); line-height: 1.3; }
.sm-lane-title { font-weight: 800; font-size: 17px; line-height: 1.35; }
.sm-track { list-style: none; margin: 2px 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.sm-track li { position: relative; text-align: center; font-size: 11px; font-weight: 800; color: #A39DAD; line-height: 1.2; }
.sm-track li i { display: block; height: 10px; border-radius: 5px; background: #ECE8F1; margin-bottom: 3px; }
.sm-track li.is-done i { background: var(--c); opacity: .55; }
.sm-track li.is-done { color: var(--ink); }
.sm-track li.is-skip i { background: repeating-linear-gradient(90deg, #ECE8F1 0 4px, #fff 4px 8px); opacity: 1; }
.sm-track li.is-now i { background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); animation: smNow 1.2s ease-in-out infinite; }
.sm-track li.is-now { color: var(--ink); }
@keyframes smNow { 50% { opacity: .55; } }
.sm-wishes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.sm-wish { display: flex; flex-direction: column; justify-content: center; font-size: 11px; font-weight: 800; line-height: 1.25; padding: 4px 2px; border-radius: 8px; background: #FFF8D6; border: 2px solid #F3DE7A; text-align: center; min-width: 0; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: anywhere; }
.sm-wish small { font-size: 11px; color: var(--mute); font-weight: 700; }
.sm-wish.is-unknown { background: #F4F2F8; border-style: dashed; border-color: #C9C3D4; color: #9C95A8; font-size: 15px; }
.sm-wish.is-free { background: #F6F6F3; border-color: #E2E0D8; color: var(--mute); font-weight: 700; }
.sm-lane-sb { display: flex; align-items: center; gap: 8px; }
.sm-lane-sb-label { font-size: 11px; color: var(--mute); font-weight: 800; writing-mode: vertical-rl; }
.sm-prog { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.sm-prog i { position: relative; flex: 1; height: 14px; border-radius: 7px; background: #ECE8F1; overflow: hidden; border: 2px solid var(--ink); }
.sm-prog em { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #2FD0BE, var(--teal)); }
.sm-prog em.is-add { background: repeating-linear-gradient(45deg, #FFC531 0 6px, #FFE36E 6px 12px); }
.sm-prog-fix em { background: linear-gradient(90deg, #FF9A45, var(--orange)); }
.sm-act { width: 100%; margin-top: 2px; }
.sm-team-wrap { margin-top: 0; }
.sm-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .sm-team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sm-member { display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 8px; min-height: 64px; border: 3px solid var(--c); border-radius: 14px; background: linear-gradient(90deg, var(--l), #fff); cursor: pointer; min-width: 0; }
.sm-member img { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; border: 2px solid var(--c); }
.sm-member-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sm-member-txt b { font-size: 15px; }
.sm-member-txt small { font-size: 11px; color: var(--mute); font-weight: 800; }
.sm-member-txt em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--teal-d); }
.sm-member.is-busy { filter: grayscale(.7); opacity: .7; }
.sm-member.is-busy em { color: var(--mute); }
.sm-member-ghost { border: 3px dashed #C9C3D4; background: rgba(255, 255, 255, .6); cursor: default; justify-content: center; }
.sm-member-ghost b { color: #B9B0C6; text-align: center; }
.sm-member-ghost small { text-align: center; }
.sm-foot { flex: none; display: flex; gap: 10px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: #fff; border-top: 3px solid var(--ink); justify-content: center; }
.sm-foot .sm-btn { flex: 1; max-width: 360px; }
.sm-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; background: var(--ng); color: #fff; font-size: 13px; padding: 0 6px; }
.sm-btn-memo.is-hot { animation: smPulse 1.2s ease-in-out infinite; }

/* ───── 絵コンテ（4コマ） ───── */
.sm-sb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sm-koma { position: relative; aspect-ratio: 4 / 3; border: 3px solid var(--ink); border-radius: 8px; background: var(--kbg); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; min-width: 0; }
.sm-koma.is-empty { background: #FBF7EE; border-style: dashed; border-color: #B9B0C6; }
.sm-koma-no { position: absolute; left: 3px; top: 2px; font-size: 11px; font-weight: 800; line-height: 1; display: flex; align-items: baseline; gap: 2px; }
.sm-koma-no small { font-size: 11px; color: var(--mute); }
.sm-koma-g { width: 46%; max-width: 44px; color: var(--ink); margin-top: 8px; }
.sm-koma-g svg { display: block; width: 100%; height: auto; }
.sm-koma-t { font-size: 11px; font-weight: 800; line-height: 1.1; text-align: center; padding: 0 2px 3px; }
.sm-koma-mark { position: absolute; right: 3px; top: 1px; font-weight: 800; font-size: 15px; }
.sm-koma.r-ok { box-shadow: 0 0 0 3px var(--ok); } .sm-koma.r-ok .sm-koma-mark { color: var(--ok); }
.sm-koma.r-ok2 .sm-koma-mark { color: #3B8BE0; }
.sm-koma.r-ng { box-shadow: 0 0 0 3px var(--ng); } .sm-koma.r-ng .sm-koma-mark { color: var(--ng); }
.sm-sb-s { flex: 1; gap: 4px; }
.sm-sb-s .sm-koma { border-width: 2px; border-radius: 6px; aspect-ratio: 16 / 10; }
.sm-sb-s .sm-koma-g { width: 34%; margin-top: 6px; }
.sm-sb-s .sm-koma-no small { display: none; }
.sm-sb-s .sm-koma-mark { font-size: 12px; }

/* ───── モーダル（工程シート・依頼箱） ───── */
.sm-modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(46, 42, 54, .45); }
@media (min-width: 700px) { .sm-modal { align-items: center; padding: 20px; } }
.sm-modal-center { align-items: center; padding: 16px; }
.sm-sheet { width: 100%; max-width: 640px; max-height: 94dvh; display: flex; flex-direction: column; background: var(--paper); border: 3px solid var(--ink); border-radius: 20px 20px 0 0; box-shadow: 0 -6px 0 rgba(46, 42, 54, .15); animation: smUp .22s ease-out; }
@media (min-width: 700px) { .sm-sheet { border-radius: 20px; max-height: 90dvh; } }
@keyframes smUp { from { transform: translateY(40px); opacity: 0; } }
.sm-sheet-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 14px; border-bottom: 2px dashed var(--line); }
.sm-stage-chip { flex: none; font-size: 13px; font-weight: 800; color: #fff; background: var(--c, var(--teal)); border-radius: 10px; padding: .4em .7em; }
.sm-chip-memo { background: #FFC531; color: var(--ink); }
.sm-sheet-title { flex: 1; min-width: 0; }
.sm-sheet-sub { font-size: 12px; color: var(--mute); line-height: 1.3; }
.sm-sheet-name { font-size: 17px; font-weight: 800; line-height: 1.35; }
.sm-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; font-size: 22px; font-weight: 800; cursor: pointer; line-height: 1; }
.sm-sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sm-sheet-btns { flex: none; padding: 10px 14px max(12px, env(safe-area-inset-bottom)); border-top: 2px dashed var(--line); display: flex; }
.sm-sheet-btns .sm-btn { flex: 1; }
.sm-tip { font-size: 13px; background: #E9FBF7; border-radius: 10px; padding: .55em .8em; }
.sm-tip span { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--teal); border-radius: 6px; padding: 0 .5em; margin-right: .5em; }
.sm-step-h { font-weight: 800; font-size: 15px; }
.sm-step-h b { color: var(--orange-d); }
.sm-pick-ms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sm-pick-m { display: flex; align-items: center; gap: 6px; padding: 6px; text-align: left; border: 3px solid #DDD6E5; border-radius: 12px; background: #fff; cursor: pointer; min-height: 60px; min-width: 0; }
.sm-pick-m img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--c); }
.sm-pick-m span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sm-pick-m b { font-size: 14px; }
.sm-pick-m b + .sm-role { align-self: flex-start; margin: 2px 0 0; }
.sm-pick-m small { font-size: 11px; color: var(--mute); font-weight: 700; }
.sm-pick-m.is-on { border-color: var(--c); background: var(--l); box-shadow: 0 0 0 2px var(--c); }
.sm-pick-m.is-on small { color: var(--ink); }
.sm-pick-m:disabled { opacity: .45; cursor: default; }
.sm-mini-memo { background: var(--memo); border-radius: 6px; padding: .6em .8em; font-size: 14px; box-shadow: 0 3px 6px rgba(46, 42, 54, .1); }
.sm-memo-note { font-size: 14px; margin-top: 4px; }
.sm-memo-note span { display: inline-block; font-size: 11px; font-weight: 800; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0 .5em; margin-right: .4em; }
.sm-qs { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 520px) { .sm-qs { grid-template-columns: 1fr 1fr; } }
.sm-q { text-align: left; border: 3px solid #DDD6E5; border-radius: 12px; background: #fff; padding: 8px 10px; cursor: pointer; font-size: 14px; line-height: 1.4; min-height: 56px; }
.sm-q small { display: block; font-size: 11px; font-weight: 800; color: var(--teal-d); }
.sm-q.is-on { border-color: var(--teal); background: #E9FBF7; box-shadow: 0 0 0 2px var(--teal); }
.sm-q.is-on small::after { content: '　✔ 聞く'; }
.sm-q:disabled { opacity: .45; cursor: default; }
.sm-q.is-known { background: #F6F6F3; border-style: dashed; cursor: default; }
.sm-q.is-known em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--mute); }
.sm-rows { display: flex; flex-direction: column; gap: 8px; }
.sm-krow { display: block; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 8px; }
.sm-row-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 14px; margin-bottom: 6px; }
.sm-row-h small { font-size: 11px; color: var(--mute); }
.sm-row-wish { margin-left: auto; font-size: 12px; font-weight: 800; background: #FFF8D6; border-radius: 999px; padding: 0 .7em; }
.sm-row-wish.is-unknown { background: #F4F2F8; color: #9C95A8; }
.sm-row-wish.is-free { background: #F6F6F3; color: var(--mute); }
.sm-hint { width: 100%; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: var(--pink); border-radius: 8px; padding: .15em .6em; }
.sm-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sm-opt { min-height: 44px; border: 3px solid #DDD6E5; border-radius: 10px; background: #fff; font-weight: 800; font-size: 13px; line-height: 1.25; cursor: pointer; padding: 4px; }
.sm-opt.is-on { border-color: var(--orange); background: #FFEBD9; box-shadow: 0 0 0 2px var(--orange); }
.sm-big-prog { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.sm-fixes { margin: 0; padding-left: 1.2em; font-size: 14px; }

/* 依頼メモ */
.sm-memo { position: relative; background: var(--memo); border-radius: 6px; padding: 14px 14px 12px; box-shadow: 0 4px 10px rgba(46, 42, 54, .15); display: flex; flex-direction: column; gap: 6px; border-left: 8px solid var(--c); }
.sm-memo::before { content: ''; position: absolute; left: 50%; top: -9px; width: 60px; height: 18px; margin-left: -30px; background: rgba(255, 255, 255, .75); transform: rotate(-3deg); }
.sm-memo + .sm-memo { margin-top: 8px; }
.sm-memo-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.sm-memo-exp { margin-left: auto; font-size: 12px; color: var(--mute); }
.sm-memo-client { font-size: 13px; color: var(--mute); }
.sm-memo-title { font-weight: 800; font-size: 18px; line-height: 1.35; }
.sm-memo-text { font-size: 14px; }
.sm-memo .sm-wish { background: #fff; }
.sm-memo .sm-wish.is-unknown { background: rgba(255, 255, 255, .6); }
.sm-memo-dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12px; }
.sm-memo-dl div { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.sm-memo-dl dt { color: var(--mute); font-weight: 800; }
.sm-memo-dl dd { margin: 0; }
.sm-memo-dl dd b { font-size: 16px; }
.sm-memo-btns { display: flex; justify-content: flex-end; }
.sm-memo-btns .sm-btn { width: 100%; }

/* ───── ポップアップ ───── */
.sm-pop { width: 100%; max-width: 520px; max-height: 90dvh; overflow-y: auto; background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 10px; animation: smPop .25s cubic-bezier(.3, 1.5, .5, 1); box-shadow: 0 8px 0 rgba(46, 42, 54, .2); }
@keyframes smPop { from { transform: scale(.85); opacity: 0; } }
.sm-pop-tag { align-self: flex-start; font-size: 12px; font-weight: 800; color: #fff; background: var(--teal); border-radius: 999px; padding: .15em .9em; }
.sm-pop-title { font-size: 19px; font-weight: 800; line-height: 1.4; }
.sm-pop-body { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.sm-pop-btns { display: flex; gap: 8px; }
.sm-pop-btns .sm-btn { flex: 1; }
.sm-menu { align-items: stretch; text-align: center; }
.sm-reveal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sm-reveal li { display: flex; align-items: baseline; gap: 10px; background: #FFF8D6; border-radius: 10px; padding: .5em .8em; animation: smPop .3s both; }
.sm-reveal li:nth-child(2) { animation-delay: .15s; } .sm-reveal li:nth-child(3) { animation-delay: .3s; }
.sm-reveal small { font-weight: 800; color: var(--mute); min-width: 4.5em; }
.sm-reveal b { font-size: 17px; }
.sm-react { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.sm-react li { display: grid; grid-template-columns: 26px 1fr; align-items: center; column-gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: .35em .6em; animation: smPop .3s both; }
.sm-react li:nth-child(2) { animation-delay: .2s; } .sm-react li:nth-child(3) { animation-delay: .4s; } .sm-react li:nth-child(4) { animation-delay: .6s; }
.sm-react-mark { grid-row: span 2; font-size: 20px; font-weight: 800; text-align: center; }
.sm-react small { font-size: 11px; color: var(--mute); font-weight: 800; }
.sm-react li.r-ok { border-color: #A8E6CF; } .sm-react li.r-ok .sm-react-mark { color: var(--ok); }
.sm-react li.r-ok2 .sm-react-mark { color: #3B8BE0; }
.sm-react li.r-ng { border-color: #FFB3AB; background: #FFF4F2; } .sm-react li.r-ng .sm-react-mark { color: var(--ng); }
.sm-react li.r-free { color: var(--mute); }
.sm-ship-title { font-weight: 800; font-size: 16px; }
.sm-ship-stars { display: flex; align-items: center; gap: 10px; }
.sm-ship-stars .sm-stars { font-size: 34px; animation: smPop .5s .1s both; }
.sm-ship-stars span:last-child { font-weight: 800; }
.sm-ship-pay { font-weight: 800; }
.sm-ship-pay b { color: var(--orange-d); font-size: 22px; }
.sm-fans { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sm-fans li { border-radius: 10px; padding: .5em .8em; font-size: 13px; animation: smPop .35s .3s both; }
.sm-fans b { display: inline-block; margin-right: .5em; color: #fff; border-radius: 6px; padding: 0 .5em; }
.f-repeat { background: #E3F8F1; } .f-repeat b { background: var(--teal); }
.f-ref { background: #FFE8F1; } .f-ref b { background: var(--pink); }
.sm-join { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--c); border-radius: 14px; padding: 8px; animation: smPop .4s .5s both; }
.sm-join img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.sm-join b { display: block; }
.sm-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sm-notes li { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: .45em .7em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sm-notes li b { color: #fff; border-radius: 6px; padding: 0 .4em; background: var(--teal); }
.sm-notes .n-ref b { background: var(--pink); }
.sm-notes .n-exp { color: var(--mute); }
.sm-notes .n-late { border-color: #FFB3AB; background: #FFF4F2; }
.sm-notes .n-join b { background: var(--orange); }
.sm-notes img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; }
.sm-pop-member { display: flex; gap: 10px; align-items: center; }
.sm-pop-member img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--c); flex: none; }
.sm-perks { margin: 0; padding-left: 1.2em; }

/* ───── 結果 ───── */
.sm-result { padding: 20px 16px 32px; background: linear-gradient(180deg, #FFF3C4, #F3FAFF 340px); }
.sm-result-body { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
.sm-res-tag { align-self: center; font-weight: 800; font-size: 12px; letter-spacing: .2em; color: #fff; background: var(--ink); border-radius: 999px; padding: .2em 1.2em; }
.sm-res-head { font-size: 24px; font-weight: 800; }
.sm-res-sub { font-size: 14px; }
.sm-res-stars { display: flex; justify-content: center; gap: 8px; font-size: 48px; line-height: 1; }
.sm-res-stars span { color: #E5DFD0; }
.sm-res-stars span.is-on { color: #FFB400; text-shadow: 0 3px 0 #B87A00; animation: smPop .5s both; }
.sm-res-stars span.is-on:nth-child(2) { animation-delay: .25s; } .sm-res-stars span.is-on:nth-child(3) { animation-delay: .5s; }
.sm-res-missions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.sm-res-missions li { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .5em .8em; font-size: 14px; }
.sm-res-missions i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #C9C3D4; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #fff; }
.sm-res-missions li.is-ok i { background: var(--ok); border-color: var(--ok); }
.sm-res-missions span { flex: 1; }
.sm-res-missions b { white-space: nowrap; }
.sm-res-score { padding: 12px; display: flex; flex-direction: column; align-items: center; }
.sm-res-score small { font-weight: 800; letter-spacing: .2em; color: var(--mute); }
.sm-res-score b { font-size: 44px; font-weight: 800; color: var(--orange-d); line-height: 1.1; }
.sm-res-score span { font-size: 12px; color: var(--mute); }
.sm-res-score em { display: block; font-style: normal; font-weight: 800; color: #fff; background: var(--pink); border-radius: 999px; padding: 0 .8em; margin-top: 4px; }
.sm-res-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sm-res-block { padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sm-res-lead { font-weight: 800; font-size: 16px; }
.sm-res-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sm-res-list li { display: flex; align-items: center; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.sm-res-list li > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.35; font-weight: 800; }
.sm-res-list small { display: block; font-weight: 400; font-size: 11px; color: var(--mute); }
.sm-res-list .sm-stars { font-size: 14px; }
.sm-res-job { display: flex; align-items: center; gap: 12px; }
.sm-res-job img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--ink); background: #fff; flex: none; }
.sm-res-type { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--ink); border-radius: 999px; padding: 0 .8em; }
.sm-res-name { font-size: 19px; font-weight: 800; }
.sm-res-bars-head { font-weight: 800; font-size: 13px; margin-top: 4px; }
.sm-res-bars { display: flex; flex-direction: column; gap: 4px; }
.sm-bar-row { display: grid; grid-template-columns: 4em 1fr 2em; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.sm-bar-row i { height: 12px; border-radius: 6px; background: #ECE8F1; overflow: hidden; }
.sm-bar-row em { display: block; height: 100%; border-radius: 6px; }

/* ───── 先輩のひとこと・バナー・トースト ───── */
.sm-tut { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 40; width: min(560px, calc(100% - 24px)); display: flex; align-items: flex-end; gap: 8px; animation: smUp .25s ease-out; }
.sm-tut-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--ink); background: #fff; flex: none; }
.sm-tut-box { flex: 1; background: #fff; border: 3px solid var(--ink); border-radius: 16px 16px 16px 4px; padding: 10px 12px; box-shadow: 0 5px 0 rgba(46, 42, 54, .2); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.sm-tut-name { font-size: 11px; font-weight: 800; color: var(--orange-d); }
.sm-tut-box .sm-btn { align-self: flex-end; }
.sm-banner { position: fixed; left: 0; right: 0; top: 38%; z-index: 30; pointer-events: none; text-align: center; background: linear-gradient(90deg, rgba(255, 122, 26, 0), #FF7A1A 20%, #FF7A1A 80%, rgba(255, 122, 26, 0)); color: #fff; padding: 10px 0 12px; }
.sm-banner small { display: block; font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.sm-banner b { font-size: 32px; font-weight: 800; text-shadow: 0 3px 0 var(--orange-d); }
.sm-banner.is-on { animation: smBanner 1.1s ease both; }
@keyframes smBanner { 0% { transform: scaleY(0); opacity: 0; } 15%, 85% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0); opacity: 0; } }
.sm-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; width: max-content; max-width: calc(100% - 24px); background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; border-radius: 999px; padding: .5em 1.2em; text-align: center; animation: smPop .25s; pointer-events: none; }


/* ───── ボードの下（チームと進行のまとめ） ───── */
.sm-lower { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sm-lower > * { min-width: 0; }
.sm-sum { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.sm-gauges { display: flex; flex-direction: column; gap: 8px; }
.sm-gauge p { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; line-height: 1.3; }
.sm-gauge p span { color: var(--mute); }
.sm-gauge i { display: block; height: 10px; border-radius: 5px; background: #ECE8F1; overflow: hidden; margin-top: 3px; }
.sm-gauge em { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #FF9A45, var(--orange)); }
.sm-gauge.is-ok em { background: linear-gradient(90deg, #2FD0BE, var(--ok)); }
.sm-gauge.is-ok p b::after { content: ' ✔'; color: var(--ok); }
.sm-sum-h { font-size: 13px; font-weight: 800; border-top: 2px dashed var(--line); padding-top: 8px; }
.sm-sum-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sm-sum-list li { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
.sm-sum-list li > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-sum-list .sm-stars { font-size: 14px; }
.sm-sum-empty { color: var(--mute); font-weight: 400 !important; }

/* 先輩のひとこと：OKは押しやすく、工程シートの中では見出しの下に置く */
.sm-tut .sm-btn { min-height: 44px; min-width: 64px; }
.sm-tut.is-inline { position: static; translate: none; transform: none; width: auto; margin: 8px 12px 0; animation: none; flex: none; }
.sm-tut.is-inline .sm-tut-face { width: 44px; height: 44px; }
.sm-tut.is-inline .sm-tut-box { box-shadow: none; background: #FFF8E6; }
.sm-pop { padding-bottom: 14px; }
.sm-pop-btns { margin-top: 2px; }

/* ───── PC：文字を13px以上にし、ボードの下を2列で埋める ───── */
@media (min-width: 900px) {
    .sm-lower { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
    .sm-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm-hud small, .sm-hud span, .sm-board-head small, .sm-due, .sm-lane-client, .sm-track li, .sm-wish, .sm-wish small,
    .sm-cat, .sm-role, .sm-tagx, .sm-koma-t, .sm-koma-no, .sm-koma-no small, .sm-lane-sb-label, .sm-prog, .sm-member-txt small, .sm-member-txt em,
    .sm-small, .sm-tip, .sm-tip span, .sm-pick-m small, .sm-q small, .sm-row-h small, .sm-row-wish, .sm-hint, .sm-memo-exp, .sm-memo-dl, .sm-memo-note span,
    .sm-reveal small, .sm-react small, .sm-fans li, .sm-res-list small, .sm-tut-name, .sm-sheet-sub, .sm-btn-wait small, .sm-foot-note, .sm-kicker,
    .sm-note, .sm-title-face figcaption, .sm-dex-member, .sm-dex-short, .sm-res-score span, .sm-gauge p, .sm-sum-h, .sm-sum-list li, .sm-memo-client,
    .sm-opt, .sm-badge, .sm-res-tag, .sm-pop-tag, .sm-stage-chip, .sm-res-type, .sm-res-score small, .sm-bar-row, .sm-res-bars-head { font-size: 13px; }
    .sm-hud b { font-size: 22px; }
    .sm-wish { font-size: 14px; }
    .sm-wish.is-unknown { font-size: 17px; }
    .sm-member-txt b { font-size: 16px; }
    .sm-sb-s .sm-koma { aspect-ratio: 4 / 3; }
    .sm-sb-s .sm-koma-no small { display: inline; }
    .sm-lane { gap: 10px; padding: 14px 12px; }
    .sm-track { gap: 2px; }
    .sm-track li { white-space: nowrap; letter-spacing: -.1em; }
}


/* 結果：クリアのバッジと、条件ごとの★ */
.sm-res-sub { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; word-break: keep-all; overflow-wrap: anywhere; }
.sm-clear-badge { font-weight: 800; color: #fff; background: var(--ok); border-radius: 999px; padding: .1em 1em; font-size: 16px; box-shadow: 0 3px 0 rgba(46, 42, 54, .25); }
.sm-clear-badge.is-off { background: var(--orange); }
.sm-res-stars { align-items: center; }
.sm-res-count { font-size: 16px; font-weight: 800; color: var(--mute); margin-left: 6px; }
.sm-res-missions i { width: 30px; height: 30px; border: 0; font-size: 26px; line-height: 1; color: #E5DFD0; background: none; }
.sm-res-missions li.is-ok i { background: none; color: #FFB400; text-shadow: 0 2px 0 #B87A00; }
.sm-res-missions span small { display: block; font-size: 13px; font-weight: 800; color: var(--mute); line-height: 1.2; }


/* 文節で折り返す（文末の1字だけが次の行に落ちないように） */
.sm-pop-title, .sm-toast, .sm-member-txt, .sm-tut-text, .sm-small, .sm-step-h, .sm-lane-title, .sm-memo-title, .sm-memo-text, .sm-memo-note,
.sm-tip, .sm-notes li, .sm-fans li, .sm-reveal li, .sm-react li, .sm-sheet-name, .sm-lead, .sm-how li, .sm-how-goal, .sm-dex-role p, .sm-dex-stage p,
.sm-res-desc, .sm-res-reason, .sm-mini-memo p, .sm-q p, .sm-ship-title, .sm-join p, .sm-pop-body p, .sm-catch, .sm-foot-note, .sm-gauge p, .sm-res-missions span {
    word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; text-wrap: pretty;
}
.sm-kicker { word-break: keep-all; text-wrap: balance; }
/* PCのタイトル：職種ラベルと注記を大きく */
@media (min-width: 900px) {
    .sm-title-face { width: 96px; }
    .sm-title-face img { width: 84px; height: 84px; }
    .sm-title-face figcaption { font-size: 15px; }
    .sm-foot-note { font-size: 14px; }
    .sm-kicker { font-size: 15px; }
    .sm-note { font-size: 15px; }
    .sm-best { font-size: 14px; }
    .sm-q.is-known em { font-size: 13px; }
}


/* 短いラベルは、行の長さをそろえて折り返す（1字だけ次の行に落ちないように） */
.sm-wish, .sm-opt, .sm-koma-t, .sm-pick-m small, .sm-sheet-sub, .sm-memo-exp, .sm-member-txt small, .sm-member-txt em, .sm-row-wish, .sm-hint, .sm-q small {
    word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; text-wrap: balance;
}
.sm-track li { white-space: nowrap; letter-spacing: -.08em; }
@media (max-width: 380px) { .sm-track li { letter-spacing: -.14em; } }


.sm-koma-t { white-space: nowrap; letter-spacing: -.05em; }
.sm-memo-client, .sm-lane-client, .sm-res-list li > span, .sm-res-list small, .sm-memo-title, .sm-lane-title {
    word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) { .sm-logo, .sm-btn-big, .sm-title-face, .sm-note, .sm-track li.is-now i, .sm-btn-memo.is-hot { animation: none; } }
