@charset "utf-8";

/* -----------共通------------- */
#main .chiebukuro_main {
  width: 72%;
  float: left;
}

@media screen and (max-width:890px) {
  #main .chiebukuro_main {
    width: 100%;
    float: none;
    margin-bottom: 2em;
  }
}

/* -----------ページ独自------------- */

#main .entry_area h2 {
  font-size: 120%;
  margin: 1em auto;
}

/*  ----------------------
日々の困りごと解決トビラ 
----------------------*/

#main .chiebukuro_main .diabetes-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 20px;
  max-width: 930px;
  margin: 0 auto;
}


#main .chiebukuro_main .diabetes-card {
  display: block;
  box-sizing: border-box;
  min-width: 0;
  min-height: 155px;
  padding: 20px;
  background: #fff;
  border: 1px solid #c5c5c5;
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  color: #222;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#main .chiebukuro_main .diabetes-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

#main .chiebukuro_main .diabetes-card-heading {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 38px;
  margin-bottom: 10px;
}

#main .chiebukuro_main .diabetes-card-icon {
  display: block;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
}

#main .chiebukuro_main .diabetes-card-heading h3 {
  flex: 1;
  margin: 0;
  color: #10234D;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

#main .chiebukuro_main .diabetes-card-arrow {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: #477dad;
  transition: transform 0.2s ease;
}

#main .chiebukuro_main .diabetes-card:hover .diabetes-card-arrow {
  transform: translateX(4px);
}

#main .chiebukuro_main .diabetes-card p {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

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

  #main .chiebukuro_main .diabetes-card-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px 20px;
    max-width: 100%;
    margin: 0 auto;
  }

  #main .chiebukuro_main .diabetes-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 120px;
    padding: 12px 5px;
    border-radius: 15px;
    box-sizing: border-box;
  }

  #main .chiebukuro_main .diabetes-card-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 0;
    margin: 0;
  }

  #main .chiebukuro_main .diabetes-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
  }

  #main .chiebukuro_main .diabetes-card-heading h3 {
    flex: none;
    width: 100%;
    margin: 0;
    color: #0d234c;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 0;
  }

  #main .chiebukuro_main .diabetes-card p {
    display: none;
  }

  #main .chiebukuro_main .diabetes-card-arrow {
    display: none;
  }

  #main .chiebukuro_main .diabetes-card-arrow {
    display: none;
  }
}

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

  #main .chiebukuro_main .diabetes-card-list {
    gap: 20px 12px;
  }

  #main .chiebukuro_main .diabetes-card-heading h3 {
    font-size: 13px;
  }
}

/*  ----------------------
日々の困りごと解決サイド
----------------------*/

#main section.sidebar-section {
  margin-bottom: 2em;
}

#main .sidebar-section+#main .sidebar-section {
  margin-top: 55px;
}

#main .sidebar-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

#main .sidebar-heading::before {
  content: "";
  display: block;
  width: 18px;
  height: 31px;
  flex-shrink: 0;
  background: linear-gradient(to right,
      #ff8900 0,
      #ff8900 6px,
      transparent 6px,
      transparent 11px,
      #ff8900 11px,
      #ff8900 17px,
      transparent 17px);
}

#main .sidebar-article-list {
  display: flex;
  flex-direction: column;
}

#main .sidebar-article {
  display: block;
  padding: 1em 0;
  border-bottom: 1px dashed #bfbfbf;
  text-decoration: none;
  box-sizing: border-box;
}

#main .sidebar-article p {
  transition: 0.3s;
}


#main .sidebar-article p:hover {
  color: #ff8900;
}

#main .sidebar-article:last-child {
  margin-bottom: 0;
}

#main .sidebar-article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}

#main .sidebar-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
}

/* 1位 */
#main .sidebar-rank.rank-1 {
  background: #deb256;
}

/* 2位 */
#main .sidebar-rank.rank-2 {
  background: #b5b5b5;
}

/* 3位 */
#main .sidebar-rank.rank-3 {
  background: #c17a42;
}

#main .sidebar-category {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 3px 5px;
  border: 1px solid currentColor;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

#main .sidebar-category img {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

/* 運動 */
#main .category-diet {
  color: #ff6656;
}

/* 食事 */
#main .category-exercise {
  color: #1D7FD8;
}

/* 薬物療法 */
#main .category-medication {
  color: #00aeb3;
}

/* 血糖測定 */
#main .category-smbg {
  color: #0766BE;
}

/* 合併症 */
#main .category-complications {
  color: #F54A4C;
}

/* 低血糖 */
#main .category-hypoglycemia {
  color: #ff8727;
}

/* シックデイ */
#main .category-sickday {
  color: #5538B7;
}

/* 妊娠と糖尿病 */
#main .category-pregnancy {
  color: #FB4F68;
}

/* 1型糖尿病 */
#main .category-type1 {
  color: #1169C3;
}

#main .sidebar-article-title {
  margin: 0;
  color: #10234D;
  font-weight: 700;
  overflow-wrap: anywhere;
  font-size: 14px;
}

/* ホバー */
#main .sidebar-article:hover #main .sidebar-article-title {
  text-decoration: underline;
}

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

  #main .sidebar-category {
    font-size: 12px;
    padding: 3px 5px;
  }
}

/*  ----------------------
日々の困りごと解決カテゴリアーカイブ
----------------------*/

/* コンテンツ */
#main .trouble-content {
  width: 100%;
  box-sizing: border-box;
  color: #333;
}

/* カテゴリタイトル */
#main .trouble-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 5px;
}

#main .trouble-heading-icon {
  display: block;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
}

#main .trouble-heading h2 {
  margin: 0;
  color: #10234d;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

/* 説明文 */
#main .trouble-description {
  margin: 0 0 35px;
  font-size: 16px;
  line-height: 1.7;
}

/* 絞り込みボックス */
#main .trouble-filter {
  margin-bottom: 60px;
  border: 2px solid #10234d;
  border-radius: 18px;
  overflow: hidden;
}

/* 絞り込み見出し */
#main .trouble-filter-title {
  padding: 8px 25px;
  background: #10234d;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

/* 絞り込みリンク一覧 */
#main .trouble-filter-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 10px;
  margin: 0;
  padding: 20px 30px 25px;
  list-style: none;
}

#main .trouble-filter-list li {
  margin: 0;
  padding: 0;
}

#main .trouble-filter-list a {
  display: inline-block;
  color: #10234d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  border: 1px solid;
  padding: 5px 10px;
  border-radius: 5px;
}


#main .trouble-filter-list a:hover {
  text-decoration: underline;
}

/* グループ */
#main .trouble-group {
  margin-bottom: 60px;
  scroll-margin-top: 30px;
}

/* グループ見出し */
#main .trouble-group-title {
  margin: 0 0 10px;
  padding: 0 10px 12px;
  border-bottom: 1px solid #10234d;
  color: #10234d;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.5;
}

/* 記事一覧 */
#main .trouble-article-list {
  display: flex;
  flex-direction: column;
}

/* 記事 */
#main .trouble-article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 5px;
  color: #333;
  text-decoration: none;
  box-sizing: border-box;
}

/* 偶数行の背景 */
#main .trouble-article:nth-child(even) {
  background: #f5f5f5;
}

/* ラベル */
#main .trouble-article-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  background: #fff;
  box-sizing: border-box;
  color: #444;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: bold;
}

/* 記事タイトル */
#main .trouble-article-text {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* ホバー */
#main .trouble-article:hover .trouble-article-text {
  color: #10234d;
  text-decoration: underline;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* スマートフォン */
@media screen and (max-width: 767px) {

  #main .trouble-heading {
    gap: 5px;
    margin: 10px 0;
  }

  #main .trouble-description {
    margin-bottom: 25px;
    font-size: 14px;
  }

  #main .trouble-filter {
    margin-bottom: 40px;
    border-radius: 12px;
  }

  #main .trouble-filter-title {
    padding: 10px 15px;
    font-size: 13px;
  }

  #main .trouble-filter-list {
    column-gap: 10px;
    row-gap: 8px;
    padding: 15px;
  }

  #main .trouble-filter-list a {
    font-size: 13px;
  }

  #main .trouble-group {
    margin-bottom: 40px;
  }

  #main .trouble-group-title {
    padding: 20px 10px 5px 10px;
  }

  #main .trouble-article {
    gap: 12px;
    padding: 15px 10px;
  }

  #main .trouble-article-label {
    min-width: 55px;
    min-height: 28px;
    padding: 3px 6px;
    font-size: 12px;
  }

}

#main span.trouble-article-label:before {
  font-family: FontAwesome;
  margin-right: .3em;
}

/* 動画 */
#main .trouble-article-label.label-video {
  background: #e8f1ff;
  border-color: #3978bd;
  color: #245b9b;
}

#main span.trouble-article-label.label-video:before {
  content: "\f03d";
}

/* 解説 */
#main .trouble-article-label.label-explanation {
  background: #eaf5ec;
  border-color: #4a9360;
  color: #286b3c;
}

#main span.trouble-article-label.label-explanation:before {
  content: "\f02d";
}

/* Q&A */
#main .trouble-article-label.label-qa {
  background: #fff0e4;
  border-color: #d58b45;
  color: #a45b21;
}

#main span.trouble-article-label.label-qa:before {
  content: "\f059";
}