/*
Theme Name: Pilon Child
Theme URI: https://pilon.modeltheme.com/
Template: pilon
Author: ModelTheme
Author URI: http://modeltheme.com/
Description: Industrial & Factory WordPress Theme
Version: 1.0
Text Domain: pilon
Tags: custom-header, custom-menu, featured-images, post-formats, sticky-post
*/
/* Theme customization starts here
------------------------------------------------------- */

.prepare {
    border-left: 3px solid #009E92;
    padding: 2px 18px;
    margin: 25px 0px;
}
/* 会社情報 */
.kawashita-table {
  --kt-bg: #f2f6f5;
  --kt-border: #d3dfdc;
  --kt-heading: #193b38;
  --kt-text: #506a66;

  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--kt-bg);
  color: var(--kt-text);
  font-size: 16px;
  line-height: 1.9;
}

.kawashita-table,
.kawashita-table * {
  box-sizing: border-box;
}

/* 行 */
.kawashita-table > .kawashita-table__row {
  display: grid;
  grid-template-columns: minmax(140px, 17%) minmax(0, 1fr);
  column-gap: 28px;
  margin: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--kt-border);
}

.kawashita-table > .kawashita-table__row:first-child {
  border-top: 1px solid var(--kt-border);
}

/* 項目名・内容 */
.kawashita-table .kawashita-table__label,
.kawashita-table .kawashita-table__value {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
}

.kawashita-table .kawashita-table__label {
  color: var(--kt-heading);
  font-weight: 700;
}

.kawashita-table .kawashita-table__value {
  color: var(--kt-text);
  font-weight: 400;
}

/* エディターが挿入する段落の余白 */
.kawashita-table p {
  margin: 0;
}

.kawashita-table p + p {
  margin-top: 0.35em;
}

/* 注釈 */
.kawashita-table .kawashita-table__note {
  margin-top: 8px;
  color: #71847f;
  font-size: 0.8em;
  line-height: 1.7;
}

/* リンク */
.kawashita-table a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.kawashita-table a:hover {
  color: #007d74;
}

/* スマートフォン */
@media (max-width: 767px) {
  .kawashita-table {
    font-size: 15px;
  }

  .kawashita-table > .kawashita-table__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 20px 0;
  }
}

/* 資格一覧全体 */
.kawashita-staff {
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
}

.kawashita-staff,
.kawashita-staff * {
  box-sizing: border-box;
}

/* 左右2列 */
.kawashita-staff .kawashita-staff__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.kawashita-staff .kawashita-staff__list {
  min-width: 0;
}

/* 見出し・各行 */
.kawashita-staff .kawashita-staff__head,
.kawashita-staff .kawashita-staff__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 20px 12px;
  border-bottom: 1px solid #009E92;
}

.kawashita-staff .kawashita-staff__head {
  color: #009E92;
  font-weight: 700;
}

.kawashita-staff .kawashita-staff__head > :last-child {
  text-align: right;
}

.kawashita-staff .kawashita-staff__row > :first-child {
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* 数字と「名」を横並び */
.kawashita-staff .kawashita-staff__count {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.kawashita-staff .kawashita-staff__count > b {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.kawashita-staff .kawashita-staff__count > small {
  display: inline;
  margin: 0;
  padding: 0;
  color: #009E92;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.kawashita-staff p {
  margin: 0;
}

/* スマートフォン */
@media (max-width: 767px) {
  .kawashita-staff {
    padding: 16px;
  }

  .kawashita-staff .kawashita-staff__columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .kawashita-staff .kawashita-staff__head,
  .kawashita-staff .kawashita-staff__row {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 12px;
    padding: 16px 0;
  }

  .kawashita-staff .kawashita-staff__count > b {
    font-size: 24px;
  }
}

/* 商品カテゴリーナビ */
.category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 30px;

  width: 100%;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid #cfddda;
  box-sizing: border-box;

  counter-reset: category;
}

.category-nav > a {
  counter-increment: category;

  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;

  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid #cfddda;

  color: #173b37;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;

  transition: color 0.2s ease, background-color 0.2s ease;
}

/* 01、02…を自動表示 */
.category-nav > a::before {
  content: counter(category, decimal-leading-zero);
  position: static;
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;

  color: #009e92;
  font-size: 11px;
  font-weight: 700;
  line-height: inherit;
  font-variant-numeric: tabular-nums;
  transform: none;
}

/* 右端の矢印 */
.category-nav > a::after {
  content: "↓";
  position: static;
  display: block;
  flex-shrink: 0;
  width: auto;
  height: auto;
  margin: 0 8px 0 auto;
  padding: 0;
  border: 0;
  background: none;

  color: #009e92;
  font-size: 16px;
  font-weight: 400;
  line-height: inherit;

  transition: transform 0.2s ease;
}

.category-nav > a:hover {
  color: #007d74;
  background-color: #f0f7f5;
  text-decoration: none;
}

.category-nav > a:hover::after {
  transform: translateY(3px);
}

.category-nav > a:focus-visible {
  outline: 2px solid #009e92;
  outline-offset: 3px;
}

/* スマートフォン */
@media (max-width: 767px) {
  .category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .category-nav > a {
    gap: 8px;
    padding: 16px 0;
    font-size: 11px;
  }

  .category-nav > a::before {
    flex-basis: 18px;
    width: 18px;
    font-size: 10px;
  }

  .category-nav > a::after {
    margin-right: 2px;
    font-size: 14px;
  }
}

/* 自動挿入された改行・空段落を非表示 */
.category-nav > br,
.category-nav > p:empty {
  display: none !important;
}

/* テーマのclearfixがグリッドの枠を消費するのを防ぐ */
.category-nav::before,
.category-nav::after {
  content: none !important;
  display: none !important;
}


.category-top {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 20px;
  padding: 0;
}

/* 番号 */
.category-top > .number {
  display: block;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  color: #009e92;
  font-family: Arial, sans-serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

/* 英語カテゴリー名 */
.category-top > .eyebrow {
  display: block;
  margin: 0;
  padding: 0;
  color: #009e92;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.15em;
}

/* スマートフォン */
@media (max-width: 767px) {
  .category-top {
    gap: 20px;
    margin-bottom: 16px;
  }

  .category-top > .number {
    font-size: 48px;
  }

  .category-top > .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}

/* 主な取扱品目 */
.items {
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #d9e5e0;
}

.items > h3 {
  margin: 0 0 12px;
  padding: 0;
  color: #668079;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

/* タグを横並び・自動折り返し */
.items > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.items > ul > li {
  display: block;
  margin: 0;
  padding: 5px 12px;
  border: 0;
  border-radius: 0;
  background: #eff5f2;
  color: #35554d;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  list-style: none;
}

/* テーマ側のリスト装飾を解除 */
.items > ul > li::before,
.items > ul > li::after {
  content: none;
}

.items > ul > li::marker {
  content: "";
}

/* スマートフォン */
@media (max-width: 767px) {
  .items {
    margin-top: 20px;
    padding-top: 16px;
  }

  .items > ul {
    gap: 6px;
  }

  .items > ul > li {
    padding: 4px 10px;
    font-size: 11px;
  }
}
