
.koyo-tech-single {
  --koyo-ink: #111820;
  --koyo-steel: #355768;
  --koyo-muted: #687782;
  --koyo-border: #d9e1e5;
  --koyo-bg: #f4f7f8;
  max-width: 980px;
  margin: 0 auto;
  color: var(--koyo-ink);
}

.koyo-tech-head {
  border-top: 4px solid var(--koyo-ink);
  background: var(--koyo-bg);
  padding: 20px 24px;
  margin: 0 0 28px;
}

.koyo-tech-report-no {
  font-weight: 800;
  color: var(--koyo-steel);
  margin: 0 0 6px;
  letter-spacing: .07em;
}

.koyo-tech-subtitle {
  font-size: 1.05rem;
  margin: 0;
  color: #2d3c45;
}

.koyo-tech-points {
  border: 1px solid var(--koyo-border);
  border-top: 4px solid var(--koyo-steel);
  background: #fff;
  padding: 24px 26px;
  margin: 0 0 30px;
}

.koyo-tech-points h2 {
  font-size: 1.3rem;
  margin: 0 0 14px;
  color: var(--koyo-ink);
}

.koyo-tech-points ul {
  margin: 0;
  padding-left: 1.3em;
}

.koyo-tech-points li + li {
  margin-top: 6px;
}

.koyo-tech-body img {
  max-width: 100%;
  height: auto;
}

.koyo-tech-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--koyo-border);
}

.koyo-tech-button {
  display: inline-block;
  padding: 13px 18px;
  background: var(--koyo-ink);
  color: #fff !important;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 800;
}

.koyo-tech-button:hover {
  opacity: .88;
}

.koyo-tech-button-outline {
  background: #fff;
  color: var(--koyo-ink) !important;
  border: 1px solid var(--koyo-ink);
}

.koyo-tech-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.koyo-tech-card {
  border: 1px solid var(--koyo-border, #d9e1e5);
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.koyo-tech-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(17,24,32,.10);
}

.koyo-tech-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.koyo-tech-card-image img {
  display: block;
  width: 100%;
  height: auto;
}

.koyo-tech-card-body {
  padding: 20px 20px 22px;
}

.koyo-tech-card-no {
  color: #355768;
  font-weight: 800;
  margin: 0 0 8px;
  font-size: .88rem;
  letter-spacing: .04em;
}

.koyo-tech-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.45;
}

.koyo-tech-card-subtitle {
  font-weight: 700;
  color: #2e3d46;
}

@media (max-width: 640px) {
  .koyo-tech-head,
  .koyo-tech-points {
    padding: 16px;
  }

  .koyo-tech-actions {
    display: block;
  }

  .koyo-tech-button {
    display: block;
    text-align: center;
    margin-bottom: 10px;
  }
}

/* Auto archive page */
.koyo-tech-archive-page {
    background: #f3f5f6;
}
.koyo-tech-archive-hero {
    background: #0c1624;
    color: #fff;
    padding: 72px 20px 56px;
}
.koyo-tech-archive-inner {
    max-width: 1120px;
    margin: 0 auto;
}
.koyo-tech-archive-kicker {
    margin: 0 0 12px;
    letter-spacing: .14em;
    font-size: 12px;
    color: #b8c1cc;
    font-weight: 700;
}
.koyo-tech-archive-hero h1 {
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.15;
    margin: 0 0 16px;
}
.koyo-tech-archive-hero p {
    color: #d9dee5;
    font-size: 16px;
    line-height: 1.9;
    max-width: 760px;
    margin: 0;
}
.koyo-tech-archive-content {
    padding: 56px 20px 72px;
}

/* No.001 seeded individual page */
.koyo-tech-figure {
  margin: 28px 0 34px;
  background: #fff;
  border: 1px solid var(--koyo-border, #d9e1e5);
  padding: 12px;
}
.koyo-tech-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.koyo-tech-figure figcaption {
  margin: 10px 2px 0;
  color: var(--koyo-muted, #687782);
  font-size: .92rem;
  line-height: 1.7;
}
.koyo-tech-figure-main {
  margin-top: 0;
}
.koyo-tech-card-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}


/* v1.0.5: archive card image size adjustment
   一覧ページで記事が1件だけの時にカード写真が横いっぱいに伸びないよう調整 */
.koyo-tech-list {
  grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
  justify-content: start;
  align-items: start;
}

.koyo-tech-card {
  max-width: 360px;
}

.koyo-tech-card-image {
  height: 160px;
  overflow: hidden;
  background: #e8edf0;
}

.koyo-tech-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  aspect-ratio: auto;
}

.koyo-tech-card-body {
  padding: 18px 18px 20px;
}

.koyo-tech-card h3 {
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .koyo-tech-list {
    grid-template-columns: 1fr;
  }

  .koyo-tech-card {
    max-width: none;
  }

  .koyo-tech-card-image {
    height: 165px;
  }
}

/* v1.0.6: font sizing adjusted to match the main site more closely
   技術報告ページだけに効くよう、koyo-tech系のクラス内に限定 */
.koyo-tech-single,
.koyo-tech-archive-page {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.koyo-tech-single p,
.koyo-tech-single li,
.koyo-tech-card-body p,
.koyo-tech-archive-hero p {
  font-size: 14px;
  line-height: 1.85;
}

.koyo-tech-single h1,
.koyo-tech-single h2,
.koyo-tech-single h3,
.koyo-tech-archive-hero h1,
.koyo-tech-card h3 {
  letter-spacing: 0.02em;
}

.koyo-tech-single h2 {
  font-size: 20px;
  line-height: 1.55;
  margin: 34px 0 14px;
}

.koyo-tech-single h3 {
  font-size: 17px;
  line-height: 1.6;
}

.koyo-tech-head {
  padding: 16px 20px;
  margin-bottom: 24px;
}

.koyo-tech-report-no {
  font-size: 12px;
  margin-bottom: 4px;
}

.koyo-tech-subtitle {
  font-size: 14px;
  line-height: 1.75;
}

.koyo-tech-points {
  padding: 18px 20px;
  margin-bottom: 26px;
}

.koyo-tech-points h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.koyo-tech-points li + li {
  margin-top: 3px;
}

.koyo-tech-figure {
  margin: 22px 0 28px;
  padding: 10px;
}

.koyo-tech-figure figcaption {
  font-size: 12px;
  line-height: 1.7;
}

.koyo-tech-actions {
  margin-top: 30px;
  padding-top: 20px;
}

.koyo-tech-button {
  padding: 11px 16px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.koyo-tech-archive-hero {
  padding: 54px 20px 44px;
}

.koyo-tech-archive-kicker {
  font-size: 11px;
  margin-bottom: 8px;
}

.koyo-tech-archive-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 10px;
}

.koyo-tech-archive-content {
  padding: 42px 20px 60px;
}

.koyo-tech-list {
  gap: 20px;
}

.koyo-tech-card-body {
  padding: 16px 16px 18px;
}

.koyo-tech-card-no {
  font-size: 11px;
  margin-bottom: 6px;
}

.koyo-tech-card h3 {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 8px;
}

.koyo-tech-card-subtitle {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.koyo-tech-card-body p:not(.koyo-tech-card-no):not(.koyo-tech-card-subtitle) {
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* v1.0.6: hide theme/plugin SNS share blocks on technical report pages only
   記事本文の上や横にSNSボタンが重なって邪魔な場合の対策 */
body.single-koyo_tech_report .sns,
body.single-koyo_tech_report .sns-share,
body.single-koyo_tech_report .sns-area,
body.single-koyo_tech_report .share,
body.single-koyo_tech_report .share-area,
body.single-koyo_tech_report .share-buttons,
body.single-koyo_tech_report .social-share,
body.single-koyo_tech_report .social-buttons,
body.single-koyo_tech_report .post-share,
body.single-koyo_tech_report .entry-share,
body.single-koyo_tech_report .wp_social_bookmarking_light,
body.single-koyo_tech_report .addtoany_content,
body.single-koyo_tech_report .addtoany_share_save_container,
body.single-koyo_tech_report .sharedaddy,
body.single-koyo_tech_report .heateor_sss_sharing_container,
body.single-koyo_tech_report .sfsi_widget,
body.single-koyo_tech_report .sbi,
body.post-type-archive-koyo_tech_report .sns,
body.post-type-archive-koyo_tech_report .sns-share,
body.post-type-archive-koyo_tech_report .sns-area,
body.post-type-archive-koyo_tech_report .share,
body.post-type-archive-koyo_tech_report .share-area,
body.post-type-archive-koyo_tech_report .share-buttons,
body.post-type-archive-koyo_tech_report .social-share,
body.post-type-archive-koyo_tech_report .social-buttons,
body.post-type-archive-koyo_tech_report .post-share,
body.post-type-archive-koyo_tech_report .entry-share,
body.post-type-archive-koyo_tech_report .wp_social_bookmarking_light,
body.post-type-archive-koyo_tech_report .addtoany_content,
body.post-type-archive-koyo_tech_report .addtoany_share_save_container,
body.post-type-archive-koyo_tech_report .sharedaddy,
body.post-type-archive-koyo_tech_report .heateor_sss_sharing_container,
body.post-type-archive-koyo_tech_report .sfsi_widget,
body.post-type-archive-koyo_tech_report .sbi,
.koyo-tech-single + .sns,
.koyo-tech-single + .share,
.koyo-tech-single ~ .sns,
.koyo-tech-single ~ .share {
  display: none !important;
}

/* floating share widgets that overlap the report body */
body.single-koyo_tech_report [class*="share"][style*="position: fixed"],
body.single-koyo_tech_report [class*="sns"][style*="position: fixed"],
body.post-type-archive-koyo_tech_report [class*="share"][style*="position: fixed"],
body.post-type-archive-koyo_tech_report [class*="sns"][style*="position: fixed"] {
  display: none !important;
}

@media (max-width: 640px) {
  .koyo-tech-single,
  .koyo-tech-archive-page {
    font-size: 13px;
  }
  .koyo-tech-single p,
  .koyo-tech-single li,
  .koyo-tech-card-body p,
  .koyo-tech-archive-hero p {
    font-size: 13px;
  }
  .koyo-tech-single h2 {
    font-size: 18px;
  }
  .koyo-tech-head,
  .koyo-tech-points {
    padding: 14px;
  }
  .koyo-tech-archive-hero {
    padding: 42px 18px 34px;
  }
  .koyo-tech-archive-content {
    padding: 32px 18px 48px;
  }
}
