/* A4 printing for the top, company, products and gallery pages.
 * Loaded with media="print" only; normal desktop/mobile styles stay unchanged.
 */
@page {
  size: A4 portrait;
  margin: 12mm;
}

@media print {
  html, body {
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    color: #111 !important;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    font-size: 10pt;
    line-height: 1.65;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  *, *::before, *::after {
    box-sizing: border-box;
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  #wrapper, #top-wrapper {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body p, body li, body dt, body dd, body th, body td {
    font-size: 10pt !important;
    line-height: 1.65 !important;
  }

  p, li { orphans: 3; widows: 3; }
  h1, h2, h3, h4 {
    break-after: avoid;
    page-break-after: avoid;
    line-height: 1.4 !important;
  }
  h1 { font-size: 19pt !important; }
  h2 { font-size: 16pt !important; }
  h3 { font-size: 13pt !important; }
  h4 { font-size: 11pt !important; }
  a { color: inherit !important; text-decoration: none !important; }
  img { max-width: 100% !important; height: auto; }
  figure, img, tr { break-inside: avoid; page-break-inside: avoid; }

  /* Keep the company identity; screen navigation and controls have no paper action. */
  body .site-header { position: static; padding: 0 0 4mm; border-bottom: 1px solid #1c7745; }
  body .site-header__inner { height: auto; max-width: none; padding: 0; }
  body .site-header__brand { gap: 5mm; }
  body .site-header__logo { width: 23mm; }
  body .site-header__name { font-size: 15pt; white-space: normal; }
  .site-header__nav, .site-header__toggle, #fb-root, .fb_iframe_widget,
  body .mission__slider .slick-dots, .slick-dots, .slick-arrow, .slick-cloned,
  .keyvisual__buttons, .mission__button, .products__button,
  .insta-contact__button, .footer__nav, .footer__pagetop {
    display: none !important;
  }

  body .header-lower { height: auto; margin: 5mm 0; padding: 3mm 0; background: none; overflow: visible; }
  body .header-lower__inner { position: static; transform: none; text-align: left; }
  body .header-lower__en { margin: 0 0 1mm; font-size: 10pt !important; color: #52665a; }
  body .header-lower__title { color: #1c7745; }
  body .l-section_1 { width: auto; max-width: none; margin: 0; padding: 0; background: #fff; }

  /* Top: retain the hero, all three original slider photos, copy and news. */
  body .keyvisual { overflow: visible; break-inside: avoid; }
  body .keyvisual__bg { display: block; position: static; width: 100%; height: auto; }
  body .keyvisual__bg img { width: 100%; height: auto; }
  body .keyvisual__inner { position: absolute; inset: 0; padding: 6mm 8mm 0; }
  body .keyvisual__heading { display: flex; gap: 2mm; }
  body .keyvisual__catch { font-size: 19pt !important; letter-spacing: .04em; }
  body .keyvisual__emblem { width: 25mm; margin: 0; }
  body .keyvisual__text { margin: 3mm 0 0; font-size: 9pt !important; line-height: 1.65 !important; }
  body .feature { padding: 5mm 0; break-inside: avoid; }
  body .feature__inner { padding: 0; grid-template-columns: 1fr 1px 1fr 1px 1fr; }
  body .feature__item { display: flex; flex-direction: row; padding: 0; gap: 2mm; text-align: left; }
  body .feature__icon { width: 12mm; margin: 0; }
  body .feature__text { margin: 0; }
  body .feature__text p { font-size: 9pt !important; }
  body .feature__line { display: block; height: 14mm; }
  .feature__item::after { display: none !important; }
  body .mission { padding: 3mm 0 6mm; overflow: visible; break-inside: avoid; }
  body .mission__inner { display: block; max-width: none; margin: 0; padding: 0; }
  body .mission__slider, body .mission__slider .slick-list,
  body .mission__slider .slick-track { width: 100% !important; height: auto !important; overflow: visible !important; transform: none !important; }
  body .mission__slider .slick-track { display: flex !important; gap: 3mm; }
  .mission__slider .slick-track::before, .mission__slider .slick-track::after { display: none !important; }
  body .mission__slider .mission__slide {
    display: block !important; float: none !important; position: static !important;
    flex: 1 1 0; min-width: 0; width: auto !important; height: auto !important;
    opacity: 1 !important; transform: none !important;
  }
  body .mission__slider:not(.slick-initialized) { display: flex; gap: 3mm; }
  body .mission__content { margin: 4mm 0 0; padding: 0; background: #fff; }
  body .mission__en { padding: 0; transform: none; font-size: 11pt !important; color: #52665a; }
  body .mission__box { padding: 2mm 0 0; background: #fff; clip-path: none; -webkit-clip-path: none; }
  body .mission__title { font-size: 16pt !important; }
  body .mission__text { margin: 2mm 0 0; }
  body .products { padding: 5mm 0; background: #659f7d !important; overflow: visible; break-inside: avoid; }
  /* Screen overlays use viewport-sized heights and can escape the section in WebKit print. */
  body .products::before, body .products::after { content: none !important; display: none !important; }
  body .products__inner { max-width: none; padding: 0 4mm; }
  body .products__heading { display: flex; gap: 4mm; margin: 0; color: #1c7745; }
  body .products__en { padding: 0; font-size: 16pt !important; color: #1c7745; }
  body .products__ja { margin: 0; font-size: 12pt !important; color: #1c7745; }
  .products__ja::before, .products__line { display: none !important; }
  body .products__list { margin-top: 4mm; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3mm; }
  body .products__card { padding: 0; border: 1px solid #ccd9cf; border-radius: 2mm; }
  body .products__link { display: block; padding: 3mm 2mm; text-align: center; }
  body .products__body { display: block; }
  body .products__img { width: 22mm; height: 30mm; margin: 0 auto; object-fit: contain; }
  body .products__name { margin: 2mm 0 0; font-size: 12pt !important; }
  body .products__text { margin: 2mm 0 0; font-size: 8.5pt !important; }
  body .news { padding: 6mm 0 0; background: #fff !important; }
  body .news__inner { max-width: none; padding: 0; }
  body .news__heading { margin: 0; gap: 4mm; }
  body .news__en { font-size: 16pt !important; }
  body .news__ja { font-size: 12pt !important; }
  body .news__list { margin-top: 3mm; }
  body .news__item { display: block; break-inside: avoid; }
  body .news__item + .news__item { margin-top: 3mm; }
  body .news__date, body .news__cat { display: inline; font-size: 9pt !important; margin-right: 3mm; }
  body .news__text { margin-top: 1mm; }

  /* Company: restore table semantics even when the print viewport matches mobile CSS. */
  body .company-message__lead { margin: 0 0 5mm; }
  body .company-message__label { font-size: 13pt !important; }
  body .company-message__catch { margin: 2mm 0 4mm; font-size: 12pt !important; }
  body .company-message__catch--compact { margin-bottom: 1mm; }
  body .company-message__subcatch { font-size: 10pt !important; margin: 1mm 0 0; }
  body .company-message__content { display: block; position: relative; }
  body .company-message__block { padding-right: 41mm; }
  body .company-message__title { margin: 4mm 0 2mm; font-size: 13pt !important; }
  body .company-message__policy { margin: 0 0 4mm; }
  body .company-message__policy li + li { margin-top: 1mm; }
  body .company-message__text p + p { margin-top: 2mm; }
  body .company-message__profile { position: absolute; top: 0; right: 0; width: 35mm; margin: 0; }
  body .company-message__profile img { width: 100%; margin: 0; }
  body .company-message__profile figcaption { margin-top: 2mm; }
  body .about__inner > section + section { margin-top: 6mm !important; }
  body .table-2__wrapper { margin-top: 2mm !important; overflow: visible; }
  body .table-2 { display: table; width: 100%; border-collapse: collapse; }
  body .table-2 tbody { display: table-row-group; }
  body .table-2__tr { display: table-row; }
  body .table-2__th, body .table-2__td { display: table-cell; width: auto; padding: 1mm 2.5mm; font-size: 9.5pt !important; line-height: 1.5 !important; border: 1px solid #c7d5cc !important; }
  body .table-2__th { width: 30mm; }
  body .table-2 ul { margin: 0; }
  body .table-2 li { margin: 0 !important; font-size: 9.5pt !important; line-height: 1.5 !important; }
  body .access-section__title { margin: 0 0 3mm; font-size: 15pt !important; }
  body .access-section__content { display: grid; grid-template-columns: 1fr 55mm; gap: 5mm; }
  body .access-section__row { grid-template-columns: 6em 1fr; gap: 2mm; padding: .7mm 0; }
  body .access-section__row dt, body .access-section__row dd { font-size: 9.5pt !important; line-height: 1.5 !important; }
  body .access-section__photo { order: 0; }
  body .access-section__photo img { height: auto; aspect-ratio: auto; object-fit: contain; }
  body .access-section__route { margin-top: 3mm; }
  body .access-section__route h3 { margin: 0 0 1mm; }
  /* An interactive iframe cannot be printed reliably; the full address and directions remain. */
  .access-section__map { display: none !important; }

  /* Products: keep each title, description and its photographs together. */
  body .product-section__title { margin: 4mm 0 0; padding-bottom: 2mm; font-size: 16pt !important; }
  body .product-section__title::after { margin-top: 2mm; background: #1c7745; }
  body .product-section + .product-section { margin-top: 0; break-before: page; page-break-before: always; }
  body .product-category { margin-top: 4mm; }
  body .product-category__title { padding: 0 0 0 3mm; font-size: 13pt !important; }
  body .product-item, body .product-item:first-of-type { margin-top: 4mm; break-inside: avoid; page-break-inside: avoid; }
  body .product-item__title { padding-left: 4mm; font-size: 11pt !important; }
  body .product-item__title::before { width: 2mm; height: 2mm; }
  body .product-item__text { margin-top: 1mm; }
  body .product-gallery { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3mm; margin: 3mm 0 0; padding: 0; }
  body .product-gallery__item { min-width: 0; break-inside: avoid; page-break-inside: avoid; }
  body .product-gallery__img { width: 100%; height: 39mm; object-fit: contain; }

  /* Gallery: all twelve original photographs, without screen hover cropping. */
  body .landscape__lead { max-width: none; margin: 0 0 4mm; }
  body .landscape-gallery { max-width: none; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4mm; }
  body .landscape-gallery__item { break-inside: avoid; page-break-inside: avoid; }
  body .landscape-gallery__img { width: 100%; height: 32mm; aspect-ratio: auto; object-fit: contain; transform: none !important; }

  /* Keep contact details and Instagram content, but remove duplicate mobile controls. */
  body .insta-contact { padding: 3mm 0; break-inside: avoid; }
  body .insta-contact__instagram { width: auto; max-width: none; margin: 0 0 4mm; padding: 3mm; display: grid; grid-template-columns: 1fr 85mm; gap: 4mm; }
  body .insta-contact__insta-info { grid-template-columns: 10mm 1fr; gap: 2mm; grid-template-areas: "icon title" "text text" "link link"; }
  body .insta-contact__insta-icon { width: 10mm; }
  body .insta-contact__insta-title { font-size: 13pt !important; }
  body .insta-contact__insta-text { text-align: left; }
  body .insta-contact__insta-link--pc { display: block; font-size: 9pt; }
  .insta-contact__insta-link--sp, .insta-contact__tel-number--sp { display: none !important; }
  body .insta-contact__photos { margin: 0; grid-template-columns: repeat(4, 1fr); gap: 2mm; }
  body .insta-contact__photos img { width: 100%; height: auto; }
  body .insta-contact__contact { display: flex; flex-wrap: nowrap; row-gap: 0; max-width: none; width: auto; margin: 0; padding: 2mm 0; gap: 6mm; text-align: left; }
  body .insta-contact__contact-heading { display: block; flex: 0 0 auto; }
  body .insta-contact__contact-en { font-size: 15pt !important; }
  .insta-contact__contact-line { display: none !important; }
  body .insta-contact__tel { display: flex; flex: 0 1 auto; width: auto; margin: 0; gap: 3mm; }
  body .insta-contact__tel > div { display: grid; grid-template-columns: 46mm auto; column-gap: 4mm; align-items: center; }
  body .insta-contact__tel-label { grid-column: 1; grid-row: 1; font-size: 8.5pt !important; }
  body .insta-contact__tel-icon { width: 8mm; }
  body .insta-contact__tel-number--pc { display: block; grid-column: 1; grid-row: 2; margin: 0; font-size: 15pt !important; }
  body .insta-contact__tel-time { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 8.5pt !important; }
  body .footer { padding: 3mm 0 0; background: #fff; color: #111; border-top: 1px solid #1c7745; break-inside: avoid; }
  body .footer__inner { display: grid; grid-template-columns: 1fr 60mm; gap: 5mm; max-width: none; }
  body .footer__nav-wrap { justify-content: flex-end; }
  body .footer__head { display: block; margin: 0; }
  .footer__home { display: none !important; }
  body .footer__name { margin: 0; font-size: 11pt !important; }
  body .footer__address, body .footer__tel { margin: 1mm 0 0; font-size: 9pt !important; }
  body .footer__tel-break { display: inline; height: auto; overflow: visible; }
  body .footer__copy { margin: 0; font-size: 8pt !important; }
}
