/***************************************************
取説ページのみのcss 新旧レイアウト共通パーツ
***************************************************/

/* ページヘッダー */
.l-header-title.--company {
  background-image: url(../../assets/img/product/bg_header.jpg)
}

/** グリッドナビ（メインメニュー内の取説ダウンロードの枠）の指定 **/
.l-grid-nav__inner .l-grid:nth-child(1) .l-grid-nav__list:nth-child(8) a {
  background-image: url(../../assets/img/common/grid-nav/bg_grid_nav_first_1.jpg)
}

/* 最初の文章 弊社製品の取扱説明書を～お選びください */
.p-top-news {
  padding: clamp(4.375rem, -1.916796875rem + 13.125vw, 7rem) 0 clamp(1rem, -15.099609375rem + 40.625vw, 1rem)
}

/* 取説ページの指定ここから */

/* 製品タイトル*/
.s-small  {
    margin-bottom: 20px !important;
}

.l-inner {
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
    width: calc(100% - 96px);
}

/* 製品ごとのスペース */
.space-div {
	width: 100%;
        height: 10px; /* 高さ設定 */
        display: inline-block; /* インラインブロック要素として表示 */
    }

/* テーブル全体にかかる指定 */

table {
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
}

table tr:last-child td {
        border-bottom: none;
    }

.m-table02 {
    width: 100%;
	table-layout: fixed; /* ←入れると列幅が揃いやすくなる */
}
/* テーブル全体にかかる指定ここまで */

/* 各セルのタイトル（商品名、ダウンロード）にかかる指定 */

.m-table02 ._al-c_ {
    text-align: center;
}

.m-table02 th {
	vertical-align: middle;
    font-weight: 400;
}

.m-table02 td, .m-table02 th {
    border-bottom: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    padding: 20px 32px;
    text-align: center;
    vertical-align: middle;
}
/* 各セルのタイトル（商品名、ダウンロード）にかかる指定ここまで */

/***************************************************
製品カテゴリナビ新レイアウト（左サイドメニュー表示に変更）
***************************************************/

/* ▼ サイドメニューレイアウト全体 */
.manual-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 40px; /* 画面端の余白だけ確保 */
  box-sizing: border-box;
  overflow: visible !important;
  position: relative;
}

/* ▼ サイドバー背景レイアウト */
.manual-sidebar {
  width: 280px;
  flex-shrink: 0;
  background-color: #f7f7f7;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 100px;
}

/* ▼ サイドバー中身レイアウト */
.manual-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.manual-sidebar li {
  margin: 10px auto;
}

/* ▼ リンクデザイン */
.manual-sidebar a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  display: block;
  padding: 8px;
  line-height: 1.6;
  border-radius: 4px;
  transition: background-color 0.2s;
}

/* ▼ サイドバー a:hover（マウスカーソルが触った時をhover、ホバーアクションといいます） */
.manual-sidebar a:hover {
  background-color: #F18D00;
  color: #fff;
}
/* PCサイドメニューここまで */

/* ▼ モバイルメニュー （スマホのみのメニュー。PC、タブレット使用時には表示されない）*/
.manual-top-menu-wrapper {
  display: block;
  overflow-x: auto;
  overflow-y: visible;
  white-space: nowrap;
  padding: 10px 20px;
  background-color: #f7f7f7;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 30px;
  z-index: 1;
}

.menu-scroll-inner {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.manual-top-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
  padding: 10px;
  list-style: none;
  min-width: max-content;
}

.manual-top-menu .menu-item {
  flex: 0 0 auto;
}

.manual-top-menu .menu-item a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
  transition: background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.manual-top-menu .menu-item a:hover {
  background-color: #eee;
}

.manual-top-menu .menu-item a:active {
  background-color: #eee;
}

/* 矢印ボタンを下に配置する */
.scroll-arrow {
  background: #fff;
  border: none;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  cursor: pointer;
  visibility: visible;
  transition: visibility 0.2s;
}

/* 左右の矢印の並びを整える */
.scroll-arrow-wrapper {
  display: flex;
  justify-content: space-between; /* ← 左右端に配置 */
  align-items: center;
  width: 100%;
  gap: 10px;
  box-sizing: border-box;
}

.scroll-arrow.left {
  left: 10px;
}

.scroll-arrow.right {
  right: 10px;
}


/* ▼ PCサイズではこのモバイルメニューを非表示にする */
@media screen and (min-width: 769px) {
  .manual-top-menu-wrapper {
    display: none;
  }
}
/* モバイルメニューここまで */

/* ▼ PCサイドメニューからモバイルメニュー表示へのレスポンシブ（ブラウザのウインドウ幅に合わせて表示が変わること）対応 */
@media screen and (max-width: 768px) {
  .manual-layout {
    flex-direction: column;
    padding: 0 12px;
  }

  .manual-sidebar {
    display: none;
  }

  .manual-top-menu {
    display: flex;
    justify-content: center;
  }
}

/* ▼ 各セルのpdfボタン 本番サイトとはクラス名を変えて運用中、5/14現在 */

.button-pdf {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
  font-family: inherit;
  color: var(--c-font);
  border: 1px solid currentColor;
  padding: 6px 24px;
  border-radius: 4px;
  min-height: 36px;
  white-space: nowrap;
  text-align: center;
  transition: background-colord var(--duration-fast, 0.2s) linear;
  background: transparent;
  text-decoration: none;
}

.button-pdf:hover {
  background-color: #f18d00;
  color: #fff;
  border-color: #f18d00;
}

.button-pdf .c-icon-pdf {
  margin-left: 8px;
  vertical-align: middle;
}

/* PDFアイコンの指定 */
.pdf-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('https://triens.jp/wp/wp-content/themes/triens/assets/img/common/icon_pdf.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  margin-left: 6px; /* テキストとの間隔 */
}

/* 非表示セクション */
.hidden-section {
  display: none;
}


/* ▼ モバイル表示の調整 */	
@media screen and (max-width: 480px) {
  /* テーブル */
  .m-table02 td, .m-table02 th {
    font-size: 1rem;          /* テーブル全体の文字をやや大きく */
    padding: 30px 24px;         /* セルの余白も広げると見やすく */
  }

/* pdfボタンにかかる指定ここから */
  .button-pdf {
    display: inline-block;
    font-size: 0.9rem;
    padding: 8px 16px;
    line-height: 1.5;
    white-space: normal; /* ← 折り返しを許可 */
    text-align: center;
    word-break: keep-all; /* 日本語の変な改行を防ぐ */
    max-width: 100%; /* 親要素に合わせる */
    box-sizing: border-box;
  }

  .pdf-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('https://triens.jp/wp/wp-content/themes/triens/assets/img/common/icon_pdf.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    vertical-align: middle;
    margin-left: 6px;
  }
}
/* pdfボタンにかかる指定ここまで */

/* 続きを見るボタン */
.button-show-more {
  background-color: #eee;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.button-show-more:hover {
  background-color: #ddd;
}