:root {
  --gutter: clamp(16px, 3vw, 48px);
  --gap: clamp(14px, 2vw, 28px);
  --accent: #a71e25;
}

body { line-height: 1.7; overflow-wrap: anywhere; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
.main, .three, .five, .news {
  width: min(1440px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.five .main, .news ul.list, .three ul.pro { width: 100%; }
.head { position: sticky; top: 0; height: auto; }
.head > .main { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.head .logo { flex: 0 0 171px; margin: 0; }
.head .logo img { display: block; }
.menu { line-height: normal; }
.menu > ul { display: flex; align-items: center; }
.menu > ul > li { width: auto; padding: 0 9px; }
.menu > ul > li:last-child { width: auto; white-space: nowrap; }
.menu > ul > li > a { padding: 23px 0; white-space: nowrap; }
.menu ul li ul { top: 100%; min-width: 130px; box-shadow: 0 8px 24px #0002; }
.menu ul li:focus-within ul { display: block; }
.menu ul li ul li { width: auto; min-height: 40px; height: auto; padding-inline: 8px; }
.menu-toggle { display: none; }
#hbanner, #hbanner .Hslide a img { height: clamp(160px, 32vw, 599px); }
#hbanner .Hslide a img { object-fit: cover; object-position: center; }
.flex-direction-nav a:focus-visible { opacity: 1; }

.one ul, .product .make { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.one ul li { margin: 0; height: auto; padding: 0; background: none; }
.one ul li:hover { background: none; }
.one ul button { display: block; padding: 10px 16px; border: 0; border-radius: 4px; background: #202020; color: #fff; cursor: pointer; font: inherit; font-size: clamp(15px, 2vw, 22px); line-height: 1.4; }
.one ul button:hover, .one ul button[aria-pressed="true"] { background: var(--accent); }
.two, .three, .four, .five, .case { opacity: 1; transform: none; transition: none; }
.two .desc, .case .desc { position: static; width: auto; padding: 18px 0; line-height: 1.7; }
.two ul.on, .three ul.index, .three ul.pro, .five ul, .case ul.list, .news ul.list, .contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--gap);
  margin: 28px auto;
}
.two ul li:nth-child(n), .three ul.index li, .three ul.pro li:nth-child(n), .case ul.list li:nth-child(n),
.five ul li, .news ul.list li, .contact ul li {
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
  float: none;
}
.two ul li img, .three ul.index li img, .three ul.pro li img, .case ul.list li img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.two ul li font, .three ul.pro li font, .three ul.index li font, .case ul.list li font {
  position: static;
  width: auto;
  height: auto;
  padding: 10px;
  font-size: 17px;
  line-height: 1.5;
}
.two ul li:hover img, .three ul.index li:hover img, .three ul.pro li:hover img,
.three ul.index li:hover font, .case ul.list li:hover img, .five ul li:hover { transform: none; }
.three ul.index li:hover font { font-size: 17px; }
.three .htitle, .four .htitle, .five .htitle, .ctitle {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.35;
}
.three .desc, .five .desc { margin-top: 12px; line-height: 1.7; }
.four { height: auto; padding: clamp(32px, 6vw, 80px) 0; background-size: cover; }
.four .htitle { margin-top: 0; }
.four ul { display: flex; flex-wrap: wrap; gap: var(--gap); margin-top: 24px; }
.four ul li { float: none; width: auto; flex: 1 1 100px; font-size: 16px; }
.four ul li font { font-size: clamp(26px, 4vw, 48px); line-height: 1.3; }
.five .left, .five .first, .news .first { width: calc(50% - var(--gap) / 2); }
.five .left a img { width: 100%; height: auto; aspect-ratio: 2.7; object-fit: cover; }
.five .first, .news .first { height: auto; padding: var(--gap); }
.five .ntitle, .news .ntitle, .five ul li .ntitle, .news ul.list li .ntitle { line-height: 1.5; }
.five .newa, .news .newa { position: static; margin-top: 10px; }
.news ul.list li .ndesc { height: auto; }

.tree { height: auto; line-height: 1.5; }
.tree > .main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-block: 8px; }
.tree ul { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.tree ul li, .tree ul li a { float: none; width: auto; height: auto; }
.tree ul li a { font-size: 16px; padding: 5px 8px; }
.tree .right { text-align: start; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.product .left, .product .right { width: auto; min-height: 0; float: none; }
.product .left { background: none; }
.product > .clear { display: none; }
.product .pcont { grid-column: 1 / -1; }
.product .make { justify-content: flex-start; }
.product .make a { float: none; margin: 0; max-width: 100%; }
.product-gallery img { display: block; width: 100%; height: auto; background: #f5f5f5; }
.product-gallery img[hidden], .gallery-thumbs[hidden] { display: none; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gallery-thumbs button { padding: 3px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.gallery-thumbs img { display: block; width: 54px; height: 54px; object-fit: contain; }
.pcont img, .cont img, .ncont img { height: auto !important; max-width: 100% !important; }
.pcont, .cont { overflow-x: auto; }
.case .soso { margin-top: 20px; }
.case .soso select { width: min(300px, 90%); }
.flexslider { max-width: 100%; height: auto; }
.flexslider .slides a img { height: auto; }
.ncont .left { width: calc(75% - var(--gap)); }
.ncont .right { width: 25%; }
.contact ul > .clear { display: none; }
.contact ul li { padding: var(--gap); }
.contact .addr img { height: auto !important; max-width: 100% !important; }
.contact ul li .tel, .contact ul li .addr { width: auto; float: none; background: none; line-height: 1.5; }
.book h2 { padding-left: 0; }
.book input, .book textarea, .book .wid1170 { max-width: 100%; padding-inline: 16px; }
.book .submit { margin-left: 0; }
.foot .left, .foot .right { float: none; width: auto; margin-top: 24px; }
.foot .left img { margin: 28px 0 14px; }
.foot .left input[type="image"] { margin: 0; }
.foot .sotext { width: min(264px, 70%); }
.foot .right { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 14px; }
.foot .right ul, .foot .right ul:last-child { width: auto; float: none; }
.foot .copyright { padding: 16px 0; line-height: 1.6; }

@media (max-width: 960px) {
  .head > .main { min-height: 64px; }
  .menu-toggle { display: block; padding: 8px 14px; border: 1px solid #aaa; border-radius: 4px; background: #111; color: #fff; font: inherit; }
  .menu { position: absolute; inset: 100% 0 auto; max-height: 70vh; overflow: auto; background: #161616; }
  .menu-toggle[aria-expanded="false"] + .menu { display: none; }
  .menu > ul { display: block; padding: 8px var(--gutter); }
  .menu > ul > li { float: none; padding: 0; }
  .menu > ul > li > a { text-align: start; padding: 10px 0; }
  .menu > ul > li:last-child { text-align: start; padding: 10px 0; }
  .menu ul li:hover ul, .menu ul li:focus-within ul { display: none; }
}

@media (max-width: 680px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .five .left, .five .first, .news .first, .ncont .left, .ncont .right { float: none; width: 100%; }
  .bottom ul li { float: none; width: 100%; margin-bottom: 16px; }
  .book input, .book textarea, .book .mar24 { width: 100%; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
