/* 印刷用レイアウト（#/print/...） */
body.is-print {
  background: #e9e4de;
}

.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.print-toolbar .muted {
  flex: 1;
  font-size: 12.5px;
}

.sheet {
  margin: 24px auto;
  padding: 14mm;
  background: #fff;
  color: #3a3531;
  font-family: var(--font-serif);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.sheet-a4 { width: 210mm; min-height: 297mm; page: a4; }
.sheet-a3l { width: 420mm; min-height: 297mm; page: a3l; }
.sheet-a5 { width: 148mm; min-height: 210mm; page: a5; }

@page a4 { size: A4 portrait; margin: 0; }
@page a3l { size: A3 landscape; margin: 0; }
@page a5 { size: A5 portrait; margin: 0; }

.sheet .script {
  margin: 0;
  font-family: var(--font-script);
  color: var(--accent);
  font-size: 18px;
}

.sheet .script.big {
  font-size: 40px;
  line-height: 1.2;
}

.sheet .small {
  font-size: 11px;
  color: #7a716a;
}

.sheet-head {
  text-align: center;
}

.sheet-head p {
  margin: 2px 0;
}

.sheet-head .script {
  font-size: 44px;
}

.sheet-note {
  margin-top: 8mm;
  text-align: center;
  font-size: 10px;
  color: #8a8079;
}

/* 席次表 */
.print-head-table {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 60%;
  margin: 8mm auto;
  padding: 4mm;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  font-size: 15px;
}

.print-tables {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8mm 10mm;
}

.print-table {
  text-align: center;
}

.print-table-name {
  display: grid;
  place-items: center;
  width: 16mm;
  height: 16mm;
  margin: 0 auto 3mm;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-size: 16px;
  color: var(--accent);
}

.print-table ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 4mm;
  text-align: left;
}

.print-table li {
  break-inside: avoid;
  margin-bottom: 2mm;
  font-size: 12px;
  line-height: 1.3;
}

.print-table li small {
  display: block;
  font-size: 8.5px;
  color: #8a8079;
}

.print-table em,
.placecard em {
  font-style: normal;
  font-size: 0.8em;
}

/* 席札（二つ折り：上半分が裏面になる） */
.placecard-sheet {
  display: grid;
  grid-template-columns: repeat(2, 91mm);
  grid-auto-rows: 66mm;
  gap: 2mm;
  justify-content: center;
  align-content: start;
  padding: 10mm 0;
}

.placecard {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border: 0.2mm dashed #cfc5ba;
}

.placecard-back,
.placecard-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2mm 5mm;
  text-align: center;
}

.placecard-back {
  transform: rotate(180deg);
  border-top: 0.2mm dashed #e2d9ce;
  font-size: 9.5px;
  line-height: 1.6;
  color: #6b625b;
}

.placecard-back p {
  margin: 0;
  white-space: pre-wrap;
}

.placecard-back .script {
  font-size: 13px;
  margin-top: 1mm;
}

.placecard-front small {
  font-size: 8.5px;
  color: #8a8079;
}

.placecard-front p {
  margin: 1mm 0;
  font-size: 17px;
}

.placecard-front .script {
  font-size: 12px;
}

/* メニュー */
.menu-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 18mm;
}

.ornament {
  width: 30mm;
  height: 1px;
  margin: 6mm 0;
  background: var(--accent);
}

.menu-course {
  margin-bottom: 6mm;
}

.menu-course p {
  margin: 0;
  font-size: 12px;
}

.menu-course .en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
}

/* 名簿・進行表 */
.list-sheet h1 {
  margin: 0 0 6mm;
  font-size: 18px;
}

.print-table-list {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font);
  font-size: 10.5px;
}

.print-table-list th,
.print-table-list td {
  padding: 2mm;
  border: 0.2mm solid #d6ccc1;
  text-align: left;
  vertical-align: top;
}

.print-table-list th {
  background: #f4eee6;
  font-weight: 500;
}

.print-table-list tr {
  break-inside: avoid;
}

.print-table-list .box {
  width: 10mm;
  text-align: center;
  font-size: 14px;
}

/* QR カード */
.qr-sheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  padding: 0;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3mm;
  padding: 8mm;
  border: 0.2mm dashed #d6ccc1;
  text-align: center;
}

.qr-card p {
  margin: 0;
  font-size: 12px;
}

.qr-card .qr {
  width: 48mm;
}

.qr-card .qr svg {
  display: block;
  width: 100%;
  height: auto;
}

@media print {
  body.is-print {
    background: #fff;
  }

  .print-toolbar {
    display: none;
  }

  .sheet {
    margin: 0;
    box-shadow: none;
    break-after: page;
  }

  .sheet:last-child {
    break-after: auto;
  }
}
