:root{
  --navy:#0b2038;
  --navy2:#11375a;
  --blue:#1677e8;
  --cyan:#20bcd1;
  --paper:#f6f9fc;
  --white:#fff;
  --text:#10233d;
  --muted:#60748a;
  --line:#dce7ef;
  --shadow:0 18px 50px rgba(38,74,106,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:#f7fafc;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;
}
a{color:inherit}
img{display:block;max-width:100%}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:34px;
  padding:16px clamp(20px,5vw,76px);
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(152,180,202,.25);
  backdrop-filter:blur(18px);
}
.brand{display:flex;flex-direction:column;text-decoration:none;line-height:1.05}
.brand strong{font-size:18px;letter-spacing:1.6px}
.brand span{font-size:10px;color:#3a8db4;letter-spacing:1.8px;margin-top:5px}
.nav{display:flex;justify-content:center;gap:28px}
.nav a{text-decoration:none;font-size:13px;font-weight:700;color:#52667a}
.header-cta{
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  padding:11px 18px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#1680e8,#1dbfd0);
}

.hero{
  max-width:1440px;
  margin:auto;
  padding:64px clamp(22px,5vw,74px) 72px;
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:54px;
  align-items:center;
  min-height:690px;
}
.kicker{
  margin:0 0 14px;
  font-size:12px;
  letter-spacing:.18em;
  font-weight:900;
  color:#138caf;
}
.hero h1,
.section-head h2,
.contact-section h2{
  margin:0;
  color:#0b2038;
  letter-spacing:-.04em;
}
.hero h1{font-size:clamp(46px,5.1vw,76px);line-height:1.13}
.lead{margin:28px 0 0;font-size:19px;line-height:1.85;color:#53697e}
.hero-actions{display:flex;gap:14px;margin-top:34px}
.btn{
  min-height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 27px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
}
.btn-primary{color:#fff;background:linear-gradient(135deg,#1678df,#22bdcf);box-shadow:0 14px 32px rgba(20,132,195,.22)}
.btn-secondary{background:#fff;border:1px solid #aac7d9;color:#183a55}
.hero-visual{
  border-radius:32px;
  overflow:hidden;
  background:#061627;
  box-shadow:0 30px 80px rgba(31,71,109,.18);
}
.hero-visual img{width:100%;aspect-ratio:1.45/1;object-fit:cover}

.section{max-width:1240px;margin:auto;padding:92px 42px}
.section-head{max-width:770px;margin-bottom:42px}
.section-head.centered{text-align:center;margin-left:auto;margin-right:auto}
.section-head h2{font-size:clamp(34px,4vw,54px);line-height:1.2}
.section-head>p:last-child{font-size:17px;line-height:1.8;color:var(--muted)}

.about-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:24px}
.card{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}
.about-copy{padding:34px}
.about-copy h3{margin:0 0 18px;font-size:24px}
.about-copy p{margin:0;color:var(--muted);line-height:1.9;font-size:16px}
.before-after{padding:28px;display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center}
.eyelabel{font-size:10px;font-weight:900;letter-spacing:.16em;color:#6790a8}
.before-after h3{margin:8px 0 12px}
.after{padding:20px;border-radius:18px;background:#edf8fc}
.arrow{font-size:28px;color:#3c9ebf}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips span{padding:7px 9px;border-radius:999px;background:#f1f5f8;font-size:12px}

.architecture-section{
  background:linear-gradient(180deg,#edf6fb,#f9fcfe);
  border-top:1px solid #d9e8f1;
  border-bottom:1px solid #d9e8f1;
}
.architecture-cards{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
}
.arch-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:24px;
  min-height:210px;
  box-shadow:0 16px 42px rgba(34,76,110,.08);
}
.arch-card .icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:14px;
  font-size:20px;
  margin-bottom:20px;
  background:#eaf6fc;
  color:#158eb3;
}
.arch-card h3{margin:0 0 8px;font-size:20px}
.arch-card strong{font-size:13px;color:#1b9ab9}
.arch-card p{font-size:14px;line-height:1.7;color:var(--muted)}
.arch-core{background:linear-gradient(160deg,#f3f0ff,#fff)}
.arch-workflow{background:linear-gradient(160deg,#effbf5,#fff)}
.arch-studio{background:linear-gradient(160deg,#fff7ec,#fff)}
.arch-market{background:linear-gradient(160deg,#fff1f7,#fff)}

.product-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}
.product-card{
  min-width:0;
  overflow:hidden;
  border-radius:24px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
/* Let each desktop/mobile artwork determine its own height without cropping. */
.product-image{
  width:100%;
  padding:0;
  background:var(--white);
  border-radius:23px 23px 0 0;
  overflow:hidden;
}
.product-image picture{
  display:block;
  width:100%;
  height:auto;
}
.product-image img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  object-fit:contain;
}
.product-body{padding:26px}
.product-body h3{margin:7px 0 10px;font-size:25px}
.product-body p{margin:0;color:var(--muted);line-height:1.75}
.product-wide{grid-column:1/-1}

.contact-section{
  max-width:1180px;
  margin:20px auto 96px;
  padding:50px 56px;
  border-radius:30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:28px;
  background:linear-gradient(135deg,#e9f5fb,#fff);
  border:1px solid #d3e4ee;
  box-shadow:var(--shadow);
}
.contact-section h2{font-size:40px}
.contact-section p{color:var(--muted)}

.footer{
  padding:44px clamp(24px,6vw,84px);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:24px;
  background:#edf4f8;
  border-top:1px solid #d6e3eb;
  color:#61788c;
}
.footer>div{display:flex;flex-direction:column}
.footer strong{color:#17324c;letter-spacing:1.5px}
.footer span{font-size:10px;color:#3f86a9;letter-spacing:1.6px;margin-top:4px}
.footer nav{display:flex;gap:20px}
.footer nav a{text-decoration:none;font-size:12px}
.footer small{text-align:right}

@media(max-width:980px){
  .nav{display:none}
  .site-header{grid-template-columns:1fr auto}
  .hero{grid-template-columns:1fr;min-height:auto;padding-top:54px}
  .hero-copy{max-width:720px}
  .hero-visual{max-width:900px}
  .about-grid{grid-template-columns:1fr}
  .architecture-cards{grid-template-columns:repeat(2,1fr)}
  .product-grid{grid-template-columns:1fr}
  .product-wide{grid-column:auto}
  .footer{grid-template-columns:1fr;text-align:center}
  .footer>div{align-items:center}
  .footer nav{justify-content:center;flex-wrap:wrap}
  .footer small{text-align:center}
}
@media(max-width:680px){
  .site-header{padding:14px 18px}
  .brand strong{font-size:15px}
  .header-cta{padding:10px 14px;font-size:12px}
  .hero{padding:42px 20px 54px;gap:28px}
  .hero h1{font-size:clamp(40px,12vw,58px)}
  .lead{font-size:16px}
  .hero-actions{flex-direction:column;align-items:flex-start}
  .hero-actions .btn{width:min(280px,100%)}
  .hero-visual{border-radius:22px}
  .hero-visual img{aspect-ratio:1/1;object-position:center}
  .section{padding:72px 20px}
  .before-after{grid-template-columns:1fr}
  .arrow{transform:rotate(90deg);justify-self:center}
  .architecture-cards{grid-template-columns:1fr}
  .product-body{padding:22px}
  .product-body h3{font-size:22px}
  .contact-section{margin:0 16px 72px;padding:36px 24px;flex-direction:column;align-items:flex-start}
  .contact-section h2{font-size:34px}
}

/* Mobile typography; image sizing is shared at every viewport width. */
@media(max-width:680px){
  .product-body{
    padding:24px 24px 28px;
  }
  .product-body h3{
    font-size:22px;
    line-height:1.35;
  }
  .product-body p{
    font-size:16px;
    line-height:1.75;
  }
}





@media(prefers-reduced-motion: reduce){
  .hero-visual img{
    transform:none !important;
  }
}


/* v12: scroll zoom-in + fade-out hero motion */
.hero-visual{
  position:relative;
  overflow:hidden;
  background:transparent;
  box-shadow:none;
  isolation:isolate;
}

.hero-visual img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:center;
  transform-origin:center center;
  transform:translate3d(0,34px,0) scale(.88);
  opacity:1;
  will-change:transform, opacity;
}

@media (prefers-reduced-motion: reduce){
  .hero-visual img{
    transform:none !important;
    opacity:1 !important;
  }
}


/* v15: remove visible frame line around hero image */
.hero-visual{
  background:transparent;
  border:none;
  border-radius:0;
  box-shadow:none;
}

.hero-visual img{
  border-radius:0;
}

@media(max-width:680px){
  .hero-visual{
    border-radius:0;
  }

  .hero-visual img{
    border-radius:0;
  }
}


/* v14: soften the hero artwork edges so it blends into the page */
.hero-visual img{
  -webkit-mask-image:
    radial-gradient(
      ellipse at center,
      #000 78%,
      rgba(0,0,0,.95) 86%,
      rgba(0,0,0,.55) 93%,
      rgba(0,0,0,.18) 97%,
      transparent 100%
    );
  mask-image:
    radial-gradient(
      ellipse at center,
      #000 78%,
      rgba(0,0,0,.95) 86%,
      rgba(0,0,0,.55) 93%,
      rgba(0,0,0,.18) 97%,
      transparent 100%
    );
}

