@charset "utf-8";

/* 基本設定 */
body {
  font-family: "Yu Gothic Medium", "游ゴシック Medium", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
  color: #333;
  line-height: 1.9;
  margin: 0;
  padding: 0;
  background: #fff;
}
a {
  color: #006699;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.link-with-icon {
    display: inline-flex;
    align-items: center;
}
.icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

a img {
    transition: 0.3s;
}
img {
    max-width: 100%;
    border: none;
    vertical-align: top;
}

/* レイアウト共通 */
#outer {
  width: 1260px;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  #outer {
    width: 95%;
    margin: 0 auto;
  }
}

/* 見出し */
h1 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #222;
  margin: 2rem 0 1.5rem;
  text-align: left;
}
h2.column_subtitle {
  border-left: solid 5px #e60013;
  font-weight: bold;
  padding-left: 1rem;
  font-size: 18px;
  margin: 2em 0 1em;
}
h3.column_subtitle {
  display: inline-block;
  font-size: 15px;
  font-weight: bold;
  width: 100%;
  background-color: #EAFAEA;
  padding: 5px;
  margin: 1.5em 0 0.8em;
}

/* 強調ライン */
.mojiline {
  background: linear-gradient(transparent 70%, #ffe569 30%);
  font-weight: bold;
}

/* 本文画像 */
.block-simpleblog-detail--article-body-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  height: auto;
  width: auto;
  max-width: 100%;
}

/* 監修部分 */
p.column_kansyu {
  border: 2px dashed #c8e6cb;
  padding: 10px;
  text-align: center;
  margin: 30px 0 40px;
  background: #fdfdfd;
}

/* 目次エリア */
#toc {
    border: 2px solid #d7edd9;
    padding: 15px;
    width: 90%;
    max-width: 600px;
    background: #fdfffe;
    white-space: normal !important;
    text-align: left;
    margin: 0 auto 1rem;
}

.toc-title {
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: #EAFAEA;
  border-radius: 5px;
  width: 100%;
  color: #000 !important;
}
.toggle-text {
  margin-left: 10px;
}
.open-text {
  display: inline;
}
.close-text {
  display: none;
}
.toc-checkbox:checked + .toc-title .open-text {
  display: none;
}
.toc-checkbox:checked + .toc-title .close-text {
  display: inline;
}
.toc-checkbox {
  display: none;
}
.toc-content {
  display: block;
  margin-top: 10px;
  transition: all 0.3s ease-in-out;
}
.toc-checkbox:not(:checked) ~ .toc-content {
  display: none;
}
.toc-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.toc-list > li {
  margin: 12px 0;
  line-height: 1.8;
  font-weight: bold;
  font-size: 1.05em;
  list-style: none !important;
}
.toc-list > li::before {
  content: none !important;
}
.toc-list > li > ol,
.toc-list > li > ul {
  list-style: none !important;
  padding-left: 1em !important;
  margin-left: 0 !important;
}
.toc-list > li > ol > li,
.toc-list > li > ul > li {
  margin: 8px 0;
  line-height: 1.6;
  font-weight: normal;
  font-size: 0.95em;
  list-style: none !important;
}
.toc-list > li > ol > li::before,
.toc-list > li > ul > li::before {
  content: none !important;
}
.toc-list a {
  text-decoration: none;
  color: #000;
}
.toc-list a:hover {
  text-decoration: underline;
  color: #005f99;
}

/* === 目次番号を完全に削除 === */
#toc ol,
#toc ul {
  list-style: none !important;
  list-style-type: none !important;
}
#toc li {
  list-style: none !important;
  list-style-type: none !important;
}
#toc li::marker {
  content: "" !important;
  display: none !important;
}
#toc li::before {
  content: none !important;
}
#toc ol li::before,
#toc ul li::before {
  content: none !important;
}


/* カテゴリボタン（中央配置・hover時の動き完全防止） */
a._catebtn {
  position: relative;
  display: block;
  text-align: center;
  width: 700px;
  margin: 2rem auto !important;
  padding: 1rem 4rem;
  font-weight: bold;
  border-radius: 100vh;
  background: #139767;
  color: #ffffff !important;
  font-size: 1.5em;
  text-decoration: none;
  border: none;
  box-shadow: 0 7px 0 #0C6746;
  transition: none;
}
a._catebtn:hover {
  background: #0f7d56;
  color: #ffffff;
  box-shadow: 0 7px 0 #0C6746;
  transform: none !important;
  margin: 2rem auto !important;
  text-decoration: none;
  cursor: pointer;
}

/* 画像2カラム */
.user_img2item_sp1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin: 20px auto;
}
.user_img2item_sp1 .item {
  width: 49%;
  margin-bottom: 10px;
}
.user_img2item_sp1 img {
  width: 100%;
  height: auto;
}

/* テーブル */
table.blog {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 20px 0;
}
table.blog th {
  font-weight: bold;
  padding: 5px;
  background: #fffbda;
  border: solid 1px #dddddd;
}
table.blog td {
  padding: 5px;
  border: solid 1px #dddddd;
}

/* 本文中の画像を中央配置にする */
.block-simpleblog-detail--article-body-image,
.block-simpleblog-detail--article-body-image img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
p img,
figure img,
img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100%;
  height: auto;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  #column_contents {
    padding: 0 15px;
    line-height: 2;
  }
  #outer {
    width: 100%;
    padding: 0;
  }
  
  h1 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
  }
  h2.column_subtitle {
    font-size: 16px;
    padding-left: 0.8rem;
    margin: 1.5em 0 0.8em;
  }
  h3.column_subtitle {
    font-size: 14px;
    padding: 8px;
    margin: 1.2em 0 0.6em;
  }
  
  /* スマホ時の目次の余白調整 */
  .toc-title {
    font-size: 16px;
    padding: 10px;
  }
  .toc-content {
    margin-top: 15px;
  }
  .toc-list {
    padding-left: 0 !important;
  }
  .toc-list > li {
    margin: 12px 0;
    font-size: 0.95em;
    padding-left: 0 !important;
  }
  .toc-list > li > ol,
  .toc-list > li > ul {
    padding-left: 1.2em !important;
    margin-top: 8px;
  }
  .toc-list > li > ol > li,
  .toc-list > li > ul > li {
    margin: 8px 0;
    font-size: 0.9em;
  }
  
  /* 監修部分 */
  p.column_kansyu {
    padding: 15px;
    margin: 20px 0 30px;
    font-size: 0.95em;
  }
  
  /* カテゴリボタン */
  
  /* テーブル */
  table.blog {
    font-size: 0.9em;
  }
  table.blog th,
  table.blog td {
    padding: 8px 5px;
  }
  
  /* 画像 */
  .block-simpleblog-detail--article-body-image {
    margin-bottom: 20px;
  }
  
  /* 2カラム画像 */
  .user_img2item_sp1 {
    flex-direction: column;
    margin: 15px 0;
  }
  .user_img2item_sp1 .item {
    width: 100%;
    margin-bottom: 15px;
  }
  
  /* 段落の余白 */
  p {
    margin: 1em 0;
  }
 /* === スマホ時の目次＆カテゴリボタン幅を本文に合わせる（column_contents内限定） === */
  #column_contents #toc {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    box-sizing: border-box;
  }

  #column_contents a._catebtn {
    width: 100%;
    max-width: 100%;
    font-size: 1.1em;
    padding: 1rem 1.5rem;
    margin: 1.5rem auto !important;
    box-sizing: border-box;
  }
}
