@charset "UTF-8";

/* ==========================================================
 * spotサービス コラム用 CSS（一覧ページ・記事ページ共通）
 * ========================================================== */

/* ---------------------------------------------------
 * 【追加】コラム一覧ページ（カード型レイアウト）用
 * --------------------------------------------------- */
/* カード全体を横並びにする設定 */
#spotColumn .card-wrap {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
}
@media (max-width: 896px) {
  #spotColumn .card-wrap {
    gap: 30px; /* スマホ時のカード間の余白 */
  }
}
@media (min-width: 897px) {
  #spotColumn .card-wrap {
    max-width: 1150px;
    margin-left: auto;
  }
}

/* カード1枚あたりの設定 */
#spotColumn .card-wrap .card {
  background-color: #f4f4f4;
  width: 100%;
  border: none;
}
@media (min-width: 897px) {
  #spotColumn .card-wrap .card {
    width: calc(32% - 1.875rem); /* PC時は横に3つ並べる */
    margin-right: 40px;
    margin-top: 0;
    padding: 0;
  }
  #spotColumn .card-wrap .card:nth-child(3n) {
    margin-right: 0px; /* 3つ目の右余白をなくす */
  }
  #spotColumn .card-wrap .card:nth-child(n+4) {
    margin-top: 40px; /* 4つ目以降（2段目）の上余白 */
  }
}

/* カード内のテキスト・画像の設定 */
#spotColumn .card-wrap .card-title {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
  font-weight: 500;
}
@media (min-width: 897px) {
  #spotColumn .card-wrap .card-title {
    font-size: 1.375rem;
    margin-bottom: 0.8125rem;
  }
}
#spotColumn .card-wrap .card-title a {
  color: #333;
  text-decoration: underline;
}

#spotColumn .card-wrap .card-sub {
  display: block;
  font-size: 0.625rem;
  font-weight: normal;
  margin-bottom: 1.3125rem;
  color: #666;
}
@media (min-width: 897px) {
  #spotColumn .card-wrap .card-sub {
    font-size: 0.75rem;
  }
}

#spotColumn .card-wrap .card-text {
  font-size: 0.8125rem;
  line-height: 1.846;
  margin-bottom: 1.5625rem;
  color: #333;
}
@media (min-width: 897px) {
  #spotColumn .card-wrap .card-text {
    font-size: 0.875rem;
    line-height: 1.857;
  }
}

#spotColumn .card-img-top {
  width: 100%;
  aspect-ratio: 16 / 9; /* 画像を16:9で統一 */
  object-fit: cover;
}

/* ---------------------------------------------------
 * 個別記事ページ用
 * --------------------------------------------------- */
.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;
  }
}

.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;
  }
}

.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;
  }
}

.post .blog-contents strong {
  font-weight: 500;
  background: none;
}

.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;
}

.post .blog-contents h2, 
.post .blog-contents .h2,
.tit-h2 {
  position: relative;
  margin-top: 2.5rem;
  margin-bottom: 1.4375rem;
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: bold;
}
@media (min-width: 897px) {
  .post .blog-contents h2, 
  .post .blog-contents .h2,
  .tit-h2 {
    margin-top: 4rem;
    margin-bottom: 1.9375rem;
    font-size: 1.75rem;
    line-height: 1.5;
  }
}

.post .blog-contents h3, 
.post .blog-contents .h3 {
  position: relative;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: bold;
}
@media (min-width: 897px) {
  .post .blog-contents h3, 
  .post .blog-contents .h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
    line-height: 1.5;
  }
}

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;
}

#spotColumn .post .blog-contents code {
    font-family: inherit;
    color: currentColor;
    font-weight: 500;
    font-size: 1.0rem;
    line-height: 2.0;
    background: linear-gradient(transparent calc(100% - 2px), #fde100 calc(100% - 2px));
}
@media (min-width: 897px) {
  #spotColumn .post .blog-contents code {
      font-size: 1.3rem;
      line-height: 2.0;
  }
}

#spotColumn .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);
}


/* ---------------------------------------------------
 * 初期設定（共通部分）
 * --------------------------------------------------- */

html,
body {
  scroll-padding-top: 3.75rem; /* スマホ時はヘッダーが3.75remなのでこのままでOK */
}
@media (min-width: 897px) {
  html,
body {
    /* ヘッダーの高さ(7.0625rem)より大きい値を設定して被りを防ぐ */
    scroll-padding-top: 7.7rem; 
  }
}

@media (min-width: 897px) {
  .mainvisual-breadcrumbs {
      position: relative !important;
      top: auto !important;
      left: auto !important;
  }
}

#spotColumn .contents {
    padding-top: 1.0625rem;
}
@media (min-width: 897px) {
  #spotColumn .contents {
      padding-top: 1.5rem;
      padding-bottom: 6.25rem;
  }
}

#spotColumn .mainvisual-breadcrumbs a {
  color: #000;
  text-decoration: none;
}

.mainvisual-breadcrumbs .list-inline-item[aria-current] {
  color: #000;
}

#spotColumn .table-responsive th,
#spotColumn .table-responsive td {
  line-height: 1.5;
}