@charset "UTF-8";
/* BMI計算 & 記録保存 */
/* みんなの知識ちょっと便利帳 */
/* 2025/04/08 */
/* https://www.benricho.org/bmi/bmi-universal/ */

    *,
    *::before,
    *::after {
      box-sizing: inherit;
    }

    html {
      overflow-x: hidden;
    }

    .maincontent {
      font-family: Arial, sans-serif;    
      box-sizing: border-box;
      width: 100%;
      max-width: 100%;
      margin: 20px auto;
      padding: 20px 20px 10px;
      overflow-x: auto
      justify-content: center;
      align-items: flex-start;
      text-align: center;
      border: 2px solid #4CAF50;
      border-radius: 8px;
      background-color: #fff;
      box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    }

    .subtitle {
      font-size: 1.25em;
      font-weight: bold;
      margin-bottom: 10px;
      padding: 10px;
      background-color: #e6f7e6;
      border-radius: 8px;
      color: #2e7d32;
    }

    .section-title {
      margin-top: 20px;
      font-weight: bold;
      text-align: left;
    }

    table {
      border-collapse: collapse;
      margin-top: 10px;
      width: 100%;
      word-wrap: break-word;
    }

    th, td {
      border: 1px solid #ccc;
      padding: 5px 10px;
      text-align: center;
    }

    #history-table tbody, td {
      border: 1px solid #ccc;
      padding: 2px 0;
      text-align: center;
    }

    fieldset {
      text-align: left;
      border: 1px solid #ccc;
      border-radius: 5px;
      padding: 10px;
      margin-top: 10px;
    }

    .bmi-category {
      font-weight: bold;
      padding: 3px 6px;
      border-radius: 5px;
    }

    .low { color: #0077cc; }
    .normal { color: #2e7d32; }
    .over1 { color: #ff9800; }
    .over2 { color: #ff5722; }
    .over3 { color: #d32f2f; }
    .over4 { color: #880e4f; }

    #result-area{
    font-size: 17px;
    font-weight:  bold;
    line-height: 170%;
    }

    input{
    font-size: 19px!important;
    font-weight: bold!important;
    width: 100px!important;
    padding: 2px 8px!important ;
    }

    button {
      margin: 5px;
      padding: 5px 12px;
      font-size: 14px;
      background-color: #4CAF50;
      color: white;
      border: 1px solid #fff;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    button:hover {
      background-color: #388E3C;
    }

    .calc-button {
        padding: 5px 16px;
        }

    .reset-button {
        background-color: #DC3545;
    }

    .reset-button:hover {
        background-color: #C82333;
    }    

    .save-button {
        background-color: #007BFF;
        color: white;
        border: none;
        padding: 5px 8px;
        border-radius: 5px;
        cursor: pointer;
    }

    .save-button hover {
        background-color: #0056b3;
    }  
    
   .formula table{
        margin: 25px auto;
        max-width:480px ;
   }
   
   .notice{
       text-align: left;
       font-size: 14px;
   }
   
   .notice02{
       text-align: left;
       font-size: 13px;
       margin-top: 10px;
       line-height: 150%;
   }
   
  .data {
    display: inline-block; /* 横並びにする */
    margin-right: 10px; /* 横の間隔を調整 */
  }

    #save-date{
    font-size: 15px!important ;
    width: 160px!important ;
    
    }

  /* モバイル用の設定 */
  @media (max-width: 768px) {
    .data {
      display: block; /* モバイルでは縦並びにする */
      margin-right: 0; /* 間隔をリセット */
      margin-bottom: 10px; /* 下の間隔を追加 */
    }
  }

    @media screen and (max-width: 600px) {
    .maincontent {
      padding: 10px;
            }
      input {
        width: 100%;
        margin-bottom: 10px;
      }

      table {
        font-size: 14px;
      }

      .section-title {
        font-size: 16px;
      }
    }