@page {
        size: A4;
      }
      * {
        padding: 0;
        margin: 0;
      }
      body {
        background: #f1f5f9;
        font-family: 'Noto Sans JP', sans-serif;
      }
      .container {
        width: 210mm;
      }
      .template-block {
        width: 210mm;
        page-break-inside: avoid;
      }
      p {
        font-size: 13pt;
      }
      hr {
        border: none;
        height: 1px;
        background-color: #bae6fd;
        margin: 4mm 15mm
      }
      .problem-no {
        box-sizing: border-box;
        margin: 4mm 4mm 4mm 4mm;
        padding: 0 2mm;
        background: linear-gradient(90deg, #e0f2fe 0%, #f0f9ff 100%);
        border-radius: 2mm;
        color: #0f172a;
        min-height: 8mm;
        font-weight: 700;
        line-height: 7.65mm;
      }
      .sub-problem-no {
        width: 12mm;
      }
      .align-center {
        text-align: center;
      }
      .align-center img {
        display: block;
        margin: 0 auto;
      }
      .flex {
        display: flex;
      }
      .flex-start {
        display: flex;
        align-items: flex-start;
      }
      .flex-center {
        display: flex;
        justify-content: center;
      }
      .frac {
        display:inline-flex;
        flex-direction:column;
        justify-content:center;
        vertical-align:middle;
        text-align: center;
        height: 8mm;
        margin-left:1mm;
        margin-right:1mm;
      }

      .frac .top {
        display: block;
        border-bottom: 1px solid #000;
        line-height:5mm;
      }
      .frac .bottom {
        display: block;
        line-height:5mm;
      }

      /* 本番環境では削除する */
      @font-face {
          font-family: 'Noto Sans JP';
          src: url('fonts/Noto_Sans_JP/NotoSansJP-Medium.otf') format('opentype');
      }
      .container {
        background: #ffffff;
        height: 297mm;
        margin: 0 auto;
        position: relative;
      }
      @media print {
        body {
          background: #ffffff;
        }
      }
      .header {
        width: 210mm;
        height: 18mm;
        position: absolute;
        top: 0;
        padding: 0;
        margin: 0;        
        background: #ddd;
      }
      .footer {
        width: 210mm;
        height: 15mm;
        position: absolute;
        bottom: 0;
        padding: 0;
        margin: 0;
        background: #ddd;
      }
      .body {
        position: absolute;
        top: 18mm;
      }
