/* SS Engineering – site design (top / article / archive). All classes are ssd- prefixed. */
:root{
  --ssd-teal:#0d8b91; --ssd-teal-dark:#0a6c72; --ssd-teal-soft:#e3f2f3;
  --ssd-ink:#14252b; --ssd-muted:#5b6b72; --ssd-soft:#f0f7f8; --ssd-line:#d9e6e9;
  --ssd-serif:'Noto Serif JP','Hiragino Mincho ProN','Yu Mincho',serif;
  --ssd-sans:'Noto Sans JP','Hiragino Sans','Yu Gothic',sans-serif;
}
body.ssd-body{margin:0;background:#fff;color:var(--ssd-ink);font-family:var(--ssd-sans);font-size:16px;line-height:1.8;-webkit-font-smoothing:antialiased}
body.ssd-body *,body.ssd-body *::before,body.ssd-body *::after{box-sizing:border-box}
.ssd-body img{max-width:100%;height:auto}
.ssd-body a{color:var(--ssd-teal-dark)}
.ssd-wrap{max-width:1120px;margin:0 auto;padding:0 24px}

/* ---------- header ---------- */
.ssd-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--ssd-line)}
.ssd-header-in{display:flex;align-items:center;justify-content:space-between;gap:24px;height:68px}
.ssd-logo img{height:34px;width:auto;display:block}
.ssd-nav{display:flex;align-items:center;gap:32px}
.ssd-nav a{color:var(--ssd-ink);text-decoration:none;font-size:14px;font-weight:500}
.ssd-nav a:hover{color:var(--ssd-teal)}
.ssd-btn{white-space:nowrap;display:inline-flex;align-items:center;gap:8px;background:var(--ssd-teal);color:#fff!important;text-decoration:none;font-weight:700;font-size:14px;padding:12px 24px;border-radius:4px;border:1px solid var(--ssd-teal);transition:background .2s}
.ssd-btn:hover{background:var(--ssd-teal-dark)}
.ssd-btn--ghost{background:#fff;color:var(--ssd-teal-dark)!important}
.ssd-btn--ghost:hover{background:var(--ssd-teal-soft)}
.ssd-btn--sm{padding:9px 20px;font-size:13px}
.ssd-menu-toggle{display:none;background:none;border:0;padding:8px;cursor:pointer}
.ssd-menu-toggle span{display:block;width:22px;height:2px;background:var(--ssd-ink);margin:5px 0}

/* ---------- headings ---------- */
.ssd-h{display:flex;align-items:center;gap:16px;margin:0 0 32px}
.ssd-h h2{font-family:var(--ssd-serif);font-size:1.6rem;font-weight:700;margin:0;white-space:nowrap;color:var(--ssd-ink)}
.ssd-h::after{content:"";flex:0 0 48px;height:1px;background:var(--ssd-teal)}
.ssd-h p{margin:0 0 0 auto;order:3;font-size:.85rem;color:var(--ssd-muted)}
.ssd-h .ssd-more{order:3;margin-left:auto;font-size:.85rem;font-weight:700;text-decoration:none}
.ssd-h .ssd-more+p{display:none}
.ssd-section{padding:72px 0}
.ssd-section--soft{background:var(--ssd-soft)}

/* ---------- hero ---------- */
.ssd-hero{position:relative;overflow:hidden;background:linear-gradient(180deg,#f4fafb,#fff)}
.ssd-hero-in{position:relative;z-index:2;min-height:480px;display:flex;flex-direction:column;justify-content:center;padding:64px 24px}
.ssd-hero-label{font-size:.85rem;font-weight:700;color:var(--ssd-teal-dark);letter-spacing:.06em;margin:0 0 16px}
.ssd-hero h1{font-family:var(--ssd-serif);font-size:clamp(2rem,4.6vw,3.4rem);line-height:1.35;margin:0 0 20px;font-weight:700}
.ssd-hero p.lead{max-width:520px;margin:0 0 32px;color:var(--ssd-muted)}
.ssd-hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.ssd-hero-trust{display:flex;flex-wrap:wrap;gap:8px 24px;margin:32px 0 0;padding:0;list-style:none;font-size:.85rem;color:var(--ssd-muted)}
.ssd-hero-img{position:absolute;inset:0 0 0 28%;z-index:1;background:url() center/cover no-repeat;filter:saturate(.7) brightness(1.12) contrast(.92);
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.04) 10%,rgba(0,0,0,.14) 22%,rgba(0,0,0,.34) 36%,rgba(0,0,0,.6) 50%,rgba(0,0,0,.85) 66%,#000 82%);
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.04) 10%,rgba(0,0,0,.14) 22%,rgba(0,0,0,.34) 36%,rgba(0,0,0,.6) 50%,rgba(0,0,0,.85) 66%,#000 82%)}
/* progressive blur: strongest at the text side, easing out toward the photo */
.ssd-hero-img::before{content:"";position:absolute;inset:0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  -webkit-mask-image:linear-gradient(90deg,#000 0%,rgba(0,0,0,.75) 22%,rgba(0,0,0,.35) 42%,transparent 62%);
  mask-image:linear-gradient(90deg,#000 0%,rgba(0,0,0,.75) 22%,rgba(0,0,0,.35) 42%,transparent 62%)}

/* ---------- services / reasons ---------- */
.ssd-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:0}
.ssd-col{padding:8px 32px;border-left:1px solid var(--ssd-line)}
.ssd-col:first-child{border-left:0;padding-left:0}
.ssd-col:last-child{padding-right:0}
.ssd-ico{width:56px;height:56px;border-radius:50%;background:var(--ssd-teal-soft);display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.ssd-ico svg{width:26px;height:26px;stroke:var(--ssd-teal);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ssd-col h3{font-size:1.05rem;margin:0 0 8px}
.ssd-col p{margin:0 0 12px;font-size:.92rem;color:var(--ssd-muted)}
.ssd-col a.ssd-link{font-size:.85rem;font-weight:700;text-decoration:none}
.ssd-num{font-family:var(--ssd-serif);font-size:2.4rem;color:var(--ssd-teal);line-height:1;margin-bottom:12px}

/* ---------- cards ---------- */
.ssd-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.ssd-card{display:block;text-decoration:none;color:var(--ssd-ink)!important}
.ssd-card-img{aspect-ratio:16/9;background:var(--ssd-teal-soft);overflow:hidden;border-radius:4px}
.ssd-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.ssd-card:hover .ssd-card-img img{transform:scale(1.04)}
.ssd-body a.ssd-badge,.ssd-badge{color:#fff!important}
.ssd-badge{display:inline-block;background:var(--ssd-teal);color:#fff;font-size:.7rem;font-weight:700;padding:1px 8px;border-radius:2px;margin:10px 0 4px}
.ssd-card h3{font-size:.98rem;line-height:1.6;margin:0 0 6px;font-weight:700}
.ssd-card time{font-size:.75rem;color:var(--ssd-muted)}

/* ---------- works / pricing / company ---------- */
.ssd-two{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.ssd-box{background:#fff;border:1px solid var(--ssd-line);border-radius:6px;padding:28px}
.ssd-box .ssd-tag{display:inline-block;font-size:.72rem;font-weight:700;color:var(--ssd-teal-dark);background:var(--ssd-teal-soft);padding:2px 10px;border-radius:999px;margin-bottom:10px}
.ssd-box h3{font-size:1.02rem;margin:0 0 12px;line-height:1.6}
.ssd-box ul{margin:0 0 12px;padding-left:1.2em;font-size:.9rem;color:var(--ssd-muted)}
.ssd-box .ssd-stack{font-size:.78rem;color:var(--ssd-muted)}
.ssd-voices{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:28px}
.ssd-voice{background:var(--ssd-soft);border-radius:6px;padding:20px 24px;font-size:.9rem}
.ssd-voice b{display:block;font-size:.78rem;color:var(--ssd-teal-dark);margin-top:8px}
.ssd-price{text-align:left}
.ssd-price .ssd-price-name{font-size:.85rem;font-weight:700;color:var(--ssd-teal-dark)}
.ssd-price .ssd-price-val{font-family:var(--ssd-serif);font-size:1.6rem;margin:4px 0 8px}
.ssd-table-plain{width:100%;border-collapse:collapse;font-size:.92rem}
.ssd-table-plain th{width:22%;text-align:left;background:var(--ssd-soft);padding:16px 20px;border-bottom:1px solid var(--ssd-line);color:var(--ssd-teal-dark)}
.ssd-table-plain td{padding:16px 20px;border-bottom:1px solid var(--ssd-line)}
.ssd-details{border-bottom:1px solid var(--ssd-line)}
.ssd-details summary{cursor:pointer;padding:18px 0;font-weight:700;list-style:none}
.ssd-details summary::before{content:"Q";display:inline-flex;width:24px;height:24px;border-radius:50%;background:var(--ssd-teal);color:#fff;font-size:.75rem;align-items:center;justify-content:center;margin-right:12px}
.ssd-details p{margin:0 0 18px 36px;color:var(--ssd-muted);font-size:.92rem}

/* ---------- CTA / contact / footer ---------- */
.ssd-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--ssd-teal-soft);border-radius:6px;padding:28px 36px;margin:0}
.ssd-cta strong{display:block;font-family:var(--ssd-serif);font-size:1.25rem}
.ssd-cta span{font-size:.85rem;color:var(--ssd-muted)}
.ssd-contact{max-width:760px;margin:0 auto;background:#fff;border:1px solid var(--ssd-line);border-radius:8px;padding:40px}
.ssd-footer{border-top:1px solid var(--ssd-line);padding:36px 0;margin-top:0;background:#fff;font-size:.85rem;color:var(--ssd-muted)}
.ssd-footer-in{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center}
.ssd-footer a{color:var(--ssd-muted);text-decoration:none;margin-right:20px}

/* ---------- article ---------- */
.ssd-crumb{font-size:.78rem;color:var(--ssd-muted);padding:16px 0 8px}
.ssd-crumb a{color:var(--ssd-muted);text-decoration:none}
.ssd-article-grid{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:56px;align-items:start;padding-bottom:64px}
.ssd-article-head .ssd-badge{margin:0 0 10px;font-size:.75rem}
.ssd-article-head h1{font-family:var(--ssd-serif);font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.5;margin:0 0 12px}
.ssd-meta{font-size:.78rem;color:var(--ssd-muted);display:flex;flex-wrap:wrap;gap:4px 16px;margin-bottom:24px}
.ssd-eyecatch{margin:0 0 28px;border-radius:6px;overflow:hidden;aspect-ratio:2/1;background:var(--ssd-teal-soft)}
.ssd-eyecatch img{width:100%;height:100%;object-fit:cover;display:block}
.ssd-toc{position:sticky;top:92px;background:var(--ssd-soft);border-radius:6px;padding:22px 24px}
.ssd-toc-title{font-family:var(--ssd-serif);font-weight:700;margin:0 0 12px}
.ssd-toc ol{list-style:none;margin:0;padding:0;counter-reset:toc}
.ssd-toc li{counter-increment:toc;margin:0}
.ssd-toc a{display:block;padding:7px 0 7px 32px;position:relative;text-decoration:none;color:var(--ssd-ink);font-size:.85rem;line-height:1.5}
.ssd-toc a::before{content:counter(toc,decimal-leading-zero);position:absolute;left:0;color:var(--ssd-teal);font-weight:700}
.ssd-toc a.is-active{color:var(--ssd-teal-dark);font-weight:700}
.ssd-body-text{font-size:1rem}
.ssd-body-text>p{margin:0 0 1.4em;line-height:2}
.ssd-body-text h2{display:flex;align-items:center;gap:16px;font-family:var(--ssd-serif);font-size:1.4rem;line-height:1.5;margin:2.6em 0 1em;scroll-margin-top:90px}
.ssd-body-text h2::after{content:"";flex:1;max-width:60px;height:1px;background:var(--ssd-teal)}
.ssd-body-text h3{font-size:1.1rem;margin:2em 0 .8em;padding-left:12px;border-left:3px solid var(--ssd-teal)}
.ssd-body-text ul,.ssd-body-text ol{margin:0 0 1.4em;padding-left:1.4em}
.ssd-body-text li{margin:.3em 0}
.ssd-conclusion{background:var(--ssd-teal-soft);border-radius:6px;padding:22px 28px;margin:0 0 32px}
.ssd-conclusion-title{font-family:var(--ssd-serif);font-weight:700;font-size:1.05rem;margin:0 0 14px!important}
.ssd-conclusion ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.ssd-conclusion li{display:flex;gap:12px;margin:0}
.ssd-kp-no{font-family:var(--ssd-serif);font-size:1.5rem;color:var(--ssd-teal);line-height:1.1}
.ssd-conclusion strong{display:block;font-size:.9rem;line-height:1.5}
.ssd-conclusion li span:not(.ssd-kp-no){display:block;font-size:.8rem;color:var(--ssd-muted);line-height:1.6;margin-top:2px}
.ssd-table-wrap{overflow-x:auto;margin:0 0 1.6em}
.ssd-table{width:100%;border-collapse:collapse;font-size:.88rem;min-width:520px}
.ssd-table th,.ssd-table td{border:1px solid var(--ssd-line);padding:12px 14px;text-align:left;vertical-align:top}
.ssd-table thead th{background:var(--ssd-teal-soft);color:var(--ssd-ink)}
.ssd-table tbody th{background:var(--ssd-soft);white-space:nowrap}
.ssd-faq-item{margin:0 0 20px}
.ssd-q,.ssd-a{position:relative;margin:0!important;padding:2px 0 2px 40px;line-height:1.8}
.ssd-q{font-weight:700}
.ssd-q::before,.ssd-a::before{position:absolute;left:0;top:2px;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700}
.ssd-q::before{content:"Q";background:var(--ssd-teal);color:#fff}
.ssd-a{color:var(--ssd-muted);margin-top:6px!important}
.ssd-a::before{content:"A";background:var(--ssd-soft);color:var(--ssd-muted);border:1px solid var(--ssd-line)}
.ssd-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:48px 0}
.ssd-info-grid--single{grid-template-columns:1fr}
.ssd-info{background:var(--ssd-soft);border-radius:6px;padding:22px 26px;font-size:.88rem}
.ssd-info h2{font-family:var(--ssd-serif);font-size:1rem;margin:0 0 10px}
.ssd-info ul{margin:0;padding-left:1.2em}
.ssd-author{display:flex;gap:16px}
.ssd-author-av{flex:0 0 56px;height:56px;border-radius:50%;background:var(--ssd-teal);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem}
.ssd-author p{margin:0;color:var(--ssd-muted);line-height:1.7}
.ssd-related{margin-top:16px}
.ssd-related-h{display:flex;align-items:center;gap:16px;margin:0 0 24px}
.ssd-related-h h2{font-family:var(--ssd-serif);font-size:1.3rem;margin:0}
.ssd-related-h::after{content:"";width:48px;height:1px;background:var(--ssd-teal);order:2}
.ssd-related-h a{margin-left:auto;order:3;font-size:.85rem;font-weight:700;text-decoration:none}

/* ---------- archive ---------- */
.ssd-page-title{font-family:var(--ssd-serif);font-size:2rem;margin:40px 0 8px}
.ssd-chips{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 36px}
.ssd-chips a{border:1px solid var(--ssd-line);border-radius:999px;padding:4px 16px;font-size:.82rem;text-decoration:none;color:var(--ssd-ink)}
.ssd-chips a.is-current,.ssd-chips a:hover{background:var(--ssd-teal);border-color:var(--ssd-teal);color:#fff}
.ssd-pager{display:flex;gap:8px;justify-content:center;margin:48px 0 0}
.ssd-pager a,.ssd-pager span{padding:6px 14px;border:1px solid var(--ssd-line);border-radius:4px;text-decoration:none;font-size:.9rem}
.ssd-pager .current{background:var(--ssd-teal);color:#fff;border-color:var(--ssd-teal)}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .ssd-article-grid{grid-template-columns:1fr;gap:24px}
  .ssd-toc{position:static;order:-1}
  .ssd-cards{grid-template-columns:repeat(2,1fr)}
  .ssd-hero-img{inset:0 0 0 10%;opacity:.32}
  .ssd-conclusion ol{grid-template-columns:1fr}
  .ssd-info-grid,.ssd-two,.ssd-voices{grid-template-columns:1fr}
}
@media (max-width:720px){
  .ssd-menu-toggle{display:block}
  .ssd-nav{position:absolute;top:68px;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;gap:0;padding:8px 24px 20px;border-bottom:1px solid var(--ssd-line);display:none}
  .ssd-header.is-open .ssd-nav{display:flex}
  .ssd-nav a{padding:12px 0;border-bottom:1px solid var(--ssd-line)}
  .ssd-nav .ssd-btn{margin-top:12px;justify-content:center;border-bottom:0}
  .ssd-cols{grid-template-columns:1fr;gap:28px}
  .ssd-col{border-left:0;padding:0}
  .ssd-cards{grid-template-columns:1fr}
  .ssd-section{padding:48px 0}
  .ssd-h{flex-wrap:wrap}.ssd-h p{display:none}
  .ssd-h h2{white-space:normal;font-size:1.35rem}
  .ssd-cta{flex-direction:column;align-items:flex-start;padding:24px}
  .ssd-contact{padding:24px 18px}
  .ssd-hero-in{min-height:0;padding:48px 24px}
}
