@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* ▼ グローバルナビゲーションのボタン配置 */
.subject-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  justify-content: center;
}
.subject-buttons a {
  display: inline-block;
  padding: 10px 16px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.subject-buttons a:hover {
  background-color: #005177;
}

/* ▼ 記事ブロックの装飾 */
.article {
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 8px;
  background-color: #f9f9f9;
}
.article h2 {
  font-size: 1.4em;
  margin-bottom: 12px;
  color: #333;
}
.article p {
  line-height: 1.8;
  color: #555;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/*1023px以下*/
@media screen and (max-width: 1023px){
  .subject-buttons {
    gap: 8px;
  }
  .subject-buttons a {
    padding: 8px 12px;
    font-size: 0.95em;
  }
  .article {
    padding: 16px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .subject-buttons {
    flex-direction: column;
    align-items: center;
  }
  .subject-buttons a {
    width: 80%;
    text-align: center;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .subject-buttons a {
    font-size: 0.9em;
    padding: 6px 10px;
  }
  .article h2 {
    font-size: 1.2em;
  }
  .article p {
    font-size: 0.95em;
  }
}

.year-navigation .nav-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.year-navigation .nav-button:hover {
  background-color: #ddd;
}