/* 全ページ共通スタイル(基本・ヘッダー・ナビ・フッター・製品表・共通部品) */


:root {
    --primary-color: #800000; 
    --text-color: #343a40;
    --text-secondary: #495057;
    --bg-color: #ffffff; 
    --bg-light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --header-border-color: #495057;
    --container-width: 1100px;
    --font-family-base: 'Noto Sans JP', sans-serif;

    
    --header-height-pc: 80px;
    --header-height-tablet: 70px;
    --nav-height-explicit: 50px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    
    
}
img { max-width: 100%; height: auto; display: block; border: none; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; color: #660000; }
a:visited { color: var(--primary-color); }
a:active { color: #CCCCCC; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ""; display: table; clear: both; }
.section-padding { padding: 40px 0; } 

.site-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height-pc);
    display: flex;
    align-items: center;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}
.logo img {
    max-height: 45px;
    height: auto;
    display: block;
}
.header-info { text-align: right; }
.header-info .catchphrase {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 700;
    font-family: serif;
    margin-bottom: 3px;
}
.header-info .contact-info {
    font-size: 0.9rem;
    font-weight: 700;
    font-family: serif;
    color: var(--text-color);
    margin-bottom: 2px;
}
.header-info .email-info {
    font-size: 0.9rem;
    font-weight: 700;
    font-family: serif;
    color: var(--text-color);
    margin-bottom: 0;
}
.header-info .contact-info a,
.header-info .email-info a {
    color: var(--text-color);
}
.header-search {
    margin-top: 0;
    width: auto;
    max-width: 400px;
    margin-left: 20px;
}

.gcse .gsc-control-cse, .gsc-control-cse { padding: 0 !important; border: none !important; background-color: transparent !important; margin-bottom: 0 !important; width: auto !important; }
.cse .gsc-search-button input.gsc-search-button-v2, input.gsc-search-button-v2 { padding: 8px 15px !important; background-color: var(--primary-color) !important; border-color: var(--primary-color) !important; border-radius: 0 4px 4px 0 !important; cursor: pointer; height: 36px !important; box-sizing: border-box !important; margin: 0 !important; }
.cse .gsc-input-box, .gsc-input-box { border-color: var(--border-color) !important; border-radius: 4px 0 0 4px !important; height: 36px !important; box-sizing: border-box !important; margin-bottom: 0 !important;}
.cse .gsc-input-box input.gsc-input { padding: 8px 10px !important; background: none !important; height: 100% !important; box-sizing: border-box !important; line-height: normal !important; font-size: 0.9rem !important; }

.mobile-menu-button {
    display: none; 
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    z-index: 1001;
    order: 2;
}

.global-nav {
    background-color: var(--text-color);
    position: sticky;
    top: var(--header-height-pc);
    z-index: 999;
    width: 100%;
    margin-bottom: 0;
    height: var(--nav-height-explicit);
    display: flex;
    align-items: center;
}
.global-nav .container { width: 100%; padding: 0 20px; }
.global-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin: 0;
}
.global-nav li {
    margin: 0 18px;
}
.global-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0;
    line-height: var(--nav-height-explicit);
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}
.global-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}
.global-nav a:hover::after,
.global-nav .current a::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}
.global-nav a:hover,
.global-nav .current a {
    color: var(--primary-color);
    text-decoration: none;
}

.site-main {
    padding: 20px 0;
    flex: 1;
    position: relative;
    z-index: 1;
}
.cBox { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

.cBox h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background-color: #efefef;
    color: var(--text-color);
    padding: 10px 15px 10px 35px;
    margin: 40px 0 20px 0;
    border-radius: 4px;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}
.cBox h3::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 8px;
    background-color: var(--primary-color);
    border-radius: 3px;
}
.cBox h3:first-of-type { margin-top: 0; }

.pBoxSub {
    
    background: var(--bg-color); 
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    padding: 20px; 
    margin-bottom: 30px;
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.pName {
    border-left: 5px solid #900; 
    
    padding: 8px 0 8px 10px; 
    margin-bottom: 0; 
    width: 100%; 
}

h4 {
    font-size: 1.3em; 
    font-weight: 700; 
    margin-bottom: 5px; 
    line-height: 1.4;
}

.pName span {
    color: var(--text-secondary); 
    font-weight: 700; 
}

.product-media {
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    
    width: 100%; 
    margin: 0; 
}

.product-media p {
     
     
    margin: 0; 
    
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
}

.product-media img {
    border: 1px solid var(--border-color);
    margin: 0; 
    display: block; 
    width: 150px; 
    height: 150px; 
    object-fit: contain; 
}

.product-media .hanrei-link {
     
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     margin: 0; 
}

.product-media .hanrei-link img {
     width: 160px; 
     height: 64px; 
     object-fit: contain;
}

.pBoxSub .rBox {
    float: none; 
    width: 100%; 
}

.table-responsive-container {
    width: 100%; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    margin-top: 0; 
}

.pBoxSub table {
    background: var(--bg-color); 
    width: auto; 
    min-width: 800px; 
    border-collapse: collapse; 
}

.pBoxSub table,
.pBoxSub table th,
.pBoxSub table td {
    border: 1px solid var(--border-color);
}

.pBoxSub table th,
.pBoxSub table td {
    padding: 10px 8px;
    text-align: center; 
    white-space: nowrap; 
    
}

.pBoxSub table th {
    background-color: #f2f2f2; 
    font-weight: 700;
    text-align: center; 
}

.pBoxSub table .sticky-col {
    position: sticky;
    left: 0;
    background-color: var(--bg-color); 
    z-index: 10; 
    text-align: left; 
    font-weight: 700; 
    
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.pBoxSub table thead th.sticky-col {
    z-index: 11; 
}

.pNo {
     min-width: 100px; 
     width: 120px; 
     max-width: 150px;
}

.pBoxSub table th:nth-child(2),
.pBoxSub table td:nth-child(2) {
    text-align: left; 
}

.green {
    color: #060;
    font-weight: 700;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9; 
}

td[colspan] {
    text-align: left; 
    font-weight: 700;
    background-color: var(--bg-color); 
}

.pBoxSub table tbody tr:hover {
    background-color: #e9e9e9; 
    cursor: pointer; 
    transition: background-color 0.2s ease; 
}

.pBoxSub table tbody tr:hover .sticky-col {
     background-color: #e9e9e9; 
     transition: background-color 0.2s ease; 
}

.pBoxSub table tbody tr:hover td[colspan] {
     background-color: #e9e9e9; 
     transition: background-color 0.2s ease;
}

img.new { 
    margin: 0;
}

.bold {
    font-weight: 700;
}

p.txt {
    margin-top: 20px; 
    margin-bottom: 0; 
    width: 100%; 
    line-height: 1.6;
}

p.txt span {
    color: #060;
    margin-right: 10px;
    font-weight: 700; 
}

.site-footer {
    background-color: var(--text-color);
    color: #ccc;
    padding: 40px 0 20px 0;
    text-align: center;
    font-size: 0.85rem;
    margin-top: auto;
    width: 100%;
}
.footer-logo img { max-height: 35px; margin: 0 auto 25px auto; }
.footer-nav { margin-bottom: 25px; }
.footer-nav a { color: #ccc; margin: 0 10px; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-nav span { display: inline; }
.copyright { margin-top: 20px; font-size: 0.8rem; color: #aaa; }
.to-top { margin-top: 20px; }
.to-top a { color: #aaa; font-size: 0.85rem; text-decoration: none; transition: color 0.3s ease; border: none; padding: 0; }
.to-top a:hover { color: #fff; background: none; }

@media (min-width: 1024px) {
    .site-header { height: var(--header-height-pc); }
    .header-container { flex-wrap: nowrap; }
    .header-search { width: auto; margin-left: auto; }
    .header-info { order: 1; margin-left: auto; margin-right: 20px; }
    .logo { order: 0; }
    .global-nav { top: var(--header-height-pc); }
    .global-nav ul { justify-content: center; }

    
    .pBoxSub {
        display: flex; 
        flex-direction: column; 
        flex-wrap: nowrap; 
        gap: 20px; 
        padding: 20px; 
    }

    
    .pBoxSub > .pName {
        width: 100%; 
        margin-bottom: 0; 
        
        
    }

    
    .pBoxSub > .product-media {
         display: flex; 
         flex-direction: row; 
         flex-wrap: wrap; 
         gap: 15px; 
         align-items: flex-start; 
         justify-content: flex-start; 
         width: 100%; 
         
         margin: 0;
    }

    
    .table-responsive-container {
        width: 100%; 
        
        margin: 0;
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
    }

    
    
    .pBoxSub > p.txt {
        width: 100%; 
        margin-top: 20px; 
        margin-bottom: 0; 
    }

    
    .pBoxSub table {
        width: 100%; 
        min-width: 800px; 
        
    }

    
    .pBoxSub table .sticky-col {
        min-width: 120px; 
        width: 150px; 
    }
}

@media (max-width: 1023px) {
    .site-header { height: var(--header-height-tablet); }
    .logo img { max-height: 40px; }
    .header-info .catchphrase { font-size: 1rem; }
    .header-info .contact-info, .header-info .email-info { font-size: 0.9rem; }
    .header-search {
        max-width: 300px;
        margin-left: 15px;
        order: 3;
        flex-basis: 100%;
        margin-top: 10px;
        text-align: center;
    }
    .cse .gsc-input-box, .gsc-input-box { width: calc(100% - 50px) !important; display: inline-block; vertical-align: top; }
    .cse .gsc-search-button input.gsc-search-button-v2, input.gsc-search-button-v2 { width: 50px !important; display: inline-block; vertical-align: top; }
    .header-info { order: 1; margin-left: auto; }
    .logo { order: 0; }

    .global-nav { top: var(--header-height-tablet); height: var(--nav-height-explicit); }
    .global-nav a { font-size: 0.9rem; line-height: var(--nav-height-explicit); }
    .global-nav li { margin: 0 12px; }

    
    .pBoxSub {
        flex-direction: column; 
        gap: 20px; 
        padding: 20px; 
    }
     .pBoxSub > .pName { margin-bottom: 0; width: 100%; } 

    
    .pBoxSub > .product-media {
         flex-direction: column; 
         gap: 10px;
         align-items: center; 
         width: 100%;
         margin: 0; 
    }

    .product-media p,
     .product-media .hanrei-link {
         width: auto; 
         text-align: center;
         margin: 0; 
      }

    .product-media img { margin: 0 auto; } 

    .table-responsive-container {
         width: 100%; 
         margin-top: 0; 
    }

    
    
    .pBoxSub > p.txt {
        width: 100%; 
        margin-top: 20px; 
        margin-bottom: 0; 
    }

    .pBoxSub table {
         width: auto; 
         min-width: 700px; 
    }

    
    .pBoxSub table .sticky-col {
        min-width: 90px; 
        width: 110px; 
    }

    
    .site-footer { padding: 30px 0 15px 0; }
    .footer-logo img { max-height: 30px; margin: 0 auto 20px auto; }
    .footer-nav { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-bottom: 15px; }
    .footer-nav a { margin: 0; font-size: 0.85rem; }
    .footer-nav span { display: none; }
    .copyright { margin-top: 15px; padding-top: 15px; border-top: 1px solid #444; font-size: 0.75rem; }
    .site-footer .to-top { margin-top: 15px;}
}

@media (max-width: 767px) {
    body { font-size: 13px; line-height: 1.6; }
    .container, .header-container, .cBox, .footer-container { padding: 0 10px; }

    
    .site-header {
        height: auto;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 10px 0;
    }
    .header-container {
        position: relative;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    .logo { order: 1; flex-basis: auto; margin-right: auto; }
    .logo img { max-height: 35px; }
    .mobile-menu-button {
        display: block;
        order: 2;
        font-size: 1.6rem;
        margin-left: 10px;
    }
    .header-info, .header-search { display: none; }

    
    .global-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background-color: rgba(51, 51, 51, 0.98);
        padding-top: 60px;
        z-index: 1001;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        display: block;
        height: 100vh;
    }
    .global-nav.active { transform: translateX(0); }
    .global-nav .container { width: 100%; padding: 0; }
    .global-nav ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 20px 0;
    }
    .global-nav li {
        margin: 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #555;
    }
    .global-nav li:last-child { border-bottom: none; }
    .global-nav a {
        font-size: 1.1rem;
        padding: 15px 20px;
        display: block;
        width: 100%;
        line-height: normal;
        color: #fff;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    .global-nav a:hover, .global-nav .current a {
        background-color: var(--primary-color);
        color: #fff;
    }
    .global-nav a::after { display: none; }

    
    .cBox h3 { font-size: 1.3rem; padding: 8px 15px 8px 30px; margin: 25px 0 15px 0; }
    .cBox h3::before { width: 6px; left: 10px; top: 6px; bottom: 6px; }

     
    .pBoxSub {
        flex-direction: column; 
        gap: 15px; 
        padding: 15px;
    }
     .pBoxSub > .pName { margin-bottom: 0; width: 100%;} 

    
    .pBoxSub > .product-media {
         flex-direction: column; 
         gap: 10px;
         align-items: center; 
         width: 100%;
         margin: 0; 
    }

    .product-media p,
     .product-media .hanrei-link {
          width: auto; 
          text-align: center;
          margin: 0; 
      }

    .product-media img { margin: 0 auto; } 

    .table-responsive-container {
          width: 100%; 
          margin-top: 0; 
    }

    
    
    .pBoxSub > p.txt {
        width: 100%; 
        margin-top: 15px; 
        margin-bottom: 0; 
    }

    .pBoxSub table {
          width: auto; 
          min-width: 700px; 
    }

    
     .pBoxSub table .sticky-col {
          min-width: 80px; 
          width: 100px; 
          padding: 8px 5px; 
     }
     .pBoxSub table th,
     .pBoxSub table td {
          padding: 8px 5px; 
     }
     .pBoxSub table th {
          white-space: normal; 
     }

    
    .site-footer { padding: 30px 0 15px 0; }
    .footer-logo img { max-height: 30px; margin: 0 auto 20px auto; }
    .footer-nav { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-bottom: 15px; }
    .footer-nav a { margin: 0; font-size: 0.85rem; }
    .footer-nav span { display: none; }
    .copyright { margin-top: 15px; padding-top: 15px; border-top: 1px solid #444; font-size: 0.75rem; }
    .site-footer .to-top { margin-top: 15px;}
}

.style2 {
    font-size: 0.85em; 
    color: var(--text-secondary); 
    margin-left: 5px; 
}


/* ===== 追加の共通部品(お知らせ表・サイトマップ索引・リンク集など) ===== */
:root { --zebra-color: #eef1f4; }  /* しましまの色(薄グレー、視認できる濃さ) */
/* 旧styleNクラスの置き換え先(restyleのabsorb_legacy_stylesが付与する)。
   旧デザイン由来の文脈指定(例: p.txt span の緑)より必ず優先させる */
.text-red { color: #c00000 !important; }      /* 注意書き・価格注記の赤 */
.text-small { font-size: 0.85em !important; } /* 補足の小さめ文字 */
.text-bold { font-weight: 700 !important; }
.page-title, .news-title {
    font-size: 1.6rem; font-weight: 700; color: var(--text-color);
    border-left: 6px solid var(--primary-color);
    padding-left: 12px; margin: 24px 0;
}
.table-container, .news-list-container { overflow-x: auto; }
.info-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border: 1px solid var(--border-color); font-size: 0.95rem;
}
.info-table th, .info-table td {
    border: 1px solid var(--border-color); padding: 10px 14px;
    text-align: left; vertical-align: top;
}
.info-table th { background: var(--bg-light-gray); white-space: nowrap; }
.info-table td:first-child { white-space: nowrap; color: var(--text-secondary); }
/* 会社概要などの仕様表はゼブラなし(2026-07-08ユーザー指示)。
   旧CSSの「全表の偶数行グレー」も全サイトで無効化(縞は製品表のzgだけ) */
tbody tr:nth-child(even) { background-color: transparent; }

/* ===== 新着情報一覧(#news): 日付+本文の読みやすいリスト調 ===== */
#wrapper #news { width: 100%; border-collapse: collapse; border: none; background: none; }
#wrapper #news tr { border-bottom: 1px solid var(--border-color); background: none; }
#wrapper #news td {
    border: none; background: none; padding: 20px 12px;
    vertical-align: top; line-height: 1.9; text-align: left;
}
/* 日付セル(トップの新着5件と一覧で共通): グレー地に赤のセリフ体 */
#wrapper #news td:first-child,
#wrapper .news-table td:first-child {
    font-family: 'EB Garamond', 'Times New Roman', serif; font-weight: 500;
    font-size: 1.08rem; color: var(--primary-color);
    background: var(--bg-light-gray);
    white-space: nowrap; width: 120px;
    text-align: center; vertical-align: middle;
}
#wrapper #news tbody tr:hover td { background: #f7ecec; }
@media (max-width: 767px) {
    #wrapper #news td { display: block; padding: 4px 10px 14px; }
    #wrapper #news td:first-child { padding: 14px 10px 0; width: auto; }
}

/* サイトマップ(品名・品番索引) */
.sitemap-index {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px;
}
.sitemap-index a {
    display: inline-block; min-width: 44px; padding: 8px 10px; text-align: center;
    background: var(--bg-light-gray); border: 1px solid var(--border-color);
    border-radius: 4px; color: var(--primary-color); font-weight: 700;
    text-decoration: none;
}
.sitemap-index a:hover { background: var(--primary-color); color: #fff; }
.sitemap-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.sitemap-table th, .sitemap-table td {
    border: 1px solid var(--border-color); padding: 8px 12px; text-align: left;
}
.sitemap-table th { background: var(--bg-light-gray); }
.sitemap-table a { color: var(--primary-color); }

/* サイトマップ(総合) */
.sitemap-list { list-style: none; padding: 0; margin: 16px 0; }
.sitemap-list > li { margin: 10px 0; }
.sitemap-list a {
    display: block; padding: 12px 16px; background: var(--bg-light-gray);
    border: 1px solid var(--border-color); border-left: 5px solid var(--primary-color);
    border-radius: 4px; color: var(--text-color); text-decoration: none; font-weight: 700;
}
.sitemap-list a:hover { background: #f1e5e5; }
.sitemap-list .sub-list { list-style: none; margin: 8px 0 8px 24px; padding: 0; }
.sitemap-list .sub-list a { font-weight: 400; border-left-width: 3px; }

/* リンク集 */
.link-list dl {
    background: #fff; border: 1px solid var(--border-color); border-radius: 4px;
    padding: 14px 18px; margin: 12px 0;
}
.link-list dt { font-weight: 700; }
.link-list dt a { color: var(--primary-color); }
.link-list dd { margin: 6px 0 0; color: var(--text-secondary); font-size: 0.95rem; }

/* ご注意ページ等のシンプルな表(restyleが plain-table クラスを明示付与) */
.plain-table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.plain-table th, .plain-table td {
    border: 1px solid var(--border-color); padding: 10px 14px; text-align: left;
    background: #fff; vertical-align: top;
}
.plain-table th { background: var(--bg-light-gray); white-space: nowrap; }

/* 製品表: 白と薄いグレー(新着情報と同色)の交互表示+行全体のホバー。
   見出し行(S・D1等)は白のまま */
/* 見出し行(品番・S等)はグレー、商品1行目は白から始まる交互 */
.pBoxSub table th,
.pBoxSub table thead th,
.pBoxSub table thead th.sticky-col,
.pBoxSub table th.pNo { background-color: #e7ebf0; }
/* 表の塗りは3層で明示: ①全セル白(旧CSSの行グレーを遮断) ②zg行=ゼブラ ③ホバー。
   ゼブラは「製品グループ単位」(restyleが zg クラスを付与)。
   rowspanで結合したセット品でもブロック全体が同色になり色ズレしない */
.pBoxSub table td { background-color: #fff; }
.pBoxSub table tbody tr { background-color: transparent; }
.pBoxSub table tbody tr.zg td,
.pBoxSub table tr.zg td { background-color: var(--zebra-color); }

/* 2段見出しの上段グループ(ピン/O-リング等)は一段濃くして階層を分かりやすく */
.pBoxSub table thead th[colspan] { background-color: #dde3ea; }

/* ===== 製品ラインナップ目次: 見出しごとに左右2列のカード型リンク ===== */
.category-links {
    list-style: none; margin: 16px 0 36px; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
}
.category-links li { margin: 0; }
.category-links a {
    display: flex; align-items: center; justify-content: flex-start; gap: 16px;
    min-height: 64px; padding: 10px 18px;
    background: #fff; border: 1px solid var(--border-color); border-radius: 6px;
    color: var(--text-color); text-decoration: none;
    transition: border-color .15s, background-color .15s;
}
/* 画像を左端に置き、品名をすぐ隣に(名前と画像が離れないように) */
.category-links img { order: -1; }
.category-links a:hover {
    border-color: var(--primary-color); background: #faf5f5; text-decoration: none;
}
.category-links .product-name { font-weight: 700; font-size: 1.05rem; }
.category-links img { max-height: 46px; width: auto; flex-shrink: 0; }
@media (max-width: 767px) {
    .category-links { grid-template-columns: 1fr; }
}

/* ===== ピン・Oリング対応表: 左2列を固定し、右側は横スクロール ===== */
.pin-table { min-width: 1050px; }
.pin-table th.col-sq, .pin-table td.col-sq {
    position: sticky; left: 0; z-index: 6;
    min-width: 110px; max-width: 110px; white-space: normal;
}
.pin-table th.col-items, .pin-table td.col-items {
    position: sticky; left: 110px; z-index: 6;
    min-width: 230px; max-width: 230px; white-space: normal;
    box-shadow: 2px 0 5px rgba(0, 0, 0, .08);
}
.pin-table thead th.col-sq, .pin-table thead th.col-items { z-index: 7; }
/* 差込角セルは縦結合でグループ全体を貫くため、カーソルの色変えの対象外にする */
.pin-table tbody tr:hover td.col-sq { background-color: #fff; }
/* 差込角ごとに独立した表(それぞれの直下に横スクロールバー)。間に隙間 */
.pin-group { margin-bottom: 26px; }
@media (max-width: 767px) {
    /* 携帯: ソケット品番を見ながら合うピン・Oリングを探せるように、
       固定するのは品番列。差込角はピン品番等と一緒に横に流れる */
    .pin-table th.col-sq, .pin-table td.col-sq {
        position: static; min-width: 84px; max-width: none;
    }
    .pin-table th.col-items, .pin-table td.col-items {
        position: sticky; left: 0; min-width: 170px; max-width: 170px;
    }
}

/* 文字数の多いセル(ソケットサイズの列挙など)は適時折り返す */
.pBoxSub table td.wrap-text {
    white-space: normal; text-align: left; line-height: 1.9;
}

/* 適用品番などの長いリストのセル(restyleが item-list を付与)を読みやすく */
.pBoxSub table td.item-list {
    font-weight: 400; text-align: left; white-space: normal;
    font-size: 0.9em; line-height: 2; min-width: 200px; padding: 12px 14px;
}
/* カーソルを合わせた行は淡い赤系(白・グレーどちらの行でもはっきり分かる色)。
   品番(固定列)も一緒に染まる = スマホで見やすい(2026-07-08ユーザー確認) */
.pBoxSub table tbody tr:hover td,
.pBoxSub table tbody tr:hover td.sticky-col,
.pBoxSub table tbody tr:hover td[colspan],
.pBoxSub table tr:hover td { background-color: #f4e3e3; }
/* クリックで行の色を固定(横スクロールしても見失わない。再クリックで解除) */
.pBoxSub table tbody tr.row-sel td,
.pBoxSub table tbody tr.row-sel td.sticky-col,
.pBoxSub table tbody tr.row-sel td[colspan] { background-color: #f4e3e3; }
/* 縦結合セル(複数行にまたがる共有情報)は行ホバー・行選択で染めない。元の色を保つ */
.pBoxSub table tbody tr:hover td[rowspan],
.pBoxSub table tbody tr.row-sel td[rowspan] { background-color: #fff; }
.pBoxSub table tbody tr.zg:hover td[rowspan],
.pBoxSub table tbody tr.zg.row-sel td[rowspan] { background-color: var(--zebra-color); }
/* ピン表の差込角は行選択でも染めない */
.pin-table tbody tr.row-sel td.col-sq { background-color: #fff; }

/* ===== 品番・品名検索(ヘッダー/トップページ共通) ===== */
.site-search { position: relative; display: flex; gap: 6px; }
.site-search input[type="search"] {
    height: 42px; padding: 0 12px; font-size: 16px; flex: 1; min-width: 0;
    border: 1px solid var(--border-color); border-radius: 4px;
    font-family: var(--font-family-base);
}
.site-search input[type="search"]:focus {
    outline: 2px solid var(--primary-color); outline-offset: -1px;
}
.site-search button {
    height: 42px; padding: 0 16px; border: none; border-radius: 4px;
    background: var(--primary-color); color: #fff; font-size: 15px;
    font-family: var(--font-family-base); cursor: pointer; white-space: nowrap;
}
.site-search button:hover { opacity: .85; }
/* ヘッダー側は右端にコンパクトに */
.header-search { order: 2; margin-left: 16px; }
.header-search input[type="search"] { width: 230px; flex: none; }
.search-suggest {
    position: absolute; top: calc(100% + 4px); left: 0; min-width: 100%;
    width: max-content; max-width: 90vw;
    background: #fff; border: 1px solid var(--border-color); border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15); z-index: 600;
    max-height: 340px; overflow-y: auto; text-align: left;
}
.search-suggest .item { padding: 10px 14px; cursor: pointer; font-size: 15px; }
.search-suggest .item b { color: var(--primary-color); margin-right: 8px; }
.search-suggest .item span { color: var(--text-secondary); font-size: 13px; }
.search-suggest .item:hover, .search-suggest .item.on { background: #f7ecec; }
@media (min-width: 768px) and (max-width: 1023px) {
    /* タブレット幅: 検索バーの段落ち(ナビへの重なり)防止。
       TEL等の表記を隠し、ロゴの右に1段で収める */
    .header-info { display: none; }
    .header-search {
        order: 2; flex-basis: auto; width: auto; max-width: 380px;
        margin: 0 12px 0 auto; text-align: right;
    }
}
@media (max-width: 767px) {
    /* 携帯でも検索を使えるようにヘッダー下に全幅表示 */
    .site-header { height: auto; min-height: var(--header-height-tablet); }
    .header-search {
        display: block !important; order: 10; flex-basis: 100%;
        margin: 8px 0 0; max-width: none;
    }
    .header-search input[type="search"] { flex: 1; width: auto; }
}

/* ===== ページ見出し: 左の赤縦線をやめ、文字の下に赤線を端から端まで ===== */
body { overflow-x: clip; }
#wrapper .section-title,
#wrapper .page-title,
#wrapper .news-title,
#wrapper .cBox h3 {
    background: none;
    border-left: none;
    border-radius: 0;
    border-bottom: 3px solid var(--primary-color);
    display: block;
    width: auto;        /* ページ側の width: fit-content 等を打ち消す */
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 6px calc(50vw - 50%) 10px;
}
#wrapper .section-title::before,
#wrapper .section-title::after,
#wrapper .page-title::before,
#wrapper .page-title::after,
#wrapper .news-title::before,
#wrapper .cBox h3::before { content: none; }

/* 題字・節見出しは全ページ中央揃えに統一(製品カテゴリ見出し .cBox h3 は左のまま) */
#wrapper .section-title,
#wrapper .page-title,
#wrapper .news-title { text-align: center; }

/* ===== 製品ブロック: 品番の右横に写真+図面を並べる ===== */
.pBoxSub {
    display: flex; flex-direction: row; flex-wrap: wrap;
    align-items: flex-start; justify-content: flex-start; column-gap: 32px;
}
.pBoxSub > * { flex: 0 0 100%; min-width: 0; }
.pBoxSub > .pName {
    flex: 0 1 auto; width: auto; max-width: 46%;
    /* 写真が何段になっても品番は写真の1段目と頭を揃える(上の空白を作らない) */
}
.pBoxSub > .product-media { flex: 1 1 320px; width: auto; }
@media (max-width: 767px) {
    /* 携帯は縦積みに戻す */
    .pBoxSub > .pName { flex-basis: 100%; max-width: none; top: 0; }
    .pBoxSub > .product-media { flex-basis: 100%; }
}

/* ===== 注意書きの箇条書き(■の段落ちを解消) ===== */
.note-list {
    list-style: none; margin: 14px 0; padding: 12px 18px;
    background: var(--bg-light-gray); border: 1px solid var(--border-color);
    border-radius: 4px; flex-basis: 100%;
}
.note-list li {
    position: relative; padding-left: 1.5em; margin: 6px 0; line-height: 1.7;
}
.note-list li::before {
    content: "■"; position: absolute; left: 0; color: #2e7d32; font-size: 0.85em;
    top: 0.15em;
}
/* 注意アイコン(⚠)は文字と同じ行に並べる(基本のimg{display:block}を打ち消す) */
.note-list li img {
    display: inline-block; vertical-align: -0.15em;
    width: 1.1em; height: 1.1em; margin: 0 4px 0 0;
}

/* 旧デザイン由来の表の入れ物(.rBox)にも横スクロールを(狭い画面のはみ出し防止) */
.rBox { overflow-x: auto; max-width: 100%; }

/* ===== 製品名まわりの大小関係: 品番を主役に、商品名は控えめに ===== */
.pName span.bold {
    display: inline-block;
    font-size: 1.7rem;
    color: var(--text-secondary);
    font-weight: 700;
    line-height: 1.2;
}
.pName h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 2px 0 3px;
}
.pName {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== 製品写真ギャラリー(写真を統一サイズで並べ、図面は右横の最後) ===== */
/* 画面幅にかかわらず横並び(狭い画面用の縦並び指定を打ち消す) */
.product-media,
.pBoxSub > .product-media {
    display: flex; flex-direction: row; flex-wrap: wrap;
    align-items: center; justify-content: flex-start; gap: 14px;
    margin: 12px 0;
}
.product-media p { margin: 0; }
.product-media p a { display: inline-block; text-align: center; font-size: 13px; }
.product-media p a img {
    display: block; width: 150px; height: 150px; object-fit: contain;
    background: #fff; border: 1px solid var(--border-color); border-radius: 6px;
    padding: 6px; transition: box-shadow .15s;
}
.product-media p a:hover img { box-shadow: 0 3px 12px rgba(0, 0, 0, .18); }
/* サイズごとに代表1枚だけ表示し、クリックで残りをライトボックス送り */
.product-media .pgallery { margin: 0; position: relative; }
.product-media .pg-cover {
    display: inline-block; text-align: center; font-size: 13px; position: relative;
}
.product-media .pg-cover img {
    display: block; width: 150px; height: 150px; object-fit: contain;
    background: #fff; border: 1px solid var(--border-color); border-radius: 6px;
    padding: 6px; transition: box-shadow .15s;
}
.product-media .pg-cover:hover img { box-shadow: 0 3px 12px rgba(0, 0, 0, .18); }
.product-media .pg-badge {
    position: absolute; top: 6px; right: 6px;
    background: rgba(0, 0, 0, .6); color: #fff;
    font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 11px;
    pointer-events: none;
}
.product-media .pg-extra { display: none; }

.product-media .hanrei-link { order: 99; }
.product-media .hanrei-link img {
    width: auto; max-width: 240px; height: 82px;
}
@media (max-width: 767px) {
    /* 携帯でも写真の右横に収まるよう図面を縮小 */
    .product-media .hanrei-link img {
        max-width: calc(100vw - 230px); height: auto; max-height: 82px;
    }
}

/* ===== フッターのナビ: 横並び(狭い画面では折り返し) ===== */
.footer-nav {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px 22px; padding: 0 10px;
}
.footer-nav a { display: inline-block; white-space: nowrap; }

/* ===== 絞り込み検索(種類・差込角・サイズ・全長) ===== */
.finder-form {
    display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end;
    justify-content: center; max-width: 860px; margin: 24px auto;
    padding: 22px 26px; background: #fff;
    border: 1px solid var(--border-color); border-radius: 8px;
}
.finder-form label { font-size: .9rem; color: var(--text-secondary); }
.finder-form select, .finder-form input[type=number] {
    display: block; margin-top: 4px; height: 44px; padding: 0 10px;
    font: inherit; font-size: 16px;
    border: 1px solid var(--border-color); border-radius: 4px; background: #fff;
}
.finder-form input[type=number] { width: 110px; }
.finder-form .range { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.finder-form .range input { margin-top: 0; }
.finder-form button {
    height: 44px; padding: 0 28px; border: none; border-radius: 4px;
    background: var(--primary-color); color: #fff; font: inherit; cursor: pointer;
}
.finder-form button:hover { opacity: .85; }
.finder-results { list-style: none; max-width: 860px; margin: 10px auto 40px; padding: 0; }
.finder-results li { margin: 8px 0; }
.finder-results a {
    display: block; padding: 12px 18px; background: #fff;
    border: 1px solid var(--border-color); border-radius: 6px;
    color: var(--text-color); text-decoration: none;
}
.finder-results a:hover { border-color: var(--primary-color); background: #faf5f5; }
.finder-results b { color: var(--primary-color); margin-right: 10px; }
.finder-results .attrs { float: right; color: var(--text-secondary); font-size: .85rem; }

/* ===== お問い合わせカード(旧・連絡先画像の置き換え) ===== */
.contact-card {
    max-width: 520px; margin: 20px auto; padding: 26px 30px;
    background: #fff; border: 1px solid var(--border-color); border-radius: 8px;
    text-align: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.contact-card .contact-company { font-weight: 700; font-size: 1.15rem; margin: 0 0 14px; }
.contact-lines { margin: 0 0 10px; }
.contact-lines div { display: flex; justify-content: center; gap: 10px; margin: 6px 0; }
.contact-lines dt { font-weight: 700; color: var(--primary-color); }
.contact-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
/* 「TEL 03-…」のラベルと番号は途中で改行させない。
   ページ側の span縦積み指定に巻き込まれないよう、必ずインライン表示 */
#wrapper .tel-pair, #wrapper .js-tel {
    display: inline; white-space: nowrap;
}
.contact-card .contact-hours { color: var(--text-secondary); font-size: .9rem; margin: 0 0 18px; }

/* ===== フッターの文字ロゴ(画像をやめて背景色の不一致を解消) ===== */
.footer-logo-text {
    font-family: 'EB Garamond', 'Times New Roman', serif; font-weight: 500;
    font-style: italic;  /* 本物のFPCロゴと同じ斜体 */
    font-size: 1.9rem; letter-spacing: .18em; color: #f1f1f1;
    margin: 0; line-height: 1.2; text-align: center;
}
.footer-logo-text span {
    display: block; font-style: normal;
    font-size: 0.62rem; letter-spacing: .34em; color: #a8adb5;
}

/* ===== パンくずリスト(現在地) ===== */
.breadcrumb {
    font-size: 0.85rem; color: var(--text-secondary);
    padding: 10px 0 0; margin-bottom: -6px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb .sep { color: #b6bcc4; margin: 0 2px; }
.breadcrumb span:not(.sep) { color: var(--text-color); font-weight: 700; }

/* 本文汎用 */
.site-main { padding-bottom: 40px; }
.more-link { text-align: center; margin: 24px 0; }
a.button {
    display: inline-block; padding: 12px 28px; background: var(--primary-color);
    color: #fff; text-decoration: none; border-radius: 4px; font-weight: 700;
}
a.button:hover { opacity: .85; }
