/* ===== Site CSS — biztel-inspired design system =====
   Used by base.html (and the standalone mockup.html via {% static %}). */

:root{
  --navy:#0a2540;
  --navy-2:#13304f;
  --navy-3:#1a3d63;
  --blue:#3da5ff;
  --blue-dark:#1d83de;
  --blue-soft:#e8f3ff;
  --text:#1a2332;
  --text-mute:#5c6b7a;
  --bg:#ffffff;
  --bg-soft:#f5f8fc;
  --border:#e3e9ef;
  --shadow:0 4px 20px rgba(10,37,64,.08);
  --radius:8px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
  font-feature-settings:"palt";
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:1200px;margin:0 auto;padding:0 24px}

/* ===== Top utility bar ===== */
.topbar{
  background:var(--navy);
  color:#cfdbe6;
  font-size:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;height:36px}
.topbar a{color:#cfdbe6;margin-left:18px}
.topbar a:hover{color:#fff}

/* ===== Header ===== */
.header{
  background:var(--navy);
  color:#fff;
  position:sticky;top:0;z-index:50;
  box-shadow:0 2px 12px rgba(0,0,0,.15);
}
.header-inner{display:flex;align-items:center;height:84px;gap:32px}
.logo img{height:42px;width:auto}
.nav{display:flex;gap:28px;flex:1;margin-left:24px}
.nav a{font-size:14px;font-weight:500;color:#fff;position:relative;padding:6px 0}
.nav a:hover{color:var(--blue)}
.nav a.has-sub::after{content:"▾";font-size:10px;margin-left:4px;color:#9ab0c5}
.header-cta{display:flex;gap:10px;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 20px;border-radius:var(--radius);
  font-size:13px;font-weight:700;line-height:1;
  transition:all .15s;white-space:nowrap;
  border:none;cursor:pointer;
}
.btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4)}
.btn-ghost:hover{background:rgba(255,255,255,.08);border-color:#fff}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-dark)}
.btn-lg{padding:14px 28px;font-size:14px}
.btn-arrow::after{content:"→";margin-left:8px;transition:transform .15s}
.btn-arrow:hover::after{transform:translateX(3px)}

/* ===== Hero ===== */
.hero{
  position:relative;
  background:linear-gradient(135deg,#0a2540 0%,#1a4d8c 60%,#2873c7 100%);
  color:#fff;overflow:hidden;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 80% 30%,rgba(61,165,255,.25) 0,transparent 40%),
             radial-gradient(circle at 20% 80%,rgba(61,165,255,.15) 0,transparent 50%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  display:grid;grid-template-columns:1fr 1fr;gap:48px;
  align-items:center;
  padding:88px 0 96px;
}
.hero-copy h2.eyebrow,
.hero-copy .eyebrow{
  font-size:13px;letter-spacing:.2em;color:var(--blue);
  margin:0 0 18px;font-weight:700;
}
.hero-copy h1{
  font-size:46px;line-height:1.35;margin:0 0 24px;
  font-weight:800;letter-spacing:.02em;
}
.hero-copy h1 .accent{color:var(--blue)}
.hero-copy p.lead{
  font-size:16px;color:#cfdbe6;margin:0 0 32px;max-width:520px;
}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.hero-visual{position:relative;text-align:right}
.hero-visual img{
  display:inline-block;width:100%;max-width:560px;
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
}

/* ===== Hero ribbon (stats) ===== */
.hero-ribbon{
  background:#fff;border-top:3px solid var(--blue);
  box-shadow:0 4px 20px rgba(10,37,64,.06);
}
.hero-ribbon-inner{
  display:grid;grid-template-columns:repeat(3,1fr);gap:0;
}
.ribbon-item{
  padding:20px 24px;text-align:center;
  border-right:1px solid var(--border);
}
.ribbon-item:last-child{border-right:none}
.ribbon-item .num{
  font-size:28px;font-weight:800;color:var(--navy);
  font-family:"Helvetica Neue",sans-serif;
}
.ribbon-item .num small{font-size:14px;font-weight:600;color:var(--text-mute);margin-left:4px}
.ribbon-item .label{font-size:12px;color:var(--text-mute);letter-spacing:.05em}

/* ===== Section base ===== */
.section{padding:88px 0}
.section-soft{background:var(--bg-soft)}
.section-head{text-align:center;margin-bottom:56px}
.section-head .eyebrow{
  font-size:13px;color:var(--blue);font-weight:700;
  letter-spacing:.2em;margin-bottom:12px;
}
.section-head h2{
  font-size:34px;font-weight:800;margin:0 0 16px;
  letter-spacing:.02em;color:var(--navy);
}
.section-head p{color:var(--text-mute);font-size:15px;max-width:680px;margin:0 auto}

/* ===== About ===== */
.about{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.about-figure{
  background:linear-gradient(135deg,var(--blue-soft) 0%,#fff 100%);
  border-radius:12px;padding:40px;
  display:flex;align-items:center;justify-content:center;
  min-height:280px;
}
.about-figure .cube{
  width:120px;height:120px;
  background:linear-gradient(135deg,var(--blue) 0%,var(--blue-dark) 100%);
  border-radius:18px;
  box-shadow:0 12px 32px rgba(61,165,255,.4);
  position:relative;
}
.about-figure .cube::before,
.about-figure .cube::after{
  content:"";position:absolute;border-radius:18px;
}
.about-figure .cube::before{
  width:120px;height:120px;background:rgba(255,255,255,.6);
  top:-20px;left:-20px;z-index:-1;
}
.about-figure .cube::after{
  width:120px;height:120px;background:rgba(61,165,255,.25);
  bottom:-20px;right:-20px;z-index:-1;
}
.about h3{font-size:26px;margin:0 0 20px;color:var(--navy);font-weight:800}
.about p{color:var(--text-mute);margin:0 0 16px;font-size:15px}
.about .read-more{color:var(--blue);font-weight:700;font-size:14px}
.eyebrow-inline{
  color:var(--blue);font-weight:700;font-size:13px;
  letter-spacing:.2em;margin:0 0 12px;
}

/* ===== Service cards ===== */
.services{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.service-card{
  background:#fff;border-radius:var(--radius);padding:32px 24px;
  border:1px solid var(--border);
  transition:all .2s;
  position:relative;
  display:flex;flex-direction:column;
}
.service-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
  border-color:var(--blue);
}
.service-icon{
  width:56px;height:56px;border-radius:12px;
  background:var(--blue-soft);color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;
  font-size:26px;font-weight:800;
}
.service-card h4{font-size:18px;margin:0 0 10px;color:var(--navy);font-weight:700}
.service-card p{font-size:13px;color:var(--text-mute);margin:0 0 20px;flex:1}
.service-card .arrow{
  font-size:13px;color:var(--blue);font-weight:700;margin-top:auto;
}

/* ===== Posts ===== */
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.post-card{
  background:#fff;border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--border);transition:all .2s;
  display:flex;flex-direction:column;
}
.post-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.post-thumb{
  height:180px;
  background:linear-gradient(135deg,var(--navy-3) 0%,var(--blue) 100%);
  position:relative;
}
.post-thumb .cat{
  position:absolute;top:14px;left:14px;
  background:rgba(255,255,255,.95);color:var(--navy);
  padding:4px 12px;border-radius:4px;
  font-size:11px;font-weight:700;
}
.post-body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1}
.post-body time{font-size:12px;color:var(--text-mute);margin-bottom:8px}
.post-body h4{
  font-size:16px;margin:0 0 12px;color:var(--navy);
  font-weight:700;line-height:1.5;
}
.post-body h4 a:hover{color:var(--blue)}
.post-body p{font-size:13px;color:var(--text-mute);margin:0 0 16px;flex:1}
.post-body .more{font-size:12px;color:var(--blue);font-weight:700}

/* ===== Reasons ===== */
.reasons{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.reason{
  text-align:center;padding:32px 24px;
  background:#fff;border-radius:var(--radius);
  border:1px solid var(--border);
}
.reason .num{
  display:inline-flex;align-items:center;justify-content:center;
  width:56px;height:56px;border-radius:50%;
  background:var(--navy);color:var(--blue);
  font-size:22px;font-weight:800;
  font-family:"Helvetica Neue",sans-serif;
  margin-bottom:18px;
}
.reason h4{font-size:18px;margin:0 0 12px;color:var(--navy);font-weight:700}
.reason p{font-size:13px;color:var(--text-mute);margin:0;text-align:left}

/* ===== CTA banner ===== */
.cta-banner{
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-3) 100%);
  color:#fff;padding:64px 0;
  position:relative;overflow:hidden;
}
.cta-banner::after{
  content:"";position:absolute;
  width:400px;height:400px;border-radius:50%;
  background:radial-gradient(circle,rgba(61,165,255,.3),transparent 70%);
  top:-100px;right:-100px;
}
.cta-banner-inner{
  display:flex;align-items:center;justify-content:space-between;gap:32px;
  position:relative;z-index:1;
}
.cta-banner h3{font-size:28px;margin:0 0 10px;font-weight:800}
.cta-banner p{margin:0;color:#cfdbe6;font-size:15px}
.cta-banner-actions{display:flex;gap:12px;flex-shrink:0}

/* ===== News ===== */
.news-list{max-width:880px;margin:0 auto}
.news-item{
  display:grid;grid-template-columns:120px 110px 1fr;
  gap:24px;align-items:baseline;
  padding:20px 0;border-bottom:1px solid var(--border);
}
.news-item time{font-size:13px;color:var(--text-mute)}
.news-item .tag{
  font-size:11px;padding:3px 10px;border-radius:3px;
  background:var(--navy);color:#fff;font-weight:700;text-align:center;
  display:inline-block;width:fit-content;
}
.news-item .tag.notice{background:var(--blue)}
.news-item .tag.media{background:#7a8a9a}
.news-item a{color:var(--text);font-weight:500;font-size:14px}
.news-item a:hover{color:var(--blue)}

/* ===== Header search ===== */
.header-search{
  display:flex;align-items:stretch;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius);overflow:hidden;
  height:36px;
}
.header-search input[type=search]{
  background:transparent;border:none;outline:none;color:#fff;
  padding:0 12px;width:180px;font-size:13px;
}
.header-search input::placeholder{color:#7e94aa}
.header-search input:focus{background:rgba(255,255,255,.06)}
.header-search button{
  background:transparent;border:none;color:#fff;
  padding:0 12px;cursor:pointer;font-size:14px;
}
.header-search button:hover{background:var(--blue);color:#fff}

/* ===== Search results page ===== */
.search-form{
  max-width:640px;margin:0 auto 56px;
  display:flex;gap:8px;
}
.search-form input[type=search]{
  flex:1;padding:14px 18px;font-size:15px;
  border:1px solid var(--border);border-radius:var(--radius);
  background:#fff;outline:none;
}
.search-form input[type=search]:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}
.search-results{list-style:none;padding:0;margin:0 auto;max-width:880px}
.search-item{
  padding:24px 0;border-bottom:1px solid var(--border);
}
.search-item:last-child{border-bottom:none}
.search-meta{font-size:12px;color:var(--text-mute);margin:0 0 6px}
.search-item h4{margin:0 0 10px;font-size:18px;font-weight:700}
.search-item h4 a{color:var(--navy)}
.search-item h4 a:hover{color:var(--blue)}
.search-snippet{
  margin:0;font-size:14px;color:var(--text-mute);line-height:1.7;
}
.search-snippet mark{
  background:var(--blue-soft);color:var(--navy);
  padding:2px 4px;border-radius:3px;font-weight:700;
}

/* ===== Pager (blog list) ===== */
.posts-3col{grid-template-columns:repeat(3,1fr)}
.pager{
  display:flex;align-items:center;justify-content:center;
  gap:32px;margin-top:56px;
}
.pager-link{
  color:var(--blue);font-weight:700;font-size:14px;
  padding:10px 20px;border-radius:var(--radius);
  border:1px solid var(--border);background:#fff;
  transition:all .15s;
}
.pager-link:hover{background:var(--blue-soft);border-color:var(--blue)}
.pager-link.is-disabled{
  color:#bcc6d0;cursor:not-allowed;
  pointer-events:none;background:transparent;
}
.pager-status{font-size:13px;color:var(--text-mute)}

/* ===== Article (post_detail) ===== */
.article-page{padding:64px 0 96px}
.article-head{
  text-align:center;max-width:800px;margin:0 auto 40px;
}
.article-head .meta{
  font-size:13px;color:var(--text-mute);margin:0 0 12px;
}
.article-head h1{
  font-size:32px;line-height:1.5;font-weight:800;
  color:var(--navy);margin:0 0 16px;letter-spacing:.02em;
}
.article-body{
  max-width:800px;margin:0 auto;
  font-size:16px;line-height:1.9;
}
.article-body img{margin:24px auto;border-radius:6px}
.article-body h2{
  font-size:22px;margin:48px 0 16px;color:var(--navy);
  border-left:4px solid var(--blue);padding-left:14px;
}
.article-body h3{font-size:18px;margin:32px 0 12px;color:var(--navy)}
.article-body p{margin:0 0 18px}
.article-body a{color:var(--blue-dark);text-decoration:underline}
.article-body ul,.article-body ol{margin:0 0 18px;padding-left:1.6em}
.article-body li{margin-bottom:6px}
.article-body figure{margin:24px 0}
.article-back{text-align:center;margin-top:48px}

/* ===== Product hero ===== */
.product-hero{
  background:linear-gradient(135deg,#0a2540 0%,#1a4d8c 60%,#2873c7 100%);
  color:#fff;padding:72px 0;position:relative;overflow:hidden;
}
.product-hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 80% 30%,rgba(61,165,255,.25) 0,transparent 40%),
             radial-gradient(circle at 20% 80%,rgba(61,165,255,.15) 0,transparent 50%);
  pointer-events:none;
}
.product-hero-inner{position:relative;display:grid;grid-template-columns:1.2fr 1fr;gap:48px;align-items:center}
.product-hero-copy h1{font-size:38px;font-weight:800;margin:0 0 16px;line-height:1.35;letter-spacing:.02em}
.product-hero-copy .eyebrow{font-size:13px;letter-spacing:.2em;color:var(--blue);margin:0 0 14px;font-weight:700}
.product-hero-copy .lead{font-size:16px;color:#cfdbe6;margin:0 0 20px;max-width:560px}
.product-hero-visual img{max-width:100%;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.3)}

.product-meta{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.chip{
  display:inline-flex;align-items:center;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);
  color:#cfdbe6;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:600;
}
.chip-os{background:rgba(61,165,255,.15);border-color:rgba(61,165,255,.4);color:#fff}
.chip-price{background:#fff;border:none;color:var(--navy);font-weight:700}

/* ===== Product summary ===== */
.product-summary{
  max-width:800px;margin:0 auto;font-size:16px;line-height:1.9;
  color:var(--text);text-align:center;
}

/* ===== Product features ===== */
.product-features{
  display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
}
.feature-card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  padding:28px 24px;transition:all .2s;
}
.feature-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--blue)}
.feature-card .feature-icon{
  width:48px;height:48px;border-radius:10px;background:var(--blue-soft);
  color:var(--blue);display:flex;align-items:center;justify-content:center;
  font-size:24px;margin-bottom:14px;
}
.feature-card h4{font-size:16px;color:var(--navy);margin:0 0 8px;font-weight:700}
.feature-card p{font-size:13px;color:var(--text-mute);margin:0}

/* ===== Product plans ===== */
.product-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.plan-card{
  background:#fff;border:2px solid var(--border);border-radius:var(--radius);
  padding:32px 28px;text-align:center;transition:all .2s;
}
.plan-card:hover{border-color:var(--blue);box-shadow:var(--shadow)}
.plan-card h4{font-size:18px;color:var(--navy);margin:0 0 12px;font-weight:700}
.plan-card .plan-price{
  font-size:28px;font-weight:800;color:var(--navy);
  font-family:"Helvetica Neue",sans-serif;margin:0 0 12px;
}
.plan-card .plan-desc{font-size:13px;color:var(--text-mute);margin:0;line-height:1.7}

/* ===== Product specs table ===== */
.product-specs{
  width:100%;max-width:880px;margin:0 auto;border-collapse:collapse;
  background:#fff;border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--border);
}
.product-specs tr{border-bottom:1px solid var(--border)}
.product-specs tr:last-child{border-bottom:none}
.product-specs th{
  background:var(--bg-soft);padding:14px 20px;text-align:left;font-weight:700;
  width:30%;color:var(--navy);font-size:14px;
}
.product-specs td{padding:14px 20px;color:var(--text);font-size:14px;line-height:1.7}

/* ===== Product list / card ===== */
.product-family-heading{
  font-size:20px;color:var(--navy);font-weight:800;margin:48px 0 20px;
  padding-left:14px;border-left:4px solid var(--blue);
}
.product-family-heading:first-child{margin-top:0}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.product-card{
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--border);
  border-radius:var(--radius);padding:28px 24px;
  text-decoration:none;color:var(--text);transition:all .2s;
}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--blue)}
.product-card-icon{
  width:52px;height:52px;border-radius:12px;background:var(--blue-soft);
  color:var(--blue);display:flex;align-items:center;justify-content:center;
  font-size:24px;font-weight:800;margin-bottom:16px;
}
.product-card h4{font-size:18px;color:var(--navy);margin:0 0 8px;font-weight:700}
.product-card .product-card-tag{font-size:13px;color:var(--blue);font-weight:600;margin:0 0 10px}
.product-card p{font-size:13px;color:var(--text-mute);margin:0 0 16px;flex:1;line-height:1.7}
.product-card-meta{display:flex;flex-wrap:wrap;gap:6px}
.product-card-meta .chip{
  background:var(--bg-soft);border-color:var(--border);
  color:var(--text-mute);font-size:11px;
}

@media (max-width:960px){
  .product-hero-inner{grid-template-columns:1fr;gap:32px}
  .product-hero-copy h1{font-size:28px}
  .product-features,.product-plans,.product-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .product-features,.product-plans,.product-grid{grid-template-columns:1fr}
  .product-specs th{width:40%;font-size:13px}
}

/* ===== Footer ===== */
.footer{background:#06192e;color:#9ab0c5;padding:64px 0 24px;font-size:13px}
.footer a{color:#cfdbe6}
.footer a:hover{color:#fff}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;margin-bottom:48px}
.footer-brand img{height:36px;margin-bottom:18px}
.footer-brand p{margin:0 0 8px;line-height:1.8;color:#9ab0c5}
.footer-col h5{font-size:13px;color:#fff;margin:0 0 16px;font-weight:700;letter-spacing:.05em}
.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col li{margin-bottom:10px}
.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;
  padding-top:24px;border-top:1px solid rgba(255,255,255,.1);
  font-size:12px;color:#7088a0;
}
.footer-bottom .links a{margin-left:20px;color:#9ab0c5}

/* ===== Responsive ===== */
@media (max-width:960px){
  .hero-inner,.about{grid-template-columns:1fr;gap:32px;padding:56px 0}
  .hero-copy h1{font-size:34px}
  .services,.posts,.reasons{grid-template-columns:1fr 1fr}
  .footer-top{grid-template-columns:1fr 1fr}
  .nav{display:none}
  .topbar{display:none}
  .cta-banner-inner{flex-direction:column;text-align:center}
}
@media (max-width:640px){
  .services,.posts,.reasons,.footer-top{grid-template-columns:1fr}
  .hero-ribbon-inner{grid-template-columns:1fr}
  .ribbon-item{border-right:none;border-bottom:1px solid var(--border)}
  .news-item{grid-template-columns:1fr;gap:6px}
  .header-cta .btn-ghost{display:none}
  .section{padding:56px 0}
  .section-head h2{font-size:24px}
  .article-head h1{font-size:24px}
}
