@charset "utf-8";

body {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #666;
  word-break: break-all; 
  word-wrap: break-word;
  overflow-wrap: break-word;
  background-color: #f7f6fb;
}

h5, h6 {
  margin: 0; /* Add to Modern CSS Reset */
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

a:link,
a:visited {
  color: #666;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  opacity: 0.6;
  transition: 0.6s;
}

.pad-5 {
  padding: 5px;
}

.pad-10 {
  padding: 10px;
}

.pad-15 {
  padding: 15px;
}

.pad-20 {
  padding: 20px;
}

.pb-5 {
  padding-bottom: 5px;
}

.pb-10 {
  padding-bottom: 10px;
}

.pb-15 {
  padding-bottom: 15px;
}

.pb-20 {
  padding-bottom: 20px;
}

.mt-5 {
  margin-top: 5px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-5 {
  margin-bottom: 5px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.text-center {
  text-align: center;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

header {
  display: block;
  background-color: #cce5ff;
  text-align: center;
  line-height: 1.6;
}

header h2 {
  font-size: 1.3rem;
}

header h2 a {
  color: #666;
  text-decoration: none;
}

header h2 a:hover {
  text-decoration: underline;
}

footer {
  display: block;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 10px;
}

.flex-layout {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 10px;
}

.contents-img {
  flex-basis: 30%;
  width: 30%;
  max-width: 100%;
}

.contents-img img {
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.article-contents {
  max-width: 100%;
  margin-bottom: 30px;
}

.single-contents {
  max-width: 100%;
}

.article-contents h4,
.single-contents h4 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.article-contents h4 a,
.single-contents h4 a {
  color: #666;
  text-decoration: none;
}

.article-contents h4 a:hover,
.single-contents h4 a:hover {
  text-decoration: underline;
}

.article-contents h5,
.single-contents h5 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.article-contents h5 a,
.single-contents h5 a {
  color: #666;
  text-decoration: none;
}

.article-contents h5 a:hover,
.single-contents h5 a:hover {
  text-decoration: underline;
}

.article-contents pre,
.single-contents pre {
  overflow: auto;
}

.single-contents p {
  font-size: 1.0rem;
}

.single-contents img {
  margin-top: 10px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.pagination a {
  display: inline-block;
  border: 1px solid #ccc;
  margin-right: 5px;
  padding: 10px;
}

.pagination a:hover {
  opacity: 0.6;
  transition: 0.6s;
}

.pagination a:active {
  background-color: #999;
  transition: none;
}

/* ラップトップ用 */
@media only screen and (max-width: 1030px) {
  .contents-img img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
  }
}

/* タブレット用 */
@media only screen and (max-width: 768px) {
  .contents-img img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
  }
}

/* スマホ用 */
@media only screen and (max-width: 479px) {
  .contents-img img {
    max-width: 100%;
    height: 100px;
    object-fit: cover;
  }
}

/* スマホ用 */
@media only screen and (max-width: 380px) {

}

/* スマホ用 */
@media only screen and (max-width: 330px) {

}