@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/** 汎用 */
img{
    image-rendering: pixelated;
}

.external-content-wrapper{
    max-width: 720px;
}
.external-content{
    display: flex;
    height: 140px;
    background-color: whitesmoke;
    border-radius: 0.5rem;
    border-style: solid;
    border-color: #333;
    border-width: 0.5px;
    transition: all 0.3s;
    padding: 12px;
}
.external-content:hover{
    background-color: lightgray;
}
a.link-external{
    text-decoration:none;
    color:#333;
}
.external-content .thumbnail{
    height: 100%;
    aspect-ratio: 1;
}
.external-content .thumbnail{
    margin-right: 18px;
}
.external-content .site-name{
    font-size: x-small;
}
.external-content .title{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1; 
    overflow: hidden;
}
.external-content .description{
    font-size: small;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; 
    overflow: hidden;
}

/** page */
.eye-catch-wrap{
    justify-content: center;
}

/* アクセスカウンタ */
.access-counter{
    margin: auto;
}
.access-counter .string-access-counter{
    display: none;
}
.access-counter .svg-access-counter svg{
    width: 28px;
    display: block;
    float: inline-start;
}
.numbase .inside{
    transition: all  0.5s ease;
    r:0;
}
.numbase .inside.valid{
    r:3;
}

/** フリー素材のとこ */
.free-materials-ul{
    display: flex;
    column-gap: 10px;
}
.free-materials-li{
    max-width: 45%;
    width: 20vw;
    max-width: 120px;
    list-style:none;
}
.free-materials-contents{
    display: flex;
    height: 20vw;
    max-height: 120px;
    background-color: whitesmoke;
    border-radius: 0.5rem;
    border-style: solid;
    border-color: #333;
    border-width: 0.5px;
    transition: all 0.3s;
    padding: 12px;
}
.free-materials-contents:hover{
    background-color: lightgray;
}
a.free-materials-link{
    text-decoration:none;
    color:#333;
}
.free-materials-contents .free-materials-thumbnail{
    height: fit-content;
    aspect-ratio: 1;
    margin: auto;
}
p.free-materials-title{
    --line:2;
    display: -webkit-box;
    font-size: small;
    line-height: 140%;
    height: calc(1em * 1.4 * var(--line));
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--line); 
    margin-bottom: 0;
    overflow: hidden;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
/* アクセスカウンタ切替 */
    .access-counter .string-access-counter{
        display: block;
    }
    .access-counter .svg-access-counter{
        display: none;
    }
}
