@charset "UTF-8";
/* =========================================================
   旧テンプレート(format.css)ページ用 最小スキン
   ・format.css のテーブルレイアウトは壊さない
   ・フォント / リンク色 / 固定ヘッダー・フッターだけを上書き
   ・グローバルリセット(* box-sizing 等)は使わない
   読み込み順： format.css → legacy-skin.css
   ========================================================= */

:root {
  --wine: #8B2040;
  --wine-dark: #6E182F;
  --gold: #C9952A;
  --gold-light: #E0B856;
  --ink: #2B2B2B;
  --line: #E6E1DD;
  --header-h: 64px;
}

/* ---- フォントだけ差し替え（サイズ・配置は format.css のまま） ---- */
body,
td, th, p, div, span, a, li, h1, h2, h3, h4,
input, select, textarea, button {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "ＭＳ Ｐゴシック", sans-serif;
}

/* ---- リンク色：青下線 → ワイン／ゴールド ---- */
a:link, a:visited, a:active { color: var(--wine); }
a:hover { color: var(--gold); }

/* ---- 固定ヘッダーぶんだけ本文を下げる（旧センタリングは維持） ---- */
.legacy-wrap { padding-top: calc(var(--header-h) + 24px); padding-bottom: 48px; }
.legacy-inner { text-align: center; }              /* 800px ブロックを中央寄せ */
#mainContents, #pageContents { margin-left: auto; margin-right: auto; }

/* 旧 float(#leftContents/#rightContents) をフッター前で確実に解除 */
#pageContents::after,
.legacy-inner::after { content: ""; display: table; clear: both; }

/* ---- ④ サイドバー等の紙テクスチャ背景を削除 → 白に統一 ---- */
.bgPaper, .bgPaperL, .bgnews, .bgchara, .bgConstruction,
.frame_flap_wheel, .frame_bright_type, .frame_disc_type,
.frame_sander, .frame_profile {
  background-image: none !important;
  background-color: #ffffff !important;
}
/* HTML の background 属性で指定された紙テクスチャ（例：products/index.html）も白に */
#pageContents td[background] {
  background-image: none !important;
  background-color: #ffffff !important;
}

/* ③ 右サイドバーが見切れないように */
#rightContents { box-sizing: border-box; }
#rightContents table { width: 100%; }
#rightContents .menuProduct { white-space: normal; word-break: break-all; }


/* ---- ② サイドバー見出し：ワインレッド背景バー（文字・リンク白／hover薄い白） ---- */
.side-menu-head {
  display: block;
  background-color: var(--wine) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 9px 12px;
  text-align: left;
  line-height: 1.4;
}
.side-menu-head, .side-menu-head a,
.side-menu-head a:link, .side-menu-head a:visited, .side-menu-head a:active {
  color: #ffffff !important;
  text-decoration: none;
}
.side-menu-head a:hover { color: rgba(255,255,255,.7) !important; }

/* ---- 用途・取付工具タグ（旧アイコン画像 icon_useful_* / icon_tools_* の置換） ---- */
.use-tag, .tool-tag {
  display: inline-flex !important;
  line-height: 1.5;
  margin: 0 !important;
}
/* 用途タグ：黄色背景・黒文字・黒枠・小さめ */
.use-tag {
  background: #FFD700 !important;
  color: #1e1e1e !important;
  border: 1px solid #1e1e1e !important;
  padding: 2px 7px !important;
  font-size: 0.75rem !important;
  border-radius: 3px !important;
}
/* 取付工具タグ：水色背景・黒文字・黒枠・小さめ */
.tool-tag {
  background: #87CEEB !important;
  color: #1e1e1e !important;
  border: 1px solid #1e1e1e !important;
  padding: 2px 7px !important;
  font-size: 0.75rem !important;
  border-radius: 3px !important;
}
/* タグが並ぶ段落を横並び＋折り返しに */
#leftContents p,
p:has(> .use-tag),
p:has(> .tool-tag) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center;
}
/* 用途タグのp・取付工具タグのp の下にも統一の余白 */
#leftContents p:has(.use-tag),
#leftContents p:has(.tool-tag) {
  margin-bottom: 8px !important;
}

/* 仕様表の文字を見やすく（format.css の 9px → 13px） */
.specTxt {
  font-size: 13px !important;
}

/* =========================================================
   スマホ横はみ出し対策（全レガシーページ共通・1箇所で一括適用）
   format.css の固定px幅(800/630/150)・固定font-size・固定width画像/表/iframeを
   ビューポート内に収める
   ========================================================= */
@media (max-width: 768px) {
  #pageContents,
  #leftContents,
  #rightContents {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }
  /* タイトル画像(h1, #pageContents直下)・本文画像・iframe・表を画面内に収める */
  #pageContents img,
  #leftContents img,
  #rightContents img {
    max-width: 100% !important;
    height: auto !important;
  }
  #pageContents iframe,
  #pageContents table {
    max-width: 100% !important;
  }
  /* アクセスページ等、#leftContents内のiframe（Googleマップ）が
     幅630px固定で横にはみ出すのを防ぐ。
     height:autoだけだと約150pxと低くなるため、4:3で高さを確保 */
  #leftContents iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
  }
  .commentTxt,
  .specTxt,
  .annotationTxt {
    font-size: 100% !important;
  }
  table {
    max-width: 100% !important;
  }
  /* 列数の多い仕様表（border="1"のデータ表）は横スクロール可能にして
     画面外へのはみ出しを防ぐ。レイアウト用テーブルには適用しない */
  #leftContents table.scroll-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* 特徴ボックス（chara_title画像＋説明文の3列table）を1列縦積みに。
     対象を該当行だけに限定し、仕様表・ラインナップ表には影響させない */
  #leftContents tr:has(> td.characteristicTxt_cap),
  #leftContents tr:has(> td img[src*="chara_title"]) {
    display: block !important;
  }
  #leftContents tr:has(> td.characteristicTxt_cap) > td,
  #leftContents tr:has(> td img[src*="chara_title"]) > td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    height: auto !important;
  }
  #leftContents td.characteristicTxt_cap img,
  #leftContents td img[src*="chara_title"] {
    max-width: 100% !important;
    height: auto !important;
  }
  /* 中間のスペーサー列（20px画像）は隠して余白を詰める */
  #leftContents tr:has(> td img[src*="chara_title"]) > td img[src*="spacer"] {
    display: none !important;
  }

  /* 研磨材について（about_abrasive）の特徴ボックス2列レイアウトを1列縦積みに。
     左右カラムのtd(width="390px")をblock化し、間のスペーサー列(20px)は隠す。
     chara_titleとは構造が違う（abs_title画像＋abrasiveTxt_cap）ため別途対応 */
  #pageContents tr:has(> td[width="390px"]) {
    display: block !important;
  }
  #pageContents tr:has(> td[width="390px"]) > td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  #pageContents tr:has(> td[width="390px"]) > td[width="20px"] {
    display: none !important;
  }
  #pageContents td.abrasiveTxt_cap {
    white-space: normal !important;
  }

  /* 事例紹介（case_study）：動画＋説明文の2列テーブル(width="800")を縦積みに。
     iframe(YouTube)は幅100%＋16:9で高さ自動調整（該当は case_study の動画のみ） */
  #pageContents table[width="800"] td {
    display: block !important;
    width: 100% !important;
  }
  #pageContents iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
  }
}

/* =========================================================
   固定ヘッダー（新規要素のみ・旧コンテンツには影響しない）
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--line);
  z-index: 1000; box-shadow: 0 1px 8px rgba(80,20,40,.06);
}
/* スクロール時にコンテンツが透けないよう、ヘッダーを完全不透明にする */
.site-header {
  background: #fff !important;
  opacity: 1 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.site-header, .site-header *,
.mobile-nav, .mobile-nav *,
.nav-backdrop,
.site-footer, .site-footer *,
.to-top { box-sizing: border-box; }

.site-header .header-inner {
  max-width: none; height: var(--header-h); margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; text-align: left;
}
.site-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.site-logo img { height: 48px; width: auto; display: block; }
.site-logo .logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.site-logo .logo-en { font-size: 10px; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
.site-logo .logo-ja { font-size: 15px; font-weight: 700; color: var(--wine); letter-spacing: .03em; }

.global-nav { display: flex; align-items: center; gap: 2px; }
.global-nav a.nav-link {
  position: relative; padding: 9px 14px; font-size: clamp(0.75rem, 1.1vw, 0.92rem); font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.global-nav a.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.global-nav a.nav-link:hover { color: var(--wine); }
.global-nav a.nav-link:hover::after { transform: scaleX(1); }
.global-nav a.nav-contact {
  margin-left: 6px; padding: 10px 22px; border-radius: 999px; background: var(--wine);
  color: #fff; font-weight: 700; font-size: clamp(0.75rem, 1.1vw, 0.92rem); text-decoration: none;
}
.global-nav a.nav-contact:hover { background: var(--wine-dark); }
.global-nav a.nav-contact::after { display: none; }

/* ハンバーガー */
.hamburger {
  display: none; width: 42px; height: 42px; border: none; background: transparent;
  cursor: pointer; position: relative;
}
.hamburger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--wine);
  transition: transform .3s, opacity .3s;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* モバイルドロワー */
.mobile-nav {
  position: fixed; top: 0; right: 0; width: 300px; max-width: 82vw; height: 100vh;
  background: #fff; box-shadow: -8px 0 32px rgba(0,0,0,.15); z-index: 1050;
  transform: translateX(100%); transition: transform .3s ease;
  padding: calc(var(--header-h) + 14px) 24px 32px; overflow-y: auto; text-align: left;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block; padding: 14px 4px; font-size: 15px; font-weight: 500;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--wine); }
.mobile-nav a.mobile-contact {
  margin-top: 20px; text-align: center; background: var(--wine); color: #fff;
  border-radius: 999px; border-bottom: none; font-weight: 700;
}
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1040;
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* =========================================================
   フッター（新規要素のみ）
   ========================================================= */
.site-footer { background: #2A1118; color: #ffffff; padding: 48px 0 0; text-align: left; clear: both; }
.site-footer .container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.footer-logo { flex: 1 1 300px; min-width: 240px; }
.footer-col { flex: 1 1 160px; min-width: 150px; }
.footer-logo .logo-ja { font-size: 18px; font-weight: 700; color: #ffffff; }
.footer-logo .logo-en { font-size: 11px; letter-spacing: .12em; color: #ffffff; margin-bottom: 12px; }
.footer-info { font-size: 13px; line-height: 1.9; color: #ffffff; }
.footer-col h4 { font-size: 14px; color: #ffffff; margin: 0 0 14px; }
.footer-col h4::before { content: ""; display: inline-block; width: 14px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 7px; }
.footer-nav a { display: block; padding: 5px 0; font-size: 13px; color: #ffffff; text-decoration: none; }
.footer-nav a:hover { color: rgba(255,255,255,.65); }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid rgba(255,255,255,.2); padding: 20px 0;
  text-align: center; font-size: 12px; color: #ffffff;
}
.footer-bottom a { color: #ffffff; text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.65); }

/* ページトップへ */
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--wine); color: #fff; display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 4px 16px rgba(80,20,40,.25);
  opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 900;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--wine-dark); }

/* =========================================================
   スマホ：ヘッダーのみレスポンシブ（本文の旧レイアウトは触らない）
   ========================================================= */
@media (max-width: 1024px) {
  .global-nav { display: none; }
  .hamburger { display: block; }
}

/* ===== 言語切替ボタン ===== */
.lang-btn {
  background: transparent;
  border: 2px solid #C9952A;
  color: #C9952A;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.lang-btn:hover,
.lang-btn.lang-active {
  background: #C9952A;
  color: #fff;
}
/* Google翻訳バーの上部バナーを非表示 */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }

/* ===== スマホ用ロゴ縮小（下層ページ） ===== */
@media (max-width: 768px) {
  .site-header {
    overflow: hidden;
  }
  .header-inner {
    padding: 0 12px;
  }
  .site-logo img {
    height: 32px !important;
    width: auto !important;
  }
  .site-logo .logo-ja {
    font-size: 12px !important;
  }
  .site-logo .logo-en {
    font-size: 8px !important;
  }
  .site-logo .logo-text {
    display: none;
  }
  .global-nav a.nav-link {
    font-size: 12px;
    padding: 8px 10px;
  }
  .global-nav a.nav-contact {
    font-size: 12px;
    padding: 8px 12px;
  }
}

@media (max-width: 560px) {
  .site-logo img {
    height: 28px !important;
  }
}
/* ===== ナビ：幅広（1200px超）ではアイコンを隠して従来どおり1段表示（下層ページ） ===== */
.nav-icon {
  display: none;
  flex-shrink: 0;
}

/* 1200px以下でアイコン＋小テキスト2段に切替 */
@media (max-width: 1200px) {
  .global-nav a.nav-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    font-size: clamp(0.65rem, 0.9vw, 0.72rem);
    letter-spacing: 0.03em;
    line-height: 1.35;
  }
  .global-nav a.nav-contact {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 10px;
    font-size: clamp(0.65rem, 0.9vw, 0.72rem);
    line-height: 1.35;
  }
  /* 2段化で padding が変わるため、hover 下線の左右位置を合わせる */
  .global-nav a.nav-link::after { left: 8px; right: 8px; bottom: 0; }
  .nav-icon { display: block; width: 18px; height: 18px; }
}
/* ===== 本文文字サイズ改善（format.cssの12pxを上書き） ===== */
body {
  font-size: 14px;
}
td {
  font-size: 14px;
}
p {
  font-size: 14px;
  line-height: 1.8;
}
.commentTxt,
.specTxt {
  font-size: 13px;
}
/* ===== 本文系クラスも14pxに統一 ===== */
.leadTxt,
.usageTxt {
  font-size: 14px !important;
}
.crumsTxt {
  font-size: 12px !important;
}
/* ===== サイドメニュー改善 ===== */
.menuProduct {
  font-size: 12px !important;
  line-height: 2.0;
}
.menuProduct td {
  font-size: 13px !important;
  padding: 2px 4px;
}
/* =========================================================
   サイドバー幅の拡張（#rightContents 150px → 210px）
   本文(#leftContents 630px)は変更せず、増える60pxは
   ページ全体を 800px → 860px に広げて吸収する。
   （本文内の630px幅の画像・表・iframeを崩さないため）
     内訳: 630(本文) + 20(margin-right) + 210(サイドバー) = 860
   ※ !important は付けないこと。付けると @media(max-width:768px) の
     「width: 100% !important」より後勝ちし、スマホ表示が壊れる。
     legacy-skin.css は format.css の後に読むため、これで上書きされる。
   ========================================================= */
#mainContents,
#pageContents,
#goPageTop {
  width: 860px;
}

#rightContents {
  width: 210px;
}