/* -------------------- */
/* base
/* -------------------- */

html {
  font-size: 62.5%; /* -> 10px; */
}

body {
  font-family: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
  color: #333333;
  background-color: #f9f9f9;
  max-width: 100%;
  width: 100%;
}
ul, ul > li {
  list-style-type: disc;
  margin-left: 10px;
  padding: 5px 0;
}
ol > li {
  list-style-type: decimal;
  margin-left: 10px;
  padding: 5px 0;
}

a {
  text-decoration: none;
  color: #333;
  /* font-size: 1.4rem; */
}

.caption {
  text-align: right;

}
a:hover{
  opacity:.8;
}

img {
  height:initial;
  max-width: 100%;
  vertical-align: bottom;
}

iframe {
  max-width: 100%;
  /* height: initial; */
}

h1 {
  font-size: 2rem;
  font-weight: bold;
}

h2 {
  font-size: 2rem;
  font-weight: bold;
  border-left: 8px solid #995448;
  margin: 48px 0px 24px;
  padding-left:12px;
}

h3 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #995448;
  margin: 48px 0px 12px;
}

h4 {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.8;
  margin: 20px 0;
  
}

p {
  font-size: 1.4rem;
  line-height: 1.8;
}

small {
  font-size: 1.2rem;
  color: #999999;
}

li{
  text-align: left;
}


/* -------------------- */
/* 全体レイアウト（wrapper）
/* -------------------- */
.wrapper {
  max-width: 60%;
  margin: 40px auto 100px;
}

main {
  background-color: #fff;
  padding: 4% 4%;
  box-shadow: 0 1px 4px rgba(50, 50, 93, 0.1), 0 1px 4px rgba(0, 0, 0, 0.08);
}


/* -------------------- */
/* 記事カバー上、部分
/* -------------------- */
.article-top {
  display: flex;
  justify-content: space-between;
}

.article-top-left{
  display: flex;
  align-items: center;
  width: 50%;
}

.article-top .article-top-left p{
  font-size: 1.4rem;
  padding: 0 4% 0;  
  margin-left: 2%;
  background-color: #995448;
  border-radius: 20px;
  color: #fff;
}

.article-top-right{
  display: flex;
  margin: 0 0 0 auto; 
}

.article-top-right a{
  margin: 0 4px 0;
}

strong, b {
  font-weight: bold;
}
u{
  text-decoration:  underline;
}

/* -------------------- */
/* テーブル記事
/* -------------------- */

    .wrapper__table {
      overflow-x: auto;
      margin:20px 0 0px;
    }
    .wrapper__table table{
      /* display: flex; */
      width: 100%;
    }
    tr {
      /* display: block; */
    }
    thead {
      width: 30%;
    }
    th, td {
      /* display: block; */
      border-bottom: 1px solid #aaa;
    }
    th {
      background-color: #995448;
      border: 1px solid #aaa;
      font-size:1.6rem;
      font-weight: bold;
      color:#fff;
      text-align: center;
      padding:8px;
    }
    td {
      border: 1px solid #aaa;
      font-size: 1.6rem;
      padding:8px;
      /* height:20px; */
    }
    
    tbody tr {
      /* display: flex; */
    }





/* -------------------- */
/* TOPのロゴ
/* -------------------- */
.cover-area {
  position: relative;
  background-color: #f6f6f6;
  margin: 0 auto;
  padding:6%;
  text-align: center;
  width:20%;
}

/* -------------------- */
/* カバー画像とタイトル
/* -------------------- */
.article-cover {
}
.article-cover h1{
  margin-bottom: 2%;
}

.article-cover img{
  margin-bottom:40px;
}


/* -------------------- */
/* メイン記事
/* -------------------- */

.article-top {
display:flex;
} 

.article-info{
  display: flex;
}

.article-icon{
  justify-content: right;  
}

.article-top ul{
  display: flex;
}


/* -------------------- */
/* 目次セクション
/* -------------------- */

.wrapper__table-of-contents{
  max-width: 100%;
  padding: 0% 18% 2% 18%;
  margin: 4% auto;
  background-color: #fff;
  border: 1px solid #CBCBCB;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #333;
  box-sizing: border-box;
  box-shadow: 4px 4px rgba(203,203,203,1);
  
}

  .wrapper__table-of-contents .contents-title{
  font-weight: bold;
}


  .wrapper__table-of-contents ul{
 margin-top:2%;
 line-height: 28px;
}

  .wrapper__table-of-contents li a{
 font-size: 1.6rem;
}

  .wrapper__table-of-contents li a:hover{
  border-bottom: 1px solid #8593A9;
  }

.wrapper__table-of-contents .contents-title{
  text-align: center;
}

/* -------------------- */
/* まとめセクション
/* -------------------- */
.wrapper__sumally{
  max-width: 100%;
  padding: 20px;
  margin: 4% auto;
  background-color: #FFF0EE;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #333;
  text-decoration: none;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  box-sizing: border-box;
}
.wrapper__sumally h4{
font-weight: bold;
margin: 0 0 20px;
} 
.wrapper__sumally ul{
 margin-top:2%;
 line-height: 28px;
 text-align: left;
}

  .wrapper__sumally li{
 font-size: 1.6rem;
  }

.wrapper__sumally .contents-title{
  text-align: center;
}



/* -------------------- */
/* メイン記事（文章）
/* -------------------- */

.contents-main-area{
  justify-content: center;
}

.contents-main-area h2{
  font-weight: bold;
  border-left: 8px solid #995448;
  margin: 4% 0 2%;
  padding-left:1%;
}

.contents-main-area h3{
font-weight:bold;
color: #995448;
margin: 4% 0 2%;
}

.contents-main-area h4{
color: #995448;
font-weight:bold;
margin: 4% 0 2%;
}

.contents-main-area img{
  width:50%;
  margin: 4% 0 4%;
}


/* -------------------- */
/* 別記事リンク
/* -------------------- */

.article__link{
    display: flex;
    justify-content: center;
    background: #f6f6f6;
    width: 70%;
}

.article__link img{
 width:40%;
 height:auto;
 object-fit: cover;
}

.article__link p{
padding:10px;
}


/* -------------------- */
/* 執筆者（先生）の導線
/* -------------------- */

.writer {
  margin: 4% 0 2%;               
  box-sizing     : border-box;    
  background     : #f6f6f6; 
  display        : table;
  padding: 1.2em 2%;
  width: 100%;
}

.writer-left {
  display        : table-cell;
  text-align     : center; 
  vertical-align : middle;
  width: 10px;
}

.writer-left img{
    width: 100px;
    max-width: none;
    height: 100px;
    object-fit: cover;
    border-radius: 100px;
}

.writer-left small{
  display:block;
  color: #333;
}


.writer-middle {
  display        : table-cell;
  text-align     : left;
  vertical-align : middle;
  padding-left: 4%;
}

.writer-middle p{
  margin-block: 0!important;
}

.writer-middle h3,
.writer-middle p.writer-name{
margin:0 auto;
color:#333333;
font-size: 1.8rem;
font-weight: bold;
}

.writer-middle p.writer-license{
  font-size: 1.2rem;
  color:#888;
}

.writer-right {
  display        : table-cell;
  vertical-align : middle;
}

.writer-right p{
  text-align: right;
}


.writer h4{
  text-align: left;
}

.writer p{
  font-size: 1.6rem;
}


/* -------------------- */
/* 下段のランキング（aside）
/* -------------------- */

.bottom-article-left {
  display: inline;
  width: 20%;
}


#menu ul{ 
  margin: 0; 
  padding: 0; 
  list-style: none; 
  }
  #menu li{ 
  display: inline; 
  padding: 0; 
  margin: 0; 
  }

  .ranking-title{ 
  display: block; 
  border-top: 1px solid #431f1f;
  border-left: 1px solid #431f1f;
  border-right: 1px solid #431f1f;
  background-color: #431F1F;
  padding: 10% 20%;
  text-decoration: none;
  color: #fff;
  width: 150px; 
  margin: 0px;
  text-align: center;
  font-size: 14px;
  }

  #menu li a{
  display: block; 
  border-top: 1px solid #9F99A3;
  border-left: 1px solid #9F99A3;
  border-right: 1px solid #9F99A3;
  background-color: #EEEEEE;
  padding: 10% 20%;
  text-decoration: none;
  color: #333;
  width: 150px; 
  margin: 0px;
  text-align: left;
  font-size: 14px;
  }


  #menu li a:hover{
  border-top: 1px solid #8593A9;
  border-left: 1px solid #8593A9;
  border-right: 1px solid #8593A9;
  background-color: #9EB7DD;
  }
  #menu #shita li a{
  display: block; 
  border-left: 1px solid #9F99A3;
  border-right: 1px solid #9F99A3;
  border-bottom: 1px solid #9F99A3;
  background-color: #EEEEEE;
  padding: 3px 10px;
  text-decoration: none;
  color: #333;
  width: 150px; 
  margin: 0px;
  text-align: left;
  font-size: 14px;
  }
  #menu #shita li a:hover{
  border-left: 1px solid #8593A9;
  border-right: 1px solid #8593A9;
  border-bottom: 1px solid #8593A9;
  background-color: #9EB7DD;
  }



/* -------------------- */
/* 下段の記事（回遊用）
/* -------------------- */

.bottom-article-title{
  margin: 60px 1% 0px;
  opacity: 0;/*不透明度を指定*/
  transform: translateY(10px); /*transformプロパティの値に関数を指定することで、移動、回転、伸縮、傾斜の設定が可能*/
  transition: all 2s;/*変化の時間*/
}

.bottom-article-title h3{
  color:#333333;
}

.bottom-article-title.scrollin {
  opacity: 1;
  transform: translateY(0);
}


.bottom-article {
  display: flex;
  margin: 0 auto;
  justify-content: center;
  opacity: 0;/*不透明度を指定*/
  transform: translateY(10px); /*transformプロパティの値に関数を指定することで、移動、回転、伸縮、傾斜の設定が可能*/
  transition: all 2s;/*変化の時間*/
}


.bottom-article.scrollin {
  opacity: 1;
  transform: translateY(0);
}



.bottom-article-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}


.bottom-article-card {
  margin: 0 0 4%;
  background: #fff;
  width: calc(100% / 3 - 10px);
}


.bottom-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 34px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.5s;
}


.bottom-article-card-text {
  padding: 3%;
}


.bottom-article-card-text p{
  background: #fff;
  display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.bottom-article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}


/* ------------------ */
/* フッター
/* ------------------ */

footer {
  width: 100%;
  background-color: #431f1f;
  color: #fff;
  text-align: center;
  padding: 30px 0;
  position: absolute; /*←絶対位置*/
}

footer ul li {
  display: inline-block;
  justify-content: space-between;
}

footer a {
  padding: 0 10px 0;
  color: #fff;
}

footer img {
  width: 10%;
  margin: 1% 0;
}

footer p {
  font-size: 1.2rem;
}

.footer__fracora{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 0;
}


.footer__fracora p{
  font-size: 1.6rem;
  margin: 0 0 0 1%;
  padding:4px 0 0; 
}

.footer__fracora img{
  width:7%;
}

.copyright{
margin-top:40px;
}

.article-container p {
  margin: 10px 0 0;
}



/* -------------------- */
/* ここからレスポンシブ
/* -------------------- */

@media (max-width: 500px) {
  /* ----------------------- */
  /* base_sp
  /* ----------------------- */

html{
  background-color: unset;
}

h1{
  font-size: 2.4rem;
}
h2{
  font-size: 2rem;
}

h3{
  font-size: 1.8rem;
  font-weight: bold;
}

h4{
  font-size: 1.6rem;
}

  .wrapper {
    max-width:100%;
    width: 100%;
    padding-bottom: 0;
    margin: 60px auto 100px;
  }

main{
  box-shadow: none;
  padding: 4% 4%;
}

/* -------------------- */
/* 記事トップの情報
/* -------------------- */
.article-top .article-top-left p{
  display: inline-block;
  margin: 0;
  padding: 0 6% 0;
}

.article-top-left{
  display: block;
}



/* -------------------- */
/* 目次
/* -------------------- */
.wrapper__table-of-contents{
padding:0% 4% 4% 8%;
margin: 10% 0;
white-space: normal;
}

/* -------------------- */
/* まとめエリア
/* -------------------- */
.wrapper__sumally{
  padding:4%;
  white-space: normal;
  margin: 10% 0;
}

/* -------------------- */
/* 記事カバーアイキャッチ
/* -------------------- */

  .article-card {
    width: calc(50% - 10px);
    margin: 5px;
    vertical-align: center;
  }
  .tag-area {
    margin: 2% 3%;
    padding-left: 88%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .tag-area ul li a {
    margin: 2% 3%;
  }

/* -------------------- */
/* ライター、先生紹介
/* -------------------- */
.writer {
  width: calc(200% / 2);
}

.writer p{
  font-size:1.2rem;
}

/* .writer-left img{
  width:44px;
  height:44px;
} */


/* -------------------- */
/* 記事下部エリア
/* -------------------- */
  .bottom-article-left{
  display: none;
  }   

.bottom-article-card{
  width:100%;
}

.bottom-article-right{
  width:100%;
  margin: 0 auto;
  display: block;
}
.bottom-article{
  margin: 4%;
  
}

/* ------------------ */
/* フッター
/* ------------------ */
footer img {
  width: 30%;
}

footer ul li{
  margin-top:10px;
}


.footer__fracora{
  display: block;
}


.footer__fracora img{
  width:25%;
}
}







/*-------------------------
  ブログカード
-------------------------*/
.blog-card {
  background: #fbfaf8;
	border:1px solid #ddd;
	word-wrap:break-word;
	max-width:100%;
}
.blog-card:hover {
  background: #fee;
}
.blog-card a {
  text-decoration: none;
  display: flex;
  color: black;
}
.blog-card-title {
	display: block;
}
.blog-card-thumbnail {
	padding:10px;
}
.blog-card-thumbnail img {
	display: block;
	padding: 0;
	-webkit-transition: 0.3s ease-in-out;
	-moz-transition: 0.3s ease-in-out;
	-o-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
  object-fit: cover;
  max-width: 180px;
  height: 120px;
}
.blog-card-content {
  flex: 1;
}
.blog-card-title {
	padding: 20px;
  font-size: 18px;
  font-weight: bold;
}
.blog-card-excerpt {
	color:#333;
	margin:0 10px 10px;
	font-size: 12px;
}
.blog-card-sub {
	padding:10px;
  text-align: center;
  font-size: 16px;
  background-color: #431f1f;
  color: white;
}



/* table of contents */
div#toc_container{
	margin-inline:  auto;
  margin-bottom: 3em;
	padding: 1.5em;
	box-sizing: border-box;
	line-height: 1.6;
}

div#toc_container li a{
  font-size: 1.4rem;
}