body { width: 100%; }

h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 3em;
}

body > p {
    text-align: center;
    line-height: 1.3;
}

.category-list {
    padding: 2em 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.listname {
    display: flex;
    font-size: 1.2em;
    align-items: center;
    font-weight: 500;
}

.category-list a {
    border: 2px solid #997844;
    background-color: #bd924d;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #faf0e6;
    transition: background-color 0.3s ease;
}

.cards { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    margin-top: 20px; 
    width: 100%;
    justify-content: center;
    align-items: center;
}

.card {
    width: 380px;
    padding: 0.5em;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    box-sizing: border-box;
    background-color: #fffdfa;
}

.card img {
    max-width: 100%;
    width: auto;
    height: 180px;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.card-category {
    margin-top: 0.5em;
    color: #faf0e6;
    padding: 0.5em;
    display: inline-block;
    line-height: 1.3;
    background: #bd924d;
    vertical-align: middle;
    border-radius: 25px 0px 0px 25px;
}

.card-category:before {
  content: '●';
  color: #faf0e6;
  margin-right: 8px;
}

.blog-information {
    margin-left: 1em;
}

.card > .blog-information > h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0.5em 0;
}

.card > a {
    display: block;
    text-decoration: none;
    width: 12em;
    background: #fffdfa;
    border: 1px solid #997844;
    border-radius: 12px;
    margin-left: auto;
    margin-right: 0;
    margin-top: 0.5em;
}

.card > .blog-information > p {
    line-height: 1.2;
}

.card-content {
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
}

.card-content p {
    text-align: center;
    padding: 17px 0;
    font-size: 15px;
    color: #997844;
}

.arrow {
    display:inline-block;
    background: white;
    padding:10px 30px 10px 20px;
    text-align:center;
    color: white;
    margin:5px;
    border:1px solid;
    cursor:pointer;
    position: relative;
    text-decoration: none;
}

.arrow::after {
    content: "";
    display: block;
    position: absolute;
    top: calc(50% - 5px);
    right: 20px;
    width: 6px;
    height: 6px;
    border: 2px solid;
    border-color: transparent transparent #997844 #997844;
    transform: rotate(-135deg);
    transition: .3s;
}

.pagination { 
    text-align: center;
    margin-top: 3em; 
}

.pagination a {
    padding: 6px 12px;
    margin: 0 3px;
    text-decoration: none;
    border: 1px solid #997844;
    background-color: #fffdfa;
    color: #997844;
}

.pagination .current {
    padding: 6px 12px;
    margin: 0 3px;
    background: #997844;
    color: #fffdfa;
    font-weight: bold;
}

.article-meta {
    display: flex;
    color: #666;
    margin-bottom: 20px;
    gap: 1em;
    justify-content: center;
    align-items: center;
}

.article-meta > p {
    border: 1px solid #999;
    border-radius: 25px;
    padding: 0.5em 1em;
    background-color: #fffdfa;
}

.thumbnail { width: 100%; max-width: 400px; margin-bottom: 20px; }

.thumbnail-big {
    display: flex;
    width: 50%;
    margin: 0 auto;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.back {
    display: flex;
    text-decoration: none;
    color: white;
    border: solid 2px #918776;
    padding: 15px;
    border-radius: 20px;
    background-color: #b1a58e;
    font-size: 16px;
    width: 200px;
    height: 25px;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    margin-top: 3em;
    margin-bottom: 20px;
}

.article-body {
    border-radius: 15px;
    background-color: #fffdfa;
    width: 40%;
    padding: 3em 5em;
    margin: 0 auto;
    margin-top: 2em;
    line-height: 1.7;
    color: #222;
}

/* ↓ブログ本文内の文字の見た目調整↓ */
.article-body h2 {
    font-size: 1.7em;
    font-weight: 600;
}

.article-body h3 {
    font-size: 1.35em;
    font-weight: 500;
}

.article-body em {
    font-style: italic;
}

.article-body strong {
    font-weight: bold;
}

.article-body ul {
    list-style: disc;
    margin-left: 1.5em;
}

.article-body ul > li > ul {
    list-style: circle;
}

.article-body ol {
    list-style: decimal;
    margin-left: 1.5em;
}

.article-body blockquote {
    margin: 1em 0;
    margin-left: 3em;
    font-style: italic;
    background-color: #f1f1f1;
    border-left: 5px solid #bd924d;
    line-height: 2;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.article-body blockquote > p {
    margin-left: 0.5em;
    color: #777;
    font-size: large;
}

.article-body table {
    border: 2px solid #333;
    margin: 1em 0;
}

.article-body thead tr th, 
.article-body tbody tr td {
    border: 1px solid #333;  
    padding: 0.5em; 
}

.article-body thead tr th {
    font-weight: bold;
    background-color: #e9e9e9;
    border-bottom: 2px solid #333;
}

.article-body a {
    color: #555;
}