/* ===============================================
一覧
=============================================== */

.title_show {
  margin-bottom: 25px;
  font-size: clamp(20px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: .07em;
}


/* hover打ち消し */
.nolink:hover .info_img img {
  transform: none;
}

article {
  width: min(90%, 1400px);
  margin: 70px auto;
  display: flex;
  gap: 35px;
}

.content {
  width: 75%;
}

.blog #content-sidebar {
  min-width: clamp(200px, 27%, 300px);
}

.info_grid {
  gap: 50px clamp(15px, 2vw, 30px);
  margin-top: 0;
}

.info_txt {
  margin-top: 10px;
}

.blog-month:hover {
  cursor: pointer;
}

.pan_list {
  width: min(90%, 1400px);
  margin: 0 auto;
}

/* リンクがないとき */

#content-sidebar .blog-latest li.nolink:hover {
  background: none;
}

#content-sidebar .blog-latest li.nolink::after {
  content: none;
}

@media screen and (max-width: 1200px) {
  .info_grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  article {
    flex-direction: column;
    gap: 0;
  }

  .info_grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .blog #content-sidebar {
    margin-top: 0;
    width: 100%;
  }
}

@media screen and (max-width: 680px) {
  .info_grid {
    grid-template-columns: repeat(2, 1fr);
    ;
  }
}

@media screen and (max-width: 485px) {
  .info_grid {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 35px;
  }
}


/* ===============================================
詳細
=============================================== */

.detail_ttl {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
}

.detail_wrap .day {
  color: #3b2f1450;
  margin-bottom: 15px;
}

@media screen and (max-width: 1300px) {
  article {
    flex-direction: column;
  }

  .content {
    width: 100%;
  }

  .blog #content-sidebar {
    width: 100%;
  }
}

/* ===============================================
ファイルを投稿したときのアイコン分け
=============================================== */

a[href$=".pdf"], a[href$=".doc"], a[href$=".docx"], a[href$=".docm"], a[href$=".dotx"], a[href$=".dotm"], a[href$=".rtf"], a[href$=".xls"], a[href$=".xlsx"], a[href$=".xlsm"], a[href$=".xlsb"], a[href$=".ppt"], a[href$=".pptx"] {
  position: relative;
  padding-left: 1.5em;
  text-decoration: underline;
  transition: all .2s;
}

/* PDF */

a[href$=".pdf"]:hover {
  text-decoration: none;
  color: #c45757;
}

a[href$=".pdf"]::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  content: "";
  background-image: url(../../image/icon/pdf_icon.png);
  display: inline-block;
  width: 20px;
  height: auto;
  aspect-ratio: 1/1;
  background-size: contain;
}

/* Word */

a[href$=".doc"]:hover, a[href$=".docx"]:hover, a[href$=".docm"]:hover, a[href$=".dotx"]:hover, a[href$=".dotm"]:hover, a[href$=".rtf"]:hover {
  text-decoration: none;
  color: #5771ad;
}

a[href$=".doc"]::before, a[href$=".docx"]::before, a[href$=".docm"]::before, a[href$=".dotx"]::before, a[href$=".dotm"]::before, a[href$=".rtf"]::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  content: "";
  display: inline-block;
  width: 20px;
  height: auto;
  aspect-ratio: 1/1;
  background-size: contain;
  background-image: url(../../image/icon/word_icon.png);
}

/* excel */

a[href$=".xls"]:hover, a[href$=".xlsx"]:hover, a[href$=".xlsm"]:hover, a[href$=".xlsb"]:hover {
  text-decoration: none;
  color: #618e4d;
}

a[href$=".xls"]::before, a[href$=".xlsx"]::before, a[href$=".xlsm"]::before, a[href$=".xlsb"]::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  content: "";
  display: inline-block;
  width: 20px;
  height: auto;
  aspect-ratio: 1/1;
  background-size: contain;
  background-image: url(../../image/icon/excel_icon.png);
}

/* powerpoint */

a[href$=".ppt"]::before, a[href$=".pptx"]::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  content: "";
  display: inline-block;
  width: 20px;
  height: auto;
  aspect-ratio: 1/1;
  background-size: contain;
  background-image: url(../../image/icon/powerpoint_icon.png);
}

a[href$=".ppt"]:hover, a[href$=".pptx"]:hover {
  text-decoration: none;
  color: #cc773e;
}

/* ===============================================
youtubeのレスポンシブ
=============================================== */
iframe[src*="youtube"] {
  margin: 20px 0;
}

@media screen and (max-width: 750px) {
  iframe[src*="youtube"] {
    margin: 20px 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
  }
}