/*
Theme Name: KTEC Simple Theme
Theme URI: https://example.com/
Author: OpenAI
Description: 株式会社軽量盛土技術センター向けのシンプルなWordPressテーマ
Version: 6.3
Text Domain: ktec-simple-theme
*/

:root {
  --ktec-text: #2d3a34;
  --ktec-subtext: #52625c;
  --ktec-heading: #1e3127;
  --ktec-accent: #476a58;
  --ktec-accent-dark: #365143;
  --ktec-soft: #f5f7f4;
  --ktec-soft-2: #eef2ed;
  --ktec-border: #dde5de;
  --ktec-bg: #ffffff;
  --ktec-max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ktec-text);
  background: var(--ktec-bg);
  font-family: "Sawarabi Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.95;
  letter-spacing: 0.02em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.ktec-container { width: min(var(--ktec-max), 92%); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(221,229,222,.9); backdrop-filter: blur(10px); }
body.home .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; backdrop-filter: none; }
body.home .header-inner { transform: translateY(10px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { flex: 0 0 auto; }
.site-branding-link { display: inline-block; }
.site-title { margin: 0; color: #ffffff; font-size: 33px; line-height: 1.1; font-weight: 400; letter-spacing: .06em; }
body:not(.home) .site-title { color: var(--ktec-heading); }
.site-nav { flex: 1 1 auto; }
.site-nav-list { display: flex; justify-content: flex-end; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav-list a { position: relative; display: inline-flex; align-items: center; min-height: 34px; padding: 4px 0; color: rgba(255,255,255,.96); font-size: 14pt; letter-spacing: .06em; line-height: 1; text-transform: none; background: transparent; border: 0; transition: opacity .25s ease, transform .25s ease; }
.site-nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: rgba(255,255,255,.68); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.site-nav-list a:hover, .site-nav-list a:focus-visible { opacity: .82; transform: translateY(-1px); }
.site-nav-list a:hover::after, .site-nav-list a:focus-visible::after { transform: scaleX(1); }
body:not(.home) .site-nav-list a { color: var(--ktec-heading); }
body:not(.home) .site-nav-list a::after { background: rgba(54,81,67,.55); }
body:not(.home) .site-nav-list a:hover, body:not(.home) .site-nav-list a:focus-visible { opacity: .72; }
.site-main { min-height: 60vh; }
.ktec-hero { position: relative; min-height: 720px; padding: 190px 0 120px; overflow: hidden; background: #102a43; }
.ktec-hero-slides, .ktec-hero-slide, .ktec-hero-overlay { position: absolute; inset: 0; }
.ktec-hero-slides { z-index: 0; }
.ktec-hero-slide { background-position: center center; background-size: cover; background-repeat: no-repeat; opacity: 0; transform: scale(1.03); transition: opacity 1s ease, transform 4s ease; }
.ktec-hero-slide.is-active { opacity: 1; transform: scale(1); }
.ktec-hero-overlay { z-index: 1; background: linear-gradient(180deg, rgba(8,18,16,.48) 0%, rgba(8,18,16,.34) 48%, rgba(8,18,16,.30) 100%), linear-gradient(90deg, rgba(8,18,16,.40) 0%, rgba(8,18,16,.16) 42%, rgba(8,18,16,.22) 100%); }
.ktec-hero-inner { position: relative; z-index: 2; text-align: center; }
.ktec-hero-inner-right { min-height: 430px; display: flex; align-items: center; justify-content: flex-end; text-align: right; }
.ktec-hero-copy-wrap { max-width: 560px; margin-left: auto; padding-right: 12px; transform: translateY(10px); }
.ktec-label { display: inline-block; margin: 0 0 22px; padding: 8px 18px; border-radius: 999px; font-size: 14px; letter-spacing: .12em; color: #ffffff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.ktec-intro-head .ktec-label { display:none; }
.ktec-label-dark { color: var(--ktec-accent); background: rgba(71,106,88,.07); border: 1px solid rgba(71,106,88,.14); }
.ktec-hero-title { margin: 0 0 26px; color: #ffffff; text-shadow: 0 10px 34px rgba(0,0,0,.18); font-size: clamp(36px, 5.4vw, 66px); line-height: 1.42; font-weight: 400; }
.ktec-hero-title-minimal { margin: 0; font-size: 26pt; line-height: 1.7; letter-spacing: .04em; }
.ktec-lead { max-width: 860px; margin: 0 auto; font-size: 18px; color: var(--ktec-subtext); }
.ktec-lead-hero { color: rgba(255,255,255,.94); }
.ktec-subcopy { max-width: 760px; margin: 24px auto 0; color: rgba(255,255,255,.88); font-size: 16px; }
.ktec-section { padding: 96px 0; }
.ktec-section-alt { background: var(--ktec-soft); }
.ktec-section-tight { padding: 70px 0; }
.ktec-section-title { margin: 0 0 16px; text-align: center; color: var(--ktec-heading); font-size: 38px; line-height: 1.5; font-weight: 400; }
.ktec-section-title-left { text-align: left; }
.ktec-section-intro { max-width: 760px; margin: 0 auto 42px; text-align: center; color: var(--ktec-subtext); }
.ktec-section-intro-left { text-align: left; margin-left: 0; margin-right: 0; }
.ktec-grid { display: grid; gap: 26px; }
.ktec-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ktec-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ktec-card { background: #fff; border: 1px solid var(--ktec-border); border-radius: 24px; padding: 32px; box-shadow: 0 18px 45px rgba(19,38,26,.05); }
.ktec-card h3, .ktec-card h2 { margin: 0 0 16px; color: var(--ktec-heading); line-height: 1.6; font-weight: 400; }
.ktec-card p { margin: 0; color: var(--ktec-subtext); }
.ktec-feature-card { position: relative; padding-top: 58px; min-height: 250px; }
.ktec-feature-card::before { content: ""; position: absolute; left: 30px; top: 28px; width: 48px; height: 2px; border-radius: 999px; background: var(--ktec-accent); }
.ktec-intro-refined { background: #fff; }
.ktec-intro-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 64px; align-items: center; }
.ktec-intro-head .ktec-label { margin-bottom: 18px; }
.ktec-intro-body { padding-top: 0; color: var(--ktec-subtext); }
.ktec-intro-body p { margin: 0 0 1.1em; }
.ktec-emphasis { background: var(--ktec-soft-2); border-top: 1px solid var(--ktec-border); border-bottom: 1px solid var(--ktec-border); }
.ktec-emphasis-box { max-width: 920px; margin: 0 auto; text-align: center; }
.ktec-emphasis-box h2 { margin: 0 0 18px; color: var(--ktec-heading); font-size: 31px; line-height: 1.6; font-weight: 400; }
.ktec-emphasis-box p { margin: 0; color: var(--ktec-subtext); }
.ktec-concept-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 52px; align-items: center; }
.ktec-concept-copy { max-width: 540px; }
.ktec-concept-copy .ktec-section-title, .ktec-concept-copy .ktec-section-intro { text-align: left; margin-left: 0; margin-right: 0; }
.ktec-concept-copy p { margin: 0 0 1em; color: var(--ktec-subtext); }
.ktec-concept-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.ktec-concept-points li { background: #fff; border: 1px solid var(--ktec-border); border-radius: 18px; padding: 16px 18px; box-shadow: 0 14px 36px rgba(19,38,26,.04); color: var(--ktec-subtext); }
.ktec-concept-points strong { display: block; margin-bottom: 4px; color: var(--ktec-heading); font-size: 20px; font-weight: 400; }
.ktec-concept-figure { margin: 0; background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%); border: 1px solid var(--ktec-border); border-radius: 28px; padding: 34px; box-shadow: 0 22px 48px rgba(19,38,26,.06); }
.ktec-concept-figure img { display: block; width: 100%; height: auto; }
.ktec-concept-note { display:none; }
.ktec-message-box, .ktec-consult-box, .ktec-profile-card { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--ktec-border); border-radius: 22px; box-shadow: 0 18px 45px rgba(19,38,26,.05); }
.ktec-message-box { max-width: 860px; padding: 34px; }
.ktec-message-box p { margin: 0 0 1em; }
.ktec-message-box p:last-child { margin-bottom: 0; }
.ktec-message-sign { text-align: right; }
.ktec-consult-box { padding: 28px 30px; }
.ktec-service-card, .ktec-work-card { background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%); }
.ktec-service-card ul, .ktec-consult-box ul { margin: 16px 0 0; padding-left: 18px; color: var(--ktec-subtext); }
.ktec-profile-table { width: 100%; border-collapse: collapse; }
.ktec-profile-table th, .ktec-profile-table td { padding: 18px 22px; border-bottom: 1px solid var(--ktec-border); vertical-align: top; }
.ktec-profile-table tr:last-child th, .ktec-profile-table tr:last-child td { border-bottom: 0; }
.ktec-profile-table th { width: 220px; background: #f9fbfa; color: var(--ktec-heading); text-align: left; font-weight: 400; }
.ktec-profile-table td { color: var(--ktec-subtext); }
.ktec-muted { color: #5e6b78; font-size: 0.95em; }
.ktec-contact-table { margin-top: 22px; }
.entry-header { padding: 150px 0 26px; text-align: center; }
.entry-title { margin: 0; color: var(--ktec-heading); font-size: clamp(30px, 4vw, 42px); line-height: 1.5; font-weight: 400; }
.entry-content { max-width: 940px; margin: 0 auto 88px; color: var(--ktec-subtext); }
.entry-content h2, .entry-content h3 { color: var(--ktec-heading); font-weight: 400; }
.site-footer { padding: 26px 0; border-top: 1px solid var(--ktec-border); background: #fff; }
.footer-inner-simple { text-align: center; }
.footer-text { margin: 0; color: var(--ktec-subtext); font-size: 13px; }
@media (max-width: 980px) { .header-inner { min-height: auto; padding: 18px 0; flex-direction: column; align-items: flex-start; } .site-nav { width: 100%; overflow-x: auto; } .site-nav-list { justify-content: flex-start; min-width: max-content; gap: 16px; padding-bottom: 2px; } .site-nav-list a { font-size: 14px; } .ktec-concept-grid, .ktec-grid-2, .ktec-grid-3, .ktec-intro-grid { grid-template-columns: 1fr; } .ktec-intro-body { padding-top: 0; } }
@media (max-width: 900px) { .ktec-section { padding: 76px 0; } .ktec-hero { min-height: 620px; padding: 170px 0 90px; } .ktec-hero-inner-right { min-height: 320px; justify-content: center; text-align: center; } .ktec-hero-copy-wrap { margin: 0 auto; } .ktec-hero-title-minimal { font-size: clamp(26px, 6vw, 40px); line-height: 1.8; } .ktec-profile-table, .ktec-profile-table tbody, .ktec-profile-table tr, .ktec-profile-table th, .ktec-profile-table td { display: block; width: 100%; } .ktec-profile-table th { border-bottom: 0; padding-bottom: 6px; } .ktec-profile-table td { padding-top: 0; } }
@media (max-width: 640px) { .site-title { font-size: 28px; } .ktec-hero-title { line-height: 1.6; } .ktec-lead { font-size: 16px; } .entry-header { padding-top: 132px; } }


.ktec-intro-body strong { color: var(--ktec-heading); font-weight: 400; }
.ktec-profile-card, .ktec-consult-box { overflow: hidden; }
.ktec-card a { color: var(--ktec-accent-dark); text-decoration: underline; text-underline-offset: 0.16em; }
.ktec-card a:hover { opacity: .78; }
.ktec-message-box p, .ktec-consult-box p { color: var(--ktec-subtext); }



/* v20 page polish: services / works / profile / contact */
.ktec-page {
  background: #f8f8f5;
}

.ktec-container {
  width: min(1120px, 90vw);
  margin-inline: auto;
}

.ktec-page-hero {
  padding: 96px 0 72px;
  background:
    linear-gradient(135deg, rgba(23, 58, 48, .92), rgba(43, 82, 77, .82)),
    linear-gradient(90deg, #1e4038, #506a61);
  color: #fff;
  text-align: center;
}

.ktec-page-label,
.ktec-kicker {
  margin: 0 0 14px;
  color: #6c8a7d;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ktec-page-hero .ktec-page-label {
  color: rgba(255,255,255,.76);
}

.ktec-page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 54px);
  letter-spacing: .08em;
  font-weight: 400;
}

.ktec-page-lead {
  max-width: 820px;
  margin: 26px auto 0;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 2.05;
  color: rgba(255,255,255,.9);
}

.ktec-section {
  padding: 86px 0;
}

.ktec-intro-block,
.ktec-message-box,
.ktec-note-panel {
  background: #fff;
  border: 1px solid rgba(44, 75, 66, .12);
  border-radius: 20px;
  padding: clamp(30px, 4vw, 52px);
  box-shadow: 0 20px 50px rgba(32, 57, 49, .06);
}

.ktec-intro-block h2,
.ktec-message-box h2,
.ktec-company-section h2 {
  margin: 0 0 20px;
  color: #233b32;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .04em;
}

.ktec-intro-block p,
.ktec-message-box p,
.ktec-note-panel p {
  margin: 0;
  color: #3f4d47;
  line-height: 2.05;
  font-size: 16px;
}

.ktec-message-box p + p {
  margin-top: 18px;
}

.ktec-signature {
  margin-top: 28px !important;
  text-align: right;
  color: #243b32 !important;
}

.ktec-service-list {
  display: grid;
  gap: 28px;
  margin-top: 38px;
}

.ktec-service-detail-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(44, 75, 66, .12);
  border-radius: 20px;
  padding: clamp(30px, 4vw, 50px);
  box-shadow: 0 18px 48px rgba(32, 57, 49, .055);
  overflow: hidden;
}

.ktec-service-detail-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(#86a996, #c6d5ca);
}

.ktec-card-number {
  display: inline-block;
  margin-bottom: 12px;
  color: #8aa697;
  font-size: 13px;
  letter-spacing: .18em;
}

.ktec-service-detail-card h2,
.ktec-work-card h2,
.ktec-contact-card h2 {
  margin: 0 0 18px;
  color: #223b32;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1.5;
}

.ktec-service-detail-card p,
.ktec-work-card p,
.ktec-contact-card p,
.ktec-group-card p {
  color: #46544e;
  line-height: 2;
  font-size: 16px;
}

.ktec-service-detail-card ul {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ktec-service-detail-card li {
  position: relative;
  padding-left: 1.4em;
  color: #33443d;
  line-height: 1.9;
}

.ktec-service-detail-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #86a996;
}

.ktec-works-grid,
.ktec-contact-grid,
.ktec-group-grid {
  display: grid;
  gap: 26px;
}

.ktec-works-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ktec-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ktec-group-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.ktec-work-card,
.ktec-contact-card,
.ktec-group-card {
  background: #fff;
  border: 1px solid rgba(44, 75, 66, .12);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 16px 42px rgba(32, 57, 49, .05);
}

.ktec-work-category,
.ktec-group-role {
  margin: 0 0 12px !important;
  color: #6c8a7d !important;
  font-size: 13px !important;
  letter-spacing: .18em;
}

.ktec-work-card dl {
  margin: 24px 0 0;
  border-top: 1px solid rgba(44, 75, 66, .12);
}

.ktec-work-card dl div {
  padding: 16px 0;
  border-bottom: 1px solid rgba(44, 75, 66, .1);
}

.ktec-work-card dt {
  margin-bottom: 6px;
  color: #6c8a7d;
  font-size: 13px;
  letter-spacing: .12em;
}

.ktec-work-card dd {
  margin: 0;
  color: #34463e;
  line-height: 1.8;
}

.ktec-note-panel {
  margin-top: 34px;
}

.ktec-note-panel h2 {
  margin: 0 0 14px;
  color: #233b32;
  font-weight: 400;
}

.ktec-company-section {
  margin-top: 58px;
}

.ktec-company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(32, 57, 49, .055);
  border: 1px solid rgba(44, 75, 66, .12);
}

.ktec-company-table th,
.ktec-company-table td {
  padding: 22px 26px;
  border-bottom: 1px solid rgba(44, 75, 66, .1);
  vertical-align: top;
  line-height: 1.9;
}

.ktec-company-table th {
  width: 220px;
  color: #6c8a7d;
  font-weight: 400;
  letter-spacing: .08em;
  background: rgba(238, 244, 240, .7);
  text-align: left;
}

.ktec-company-table td {
  color: #2f433a;
}

.ktec-company-table tr:last-child th,
.ktec-company-table tr:last-child td {
  border-bottom: 0;
}

.ktec-group-card h3 {
  margin: 0 0 14px;
  color: #233b32;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.6;
}

.ktec-contact-tel {
  margin-top: 18px;
  color: #223b32 !important;
  font-size: 20px !important;
}

img[src*="ktec-style-concept"],
img[src*="concept"],
.ktec-concept,
.ktec-style-concept,
.ktec-concept-diagram,
.ktec-style-diagram {
  display: none !important;
}

@media (max-width: 900px) {
  .ktec-page-hero {
    padding: 72px 0 56px;
  }

  .ktec-section {
    padding: 64px 0;
  }

  .ktec-works-grid,
  .ktec-contact-grid,
  .ktec-group-grid {
    grid-template-columns: 1fr;
  }

  .ktec-company-table,
  .ktec-company-table tbody,
  .ktec-company-table tr,
  .ktec-company-table th,
  .ktec-company-table td {
    display: block;
    width: 100%;
  }

  .ktec-company-table th {
    padding-bottom: 8px;
  }

  .ktec-company-table td {
    padding-top: 8px;
  }
}



/* v21 image pages and direct-link polish */
.ktec-intro-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.ktec-page-photo,
.ktec-service-photo,
.ktec-work-feature figure {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #e9eee9;
  box-shadow: 0 18px 44px rgba(29, 54, 45, .12);
}

.ktec-page-photo img,
.ktec-service-photo img,
.ktec-work-card > img,
.ktec-work-feature img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ktec-page-photo {
  aspect-ratio: 4 / 3;
}

.ktec-service-with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

.ktec-service-photo {
  aspect-ratio: 4 / 3;
}

.ktec-work-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-bottom: 42px;
  padding: clamp(26px, 4vw, 46px);
  background: #fff;
  border: 1px solid rgba(44, 75, 66, .12);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(32, 57, 49, .055);
}

.ktec-work-feature figure {
  aspect-ratio: 16 / 10;
}

.ktec-work-feature h2 {
  margin: 0 0 20px;
  color: #233b32;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.55;
}

.ktec-work-feature p {
  color: #3f4d47;
  line-height: 2.05;
}

.ktec-works-photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ktec-work-card > img {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  margin-bottom: 22px;
  box-shadow: 0 12px 28px rgba(29, 54, 45, .08);
}

.ktec-work-card {
  display: flex;
  flex-direction: column;
}

.ktec-work-card dl {
  margin-top: auto;
  padding-top: 22px;
}

@media (max-width: 980px) {
  .ktec-intro-with-image,
  .ktec-service-with-photo,
  .ktec-work-feature {
    grid-template-columns: 1fr;
  }

  .ktec-works-photo-grid {
    grid-template-columns: 1fr;
  }

  .ktec-service-photo {
    order: -1;
  }
}


/* v22 fixed page content and hero slider images */
.ktec-intro-with-image{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:clamp(28px,4vw,56px);align-items:center}
.ktec-page-photo,.ktec-service-photo,.ktec-work-feature figure{margin:0;overflow:hidden;border-radius:22px;background:#e9eee9;box-shadow:0 18px 44px rgba(29,54,45,.12)}
.ktec-page-photo img,.ktec-service-photo img,.ktec-work-card>img,.ktec-work-feature img{width:100%;height:100%;display:block;object-fit:cover}
.ktec-page-photo{aspect-ratio:4/3}
.ktec-service-with-photo{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:clamp(26px,4vw,48px);align-items:center}
.ktec-service-photo{aspect-ratio:4/3}
.ktec-work-feature{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(32px,5vw,64px);align-items:center;margin-bottom:42px;padding:clamp(26px,4vw,46px);background:#fff;border:1px solid rgba(44,75,66,.12);border-radius:24px;box-shadow:0 18px 48px rgba(32,57,49,.055)}
.ktec-work-feature figure{aspect-ratio:16/10}
.ktec-work-feature h2{margin:0 0 20px;color:#233b32;font-size:clamp(26px,3vw,40px);font-weight:400;line-height:1.55}
.ktec-work-feature p{color:#3f4d47;line-height:2.05}
.ktec-works-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ktec-work-card>img{aspect-ratio:16/10;border-radius:16px;margin-bottom:22px;box-shadow:0 12px 28px rgba(29,54,45,.08)}
.ktec-work-card{display:flex;flex-direction:column}
.ktec-work-card p:last-child{margin-bottom:0}
@media(max-width:980px){.ktec-intro-with-image,.ktec-service-with-photo,.ktec-work-feature{grid-template-columns:1fr}.ktec-works-photo-grid{grid-template-columns:1fr}.ktec-service-photo{order:-1}}



/* v26 header nav refinement */
.ktec-header-nav,
.site-header .ktec-header-nav,
.ktec-hero .ktec-header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ktec-header-nav a,
.site-header .ktec-header-nav a,
.ktec-hero .ktec-header-nav a,
.ktec-header-nav a:visited,
.site-header .ktec-header-nav a:visited,
.ktec-hero .ktec-header-nav a:visited {
  color: #fff !important;
  font-size: 14pt !important;
  line-height: 1.2;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 10px 13px;
  letter-spacing: .08em;
  border-bottom: 1px solid rgba(255,255,255,.32);
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}

.ktec-header-nav a:hover,
.site-header .ktec-header-nav a:hover,
.ktec-hero .ktec-header-nav a:hover {
  color: #fff !important;
  border-bottom-color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.08);
}

@media (max-width: 900px) {
  .ktec-header-nav,
  .site-header .ktec-header-nav,
  .ktec-hero .ktec-header-nav {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ktec-header-nav a,
  .site-header .ktec-header-nav a,
  .ktec-hero .ktec-header-nav a {
    font-size: 12px !important;
    min-width: auto;
    padding: 8px 7px;
  }
}



/* v27 subpage header visibility fix */
body:not(.home) .site-header,
body:not(.home) .ktec-site-header,
body:not(.front-page) .site-header,
body:not(.front-page) .ktec-site-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(
    to bottom,
    rgba(18, 45, 39, .82),
    rgba(18, 45, 39, .42),
    rgba(18, 45, 39, 0)
  ) !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:not(.home) .ktec-page-hero,
body:not(.front-page) .ktec-page-hero {
  padding-top: 150px !important;
  position: relative;
  overflow: hidden;
}

body:not(.home) .ktec-page-hero::before,
body:not(.front-page) .ktec-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(135deg, rgba(21, 55, 48, .96), rgba(41, 83, 77, .90));
  z-index: 0;
}

body:not(.home) .ktec-page-hero > *,
body:not(.front-page) .ktec-page-hero > * {
  position: relative;
  z-index: 1;
}

body:not(.home) .site-header a,
body:not(.home) .ktec-site-header a,
body:not(.front-page) .site-header a,
body:not(.front-page) .ktec-site-header a,
body:not(.home) .site-title,
body:not(.home) .site-title a,
body:not(.front-page) .site-title,
body:not(.front-page) .site-title a {
  color: #fff !important;
}

body:not(.home) .ktec-header-nav a,
body:not(.front-page) .ktec-header-nav a {
  color: #fff !important;
  border-bottom-color: rgba(255,255,255,.36) !important;
  text-shadow: 0 1px 12px rgba(0,0,0,.42);
}

body:not(.home) .ktec-header-nav a:hover,
body:not(.front-page) .ktec-header-nav a:hover {
  background: rgba(255,255,255,.10) !important;
  border-bottom-color: rgba(255,255,255,.96) !important;
}

body:not(.home) .ktec-brand,
body:not(.front-page) .ktec-brand,
body:not(.home) .ktec-brand a,
body:not(.front-page) .ktec-brand a {
  color: #fff !important;
}

@media (max-width: 900px) {
  body:not(.home) .ktec-page-hero,
  body:not(.front-page) .ktec-page-hero {
    padding-top: 132px !important;
  }

  body:not(.home) .site-header,
  body:not(.front-page) .site-header,
  body:not(.home) .ktec-site-header,
  body:not(.front-page) .ktec-site-header {
    background: rgba(18, 45, 39, .86) !important;
  }
}



/* v28 copy refinement */
.ktec-service-hero-note {
  margin: 18px auto 0;
  color: rgba(255,255,255,.95);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.7;
  letter-spacing: .08em;
  font-weight: 400;
}

.ktec-page-hero .ktec-page-lead {
  margin-top: 22px;
}

.ktec-inner-content-page .ktec-page-hero h1 + .ktec-service-hero-note + .ktec-page-lead {
  margin-top: 18px;
}

.ktec-service-detail-card p,
.ktec-work-card p,
.ktec-intro-block p,
.ktec-message-box p {
  letter-spacing: .02em;
}

.ktec-work-card h2,
.ktec-service-detail-card h2 {
  letter-spacing: .035em;
}



/* v29 logo and services hero copy fix */
.ktec-logo-link {
  display: inline-flex;
  align-items: center;
  width: clamp(120px, 13vw, 190px);
  max-width: 190px;
  line-height: 0;
  text-decoration: none !important;
}

.ktec-logo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.18));
}

.site-header,
.ktec-site-header {
  align-items: center;
}

body:not(.home) .ktec-logo-img,
body:not(.front-page) .ktec-logo-img {
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.22));
}

.ktec-service-hero-note {
  display: none !important;
}

@media (max-width: 900px) {
  .ktec-logo-link {
    width: 112px;
  }
}



/* v30 logo text cleanup and services copy */
.ktec-brand-text,
.site-title .ktec-brand-text,
.ktec-logo-link + .ktec-brand,
.ktec-logo-link + .site-title,
.ktec-logo-link + .ktec-brand-text {
  display: none !important;
}

.ktec-service-detail-card p {
  line-height: 2.05;
}

.ktec-service-detail-card p br {
  display: block;
  content: "";
  margin-top: .25em;
}

/* v33 client revision */
.ktec-service-detail-card ul li,.ktec-work-card p{line-height:1.95}.ktec-work-card h2{min-height:0}.ktec-work-card>img{background:#e7ece8}



/* v34 top hero copy balance */
.ktec-hero-copy {
  position: relative;
  z-index: 5;
  width: min(760px, 86vw);
  margin-left: auto;
  margin-right: clamp(36px, 8vw, 120px);
  color: #fff;
  text-align: left;
  letter-spacing: .08em;
  text-shadow: 0 2px 18px rgba(0,0,0,.46);
}

.ktec-hero-copy p {
  margin: 0;
  font-size: clamp(25px, 2.45vw, 34px);
  line-height: 1.65;
  font-weight: 400;
}

.ktec-hero-copy .ktec-hero-copy-small {
  margin-top: 18px;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.75;
  letter-spacing: .12em;
}

.ktec-hero-copy .ktec-hero-copy-lead {
  margin-top: 26px;
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 2.05;
  letter-spacing: .06em;
  max-width: 720px;
}

@media (max-width: 900px) {
  .ktec-hero-copy {
    width: min(88vw, 640px);
    margin: 0 auto;
    text-align: left;
  }

  .ktec-hero-copy p {
    font-size: clamp(22px, 5.5vw, 30px);
    line-height: 1.6;
  }

  .ktec-hero-copy .ktec-hero-copy-small {
    font-size: 17px;
  }

  .ktec-hero-copy .ktec-hero-copy-lead {
    font-size: 14px;
    line-height: 1.9;
  }
}



/* v40 top hero restored */
.ktec-hero-slider {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ktec-hero-slides,
.ktec-hero-slide,
.ktec-hero-overlay {
  position: absolute;
  inset: 0;
}

.ktec-hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.ktec-hero-slide.is-active {
  opacity: 1;
}

.ktec-hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,28,25,.28), rgba(8,28,25,.18) 42%, rgba(8,28,25,.54)),
    linear-gradient(0deg, rgba(0,0,0,.28), rgba(0,0,0,.08));
}

.ktec-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 170px 0 120px;
}

.ktec-hero-copy {
  max-width: min(760px, 88vw);
  margin-left: auto;
  margin-right: clamp(5vw, 8vw, 120px);
  text-align: left;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0,0,0,.48);
}

.ktec-hero-main {
  margin: 0;
  font-size: clamp(28px, 3.15vw, 46px);
  line-height: 1.55;
  letter-spacing: .08em;
  font-weight: 400;
}

.ktec-hero-sub {
  margin: 22px 0 0;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.6;
  letter-spacing: .08em;
  font-weight: 400;
}

.ktec-hero-lead {
  margin: 26px 0 0;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 2.05;
  letter-spacing: .045em;
  font-weight: 400;
}

@media (max-width: 900px) {
  .ktec-hero-slider {
    min-height: 680px;
  }

  .ktec-hero-content {
    padding: 150px 0 90px;
  }

  .ktec-hero-copy {
    margin: 0 auto;
    text-align: center;
    max-width: 88vw;
  }

  .ktec-hero-main {
    font-size: clamp(24px, 7vw, 34px);
  }

  .ktec-hero-sub {
    font-size: clamp(18px, 5vw, 24px);
    margin-top: 18px;
  }

  .ktec-hero-lead {
    font-size: 14px;
    line-height: 1.95;
    margin-top: 20px;
  }
}



/* v41 hero text fixed at 25pt */
.ktec-hero-main,
.ktec-hero-sub,
.ktec-hero-lead {
  font-size: 25pt !important;
}

.ktec-hero-main {
  line-height: 1.55;
}

.ktec-hero-sub {
  line-height: 1.55;
  margin-top: 22px;
}

.ktec-hero-lead {
  line-height: 1.85;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .ktec-hero-main,
  .ktec-hero-sub,
  .ktec-hero-lead {
    font-size: 25pt !important;
  }

  .ktec-hero-copy {
    max-width: 92vw;
  }
}



/* v42 restore v36 text and remove top line in top service boxes */
.ktec-service-added-line {
  margin: 0 0 18px;
  color: #34463e;
  line-height: 1.9;
  letter-spacing: .04em;
}

.home .ktec-service-card,
.home .ktec-business-card,
.home .ktec-service-detail-card,
.home .ktec-card,
.front-page .ktec-service-card,
.front-page .ktec-business-card,
.front-page .ktec-service-detail-card,
.front-page .ktec-card {
  border-top: 0 !important;
}

.home .ktec-service-card::before,
.home .ktec-business-card::before,
.home .ktec-service-detail-card::before,
.home .ktec-card::before,
.front-page .ktec-service-card::before,
.front-page .ktec-business-card::before,
.front-page .ktec-service-detail-card::before,
.front-page .ktec-card::before {
  display: none !important;
}

/* If the top line is generated by the first child border */
.home .ktec-service-card > :first-child,
.home .ktec-business-card > :first-child,
.home .ktec-card > :first-child,
.front-page .ktec-service-card > :first-child,
.front-page .ktec-business-card > :first-child,
.front-page .ktec-card > :first-child {
  border-top: 0 !important;
}



/* v43 top service card spacing adjustment */
.home .ktec-service-card,
.home .ktec-business-card,
.home .ktec-service-detail-card,
.home .ktec-card,
.front-page .ktec-service-card,
.front-page .ktec-business-card,
.front-page .ktec-service-detail-card,
.front-page .ktec-card {
  padding-top: 24px !important;
}

.home .ktec-service-list,
.home .ktec-services-grid,
.home .ktec-business-grid,
.front-page .ktec-service-list,
.front-page .ktec-services-grid,
.front-page .ktec-business-grid {
  margin-top: 24px !important;
}

.home .ktec-card-number,
.front-page .ktec-card-number {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.home .ktec-service-card h3,
.home .ktec-business-card h3,
.home .ktec-card h3,
.front-page .ktec-service-card h3,
.front-page .ktec-business-card h3,
.front-page .ktec-card h3 {
  margin-top: 0 !important;
}



/* v45 widen top cards and reduce unwanted line breaks */
.home .ktec-container,
.front-page .ktec-container,
.home .ktec-inner,
.front-page .ktec-inner {
  width: min(1280px, 94vw) !important;
}

.home .ktec-service-list,
.front-page .ktec-service-list,
.home .ktec-services-grid,
.front-page .ktec-services-grid,
.home .ktec-business-grid,
.front-page .ktec-business-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
}

.home .ktec-service-card,
.home .ktec-business-card,
.home .ktec-service-detail-card,
.home .ktec-card,
.front-page .ktec-service-card,
.front-page .ktec-business-card,
.front-page .ktec-service-detail-card,
.front-page .ktec-card {
  padding-left: 30px !important;
  padding-right: 30px !important;
  min-width: 0;
}

.home .ktec-service-card p,
.home .ktec-business-card p,
.home .ktec-service-detail-card p,
.home .ktec-card p,
.front-page .ktec-service-card p,
.front-page .ktec-business-card p,
.front-page .ktec-service-detail-card p,
.front-page .ktec-card p {
  font-size: 15px !important;
  line-height: 1.85 !important;
  letter-spacing: .01em !important;
  word-break: normal;
  overflow-wrap: anywhere;
}

.home .ktec-service-card h3,
.home .ktec-business-card h3,
.home .ktec-card h3,
.front-page .ktec-service-card h3,
.front-page .ktec-business-card h3,
.front-page .ktec-card h3 {
  font-size: 22px !important;
  line-height: 1.5 !important;
  letter-spacing: .04em !important;
}

@media (max-width: 1100px) {
  .home .ktec-service-list,
  .front-page .ktec-service-list,
  .home .ktec-services-grid,
  .front-page .ktec-services-grid,
  .home .ktec-business-grid,
  .front-page .ktec-business-grid {
    grid-template-columns: 1fr !important;
  }

  .home .ktec-service-card,
  .home .ktec-business-card,
  .home .ktec-service-detail-card,
  .home .ktec-card,
  .front-page .ktec-service-card,
  .front-page .ktec-business-card,
  .front-page .ktec-service-detail-card,
  .front-page .ktec-card {
    padding-left: 26px !important;
    padding-right: 26px !important;
  }
}



/* v46 services page number cleanup */
.ktec-services-page .ktec-card-number,
.ktec-inner-content-page.ktec-services-page .ktec-card-number {
  display: none !important;
}



/* v48 works page: keep only Sakuradabori feature */
.ktec-works-page .ktec-work-feature {
  margin-bottom: 0;
}



/* v49 works PDF addition */
.ktec-works-addition {
  margin-top: 58px;
}

.ktec-section-heading {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.ktec-section-heading h2 {
  margin: 0 0 18px;
  color: #233b32;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .04em;
}

.ktec-section-heading p {
  color: #46544e;
  line-height: 2;
}

.ktec-works-addition .ktec-works-photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ktec-works-addition .ktec-work-card > img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 980px) {
  .ktec-works-addition .ktec-works-photo-grid {
    grid-template-columns: 1fr;
  }
}



/* v50 works layout fixed */
.ktec-works-page .ktec-works-addition {
  clear: both;
  margin-top: 64px;
  width: 100%;
}

.ktec-works-page .ktec-section-heading {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}

.ktec-works-page .ktec-section-heading h2 {
  margin: 0 0 16px;
  color: #233b32;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .04em;
}

.ktec-works-page .ktec-section-heading p {
  color: #46544e;
  line-height: 2;
}

.ktec-works-note-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.ktec-works-note-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  background: #fff;
  border: 1px solid rgba(44, 75, 66, .12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(32, 57, 49, .05);
}

.ktec-works-note-card figure {
  margin: 0 !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  background: #e7ece8;
}

.ktec-works-note-card figure img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.ktec-works-note-body {
  padding: 26px 28px 30px;
}

.ktec-works-note-body h2 {
  margin: 0 0 14px;
  color: #223b32;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .035em;
}

.ktec-works-note-body p {
  color: #46544e;
  line-height: 1.95;
  font-size: 15px;
}

@media (max-width: 980px) {
  .ktec-works-note-grid {
    grid-template-columns: 1fr !important;
  }
}



/* v52 works page: 2-column layout with core image */
.ktec-works-note-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

.ktec-works-note-card {
  display: flex !important;
  flex-direction: column !important;
}

.ktec-works-note-card figure {
  margin: 0 !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  background: #eef2ef;
}

.ktec-works-note-card figure img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.ktec-works-note-card--tall figure {
  aspect-ratio: auto !important;
  height: auto !important;
  overflow: visible !important;
  background: #fff !important;
}

.ktec-works-note-card--tall figure img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 980px) {
  .ktec-works-note-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v53 final layout polish */
:root {
  --ktec-container-wide: min(1240px, 92vw);
  --ktec-container-standard: min(1120px, 90vw);
  --ktec-green: #233b32;
  --ktec-border: rgba(44, 75, 66, .12);
  --ktec-shadow: 0 16px 42px rgba(32, 57, 49, .055);
}

body {
  overflow-x: hidden;
}

.ktec-container {
  width: var(--ktec-container-standard);
}

.home .ktec-container,
.front-page .ktec-container {
  width: var(--ktec-container-wide);
}

/* Header */
.site-header,
.ktec-site-header {
  box-sizing: border-box;
}

.ktec-logo-link {
  flex: 0 0 auto;
}

.ktec-header-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ktec-header-nav a {
  white-space: nowrap;
}

/* Hero */
.ktec-hero-slider {
  min-height: clamp(660px, 78vh, 820px);
}

.ktec-hero-content {
  box-sizing: border-box;
}

.ktec-hero-copy {
  width: min(780px, 88vw);
}

.ktec-hero-main,
.ktec-hero-sub,
.ktec-hero-lead {
  font-size: 25pt !important;
}

.ktec-hero-lead {
  max-width: 780px;
}

/* Sections */
.ktec-section {
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

.ktec-page-hero {
  padding-bottom: clamp(58px, 6vw, 78px);
}

.ktec-page-lead {
  max-width: 900px;
}

/* Card consistency */
.ktec-service-card,
.ktec-business-card,
.ktec-service-detail-card,
.ktec-work-card,
.ktec-works-note-card,
.ktec-contact-card,
.ktec-group-card,
.ktec-intro-block,
.ktec-message-box,
.ktec-note-panel {
  box-sizing: border-box;
  border-color: var(--ktec-border);
  box-shadow: var(--ktec-shadow);
}

.ktec-service-card,
.ktec-business-card,
.ktec-card,
.ktec-service-detail-card,
.ktec-work-card,
.ktec-works-note-card {
  transition: transform .25s ease, box-shadow .25s ease;
}

@media (hover: hover) {
  .ktec-service-card:hover,
  .ktec-business-card:hover,
  .ktec-card:hover,
  .ktec-service-detail-card:hover,
  .ktec-work-card:hover,
  .ktec-works-note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 52px rgba(32, 57, 49, .075);
  }
}

/* Top page cards */
.home .ktec-service-list,
.front-page .ktec-service-list,
.home .ktec-services-grid,
.front-page .ktec-services-grid,
.home .ktec-business-grid,
.front-page .ktec-business-grid {
  align-items: stretch;
}

.home .ktec-service-card,
.front-page .ktec-service-card,
.home .ktec-business-card,
.front-page .ktec-business-card,
.home .ktec-card,
.front-page .ktec-card {
  height: 100%;
  padding: 30px 32px 34px !important;
}

.home .ktec-service-card p,
.front-page .ktec-service-card p,
.home .ktec-business-card p,
.front-page .ktec-business-card p,
.home .ktec-card p,
.front-page .ktec-card p {
  line-height: 1.9 !important;
  text-align: left;
}

/* Services page */
.ktec-services-page .ktec-service-list {
  gap: 30px;
}

.ktec-services-page .ktec-service-detail-card {
  padding: clamp(30px, 4vw, 48px);
}

.ktec-services-page .ktec-service-with-photo {
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
}

.ktec-services-page .ktec-service-photo,
.ktec-services-page .ktec-page-photo {
  border-radius: 20px;
}

.ktec-services-page .ktec-service-photo img,
.ktec-services-page .ktec-page-photo img {
  object-position: center;
}

/* Works page */
.ktec-works-page .ktec-work-feature {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(34px, 5vw, 62px);
  margin-bottom: 0;
}

.ktec-works-page .ktec-work-feature figure {
  border-radius: 20px;
}

.ktec-works-page .ktec-work-feature h2 {
  font-size: clamp(27px, 2.8vw, 38px);
}

.ktec-works-page .ktec-works-addition {
  margin-top: clamp(58px, 7vw, 82px);
  padding-top: clamp(10px, 2vw, 18px);
}

.ktec-works-note-grid {
  max-width: 1120px;
  margin-inline: auto;
}

.ktec-works-note-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.ktec-works-note-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ktec-works-note-body h2 {
  color: var(--ktec-green);
}

.ktec-works-note-body p:last-child {
  margin-bottom: 0;
}

.ktec-works-note-card--tall figure {
  padding: 18px 18px 0;
}

.ktec-works-note-card--tall figure img {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(32, 57, 49, .08);
}

/* Company tables */
.ktec-company-table {
  table-layout: fixed;
}

.ktec-company-table th {
  width: 230px;
}

.ktec-company-table th,
.ktec-company-table td {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Typography */
.ktec-page h1,
.ktec-page h2,
.ktec-page h3,
.ktec-hero-copy {
  text-wrap: balance;
}

.ktec-service-detail-card p,
.ktec-work-card p,
.ktec-works-note-body p,
.ktec-company-table td,
.ktec-contact-card p,
.ktec-group-card p {
  font-feature-settings: "palt";
}

/* Responsive */
@media (max-width: 1100px) {
  .home .ktec-service-list,
  .front-page .ktec-service-list,
  .home .ktec-services-grid,
  .front-page .ktec-services-grid,
  .home .ktec-business-grid,
  .front-page .ktec-business-grid,
  .ktec-works-note-grid {
    grid-template-columns: 1fr !important;
  }

  .ktec-services-page .ktec-service-with-photo,
  .ktec-works-page .ktec-work-feature {
    grid-template-columns: 1fr;
  }

  .ktec-services-page .ktec-service-photo {
    order: -1;
  }
}

@media (max-width: 900px) {
  .ktec-container,
  .home .ktec-container,
  .front-page .ktec-container {
    width: min(92vw, 720px);
  }

  .ktec-hero-slider {
    min-height: 720px;
  }

  .ktec-hero-content {
    padding-top: 156px;
    padding-bottom: 90px;
  }

  .ktec-hero-main,
  .ktec-hero-sub,
  .ktec-hero-lead {
    font-size: 21pt !important;
  }

  .ktec-hero-lead br {
    display: none;
  }

  .ktec-page-hero {
    padding-top: 138px !important;
  }

  .ktec-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .ktec-company-table th,
  .ktec-company-table td {
    padding: 18px 20px;
  }
}

@media (max-width: 560px) {
  .ktec-logo-link {
    width: 104px;
  }

  .ktec-header-nav a {
    font-size: 11px !important;
    padding: 7px 6px;
  }

  .ktec-hero-slider {
    min-height: 680px;
  }

  .ktec-hero-main,
  .ktec-hero-sub,
  .ktec-hero-lead {
    font-size: 18pt !important;
  }

  .ktec-hero-main {
    line-height: 1.55;
  }

  .ktec-hero-lead {
    line-height: 1.85;
  }

  .home .ktec-service-card,
  .front-page .ktec-service-card,
  .home .ktec-business-card,
  .front-page .ktec-business-card,
  .home .ktec-card,
  .front-page .ktec-card,
  .ktec-service-detail-card,
  .ktec-works-note-body {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}



/* v54 profile page greeting removed */
.ktec-profile-page .ktec-company-section:first-child,
.ktec-profile-page .ktec-company-section:first-of-type {
  margin-top: 0 !important;
}

.ktec-profile-page .ktec-section > .ktec-container > .ktec-company-section:first-child {
  padding-top: 0 !important;
}



/* v55 Instagram link section */
.ktec-instagram-section {
  padding: clamp(44px, 5vw, 70px) 0;
  background:
    linear-gradient(135deg, rgba(245, 248, 245, .96), rgba(238, 244, 240, .96));
}

.ktec-instagram-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 46px);
  text-align: center;
  background: #fff;
  border: 1px solid rgba(44, 75, 66, .12);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(32, 57, 49, .055);
}

.ktec-instagram-card h2 {
  margin: 0 0 24px;
  color: #233b32;
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .04em;
}

.ktec-instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 14px 28px;
  color: #fff !important;
  background: #233b32;
  border: 1px solid #233b32;
  border-radius: 999px;
  text-decoration: none !important;
  letter-spacing: .08em;
  line-height: 1.4;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  box-shadow: 0 12px 26px rgba(32, 57, 49, .14);
}

.ktec-instagram-link:hover {
  transform: translateY(-2px);
  background: #2f5145;
  box-shadow: 0 16px 34px rgba(32, 57, 49, .18);
}

@media (max-width: 560px) {
  .ktec-instagram-link {
    min-width: 0;
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }
}



/* v56 Instagram spacing adjustment */
.ktec-instagram-section {
  padding-top: clamp(24px, 3vw, 38px) !important;
  padding-bottom: clamp(44px, 5vw, 68px) !important;
}

.ktec-message-box + .ktec-instagram-section,
.ktec-greeting-section + .ktec-instagram-section {
  margin-top: -18px;
}

.home .ktec-message-box,
.front-page .ktec-message-box {
  margin-bottom: 0 !important;
}

@media (max-width: 560px) {
  .ktec-instagram-section {
    padding-top: 22px !important;
  }

  .ktec-message-box + .ktec-instagram-section,
  .ktec-greeting-section + .ktec-instagram-section {
    margin-top: -8px;
  }
}


/* v57 header Instagram icon */
.ktec-header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ktec-header-nav .ktec-nav-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 6px !important;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  text-decoration: none !important;
  flex: 0 0 auto;
}

.ktec-header-nav .ktec-nav-instagram img {
  display: block;
  width: 22px;
  height: 22px;
}

.ktec-header-nav .ktec-nav-instagram:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.38);
}

@media (max-width: 900px) {
  .ktec-header-nav .ktec-nav-instagram {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 5px !important;
    margin-left: 2px;
  }

  .ktec-header-nav .ktec-nav-instagram img {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 560px) {
  .ktec-header-nav .ktec-nav-instagram {
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 4px !important;
  }

  .ktec-header-nav .ktec-nav-instagram img {
    width: 18px;
    height: 18px;
  }
}



/* v61 contact email link */
.ktec-contact-mail {
  margin-top: 14px;
}

.ktec-contact-mail a {
  display: inline-flex;
  align-items: center;
  color: #233b32;
  text-decoration: none;
  border-bottom: 1px solid rgba(35, 59, 50, .35);
  letter-spacing: .04em;
}

.ktec-contact-mail a:hover {
  color: #2f5145;
  border-bottom-color: #2f5145;
}



/* v62 Instagram icon PNG fallback for mobile */
.ktec-header-nav .ktec-nav-instagram img {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  object-fit: contain !important;
  border: 0 !important;
}

.ktec-header-nav .ktec-nav-instagram {
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden;
}

@media (max-width: 900px) {
  .ktec-header-nav .ktec-nav-instagram img {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }
}

@media (max-width: 560px) {
  .ktec-header-nav .ktec-nav-instagram img {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
  }
}
