@charset "UTF-8";

html {
    font-size: 100%;
    background-color: #fff;
}
body {
    font-family: "Zen Maru Gothic";
}

img {
    max-width: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

a {
    text-decoration: none;
}
h1, h2, h3 {
    text-align: center;
}


/*ヘッダー*/
.header {
    font-size: 3rem;
}
.header-box {
    font-size: 3.5rem;
    padding-bottom: .5rem;
    background-color: #777777;
}
.Erulog {
    font-weight: bolder;
    color: black;
}

/*ヘッダー画像*/
.flexible-images {
    margin-top: .5rem;
    text-align: center;
}

/*メニュー*/
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}
.menu {
    display: inline-block;
    font-size: .9rem;
    background-color: #d5d2d2;
    color: black;
    font-weight: lighter;
    margin: 2px;
    padding: 8px;
    transition: .5s;
}
.menu:hover {
    scale: 1.05;
    background-color: #c0bebe;
}



/*メイン記事*/
.content {
    background-color: #fff;
    margin-top: 0.5rem;
    text-align: center;
}
.content-group {
    text-align: center;
    margin-top: 1rem;
}
.article-group {
    margin-top: 2rem;
}
.article-group p {
    text-align: left;
    margin-left: 1rem;
    margin-right: 1rem;
}
.article-display {
    display: flex;
    justify-content: center;
}

.mainbox img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.post-card {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;

}
.item {
    background-color: #d5d2d2;
    width: 100%;
    box-sizing: border-box;  /* ← 余白で幅がズレるのを防ぐ */
    display: flex;
    flex-direction: column;
}

.item p {
    color: black;
    padding: .5rem;
    font-weight: lighter;
}
.card-text {
    padding-right: .5rem;
    padding-left: .5rem;
}
.card-images {
    width: 100%;
    height: 100px;      /* ← 好きな高さに固定 */
    overflow: hidden;
}
.card-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* ← 同じ枠にきれいに収まる */
    display: block;
}

.main-content {
    margin-bottom: 3rem;
}
.article-display2 {
    display: grid;
    justify-content: center;
}
.amazon-window {
    margin: 2rem;
    padding: 1rem;
    border: black;
    border-width: 2px;
    border-style: solid;
}
.size {
    padding: 1rem;
    color: black;
}
.large {
    font-size: larger;
}
.black-friday {
    color: #fff;
    background-color: orange;
    border-radius: 6px;
}
.btn {
    color: #fff;
    background-color: black;        
    padding: 10px;
    text-align: center;
    border-radius: 6px;
}
/**目次**/
.unit-base {
    padding-bottom: .5rem;
}
.mokuzi,
.mokuzi-box a {
    display: grid;
    color: black;
    background-color: #d5d2d2;
    margin: 2px;
    padding: 8px;
}
.mokuzi-box a {
    text-align: left;   
    transition: .5s;
}
/**目次終了**/


h3 {
    margin-left: 1rem;
    margin-top: .5rem;
}
/**コンテンツ画像**/
.caption {
    text-align: center;
    font-size: smaller;
}
.caption p {
    margin-top: -.4rem;
}
/**コンテンツ画像終了**/


/*フッター*/
    .footer-size {
    padding-top: 2%;
    padding-right: 20%;
    padding-left: 20%;
    }
.footer-profile {
    background-color: #fff;
    width: auto;
    padding: 1rem;
}
.profile-icon {
    background-color: #fff;
}
.profile-icon img {
    border-radius: 80px;
    height: auto;
    border: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.profile-content {
    background-color: #fff;
}

.div {
    background-color: #777777;    
    padding: 0.5rem;
}
.footer-title {
    font-size: 1.5rem;
}

/*デスクトップ版*/
@media (min-width: 800px) {
    /*ヘッダー*/
    .grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    text-align: center;
    }
    /*メイン*/
    .background {
    background-color: #f3eeee;
    display: flex;
    justify-content: space-between;
    }
    /**コンテンツ**/
    .content {
    margin-left: 1%;
    margin-right: 1%;
    margin-top: 4%;
    margin-bottom: 4%;
    width: 70%;
    text-align: center;
    }
    .main-content {
    padding: 2rem;
    }
    .post-card {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
    margin: 3rem;
    }
    .card-images {
    width: 100%;
    height: 250px;      /* ← 好きな高さに固定 */
    overflow: hidden;
    }
    .card-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* ← 同じ枠にきれいに収まる */
    display: block;
    }
    .article-display2 {
    display: flex;
    justify-content: center;
    }
    .btn {
    color: #fff;
    background-color: black;        /* ← これで下に固定！ */
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    }
    /**サイドバー**/
    .sidebar {
    margin-right: 2%;
    margin-left: 1%;
    margin-top: 4%;
    margin-bottom: 4%;
    width: 22%;
    }
    .long-sidebar {
    margin-right: 1%;
    margin-left: 2%;
    margin-top: 4%;
    margin-bottom: 4%;
    width: 16%;
    }
    .test1 {
    background-color: #fff;
    padding: .5rem;
    }
    /*フッター*/
    .footer-size {
    padding-top: 3%;
    padding-right: 30%;
    padding-left: 30%;
    }
}