/* Gene Rate | BIOMOD 2026 — Shared style. Edit colors in :root */
:root{--paper:#f8f5ef;--paper2:#fffdf9;--ink:#1b2223;--muted:#5a6465;--red:#ad3035;--line:#d8d1c8;--footer:#182021;--max:1120px;--sans:Arial,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;--serif:Georgia,"Noto Serif JP","Yu Mincho",serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.9 var(--sans);-webkit-font-smoothing:antialiased}
body:before{content:"";position:fixed;inset:0;background:url('assets/paper.svg') repeat;opacity:.075;pointer-events:none;z-index:0}a{color:inherit}a:focus-visible,button:focus-visible{outline:3px solid var(--red);outline-offset:4px}img{max-width:100%}.container{max-width:var(--max);margin:0 auto;padding:0 28px}.site-header{position:sticky;top:0;z-index:20;background:rgba(248,245,239,.97);border-bottom:1px solid var(--line)}.header-inner{max-width:1280px;margin:auto;min-height:85px;padding:13px 28px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{text-decoration:none;display:inline-flex;flex-direction:column;line-height:1.12;white-space:nowrap}.brand-name{font:700 32px/1.1 var(--serif);letter-spacing:-1.2px}.brand-name b{color:var(--red)}.brand-caption{font:600 10px/1.3 var(--sans);letter-spacing:3px;margin-top:6px;color:var(--muted)}.nav{display:flex;flex-wrap:wrap;align-items:center;column-gap:21px;row-gap:7px}.nav a{text-decoration:none;font-size:13px;font-weight:600;line-height:2;padding:8px 0;position:relative}.nav a:hover,.nav a[aria-current="page"]{color:var(--red)}.nav a[aria-current="page"]:after{content:"";height:2px;background:var(--red);position:absolute;left:0;right:0;bottom:2px}.nav a[aria-current="page"]:before{content:"";display:inline-block;width:12px;height:12px;clip-path:polygon(50% 0,63% 37%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 37%);background:var(--red);margin-right:7px;vertical-align:-1px}.menu-toggle{display:none;background:transparent;border:1px solid var(--line);border-radius:4px;padding:9px 13px;font:600 14px var(--sans);color:var(--ink)}
.hero{border-bottom:1px solid var(--line);background:var(--paper2)}.hero-grid{max-width:1440px;margin:auto;display:grid;grid-template-columns:1fr 1fr;min-height:440px}.hero-copy{padding:70px 40px 75px max(40px,calc((100vw - var(--max))/2));align-self:center}.eyebrow{text-transform:uppercase;letter-spacing:4px;color:var(--red);font-size:12px;font-weight:700}.hero h1{font:500 clamp(49px,6vw,86px)/1.09 var(--serif);letter-spacing:-2px;margin:23px 0}.hero h1 .dot{color:var(--red)}.lead{font-size:19px;line-height:1.9;font-weight:500;margin:10px 0 24px}.english-lead{color:var(--muted);font:16px/1.8 var(--serif);margin-bottom:26px}.hero-visual{background:linear-gradient(90deg,rgba(248,245,239,.1),transparent),url('assets/hero-lab.jpg') center/cover no-repeat;min-height:360px;border-left:1px solid var(--line)}.btn{display:inline-flex;gap:35px;align-items:center;padding:12px 22px;background:var(--red);color:white;text-decoration:none;font-weight:700;font-size:14px}.btn:hover{background:#84242b}.content{padding:68px 0 100px}.section-kicker{color:var(--red);font-size:12px;letter-spacing:2px;font-weight:700;text-transform:uppercase}.section-title{display:flex;gap:14px;align-items:center;font:500 clamp(30px,4vw,43px)/1.3 var(--serif);margin:14px 0 24px}.shuriken{display:inline-block;flex:none;width:21px;height:21px;background:var(--red);clip-path:polygon(50% 0,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0 50%,39% 36%);position:relative}.section-heading{margin-bottom:28px}.intro{font-size:17px;line-height:2;max-width:780px}.chapter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:38px}.chapter{background:rgba(255,255,255,.57);border:1px solid var(--line);padding:24px 20px;min-height:180px;text-decoration:none;transition:transform .15s,border-color .15s}.chapter:hover{transform:translateY(-3px);border-color:var(--red)}.chapter-top{display:flex;align-items:center;gap:10px;color:var(--red);font:500 23px var(--serif)}.chapter-top .shuriken{width:16px;height:16px}.chapter h3{font:600 24px var(--serif);margin:13px 0 4px}.chapter p{font-size:14px;color:var(--muted);line-height:1.7;margin:0}.page-banner{padding:65px 0 42px;border-bottom:1px solid var(--line);background:var(--paper2)}.page-banner h1{font:500 clamp(48px,6vw,72px)/1.15 var(--serif);margin:12px 0}.page-banner p{max-width:700px;color:var(--muted);font-size:17px}.prose{max-width:830px}.prose h2{font:600 30px var(--serif);margin:45px 0 13px;padding-bottom:8px;border-bottom:1px solid var(--line)}.prose p{line-height:2}.note{border-left:3px solid var(--red);background:rgba(255,255,255,.6);padding:19px 24px;margin:25px 0;color:var(--muted)}.site-footer{background:var(--footer);color:#f5f1ea;padding:51px 0 22px;position:relative}.footer-main{display:flex;align-items:flex-start;justify-content:space-between;gap:32px}.footer-main .brand-name{font-size:30px}.footer-main .brand-caption{color:#b0bbb8}.footer-links{display:flex;flex-wrap:wrap;gap:14px 19px;max-width:700px}.footer-links a{font-size:13px;color:#e1e5e0;text-decoration:none}.footer-links a:hover{color:#fff;text-decoration:underline}.footer-bottom{border-top:1px solid #41494a;margin-top:37px;padding-top:18px;color:#b2bcba;font-size:12px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}
@media(max-width:1060px){.nav{gap:8px 13px}.nav a{font-size:12px}.brand-name{font-size:27px}.chapter-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:740px){.header-inner{min-height:70px;padding:12px 20px;flex-wrap:wrap}.menu-toggle{display:inline-block}.nav{display:none;width:100%;padding:8px 0 12px;flex-direction:column;align-items:stretch;gap:0}.nav.is-open{display:flex}.nav a{font-size:15px;padding:7px 2px}.hero-grid{grid-template-columns:1fr}.hero-copy{padding:55px 24px}.hero-visual{min-height:265px;border-left:0;border-top:1px solid var(--line)}.container{padding:0 22px}.content{padding:48px 0 65px}.chapter-grid{grid-template-columns:repeat(2,1fr);gap:12px}.chapter{padding:19px 15px;min-height:165px}.chapter h3{font-size:21px}.footer-main{flex-direction:column}.page-banner{padding:44px 0 30px}}@media(max-width:430px){.chapter-grid{grid-template-columns:1fr}.hero h1{font-size:55px}.lead{font-size:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.chapter{transition:none}}

/* 2026 seven-page edition: improve readability */
:root{--muted:#485354}
body{font-size:17px;line-height:1.85}
.nav a{font-size:14px}
.prose{max-width:880px}
.prose h2{font-family:var(--sans);font-size:26px;letter-spacing:.01em}
.prose h3{font-size:20px;margin-top:32px}
.page-banner h1{font-weight:600}
.section-title{font-weight:600}
.footer-links a{font-size:14px}
@media(max-width:1060px){.nav a{font-size:13px}}

/* ===============================================================
   aQtSOME 2026 / shared header & footer. The ONLY CSS to update.
   Everything scoped to .site-header and .site-footer: page content
   and interactive MscL simulator remain unaffected.
   =============================================================== */
:root{--aqs-chrome-navy:#182f5c;--aqs-chrome-paper:#ffffea;--aqs-chrome-orange:#ff9b2e}
body .site-header{position:sticky;top:0;z-index:100;background:var(--aqs-chrome-paper)!important;border-bottom:1px solid rgba(24,47,92,.15)}
body .site-header .header-inner{max-width:1330px!important;min-height:105px!important;margin:0 auto!important;padding:14px clamp(20px,3.5vw,45px)!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:24px!important}
body .site-header .brand.aqs-logo-link{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;min-width:0;text-decoration:none!important;max-width:none!important;white-space:nowrap;line-height:1.15}
body .site-header .aqs-brand-image{display:block;width:205px!important;max-width:205px!important;max-height:92px!important;height:auto!important;object-fit:contain;object-position:left}
body .site-header .aqs-brand-image[hidden]{display:none!important}
body .site-header .aqs-logo-fallback{font:900 31px/1.1 Arial,sans-serif;color:var(--aqs-chrome-navy)}
body .site-header .aqs-logo-fallback .aqs-orange{color:var(--aqs-chrome-orange)}
body .site-header .aqs-brand-caption{display:none!important}
body .site-header .nav{display:flex!important;align-items:center!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:16px!important;width:auto!important;padding:0!important}
body .site-header .nav a{display:inline-flex!important;align-items:center!important;gap:7px!important;font:700 15px/1.8 Arial,sans-serif!important;padding:8px 0!important;color:var(--aqs-chrome-navy)!important;text-decoration:none!important;white-space:nowrap;position:relative}
body .site-header .nav a:hover{color:#c77315!important}
body .site-header .nav a[aria-current="page"]{color:var(--aqs-chrome-navy)!important}
body .site-header .nav a[aria-current="page"]::before{display:none!important;content:none!important}
body .site-header .nav a[aria-current="page"]::after{content:""!important;position:absolute;bottom:2px;left:0;right:0;height:2px;background:var(--aqs-chrome-orange)!important}
body .site-header .nav .aqs-star{display:inline-block!important;width:16px!important;min-width:16px!important;max-width:16px!important;height:16px!important;max-height:16px!important;color:var(--aqs-chrome-orange)!important;vertical-align:middle}
body .site-header .menu-toggle{display:none!important}
body .site-footer{position:relative;background:#1a202c!important;color:var(--aqs-chrome-paper)!important;padding:48px 0 21px!important;font-family:Arial,Helvetica,sans-serif!important}
body .site-footer .footer-inner{width:100%;max-width:1330px;margin:0 auto;padding:0 clamp(20px,3.5vw,45px)}
body .site-footer .footer-top{display:flex;align-items:flex-start;justify-content:space-between;gap:36px}
body .site-footer .aqs-footer-identity{display:flex;align-items:flex-start;flex-direction:column;gap:0;min-width:175px}
body .site-footer .aqs-footer-logo{display:inline-flex;align-items:center;text-decoration:none}
body .site-footer .aqs-footer-logo img{display:block;width:210px!important;max-width:220px!important;height:auto!important;max-height:105px!important;object-fit:contain;object-position:left}
body .site-footer .aqs-footer-logo img[hidden]{display:none!important}
body .site-footer .aqs-footer-fallback{font:900 29px/1.1 Arial,sans-serif;color:var(--aqs-chrome-paper)}
body .site-footer .aqs-footer-fallback span{color:var(--aqs-chrome-orange)}
body .site-footer .aqs-footer-identity p{color:#d5d9db;font:400 13px/1.6 Arial,sans-serif;margin:6px 0 0}
body .site-footer .footer-nav{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:11px 19px;max-width:740px}
body .site-footer .footer-nav a{font:400 15px/1.7 Arial,sans-serif;color:#f5f1ea!important;text-decoration:none}
body .site-footer .footer-nav a:hover{text-decoration:underline;color:#ffffff!important}
body .site-footer .footer-nav a[aria-current="page"]{color:var(--aqs-chrome-orange)!important}
body .site-footer .footer-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid rgba(255,255,234,.18);margin-top:37px;padding-top:18px;color:#bcc6cd;font:400 12px/1.6 Arial,sans-serif}
@media(max-width:1020px){
 body .site-header .header-inner{min-height:90px!important;flex-wrap:wrap!important}
 body .site-header .menu-toggle{display:flex!important;flex:0 0 auto;flex-direction:column!important;align-items:center;justify-content:center;gap:5px;width:44px;height:43px;padding:10px!important;cursor:pointer;background:transparent!important;border:1px solid rgba(24,47,92,.3);border-radius:4px}
 body .site-header .menu-toggle span{display:block;width:22px;height:2px;border-radius:3px;background:var(--aqs-chrome-navy)}
 body .site-header .nav{display:none!important;flex-direction:column!important;align-items:stretch!important;flex-basis:100%;width:100%!important;gap:0!important;padding:9px 0 13px!important}
 body .site-header .nav.is-open,body .site-header .nav.open{display:flex!important}
 body .site-header .nav a{white-space:normal!important;padding:8px 2px!important;font-size:15px!important}
 body .site-header .nav a[aria-current="page"]::after{bottom:4px}
}
@media(max-width:700px){
 body .site-header .header-inner{min-height:80px!important;padding:11px 20px!important}
 body .site-header .aqs-brand-image{width:170px!important;max-width:170px!important;max-height:75px!important}
 body .site-footer{padding-top:34px!important}
 body .site-footer .footer-top{flex-direction:column;gap:24px}
 body .site-footer .footer-nav{justify-content:flex-start}
 body .site-footer .aqs-footer-logo img{width:180px!important;max-width:180px!important;max-height:90px!important}
}


/* Accessibility: keep "Skip to content" hidden until keyboard focus. */
body a.skip-link,
body .skip-link {
  position: fixed !important;
  z-index: 10000 !important;
  top: 12px !important;
  left: 12px !important;
  padding: 10px 16px !important;
  background: #ffffea !important;
  color: #182f5c !important;
  border: 2px solid #182f5c !important;
  border-radius: 4px !important;
  font: 700 14px/1.4 Arial, sans-serif !important;
  text-decoration: none !important;
  transform: translateY(calc(-100% - 28px)) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body a.skip-link:focus,
body a.skip-link:focus-visible,
body .skip-link:focus,
body .skip-link:focus-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  outline: 3px solid #ff9b2e !important;
  outline-offset: 3px !important;
}
