/* MAKE伝票の専用スタイル（style.css・product.css・futo.css の上に重ねる） */
.dp-hero { background: linear-gradient(135deg, #f3f6fb, #e4ebf5); }
.dp-hero .hero-envs svg { filter: drop-shadow(0 8px 18px rgba(15,35,80,.16)); }
.dp-cards .env-fig img { max-height: 150px; border-radius: 6px; }
.dp-fig svg { max-width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(15,35,80,.15)); }
.dp-ic { display: inline-block; width: 14px; height: 18px; background: #fff; border-radius: 2px; box-shadow: 3px 3px 0 #fbe3ea, inset 0 0 0 1px rgba(0,0,0,.25); margin-right: 2px; }
.dp-ic--free { box-shadow: 3px 3px 0 #dff0f4, inset 0 0 0 1px rgba(0,0,0,.25); }

.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }
.mode-card { display: grid; gap: 6px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: .15s; }
.mode-card:hover { border-color: var(--accent); }
.mode-card b { font-family: "Noto Serif JP", serif; font-size: 17px; }
.mode-card span { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.mode-card em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }

/* テンプレートのデザイン一覧 */
.dg-h { font-size: 15px; margin: 22px 0 8px; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.design { display: grid; gap: 4px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px; text-decoration: none; color: var(--ink); cursor: pointer; position: relative; }
.design img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f5f5f2; border-radius: 6px; }
.design span { font-size: 12px; font-weight: 700; }
.design:hover { border-color: var(--accent); }
.design input { position: absolute; opacity: 0; pointer-events: none; }
.design:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.design-grid.pick { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); max-height: 430px; overflow: auto; padding: 2px; }

/* 注文画面：紙の色 */
.sheet-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; font-size: 14px; }
.sheet-row b { width: 4.5em; }
.chip { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: var(--card); cursor: pointer; font-size: 13px; }
.chip input { margin: 0 4px 0 0; }
.chip:has(input:checked) { border-color: var(--accent); background: #fff6ec; }
.summary .preview svg { max-width: 100%; height: auto; }
.summary .photo img { max-height: 180px; border-radius: 6px; }
.area-figs figcaption b { color: var(--ink); }

/* テンプレートの拡大 */
.design { position: relative; }
.zoom-ic { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(1,38,103,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='M15 15l5 5M10 7v6M7 10h6'/%3E%3C/svg%3E") center / 16px no-repeat; }
.zoom-btn { position: absolute; right: 8px; top: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 0; background: rgba(1,38,103,.85); color: #fff; cursor: zoom-in; }
.zoom-plain { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; margin: 0 auto; }
.design[data-zoom] { cursor: zoom-in; }
.zoom-dlg { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.zoom-dlg::backdrop { background: rgba(10,16,30,.78); }
.zoom-box { position: relative; background: #fff; border-radius: 14px; padding: 16px 56px 14px; display: grid; gap: 10px; justify-items: center; }
.zoom-box figure { margin: 0; text-align: center; }
.zoom-box img { display: block; max-width: min(900px, 82vw); max-height: 76vh; width: auto; height: auto; border-radius: 6px; }
.zoom-box figcaption { font-size: 13px; font-weight: 700; margin-top: 6px; }
.zoom-x { position: absolute; right: 8px; top: 6px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.zoom-nav { position: absolute; top: 45%; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 26px; line-height: 1; cursor: pointer; color: #012667; }
.zoom-nav.prev { left: 8px; } .zoom-nav.next { right: 8px; }
.zoom-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
@media (max-width: 700px) { .zoom-box { padding: 44px 10px 12px; } .zoom-box img { max-width: 88vw; } .zoom-nav { top: auto; bottom: 10px; } }

/* 伝票PRO */
.dp-ic--pro { background: #012667; box-shadow: 3px 3px 0 #b8560f; }
.side-pro { font-weight: 700; }
.mode-card--pro { border-color: #012667; background: linear-gradient(180deg, #f3f6fb, #fff); }
.pro-badge { display: inline-block; background: #012667; color: #fff; font-weight: 800; letter-spacing: .12em; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.pro-list { padding-left: 1.2em; line-height: 1.9; font-size: 14px; }
.fp-table.cmp td, .fp-table.cmp th { text-align: left; white-space: normal; }
.sheet-sel { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 4px; }
.sheet-sel select { font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.choice.pro-link { text-decoration: none; border-style: dashed; }
.choice.pro-link b { color: #012667; }

/* 業種別テンプレート（注文画面のデザイン一覧） */
.design-grid .gy-h { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--ink); margin: 6px 0 -2px; padding-left: 8px; border-left: 3px solid var(--accent); }
.design small { font-size: 11px; color: var(--ink-3); }
/* 業種別テンプレートのページ */
.dp-ic--gy { background: #fff6ec; box-shadow: 3px 3px 0 var(--accent-bright), inset 0 0 0 1px rgba(0,0,0,.25); }
.side-gy { font-weight: 700; }
.gy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gy-card { display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 14px; text-decoration: none; color: var(--ink); transition: .2s; }
.gy-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.gy-thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #e6eef6; }
.gy-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gy-card b { font-size: 15px; } .gy-card > span:last-child { font-size: 12px; color: var(--ink-3); }
.gy-tpls { display: grid; gap: 18px; }
.gy-tpl { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
@media (max-width: 700px) { .gy-tpl { grid-template-columns: 1fr; } }
.gy-tpl .design img { aspect-ratio: auto; }
.gy-tpl h3 { margin: 4px 0 8px; font-size: 18px; font-family: "Noto Serif JP", serif; }
.gy-spec { margin: 0 0 10px; padding-left: 1.1em; font-size: 14px; line-height: 1.9; }
.gy-price { font-size: 14px; margin: 0 0 12px; } .gy-price b { color: var(--accent); font-size: 17px; } .gy-price small { display: block; font-size: 11px; color: var(--ink-3); }
.gy-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gy-sec-head a { font-size: 13px; font-weight: 700; }
.gy-links { display: flex; flex-wrap: wrap; gap: 8px; }
.gy-links a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; background: var(--card); font-size: 13px; }
.summary .preview .bind-note { flex-basis: 100%; margin: 4px 0 0; font-size: 11px; color: var(--ink-3); text-align: center; }
/* 作り方4通り */
.mode-cards--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mode-card { position: relative; }
.mc-no { position: absolute; top: 12px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff !important; font-weight: 800; font-size: 13px !important; display: grid; place-items: center; }
.mode-card b { padding-right: 32px; }

/* 見本を送って無料見積り */
.side-est { margin-top: -6px; font-size: 14px; }
.est-banner { display: grid; gap: 4px; margin-top: 16px; padding: 16px 20px; border: 2px dashed var(--accent); border-radius: 14px; background: #fff8f0; text-decoration: none; color: var(--ink); transition: .2s; }
.est-banner:hover { background: #fff1e0; }
.est-banner b { font-size: 16px; } .est-banner span { font-size: 13px; color: var(--ink-2); } .est-banner em { font-style: normal; font-weight: 800; color: var(--accent); }
.est-drop { display: grid; gap: 6px; text-align: center; cursor: pointer; margin-top: 12px; }
.est-drop span { font-size: 12px; color: var(--ink-3); }
.est-files { margin: 10px 0 0; padding-left: 1.2em; font-size: 14px; }
.est-files li { margin: 4px 0; }
.est-address { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.8; margin-top: 12px; }
.est-address b { display: block; font-size: 12px; color: var(--ink-3); }
.est-flow { padding-left: 1.2em; font-size: 14px; line-height: 1.7; }
.est-flow b { display: block; }
.est-sheet { border: 2px solid var(--ink); border-radius: 8px; padding: 18px 20px; margin: 18px 0; background: #fff; text-align: left; }
.est-sheet-h { font-family: "Noto Serif JP", serif; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.est-sheet table { width: 100%; border-collapse: collapse; font-size: 14px; }
.est-sheet th, .est-sheet td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.est-sheet th { width: 7em; background: #f5f3ee; }
.est-sheet td.big { font-size: 22px; font-weight: 800; letter-spacing: .06em; }
.est-to { margin-top: 12px; font-size: 14px; line-height: 1.8; } .est-to b { display: block; font-size: 12px; color: var(--ink-3); }
/* 送付状だけを印刷する */
@media print {
  body.denpyo * { visibility: hidden; }
  .est-sheet, .est-sheet * { visibility: visible; }
  .est-sheet { position: absolute; left: 0; top: 0; width: 100%; border-color: #000; }
}

/* サイドバー：作り方ごとのグループ（アイコンは線画・グループごとに色を変える） */
.side-nav .sd-ic { flex-shrink: 0; width: 22px; height: 22px; padding: 1px; }
.side-nav .side-title em { font-style: normal; font-weight: 400; margin-left: 6px; color: var(--ink-3); letter-spacing: 0; }
.sg-tpl .side-title { color: var(--accent); }
.sg-tpl .sd-ic { color: var(--accent); }
.sg-data .side-title { color: #2f6fd0; }
.sg-data .sd-ic { color: #2f6fd0; }
.sg-pro { background: #f3f6fb; }
.sg-pro .side-title, .sg-pro .sd-ic { color: #012667; }
.side-link.side-est { background: #fff8f0; border: 1px dashed var(--accent); margin: 2px 0; }
.side-link.side-est:hover { background: #fff1e0; }
.side-nav .side-title em { display: block; margin: 2px 0 0; font-size: 11px; }
/* サイドバーのイラスト */
.side-nav .sd-img { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; transition: transform .2s; }
.side-nav .side-link:hover .sd-img { transform: scale(1.08) rotate(-3deg); }
.side-nav .sl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.side-nav .sl-t small { padding-left: 0; margin-top: 2px; }
.side-nav .sg-tpl .side-link, .side-nav .sg-data .side-link, .side-nav .sg-pro .side-link { flex-wrap: nowrap; }
.side-nav .sg-tpl .side-link, .side-nav .sg-data .side-link, .side-nav .sg-pro .side-link { padding-top: 6px; padding-bottom: 6px; }
.side-nav .side-est .sl-t { font-size: 13px; letter-spacing: -.02em; }

/* サイズで選ぶ・複写枚数で選ぶ */
.side-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 6px 4px; }
.side-chips a { flex: 0 0 calc(33.33% - 4px); text-align: center; padding: 6px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 700; }
.side-chips a:last-child:nth-child(3n+1) { flex-basis: 100%; }
.side-chips--copy a { flex-basis: calc(25% - 5px); }
.side-chips a:hover { border-color: var(--accent); color: var(--accent); }
.pick-nav { margin: 6px 0 18px; }
.pick-nav a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-figs { display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-end; margin: 6px 0 10px; }
.size-figs figure { margin: 0; text-align: center; }
.size-figs svg { filter: drop-shadow(0 6px 14px rgba(15,35,80,.15)); max-width: 100%; height: auto; }
.size-figs figcaption { font-size: 13px; color: var(--ink-3); } .size-figs figcaption b { display: block; color: var(--ink); font-size: 15px; }
.combo-list { padding-left: 1.2em; line-height: 2; font-size: 14px; } .combo-list b { display: inline-block; min-width: 5em; margin-right: 8px; }
.side-chips--copy a:last-child:nth-child(3n+1) { flex-basis: calc(25% - 5px); }
