/*
Theme Name: AFFINGER7 Child
Template: affinger
Description: AFFINGER7 対応
Version: 20260410
*/

/*media Queries スマートフォンとタブレットサイズ（959px以下）で適応したいCSS - スマホ・タブレット
---------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 959px) {
/** ロゴのサイズ **/
#st-mobile-logo img, header .sitename img {
  max-height: 100px !important;
}

/** 目次のh3 **/
.post #st_toc_container > ul li, #st_toc_container > ul > li, .st_toc_container > ul > li {
  font-size: 15px;
}

	/*-- ここまで --*/
}
	
/*media Queries タブレットサイズ（600px～959px）のみで適応したいCSS -タブレットのみ
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) and (max-width: 959px) {


	/*-- ここまで --*/
}	
	
/*media Queries タブレット（600px）以上で適応したいCSS -タブレット・PC
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) {


	/*-- ここまで --*/
}

/*media Queries PCサイズ（960px）以上で適応したいCSS - PCのみ
---------------------------------------------------------------------------------------------------*/
/** ロゴのサイズ **/
@media print, screen and (min-width: 960px) {
#header-l {
  max-width: 500px !important;
  min-width: 300px !important;
}

	/*-- ここまで --*/
}

/*media Queries スマホサイズ（599px）以下で適応したいCSS - スマホのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (max-width: 599px) {

	
	/*-- ここまで --*/
}

/* 本文装飾
---------------------------------------------------------------------------------------------------*/
/** 見出し **/
.mainbox h3 {
  border-bottom: 2px dotted #4f474d !important;
}
.mainbox h4 {
  padding: 0.2em 0.7em 0.2em 25px !important;
  background-image: url(https://moimochan.com/wp-content/themes/cocoon-child-master/skins/skin-gray-lovely/images/h4-icon.png) !important;
  background-size: 20px 20px !important;
  background-repeat: no-repeat !important;
  line-height: 1em !important;
}

/** テーブル **/
table tr,table th,table td {
  border: 1px solid #bbb !important;
}
table th,table td {
  padding:0.8em !important;
  font-size: 12px !important;
  vertical-align: middle !important;
}
table td p {
  font-size: 12px !important;
}
table th{
  font-weight: bold !important;
  background: #eee !important;
}
table tr td{
  background-color: white !important;
}

/* サイドバー
---------------------------------------------------------------------------------------------------*/
#side aside > div > div {
  margin-bottom: 30px;
}

/** タイトル **/
.st-widgets-title {
  position: relative;
  margin: 0 0 20px !important;
  padding: 0 0 5px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
  background: none;
  border: none;
}

.st-widgets-title::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #E5E5E5;
}

.st-widgets-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 2px;
  background: #303645;
}

/** 人気カテゴリー **/
.popular-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popular-link {
  display: block;
  position: relative;
  padding: 12px 36px 12px 14px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-left: 4px solid #4B4B4B;
  border-radius: 6px;
  color: #222;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.popular-link::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #303645;
}

.popular-link:hover {
	color: #627ac0;
  background: #f7f7f7;
  transform: translateY(-1px);
}

.popular-link-main {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.popular-link-sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: #777;
}

.popular-link:hover .popular-link-main,
.popular-link:hover .popular-link-sub {
  color: #627ac0;
}

/** 人気記事 **/

.popular-article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popular-article {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #222;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.popular-article-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #303645;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.popular-article-body {
  display: block;
  min-width: 0;
}

.popular-article-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #222;
}

.popular-article-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: #777;
}

.popular-article:hover {
  background: #f7f8fb;
  border-color: #627ac0;
  transform: translateY(-1px);
}

.popular-article:hover .popular-article-title,
.popular-article:hover .popular-article-meta {
  color: #627ac0;
}

.popular-article:hover .popular-article-rank {
  background: #627ac0;
}

/** カテゴリー一覧 **/

#categories-2 ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#categories-2 li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#categories-2 a {
  display: flex;
  align-items: center;
  position: relative;
  padding: 11px 28px 11px 6px;
  border-bottom: 1px solid #e5e5e5;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

#categories-2 > ul > li > a {
  padding-left: 6px;
  font-weight: 700;
}

#categories-2 > ul > li > a::before {
  content: "\f07b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  color: #303645;
  font-size: 12px;
}

#categories-2 ul.children a {
  padding-left: 16px;
}

#categories-2 ul.children a::before {
  content: none;
}

#categories-2 a:hover {
  color: #627ac0;
}

#categories-2 a:hover::before {
  color: #627ac0;
}

#categories-2 ul.children {
  margin: 0;
  padding: 0;
}

#categories-2 .cat-item-count,
#categories-2 .count {
  margin-left: 6px;
  color: #666;
  font-size: 13px;
  font-weight: 400;
}

/* 広告
---------------------------------------------------------------------------------------------------*/
.ads-area,
.st-h-ad {
  text-align: center;
  display: block;
  width: 100%;
  margin: 0 auto;
}

/*拡大画像
---------------------------------------------------------------------------------------------------*/
.kakudai_img {
  max-width: 100%;
  border: 3px solid #4b4b4b;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.kakudai_img p{
  margin-bottom: -20px !important;
}
.kakudai_icon {
  width: 1.2em;
  position: absolute;
  right: 0.2em;
  bottom: 0.1em;
}
.kakudai_label{
  width: 2.2em;
  height: 2em;
  padding: 0;
  position: absolute;
  background-color: #4b4b4b;
  border-top-left-radius: 100%;
  bottom: 0;
  right: 0;
}

/*旧ステップリスト（移行後削除）
---------------------------------------------------------------------------------------------------*/
div.step_list {
  display: flex;
  justify-content: center;
  align-items: center;
}

ul.step_inner {
  padding-left: 0;
  border-bottom: solid 1px #E1E8ED;
margin-left: 0;
width: 100%;
}

ul.step_inner > li {
  list-style-type: none;
  display: flex;
  padding: 20px 0;
  border-top: solid 1px #E1E8ED;
}

ul.step_inner > li dl dt {
  font-size: 1.2em;
  line-height: 2;
  font-weight: bold;
  margin-bottom: 10px;
}

ul.step_inner > li .iconstep {
  line-height: 1;
  font-size: 2em !important;
  font-weight: bold;
  color: #EA618E;
  text-align: center;
  width: 50px;
  position: relative;
  margin-top: 0;
}

ul.step_inner > li .iconstep::before {
  content: 'STEP';
  font-size: 0.3em;
  display: block;
  margin-bottom: 3px;
  letter-spacing: 1px;
}

ul.step_inner > li .iconstep::after {
  content: "";
  display: block;
  width: 1px;
  height: calc(100% - 40px);
  background-color: #858585;
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  margin: auto;
}

ul.step_inner > li dl dd {
  margin: 0;
}

ul.step_inner > li dl {
  width: calc(100% - 70px);
  margin-top: 0.8em;
}

ul.step_inner li dl dd img{
  margin-bottom: 15px;
}