@charset "utf-8";

main {
  background-color: #f4f9f4;
}

article {
  max-width: 600px;
  margin: auto;
}

section h2 {
    color: #2e4d3c;
    font-size: 1.5em;
    padding: 40px 5% 50px 5%;
}

.day2 {
    font-size: 1em;
    color: #c1d0c7;
    text-align: center;
}

section {
    background-color: white;
    border: 1px solid #c9d8c2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
    margin: 0px 5px 0px 5px;
}

section p{
  font-size: 1em;
  text-align: left;
  width: 95%;
  margin: auto;
  padding: 0px 0px 50px 0px;
}

section img,section video{
  width: 95%;
}

section video{
  border: 1px solid #000;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  max-width: 80%;
  margin: 40px auto;
  border-top: 1px solid #ccc;
  padding-top: 20px;
  font-size: 1rem;
}

.prev-article,
.next-article {
  color: #2e4d3c;
  text-decoration: none;
}

.prev-article:hover,
.next-article:hover {
  color: #6da06d;
}

/* 関連記事 */
.related-list {
  max-width: 560px;
  margin: 30px 10px;
  background-color: #cfe3d8;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 40px 20px;
}

.related-list h3 {
  font-size: 1.5em;
  margin-bottom: 50px;
  color: #2e4d3c;
  text-align: center;
}

.related-list ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 2fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}

/* 各記事カード */
.related-list li {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.related-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.related-list a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* サムネイル画像 */
.related-list img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  padding: 10px 10px 0px 10px;
  border-radius: 20px;
}

/* タイトルと日付 */
.related-list .sidebar-title {
  font-size: 1em;
  font-weight: 600;
  margin: 12px;
  color: #1e3d31;
  line-height: 1.4;
}

.related-list .sidebar-date {
  font-size: 0.8em;
  margin: 0 12px 12px;
  color: #7c9a91;
}