@charset "UTF-8";

/* ==========================================================
 * 新規コラム（index.html）用 CSS
 * ※不要なコードを削除し、親セレクタのズレを修正済みの最適化版です。
 * ========================================================== */

/* タイトル（h1） */
.h1 {
  margin-bottom: 1.75rem;
  font-weight: bold;
  font-size: 1.4rem;
}
@media (min-width: 897px) {
  .h1 {
    margin-bottom: 3.75rem;
    font-size: 2.25rem;
  }
}

/* 日付 */
.column-for-date {
  margin-bottom: 0.5rem;
  font-size: 1.0rem;
  color: #333;
  line-height: 1.4;
}
@media (min-width: 897px) {
  .column-for-date {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.7;
  }
}

.header {
  height: 3rem;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
@media (min-width: 897px) {
  .header {
    height: 7.0625rem;
  }
}

#theme-safe-column.for-safety_driving_program .mainvisual-breadcrumbs a {
  color: #000;
  text-decoration: none;
}

#theme-safe-column .card-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
      margin: 0 auto;
}
@media (max-width: 896px) {
  #theme-safe-column .card-wrap {
    gap: 30px;
  }
}
@media (min-width: 897px) {
  #theme-safe-column .card-wrap {
    max-width: 1150px;
    margin-left: auto;
  }
}

#theme-safe-column .card-wrap .card {
  background-color: #f4f4f4;
  width: 100%;
}
@media (min-width: 897px) {
  #theme-safe-column .card-wrap .card {
    width: calc(32% - 1.875rem);
    margin-right: 40px;
    margin-top: 0;
    padding: 0;
  }
  #theme-safe-column .card-wrap .card:nth-child(3n) {
    margin-right: 0px;
  }
}

#theme-safe-column .card-wrap .card-title {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}
@media (min-width: 897px) {
  #theme-safe-column .card-wrap .card-title {
    font-size: 1.375rem;
    margin-bottom: 0.8125rem;
  }
}
#theme-safe-column .card-wrap .card-sub {
  display: block;
  font-size: 0.625rem;
  font-weight: normal;
  margin-bottom: 1.3125rem;
}
@media (min-width: 897px) {
  #theme-safe-column .card-wrap .card-sub {
    font-size: 0.75rem;
  }
}
#theme-safe-column .card-wrap .card-text {
  font-size: 0.8125rem;
  line-height: 1.846;
  margin-bottom: 1.5625rem;
}
@media (min-width: 897px) {
  #theme-safe-column .card-wrap .card-text {
    font-size: 0.875rem;
    line-height: 1.857;
  }
}
#theme-safe-column .card-wrap .card-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
#theme-safe-column .card-wrap .card .btn {
  display: inline-block;
  width: auto;
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}
#theme-safe-column .card-wrap .card .link {
  padding: 0;
}
#theme-safe-column .card-wrap .card .icon {
  position: static;
  margin-left: 10px;
}


/* 記事本文内の段落（p） */
.post .blog-contents p {
  margin-bottom: 1.3rem;
  font-size: 1.0rem;
  color: #333;
  line-height: 1.8;
  text-align: justify;
}
@media (min-width: 897px) {
  .post .blog-contents p {
    margin-bottom: 1.6rem;
    font-size: 1.3rem;
    line-height: 2.0;
  }
}

/* 記事本文内の段落（li） */
.post .blog-contents li {
  font-size: 1.0rem;
  color: #333;
  line-height: 1.8;
  text-align: justify;
}
@media (min-width: 897px) {
  .post .blog-contents li {
    font-size: 1.3rem;
    line-height: 2.0;
  }
}

/* 記事本文内の強調（strong） */
.post .blog-contents strong {
  font-weight: 500;
  background: none;
}

/* 一覧ページなどの画像（img） */
#theme-safe-column .card-img-top {
  width: 100%;
  aspect-ratio: 16 / 9; /* 枠を16:9で固定 */
  object-fit: cover;    /* 枠に合わせて画像をはみ出させずトリミング */
}

/* 記事本文内の画像コンテナ（figure / picture） */
.post .blog-contents figure {
  padding-top: 2rem;
}
@media (min-width: 897px) {
  .post .blog-contents figure {
    padding-top: 3rem;
  }
}
.post .blog-contents picture {
  padding-top: 1rem;
}

/* 記事本文内の h2 (一般的なh2タグ用) */
.post .blog-contents h2, 
.post .blog-contents .h2 {
  margin-bottom: 1.4375rem;
  font-size: 1.3rem;
  padding-top: 2.5rem;
}
@media (min-width: 897px) {
  .post .blog-contents h2, 
  .post .blog-contents .h2 {
    margin-bottom: 1.9375rem;
    font-size: 1.8rem;
    padding-top: 4rem;
    /* font-weight: normal; */
  }
}

.bg_cv_bnr {
  background-color: #f7f7f7;
}

.btn_cv_bnr {
  padding: 1rem 3rem;
  font-size: 1.15rem;
}
@media (max-width: 896px) {
  .btn_cv_bnr {
    min-width: 330px;
  }
}

/* 見出し：tit-h2 (黄色い縦線の見出しデザイン) */
.tit-h2 {
  position: relative;
  /* margin-top: 30px; */
  margin-bottom: 15px;
  /* padding-bottom: 10px; */
  font-size: 1.9rem;
  line-height: 1.35;
  font-weight: bold;
}
@media (min-width: 897px) {
  .tit-h2 {
    /* margin-top: 50px; */
    margin-bottom: 26px;
    /* padding-bottom: 20px; */
    font-size: 2.6rem;
    line-height: 1.4;
  }
}

/* ==========================================================
 * 目次（ez-toc）のスタイル
 * ========================================================== */
div#ez-toc-container .ez-toc-title {
  color: #333;
  font-size: 1.2rem;
  font-weight: 700;
}
@media (min-width: 897px) {
  div#ez-toc-container .ez-toc-title {
    font-size: 1.4rem;
  }
}

div#ez-toc-container ul li {
  margin-bottom: 0.5rem;
  font-size: 1.0rem;
  color: #555;
  line-height: 1.5;
}
@media (min-width: 897px) {
  div#ez-toc-container ul li {
    margin-bottom: 0;
    font-size: 1.2rem;
    line-height: 1.5;
  }
}

#ez-toc-container {
  background-color: #f4f4f4;
  border: 0;
  margin-top: 2rem;
  padding: 1.25rem 1.25rem;
  counter-reset: number 0;
}
@media (min-width: 897px) {
  #ez-toc-container {
    margin-top: 3rem;
  }
}

#ez-toc-container a {
  box-shadow: none;
  text-decoration: none;
  text-shadow: none;
  display: inline-flex;
  align-items: stretch;
  flex-wrap: nowrap;
}

/* 目次の連番 */
.ez-toc-counter nav ul li a::before {
  display: inline-block;
  counter-increment: number 1;
  content: counter(number) ". ";
  flex-grow: 0;
  flex-shrink: 0;
  margin-right: 0.2em;
  float: left;
}

/* 目次アコーディオン */
#ez-toc-container .accordion-button {
  background-color: #f4f4f4;
}
#ez-toc-container .accordion-button:not(.collapsed) {
  background-color: #f4f4f4;
  box-shadow: none;
}
#ez-toc-container .accordion-button:focus {
  border: 0;
  box-shadow: none;
}
#ez-toc-container .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23000' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' d='M0 8a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1z' clip-rule='evenodd'/%3e%3c/svg%3e");
  -webkit-transform: rotate(-180deg);
          transform: rotate(-180deg);
}

