/* ============================================================
   HUBER+SUHNER by ATE Service — hubersuhner.ate.co.jp
   ============================================================ */

:root{
  --accent:#c8102e;
  --accent-dark:#a10d25;
  --navy:#0f1729;
  --text:#232730;
  --muted:#6b7280;
  --line:#e6e8ec;
  --light:#f6f7f9;
  --soft:#fdeef0;
  --white:#ffffff;
  --radius:10px;
  --shadow:0 4px 18px rgba(15,23,41,0.07);
  --shadow-hover:0 10px 28px rgba(15,23,41,0.13);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic","Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--white);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:0 24px}
section{padding:48px 0}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 24px;gap:16px;flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:48px;width:auto}
.brand-home{display:inline-flex;align-items:center;flex-shrink:0}
.brand-home:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}
.brand-divider{width:1px;height:22px;background:var(--line)}
.brand-tag{font-size:12px;color:var(--muted);letter-spacing:.02em}
.brand-tag strong{color:var(--text)}
.site-nav{display:flex;gap:26px;align-items:center;flex-wrap:wrap}
.site-nav a{font-size:14px;font-weight:600;color:var(--text)}
.site-nav a:hover{color:var(--accent)}
.site-nav .nav-cta{
  background:var(--accent);color:#fff;padding:9px 18px;border-radius:999px;
  font-weight:700;
}
.site-nav .nav-cta:hover{background:var(--accent-dark)}

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(160deg,var(--navy) 0%,#1b2740 60%,var(--accent-dark) 150%);
  color:#fff;padding:64px 0 48px;position:relative;overflow:hidden;
}
.hero::before{
  content:"";position:absolute;inset:0;z-index:0;
  background:url(../images/hero-building.png) right center/cover no-repeat;
  opacity:0.5;filter:grayscale(0.25) contrast(1.05);
  pointer-events:none;
}
.hero::after{
  content:"";position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(90deg,var(--navy) 0%,rgba(15,23,41,0.94) 28%,rgba(15,23,41,0.6) 50%,rgba(15,23,41,0.15) 75%,transparent 100%),
    radial-gradient(circle at 82% 18%,rgba(200,16,46,0.35),transparent 55%);
  pointer-events:none;
}
.hero .container{position:relative;z-index:2}
.hero-eyebrow{
  display:inline-block;font-size:13px;font-weight:700;letter-spacing:.08em;
  color:#ffd7dc;text-transform:uppercase;margin-bottom:18px;
}
.hero h1{
  font-size:clamp(28px,4vw,44px);line-height:1.35;margin:0 0 20px;font-weight:800;
  max-width:760px;
}
.hero p{
  font-size:16px;color:#dbe0ea;max-width:620px;margin:0 0 32px;
}
.hero-buttons{display:flex;gap:14px;flex-wrap:wrap}
.button{
  display:inline-block;padding:13px 26px;border-radius:999px;font-weight:700;
  font-size:14px;transition:transform .15s ease, background .15s ease;
}
.button-primary{background:var(--accent);color:#fff}
.button-primary:hover{background:var(--accent-dark);transform:translateY(-1px)}
.button-outline{border:1px solid rgba(255,255,255,0.5);color:#fff}
.button-outline:hover{background:rgba(255,255,255,0.12)}

/* ---------- Intro / Tag (shared) ---------- */
.tag{
  display:inline-block;background:var(--soft);color:var(--accent-dark);
  font-size:12px;font-weight:700;letter-spacing:.06em;padding:6px 14px;
  border-radius:999px;margin-bottom:18px;
}

/* ---------- Notice (other products via ATE) ---------- */
.notice-section{background:#f2c94c;border-bottom:1px solid var(--line)}
.notice-inner{max-width:800px;margin:0 auto;text-align:center;padding:8px 20px}
.notice-inner p{margin:0 0 12px;font-size:17px;line-height:1.8;color:var(--text)}
.notice-inner p strong{color:var(--accent-dark)}
.notice-link{font-size:16px;font-weight:700;color:var(--accent-dark)}
.notice-link:hover{text-decoration:underline}

/* ---------- About HUBER+SUHNER ---------- */
.about-section{background:var(--light)}
.about-grid{display:grid;grid-template-columns:260px 1fr;gap:44px;align-items:start}
.about-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:40px 24px;
  display:flex;align-items:center;justify-content:center;
}
.about-card img{max-width:180px;width:100%;height:auto;display:block}
.about-body h2{font-size:24px;margin:0 0 14px}
.about-body p{color:var(--muted);font-size:15px;line-height:1.85;margin:0 0 14px}
.about-body p strong{color:var(--text)}
.about-highlights{list-style:none;margin:4px 0 26px;padding:0;display:grid;gap:10px}
.about-highlights li{
  padding-left:24px;position:relative;font-size:14px;color:var(--text);
}
.about-highlights li::before{
  content:"";position:absolute;left:0;top:6px;width:9px;height:9px;border-radius:2px;
  background:var(--accent);
}
@media (max-width:800px){
  .about-grid{grid-template-columns:1fr}
  .about-card{max-width:280px;margin:0 auto}
}

/* ---------- Category sections ---------- */
.category{border-top:1px solid var(--line)}
.category-head{max-width:720px;margin:0 0 28px}
.category-number{
  font-size:13px;font-weight:800;color:var(--accent);letter-spacing:.08em;
}
.category h2{font-size:26px;margin:8px 0 12px}
.category-head p{color:var(--muted);font-size:15px;margin:0}

.card-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px;
}
.product-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:26px;box-shadow:var(--shadow);transition:box-shadow .15s ease, transform .15s ease;
  display:flex;flex-direction:column;gap:12px;
}
.product-card:hover{box-shadow:var(--shadow-hover);transform:translateY(-2px)}
.product-card h3{margin:0;font-size:18px}
.product-card .series{
  font-size:12px;color:var(--accent-dark);font-weight:700;letter-spacing:.03em;
  text-transform:uppercase;
}
.spec-chips{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 4px}
.spec-chip{
  background:var(--light);border:1px solid var(--line);color:var(--text);
  font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;
}
.product-card p.desc{color:var(--muted);font-size:14px;margin:0;flex:1}
.product-card .more-link{font-size:13px;font-weight:700;color:var(--accent-dark)}
.product-card .more-link:hover{text-decoration:underline}

/* placeholder for future cards - keeps grid rhythm consistent when a card is added */
.product-card.add-placeholder{
  display:flex;align-items:center;justify-content:center;
  border-style:dashed;color:var(--muted);font-size:13px;background:var(--light);
  box-shadow:none;
}

/* ---------- Catalog tiles (top page) ---------- */
.catalog-grid{
  display:flex;flex-direction:column;gap:18px;
}
.catalog-tile{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow);transition:box-shadow .15s ease, transform .15s ease;
  display:flex;flex-direction:row;align-items:stretch;
}
.catalog-tile:hover{box-shadow:var(--shadow-hover);transform:translateY(-2px)}
.tile-thumb{
  flex:0 0 240px;background:linear-gradient(135deg,var(--light) 0%,#eceef2 100%);
  display:flex;align-items:center;justify-content:center;position:relative;
  border-right:1px solid var(--line);
}
.tile-thumb .thumb-icon{width:44px;height:44px;color:var(--accent);opacity:.55}
.tile-thumb .thumb-note{
  position:absolute;bottom:10px;right:10px;font-size:10px;font-weight:700;
  color:var(--muted);background:rgba(255,255,255,0.85);padding:3px 8px;border-radius:999px;
  letter-spacing:.02em;
}
.tile-body{padding:22px 28px;display:flex;flex-direction:column;justify-content:center;gap:8px;flex:1;min-width:0}
.tile-body .series{
  font-size:11px;color:var(--accent-dark);font-weight:700;letter-spacing:.04em;text-transform:uppercase;
}
.tile-body h3{margin:0;font-size:18px}
.tile-body .spec-chips{margin:2px 0 6px}
.tile-body p.desc{color:var(--muted);font-size:13px;margin:0}
.tile-more{font-size:13px;font-weight:700;color:var(--accent-dark);margin-top:6px}
.catalog-tile:hover .tile-more{text-decoration:underline}

@media (max-width:640px){
  .catalog-tile{flex-direction:column}
  .tile-thumb{flex-basis:auto;aspect-ratio:16/9;border-right:none;border-bottom:1px solid var(--line);width:100%}
}

/* ---------- Product detail page ---------- */
.product-breadcrumb{font-size:13px;color:var(--muted);margin-bottom:18px}
.product-breadcrumb a{color:var(--muted);font-weight:600}
.product-breadcrumb a:hover{color:var(--accent-dark)}
.product-hero{
  background:var(--light);border-bottom:1px solid var(--line);padding:36px 0 32px;
}
.product-hero-grid{
  display:grid;grid-template-columns:1.1fr 1fr;gap:44px;align-items:center;
}
.product-hero .series{
  font-size:12px;color:var(--accent-dark);font-weight:700;letter-spacing:.05em;text-transform:uppercase;
}
.product-hero h1{font-size:clamp(24px,3.4vw,34px);margin:10px 0 16px}
.product-hero .lead{color:var(--muted);font-size:15px;margin:0 0 18px}
.image-placeholder{
  aspect-ratio:4/3;border-radius:var(--radius);border:1px dashed #c7cbd3;
  background:repeating-linear-gradient(135deg,var(--light),var(--light) 10px,#eef0f3 10px,#eef0f3 20px);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  color:var(--muted);text-align:center;padding:20px;
}
.image-placeholder .ph-icon{width:38px;height:38px;color:#aeb3bd}
.image-placeholder .ph-label{font-size:13px;font-weight:700}
.image-placeholder .ph-note{font-size:11px;max-width:220px}

.spec-table{width:100%;border-collapse:collapse;margin:0}
.spec-table th,.spec-table td{
  text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);font-size:14px;
}
.spec-table th{width:34%;color:var(--muted);font-weight:600;background:var(--light)}
.spec-table tr:last-child th,.spec-table tr:last-child td{border-bottom:none}

.feature-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.feature-list li{
  padding-left:26px;position:relative;color:var(--text);font-size:14px;
}
.feature-list li::before{
  content:"";position:absolute;left:0;top:7px;width:10px;height:10px;border-radius:3px;
  background:var(--accent);
}

.related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.related-card{
  border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;
  background:#fff;transition:box-shadow .15s ease;
}
.related-card:hover{box-shadow:var(--shadow)}
.related-card .series{font-size:11px;color:var(--accent-dark);font-weight:700;text-transform:uppercase}
.related-card h4{margin:6px 0 0;font-size:15px}
.related-card-ate{background:#fdf1de;border-color:#f0d6a8}
.related-card-ate .series{color:#c8790f}
.related-card-ate:hover{border-color:#e0b366}

@media (max-width:800px){
  .product-hero-grid{grid-template-columns:1fr}
}

/* ---------- Product photo (real images) ---------- */
.product-photo{
  aspect-ratio:4/3;border-radius:var(--radius);border:1px solid var(--line);
  background:#fff;display:flex;align-items:center;justify-content:center;
  padding:18px;box-shadow:var(--shadow);
}
.product-photo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}

.tile-thumb img{width:100%;height:100%;object-fit:contain;padding:14px;background:#fff}

/* ---------- Technical support section ---------- */
.support-section{background:var(--light);border-top:1px solid var(--line)}
.support-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center;
}
.support-grid .support-photo{
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line);
}
.support-grid .support-photo img{width:100%;display:block}
.support-body .category-number{margin-bottom:8px;display:block}
.support-body h2{font-size:24px;margin:0 0 14px}
.support-body p{color:var(--muted);font-size:14px;margin:0 0 18px}
.support-body .feature-list{margin-bottom:20px}
.support-note{
  font-size:12px;color:var(--muted);background:#fff;border:1px solid var(--line);
  border-radius:8px;padding:12px 16px;margin:0 0 20px;
}
@media (max-width:800px){
  .support-grid{grid-template-columns:1fr}
}

/* ---------- ATE Original Solution section ---------- */
.ate-solution-section{background:#fdf1de;border-top:1px solid var(--line)}
.ate-solution-section .category-number{color:#c8790f}
.support-extra-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:44px;align-items:start}
.ate-logo{height:40px;width:auto;margin-bottom:18px;display:block}
.support-extra-body p{color:var(--muted);font-size:14px;line-height:1.8;margin:0}
.support-extra-photo{
  aspect-ratio:4/3;border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);box-shadow:var(--shadow);background:#fff;
}
.support-extra-photo img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:800px){
  .support-extra-grid{grid-template-columns:1fr}
}

/* ---------- Reference / official links ---------- */
.official-links{margin-top:22px;font-size:13px;color:var(--muted)}
.official-links a{color:var(--accent-dark);font-weight:600}
.official-links a:hover{text-decoration:underline}

/* ---------- CTA ---------- */
.cta{
  background:var(--navy);color:#fff;text-align:center;
}
.cta h2{font-size:24px;margin:0 0 12px}
.cta p{color:#c7cede;margin:0 0 26px}

/* ---------- Footer ---------- */
.site-footer{background:#f1f2f5;border-top:1px solid var(--line);padding:40px 0}
.footer-inner{
  display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap;
}
.footer-brand{font-size:13px;color:var(--muted);max-width:420px}
.footer-brand strong{display:block;color:var(--text);font-size:15px;margin-bottom:6px}
.footer-links{display:flex;gap:20px;flex-wrap:wrap;align-items:center;font-size:13px}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--accent-dark)}
.footer-link-primary{
  display:inline-flex!important;align-items:center;gap:6px;
  color:#fff!important;font-weight:700;background:var(--accent);
  border-radius:999px;padding:8px 18px;
  transition:background .15s ease;
}
.footer-link-primary:hover{background:var(--accent-dark);color:#fff!important}
.copyright{margin-top:22px;font-size:12px;color:#9aa0aa;text-align:center}

@media (max-width:640px){
  section{padding:36px 0}
  .site-nav{width:100%;justify-content:flex-start}
}

/* Spacing between sections within product detail pages */
.product-section{padding:24px 0}
.product-section:first-child{padding-top:0}
.product-section:last-child{padding-bottom:0}

/* Return to the parent catalog from product pages */
.catalog-back-link{display:inline-flex;align-items:center;border:1px solid var(--accent);border-radius:999px;padding:7px 14px;font-weight:700}
.site-nav .catalog-back-link,.footer-links .catalog-back-link{color:var(--accent-dark)}
.catalog-back-link:hover{background:var(--soft)}

@media (max-width:640px){.brand img{height:40px}}

/* ATE logo at the top right of the catalog home header */
.header-with-ate{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 20px}
.header-with-ate .site-nav{grid-column:1/-1;justify-content:space-between}
.header-ate-logo{display:inline-flex;align-items:center;justify-self:end}
.header-ate-logo img{width:145px;height:auto}
.header-ate-logo:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media (max-width:640px){
  .header-with-ate{gap:12px}
  .header-with-ate .brand{flex-wrap:wrap;gap:8px}
  .header-with-ate .brand-divider{display:none}
  .header-with-ate .brand-tag{flex-basis:100%}
  .header-ate-logo img{width:95px}
  .header-with-ate .site-nav{justify-content:flex-start;gap:12px 18px}
}
/* Language navigation */
.site-nav .language-switch{border:1px solid var(--line);border-radius:999px;padding:7px 14px;white-space:nowrap}
.site-nav .language-switch:hover{background:var(--light)}
html[lang="en"] .brand-tag{font-size:11px}
html[lang="en"] .site-nav{column-gap:18px;row-gap:10px}
html[lang="en"] .hero h1{max-width:900px}
