/* 背景設定 */
body {
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #333;
  background-image: url("../images/minshaka/background.png");
  background-size: 100% auto;     /* 横幅いっぱい、高さは比率維持 */
  background-repeat: repeat-y;   /* 縦方向に繰り返す */
  background-position: top center;
}

/* ヘッダー */
#header {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
}
#header img {
  height: 50px;
}

/* メイン */
#main {
  padding: 120px 0px 0px;
  max-width: 800px;
  width: 70%;
  margin: 0 auto;
}

/* ロゴ大表示 */
.logo {
  text-align: center;
  margin-top: 5%;
  margin-bottom: 40px;
}
.logo img {
  width: 80%;
  max-width: 500px;
}

.cards, .articles {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.discription {
    color: #eee;
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    font-size: 1.5rem;
}
.cards.visible, .articles.visible {
  opacity: 1;
  transform: translateY(0);
}

.concept{
    font-family: noto-serif-jp, serif;
    font-size: 2.5rem;
    margin: 50px auto 80px;
    padding-left: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1s ease;
}

.discription-text {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 1s ease;
}
.concept.visible, .discription-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* カード */
.card {
  width: 80%;
  max-width: 600px;
  background: #eee; /* #CD470Bベースの透過 */
  border-radius: 5px;
  padding: 20px 30px;
  margin: 20px auto;
  text-align: center;
}

.card img {
  width: 60%;
  margin-bottom: 15px;
}

.card-text {
  padding: 0 20px;
}

/* SNSボタン */
.sns-links {
  display: flex;
  gap: 15px;
  margin: 0 auto;
  justify-content: center;
}
.sns-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  color: #CD470B;
  background: #FEF2AE;
  transition: 0.3s;
}
.sns-btn:hover {
  opacity: 0.8;
}

/* 記事一覧 */
.articles h2 {
  margin: 40px 0 20px;
  font-size: 1.8em;
  color: #EEE;
  text-align: center;
}

.article-card {
  max-width: 600px;
  background: rgba(0,0,0,0.6);
  border-radius: 16px;
  display: flex;
  margin: 0px auto;
  padding: 20px;
  transition: transform 0.3s;
}
.article-card:hover {
  transform: scale(1.02);
}
.article-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: row;
}
.article-card img {
  width: 200px;
  margin: auto 0;
  object-fit: cover;
  border-radius: 5px;
}
.article-content {
  padding: 15px;
}
.article-content h3 {
  margin: 0;
  color: #FEF2AE;
}
.article-content .date {
  font-size: 0.9em;
  color: #EEE;
}
.article-content .summary {
  margin: 10px 0;
  color: #EEE;
}
.article-content .tags {
  font-size: 0.8em;
  color: #CD470B;
}

@media (max-width: 768px) {
  .article-card {
    padding: 10px;
  }
  .article-content{
    padding: 10px 0px 10px 15px;
  }
  .article-card img {
    margin: 0;
    width: 40%;
  }
}


#footer {
  background-color: #111;
  color: #fff;
  padding: 30px 20px;
  margin-top: 50px;
}

.footer-container {
  margin: 0 auto;
  text-align: center;
}

.footer-copy {
  font-size: 13px;
  color: #aaa;
}

/* ===== スマホ対応全体 ===== */
@media (max-width: 768px) {

  /* ヘッダー・ナビ */
  #header {
    padding: 0 15px;
    height: 60px;
  }

  #header img {
    height: 30px;
  }

  #main {
    padding: 70px 0px 0px;
  }

  .logo {
    margin-top: 50%;
    margin-bottom: 20px;
  }

  .discription {
    color: #eee;
    text-align: center;
    padding: 0 20px 10px;
    margin: 0 auto;
    font-size: 1rem;
  }

  .discription h1{
    font-size: 100%;
    margin: 40px 0 40px;
  }

  .card-text {
    padding: 0;
  }

  h3 {
    font-size: 1rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  p {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .article-content .summary {
    margin: 10px 0;
    font-size: 0.8rem;
}

  /* ===== footer ===== */
  .footer-copy {
    font-size: 12px;
  }
}