/* ═══════════════════════════════════════════════════════════
   全站补充样式（2026-10-14）
   1) 有下拉的导航项加新日铁式小三角 ∨（悬停翻转）
   2) 页脚：完全照抄原型配色 / 排版（浅灰 #f6f8fa 底 + 深色字）
   只新增，不改动 site.css 里任何东西。
   原型 rem 换算：1rem = 11.52px（1.4rem≈16.1px，1.5rem≈17.3px）
   ═══════════════════════════════════════════════════════════ */

/* ── 1.5) 顶栏字号对齐原型（原型 .topbar 1.4rem=16.128px；site.css 原是 13px，
      顶栏因此矮 4px、整页所有区块比原型上移 4px）── */
.topbar,
.topbar .wrap,
.topbar .tel,
.topbar .mail,
.topbar .scopes,
.topbar .scopes label,
.topbar .sitesearch input,
.topbar .sitesearch button { font-size: 16.128px; }
/* 原型 .topbar .wrap 高 40px，site.css 是 36px（整页上移 4px 的另一半原因） */
.topbar .wrap { height: 40px; }

/* ── 1.6) 页头高度/logo 全局对齐原型（原型 .hd-in 76px、.logo img 42px 无断点区分，
      site.css 移动端是 64px/48px）。
      注：原型移动端没有汉堡按钮（原型缺陷），线上保留汉堡保证手机端可导航，仅对齐尺寸。── */
.head .headinner { height: 76px; max-width: 1780px; margin: 0 auto; padding: 0 clamp(28px, 4vw, 80px); }
.head .logo img { height: 42px; width: auto; }

/* ── 1) 导航下拉箭头 ───────────────────────────────── */
@media (min-width: 901px) {
  .head .navitem.has-sub > a {
    display: inline-flex;
    align-items: center;
  }
}
.head .navitem.has-sub > a::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-left: 9px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s, margin-top .2s;
}
.head .navitem.has-sub:hover > a::after,
.head .navitem.has-sub:focus-within > a::after {
  transform: rotate(225deg);
  margin-top: 3px;
}

/* ── 2) 页脚（原型 .ft：浅灰底 + 深色字）───────────── */
.foot {
  background: #f6f8fa;
  color: #1f2937;
  border-top: 1px solid #e3e7eb;
  font-size: 16.1px;
}
.foot .wrap {
  max-width: 1780px;
  padding: 0 clamp(28px, 4vw, 80px);
}

/* 五列网格（.foot .megafoot：必须压过上面 .foot .wrap 的 padding，否则 72/48 上下留白被吃掉） */
.foot .megafoot {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 44px;
  padding: 72px clamp(28px, 4vw, 80px) 48px;
  border-top: 0;
}
.megafoot .mfcol h4 {
  margin: 0 0 16px;
  font-size: 17.3px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: .03em;
}
.megafoot .mfcol h4 a { color: #1f2937; }
.megafoot .mfcol h4 a::after {
  content: "　＞";
  color: #6b7280;
  font-weight: 400;
  font-size: .9em;
}
.megafoot .mfcol h4 a:hover { color: #e06a1b; }
.megafoot .mfcol ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.megafoot .mfcol li { margin: 0 0 12px; }
.megafoot .mfcol li a {
  display: inline-block;
  color: #4a5560;
  font-size: 16.1px;
  line-height: 1.6;
}
.megafoot .mfcol li a::before {
  content: "＞";
  color: #9aa5b1;
  font-size: .85em;
  margin-right: 7px;
}
.megafoot .mfcol li a:hover { color: #e06a1b; }

/* 底部版权行（原型 .ft-bot） */
.foot .copy {
  border-top: 1px solid #e3e7eb;
  margin-top: 40px;
  padding: 20px 0 26px;
  color: #6b7280;
  font-size: 16.1px;
}
.ft-bot-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: #6b7280;
}
.foot .copy .icp { color: #6b7280; margin-top: 4px; }
/* 备案号跟在 © 后面、字号缩小，保证 © + 親会社 一行放得下 */
.ft-bot-row .icp-txt { font-size: 13px; }

/* ── 2.5) products 搜索框对齐原型：原型 input/button 无 line-height（normal），
      线上继承了 body 的 1.5 行高，把输入框从 57px 撑到 62px（区块高 741→746）── */
.newhome .prod-search input,
.newhome .prod-search button { line-height: normal; }
.newhome .prod-search button { font-size: 13.3333px; }

@media (max-width: 900px) {
  .foot .megafoot {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 44px clamp(28px, 4vw, 80px) 32px;
  }
  .foot .copy { margin-top: 24px; }
}
@media (max-width: 560px) {
  .foot .megafoot {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px clamp(28px, 4vw, 80px) 24px;
  }
  .ft-bot-row { flex-direction: column; gap: 6px; }
}


/* ── 3) 导航 mega 大面板（原型 .hd/.mega 逐项对应，1rem=11.52px）── */
/* 页头内容与原型 .hd-in 一致：1780px 宽、logo 靠最左、导航靠最右 */
@media (min-width: 901px) {
  .head .headinner { height: 76px; max-width: 1780px; margin: 0 auto; padding: 0 clamp(28px, 4vw, 80px); }
  .topbar .wrap { max-width: 1780px; padding: 0 clamp(28px, 4vw, 80px); }
  .head .nav { margin-left: auto; display: flex; align-items: stretch; height: 100%; gap: 0; }
  .head .navitem { display: flex; align-items: stretch; position: static; }
  .head .navitem > a, .head .nav > a {
    display: flex; align-items: center; height: 100%; padding: 0 16px;
    font-size: 16.1px; font-weight: 600; color: #1f2937; letter-spacing: .02em;
    border-bottom: 3px solid transparent;
  }
  .head .navitem:hover > a, .head .navitem.on > a,
  .head .nav > a:hover, .head .nav > a.on { color: #e06a1b; border-bottom-color: #e06a1b; }

  .head .mega {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid #e3e7eb;
    box-shadow: 0 22px 44px rgba(11,46,79,.18);
    opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s;
    z-index: 70; max-height: calc(100vh - 76px); overflow: auto;
  }
  .head .navitem:hover .mega, .head .navitem:focus-within .mega { opacity: 1; visibility: visible; }
  .head .navitem.suppress .mega { opacity: 0 !important; visibility: hidden !important; }

  .head .mega-in { max-width: 1780px; margin: 0 auto; padding: 26px clamp(28px,4vw,80px) 44px; }
  .head .mega-head {
    display: flex; align-items: center; padding-bottom: 14px;
    border-bottom: 1px solid #e3e7eb; margin-bottom: 26px;
  }
  .head .mega-title {
    font-size: 19.6px; font-weight: 700; color: #0b2e4f;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .head .mega-title .mk {
    display: inline-flex; width: 20px; height: 20px; border-radius: 3px;
    background: #e06a1b; color: #fff; font-size: 16.1px; font-weight: 700;
    align-items: center; justify-content: center;
  }
  .head .mega-x {
    margin-left: auto; width: 34px; height: 34px; border: 0; background: transparent;
    color: #888; font-size: 25.3px; line-height: 1; cursor: pointer; font-family: inherit;
  }
  .head .mega-x:hover { color: #e06a1b; }
  .head .mega-body { display: grid; grid-template-columns: 340px 1fr; gap: 56px; }
  .head .mega-left a {
    display: block; font-size: 20.2px; font-weight: 700; color: #1f2937; padding: 13px 0;
  }
  .head .mega-left a:hover { color: #e06a1b; }
  .head .mega-left a::after { content: " ›"; color: #e06a1b; font-weight: 400; }
  .head .mega-right { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 48px; align-content: start; }
  .head .mgroup h5 { margin: 0 0 12px; font-size: 16.1px; color: #6b7280; font-weight: 600; }
  .head .mlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .head .mlinks a { display: block; padding: 8px 0; color: #4a5560; font-size: 15px; }
  .head .mlinks a::before { content: "・"; color: #9aa5b1; margin-right: 6px; }
  .head .mlinks a:hover { color: #e06a1b; }
}
/* 移动端：mega 当普通列表展开（burger 菜单里） */
@media (max-width: 900px) {
  .head .mega {
    position: static; opacity: 1; visibility: visible; box-shadow: none;
    border: 0; max-height: none; overflow: visible; background: transparent; padding: 0;
  }
  .head .mega-head { display: none; }
  .head .mega-body { display: block; }
  .head .mega-left a { font-size: 15px; font-weight: 600; padding: 8px 0 8px 16px; color: var(--muted); }
  .head .mega-left a::after { content: ""; }
  .head .mega-right { display: none; }
  .head .navitem.has-sub > a::after { display: none; }
}

/* NEWS 左栏社训方块放大一档（原型 64px 基础上 +） */
.newhome .nbrand{gap:14px}
.newhome .nbrand span{width:76px;height:76px;font-size:25px}

/* ── 1.7) 首页主视觉：视频播 5 秒 → 淡入主图轮播（多图+多页文字+箭头） ──
   层级靠 DOM 顺序：video → img.mv-slide × N → mask → cap → 箭头 → btn，不用 z-index（用了会盖住标题） */
/* 视频和图片都是 .mv-slide 帧，统一淡入淡出 */
.newhome .mv-video > .mv-slide { opacity: 0; transition: opacity 1s ease; }
.newhome .mv-video > .mv-slide.on { opacity: 1; }
/* 缓慢推近（沿用旧版 @keyframes kenburns，定义在 site.css） */
.newhome .mv-video > img.mv-slide.on { animation: kenburns 8s ease-out forwards; }

/* 文字页：与轮播图一一对应（第 1 页标题+副标题，第 2/3 页经营口号） */
.newhome .mv-cap-p { display: none; }
.newhome .mv-cap-p.on { display: block; animation: mvCapIn .7s ease; }
@keyframes mvCapIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.newhome .mv-cap .mv-sub {
  display: block; margin-top: 14px;
  font-size: clamp(13px, 1.3vw, 17px); line-height: 1.8;
  opacity: .95; max-width: 660px; text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.newhome .mv-cap-p.slogancap {
  font-size: clamp(20px, 2.6vw, 34px); font-weight: 700; line-height: 1.6;
  letter-spacing: 2px; max-width: 900px; color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

/* 社训方块已移到左列第二张照片中间（JS 对齐），分类列表恢复原型单列原样，
   不再需要第十轮为方块腾位置做的两列/缩字/压行（用户指出列表"变掉了"） */

/* ── 1.8) 顶栏搜索框：字号调大到 16.128px 后，输入框宽度/高度同步加宽，否则 placeholder 截断 ── */
.topbar .sitesearch input[type="text"] { width: 215px; height: 30px; }
.topbar .sitesearch button { height: 30px; }

/* ── 1.9) 区块分隔线（v27 定稿）──
   每个区块顶部一条**同款实色带**：28px 高、#dfe5ea、absolute 不占布局。
   之前用 mask 羽化，淡出区在亮照片上显得宽、暗照片上显得窄，六处永远不一样；
   改成实色带后六条线宽窄颜色完全一致。 */
.newhome #products::after, .newhome #news::after, .newhome #works::after,
.newhome #inspection::after, .newhome #business::after, .newhome section.cta::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 28px;
  background: #dfe5ea; z-index: 1; pointer-events: none;
}
/* 渐晕 z-index:1 会盖住 static 内容，把落在区块边缘的主要内容容器提到 z2 */
.newhome #products .prod-inner, .newhome #inspection .insp-grid, .newhome #business .wrap,
.newhome #works .wrap, .newhome .cta-in { position: relative; z-index: 2; }
/* mv 渐白后标题/按钮提到渐晕之上 */
.newhome .mv { position: relative; }
.newhome .mv-cap, .newhome .mv-btn { z-index: 2; }
/* cta 不是 bgsec，没有定位，渐晕会飞到页面顶部去，必须补 relative */
.newhome section.cta { position: relative; overflow: hidden; }

/* ── 2.0) 滚动淡入：JS 给内容容器加 .rv 才生效，JS 不可用时内容照常显示 ── */
.newhome .rv { opacity: 0; transform: translateY(26px); transition: opacity .85s cubic-bezier(.22,.61,.36,1), transform .85s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.newhome .rv.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .newhome .rv { opacity: 1; transform: none; transition: none; } }

/* ── 1.11) 日方顾问页（/company/advisors，内容来自 PPT 2026.05.07「日本人チーム」） ── */
.advisors .adv-lead { color: var(--muted); margin: 0 0 26px; }
.advisors .advcard { background: #fff; border: 1px solid var(--line); padding: 28px 30px 22px; margin-bottom: 22px; }
.advisors .advcard h2 { margin: 0 0 16px; font-size: 22px; color: var(--navy); display: flex; align-items: baseline; gap: 14px; }
.advisors .advcard .role { font-size: 15px; color: var(--accent); font-weight: 700; }
.advisors .advcard dl { margin: 0; overflow: hidden; }
.advisors .advcard dt { float: left; clear: left; width: 96px; font-weight: 700; color: var(--navy-2); }
.advisors .advcard dd { margin: 0 0 10px 112px; line-height: 1.9; color: var(--ink); }
.advisors .advcard dd:last-child { margin-bottom: 0; }

/* ── 1.12) 検査体制页照片墙（/inspection，量具页 12 张）──
   统一 4:3 横版裁切（12 张里只有レーザー水準器那张是竖图，居中裁成横版后不再有高矮不齐的空格） */
.inspwall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inspwall-item { margin: 0; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.inspwall-item .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #f4f6f8; }
.inspwall-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.inspwall-item:hover img { transform: scale(1.04); }
.inspwall-item figcaption { padding: 14px 16px 16px; }
.inspwall-item figcaption b { display: block; font-size: 16px; font-weight: 700; color: var(--navy-2); line-height: 1.6; }
.inspwall-item figcaption span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) { .inspwall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .inspwall { grid-template-columns: 1fr; } }

/* ── 会社位置（/company/access，照 PPT 2026.05.07 第 5 页原版布局）── */
.accesswrap { max-width: 1080px; }
.accgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.acccol { display: flex; flex-direction: column; gap: 22px; }
.accmap { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #f4f6f8; }
.acccard { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px 20px; }
.acccard h2 { margin: 0 0 12px; font-size: 19px; font-weight: 700; color: var(--navy); border-left: 4px solid var(--accent); padding-left: 12px; line-height: 1.5; }
.acccard p { margin: 0 0 4px; font-size: 15.5px; line-height: 2; color: var(--ink); }
@media (max-width: 860px) { .accgrid { grid-template-columns: 1fr; } }
/* ── 母公司介绍（/company/parent）── */
.parentco p { font-size: 15.5px; line-height: 2.1; color: var(--ink); }

/* ── 客户案例（/cases，内容来自 PPT 2026.05.07 第 10-21 页）── */
.casesgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.casecard { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.casepic { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f6f8; }
.casepic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.casepic:hover img { transform: scale(1.04); }
.casepic.nopic { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; letter-spacing: .08em; }
.casebody { padding: 20px 24px 22px; }
.casebody h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--navy); border-left: 4px solid var(--accent); padding-left: 12px; line-height: 1.5; }
.casebody ul { margin: 0; padding: 0; list-style: none; }
.casebody li { position: relative; padding-left: 16px; margin-bottom: 8px; font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.casebody li:last-child { margin-bottom: 0; }
.casebody li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) { .casesgrid { grid-template-columns: 1fr; } }

/* ── 客户案例页（PPT 第 33 页 售后体系 + 第 35/36 页 取引先 LOGO）── */
.casecap { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: var(--navy); border-left: 5px solid var(--accent); padding-left: 14px; line-height: 1.5; }
.casecap + * { margin-top: 0; }
.section .casecap:not(:first-child) { margin-top: 44px; }
.aftgrid { border: 1px solid var(--line); border-radius: 10px; background: var(--soft); padding: 28px 24px 24px; }
.aftline { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; justify-content: center; }
.aftbox { display: flex; flex-direction: column; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px 18px; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.6; text-align: center; }
.aftbox small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.6; }
.aftbox.main { border-color: var(--navy-2); color: var(--navy); }
.aftbox.dim { font-weight: 400; color: var(--muted); }
.aftarrow { display: flex; align-items: center; color: var(--accent); font-size: 15px; }
.afttag { display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; border-radius: 4px; padding: 8px 14px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.aftfork { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); }
.aftcol { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.aftcol .afttag { align-self: center; }
.aftsub { font-size: 12.5px; color: var(--muted); line-height: 1.8; text-align: center; }
.aftsub a { color: var(--navy-2); }
.aftbottom { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 2; color: var(--ink); }
.logowall { display: flex; flex-direction: column; gap: 12px; }
.logorow { display: grid; gap: 12px; }
.logorow > span { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; min-height: 88px; }
.logorow img { max-width: 100%; max-height: 62px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 860px) {
    .aftfork { grid-template-columns: 1fr; }
    .logorow { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── 首页产品大卡：恢复原始样式（照片 16/10 铺满 + hover 微放大），以上改动全部作废 ── */
/* 当前页菜单项去掉橙色下划线（文字变橙保留），hover 悬停效果不受影响 */
.newhome .navitem.on > a, .newhome .nav > a.on { border-bottom-color: transparent; }
.head .navitem.on > a, .head .nav > a.on { border-bottom-color: transparent; }
/* 首页「提出図書類（抜粋）」小节上方那条深蓝横线去掉（线 2px 补进 padding，总高不变） */
.newhome .docs { border-top: 0; padding-top: 34px; }
/* 業務プロセス区块底部：背景照片（海面）透出的灰蓝色带压白，与 CTA 交界干净。
   只动这个区块的遮罩（bgsec::before 底部 10% 白 → 底部渐白），其他 bgsec 区块不受影响 */
.newhome #business.bgsec::before {
  background: linear-gradient(180deg, rgba(255,255,255,.46) 0%, rgba(255,255,255,.34) 55%, rgba(255,255,255,.9) 88%, #fff 97%);
}
/* CTA 顶部那条 28px 灰色分隔带去掉：白色与深蓝直接衔接（其他区块分隔带不动） */
.newhome section.cta::after { content: none; }
