@charset "utf-8";

#container .new {
  color: #db0000;
}

#container .bgbox03 {
  margin-top: 20px;
  padding-top: 20px;
  padding-bottom: 40px;
  margin-bottom: 0;
}
#header nav ul li.nac09 a:before {
  position: absolute;
  bottom: -3px;
  left: calc(50% - 15px);
  width: 30px;
  height: 2px;
  content: "";
  border-radius: 3px;
  background: #143d6c;
}

#container .reportlistall {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* 左詰めに変更 */
  gap: 2%; /* 要素間の隙間（例） */
  width: 100%;
  margin: 30px 0 10px 0;
}
#container .reportlistbox {
  width: calc(96% / 3);
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 30px;
  position: relative;
}

#container .reportlistbox a img {
  width: 100%;
  height: auto;
}

#container .reportlistbox a {
  display: block;
  text-decoration: none;
}
#container .reportlistbox a:hover {
  filter: alpha(opacity=50);
  -moz-opacity: 0.5;
  opacity: 0.5;
}
#container .reportlistbox a span {
  display: block;
  font-size: 1.2rem;
}
#container .reportlistbox a .text .name {
  margin-top: 5px;
  padding-bottom: 3px;
  margin-bottom: 3px;
  border-bottom: 1px solid #a58a02;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
}

@media screen and (max-width: 768px) {
}

/* 2番目 */

.bgpdo_cu02 {
  padding-top: 50px;
  margin-top: 0;
}

#container .reportlistall,
#container .report2listall {
  margin-top: 20px;
}

@media screen and (min-width: 769px) {
  #container .report2listall {
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
  }

  #container .report2listall .reportlistbox a {
    -webkit-flex-direction: column;
    flex-direction: column;
    text-align: center;
  }
  #container .report2listall .reportlistbox {
    width: 210px;
    margin-left: 16px;
    margin-right: 16px;
    text-align: center;
  }
  #container .report2listall .reportlistbox .ph {
    text-align: center;
    width: 160px;
    margin-left: auto;
    margin-right: auto;
  }
  #container .report2listall .reportlistbox {
    padding: 16px 8px;
  }
}

@media screen and (max-width: 768px) {
  .bread {
    font-size: 1.1rem;
  }

  /* レポートリストの3列を2列に変更 */
  #container .reportlistbox {
    width: 49%; /* 2列表示 */
    margin-bottom: 20px;
  }

  #container .reportlistall {
    gap: 2% 2%; /* 横の隙間を調整 */
    padding: 0 10px;
    box-sizing: border-box;
  }

  #container .reportlistbox a .text .name {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    /* --- 2行固定のための追加設定 --- */
    line-height: 1.6; /* 行間を指定（1.5〜1.6程度が読みやすいです） */
    height: 3.52rem; /* 計算式：font-size(1.1) × line-height(1.5) × 2行 = 3.3rem */
    overflow: hidden; /* はみ出た文字を隠す */

    /* 2行を超える場合に「...」を表示する設定 */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 表示する行数 */
    -webkit-box-orient: vertical;
  }

  /* 2番目のリスト形式（report2listall）の調整 */
  #container .report2listall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  #container .report2listall .reportlistbox {
    width: 45%; /* スマホでは2列 */
    margin: 10px 2.5%;
    padding: 10px 5px;
  }
  #container .report2listall .reportlistbox .ph {
    width: 100%;
  }
  .m_copy00 {
    font-size: 1.0rem;
  }
}
