/* ============================================================
   許認可・資格・取組み / company/certification/
   ------------------------------------------------------------
   WordPress組み込みを想定し、このファイル内でページ固有CSSを完結。
   基本値 → PC調整 → SP調整 の順に管理する。
   2026-09-02 整理版
============================================================ */

/* ---------- Page base ---------- */
.p-certification {
  background: #fff;
  color: #071d37;
}

.p-certification__hero {
  padding: 64px 0 34px;
  background: linear-gradient(
    180deg,
    var(--color-header-bg) 0%,
    var(--color-header-bg) 29%,
    #e7f7fc 40%,
    #f4fbfe 50%,
    #fff 61%,
    #fff 100%
  );
}

.p-certification__inner {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Page heading ---------- */
.p-certification__heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
  padding: 0 112px 0 0;
}

.p-certification__eyebrow {
  margin: 0 0 4px;
  color: #00265b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.p-certification__eyebrow span {
  color: #ff0018;
}

.p-certification__title {
  margin: 0;
  font-family: "Zen Maru Gothic", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .05em;
}

.p-certification__zeb-mark {
  flex: 0 0 auto;
  width: 134px;
  margin-top: -2px;
}

/* ---------- License / qualification lists ---------- */
.p-certification__nav-block {
  margin: 0 0 52px;
}

.p-certification__bar,
.p-certification__redbar {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.p-certification__bar {
  margin: 0 0 24px;
  padding: 10px 22px;
  color: #fff;
  background: #00265b;
  border-radius: 5px;
  letter-spacing: .12em;
}

.p-certification__cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 0 48px;
}

.p-certification__cards--license {
  grid-template-columns: repeat(5, 1fr);
}

.p-certification__card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 10px 8px;
  color: inherit;
  background: #fff;
  border: 1px solid #486784;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 38, 91, .08);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

/* ---------- Health management ---------- */
.p-certification__health {
  padding-top: 2px;
}

.p-certification__redbar {
  margin: 0 0 26px;
  padding: 9px 18px;
  color: #fff;
  background: #ff0018;
  border-radius: 5px;
  letter-spacing: .13em;
}

.p-certification__health-intro {
  position: relative;
  min-height: 164px;
  margin-bottom: 30px;
  padding-right: 245px;
}

.p-certification__health-intro h2 {
  margin: 0 0 12px;
  color: #ff0018;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.p-certification__health-intro p,
.p-certification__bullet-list,
.p-certification__detail-list,
.p-certification__zeb-lead p,
.p-certification__zeb-box p,
.p-certification__example-copy {
  font-size: 16px;
  line-height: 1.78;
}

.p-certification__health-intro p {
  margin: 0;
}

.p-certification__health-logo {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 196px;
}

.p-certification__health-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  margin-bottom: 58px;
  padding: 34px 44px 38px;
  overflow: visible;
  background: #f0f1f4;
  border-radius: 15px;
}

.p-certification__health-col {
  min-width: 0;
}

.p-certification__health-col:nth-child(2) {
  position: relative;
  min-height: 500px;
  overflow: visible;
}

.p-certification__health-col h3 {
  margin: 0 0 20px;
  padding: 0 0 9px;
  color: #00265b;
  border-bottom: 2px solid #ff6f7c;
  font-size: 18px;
  line-height: 1.35;
}

.p-certification__bullet-list,
.p-certification__detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-certification__bullet-list li {
  position: relative;
  margin: 0 0 3px;
  padding-left: 14px;
}

.p-certification__bullet-list li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: #00265b;
  border-radius: 50%;
}

.p-certification__bullet-list .indent {
  margin-bottom: 3px;
  padding-left: 24px;
}

.p-certification__bullet-list .indent::before {
  display: none;
}

.p-certification__subhead {
  margin: 22px 0 7px;
  color: #00265b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.p-certification__detail-list {
  counter-reset: item;
}

.p-certification__detail-list li {
  margin: 0 0 4px;
  padding-left: 1.5em;
  text-indent: -1.5em;
}

/*
 * 右カラムを50%のまま維持し、組織図だけを通常フローから外して右へ張り出す。
 * top の値だけで上下位置を調整できるようにしている。
 */
.p-certification__health-diagram {
  position: absolute;
  z-index: 3;
  top: 172px; /* 2026-09-02: 152px から +20px */
  left: 0;
  display: block;
  width: 540px;
  height: auto;
  margin: 0;
  padding: 0;
}

.p-certification__health-diagram img {
  display: block;
  width: 540px;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
}

/* ---------- ZEB ---------- */
.p-certification__zeb {
  padding-bottom: 52px;
}

.p-certification__zeb-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, .92fr);
  gap: 38px;
  align-items: start;
  margin: 0 0 28px;
}

.p-certification__zeb-left {
  min-width: 0;
}

.p-certification__zeb-lead {
  position: relative;
  margin: 0 0 22px;
}

.p-certification__zeb-lead h3,
.p-certification__zeb-box h3,
.p-certification__examples h3 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  color: #00265b;
  border-bottom: 2px solid #ff7180;
  font-size: 18px;
  line-height: 1.35;
}

.p-certification__zeb-lead p,
.p-certification__zeb-box p {
  margin: 0;
}

.p-certification__zeb-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
  padding: 12px 20px 0;
}

.p-certification__zeb-badge {
  align-self: center;
  text-align: center;
}

.p-certification__zeb-badge img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 175px;
  margin: 0 auto 8px;
}

.p-certification__zeb-badge p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.p-certification__energy {
  align-self: start;
  padding-top: 45px;
}

.p-certification__energy img {
  display: block;
  width: 100%;
  max-width: 369px;
  margin: 0 auto 10px;
}

.p-certification__energy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

.p-certification__energy a {
  text-decoration: underline;
}

.p-certification__zeb-box {
  padding: 28px 44px 32px;
  background: #f0f1f4;
  border-radius: 15px;
}

.p-certification__zeb-box h3 {
  margin-top: 0;
}

.p-certification__zeb-table-title {
  margin-top: 22px !important;
}

.p-certification__table-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: start;
}

.p-certification__year {
  padding-top: 10px;
  font-size: 15px;
  font-weight: 700;
}

.p-certification__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-size: 15px;
  text-align: center;
}

.p-certification__table th,
.p-certification__table td {
  padding: 7px 8px;
  border: 1px solid #aeb3b9;
  line-height: 1.25;
}

.p-certification__table th {
  font-weight: 700;
}

.p-certification__table col:nth-child(1) { width: 21%; }
.p-certification__table col:nth-child(2) { width: 42%; }
.p-certification__table col:nth-child(3) { width: 19%; }
.p-certification__table col:nth-child(4) { width: 18%; }

.p-certification__examples {
  margin-top: 30px;
}

.p-certification__example-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}

.p-certification__factory {
  width: 100%;
  height: auto;
}

.p-certification__example-copy strong {
  display: block;
  margin-bottom: 7px;
}

.p-certification__example-copy p {
  margin: 0 0 7px;
}

.p-certification__example-copy .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  background: #00265b;
  border-radius: 50%;
}

.p-certification__contact {
  display: grid;
  grid-template-columns: 190px 1fr;
  margin-top: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #00265b;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
}

.p-certification__contact-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  color: #fff;
  background: #00265b;
}

.p-certification__contact-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 20px;
}

.p-certification__contact-body a {
  color: #00265b;
}

/* ---------- Breadcrumb / bottom illustration ---------- */
.p-certification__breadcrumb {
  position: relative;
  width: auto;
  min-height: 92px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
}

.p-certification__breadcrumb ol {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  width: min(1180px, calc(100% - 48px));
  margin: 0;
  padding: 24px 210px 24px 0;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.p-certification__breadcrumb li {
  display: flex;
  align-items: center;
}

.p-certification__breadcrumb li + li::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  margin-right: 7px;
}

.p-certification__bottom-art {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 0;
  width: 150px;
}

/* ============================================================
   Smartphone / tablet <= 900px
============================================================ */
@media (max-width: 900px) {
  /* Continue the hero background through the header without a divider. */
  .l-header {
    border-bottom-color: transparent;
  }

  .p-certification__hero {
    padding: 22px 0 20px;
    background: linear-gradient(
      180deg,
      var(--color-header-bg) 0%,
      var(--color-header-bg) 24%,
      #eaf8fd 34%,
      #f7fcfe 43%,
      #fff 52%,
      #fff 100%
    );
  }

  .p-certification__inner,
  .p-certification__breadcrumb {
    width: calc(100% - 28px);
  }

  .p-certification__heading-row {
    min-height: 74px;
    margin-bottom: 28px;
    padding: 0;
    gap: 14px;
    align-items: center;
  }

  .p-certification__eyebrow {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.4;
  }

  .p-certification__title {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: .03em;
  }

  .p-certification__zeb-mark {
    width: 78px;
    margin: 0 2px 0 0;
  }

  .p-certification__nav-block {
    margin-bottom: 26px;
  }

  .p-certification__bar,
  .p-certification__redbar {
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 18px;
    line-height: 1.4;
  }

  .p-certification__bar {
    margin-bottom: 13px;
  }

  .p-certification__redbar {
    margin-bottom: 14px;
  }

  .p-certification__cards,
  .p-certification__cards--license {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    padding: 0;
  }

  .p-certification__card {
    min-height: 66px;
    padding: 8px 6px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.45;
  }

  .p-certification__cards .p-certification__card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .p-certification__health-intro {
    min-height: 0;
    margin-bottom: 12px;
    padding-right: 0;
  }

  .p-certification__health-intro h2 {
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 1.4;
  }

  .p-certification__health-intro p,
  .p-certification__bullet-list,
  .p-certification__detail-list,
  .p-certification__zeb-lead p,
  .p-certification__zeb-box p {
    font-size: 16px;
    line-height: 1.75;
  }

  .p-certification__health-logo {
    position: static;
    width: 158px;
    margin: 20px auto 18px;
  }

  .p-certification__health-panel {
    display: block;
    margin-bottom: 25px;
    padding: 20px 14px 22px;
    overflow: hidden;
    border-radius: 10px;
  }

  .p-certification__health-col:nth-child(2) {
    min-height: 0;
    margin-top: 18px;
    overflow: visible;
  }

  .p-certification__health-col h3,
  .p-certification__zeb-lead h3,
  .p-certification__zeb-box h3,
  .p-certification__examples h3 {
    margin-bottom: 8px;
    padding-bottom: 5px;
    font-size: 17px;
    line-height: 1.45;
  }

  .p-certification__bullet-list li::before {
    top: .68em;
    width: 6px;
    height: 6px;
  }

  .p-certification__subhead {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.6;
  }

  /* SPでは通常フローに戻す */
  .p-certification__health-diagram {
    position: static;
    width: 100%;
    height: auto;
    margin: 0;
    padding-top: 18px;
  }

  .p-certification__health-diagram img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .p-certification__zeb {
    padding-bottom: 20px;
  }

  .p-certification__zeb-intro-grid {
    display: block;
    margin-bottom: 16px;
  }

  .p-certification__zeb-lead {
    margin-bottom: 26px;
  }

  .p-certification__zeb-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 4px 16px;
    padding: 0;
    align-items: center;
  }

  .p-certification__zeb-badge img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 118px;
    margin-bottom: 4px;
  }

  .p-certification__zeb-badge p {
    font-size: 11px;
    line-height: 1.45;
    white-space: nowrap;
  }

  .p-certification__energy {
    margin-top: 6px;
    padding-top: 0;
  }

  .p-certification__energy img {
    width: 92%;
    max-width: 320px;
    margin: 0 auto 8px;
  }

  .p-certification__energy p {
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
  }

  .p-certification__zeb-box {
    padding: 16px 10px;
    border-radius: 9px;
  }

  .p-certification__zeb-table-title {
    margin-top: 15px !important;
  }

  /* SPでもPC版と同じ実データテーブルを表示 */
  .p-certification__table-row {
    display: block !important;
    width: 100%;
  }

  .p-certification__year {
    padding: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
  }

  .p-certification__table {
    display: table !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    background: #fff !important;
    font-size: 11px;
    line-height: 1.35;
  }

  .p-certification__table tbody { display: table-row-group !important; }
  .p-certification__table tr { display: table-row !important; }

  .p-certification__table th,
  .p-certification__table td {
    display: table-cell !important;
    padding: 6px 3px;
    background: #fff;
    white-space: normal;
  }

  .p-certification__examples {
    margin-top: 18px;
  }

  .p-certification__example-grid {
    display: block;
  }

  .p-certification__factory {
    margin-bottom: 10px;
  }

  .p-certification__example-copy {
    font-size: 14px;
    line-height: 1.7;
  }

  .p-certification__contact {
    grid-template-columns: 1fr;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
  }

  .p-certification__contact-title {
    padding: 9px;
  }

  .p-certification__contact-body {
    justify-content: flex-start;
    gap: 5px 10px;
    padding: 9px 7px;
  }

  .p-certification__breadcrumb {
    min-height: 62px;
    padding: 15px 0 18px;
  }

  .p-certification__breadcrumb ol {
    position: static;
    width: auto;
    max-width: calc(100% - 62px);
    margin: 0;
    padding: 0;
    transform: none;
    gap: 5px;
    font-size: 16px;
    line-height: 1.75;
  }

  .p-certification__breadcrumb li + li::before {
    margin-right: 5px;
  }

  .p-certification__bottom-art {
    right: -2px;
    width: 78px;
  }
}

@media (max-width: 520px) {
  .p-certification__cards {
    gap: 8px;
  }
}
/* 2026-09-07 heading category color */
.p-certification__eyebrow .p-certification__category{color:#00245c;margin-right:0}

/* 2026-09-07 desktop card line-break + mobile footer illustration */
/* 指定改行カード：PC・スマホ共通で1行ずつ縦積み */
.p-certification__card--multiline{flex-direction:column}
.p-certification__card--multiline > span{display:block;white-space:nowrap}

@media(min-width:901px){
  /* 一覧カード内のみ1px縮小 */
  .p-certification__card{font-size:14px}
}
@media(max-width:600px){
  .p-certification__breadcrumb{position:relative;width:auto;min-height:92px;margin:0;background:#fff}
  .p-certification__bottom-art{position:absolute;z-index:2;right:14px;left:auto;bottom:0;width:78px}
  .p-certification__breadcrumb ol{position:absolute;left:14px;right:110px;bottom:0;width:auto;max-width:none;margin:0;padding:0 0 16px;transform:none}
}
