.cms-cover{display:block;color:inherit}
.cms-cover img{transition:transform .45s cubic-bezier(.2,.72,.25,1)}
.card:hover .cms-cover img{transform:scale(1.025)}
.cms-position{margin-bottom:14px;color:#715b4d;font-size:.9rem}
.cms-position a{color:var(--red)}
.cms-article{max-width:980px}
.cms-article-head{text-align:center;margin-bottom:24px}
.cms-meta{display:flex;justify-content:center;gap:20px;margin-top:12px;color:#776356;font-size:.9rem}
.cms-article-cover{width:min(100%,760px);max-height:520px;margin:0 auto 24px;object-fit:contain;border-radius:8px}
.cms-article:has(.cms-report-text) .cms-article-cover{display:none}
.cms-content{min-height:160px;padding:clamp(18px,3.5vw,42px);overflow-wrap:anywhere;background:#fffaf380;border:1px solid var(--line);border-radius:9px;font-size:1.05rem;line-height:1.9}
.cms-content>*+*{margin-top:1em}
.cms-content img,.cms-content video{max-width:100%;height:auto;margin-inline:auto}
.cms-article .cms-content a[href$=".pdf"]{color:var(--red);text-decoration:underline;text-underline-offset:.2em}
.cms-report-text h2{font-size:clamp(1.35rem,2.35vw,2.15rem);line-height:1.4}
.cms-report-text h3{margin-top:1.4em;font-size:1.13em;line-height:1.5}
.cms-report-text p{margin-top:.8em}
.cms-content table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}
.cms-content td,.cms-content th{padding:8px;border:1px solid var(--line)}
.contact-layout{display:grid;gap:clamp(14px,2.4vw,32px);align-items:start}
.cms-live .contact-message-slot{display:block!important}
.contact-message{scroll-margin-top:90px}
.contact-message > p{color:#715b4d}
.contact-form{display:grid;gap:16px}
.contact-form label{display:grid;gap:6px;min-width:0}
.contact-required{color:var(--red)}
.contact-form :is(input:not([type=hidden]),select,textarea){
  width:100%;min-width:0;min-height:44px;padding:9px 12px;
  border:1px solid var(--line);border-radius:6px;background:#fffbf6;
  color:inherit;font:inherit;
}
.contact-form textarea{min-height:120px;resize:vertical}
.contact-form :is(input,select,textarea,button):focus-visible{outline:2px solid var(--red);outline-offset:2px}
.contact-form-wide{grid-column:1/-1}
.contact-form-captcha{display:flex;align-items:end;gap:12px}
.contact-captcha-refresh{padding:0;border:1px solid var(--line);border-radius:5px;overflow:hidden;cursor:pointer}
.contact-captcha-refresh img{max-width:110px;height:42px;object-fit:contain}
.contact-submit{justify-self:start;min-height:44px;cursor:pointer}
@media(min-width:761px){
  .cms-live .contact-layout,.cms-single.contact-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
  .contact-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.cms-prenext{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.cms-prenext p{font-size:.92rem}
.cms-product-nav{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;margin-bottom:14px}
.cms-product-nav .cms-position{margin:0}
.cms-product-hero{padding:clamp(16px,3vw,34px);background:#fffaf380;border:1px solid var(--line);border-radius:9px}
.cms-product-main{width:min(100%,760px);height:min(46vw,430px);margin-inline:auto;object-fit:contain}
.cms-detail-banner,.about-hero{--inner-banner-image:url(../../../uploads/shenba/inner-banner.jpg)}
.cms-detail-banner{
  position:relative;
  isolation:isolate;
  display:grid;
  align-items:center;
  min-height:clamp(200px,28vw,430px);
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:#f3e5d9 var(--inner-banner-image) center bottom/cover no-repeat;
}
.cms-detail-banner img{
  position:absolute;
  z-index:-2;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center bottom;
}
.cms-category-banner{min-height:clamp(190px,24vw,360px)}
.cms-live .cms-managed.cms-category-hero{display:block!important}
.cms-detail-banner::before{
  position:absolute;
  z-index:-1;
  inset:0;
  content:"";
  background:linear-gradient(90deg,#f6eae0f2 0%,#f6eae0eb 37%,#f6eae0b3 57%,#f6eae000 83%);
}
.cms-detail-banner-copy{padding-block:clamp(30px,5vw,68px);overflow-wrap:anywhere}
.cms-detail-banner-copy h1{
  max-width:min(64%,16em);
  color:#291b15;
  font-size:clamp(1.85rem,3.5vw,3.4rem);
  line-height:1.24;
}
.cms-detail-banner-copy h1::after{
  display:block;
  width:44px;
  height:3px;
  margin-top:clamp(12px,2vw,21px);
  content:"";
  background:var(--red);
}
.cms-detail-banner-copy p{
  max-width:min(62%,36em);
  margin-top:12px;
  color:#50382c;
  font-size:clamp(.98rem,1.36vw,1.2rem);
  line-height:1.7;
}
.cms-product-album{margin-top:clamp(25px,4vw,48px)}
.cms-product-album-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));
  gap:14px;
}
.cms-product-album-item{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffaf3c9;
}
.cms-product-album-item img{width:100%;aspect-ratio:4/3;object-fit:contain}
.cms-product-album-item span{padding:8px 12px;border-top:1px solid var(--line);font-size:.92rem}
.cms-product-album-item:hover span{text-decoration:underline;text-underline-offset:3px}
.cms-product-content{margin-top:clamp(25px,4vw,48px)}
.cms-pagination{margin:26px 0 8px}
.cms-pagination ul{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin:0;padding:0;list-style:none}
.cms-pagination a,.cms-pagination span{display:grid;min-width:36px;height:36px;padding:0 10px;place-items:center;border:1px solid var(--line);border-radius:5px;background:#fffaf380}
.cms-pagination .active,.cms-pagination a:hover{border-color:var(--red);background:var(--red);color:#fff8ed}
.empty-state{grid-column:1/-1;padding:42px 16px;text-align:center;color:#715b4d;border:1px dashed var(--line);border-radius:9px}
#news .news h2,.product h2,.tile h2{font-size:clamp(1rem,1.7vw,1.42rem);line-height:1.35}
#news .news time{color:#897266;font-size:.8rem}

.about-page{overflow:hidden}
.about-hero{position:relative;min-height:clamp(430px,47vw,650px);background:#f3e5d9 var(--inner-banner-image) center bottom/cover no-repeat;border-bottom:1px solid #d6bfae}
.about-hero-grid{display:grid;grid-template-columns:minmax(0,.86fr) minmax(440px,1.14fr);align-items:center;min-height:inherit}
.about-hero-copy{position:relative;z-index:2;padding:clamp(52px,7vw,92px) 0 clamp(86px,10vw,132px) 4%}
.about-kicker{margin-bottom:10px;color:var(--red);font-family:ui-sans-serif,system-ui,-apple-system,"PingFang SC",sans-serif;font-size:.78rem;font-weight:700;letter-spacing:.16em}
.about-hero h1{display:flex;align-items:center;gap:20px;margin:0;font-size:clamp(4rem,8.5vw,7.4rem);font-weight:900;letter-spacing:-.09em;line-height:.92;text-wrap:balance}
.about-hero h1::after{content:"神霸生物";display:grid;width:40px;min-height:112px;padding:7px 6px;place-items:center;border-left:2px solid var(--red);border-right:1px solid #b7645d;color:var(--red);font-size:1rem;letter-spacing:.16em;line-height:1.08;writing-mode:vertical-rl}
.about-hero-lead{max-width:34em;margin:24px 0 0;font-size:clamp(1.05rem,1.65vw,1.35rem);font-weight:600;line-height:1.8;text-wrap:pretty}
.about-hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px}
.about-hero-actions .button{min-height:42px;padding-inline:22px}
.about-hero-product{position:relative;z-index:1;display:grid;height:100%;min-height:430px;place-items:center}
.about-hero-product::before{content:"";position:absolute;right:4%;bottom:8%;width:88%;height:30%;background:url(assets/bg-mountains.webp) right bottom/contain no-repeat;opacity:.82;pointer-events:none}
.about-hero-product a{position:relative;z-index:1;display:block;width:min(90%,720px);margin-top:12%}
.about-hero-product img{width:100%;max-height:360px;object-fit:contain;filter:drop-shadow(8px 18px 16px #5d372a35);transform:rotate(-1.2deg);transition:transform .45s cubic-bezier(.2,.72,.25,1)}
.about-hero-product a:hover img{transform:translateY(-7px) rotate(-.4deg)}

.about-facts{position:relative;z-index:2;margin-top:-54px}
.about-facts-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid #d7bdab;border-radius:20px;background:#fff8efdd;box-shadow:0 18px 42px #7f4b3420;backdrop-filter:blur(8px)}
.about-facts article{display:flex;min-width:0;min-height:108px;padding:22px 26px;flex-direction:column;justify-content:center}
.about-facts article+article{border-left:1px solid #d9c2b1}
.about-facts strong{color:var(--red);font-size:clamp(1.1rem,1.9vw,1.8rem);font-variant-numeric:tabular-nums;line-height:1.24;text-wrap:balance}
.about-facts span{margin-top:3px;color:#6b5245;font-size:.9rem}

.about-overview{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:clamp(34px,7vw,90px);align-items:center;padding-block:clamp(72px,9vw,118px) clamp(46px,7vw,88px);scroll-margin-top:84px}
.about-media{position:relative;padding:14px 14px 0;border:1px solid #d9bdab;border-radius:24px 8px 24px 8px;background:#fff9f1;box-shadow:0 25px 55px #81513a20}
.about-media::before{content:"";position:absolute;z-index:-1;left:-11%;bottom:-18%;width:58%;height:68%;border-radius:50%;background:radial-gradient(circle,#c54a3a2b,transparent 68%)}
.about-media video{display:block;width:100%;aspect-ratio:16/9;border-radius:15px 4px 15px 4px;background:#2a1813;object-fit:cover}
.about-media>p{padding:10px 3px 12px;color:#715b4d;font-size:.85rem;letter-spacing:.08em;text-align:right}
.about-overview-copy{max-width:38rem}
.about-overview-copy .section-head{margin-bottom:18px}
.about-overview-copy .section-head h2{font-size:clamp(2rem,4vw,3.35rem);letter-spacing:-.04em}
.about-richtext{font-size:1.05rem;line-height:2}
.about-richtext p{max-width:38em;text-wrap:pretty}
.about-overview-copy .more{margin-top:18px}

.about-section-heading{align-items:flex-end;margin-bottom:28px}
.about-section-heading>div{min-width:0}
.about-section-heading>p{max-width:34em;color:#766052;font-size:.9rem;text-align:right;text-wrap:pretty}

.about-history{position:relative;padding-block:clamp(52px,7vw,88px) clamp(82px,10vw,126px);background:linear-gradient(180deg,#f5e8dd33,#f0dccb88)}
.about-history::after{content:"";position:absolute;right:0;bottom:0;width:min(62%,900px);height:240px;background:url(assets/bg-mountains.webp) right bottom/contain no-repeat;opacity:.54;pointer-events:none}
.about-timeline{
  --track-inset:clamp(12px,1.8vw,24px);
  --node-x:calc(var(--track-inset) + 8px);
  --node-y:15px;
  position:relative;
  z-index:1;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(0,1fr);
  margin-top:42px;
}
.about-timeline-item{
  position:relative;
  padding:40px var(--track-inset) 0;
  overflow-wrap:anywhere;
}
.about-timeline-item:not(:last-child)::before{
  content:"";
  position:absolute;
  top:calc(var(--node-y) - 1px);
  left:var(--node-x);
  width:100%;
  height:2px;
  background:#b86250;
}
.about-timeline-dot{
  position:absolute;
  z-index:1;
  top:calc(var(--node-y) - 8px);
  left:calc(var(--node-x) - 8px);
  width:16px;
  height:16px;
  border:4px solid #f5e8dd;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 0 1px #a63e35;
}
.about-timeline-item h3{margin-bottom:9px;color:var(--red);font-size:clamp(1.2rem,2vw,1.65rem);font-variant-numeric:tabular-nums}
.about-timeline-item p{max-width:18em;color:#604d42;line-height:1.75;text-wrap:pretty}

@media(max-width:760px){
  .about-timeline{
    --node-x:14px;
    --node-y:13px;
    grid-auto-flow:row;
    grid-template-columns:minmax(0,1fr);
    margin-top:25px;
  }
  .about-timeline-item{padding:0 0 30px 42px}
  .about-timeline-item:last-child{padding-bottom:0}
  .about-timeline-item:not(:last-child)::before{
    top:var(--node-y);
    left:calc(var(--node-x) - 1px);
    width:2px;
    height:100%;
  }
  .about-timeline-item p{max-width:none}
}

.about-cta{display:flex;position:relative;z-index:2;min-height:210px;margin-top:-42px;margin-bottom:48px;padding:clamp(30px,5vw,58px);overflow:hidden;align-items:center;justify-content:space-between;gap:34px;border-radius:28px 8px 28px 8px;background:linear-gradient(118deg,#8c1d18e8,#a72e24e8),url(assets/bg-mountains.webp) right bottom/auto 110% no-repeat;color:#fff5e9;box-shadow:0 24px 55px #6b2b202c}
.about-cta .about-kicker{color:#efc7aa}
.about-cta h2{margin-bottom:9px;font-size:clamp(1.8rem,3.8vw,3rem)}
.about-cta p{max-width:46em;color:#f0d5c2}
.about-cta .button{flex:0 0 auto;border-color:#fff0df;background:#fff0df;color:#8f201b}
.about-cta .button:hover{background:white;color:#711511;transform:translateY(-2px)}

@media(max-width:650px){
  .cms-prenext{grid-template-columns:1fr}
  .cms-product-main{height:clamp(180px,70vw,280px)}
  .cms-detail-banner{min-height:clamp(168px,44vw,220px);background-position:63% bottom}
  .cms-category-banner{min-height:clamp(156px,42vw,205px)}
  .cms-detail-banner img{object-position:63% bottom}
  .cms-detail-banner::before{background:linear-gradient(90deg,#f6eae0f2,#f6eae0b8)}
  .cms-detail-banner-copy h1,.cms-detail-banner-copy p{max-width:100%}
  .cms-detail-banner-copy h1{font-size:clamp(1.5rem,6.4vw,2rem)}
  .cms-product-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .cms-content{padding:16px;font-size:1rem}
  .cms-meta{flex-wrap:wrap;gap:5px 14px}
  .about-hero{min-height:auto;background:none}
  .about-hero-grid{grid-template-columns:1fr}
  .about-hero-copy{padding:42px 0 20px;text-align:center}
  .about-hero h1{justify-content:center;gap:13px;font-size:clamp(3.45rem,18vw,5rem)}
  .about-hero h1::after{width:32px;min-height:88px;font-size:.78rem}
  .about-hero-lead{margin:18px auto 0;font-size:1rem}
  .about-hero-actions{justify-content:center;margin-top:20px}
  .about-hero-product{min-height:250px;height:auto;background:var(--inner-banner-image) 63% bottom/cover no-repeat}
  .about-hero-product a{width:min(90%,390px);margin:0 auto 18px}
  .about-hero-product img{max-height:225px}
  .about-hero-product::before{right:-8%;bottom:0;width:110%;height:42%}
  .about-facts{margin-top:0}
  .about-facts-grid{grid-template-columns:1fr 1fr;border-radius:0;border-inline:0;box-shadow:none}
  .about-facts article{min-height:92px;padding:17px 16px}
  .about-facts article+article{border-left:0}
  .about-facts article:nth-child(even){border-left:1px solid #d9c2b1}
  .about-facts article:nth-child(n+3){border-top:1px solid #d9c2b1}
  .about-facts strong{font-size:1.2rem}
  .about-overview{grid-template-columns:1fr;gap:32px;padding-block:56px 48px}
  .about-overview-copy{order:-1}
  .about-overview-copy .section-head h2{font-size:2.15rem}
  .about-richtext{font-size:1rem;line-height:1.9}
  .about-media{padding:8px 8px 0;border-radius:16px 5px 16px 5px}
  .about-section-heading{align-items:flex-start;flex-direction:column;gap:12px}
  .about-section-heading>p{text-align:left}
  .about-history{padding-block:48px 86px}
  .about-history::after{width:100%;height:170px;opacity:.35}
  .about-cta{min-height:0;margin-top:-32px;margin-bottom:30px;padding:28px 22px;align-items:flex-start;flex-direction:column;border-radius:18px 6px 18px 6px}
}
@media(prefers-reduced-motion:reduce){.cms-cover img,.about-hero-product img{transition:none}.card:hover .cms-cover img{transform:none}.about-hero-product a:hover img{transform:rotate(-1.2deg)}}
