@charset "UTF-8";

  * {
    box-sizing: border-box;
  }
  body {
    margin: 0;
    padding: 0;
  }
  #content {
    width: 840px;
    min-height: calc(100vh - 471px);
    margin: 0px auto;
    margin-top: -50px;
  }
  main {
    width: 100%;
  }
/* page.php のmainスタイルシート 250401w4403*/
/* post-cover-image */
.post-cover-image {
  width: 100%;
  height: 400px;
  margin-top: 40px;
}
.post-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* page-post */
 article.page-post {

  }
  .page-post .h2_meta {
    display: flex;
    flex-flow: space-between;
    border-bottom: #aaa 2px solid;
  }
  .h2_meta h2 {
    width: 60%;
    float: left;
    font-size: 1.2em;
    color: #333;
    margin: 0;
    /* 1行表示 */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .page-post-meta {
    width: 40%;
    float: right;
    text-align: right;
    color: #666;
    font-size: 0.9em;
    text-align: right;
    padding-right: 10px;
  }
  .page-post-meta span {
    margin-left: 10px;
  }
  .page-post-content {
    padding: 20px;
    line-height: 1.4;
  }
  .page-post-content img {
    width: 50%;
    max-width: 100%;
    height: auto;
    float: left;
    margin-right: 20px;
    margin-bottom: 8px;
  }

/* 必要であれば p タグのスタイルも調整 */
.post-content p {
  margin-bottom: 1em;
  /* 段落間のマージン */
  line-height: 1.6;
  /* 行間 */
}
/* page-upload */
article.page-attachments {
    border: #aaa 2px solid;
    border-radius: 7px;
    margin: 20px;
    padding: 0 20px 10px 50px;
    margin-bottom: 20px;
  }
  h3.attachments-title {
    font-size: 1.1em;
    margin-bottom: 10px;
    margin-left: 0;
  }
  ul.attachments-list {
    list-style: none;
    padding: 0;
  }
    .attachments-list a {
      display: inline-flex;
      align-items: center;
      gap: 0.5em;
      /* アイコンとテキストの間隔 */
    }
  
    .file-icon {
      width: 30px;
      /* アイコンの幅 */
      height: auto;
      /* 高さは自動調整 */
      vertical-align: middle;
      /* テキストとの垂直位置を中央に */
    }
  ul.attachments-list li a {
    display: block;
    color: #333;
    text-decoration: none;
  }
  ul.attachments-list li a:hover {
    color: #007bff;
  }
  ul.attachments-list span {
  color: #007bff;
  font-size: 1.3em;
  }

/* page-gallery */
article.page-gallery {
  margin: 50px 0;
}
h3.gallery-title {
  font-size: 1.1em;
  margin: 0;
}
ul.post-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  margin: 0 10px;
  list-style: none;
}
ul.post-gallery li {
  width: calc (20% - 50px);
  height: 100px;
  overflow: hidden;
  border: 1px solid #ddd;
}
.post-gallery a {
  display: block;
  width: 100%;
  height: 100%;
}
.post-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}
.post-gallery a:hover img {
  transform: scale(1.05);
}


/* 投稿ナビゲーション */
#content {
  display: block;
  position: relative;
}
.page_nav {
  clear: both;
  width: 1000px;
  margin: 0 auto;
  margin: 50px auto;
}
.post-navigation {
  clear: both;
  margin: 0;
  padding: 1em 0;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
}
.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
  max-width: 48%;
  /* 少し隙間を空ける */
}
.post-navigation .nav-previous {
  text-align: right;
}
.post-navigation .nav-next {
  text-align: left;
}
.post-navigation a {
  text-decoration: none;
  color: #333;
  display: block;
  /* 1ぐ王表示 */
  overflow: hidden; /*はみ出した部分を非表示*/
  white-space: nowrap; /*テキスト折り返しなし*/
  text-overflow: ellipsis; /*省略して「…」をつける*/
}
.post-navigation a:hover {
  color: #007bff;
}
.post-navigation .meta-nav {
  display: block;
  font-size: 0.85em;
  color: #777;
  margin-bottom: 0.3em;
}
.post-navigation .post-title {
  display: block;
  font-weight: bold;
  line-height: 1.3;
}


@media screen and (max-width: 1000px) {
  .category-list {
    display: none;
  }
	.page_nav {
		width:90%;
		margin: 0 auto;
	}
  .post-cover-image {
    height: 300px;
    margin-bottom: 70px;
  }
}
@media screen and (max-width: 1000px) {
	.page_nav {
		width:95px;
		margin: 0 auto;
  }
}
@media screen and (max-width: 1000px) {
	.page_nav {
		width:95%;
		margin: 0 auto;
	}
}

/* 新着情報 */
.category-list li.button {
  width: 100%;
  display: inline-block;
  background-color: blue;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  margin: 3px;
  cursor: pointer;
}