@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

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

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

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

.rep-alts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 18px;
}

.rep-alts-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: transform .2s ease;
}

.rep-alts-card:hover {
    transform: translateY(-3px);
}

.rep-alts-card-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.rep-alts-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rep-alts-card-body {
    padding: 12px;
}

/* 種類名 */
.rep-alts-card .rep-alts-species {
    display: block;
    margin: 0 0 4px 0;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    color: #888;
}


/* モルフ名 */
.rep-alts-card .rep-alts-name {
    display: block;
    margin: 0;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;

    color: #444;
}

@media (max-width: 1023px) {
    .rep-alts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .rep-alts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .rep-alts-card-body {
        padding: 9px;
    }

    .rep-alts-name {
        font-size: 14px;
    }

    .rep-alts-species {
        font-size: 11px;
    }
}

/************************************
** ExAlts図鑑
************************************/

.exalts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 18px;
}

.exalts-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: transform .2s ease;
}

.exalts-card:hover {
    transform: translateY(-3px);
}

.exalts-card-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.exalts-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exalts-card-body {
    padding: 12px;
}


/* 種類名 */
.exalts-card .exalts-species {
    display: block;
    margin: 0 0 4px 0;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    color: #888;
}


/* 表示名 */
.exalts-card .exalts-name {
    display: block;
    margin: 0;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;

    color: #444;
}


/* タブレット */
@media (max-width: 1023px) {

    .exalts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


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

    .exalts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .exalts-card-body {
        padding: 9px;
    }

    .exalts-name {
        font-size: 14px;
    }

    .exalts-species {
        font-size: 11px;
    }

}