@charset "UTF-8";

/* ========================================================================== */
/* SUB_PAGE_HEADER (下層ヘッダー背景) */
/* ========================================================================== */
/*.sub_page_header { background-image: url("../images/products/sub_header_bg_extinguisher.jpg"); }*/


/* ========================================================================== */
/* DETAIL CONTAINER INNER (詳細ページの白背景コンテナ全体) */
/* ========================================================================== */
main .detail_page_container {
   max-width: 1500px;
   width: calc(100% - 60px);
   margin: 43px auto 88px;
   padding: 60px clamp(30px, 4vw, 80px) 100px;
   background-color: #FFF;
   box-sizing: border-box;
}

/*#home main .detail_page_container { margin: 88px auto; }*/


/* ========================================================================== */
/* DETAIL HEADER (商品タイトル・型番エリア) */
/* ========================================================================== */
.detail_header {
   width: 100%;
   margin-bottom: 50px;
}

.detail_header .prod_badge {
   background-color: #232D3B;
   color: #FFF;
   font-size: 20px;
   padding: 3px 12px 4px;
}

.detail_header .title_flex {
   display: flex;
   align-items: center;
   gap: 15px;
   margin-top: 20px;
   padding: 0 12px 20px;
   border-bottom: 1px solid #2B2B2B;
}

.detail_header h2 {
   font-family: 'Roboto', sans-serif;
   font-size: 27px;
   font-weight: 500;
   line-height: 1.2;
}

.detail_header .sub_type {
   display: inline-block;
   background-color: #2B2B2B;
   padding: 4px 8px 6px;
   color: #FFF;
   font-size: 17px;
   line-height: 1;
}

.detail_header .badge_new {
   display: inline-block;
   background-color: #ED1C24;
   padding: 4px 8px 6px;
   color: #FFF;
   font-size: 17px;
   line-height: 1;
}


/* ========================================================================== */
/* IMAGES AREA LAYOUT (上段：画像エリアのレイアウト) */
/* ========================================================================== */
.detail_images_flex {
   display: flex;
   justify-content: space-between;
   gap: clamp(30px, 5vw, 80px);
   width: 100%;
   max-width: 1265px;
   margin: 0 auto 50px;
}

/* メイン画像ボックス（左） */
.main_img_box {
   flex: 1;
   max-width: 840px;
   aspect-ratio: 3 / 2;
   background-color: #FFF;
   display: flex;
   align-items: center;
   justify-content: center;
   overflow: hidden;
}

.main_img_box img {
   max-width: 100%;
   max-height: 100%;
   object-fit: contain;
}

/* サブ画像・寸法図（右） */
.sub_images_flex {
   width: 344px;
   flex-shrink: 0;
   display: flex;
   gap: 20px;
   align-items: flex-start;
}

.sub_img_item {
   flex: 1;
   aspect-ratio: 3 / 2;
   background-color: #FFF;
   border: 1px solid #E5E6E6;
   display: flex;
   align-items: center;
   justify-content: center;
}

.sub_img_item img {
   width: 100%;
   height: 100%;
   max-width: 100%;
   max-height: 100%;
   object-fit: contain;
}


/* ========================================================================== */
/* SPEC & DOWNLOAD AREA LAYOUT (下段：仕様とCADの横並び) */
/* ========================================================================== */
.spec_and_download_flex {
   display: flex;
   justify-content: space-between;
   gap: clamp(30px, 5vw, 80px);
   width: 100%;
   max-width: 1265px;
   margin: 0 auto;
}

/* 左側：仕様ブロック */
.detail_spec_block {
   flex: 1;
   max-width: 890px;
   border-top: 1px solid #E5E6E6;
}

/* 右側：ダウンロードブロック */
.detail_download_block {
   width: 370px;
   flex-shrink: 0;
   display: flex;
   flex-direction: column;
   gap: 40px;
}


/* ========================================================================== */
/* SPEC COMPONENTS (仕様エリア詳細) */
/* ========================================================================== */
.spec_row {
   display: flex;
   align-items: flex-start;
   padding: 45px 0;
   border-bottom: 1px solid #E5E6E6;
   font-size: 16px;
   line-height: 1.7;
}

.spec_label {
   flex-shrink: 0;
   width: 250px;
   padding: 0 20px;
   box-sizing: border-box;
   font-size: 17px;
   font-weight: 500;
}

.spec_value {
   flex: 1;
   padding: 0 20px;
   box-sizing: border-box;
}

.price {
   font-size: 17px;
   font-weight: 600;
}

.price span { margin-left: 0.5em; }

.spec_text + .spec_text { margin-top: 5px; }

.spec_icon_item {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-top: 40px;
}

.spec_icon_item.hookbell .icon_img {
   width: 56px;
   height: 56px;
   aspect-ratio: 1 / 1;
   flex-shrink: 0;
}

.spec_icon_item.sticker .icon_img {
   height: 56px;
   aspect-ratio: 97 / 41;
   flex-shrink: 0;
}

.spec_icon_item.sticker.vertical .icon_img {
   height: 132px;
   aspect-ratio: 214 / 643;
   flex-shrink: 0;
}

.spec_note {
   margin-top: 40px;
}

.spec_note .note {
	padding-left: 1em;
	text-indent: -1em;
}

.spec_note .note + .note { margin-top: 10px; }



ul.spec_comment { margin-top: 40px; }

ul.spec_comment li:not(:first-child) { margin-top: 4px; }

ul.spec_comment li.fonts {
   font-size: 15px;
   line-height: 1.57;
}

/* --------------------------------------------------
   ●（disc）の設定：固定ピクセルをやめて文字に連動させる
-------------------------------------------------- */
ul.spec_comment li.disc {
   padding-left: 19px;
   text-indent: -19px;
}

ul.spec_comment li.disc::before {
   content: "●";
   display: inline-block;
   width:  15px;
   text-indent: 0;
   font-size: 0.6em;
   text-align: center;
   vertical-align: 0.2em;
}

/* --------------------------------------------------
   ※（note）の設定：1文字分ぴったりで美しく揃える
-------------------------------------------------- */
ul.spec_comment li.note {
   padding-left: 1.2em;
   text-indent: -1.2em;
}


/* ========================================================================== */
/* TWO STAGE (CSS Gridによる上下2段組スタイル) */
/* ========================================================================== */
.twoStage {
   display: inline-grid;
   grid-template-columns: 1fr;
   vertical-align: text-bottom;
   font-size: 11px;
   line-height: 1.05;
   margin: 0 3px;
   text-indent: 0;
}

.twoStage span {
   display: block;
   text-align: center;
}


/* ========================================================================== */
/* DOWNLOAD COMPONENTS (ダウンロードエリア詳細) */
/* ========================================================================== */
.dl_group { width: 100%; }

.dl_label {
   font-size: 17px;
   font-weight: 500;
   margin-bottom: 8px;
}

/* CADダウンロードボタンのコンテナ */
.dl_buttons {
   display: flex;
   gap: 20px;
   margin-top: auto;
}

/* ボタン共通設定 */
.dl_buttons a {
   flex: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   height: 48px;
   margin-bottom: 0;
   border: 1px solid #CCC;
   box-sizing: border-box;
   font-size: 17px;
   font-weight: 600;
   transition: all 0.25s ease;
   padding-left: 22px; 
   position: relative;
   text-decoration: none;
}

.dl_buttons a::before {
   content: "";
   position: absolute;
   left: calc(50% - 3.0em); 
   top: 50%;
   transform: translateY(-50%);
   width: 20px;
   height: 24px;
   mask-repeat: no-repeat;
   mask-position: center;
   mask-size: contain;
   transition: background-color 0.25s ease;
}

/* DXFボタン */
.dl_buttons .btn_dxf {
   background-color: #FFF;
   color: #232D3B;
   border-color: #232D3B;
}

.dl_buttons .btn_dxf:hover {
   background-color: #232D3B;
   color: #FFF;
   opacity: 1;
}

.dl_buttons .btn_dxf::before {
   mask-image: url("../images/icon_file.svg");
   background-color: #232D3B;
}

.dl_buttons .btn_dxf:hover::before { background-color: #FFF; }

/* PDFボタン */
.dl_buttons .btn_pdf {
   background-color: #FFF;
   color: #E1212E;
   border-color: #E1212E;
}

.dl_buttons .btn_pdf:hover {
   background-color: #E1212E;
   color: #FFF;
   opacity: 1;
}

.dl_buttons .btn_pdf::before {
   mask-image: url("../images/icon_file.svg");
   background-color: #E1212E;
}

.dl_buttons .btn_pdf:hover::before {
   background-color: #FFF;
}


/* ========================================================================== */
/* THUMBNAIL INTERACTION STYLES (サムネイル選択時のスタイル) */
/* ========================================================================== */
.sub_images_flex .sub_img_item {
   cursor: pointer;
   border: 2px solid #E5E6E6;
   transition: border-color 0.3s ease, opacity 0.3s ease;
}

.sub_images_flex .sub_img_item:hover {
   opacity: 0.85;
   border-color: #FA5B22;
}

.sub_images_flex .sub_img_item.active {
   border-color: #FA5B22;
   cursor: default;
}
.sub_images_flex .sub_img_item.active:hover {
   opacity: 1;
}


/* ========================================================================== */
/* RESPONSIVE DESIGN (各デバイスの表示管理) */
/* ========================================================================== */

/* --------------------------------------------------------------------------
   【修正版】PCサイズでの画面幅縮小への対応（1025px 〜 1200pxの間）
-------------------------------------------------------------------------- */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
   .detail_spec_block {
      flex: 1;
      max-width: none;
   }
   .spec_label {
      width: 200px;
      padding: 0 10px;
   }
   .spec_value {
      padding: 0 10px;
   }
   .detail_download_block {
      width: 220px;
      gap: 30px;
   }
   .dl_label {
      font-size: 15px;
      line-height: 1.55;
      text-align: left;
   }
   .dl_buttons {
      flex-direction: column;
      gap: 8px;
   }
   .dl_buttons a {
      flex: none;
   }
}

/* --------------------------------------------------------------------------
   1. タブレット〜ノートPC（769px〜1024pxの間だけ）
-------------------------------------------------------------------------- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
   main .detail_page_container {
      width: calc(100% - 40px); /* 左右の余白を少し詰める */
      margin: 40px auto;
      padding: 40px 30px 50px;
   }

   .detail_images_flex {
      gap: 40px;
      align-items: flex-start;
   }
   .main_img_box {
      max-width: calc(100% - 202px);
   }
   .sub_images_flex {
      width: 162px;
      flex-shrink: 0;
      flex-direction: column;
      gap: 20px;
   }
   .sub_img_item {
      width: 162px;
      height: 108px;
      aspect-ratio: 3 / 2;
      flex-shrink: 0;
   }

   .spec_and_download_flex {
      flex-direction: column;
      gap: 40px;
   }
   .spec_row {
      padding: 25px 0;
      font-size: 15px;
   }
   .spec_label {
      width: 28%;
      min-width: 120px;
      padding: 0 10px;
   }
   .spec_value {
      padding: 0 10px;
   }

   ul.spec_comment li.fonts {
      font-size: 14px !important;
      line-height: 1.57 !important; /* 行間比率はPC版をキープ */
   }

   .detail_download_block {
      width: 100%;
      gap: 25px;
   }
   .dl_label {
      font-size: 15px;
   }

   .dl_buttons {
      flex-direction: row;
      gap: 12px;
   }
   .dl_buttons a {
      flex: 1;
   }
}

/* --------------------------------------------------------------------------
   2. スマートフォン・縦持ちタブレット（768px以下）
-------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   main .detail_page_container {
      width: calc(100% - 30px); /* 左右の余白をさらに詰める */
      margin: 30px auto;
      padding: 30px 15px;
   }

   .detail_header {
      margin-bottom: 30px;
   }
   .detail_header .prod_badge {
      font-size: 16px;
   }
   .detail_header .title_flex {
      flex-wrap: wrap;
      gap: 10px;
      padding: 0 0 15px;
   }
   .detail_header h2 {
      font-size: 24px;
      width: 100%;
   }
   .detail_header .sub_type,
   .detail_header .badge_new {
      font-size: 14px;
      padding: 3px 6px;
   }

   .detail_images_flex {
      flex-direction: column !important;
      gap: 20px !important;
      margin-bottom: 40px !important;
   }
   
   .main_img_box {
      width: 100% !important;
      max-width: 100% !important;
      aspect-ratio: 5 / 4 !important;
      height: auto !important;
      background-color: #FFF !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
   }
   .main_img_box img {
      width: 100% !important;
      height: 100% !important;
      max-width: 100% !important;
      max-height: 100% !important;
      object-fit: contain !important;
   }

   .sub_images_flex {
      width: 100% !important;
      max-width: 100% !important;
      display: flex !important;
      flex-direction: row !important;
      gap: 15px !important; 
   }
   
   .sub_img_item {
      flex: 1 !important; 
      width: 100% !important;
      aspect-ratio: 3 / 2 !important;
      height: auto !important; 
      background-color: #FFF !important;
      display: flex !important; 
      align-items: center !important;
      justify-content: center !important;
   }
   .sub_img_item img {
      width: 100% !important;
      height: 100% !important;
      max-width: 100% !important;
      max-height: 100% !important;
      object-fit: contain !important;
   }

   .spec_and_download_flex {
      flex-direction: column !important;
      gap: 40px !important;
   }
   .detail_spec_block,
   .detail_download_block {
      width: 100% !important;
      max-width: 100% !important;
   }

   .spec_row {
      flex-direction: column !important;
      gap: 12px !important;
      padding: 20px 0 !important;
   }
   .spec_label {
      width: 100% !important;
      padding: 0 !important;
      font-size: 16px !important;
   }
   .spec_value {
      width: 100% !important;
      padding: 0 !important;
      font-size: 14px !important;
   }

   /* ★【新規追加】768px以下全体のアイコン流動的レスポンシブ調整 */
   .spec_icon_item {
      gap: 12px !important;
      margin-top: 25px !important;
   }
   /* フックベルアイコン：最大56px 〜 最小32px へ流動的変化 */
   .spec_icon_item.hookbell .icon_img {
      width: clamp(32px, 5.5vw + 10px, 56px) !important;
      height: clamp(32px, 5.5vw + 10px, 56px) !important;
   }
   /* シールアイコン：最大56px 〜 最小32px へ流動的変化（アスペクト比連動） */
   .spec_icon_item.sticker .icon_img {
      height: clamp(32px, 5.5vw + 10px, 56px) !important;
   }

   /* 縦長ステッカーを読みやすい大きさに調整 */
   .spec_icon_item.sticker.vertical .icon_img {
      height: clamp(70px, 9.5vw + 10px, 100px) !important;
      aspect-ratio: 214 / 643 !important;
      flex-shrink: 0 !important;
   }

   /* 【768px以下】文字サイズを13pxに最適化し、行間を少し広げて読みやすく */
   ul.spec_comment {
      margin-top: 25px !important; /* 上の要素との隙間を少し詰める */
   }
   ul.spec_comment li:not(:first-child) {
      margin-top: 6px !important;  /* スマホの小さな画面で文章の間隔を程よくあける */
   }
   ul.spec_comment li.fonts {
      font-size: 13px !important;
      line-height: 1.6 !important;  /* 13pxと小さくなる分、行間を広げて視認性をアップ */
   }

   ul.spec_comment li.disc {
      padding-left: 15px;
      text-indent: -18px;
   }

   .detail_download_block {
      gap: 30px !important;
   }
   .dl_label {
      font-size: 14px !important;
   }
   .dl_buttons {
      flex-direction: row !important;
      gap: 12px !important;
   }
   .dl_buttons a {
      height: 52px !important;
   }
}

/* --------------------------------------------------------------------------
   3. 小画面スマートフォン（576px以下）
-------------------------------------------------------------------------- */
@media screen and (max-width: 576px) {
   .dl_buttons a {
      height: 52px !important;
      font-size: 15px !important;
      padding-left: 20px !important;
   }
   .dl_buttons a::before {
      width: 16px !important;
      height: 20px !important;
      left: calc(50% - 3.2em) !important;
   }
   
   /* ★【新規追加】576px以下でさらに文字に馴染むよう余白を調整 */
   .spec_icon_item {
      gap: 10px !important;
      margin-top: 20px !important;
   }
}
