:root {
  --ink: #0f2350;
  --ink-2: #4a5263;
  --ink-3: #7a8193;
  --paper: #faf7f1;
  --card: #ffffff;
  --line: #e6e0d4;
  --accent: #b8560f;      /* ロゴのオレンジ（白文字が読める濃さ） */
  --accent-bright: #df741f; /* ロゴのオレンジそのもの（飾り用） */
  --accent-2: #974409;
  --accent-soft: #fdeee2;
  --ok: #2f7d4f;
  --ok-soft: #e5f3ea;
  --warn: #9a6a00;
  --warn-soft: #fdf3dc;
  --ng: #b3261e;
  --ng-soft: #fbe4e2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15,35,80,.06), 0 4px 16px rgba(15,35,80,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 15px; line-height: 1.75;
}
a { color: var(--accent-2); }
img { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-word { font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 22px; letter-spacing: .08em; }
.logo-img { display: block; height: 32px; width: auto; }
@media (max-width: 640px) { .logo-img { height: 26px; } }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 6px; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a.btn { color: #fff; }
.nav a.hdr-tel { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; padding: 4px 10px; margin-right: 4px; color: var(--ink); } /* ヘッダーの電話（2026-10-17） */
.nav a.hdr-tel b { font-size: 15px; letter-spacing: .02em; }
.nav a.hdr-tel small { font-size: 10px; color: var(--ink-3); }
@media (max-width: 900px) { .nav a.hdr-tel small { display: none; } }
@media (max-width: 640px) { .nav a.hdr-tel { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; margin-right: 0; } .nav a.hdr-tel b { font-size: 12px; } .nav a.hdr-tel b::before { content: "📞 "; } }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 20px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-2); }
.btn:disabled { background: #b9b4aa; cursor: not-allowed; }
.btn.lg { padding: 14px 28px; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--card); }
.btn.small { padding: 5px 12px; font-size: 13px; }

/* 見出し・セクション */
h1, h2, h3 { font-family: "Noto Serif JP", serif; line-height: 1.4; }
.section { padding: 56px 0; }
.section h2 { font-size: 26px; margin: 0 0 8px; }
.section .lead { color: var(--ink-2); margin: 0 0 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: 13px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }

/* フォーム共通 */
label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #d6cfc1; border-radius: 8px; padding: 9px 11px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea { min-height: 84px; resize: vertical; }
.req::after { content: "必須"; margin-left: 6px; font-size: 11px; color: #fff; background: var(--accent); padding: 1px 6px; border-radius: 4px; font-weight: 700; }

/* 注意書き */
.note { font-size: 13px; color: var(--ink-3); }
.msg { border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 10px 0; }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.warn { background: var(--warn-soft); color: var(--warn); }
.msg.ng { background: var(--ng-soft); color: var(--ng); }
.msg.info { background: #eef1f6; color: var(--ink-2); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }

/* 本文ページ（ガイド・規約など） */
.doc { max-width: 780px; margin: 0 auto; padding: 40px 16px 64px; }
.doc h1 { font-size: 28px; margin: 0 0 24px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: #f3efe6; width: 32%; font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* ---- PC：左サイドバー付きレイアウト ---- */
.shell { max-width: 1280px; margin: 0 auto; }
.shell-main { min-width: 0; }
.side-nav { display: none; }
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; padding: 0 20px; }
  .shell--wide { display: block; padding: 0; }
  .side-nav { display: block; align-self: start; padding: 22px 0 30px; } /* ページと一緒に流れる（専用スクロールなし・2026-09-24） */
  .shell-main .container { padding: 0; max-width: none; }
  .shell-main .doc { margin: 0; padding-left: 0; padding-right: 0; }
}
@media (min-width: 1280px) {
  .shell--wide { display: grid; padding: 0 20px; }
}
.side-cta { width: 100%; margin-bottom: 18px; }
.side-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 8px; margin-bottom: 14px; }
.side-title { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; padding: 2px 8px 6px; }
.side-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.3; }
.side-link small { flex-basis: 100%; padding-left: 30px; margin-top: -2px; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.side-link.plain { font-weight: 400; padding: 6px 8px; }
.side-link.plain::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: rotate(45deg); margin-right: 4px; }
.side-link:hover { background: var(--paper); }
.side-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0 6px 4px; }
.side-chips a { text-align: center; font-size: 13px; font-weight: 700; padding: 6px 0; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.side-chips a:hover { border-color: var(--accent); color: var(--accent); }
.side-contact { padding: 14px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.side-contact .side-title { color: #aab1c0; padding: 0 0 4px; }
.side-contact .tel { display: block; color: #fff; text-decoration: none; font-family: "Noto Serif JP", serif; font-size: 21px; font-weight: 700; letter-spacing: .03em; }
.side-contact small { display: block; color: #c9cdd6; font-size: 11px; }
.side-contact .mail { display: block; color: #f3b3a6; font-size: 12px; margin-top: 8px; word-break: break-all; }
.side-company { font-size: 11px; color: #aab1c0; margin-top: 10px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 8px; }

/* スマホ・タブレット：メニューボタンでサイドバーを引き出す */
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; }
  .side-nav.open { display: block; position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--paper); padding: 20px 16px; overflow-y: auto; box-shadow: -8px 0 30px rgba(0,0,0,.2); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(15,35,80,.4); z-index: 45; }
}
@media (min-width: 1024px) {
  .site-header .container, .site-footer .container { max-width: 1280px; padding: 0 20px; }
  .shell-main > main.container { padding-left: 0; padding-right: 0; }
}
.menu-btn, .nav a.btn { white-space: nowrap; }
@media (max-width: 640px) {
  .logo-word { font-size: 18px; letter-spacing: .04em; }
  .logo { gap: 6px; }
  .menu-t { display: none; }
  .menu-btn { font-size: 18px; padding: 3px 10px; }
}

/* 営業日カレンダー */
.cal { width: 100%; border-collapse: collapse; font-size: 12px; text-align: center; margin: 0 0 8px; table-layout: fixed; }
.cal caption { font-weight: 700; font-size: 13px; padding: 2px 0 4px; text-align: left; padding-left: 4px; }
.cal th { font-weight: 400; color: var(--ink-3); padding: 2px 0; }
.cal th.sun { color: #c0392b; } .cal th.sat { color: #2a5aa0; }
.cal td { padding: 3px 0; border-radius: 4px; }
.cal td.off { background: #f3e1d6; color: #a2491a; }
.cal td.today { outline: 1.5px solid var(--ink); outline-offset: -1.5px; font-weight: 700; }
.cal td.ship { background: var(--ink); color: #fff; font-weight: 700; }
.cal-legend { font-size: 11px; color: var(--ink-3); padding: 0 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 6px; }
.cal-legend i:first-child { margin-left: 0; }
.cal-legend i.off { background: #f3e1d6; } .cal-legend i.ship { background: var(--ink); }
.side-cal { padding-bottom: 8px; }
/* 注文画面（shell--wide）：1024〜1279pxはサイドバーを出さず、メニューボタンで開く */
@media (min-width: 1024px) and (max-width: 1279px) {
  .shell--wide .side-nav:not(.open) { display: none; }
  body:has(.shell--wide) .menu-btn { display: inline-flex; align-items: center; gap: 6px; }
  .shell--wide .side-nav.open { display: block; position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: 320px; max-height: none; background: var(--paper); padding: 20px 16px; overflow-y: auto; box-shadow: -8px 0 30px rgba(0,0,0,.2); }
  body:has(.shell--wide) .nav-backdrop { position: fixed; inset: 0; background: rgba(15,35,80,.4); z-index: 45; }
}

/* 注文画面：表紙の印刷の説明図 */
.cover-print { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.cover-fig { width: 120px; flex: 0 0 auto; }

/* サイドバー：目的から選ぶ */
.side-purpose { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink); padding: 8px 8px 2px; border-top: 1px dashed var(--line); margin-top: 4px; }
.side-genre .side-title + .side-purpose { border-top: 0; margin-top: 0; }
.side-purpose svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side-genre .side-link.plain { padding: 4px 8px 4px 16px; font-size: 13px; }

/* サイドバー：サイズから選ぶ（実際の大小関係を縮小した紙の図つき） */
.side-size { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 7px; text-decoration: none; color: var(--ink); }
.side-size:hover { background: var(--paper); }
.side-size .sz-ic { width: 24px; height: 32px; flex: 0 0 auto; }
.side-size .sz-ic rect { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.side-size:hover .sz-ic rect { fill: var(--accent-soft); stroke: var(--accent); }
.side-size span { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; line-height: 1.25; }
.side-size b { font-size: 15px; }
.side-size small { font-size: 11px; color: var(--ink-3); align-self: center; }
.side-size em { grid-column: 1 / -1; font-style: normal; font-size: 11px; color: var(--ink-2); }

/* hidden属性を、display指定のあるクラスより優先する */
[hidden] { display: none !important; }

/* ---- MAKEシリーズどうしのつながり（tools/apply-series.mjs が各ページに入れる） ---- */
.site-footer .series { flex-basis: 100%; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.series-banners { padding: 36px 0 30px; border-top: 1px solid var(--line); background: #fff; }
.series-banners .container { max-width: 1280px; }
.sb-h { text-align: center; font-family: "Noto Serif JP", serif; font-size: 20px; margin: 0 0 16px; }
.sb-h small { font-family: "Noto Sans JP", sans-serif; font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 10px; }
.sb-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.sb-grid.sb-n3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .sb-grid, .sb-grid.sb-n3 { grid-template-columns: 1fr; } }
.sb-card { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 150px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fbf9f5; text-decoration: none; color: var(--ink); transition: transform .3s, box-shadow .3s, border-color .3s; }
.sb-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 24px rgba(15,35,80,.12); }
.sb-text { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px 18px; }
.sb-text .sb-logo { height: 24px; width: auto; align-self: flex-start; }
.sb-text b { font-family: "Noto Serif JP", serif; font-size: 17px; line-height: 1.4; }
.sb-text span { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.sb-text em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--accent); }
.sb-text em::after { content: " →"; }
.sb-img { overflow: hidden; }
.sb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sb-card:hover .sb-img img { transform: scale(1.06); }
.side-series { display: grid; gap: 10px; margin: 14px 0; }
.side-banner { display: grid; gap: 6px; padding: 8px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.side-banner:hover { border-color: var(--accent); transform: translateY(-2px); }
.side-banner .sbn-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 8px; }
.side-banner .sb-logo { height: 18px; width: auto; }
.side-banner span { font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* ---- お客様用ページの「メッセージ」欄（js/messages-ui.js） ---- */
.msg-list { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px 2px 8px; margin: 10px 0 14px; }
.mb-item { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.7; word-break: break-word; }
.mb-item.from-staff { background: #f1f4f9; border: 1px solid #dde3ec; justify-self: start; border-top-left-radius: 4px; }
.mb-item.from-me { background: #fff4e8; border: 1px solid #f3d6b4; justify-self: end; border-top-right-radius: 4px; }
.mb-item .msg-meta { font-size: 11.5px; color: var(--ink-3); margin-bottom: 2px; }
.mb-item .msg-files { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.msg-form textarea { min-height: 90px; }
.msg-form input[type="file"] { margin: 4px 0 10px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* 領収書（台紙）の説明・オプションの見本画像（めちゃ楽プリントの画像） */
.mecha-samples { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 2px; width: 100%; }
.mecha-samples figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; max-width: 260px; }
.mecha-samples img { display: block; width: 100%; height: auto; border-radius: 4px; }
.mecha-samples figcaption { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 4px; }

/* ご注文内容の確認画面（2026-10-18） */
.oc-overlay { position: fixed; inset: 0; background: rgba(15,35,80,.45); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; }
.oc-dialog { background: var(--card, #fff); border-radius: 14px; max-width: 760px; width: 100%; padding: 22px 24px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); max-height: calc(100vh - 48px); overflow-y: auto; }
.oc-dialog h2 { font-family: "Noto Sans JP", sans-serif; font-size: 20px; margin: 0 0 6px; }
.oc-sec { border-top: 1px solid var(--line); padding: 12px 0; }
.oc-sec h3 { font-size: 14px; margin: 0 0 6px; color: var(--ink-2, #333); display: flex; align-items: center; gap: 10px; }
.oc-sec p { margin: 0; font-size: 14px; line-height: 1.7; }
.oc-dl { display: grid; grid-template-columns: 9em 1fr; gap: 3px 12px; margin: 0; font-size: 13.5px; }
.oc-dl dt { color: var(--ink-3); } .oc-dl dd { margin: 0; }
.oc-total { text-align: right; font-size: 14px; margin-top: 8px; } .oc-total b { font-size: 22px; margin-left: 8px; }
.oc-files { margin: 0; padding-left: 1.2em; font-size: 13.5px; }
.oc-link { background: none; border: 0; color: var(--accent, #b8560f); text-decoration: underline; cursor: pointer; font-size: 12px; padding: 0; }
.oc-radios { display: grid; gap: 6px; font-size: 14px; } .oc-radios label { display: block; } .oc-you { display: inline-block; font-size: 12px; line-height: 1.5; }
.oc-custom { margin: 8px 0 0 22px; padding: 10px 12px; background: #faf8f4; border-radius: 10px; }
.oc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; } .oc-grid .oc-wide { grid-column: 1 / -1; }
.oc-custom .field, .oc-sec .field { display: block; margin: 4px 0; } .oc-custom .field span, .oc-sec .field span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.oc-custom .field span.req::after { content: " 必須"; color: #b3261e; font-size: 11px; }
.oc-custom input, .oc-custom select, .oc-sec select, .oc-sec textarea { width: 100%; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; box-sizing: border-box; }
.oc-sec textarea { min-height: 72px; }
.oc-chk { display: flex; gap: 6px; align-items: center; font-size: 13px; margin-top: 8px; }
.oc-agree { display: flex; gap: 12px; align-items: center; font-size: 15px; margin-top: 16px; padding: 14px 16px; background: #fbf6ee; border: 2px solid #ead9c2; border-radius: 12px; cursor: pointer; position: relative; }
.oc-agree input { width: 26px; height: 26px; flex: none; accent-color: var(--accent, #b8560f); cursor: pointer; margin: 0; }
.oc-agree span { display: grid; gap: 2px; } .oc-agree b { font-size: 16px; } .oc-agree small { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.oc-agree-mark { display: none; margin-left: auto; font-style: normal; font-weight: 700; color: #1d6b35; white-space: nowrap; }
.oc-agree.on { border-color: #1d6b35; background: #eef7f0; } .oc-agree.on .oc-agree-mark { display: inline; }
.oc-acts .btn:disabled { opacity: .55; cursor: not-allowed; }
.oc-notice { margin-top: 10px; padding: 10px 14px; background: #fff4e5; border: 1px solid #f0c27a; border-left: 5px solid #e08a1e; border-radius: 8px; color: #7a4a00; font-size: 14px; cursor: pointer; }
.oc-agree.blink { animation: ocBlink .4s ease-in-out 3; } @keyframes ocBlink { 50% { background: #ffe8c2; border-color: #e08a1e; } }
.oc-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 14px; }
.oc-err { margin: 8px 0 0; }
@media (max-width: 640px) { .oc-overlay { padding: 0; } .oc-dialog { border-radius: 0; max-height: 100vh; padding: 16px; } .oc-dl { grid-template-columns: 1fr; } .oc-dl dd { margin-bottom: 4px; } .oc-grid { grid-template-columns: 1fr; } .oc-acts { flex-direction: column-reverse; } .oc-acts .btn { width: 100%; } }

/* お支払い方法（既定で未選択・必ず選んでもらう・2026-10-22） */
.pay-group { padding: 12px 14px 10px; border: 2px solid #d6cfc1; border-radius: 10px; background: #fff; }
.pay-group .choice span { padding: 12px 20px; font-size: 15px; font-weight: 700; }
.pay-group.need { border-color: var(--accent-bright); background: #fff6ec; box-shadow: 0 0 0 4px rgba(223, 116, 31, .18); animation: payPulse 1.6s ease-in-out 3; }
.pay-group.need .choice span { border-color: var(--accent-bright); }
.pay-group .pay-msg { margin-top: 8px; font-weight: 700; color: #b3261e; font-size: 14px; }
.pay-group .pay-msg::before { content: "⚠ "; }
@keyframes payPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(223, 116, 31, .18); } 50% { box-shadow: 0 0 0 8px rgba(223, 116, 31, .32); } }
@media (prefers-reduced-motion: reduce) { .pay-group.need { animation: none; } }
/* ご注文前の確認事項（校正は1回・納期は目安・保証は商品代金まで・2026-10-22） */
.oc-pre { margin-top: 14px; padding: 12px 14px; border: 1px solid #ead9c2; border-radius: 10px; background: #fffdf8; font-size: 13px; line-height: 1.6; }
.oc-pre b { color: #7a3d08; } .oc-pre ul { margin: 6px 0 0; padding-left: 18px; } .oc-pre li { margin: 2px 0; } .oc-pre li b { color: #b3261e; }
/* サイドバーの「お問い合わせフォーム」ボタン（2026-10-23） */
.side-contact .side-form { display: inline-block; margin: 8px 0 4px; color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.side-contact .side-form:hover { background: rgba(255,255,255,.12); }

/* サイドバーのシリーズバナー（総合・冊子・封筒・伝票・2026-10-24） */
.side-banners .side-bnr { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.side-banners .side-bnr:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.side-banners .side-bnr img { display: block; height: 24px; width: auto; max-width: 100%; margin-bottom: 4px; }
.side-banners .side-bnr span { display: block; font-size: 12px; color: var(--ink-3); }
.side-banners .side-bnr.cur { background: var(--accent-soft); border-color: transparent; }
.side-banners .side-bnr.cur span::after { content: "（いまのページ）"; }

/* 表紙デザイナーへのバナー（2026-10-25）：TOP・入稿ガイド・注文画面・マイページ */
.cd-banner { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin: 16px 0; background: linear-gradient(135deg, #fff7f0, #fdeee2); border: 1px solid #f1cfae; border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: box-shadow .15s, transform .15s; }
.cd-banner:hover { box-shadow: 0 8px 22px rgba(0,0,0,.12); transform: translateY(-1px); }
.cd-banner .cd-art { flex: 0 0 auto; display: flex; gap: 2px; align-items: stretch; height: 64px; }
.cd-banner .cd-art i { display: block; border-radius: 3px; }
.cd-banner .cd-art .b4 { width: 44px; background: #2a7cc7; }
.cd-banner .cd-art .sp { width: 10px; background: #1b4f8a; }
.cd-banner .cd-art .b1 { width: 44px; background: #2a7cc7; position: relative; overflow: hidden; }
.cd-banner .cd-art .b1::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: #2f9e5b; border-radius: 50% 50% 0 0 / 60% 60% 0 0; }
.cd-banner .cd-art .b1 b { position: absolute; top: 8px; left: 6px; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .02em; z-index: 1; }
.cd-banner .cd-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cd-banner .cd-txt b { font-size: 18px; }
.cd-banner .cd-txt small { font-size: 12px; color: var(--accent); font-weight: 700; }
.cd-banner .cd-txt span { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cd-banner .cd-btn { flex: 0 0 auto; background: var(--accent); color: #fff; border-radius: 8px; padding: 10px 18px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.cd-banner.lg { padding: 20px 24px; gap: 22px; }
.cd-banner.lg .cd-art { height: 84px; }
.cd-banner.lg .cd-art .b4, .cd-banner.lg .cd-art .b1 { width: 58px; }
.cd-banner.lg .cd-txt b { font-size: 22px; }
.cd-banner.lg .cd-txt span { font-size: 14px; }
@media (max-width: 640px) { .cd-banner { flex-wrap: wrap; } .cd-banner .cd-btn { flex-basis: 100%; text-align: center; } }
.cd-banner .cd-txt .cd-tag { display: inline-block; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 999px; padding: 2px 10px; vertical-align: middle; margin-left: 2px; }

/* 校正ビューア（電子ブック風・2026-10-26） */
body.pv-open { overflow: hidden; }
.pv-root { position: fixed; inset: 0; z-index: 80; background: #2b2f36; color: #fff; display: flex; flex-direction: column; font-size: 14px; }
.pv-top { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #1d2026; flex-wrap: wrap; }
.pv-top b { font-size: 15px; }
.pv-info { color: #cfd3da; flex: 1 1 auto; min-width: 0; font-size: 13px; }
.pv-chk { font-size: 12.5px; color: #cfd3da; display: inline-flex; gap: 6px; align-items: center; }
.pv-x { background: transparent; border: 1px solid #555; color: #fff; border-radius: 8px; width: 34px; height: 34px; font-size: 20px; line-height: 1; cursor: pointer; }
.pv-stage { flex: 1 1 auto; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 8px 44px; perspective: 2400px; touch-action: pan-y; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 72px; border: 0; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; cursor: pointer; }
.pv-nav:hover { background: rgba(255,255,255,.28); }
.pv-prev { left: 4px; } .pv-next { right: 4px; }
.pv-book { position: relative; display: flex; align-items: stretch; transform-style: preserve-3d; }
.pv-leaf { position: relative; display: flex; }
.pv-page { position: relative; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.45); overflow: hidden; cursor: zoom-in; }
.pv-page img { display: block; width: 100%; height: 100%; }
.pv-page.pv-blank { background: transparent; box-shadow: none; cursor: default; }
.pv-empty { visibility: hidden; }
.pv-lab { position: absolute; left: 6px; bottom: 4px; font-size: 11px; color: #333; background: rgba(255,255,255,.85); padding: 0 6px; border-radius: 4px; pointer-events: none; }
.pv-trim { position: absolute; border: 1px solid rgba(220,0,0,.9); pointer-events: none; box-sizing: border-box; }
/* のど（綴じ側）の影：無線綴じは濃く、中綴じは薄く */
.pv-left .pv-page:not(.pv-blank)::after, .pv-right .pv-page:not(.pv-blank)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 5%; pointer-events: none; }
.pv-left .pv-page::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.12), rgba(0,0,0,0)); }
.pv-right .pv-page::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.12), rgba(0,0,0,0)); }
.pv-perfect .pv-left .pv-page::after { width: 8%; background: linear-gradient(to left, rgba(0,0,0,.24), rgba(0,0,0,0)); }
.pv-perfect .pv-right .pv-page::after { width: 8%; background: linear-gradient(to right, rgba(0,0,0,.24), rgba(0,0,0,0)); }
/* めくり */
.pv-flip { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.4,.1,.3,1); z-index: 5; }
.pv-flip.from-right { left: 50%; transform-origin: left center; transform: rotateY(0deg); }
.pv-flip.from-right.go { transform: rotateY(-180deg); }
.pv-flip.from-left { left: 0; transform-origin: right center; transform: rotateY(0deg); }
.pv-flip.from-left.go { transform: rotateY(180deg); }
.pv-face { position: absolute; inset: 0; backface-visibility: hidden; display: flex; }
.pv-face .pv-page { cursor: default; }
.pv-back { transform: rotateY(180deg); }
.pv-face::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0) 30%); z-index: 1; }
.pv-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: #1d2026; }
.pv-th { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; background: transparent; border: 2px solid transparent; border-radius: 6px; padding: 2px; cursor: pointer; color: #cfd3da; font-size: 10px; }
.pv-th.on { border-color: var(--accent, #c8602c); }
.pv-th-pair { display: flex; gap: 1px; }
.pv-th-pair span { display: inline-block; width: 28px; height: 40px; background: #3a3f48 center/cover no-repeat; }
.pv-th small { white-space: nowrap; }
.pv-foot { background: #fff; color: var(--ink, #222); padding: 10px 14px; }
.pv-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pv-fix { margin-top: 8px; } .pv-fix textarea { width: 100%; min-height: 80px; margin-bottom: 8px; }
.pv-zoom { position: absolute; inset: 0; background: #2b2f36; z-index: 10; display: flex; flex-direction: column; }
.pv-zoom-bar { display: flex; gap: 8px; align-items: center; padding: 8px 14px; background: #1d2026; }
.pv-zoom-bar .note { color: #cfd3da; flex: 1 1 auto; }
.pv-zoom-body { flex: 1 1 auto; overflow: auto; padding: 16px; display: flex; justify-content: center; align-items: flex-start; }
.pv-zoom-body .pv-page { cursor: default; }
@media (max-width: 640px) { .pv-stage { padding: 6px 36px; } .pv-nav { width: 30px; } .pv-top b { font-size: 13px; } .pv-chk { display: none; } }

/* 校正ビューア：ピン（指摘） */
.pv-pinbtn { background: var(--accent, #c8602c); color: #fff; border: 0; border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.pv-pinbtn.ghost { background: rgba(255,255,255,.14); }
.pv-pinbtn.on { background: #e23b2e; box-shadow: 0 0 0 3px rgba(226,59,46,.35); }
.pv-pinmode .pv-page { cursor: crosshair; }
.pv-pin { position: absolute; width: 24px; height: 24px; margin: -30px 0 0 -12px; border-radius: 50%; background: #e23b2e; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; padding: 0; cursor: pointer; z-index: 3; }
.pv-pin::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 5px solid transparent; border-top: 7px solid #e23b2e; border-bottom: 0; }
.pv-pin.done::after { border-top-color: #1f8a4c; }
.pv-pin.done { background: #1f8a4c; }
.pv-pin:hover { transform: scale(1.15); }
.pv-pins { position: absolute; right: 0; top: 48px; bottom: 0; width: min(360px, 90vw); background: #fff; color: var(--ink, #222); z-index: 9; display: flex; flex-direction: column; box-shadow: -6px 0 20px rgba(0,0,0,.3); }
.pv-pins-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line, #ddd); }
.pv-pins-h .pv-x { color: #333; border-color: #bbb; }
.pv-pins-body { overflow: auto; flex: 1 1 auto; }
.pv-pinrow { display: grid; grid-template-columns: 30px 1fr; gap: 6px 8px; padding: 8px 12px; border-bottom: 1px solid var(--line, #eee); font-size: 13px; }
.pv-pinrow.hl { background: #fff3e8; }
.pv-pinrow.done .pv-pintxt { color: #777; }
.pv-pinno { width: 24px; height: 24px; border-radius: 50%; background: #e23b2e; color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.pv-pinrow.done .pv-pinno { background: #1f8a4c; }
.pv-pintxt small { color: #777; display: block; }
.pv-pinact { grid-column: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.pv-pinform { position: fixed; z-index: 95; width: 290px; background: #fff; color: var(--ink, #222); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4); padding: 10px; }
.pv-pinform textarea { width: 100%; min-height: 70px; margin-bottom: 6px; font-size: 13px; }
.pv-spine-line { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(30,90,200,.9); pointer-events: none; }
.pv-spine-lab { position: absolute; top: 6px; transform: translateX(-50%); font-size: 11px; color: #1e5ac8; background: rgba(255,255,255,.85); padding: 0 6px; border-radius: 4px; pointer-events: none; white-space: nowrap; }
.pv-zoom-bar .btn { color: #fff; border-color: #777; background: rgba(255,255,255,.08); }
.pv-blankface { background: #fff; position: relative; }
.pv-blankface .pv-lab { opacity: .7; }
