/* 坂道日和 v0.9.5 / 自由編成専用スタイル。既存ドラフトUIは変更しない。 */
.free-main{padding-bottom:85px}.free-heading{padding:36px 0 28px;display:flex;justify-content:space-between;align-items:end;gap:20px}.free-heading .breadcrumbs{margin-bottom:13px}.free-heading h1{font-size:clamp(30px,3.5vw,44px);letter-spacing:-.065em;margin:7px 0}.free-heading p{font-size:13px;color:var(--muted);margin:0;max-width:720px}.free-hero-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.free-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.13fr);gap:18px;align-items:start}.free-left{display:grid;gap:18px}.free-workspace{position:sticky;top:91px;padding:20px}.free-panel-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:15px}.free-panel-head h2{margin:0;font-size:20px}.free-count,.free-progress-pill{background:#edf5fa;color:#467c99;padding:6px 10px;border-radius:999px;font-weight:800;font-size:12px;white-space:nowrap}.free-setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.free-total-value{display:flex;align-items:center;justify-content:center;background:#f3f7fa;border-radius:10px;font-weight:800;min-height:47px}.free-row-counts{display:grid;gap:5px;margin-top:15px}.free-row-control{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:8px 0;gap:10px}.free-row-control>span{font-size:13px;font-weight:700}.free-stepper{display:flex;align-items:center;gap:8px}.free-stepper button{width:32px;height:32px;border:1px solid var(--border);border-radius:9px;background:#fff;font-size:18px;line-height:1}.free-stepper output{width:43px;text-align:center;font-weight:800}.free-checkbox{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:750;margin:14px 0}.free-mini-title{font-size:12px;font-weight:800;margin:14px 0 10px;color:#5a7386}.free-mini-preview{display:grid;gap:10px;padding:16px;background:#f8fafd;border:1px solid #e2ebf2;border-radius:13px}.free-mini-row{display:grid;justify-items:center;gap:5px}.free-mini-row>span{font-size:10px;color:var(--muted)}.free-mini-circles{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.free-mini-dot{width:17px;height:17px;border:1.5px solid #9bb0bf;background:#fff;border-radius:50%}.free-mini-dot.center{background:#fff5df;border:2px solid #c6923d}.free-tiny{font-size:11px;color:#8296a4;margin:9px 0 0}.free-hint,.free-tip{font-size:12px;color:#708695;line-height:1.75}.free-hint{margin:0 0 16px}.free-search{display:flex;align-items:center;position:relative;margin:10px 0}.free-search>span{position:absolute;left:11px;top:6px;font-size:23px;color:#8297a8}.free-search input{padding-left:34px}.free-group-pills{display:flex;gap:5px;flex-wrap:wrap;margin:13px 0}.free-group-pills button{font-size:11px;padding:6px 10px;border:1px solid #dbe4e9;background:white;color:#657989;border-radius:99px;font-weight:750}.free-group-pills button[aria-pressed=true]{border-color:#85b6d1;background:#e6f4fb;color:#347b9e}.free-filters{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px}.free-filters label{font-size:11px;font-weight:750;color:#67808e}.free-filters select{margin-top:4px;font-size:12px;padding:8px 9px}.free-member-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:540px;overflow:auto;padding:2px 3px 4px 2px}.free-member-card{display:block;border:2px solid #e4eaf0;border-radius:11px;overflow:hidden;background:#fff;text-align:center;min-width:0;padding:5px;touch-action:pan-y;transition:border-color .15s,background .15s}.free-member-card:hover{border-color:#a5bdd1}.free-member-card:focus-visible{outline:3px solid #4293b6}.free-member-card.selected{background:#e7f5fa;border-color:#4c9ac1}.free-member-card .free-portrait{aspect-ratio:4/5;width:100%;border-radius:6px}.free-member-name{font-size:10px;display:block;font-weight:750;line-height:1.4;overflow-wrap:anywhere;margin:6px 0 1px}.free-member-meta{font-size:9px;display:block;color:#8195a1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.free-portrait{display:grid;place-items:center;background:linear-gradient(145deg,#f0e7fa,#e8f0fa);color:#7c6f96;overflow:hidden;font-weight:900;font-size:23px;position:relative}.free-portrait img{width:100%;height:100%;object-fit:cover;display:block}.free-portrait[data-group=hinata]{background:#e3f1fa;color:#588fb3}.free-portrait[data-group=sakura]{background:#faebf2;color:#af7892}.free-portrait[data-group=hiragana]{background:#e6f4ee;color:#5d9781}.free-portrait[data-group=keyaki]{background:#e9e8f1;color:#72698c}.free-empty-text{grid-column:1/-1;padding:24px 12px;text-align:center;color:var(--muted);font-size:13px}.free-board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:10px 12px;background:#f4f8fb;border-radius:11px;color:#5a7688;font-size:12px;font-weight:700}.free-text-button{padding:5px;border:0;background:none;color:#467d9c;text-decoration:underline;font-size:12px}.free-board-scroll{overflow-x:auto;padding-bottom:5px}.free-board{display:grid;gap:24px;padding:22px 6px 30px;min-width:max(100%,var(--free-min-width,422px));background:linear-gradient(150deg,#fbfcfe,#f8f7fc 45%,#f4faff);border:1px solid #e7ecf0;border-radius:15px}.free-board-row{display:grid;justify-items:center;gap:8px}.free-board-row-title{font-size:11px;color:#8295a1}.free-board-cells{display:flex;justify-content:center;gap:6px;max-width:100%;width:100%}.free-slot{flex:0 0 min(104px,calc(var(--free-card-percent,14.2857%) - var(--free-gap-offset,5.1429px)));width:min(104px,calc(var(--free-card-percent,14.2857%) - var(--free-gap-offset,5.1429px)));min-width:0;max-width:none;align-self:start;display:flex;flex-direction:column;gap:0;padding:3px;border:2px dashed #cdd8e0;border-radius:10px;background:rgba(255,255,255,.7);text-align:center;position:relative;touch-action:pan-y}.free-slot.empty{aspect-ratio:4/5;min-height:77px;justify-content:center;align-items:center;font-size:22px;color:#b7c4cb}.free-slot.filled{background:#fff;border-style:solid;border-color:#d9e4eb;cursor:grab;touch-action:none}.free-slot.selected{border-color:#3995bb!important;background:#e8f7fd;box-shadow:0 0 0 1px #3995bb}.free-slot.drop-over{border-color:#3a9dbf!important;box-shadow:0 0 0 4px #a7dcf2;background:#e9faff}.free-slot .free-portrait{aspect-ratio:4/5;width:100%;border-radius:6px 6px 4px 4px}.free-slot .free-member-name{font-size:10px;padding:1px 0 4px;height:33px;min-height:33px;margin:4px 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.free-slot.is-center:after{content:'★';position:absolute;right:3px;top:3px;border:1px solid #e2c17d;border-radius:50%;width:19px;height:19px;display:grid;place-items:center;background:#fff9e7;color:#b47c1f;font-size:12px}.free-board-bottom{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.free-board-bottom button{font-size:12px;padding:8px 11px}.free-announcement{padding:10px 13px;border-radius:10px;background:#f1f8fb;color:#587a8c;font-size:12px;margin:14px 0}.free-tip{margin:10px 0 0}.free-drag-ghost{position:fixed;top:0;left:0;z-index:1000;pointer-events:none;transform:translate(-50%,-55%);background:#fff;padding:5px;box-shadow:0 9px 35px #33445540;border:2px solid #4c9ac1;border-radius:10px;width:84px;text-align:center;opacity:.94}.free-drag-ghost .free-portrait{aspect-ratio:4/5}.free-drag-ghost .free-member-name{font-size:10px}.free-slot.drag-origin,.free-member-card.drag-origin{opacity:.5}.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin:0 0 90px}.mode-card{display:flex;flex-direction:column;gap:8px;border:1px solid #e2e8ee;border-radius:20px;background:#fff;padding:26px;box-shadow:var(--shadow);transition:transform .15s,border-color .15s}.mode-card:hover{border-color:#91b4c9;transform:translateY(-3px)}.mode-card small{font-size:10px;color:#8c99a7;letter-spacing:.11em;font-weight:850}.mode-card strong{font-size:21px}.mode-card p{font-size:12px;color:var(--muted);margin:0;flex:1}.mode-icon{font-size:28px;display:grid;place-items:center;height:65px;width:65px;border-radius:16px;background:linear-gradient(140deg,#eee6f9,#ecf4f9);color:#795ca1}.mode-link{font-size:12px;font-weight:800;color:#477d9f;margin-top:13px}
@media(max-width:1030px){.free-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.free-member-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.free-slot{padding:2px}.free-slot .free-member-name{font-size:9px}.free-heading{align-items:start;flex-direction:column}.free-hero-actions{justify-content:flex-start}}
@media(max-width:760px){.free-layout{grid-template-columns:1fr}.free-right{grid-row:1}.free-workspace{position:static}.free-board{gap:18px}.free-member-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:420px}.mode-grid{grid-template-columns:1fr}.free-heading{padding:23px 0 20px}.free-slot{max-width:115px}.free-picker{scroll-margin-top:80px}}
@media(max-width:520px){.free-heading h1{font-size:32px}.free-heading p{font-size:12px}.free-hero-actions .btn{font-size:12px;padding:10px 14px}.free-panel-head h2{font-size:18px}.free-workspace,.free-picker,.free-settings{padding:14px}.free-member-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.free-slot{padding:2px;border-radius:7px;border-width:1.5px;min-height:45px}.free-slot.empty{min-height:52px;font-size:13px}.free-board{padding:12px 3px 18px;gap:14px}.free-board-cells{gap:3px}.free-slot .free-member-name{font-size:8px;margin-top:2px;height:26px;min-height:26px;line-height:1.25}.free-slot.is-center:after{width:14px;height:14px;font-size:9px}.free-board-row-title{font-size:10px}.free-portrait{font-size:17px}.free-board-toolbar{align-items:start}.free-board-toolbar span{font-size:11px}.free-row-control>span{font-size:12px}.free-mini-dot{width:15px;height:15px}.free-filters{gap:5px}.free-main{padding-bottom:55px}}

/* v0.9.6: iPad の長押しによるカードドラッグを邪魔しない。 */
.free-slot,.free-member-card,.free-drag-ghost{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.free-slot img,.free-member-card img{-webkit-user-drag:none;pointer-events:none}
.free-drag-ghost{touch-action:none}

/* 横並び時は右側の編集盤を左の候補リストと同じ高さにし、スクロール中も表示する。 */
@media(min-width:761px){.free-right{align-self:stretch;min-width:0}}

/* 最大列に合わせた固定幅計算時、grid の min-content が幅を押し広げないようにする。 */
.free-board{grid-template-columns:minmax(0,1fr)}
.free-board-row,.free-board-cells{min-width:0}
/* 狭い画面では編集盤だけを横スクロールさせ、ページ全体を横にはみ出させない。 */
.free-right,.free-workspace,.free-board-scroll{min-width:0}
@media(max-width:760px){.free-layout{grid-template-columns:minmax(0,1fr)}}

/* v0.9.6: 未配置枠も写真カードと同じ大きさ。ドロップ範囲も同じ。 */
.free-slot.empty{aspect-ratio:auto;min-height:0;align-items:stretch;justify-content:initial}
.free-slot.empty .free-portrait{display:grid;place-items:center;background:#f8fafc;color:#b4c4cf;border:1px dashed #d4dfe7}
.free-slot.empty .free-member-name{visibility:hidden}
