/* ============================================================
   パッケージ・ラベルのモックアップ作成ツール — スタイル
   基本の部品（ボタン・カード・一覧・使い方のページ）は print.tanukie.jp と同じ。アクセントは青
   ============================================================ */

/* ---------- 基本（色・文字・ボタン・入力欄） ---------- */
:root {
  --bg: #f5f5f7;
  --panel: #fff;
  --ink: #1d1d1f;
  --sub: #6e6e73;
  --line: #e2e2e7;
  --chip: #ececf0;
  --hover: #f2f2f5;
  --ac: #1a6bff;
  --ac-ink: #fff;
  --ac-soft: #e5efff;
  --ac-hi: #5c9dff;
  --glass: rgba(255, 255, 255, 0.76);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.07);
  --f-ui: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --barh: 53px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}
#app {
  flex: 1 0 auto;
}
.spacer {
  flex: 1;
}
.gut {
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.btn {
  border: 0;
  background: var(--chip);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover {
  filter: brightness(0.97);
}
.btn.pri {
  background: var(--ac);
  color: var(--ac-ink);
}
.btn.quiet {
  background: 0 0;
  color: var(--sub);
  font-weight: 400;
}
.btn.quiet:hover {
  color: var(--ink);
  background: var(--hover);
  filter: none;
}
i.pl {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent currentColor;
}
.page {
  padding-top: 28px;
  padding-bottom: 60px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.page.narrow {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.card {
  background: var(--panel);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card.np {
  padding: 0;
}
.h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}
.lead {
  color: var(--sub);
  margin: 0 0 16px;
}
.sec {
  font-size: 15px;
  margin: 32px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--ac);
}
.inp,
.sel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  font-size: 13px;
  width: 100%;
}
.sel {
  width: auto;
  padding-right: 26px;
}
.seg {
  display: inline-flex;
  background: var(--chip);
  border-radius: 5px;
  padding: 2px;
  gap: 1px;
}
.seg button {
  border: 0;
  background: 0 0;
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
  color: var(--sub);
  font-size: 12px;
  line-height: 1.7;
}
.seg button[aria-pressed="true"] {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}
.empty {
  color: var(--sub);
}
.x {
  border: 0;
  background: none;
  color: #aaa;
  font-size: 14px;
}
.x:hover {
  color: #d33;
}
.search {
  width: 240px;
  margin-top: 20px;
}
.opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  gap: 6px;
}
.opts button {
  border: 0;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.35;
  text-align: left;
  min-height: 34px;
  transition:
    box-shadow 0.12s,
    background 0.12s;
}
.opts button small {
  font-size: 10.5px;
  color: var(--sub);
  margin-top: 1px;
}
.opts button:hover {
  box-shadow: inset 0 0 0 1px #c9c9cf;
}
.opts button[aria-pressed="true"] {
  background: var(--ac-soft);
  box-shadow: inset 0 0 0 1px var(--ac);
  font-weight: 600;
}
.opts button[aria-pressed="true"] small {
  color: #0f4fd1;
}
.opts.chk {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.opts.chk button {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}
.opts.chk i {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px #c4c4ca;
  background: #fff;
  position: relative;
}
.opts.chk [aria-pressed="true"] i {
  background: var(--ac);
  box-shadow: none;
}
.opts.chk [aria-pressed="true"] i::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 3.5px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.chip {
  border: 0;
  background: var(--chip);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 12px;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.pages {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pages b {
  font-size: 20px;
  min-width: 36px;
  text-align: center;
}
.ib {
  border: 0;
  background: none;
  width: 30px;
  height: 30px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--ink);
  padding: 0;
  flex: none;
}
.ib svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ib:hover {
  background: var(--hover);
}
.ib.wl {
  width: auto;
  padding: 0 12px 0 10px;
  font-size: 12.5px;
}
.seg2 button {
  border: 0;
  background: none;
  height: 28px;
  padding: 0 12px;
  border-radius: 99px;
  font-size: 12px;
  color: var(--sub);
}
.seg2 button:hover {
  background: var(--hover);
  color: var(--ink);
}
.lays {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  height: 100%;
  align-items: stretch;
  padding-bottom: 2px;
}
tr.over td {
  box-shadow: inset 0 2px 0 var(--ac);
}
.it {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs);
  line-height: 1.25;
  color: var(--lab);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.chip.on {
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.on i {
  font-style: normal;
  opacity: 0.6;
}
.chip.on:hover i {
  opacity: 1;
}
.ph {
  color: var(--sub);
  font-size: 12px;
}
.lnk {
  border: 0;
  background: none;
  color: var(--ac);
  font-size: 12px;
  padding: 0;
  font-weight: 500;
}
.lnk:hover {
  text-decoration: underline;
}
.go-next {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 6px;
  padding: 8px 8px 8px 22px;
  background: linear-gradient(135deg, #3d86ff, #0f4fd1);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow:
    0 6px 18px rgba(15, 79, 209, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
}
.go-next .ar {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.go-next:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(15, 79, 209, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cmenu {
  position: fixed;
  z-index: 110;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  padding: 5px;
  display: grid;
  animation: cmIn 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: top right;
}
@keyframes cmIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
}
.cmenu hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 6px;
}
.xmenu {
  min-width: 300px;
}
.xmenu button {
  border: 0;
  background: none;
  text-align: left;
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink);
}
.xmenu b {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 16px;
}
.xmenu em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sub);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 5px;
}
.xmenu small {
  font-size: 11.5px;
  color: var(--sub);
}
.xmenu button:hover {
  background: var(--ac);
  color: #fff;
}
.xmenu button:hover em,
.xmenu button:hover small {
  color: inherit;
  border-color: currentColor;
}
.inp.big {
  font-size: 17px;
  padding: 10px 12px;
}
@keyframes frFlash {
  0% {
    background-color: rgba(26, 107, 255, 0.35);
  }
  100% {
    background-color: transparent;
  }
}
.chipz {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.go-next[disabled] {
  background: #c9c9cf;
  box-shadow: none;
  cursor: default;
  transform: none;
}
.phead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.phead .h1 {
  margin: 0;
}
.phead .search {
  width: 220px;
}
.phead .seg {
  display: inline-flex;
  align-items: stretch;
  background: var(--chip);
  border-radius: 5px;
  padding: 2px;
  gap: 1px;
}
.phead .seg button {
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--sub);
  font-size: 12px;
}
.phead .seg button[aria-pressed="true"] {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}
a.btn {
  display: inline-flex;
}
select.sel,
.sel {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 34px !important;
}
.page.doc {
  max-width: 1080px;
}
.page.doc.narrow {
  max-width: 860px;
}
html.js #seo-intro {
  display: none;
}

/* ---------- ヘッダー・制作物タブ ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  min-height: 52px;
  padding-block: 8px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  background: 0 0;
  border: 0;
  padding: 0;
  letter-spacing: 0.02em;
}
.bico {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: block;
  flex: none;
}
.bico svg {
  width: 16px;
  height: 16px;
}
.client {
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16em;
}
.steps {
  display: flex;
  gap: 2px;
  background: var(--chip);
  border-radius: 6px;
  padding: 3px;
}
.steps button {
  border: 0;
  background: 0 0;
  padding: 4px 14px;
  border-radius: 5px;
  white-space: nowrap;
  color: var(--sub);
  font-size: 12.5px;
  font-weight: 500;
}
.steps button[aria-current="step"] {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.save {
  font-size: 11.5px;
  color: var(--sub);
  white-space: nowrap;
}
.docbar {
  display: flex;
  align-items: flex-end;
  min-height: 38px;
  padding-top: 2px;
}
.dtabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex-wrap: wrap;
}
.dtab {
  position: relative;
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--sub);
  border-radius: 8px 8px 0 0;
}
.dtab svg {
  width: 18px;
  height: 18px;
}
.dtab:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
}
.dtab.on {
  color: var(--ink);
  font-weight: 600;
}
.dtab.on::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ac);
}
.dtab .dx {
  font-style: normal;
  color: #aaa;
  font-size: 0; /* 「×」の文字は使わず、線で描いて丸の中央にそろえる */
  margin-left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  display: inline-block;
  position: relative;
  flex: none;
}
.dtab .dx::before,
.dtab .dx::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 1.5px;
  margin: -0.75px 0 0 -4.5px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.dtab .dx::after {
  transform: rotate(-45deg);
}
.dtab .dx:hover {
  background: var(--chip);
  color: var(--ink);
}
.dtab.add {
  color: var(--ac);
  font-weight: 500;
}
.dadd {
  position: relative;
}
.dmenu {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 60;
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.14);
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 300px;
}
.dmenu button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  text-align: left;
}
.dmenu button:hover {
  background: var(--hover);
}
.dmenu svg {
  width: 22px;
  height: 22px;
  color: var(--ac);
}
.bar-back {
  border: 0;
  background: none;
  color: var(--sub);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
}
.bar-back:hover {
  background: var(--hover);
  color: var(--ink);
}
.ptag {
  font-size: 10.5px;
  font-weight: 700;
  background: var(--ac);
  color: #fff;
  border-radius: 6px;
  padding: 2px 10px;
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.bar a,
a.btn,
a.go-next,
.bar-back {
  text-decoration: none;
}
.bar-in > .steps {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.bar-in > .client {
  max-width: min(32em, calc(50vw - 260px));
}

/* ---------- プロジェクト一覧・新しいプロジェクト ---------- */
.kinds {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.kind {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 0;
  background: var(--panel);
  border-radius: 8px;
  padding: 18px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
  position: relative;
}
.kind:hover {
  transform: translateY(-2px);
}
.kind svg {
  width: 38px;
  height: 38px;
  color: var(--ac);
  margin-bottom: 6px;
}
.kind b {
  font-size: 14px;
}
.kind small {
  color: var(--sub);
  font-size: 11.5px;
  line-height: 1.45;
}
.pcard {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 0;
  background: var(--panel);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
}
.pcard:hover {
  box-shadow:
    0 0 0 2px var(--ac-soft),
    var(--shadow);
}
.pc-th {
  flex: 0 0 auto;
  height: 104px;
  display: flex;
  place-items: center;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 104px;
  padding: 0 10px;
}
.pc-b {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pc-b b {
  font-size: 13.5px;
  line-height: 1.4;
}
.pc-b small {
  color: var(--sub);
  font-size: 11.5px;
  display: block;
}
.pc-th .thumb {
  flex: none;
}
.start {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 28px;
  padding-bottom: 60px;
}
.st-name {
  padding: 18px 20px;
}
.start .lead {
  margin: -6px 0 14px;
}
.pa {
  border: 0;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--sub);
  padding: 0;
  font-size: 11.5px;
}
.pa svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pa:hover {
  color: var(--ink);
  background: var(--hover);
}
.pa.del:hover,
.pa.arm {
  color: #fff;
  background: #2f78ff;
  box-shadow: none;
}
.pa.arm {
  width: auto;
  padding: 0 10px;
  font-weight: 600;
}
.kind .ck {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px #c9c9cf;
  background: #fff;
}
.kind.on {
  box-shadow:
    0 0 0 2px var(--ac),
    var(--shadow);
  background: var(--ac-soft);
}
.kind.on .ck {
  background: var(--ac);
  box-shadow: none;
}
.kind.on .ck::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2.5px;
  width: 4.5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.st-go {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
.home {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 32px;
}
.pcount {
  font-size: 13px;
  color: var(--sub);
  font-weight: 500;
  margin-left: 10px;
}
.home .empty {
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  color: var(--sub);
}
.syncneed {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ac);
  border-radius: 6px;
  background: var(--panel);
  font-size: 13px;
}
.psearch {
  width: 240px;
  padding: 8px 16px;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 10px;
}
.pgrid .pcard {
  position: relative;
  display: grid;
  gap: 0;
  align-items: stretch;
  padding: 0;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  text-align: left;
}
.pgrid .pcard:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px var(--ac),
    0 16px 36px rgba(0, 0, 0, 0.1);
}
.pgrid .pc-th {
  background: var(--bg);
  margin: 10px 10px 0;
  border-radius: 6px;
  height: 112px;
  min-width: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow: hidden;
}
.pgrid .pc-b {
  padding: 16px 20px 20px;
  display: grid;
  gap: 6px;
}
.pgrid .pc-b b {
  font-size: 18px;
  letter-spacing: 0.01em;
}
.pgrid .pc-b small {
  color: var(--sub);
  font-size: 12px;
}
.pc-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.pc-tags span {
  font-size: 11px;
  background: var(--chip);
  border-radius: 6px;
  padding: 1px 9px;
  color: var(--sub);
}
.pc-acts {
  display: flex;
  gap: 4px;
  align-items: center;
}
.pcard .pc-acts {
  position: absolute;
  top: 18px;
  right: 18px;
}
.pc-acts .pa {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 0;
  background: var(--panel);
  color: var(--sub);
  display: grid;
  place-items: center;
  opacity: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  position: relative;
}
.pcard:hover .pa,
.plrow:hover .pa,
.pa:focus-visible {
  opacity: 1;
}
.pc-acts .pa:hover {
  color: var(--ac);
  background: var(--panel);
}
.pc-acts .pa.del:hover {
  color: #155ee6;
}
.pc-acts .pa.arm {
  opacity: 1;
  background: none;
  box-shadow: none;
  overflow: visible;
  width: 30px;
  padding: 0;
}
.armlbl {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 30px;
  padding: 0 12px;
  border-radius: 5px;
  background: #155ee6;
  color: #fff;
  display: grid;
  place-items: center;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(21, 94, 230, 0.3);
}
.plrow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) 110px 96px 72px;
  gap: 16px;
  align-items: center;
  padding: 16px 16px 16px 22px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.plrow:last-child {
  border-bottom: 0;
}
.plrow::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  pointer-events: none;
}
.plrow:hover::after {
  border-color: var(--ac);
}
.plrow b {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plrow small {
  color: var(--sub);
  font-size: 12px;
  white-space: nowrap;
}
.plrow .pa {
  box-shadow: none;
  background: none;
}
.plrow .pc-acts {
  justify-content: flex-end;
}
.seo-intro {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 28px;
}
.seo-intro .card {
  padding: 24px 28px;
  margin-top: 16px;
}
.seo-intro h2 {
  font-size: 16px;
  margin: 0 0 10px;
}
.seo-intro li {
  line-height: 1.9;
  font-size: 13.5px;
}

/* ---------- 仕様 ---------- */
.lbl {
  font-weight: 600;
  font-size: 12.5px;
  padding-top: 5px;
}
.lbl small {
  display: block;
  font-weight: 400;
  color: var(--sub);
  font-size: 11px;
}
.spine {
  color: var(--sub);
  background: var(--chip);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
}
.ppick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ppick .sel {
  max-width: 100%;
}
.ppick .sel:first-child {
  flex: 1;
  min-width: 0;
}
.ppick .tint {
  width: 150px;
}
.pnote {
  flex-basis: 100%;
  margin: 0;
  color: var(--sub);
  font-size: 11.5px;
}
.warn {
  position: absolute;
  left: 12px;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(255, 246, 229, 0.95);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
}
.warn p {
  margin: 2px 0;
}
.warn1 {
  background: #fff6e5;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12.5px;
  margin: 8px 0 0;
}
.tones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 6px;
}
.tones button {
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 7px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.3;
}
.tones button small {
  display: block;
  font-size: 10.5px;
  color: var(--sub);
}
.tones button:hover {
  box-shadow: inset 0 0 0 1px #c9c9cf;
}
.tones button[aria-pressed="true"] {
  background: var(--ac-soft);
  box-shadow: inset 0 0 0 1px var(--ac);
  font-weight: 600;
}
.tones .sw {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 99px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}
.tones .sw.tex-gloss {
  background: linear-gradient(135deg, #fff 30%, #e9edf2 50%, #fff 70%);
}
/* ---------- 台割・ラフ ---------- */
.dw {
  --lw: clamp(118px, 13vw, 196px);
  --rw: clamp(248px, 24vw, 320px);
  display: grid;
  grid-template-columns: var(--lw) minmax(0, 1fr) var(--rw);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  height: calc(100vh - var(--barh) - var(--memoc) - 28px);
  padding-top: 16px;
  transition: grid-template-columns 0.25s ease;
}
.dw-list {
  grid-row: 1/-1;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dw-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.dw-tools b {
  font-size: 13px;
}
.dw-tools .ib {
  background: var(--chip);
  width: 28px;
  height: 28px;
  font-size: 15px;
}
.dw-scroll {
  flex: 1;
  overflow: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.dw-sp {
  display: flex;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  border-radius: 6px;
  background: var(--bg);
}
.dw-g {
  width: 100%;
}
.dw-g h4 {
  font-size: 11px;
  color: var(--sub);
  margin: 4px 0 6px;
  font-weight: 500;
  text-align: center;
}
.dw-g .dw-sp {
  flex-wrap: wrap;
}
.dw-p {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: none;
  padding: 3px;
  border-radius: 5px;
}
.dw-p.none {
  width: 70px;
}
.dw-p:hover {
  background: #fff;
  z-index: 1;
}
.dw-p.on {
  background: #fff;
  box-shadow: 0 0 0 1px var(--ac);
  z-index: 2;
}
.dw-p.over {
  box-shadow: 0 0 0 2px #3a7bd5;
}
.dw-p.dragging,
tr.dragging {
  opacity: 0.4;
}
.dw-n {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ac);
}
.pe-n {
  font-size: 11.5px;
  color: #fff;
  background: var(--ac);
  border-radius: 5px;
  padding: 1px 8px;
  font-weight: 700;
}
.dw-3d {
  padding: 0;
  overflow: hidden;
  display: flex;
  min-height: 0;
  position: relative;
}
.dw-info {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.rtabs {
  display: flex;
  margin: 12px 14px 0;
  flex: none;
}
.rtabs button {
  flex: 1;
  padding: 4px 10px;
  font-size: 12.5px;
}
.dw-side {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pi-h {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pi-name {
  font-size: 15px;
}
.pi-l {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
}
.pi-l .inp {
  font-weight: 400;
  color: var(--ink);
}
.pi-l textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 64px;
}
.dw-info h4 {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--sub);
  font-weight: 600;
}
.pi-sub {
  font-weight: 400;
  font-size: 11px;
  color: var(--sub);
}
.dw-info .chip:not(.on) {
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--sub);
}
.dw-info .chip:not(.on):hover {
  box-shadow: inset 0 0 0 1px var(--ac);
  color: var(--ink);
}
.pi-items {
  margin: 0;
  padding-left: 1.2em;
  font-size: 15px;
  line-height: 1.9;
}
.pi-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pi-l.row {
  flex-direction: row;
  align-items: center;
}
.tpls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.tpl {
  border: 0;
  background: var(--bg);
  border-radius: 7px;
  padding: 6px 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: var(--sub);
  line-height: 1.25;
}
.tpl:hover {
  background: var(--hover);
}
.tpl.on {
  background: var(--ac-soft);
  box-shadow: inset 0 0 0 1px var(--ac);
  color: var(--ink);
  font-weight: 600;
}
.frl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fri {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 8px;
  border-radius: 7px;
  background: var(--bg);
  font-size: 13px;
  cursor: pointer;
}
.fri:hover {
  background: var(--hover);
}
.fri.on {
  background: var(--ac-soft);
  box-shadow: inset 0 0 0 1px var(--ac);
}
.fri.over {
  box-shadow: inset 0 0 0 2px #3a7bd5;
}
.fri .grip {
  font-style: normal;
  color: #c2c2c7;
  font-size: 10px;
  letter-spacing: -2px;
  cursor: grab;
}
.fri .no {
  font-size: 10.5px;
  color: var(--sub);
  width: 14px;
  text-align: right;
}
.fri b {
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fk {
  flex: none;
  width: 14px;
  height: 10px;
  border-radius: 2px;
}
.fk-visual {
  background: #d9d9de;
}
.fk-head {
  background: linear-gradient(#55555a, #55555a) 0 50%/100% 3px no-repeat;
}
.fk-text {
  background: repeating-linear-gradient(to bottom, #c9c9ce 0 1.5px, transparent 1.5px 3.5px);
}
.fk-logo {
  background: #55555a;
  border-radius: 99px;
  width: 10px;
  margin: 0 2px;
}
.fk-qr {
  box-shadow: inset 0 0 0 1.5px #8e8e93;
  width: 10px;
  margin: 0 2px;
}
.pick {
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.frx {
  border: 0;
  background: none;
  color: #b0b0b5;
  width: 22px;
  height: 22px;
  border-radius: 99px;
  font-size: 14px;
  line-height: 1;
  flex: none;
  opacity: 0;
}
.fri:hover .frx,
.fri.on .frx {
  opacity: 1;
}
.frx:hover {
  background: #fff;
  color: #155ee6;
}
.cgl {
  font-size: 11px;
  color: var(--sub);
  margin: 4px 0 -2px;
}
.cand-in {
  grid-column: span 2;
  font-size: 12.5px;
  padding: 6px 9px;
}
.pal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pc {
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  color: var(--ink);
  cursor: grab;
  transition:
    box-shadow 0.12s,
    background 0.12s;
}
.pc:hover {
  box-shadow: inset 0 0 0 1px var(--ac);
  background: var(--ac-soft);
}
.pc:active {
  cursor: grabbing;
}
.pc.used {
  color: var(--sub);
  background: var(--bg);
  box-shadow: none;
  opacity: 0.55;
  cursor: default;
}
.pc.used::before {
  content: "✓ ";
  color: var(--ac);
}
#otherIn {
  font-size: 12.5px;
  padding: 6px 9px;
}
.dw.noL {
  grid-template-columns: 0 minmax(0, 1fr) var(--rw);
  margin-left: -16px;
}
.dw.noR {
  grid-template-columns: var(--lw) minmax(0, 1fr) 0;
  margin-right: -16px;
}
.dw.noL.noR {
  grid-template-columns: 0 minmax(0, 1fr) 0;
  margin: 0 -16px;
}
.dw.noL .dw-list,
.dw.noR .dw-info {
  visibility: hidden;
  padding: 0;
  overflow: hidden;
  min-width: 0;
}

/* ---------- まとめ・見積もり ---------- */
.sum {
  padding-bottom: calc(var(--memoc) + 40px);
}
.sum-h {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.sum-h .h1 {
  flex: 1;
  margin: 0;
}
.sum .card {
  margin-bottom: 16px;
}
.sum h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.spec th {
  text-align: left;
  color: var(--sub);
  font-weight: 500;
  padding: 6px 8px 6px 0;
  width: 88px;
  vertical-align: top;
  white-space: nowrap;
}
.spec td {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.spec.big {
  font-size: 15px;
}
.spec.big th {
  width: 120px;
}
.sdw {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.sdw-p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
}
.sdw-p > b {
  color: var(--ac);
}
.sdw-p > span {
  color: var(--sub);
  max-width: 110px;
  text-align: center;
  line-height: 1.3;
}
.sdw-p em {
  font-style: normal;
  color: #555;
  font-size: 10.5px;
  max-width: 130px;
  text-align: center;
  line-height: 1.4;
}
.sdw-none {
  width: 74px;
}
.quote .lead {
  font-size: 12.5px;
  margin: 6px 0 12px;
}
.qh {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qh h3 {
  flex: 1;
  margin: 0;
}
.qlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.qbtn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
}
.qbtn:hover {
  box-shadow: 0 0 0 1.5px var(--ac);
}
.qbtn b {
  font-size: 13.5px;
  color: var(--ac);
}
.qbtn small {
  color: var(--sub);
  font-size: 11.5px;
}
.sdw-p small {
  display: block;
  font-size: 10px;
  color: var(--sub);
  line-height: 1.45;
  max-width: 96px;
  text-align: center;
}
.sdoc {
  padding: 18px 20px;
  margin-bottom: 14px;
}
.sdoc-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sdoc-h svg {
  width: 24px;
  height: 24px;
  color: var(--ac);
}
.sdoc-h h2 {
  margin: 0;
  font-size: 16px;
}
.sdoc-k {
  font-size: 11px;
  color: var(--sub);
  background: var(--chip);
  border-radius: 4px;
  padding: 1px 7px;
}
.sdoc-b {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.spec.mini th {
  width: 84px;
  font-size: 11.5px;
}
.spec.mini td {
  font-size: 12.5px;
}
.slider {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sl-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 4px 4px;
  scrollbar-width: none;
  align-items: flex-start;
}
.sl-track::-webkit-scrollbar {
  display: none;
}
.sl-track .sdw {
  scroll-snap-align: start;
  flex: none;
}
.sl-btn {
  border: 0;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  width: 28px;
  height: 28px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
}
.sl-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sl-btn:hover {
  background: var(--hover);
}
.sl-track .sdw-p span {
  max-width: 90px;
  font-size: 10.5px;
}
.slider.noov .sl-btn {
  visibility: hidden;
}
.sdoc-h .btn {
  font-size: 12px;
}
.sl-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}
.sl-bar .sl-btn {
  width: 24px;
  height: 24px;
  box-shadow: none;
  background: var(--chip);
}
.sl-rail {
  position: relative;
  flex: 1;
  height: 14px;
  cursor: pointer;
  touch-action: none;
}
.sl-rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6.5px;
  height: 1px;
  border-radius: 1px;
  background: var(--line);
}
.sl-rail i {
  position: absolute;
  top: 5.5px;
  height: 3px;
  border-radius: 3px;
  background: #b9b9bf;
  transition: background 0.15s;
}
.sl-rail:hover i {
  background: var(--ac);
}
.slider.noov .sl-bar {
  display: none;
}
.qlist .empty {
  grid-column: 1/-1;
}

/* ---------- 打ち合わせメモ ---------- */

/* ---------- 使い方・データ連携・利用規約・各種設定 ---------- */
.ptbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.ptbl th {
  text-align: left;
  color: var(--sub);
  font-weight: 500;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.ptbl td {
  padding: 5px 6px;
  border-bottom: 1px solid var(--line);
}
.ptbl input[type="color"] {
  width: 34px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px;
  background: #fff;
}
.grip {
  cursor: grab;
  color: #aaa;
  text-align: center;
  width: 34px;
  font-size: 14px;
  user-select: none;
}
.grip:hover {
  color: var(--ink);
}
.kchk {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 250px;
}
.kchk label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  white-space: nowrap;
}
.kchk input {
  accent-color: var(--ac);
}
.ptools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
}
.gstep {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.gstep:last-child {
  border-bottom: 0;
}
.gstep .no {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--ac-soft);
  color: var(--ac);
  font-weight: 700;
}
.gstep h3 {
  margin: 2px 0 4px;
  font-size: 14px;
}
.gstep p {
  margin: 0;
  color: var(--sub);
}
.spanel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 30px 24px;
  margin: 0 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}
.spanel .go-next.wide {
  min-width: min(420px, 100%);
  justify-content: space-between;
  font-size: 15px;
  padding: 12px 12px 12px 28px;
}
.smsg {
  margin: 0;
  color: var(--sub);
  font-size: 12.5px;
}
.spanel.off b {
  font-size: 15px;
}
.spanel.off p {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
}
.spanel.on {
  grid-template-columns: auto 1fr auto;
  justify-items: start;
  align-items: center;
  text-align: left;
  gap: 16px;
  padding: 20px 24px;
  border-left: 3px solid var(--ac);
}
.sico {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--ac-soft);
  color: var(--ac);
  display: grid;
  place-items: center;
}
.sinf {
  display: grid;
  gap: 2px;
}
.sinf b {
  font-size: 16px;
}
.sinf small {
  color: var(--sub);
  font-size: 11.5px;
}
.sbtns {
  display: flex;
  gap: 6px;
}
.gstep ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
  color: var(--sub);
  font-size: 12.5px;
  line-height: 1.7;
}
.terms {
  padding: 26px 32px 28px;
  font-size: 13.5px;
  line-height: 1.85;
}
.terms h3 {
  font-size: 14.5px;
  margin: 26px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.terms h3:first-child {
  margin-top: 0;
}
.terms ol,
.terms ul {
  margin: 4px 0 6px;
  padding-left: 1.4em;
}
.terms p {
  margin: 0 0 6px;
}
.terms .meta {
  margin-top: 26px;
  color: var(--sub);
  font-size: 12.5px;
  text-align: right;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  line-height: 1.9;
}
.reco {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 6px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 13px;
}
.reco b::before {
  content: "推奨";
  display: inline-block;
  margin-right: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--panel);
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}
.reco span {
  color: var(--sub);
  font-size: 12.5px;
}
.faq-i {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.faq-i:last-child {
  border-bottom: 0;
}
.faq-i b {
  font-size: 14px;
}
.faq-i p {
  margin: 6px 0 0;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.8;
}
.doc-h {
  margin: 6px 0 18px;
}
.doc-h + .doc-lead {
  margin-top: -12px;
}
.doc-lead {
  color: var(--sub);
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.8;
}
.docwrap {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.doc-side {
  order: -1;
  position: sticky;
  top: calc(var(--barh) + 28px);
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding-left: 4px;
}
.doc-side a {
  display: block;
  padding: 6px 12px;
  margin-left: -5px;
  border-left: 2px solid transparent;
  color: var(--sub);
  font-size: 12.5px;
  text-decoration: none;
  line-height: 1.5;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.doc-side a:hover {
  color: var(--ink);
}
.doc-side a.on {
  color: var(--ink);
  border-left-color: var(--ac);
}
.doc-side a:not(.sub) {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  margin-top: 8px;
}
.doc-side a:not(.sub):first-child {
  margin-top: 0;
}
.doc-side a.sub {
  padding: 4px 12px 4px 26px;
  font-size: 12px;
}
.doc-side a.sub.on {
  font-weight: 600;
}
.doc [id] {
  scroll-margin-top: calc(var(--barh) + 20px);
}
.doc .reco {
  margin: 0 0 26px;
}
.doc h2.sec {
  font-size: 15px;
  margin: 34px 0 12px;
}
.doc .gstep {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
}
.doc .gstep:last-child {
  border-bottom: 0;
}
.doc .gstep .no {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--ac-soft);
  color: var(--ac);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
}
.doc .gstep h3 {
  margin: 2px 0 8px;
  font-size: 17px;
}
.doc .gstep p {
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.85;
  font-size: 13.5px;
}
.doc .gstep ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
  color: var(--ink);
  line-height: 1.9;
  font-size: 13px;
}
.doc .gstep li::marker {
  color: var(--ac);
}
.doc .gstep .tip {
  margin-top: 10px;
  background: var(--bg);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.75;
}
.doc .faq-i {
  padding: 18px 24px;
}
.doc .faq-i b {
  display: block;
  margin-bottom: 6px;
}
.doc .faq-i p {
  margin: 0;
  line-height: 1.85;
}
.terms h3:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.terms li,
.terms p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink);
}
.setc {
  display: grid;
  gap: 0;
  padding: 6px 26px;
}
.setr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.setr:last-child {
  border-bottom: 0;
}
.setr b {
  display: block;
  font-size: 14px;
}
.setr small {
  color: var(--sub);
  font-size: 12px;
  display: block;
  max-width: 520px;
  line-height: 1.7;
  margin-top: 2px;
}
.setr > div:only-child {
  flex: 1;
}
.setr > div:only-child small {
  max-width: none;
}
.setv {
  display: flex;
  gap: 8px;
  align-items: center;
}
.req {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 0 4px;
  font-size: 12.5px;
  color: var(--sub);
}
.req a {
  flex: none;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 12.5px;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.req a:hover {
  border-color: var(--ac);
  color: var(--ac);
}
.doc .spanel {
  margin-bottom: 20px;
}

/* ---------- フッター ---------- */

/* ---------- 共有モード ---------- */
body.present .bar {
  background: #1d1d1f;
  border-color: #000;
}
body.present .client,
body.present .save {
  color: #aaa;
}
body.present .steps {
  background: #333;
}
body.present .steps button {
  color: #aaa;
}
body.present .steps button[aria-current="step"] {
  background: #fff;
  color: #111;
}
body.present .v3hint {
  display: none;
}
.dw.pres {
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: var(--lw) minmax(0, 1fr) var(--rw);
}
body.present .dtab {
  color: #999;
}
body.present .dtab.on {
  color: #fff;
}
body.present .pgv.cur::before {
  display: none;
}
body.present .pgv .fr.on {
  box-shadow: none;
}
body.present {
  background: #2c2c2c;
}
body.present .client {
  color: #fff;
  font-weight: 700;
}
body.present .card {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
body.present .h1 {
  color: #fff;
}
body.present .sum .card .h1 {
  color: var(--ink);
}
.dw.pres.noR {
  grid-template-columns: var(--lw) minmax(0, 1fr) 0;
}
.dw.pres.noL {
  grid-template-columns: 0 minmax(0, 1fr) var(--rw);
}

/* ---------- PDF書き出し ---------- */
.pdfhost {
  position: fixed;
  left: -99999px;
  top: 0;
}
.pdfpage {
  width: 1123px;
  height: 794px;
  background: #fff;
  padding: 40px 48px;
  font-family: var(--f-ui);
  color: #222;
  overflow: hidden;
}
.pp-h {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 2px solid #222;
  padding-bottom: 10px;
  margin-bottom: 22px;
}
.pp-h span {
  font-size: 13px;
  color: #666;
}
.pp-h b {
  font-size: 22px;
  flex: 1;
}
.pp-h small {
  color: #888;
}
.pp-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.pp-cover {
  display: flex;
  justify-content: center;
}
.pp-cover .rough {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.pp-dw {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 26px;
  align-items: flex-start;
}
.pp-sp {
  display: flex;
}
.pp-dw .rough {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.pp-memo {
  columns: 2;
  column-gap: 40px;
}
.pp-memo .mb {
  font-size: 12.5px;
}
.pp-cover .lit,
.pp-dw .lit,
.pp-cover .rough::after,
.pp-dw .rough::after {
  display: none;
}

/* ---------- スマホ・タブレット縦・狭い画面 ---------- */
@media (max-width: 1100px) {
  .kinds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .sdoc-b {
    grid-template-columns: 1fr;
  }
}
#mblock {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background: var(--bg);
  text-align: center;
}
#mblock > div {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 440px;
}
#mblock .bico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
#mblock .bico svg {
  width: 30px;
  height: 30px;
}
#mblock h2 {
  margin: 6px 0 0;
  font-size: 19px;
}
#mblock p {
  margin: 0;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.8;
}
.mrot {
  color: var(--ac);
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--ac-soft);
}
html.phone body > :not(#mblock) {
  display: none !important;
}
/* ---------- 右カラム「仕様」 ---------- */
.sform {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sform section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sform .lbl {
  padding-top: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sform .lbl small {
  display: inline;
}
.sform .opts {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.sform .opts.chk {
  grid-template-columns: 1fr 1fr;
}
.sform .tones {
  grid-template-columns: 1fr 1fr;
}
.sform section.more {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 12px;
  margin: 0 -4px;
  border-radius: 7px;
}
.sform section.more.on {
  background: var(--bg);
}
.sform .pages {
  flex-wrap: wrap;
}
.sform .go-next {
  margin-top: 6px;
}
.sform .warn {
  margin: 0;
}
.dw-side .spec.mini {
  width: 100%;
}
.go-next.wide {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
/* 左のページ一覧：細いときはサムネイルを縮める */
.dw-list {
  container-type: inline-size;
}
@container (max-width:170px) {
  .dw-sp {
    zoom: 0.82;
  }
}
@container (max-width:140px) {
  .dw-sp {
    zoom: 0.7;
  }
}
/* ---------- プロジェクト：つくるもの ---------- */
.pdocs {
  padding: 6px 0;
}
.pdoc {
  display: grid;
  grid-template-columns: 28px minmax(160px, 280px) 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}
.pdoc:last-child {
  border-bottom: 0;
}
.pdoc > svg {
  width: 26px;
  height: 26px;
  color: var(--ac);
}
.pdoc small {
  color: var(--sub);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdoc .ib {
  position: relative;
  color: var(--sub);
}
.pdoc .ib.arm {
  color: #fff;
}
.go-next.sub {
  background: #1d1d1f;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
/* 追加：内容の案（たたみ） */
.ideas {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.ideas summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--sub);
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ideas summary::-webkit-details-marker {
  display: none;
}
.ideas summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
  transition: transform 0.15s;
}
.ideas[open] summary::before {
  transform: rotate(45deg);
}
.ideas summary:hover {
  color: var(--ink);
}
.pal .cand-in {
  margin-top: 10px;
}

/* ============================================================
   ここから パッケージ・ラベル用
   ============================================================ */
/* ---------- 一覧・プロジェクト ---------- */
.th3 {
  display: grid;
  place-items: center;
  overflow: hidden;
}
.th3 {
  position: relative;
}
.th3 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.th3:empty::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--ac);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pgrid .pc-th {
  gap: 6px;
}
.pc-th .pth {
  flex: 1;
  height: 100%;
  min-width: 0;
}
.pdocs .pdoc {
  grid-template-columns: 64px minmax(160px, 280px) 1fr auto auto;
}
.pdoc .pdi {
  width: 64px;
  height: 52px;
  background: var(--bg);
  border-radius: 6px;
}
.kinds.k3 {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.kind .kth {
  width: 100%;
  height: 120px;
  margin: 0 0 8px;
  background: var(--bg);
  border-radius: 6px;
}
.kind .kth.ct,
.kind .kth.more {
  display: grid;
  place-items: center;
}
.kind .kth svg {
  width: 100%;
  height: 100%;
  margin: 0;
  color: inherit;
}
.kind .kth.ct svg,
.kind .kth.more svg {
  width: 70%;
  height: 80%;
}
.kind.other {
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.kind.other .kth {
  background: none;
}
.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}
.way {
  border: 0;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.way b {
  font-size: 14px;
}
.way small {
  color: var(--sub);
  font-size: 11.5px;
  line-height: 1.5;
}
.way:hover {
  background: var(--hover);
}
.way.on {
  box-shadow: 0 0 0 2px var(--ac);
  background: var(--ac-soft);
}
.way.on b {
  color: var(--ac);
}
/* 容器（輪郭線だけ）と展開図（線だけ）の小さな図 */
.ctsvg .ct-b {
  fill: rgba(255, 255, 255, 0.6);
  stroke: #55565b;
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.ctsvg .ct-l {
  fill: none;
  stroke: var(--ac);
  stroke-width: 1.1;
  stroke-dasharray: 3 2;
}
.flsvg polygon {
  fill: #fff;
  stroke: #8e8f95;
  stroke-width: 0.8;
  stroke-linejoin: round;
}
/* 追加メニュー */
.dmenu.wide {
  width: 560px;
  grid-template-columns: repeat(4, 1fr);
  max-height: 70vh;
  overflow: auto;
}
.dmenu.wide button {
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 12px;
  gap: 4px;
}
.dmenu.wide svg {
  width: 92px;
  height: 56px;
  color: inherit;
}
.dm-h {
  grid-column: 1/-1;
  font-size: 11px;
  color: var(--sub);
  padding: 8px 8px 2px;
  font-weight: 500;
}
.lnk {
  border: 0;
  background: none;
  color: var(--ac);
  font-size: 12px;
  padding: 0;
}

/* ---------- 形状・デザイン：展開図／立体 と右のパネル ---------- */
.dw.two {
  --rw: clamp(286px, 25vw, 340px);
  grid-template-columns: minmax(0, 1fr) var(--rw);
}
.dw.two.noR {
  grid-template-columns: minmax(0, 1fr) 0;
}
.dw.two.noR .dw-info {
  visibility: hidden;
}
.coltog {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 9;
  border: 0;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--sub);
  padding: 0;
}
.coltog:hover {
  color: var(--ink);
  background: var(--hover);
}
.stage {
  --sbg: #ffffff;
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--sbg);
  user-select: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  transition: background 0.25s;
}
.stage[data-bg="gray"] {
  --sbg: #c7c8cc;
}
.stage[data-bg="black"] {
  --sbg: #1d1d1f;
}
.v3h,
.flat {
  position: relative;
  min-width: 0;
  min-height: 0;
  grid-row: 1;
  grid-column: 1;
}
.stage[data-mode="flat"] .v3h,
.stage[data-mode="3d"] .flat {
  display: none;
}
.v3c {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  touch-action: none;
  cursor: grab;
  outline: none;
}
.flat {
  display: grid;
  place-items: center;
  padding: 56px 24px 96px;
}
.flat-in {
  position: relative;
}
#flatCv,
#flatSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#flatSvg {
  overflow: visible;
  pointer-events: none;
}
.fl-cut {
  fill: none;
  stroke: #e0322b;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
.fl-fold {
  fill: none;
  stroke-width: 1.1;
  stroke-dasharray: 5 3;
  vector-effect: non-scaling-stroke;
}
.fl-prod {
  fill: rgba(26, 107, 255, 0.06);
  stroke: var(--ac);
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}
.fl-prod.over {
  stroke: #e0322b;
  fill: rgba(224, 50, 43, 0.06);
}
.fl-g,
.fl-n text,
.fl-dim {
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: var(--f-ui);
}
.fl-n text {
  font-weight: 500;
}
.fl-n .fl-s {
  opacity: 0.75;
  font-weight: 400;
}
/* 上の道具：左に背景、真ん中に展開図／立体、右に開く・商品表示 */
.stools {
  position: absolute;
  left: 12px;
  right: 56px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 5;
  pointer-events: none;
}
.stools > * {
  pointer-events: auto;
}
.st-l,
.st-r {
  display: flex;
  align-items: center;
  gap: 6px;
}
.st-r {
  justify-content: flex-end;
}
.st-c {
  justify-self: center;
}
.seg.mini {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px var(--line);
}
.seg.mini button {
  font-size: 12.5px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bgl {
  font-size: 11px;
  color: var(--sub);
}
.stage[data-bg="black"] .bgl,
.stage[data-bg="black"] .shint {
  color: #b8b8bd;
}
.bgs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px var(--line);
}
.bgb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  font-size: 10px;
  font-weight: 700;
  color: var(--sub);
}
.bgb.bg-white {
  background: #fff;
}
.bgb.bg-gray {
  background: #c7c8cc;
}
.bgb.bg-black {
  background: #1d1d1f;
}
.bgb[aria-pressed="true"] {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 0 0 2px #fff,
    0 0 0 3.5px var(--ac);
}
.tbtn {
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
}
.tbtn:hover {
  background: #fff;
}
.tbtn.on {
  background: var(--ac-soft);
  color: var(--ac);
  box-shadow: 0 0 0 1px var(--ac);
}
/* 下の目立つボタン：展開図をダウンロード／デザインを読み込む */
.sact {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  white-space: nowrap;
}
.sact .go-next {
  font-size: 14px;
}
.go-next.alt {
  background: #fff;
  color: var(--ac);
  box-shadow:
    inset 0 0 0 1.5px var(--ac),
    0 6px 18px rgba(26, 107, 255, 0.14);
}
.go-next.alt .ar {
  background: var(--ac-soft);
  color: var(--ac);
}
.artst {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
  padding: 2px;
}
.sact > .helpi {
  background: rgba(255, 255, 255, 0.92);
}
.shint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--sub);
  margin: 0;
  pointer-events: none;
}
.sover {
  position: absolute;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  background: #fff1f0;
  color: #c0322b;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 99px;
  box-shadow: 0 0 0 1px #f3c7c3;
  white-space: nowrap;
  z-index: 4;
}
.stage.drop::after {
  content: "ここにドロップして、デザインされた展開図を読み込む";
  position: absolute;
  inset: 10px;
  border: 2px dashed var(--ac);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(232, 240, 252, 0.8);
  color: var(--ac);
  font-weight: 700;
  z-index: 20;
}
.v3off {
  position: fixed;
  left: -4000px;
  top: 0;
  width: 900px;
  height: 680px;
}

/* ---------- 右のパネル ---------- */
.dw-side .pi-sec + .pi-sec {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.pi-l.row {
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
}
.pi-l.row .helpi {
  margin-left: 2px;
}
.sno {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ac);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  flex: none;
}
.pi-l .tog {
  margin-left: auto;
}
.tog {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--sub);
  font-weight: 400;
}
.tog input {
  accent-color: var(--ac);
}
.shapes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.shp {
  border: 0;
  background: var(--bg);
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  color: var(--ink);
}
.shp svg {
  width: 100%;
  height: 46px;
  margin-bottom: 3px;
}
.shp small {
  font-size: 10px;
  color: var(--sub);
}
.shp:hover {
  background: var(--hover);
}
.shp.on {
  background: var(--ac-soft);
  box-shadow: inset 0 0 0 1.5px var(--ac);
}
.shp.on > span {
  color: var(--ac);
  font-weight: 700;
}
.shp.ct {
  padding-bottom: 6px;
}
.note {
  font-size: 11.5px;
  color: var(--sub);
  line-height: 1.6;
  margin: 0;
}
.numr {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  margin: 0;
}
.numr > span:first-child {
  width: 6.4em;
  color: var(--sub);
  flex: none;
}
.numr em {
  font-style: normal;
  color: var(--sub);
  font-size: 11.5px;
  width: 2em;
}
.numr .sel {
  flex: 1;
  min-width: 0;
}
.numw {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.numw:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--ac);
}
.inp.num {
  flex: 1;
  min-width: 0;
  border: 0;
  box-shadow: none;
  text-align: center;
  padding: 6px 2px;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  background: transparent;
}
.inp.num::-webkit-outer-spin-button,
.inp.num::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.inp.num:disabled {
  color: var(--sub);
}
.st {
  border: 0;
  background: none;
  width: 28px;
  height: 30px;
  color: var(--sub);
  font-size: 15px;
  flex: none;
}
.st:hover {
  background: var(--hover);
  color: var(--ink);
}
.fitbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ac-soft);
  border-radius: 8px;
  padding: 10px 12px;
}
.fitbox > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--sub);
  gap: 1px;
}
.fitbox b {
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fitbox small {
  font-size: 10.5px;
}
.fitbox .btn {
  font-size: 12px;
  white-space: nowrap;
}
.fitbox em {
  font-style: normal;
  font-size: 11px;
  color: var(--ac);
  font-weight: 700;
}
.fitbox.ok {
  background: var(--bg);
}
.dims {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.dims th,
.dims td {
  padding: 5px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.dims thead th {
  color: var(--sub);
  font-size: 10.5px;
}
.dims tbody th {
  color: var(--sub);
  white-space: nowrap;
}
.dims .dn td {
  color: var(--ac);
  font-size: 11px;
  padding-top: 0;
}
.sws {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.swb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  position: relative;
  cursor: pointer;
}
.swb.on {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.16),
    0 0 0 2px #fff,
    0 0 0 3.5px var(--ac);
}
.swb.sp-clear {
  background: repeating-conic-gradient(#d9dadd 0 25%, #fff 0 50%) 0 0/8px 8px;
}
.swb.sp-silver {
  background: linear-gradient(135deg, #eef0f1, #aeb4b8, #e2e5e7);
}
.swb.pick {
  background: conic-gradient(#e0322b, #e9a23b, #3d8b5a, #1a6bff, #8b4fd6, #e0322b);
  overflow: hidden;
}
.swb.pick input {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.cname {
  font-size: 12px;
}
.cname code {
  font-size: 11px;
  color: var(--sub);
  margin-left: 4px;
}
.reco-l {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.6;
}
.reco-l li::marker {
  color: var(--ac);
}
.reco-o {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg);
  border-radius: 8px;
  padding: 8px;
}
.btn.wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
}

/* ---------- まとめ ---------- */
.sum .sdoc-b {
  display: grid;
  grid-template-columns: minmax(240px, 36%) 1fr;
  gap: 20px;
  align-items: start;
}
.s3d {
  position: relative;
  aspect-ratio: 6/5;
  background: var(--sbg, #fff);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.s3d > .th3,
.s3d > .svf {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 36px 14px 14px;
}
.s3d .svf img {
  max-width: 100%;
  max-height: 100%;
}
.s3d[data-sv="3d"] .svf,
.s3d[data-sv="flat"] .sv3 {
  display: none;
}
.s3d .sw2 {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
}
.s3d .sw2 button {
  padding: 4px 10px;
  font-size: 11.5px;
}
.sdoc-h .btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding-top: 0;
  padding-bottom: 0;
}
.sdoc-h .btn svg {
  width: 15px;
  height: 15px;
}
.sdoc-h > svg {
  width: 24px;
  height: 24px;
  color: var(--ac);
}
.xm-h {
  font-size: 11px;
  color: var(--sub);
  padding: 6px 12px 2px;
  font-weight: 700;
}
.xmenu {
  max-height: 80vh;
  overflow: auto;
}

/* ---------- 立面図 PDF ---------- */

.pp-elev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  height: 640px;
}
.pp-main {
  position: relative;
  height: 640px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.pp-main img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 600px;
  height: 600px;
  margin: -300px 0 0 -300px; /* 立体の画像は正方形（html2canvas は object-fit を使えないので大きさを決め打ち） */
}
.pp-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pp-orth {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.pp-ev {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #666;
}
.pp-evi {
  position: relative;
  padding: 0 0 16px 0;
  margin-left: 36px;
}
.pp-evi img {
  display: block;
  max-width: 150px;
  max-height: 170px;
}
.pp-evi .ew,
.pp-evi .eh {
  position: absolute;
  font-style: normal;
  font-size: 10px;
  color: #1a6bff;
  white-space: nowrap;
}
.pp-evi .ew {
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  border-top: 1px solid #1a6bff;
  padding-top: 1px;
}
.pp-evi .eh {
  left: -34px;
  width: 30px;
  top: 0;
  bottom: 16px;
  border-right: 1px solid #1a6bff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 3px;
  font-size: 9px;
}
.pp-note {
  font-size: 12px;
  white-space: pre-wrap;
}
.pp-cap {
  font-size: 10.5px;
  color: #888;
  margin-top: auto;
}

/* 展開図／立体の切り替え：左上のタブ（いまの表示は青で塗る） */
.vtabs {
  display: flex;
  padding: 4px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 11px;
  box-shadow:
    0 0 0 1px var(--line),
    0 4px 14px rgba(0, 0, 0, 0.06);
}
.vtabs button {
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sub);
}
.vtabs button svg {
  width: 18px;
  height: 18px;
}
.vtabs button:hover {
  background: var(--hover);
  color: var(--ink);
}
.vtabs button[aria-selected="true"] {
  background: var(--ac);
  color: #fff;
  box-shadow: 0 3px 10px rgba(26, 107, 255, 0.3);
}
.bgw {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}
