/* =====================================
   Print Price page stylesheet
   印刷用料金ページ専用CSS

   Target template classes:
   body.print-price-body
   .print-price-main
   .print-price-page
   .price-table
===================================== */

/* ------------------------------
   Base
------------------------------ */

body.print-price-body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
}

.print-price-main {
  width: 100%;
  background: #fff;
}

.print-price-page {
  max-width: 1020px;
  margin: 0 auto;
  padding: 20px 22px 32px;
  background: #fff;
  color: #222;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.55;
  box-sizing: border-box;
}

.print-main-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
  text-align: center;
  font-weight: 700;
}

/* ------------------------------
   Blocks / headings
------------------------------ */

.print-section {
  margin-bottom: 18px;
}

.print-block {
  margin-bottom: 30px;
}

.print-subblock {
  margin-bottom: 20px;
}

.print-block-head,
.print-subhead {
  position: relative;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #999;
}

.print-block-head h2,
.print-subhead h3 {
  margin: 0;
  line-height: 1.25;
  font-weight: 700;
}

.print-block-head h2 {
  font-size: 22px;
}

.print-subhead h3 {
  font-size: 17px;
}

.print-note,
.print-subnote {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
}

.print-note--top {
  position: absolute;
  right: 0;
  bottom: 4px;
  margin: 0;
  padding-left: 10px;
  background: #fff;
  font-size: 11.5px;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

/* ------------------------------
   Course price table
------------------------------ */

.price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.price-table th,
.price-table td {
  border-top: 1px solid #d0d0d0;
  padding: 7px 8px;
  vertical-align: top;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.55;
}

.price-table th {
  width: 165px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.price-table td strong {
  font-size: 14px;
  font-weight: 700;
}

/* ------------------------------
   Entry time
------------------------------ */

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.time-box {
  border: 1px solid #d0d0d0;
  padding: 14px 16px;
}

.time-box h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.time-box p {
  margin: 0 0 6px;
  font-size: 13.5px;
  line-height: 1.7;
}

.time-box p:last-child {
  margin-bottom: 0;
}

/* ------------------------------
   Reservation notes
------------------------------ */

.notice-block {
  margin-bottom: 18px;
}

.notice-block h3 {
  margin: 0 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #d0d0d0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.notice-block p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
}

/* ------------------------------
   Contact box
------------------------------ */

.print-price-body .tel-box {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #999;
  text-align: center;
}

.print-price-body .tel-box p {
  margin: 0 0 4px;
}

.print-price-body .tel-box__label {
  font-size: 13px;
  margin-bottom: 4px;
}

.print-price-body .tel-box__number {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.print-price-body .tel-box__fax,
.print-price-body .tel-box__email {
  font-size: 13px;
  line-height: 1.5;
}

/* ------------------------------
   Page break
------------------------------ */

.page-break {
  display: block;
  break-before: page;
  page-break-before: always;
}

.page-break-before {
  display: block;
  break-before: page;
  page-break-before: always;
}

/* ------------------------------
   Small screen preview
------------------------------ */

@media screen and (max-width: 767px) {
  .print-price-page {
    max-width: none;
    padding: 16px 16px 28px;
  }

  .print-main-title {
    font-size: 22px;
  }

  .print-note--top {
    position: static;
    display: block;
    margin-top: 4px;
    padding-left: 0;
    text-align: left;
    white-space: normal;
  }

  .price-table th {
    width: 115px;
    font-size: 15px;
  }

  .price-table th,
  .price-table td {
    padding: 7px 6px;
    font-size: 12px;
  }

  .time-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------
   Print settings
------------------------------ */

@media print {
  @page {
    size: A4 portrait;
    margin: 20mm 9mm 9mm 9mm;
  }

  html,
  body.print-price-body {
    margin: 0;
    padding: 0;
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #wpadminbar {
    display: none !important;
  }

  body.print-price-body {
    font-size: 12px;
  }

  .print-price-page {
    max-width: none;
    padding: 6mm 0 0 0;
  }

  .print-section,
  .print-block,
  .print-subblock,
  .price-table tr,
  .time-box,
  .notice-block,
  .print-price-body .tel-box {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
