:root {
  --jsw-red: #9f0606;
  --jsw-red-dark: #760404;
  --ink: #2f2f2f;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --soft: #f4f7f7;
  --footer: #333;
  --shell: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 15px/1.65 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--jsw-red); }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.shell, .container { width: min(calc(100% - 32px), var(--shell)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: #fff; padding: 10px 14px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.honeypot { position: absolute !important; left: -9999px !important; }

.top-strip { min-height: 34px; background: var(--soft); border-bottom: 1px solid #f1f1f1; color: #666; font-size: 12px; }
.top-strip__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.social-links { display: flex; flex-wrap: wrap; gap: 14px; }
.masthead { min-height: 92px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; letter-spacing: .03em; }
.brand__jsw { color: var(--jsw-red); font-size: 46px; line-height: 1; font-weight: 900; font-style: italic; letter-spacing: -.06em; }
.brand__racing { color: #333; font-size: 13px; font-weight: 700; letter-spacing: .28em; }
.masthead__contact { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 14px; }
.masthead__contact a { color: var(--jsw-red); font-weight: 700; }
.nav-toggle { display: none; margin-left: auto; border: 1px solid #ccc; background: #fff; padding: 8px 12px; }
.main-nav { background: #222; color: #fff; border-bottom: 3px solid var(--jsw-red); }
.main-nav ul { list-style: none; padding: 0; margin: 0; }
.main-nav > .shell > ul { display: flex; align-items: stretch; }
.main-nav li { position: relative; }
.main-nav > .shell > ul > li > a { display: block; padding: 15px 18px; font-size: 14px; font-weight: 700; }
.main-nav > .shell > ul > li:hover > a, .main-nav > .shell > ul > li:focus-within > a { background: var(--jsw-red); color: #fff; }
.has-submenu > button { display: none; }
.submenu { position: absolute; z-index: 80; min-width: 265px; left: 0; top: 100%; background: #fff; color: #333; box-shadow: 0 14px 28px rgba(0,0,0,.16); opacity: 0; visibility: hidden; transform: translateY(5px); transition: .16s ease; }
.submenu li a { display: block; padding: 10px 14px; border-bottom: 1px solid #eee; }
.has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-contact { margin-left: auto; }
.nav-contact > a { background: var(--jsw-red); }
.site-messages { background: #eef8ee; border-bottom: 1px solid #c9e5c9; text-align: center; padding: 7px 16px; }
.site-messages p { margin: 0; }

/* Legacy homepage compatibility layer: new CSS, old information order. */
.legacy-home > .flash { overflow: hidden; background: #111; }
.flash .bxslider { list-style: none; padding: 0; margin: 0; position: relative; }
.flash .bxslider > li { display: none; margin: 0; }
.flash .bxslider > li.is-active { display: block; }
.flash .bxslider img { display: block; width: 100%; max-height: 680px; object-fit: cover; }
.flash .bx-controls, .bx-pager { display: none !important; }
.legacy-home > div:not(.flash):not(.news_box) { padding-block: 34px; }
.product_index { padding-block: 24px 40px; }
.product_head { text-align: center; margin-bottom: 24px; }
.product_head h2, .legacy-home h2 { margin: 0; color: #38383a; font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.product_head p { margin: 2px 0 0; font-family: Georgia, serif; font-size: 16px; }
.row { display: flex; flex-wrap: wrap; margin-inline: -8px; }
.row > [class*="col-"] { padding-inline: 8px; width: 100%; }
.product_list .row, .legacy-home .row { row-gap: 16px; }
.pro-index, .product_img { background: #fff; border: 1px solid #eee; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.pro-index:hover, .product_img:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.09); }
.pro-index img, .product_img img { width: 100%; display: block; }
.pro-index p, .pro-index h3, .product_img p, .product_img h3 { margin: 0; padding: 10px 12px; }
.legacy-home .about, .legacy-home [class*="about_"] { max-width: 100%; }
.about_h2 { font-size: 32px; color: #292929; }
.news_box { background: #f7f7f7; padding: 42px 0; }
.news_head { text-align: center; margin-bottom: 22px; }
.news_con { background: #fff; border: 1px solid #e8e8e8; padding: 0 !important; }
.news_con img { width: 100%; }
.our_service { padding-block: 20px; }

/* Legacy inner-page compatibility. */
.breadcrumb-wrap { background: #f6f6f6; border-bottom: 1px solid var(--line); }
.breadcrumb { min-height: 46px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: #777; }
.legacy-page { padding-block: 34px 56px; }
.legacy-page__title { font-size: clamp(28px, 4vw, 42px); line-height: 1.18; margin: 0 0 24px; color: #222; }
.legacy-content { min-height: 280px; }
.legacy-content h1, .legacy-content h2, .legacy-content h3 { line-height: 1.25; color: #292929; }
.legacy-content .list_h2 { font-size: 24px; border-left: 4px solid var(--jsw-red); padding-left: 12px; }
.legacy-content .page_bg { min-height: 240px; margin: -34px calc(50% - 50vw) 28px; background-size: cover !important; }
.legacy-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.legacy-content td, .legacy-content th { border: 1px solid #ddd; padding: 8px 10px; }
.legacy-content ul, .legacy-content ol { padding-left: 22px; }
.legacy-content .right_contents img, .legacy-content .product_img img { height: auto !important; }
.legacy-content [style*="width"] { max-width: 100%; }
.legacy-content iframe { max-width: 100%; }

/* Approximate legacy Bootstrap column widths without importing Bootstrap/JCCMS. */
@media (min-width: 768px) {
  .col-sm-3 { width: 25% !important; }
  .col-sm-4 { width: 33.333% !important; }
  .col-sm-6 { width: 50% !important; }
  .col-sm-8 { width: 66.666% !important; }
  .col-sm-9 { width: 75% !important; }
  .col-sm-12 { width: 100% !important; }
}
@media (min-width: 992px) {
  .col-md-2 { width: 16.666% !important; }
  .col-md-3 { width: 25% !important; }
  .col-md-4 { width: 33.333% !important; }
  .col-md-5 { width: 41.666% !important; }
  .col-md-6 { width: 50% !important; }
  .col-md-7 { width: 58.333% !important; }
  .col-md-8 { width: 66.666% !important; }
  .col-md-9 { width: 75% !important; }
  .col-md-10 { width: 83.333% !important; }
  .col-md-12 { width: 100% !important; }
}

.site-footer { background: var(--footer); color: #eee; padding-top: 46px; font-size: 13px; }
.site-footer a { color: #fff; }
.site-footer h2 { margin: 0 0 16px; font-size: 19px; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .8fr 1fr 1.45fr; gap: 34px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-inquiry form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.footer-inquiry label { display: grid; gap: 3px; color: #ccc; font-size: 11px; }
.footer-inquiry label:has(textarea), .footer-inquiry button { grid-column: 1 / -1; }
.footer-inquiry input, .footer-inquiry textarea { width: 100%; border: 1px solid #555; background: #272727; color: #fff; padding: 8px 9px; border-radius: 2px; }
.footer-inquiry button { border: 0; background: var(--jsw-red); color: #fff; font-weight: 700; padding: 10px 14px; cursor: pointer; }
.footer-bar { border-top: 1px solid #555; margin-top: 34px; padding: 13px 0; color: #bbb; text-align: center; }

@media (max-width: 900px) {
  .top-strip__inner { align-items: flex-start; padding-block: 8px; flex-direction: column; }
  .masthead { min-height: 74px; }
  .masthead__contact { display: none; }
  .brand__jsw { font-size: 38px; }
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav > .shell > ul { display: block; }
  .main-nav > .shell > ul > li > a { padding: 12px 4px; border-bottom: 1px solid #444; }
  .has-submenu > button { display: block; position: absolute; right: 0; top: 4px; width: 42px; height: 38px; border: 0; background: transparent; color: #fff; font-size: 24px; }
  .submenu { position: static; display: none; visibility: visible; opacity: 1; transform: none; box-shadow: none; background: #2d2d2d; color: #fff; }
  .submenu.is-open { display: block; }
  .submenu li a { border-color: #444; padding-left: 18px; }
  .nav-contact { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .shell, .container { width: min(calc(100% - 22px), var(--shell)); }
  .social-links { display: none; }
  .legacy-home > div:not(.flash):not(.news_box) { padding-block: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-inquiry form { grid-template-columns: 1fr; }
  .footer-inquiry label, .footer-inquiry label:has(textarea), .footer-inquiry button { grid-column: 1; }
  .legacy-page { padding-block: 24px 40px; }
  .legacy-content .page_bg { min-height: 150px; }
}
