.pdf[data-direction="vertical"] {
  width: 20.95cm;

  .pdfPage {
    height: 29.7cm;
  }

  .topSection__tagGroup {
    padding-left: 32px;
    margin-bottom: 0;
  }

  .topSection__tagGroup::before {
    left: 0;
  }

  .topSection__img {
    margin-right: 20px;
  }

  .topSection__tagGroup--tagList {
    gap: 4px;
  }

  .topSection__tagGroup--tagItem {
    margin: 0;
  }

  .topSection__tagGroup--tagList {
    padding-right: 0;
  }

  .topSection__heading--text {
    padding: 0;
    margin-bottom: 10px;
  }
}

.pdf {
  width: 29.7cm;
  margin: auto;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;

  .pdfPage {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 20.95cm;
    page-break-before: always;
    padding: 0.2cm 0.3cm 0;
    overflow: hidden;
    border-bottom: 8px solid #FF5C00;
  }

  .pdfTitle {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20.95cm;
    page-break-after: always;
    padding: 0.5cm 0.3cm;
  }

  .pdfHeadLogo {
    display: flex;
    align-items: center;
    gap: 28px;

    img {
      width: auto;
    }

    .pdfHeadLogo__logo {
      height: 32px;
    }

    .pdfHeadLogo__cross {
      height: 14px;
    }
  }

  .pdfPage {
    .pdfHeadLogo {
      gap: 16px;

      .pdfHeadLogo__logo {
        height: 24px;
      }

      .pdfHeadLogo__cross {
        height: 10px;
      }
    }
  }

  .pdfPageHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #FF5C00;
    padding-bottom: 4px;
    margin-bottom: 12px;
  }
  .pdfShopName {
    font-size: 12px;
    width: 30ch;
    text-align: center;
    white-space: normal;
    word-break: break-all;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pdfQr {
    display: flex;
    align-items: center;
    gap: 4px;

    p {
      font-size: 10px;
      line-height: 1.4;
    }
    p.date{
      font-size: 12px;
      margin-right: 5px;
    }

    img {
      width: 1.2cm;
      height: auto;
    }
  }

  .p-top__inner {
    padding: 0;
  }

  .js-slider-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex: 1;
    padding: 0;
  }

  .topSection__topContent {
    display: -webkit-box; 
    margin-bottom: 12px;
  }

  .topSection__tagGroup::before {
    top: 0;
    transform: none;
  }

  .topSection__heading {
    flex: 1;
    -webkit-box-flex: 1;
    -webkit-flex: 1;  
  }

  .topSection__cardList {
    overflow: hidden;
    margin: 0;
  }

  .topSection__img {
    width: 13cm;
    flex-basis: 13cm;
    height: 6cm;
    background-size: cover;
    border-radius: 10px;
  }

  .topSection__tagGroup--tagList {
    overflow: hidden;
    flex-wrap: wrap;
  }

  .topSection__heading--text {
    font-size: 18px;
  }
  
  .topSection__tagGroup--tagItem {
    margin-bottom: 12px;

    .topSection__tagGroup--tagItemLink {
      font-size: 10px;
      height: 29px;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }
  }

  .topSection__cardList {
    justify-content: center;
    margin-bottom: 0.2cm;
    padding: 0;
    gap: 0.2cm;
  }

  .topSection__tagGroup--tagItemLink:hover {
    background-color: #f6f6f6;
  }

  .cardItem__inner:hover .cardItem__img > img {
    transform: scale(1);
  }

  .cardItem__inner:hover .cardItem__title>span {
    background-size: 0;
  }

  .cardItem__inner {
    border: 1px solid #f6f6f6;
    cursor: initial;
    box-shadow: none;
  }

  .cardItem__bomb1 {
    bottom: -46px;
    right: -78px;
  }

  .cardItem__bomb2 {
    bottom: -46px;
    right: -54px;
  }

  .cardItem__bomb3 {
    bottom: -46px;
    right: -54px;
  }

  .topSection__cardList {
    align-items: flex-start;
    &.typeC {
      .cardItem--chirashi{
        width: 4.1cm;
      }

      .cardItem[data-size="large"] {
        width: 5.8cm;
      }
    }
  }

  .cardItem--chirashi {
    width: 5.68cm;
    border: none;

    .cardItem__inner {
      width: 100%;
      border: none;
    }
  }

  .cardItem--chirashi .cardItem__img {
    height: 3.21cm;
    &.square {
      height: auto;
    }
  }

  .cardItem--chirashi .cardItem__title {
    font-size: 12px;
  }

  .cardItem--chirashi .cardItem__price {
    font-size: 29px;
  }

  .cardItem--chirashi > .cardItem__volume {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 3px;
  }

  .cardItem__title2_new {
    font-size: 12px;
    padding: 0 5px;
    margin: 2px 0;
  }

  .cardItem__bandles--item,
  .cardItem__band p,
  .cardItem__tags--item {
    font-size: 8px;
  }

  .cardItem {
    margin: 0;
  }

  .cardItem[data-size="large"] {
    width: 9.6cm;
  }

  .cardItem[data-size="large"] .cardItem__img {
    height: 6.4cm;

    &.square {
      height: auto;
    }
  }

  .cardItem[data-size="large"] .cardItem__title {
    font-size: 14px;
  }

  .p-list {
    .p-list__inner {
      width: 100%;
      padding: 0;
    }

    .topSection {
      padding: 0;
    }

    .topSection__topContent {
      margin: 8px 0 12px;
    }

    .searchResultHeaderSection {
      margin: 24px 0 0px;
      padding: 0 0 20px;
    }

    .hash__icon {
      width: 20px;
    }

    .head__title {
      margin: 0;
      font-size: 16px;
    }

    .topSection__cardList2 {
      margin-bottom: 0.2cm;
      gap: 0.3cm 0.15cm;
      justify-content: center;
      padding: 0;
    }

    .topSection__cardList2[data-size="large"] .cardItem {
      margin: 0;
      flex-basis: initial;
    }

    .cardItem[data-size="large"] {
      width: 6.5cm;
    }

    .topSection__cardList2 .cardItem[data-size="large"] .cardItem__img,
    .topSection__cardList2 .cardItem[data-size="large"] .cardItem__img>img {
      height: 4.2cm;
    }

    .topSection__cardList2 .cardItem--chirashi .cardItem__img.square {
      img {
        height: 100%;
      }
    }
  

    .topSection__cardList2 .cardItem--chirashi .cardItem__img,
    .topSection__cardList2 .cardItem--chirashi .cardItem__img>img {
      height: 2.24cm;
    }

    .cardItem--chirashi {
      width: 3.9cm;
    }

    .topSection__cardList2 .cardItem {
      flex-basis: 140px;
    }

    .topSection__cardList2 .cardItem__img {
      height: 85px;
    }

    .topSection__cardList2 .cardItem__img>img {
      height: 85px;
    }

    .topSection__cardList2 .cardItem__title {
      padding: 0 3px;
      font-size: 10px;
      -webkit-line-clamp: 2;
      white-space: initial;
    }
    
    .cardItem__title2,
    .cardItem__title2_new {
      font-size: 10px;
      padding: 0 5px;
    }
    
    .cardItem__text {
      color: black;
      overflow: hidden;
      white-space: pre-line;
      margin: 0;
      padding: 2px 5px 10px;
      font-size: 11px;
      font-weight: 400;
      text-align: right;
      line-height: 100%;
      line-height: 1em;
      height: auto;
      max-height: 7em;
    }

    .cardItem__volume {
      font-size: 10px;
      padding: 0 3px;
    }

    .topSection__cardList2 .cardItem__topGroup {
      padding-top: 4px;
      min-height: auto;
    }

    .topSection__cardList2 .cardItem__price {
      font-size: 13px;
      padding: 2px 5px 2px;
    }

    .topSection__cardList2 .cardItem__taxPrice {
      font-size: 10px;
      margin-bottom: 10px;
    }

    .cardItem--chirashi .cardItem__price {
      gap: 5px;
      padding: 2px;
    }
  }
  .main{min-height:calc(100vh - 72px - 44px);padding-top:0;}
}
