body {
  padding-top: 50px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左右に振り分け */
    gap: 1rem; /* 左右の間隔 */
  }


.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: flex-end; 
  }
  
  /* PFASOLロゴ */
  .pfasol-logo img {
    height: 40px;
    width: auto;
    display: block;
    transform: translateY(5px);
}
  
  /* ページタイトル */
  .page-title {
    font-size: 2.6rem;
    font-weight: 500;
    color: #222;
  }
  
  /* 既存の nav は非表示に */
  body.device-page .site-nav {
    display: none;
  }

  /* カードタイトル */
  .device_cardTitle {
      display: block;
      background: #CF0027;
      color: #fff;
      text-decoration: none;
      font-size: 1.5rem;
      font-weight: 600;
      padding: 8px 32px;
      border-radius: 999px;
      text-align: center;
      margin: 12px auto 16px;
      box-shadow: 0 2px 8px rgba(211, 47, 47, 0.08);
      letter-spacing: 0.05em;
  }


  /* カードタイトル */
  .device_cardLabel {
      background: none ;
      font-size: 1.5rem;
      line-height: 1.2;
      min-height: 2.7em;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      text-align: left;
      color: #222;
      margin: 0 0 12px;
      font-weight: 700;
      letter-spacing: 0.02em;
  }

  .device_cardLabel a {
      color: #171717;
      /* 白文字 */
      text-decoration: none;
  }

  .contentLink {
      display: block;
      height: 100%;
      color: inherit;
      /* 文字色を親から継承 */
      text-decoration: none;
      /* 下線を消す */
  }

  .contentLink:hover {
      opacity: 0.8;
      /* ホバー表現は任意 */
  }

  .card_device_img {
      display: block;
      margin: 0 auto;
      height: 150px;
      /* このページだけのサイズ */
      object-fit: contain;
  }



  .deviceDetail {
      margin-bottom: 4rem;
      padding-bottom: 3rem;
      border-bottom: 2px solid rgba(207, 0, 39, 0.30);
  }

  .deviceDetail:last-of-type {
      border-bottom: none;
      padding-bottom: 0;
      margin-bottom: 0;
  }


  .deviceDetail_content {
      display: grid;
      grid-template-columns: 320px 1fr;
      gap: 2rem;
  }



  .deviceDetail_img {
      width: 100%;
      height: auto;
      display: block;
  }

  .deviceDetail_name {
    display: block;
    margin-top: 0;
    background-image: none;
    /* 赤下線を無効化 */
    padding-bottom: 0;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 600;
    padding-left: 0.75rem;
    border-left: 4px solid #CF0027;
    /* ブランドカラー等 */
    /* ヘッダー高さに応じて調整 */
}
  
  .deviceDetail_abbr {
    font-size: 3rem;
    font-weight: 700;
  }
  
  .deviceDetail_jp {
    margin-left: 0.5em;
    font-size: 2rem;
  }

  .deviceDetail_name h2 {
    margin: 0;
    background:none;
    padding-bottom: 0;
  }
  
  .deviceDetail_en {
    display: block;
    margin: 0;
    font-size: 1.8rem;
    color: #666;
  
  }

  .deviceDetail_body h3 {
      margin-top: 1.5rem;
      margin-bottom: 0.5rem;
      font-size: 2.5rem;
      font-weight: 500;
  }

  .contentArea p{
    font-size: 1.6rem;
  }

  #cic,
  #lc-ms-ms,
  #lc-tof-hrms {
    scroll-margin-top: 100px; /* 固定ヘッダー高さに合わせる */
  }


    /* メディアクエリ　ここから */
    /* メディアクエリ　ここから */
    /* メディアクエリ　ここから */
  



@media (max-width:860px){

  body {
    padding-top: 40px;
  }

      /* PFASOLロゴ */
  .pfasol-logo img {
    height: 36px;
    transform: translateY(3px);
}
  
  /* ページタイトル */
  .page-title {
    font-size: 2rem;
    font-weight: 400;
    color: #222;
  }
}
 
  @media (max-width: 768px) {

    h1 {font-size: 2.2rem;}
    h1#devices {
      margin-top: 0.5rem; /* 必要に応じて調整 */
      margin-bottom: 1rem; /* 下の余白も微調整 */
      
  }

  /* deviceDetail_name の下マージンも微調整 */
  .deviceDetail_name {
      margin-bottom: 0.3rem;
  }

    /* カードグリッド：3列ボタン */
    .contentGrid {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.5rem;
      padding: 0;
    }
  
    /* カード外枠：余白除去 */
    .contentPane {
      margin: 0;
      padding: 0;

    }
  
    .contentGrid .contentPane {
    border-radius: 30px;
    }

    /* 中間コンテナ：役割終了 */
    .contentArea {
      margin: 0;
      padding: 0;
      display: contents;
    }
  
    /* カード内の不要要素を非表示 */
    .contentPane .card_device_img,
    .contentPane .device_cardLabel {
      display: none;
    }

    .contentLink {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 64px;
        padding: 0;
        
        background: #CF00271A;
        text-align: center;
        text-decoration: none;
      }

      .contentLink .device_cardTitle {
        background: none;
        background-image: none;
        box-shadow: none;
        text-shadow: none;
      }

      .device_cardTitle {
        margin: 0;
        padding: 0;
        background: none;
        border: none;
        border-radius: 0;
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.3;
        color: #CF0027aa;
        text-decoration: none;
      }

    /* 装置詳細：1カラム化 */
    .deviceDetail_content {
      grid-template-columns: 1fr;
    }

    .deviceDetail_abbr {
      font-size: 2rem;
      font-weight: 500;
    }

    .deviceDetail_jp {
      display: block;
      margin: 0.2rem 0 0;
      font-size: 1.5rem;
    }
    .deviceDetail_en {
      margin: 0.2rem 0 0;
      font-size: 1.3rem;
      color: #666;
        }

    .deviceDetail_img {
      max-width: 320px;
    }
  
    .deviceDetail_name h2 {
      margin:0;
    }

    .deviceDetail_body h3 {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        font-size: 2rem;
        font-weight: 500;
    }
  
  }


/* ヘッダー小画面用 */
@media (max-width: 640px) {

    body {
        padding-top: 70px;
      }


    .header-inner {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
  
    .header-left,
    .header-right {
      width: 100%;
      flex-wrap: wrap; /* nowrapをwrapに変える */
    }
  
    .page-title {
      font-size: 2rem;
      margin-left: 0;
      word-break: break-word;
    }
  }
  
  /* 装置詳細のテキスト折り返し */
  .deviceDetail_content > * {
    min-width: 0; /* 必須 */
  }
  
  .deviceDetail_name {
    word-break: break-word;
    font-size: 2.2rem;
  }


  /* 画面幅 640px 以下でヘッダーを2段に */
@media (max-width: 640px) {
    .header-inner {
      flex-direction: column; /* 左右ブロックを縦に並べる */
      align-items: flex-start; /* 左寄せに揃える */
      gap: 0.5rem; /* 上下の間隔 */
    }
  
    /* 左側はそのまま横並び、改行させない */
    .header-left {
      flex-wrap: nowrap;
      width: 100%;
    }
  
    /* 右側は左側の下に移動して横並び */
    .header-right {
      flex-wrap: nowrap;
      justify-content: flex-start; /* 左寄せ */
      width: 100%;
      margin-top: 0.5rem; /* 左右ブロック間の余白 */
    }
  
    /* PFASOLロゴの位置補正 */
    .pfasol-logo img {
      transform: translateY(0); /* 元の微調整をリセット */
      height: 36px; /* 必要ならサイズ微調整 */
    }
  
    /* ページタイトルは右側にまとめるので幅を確保 */
    .page-title {
      font-size: 2rem; /* 小画面用に縮小 */
      margin-left: 0.5rem; /* ロゴとの間隔 */
    }
  }

  @media (max-width: 480px) {
    .deviceDetail_name {
        font-size: 2.0rem;
      }  
    .device_cardTitle{font-size: 1.2rem;}
}


