@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
.entry-title{
    margin: 0;
    padding: 0;
}

.entry-category{
	display: none;
}

.site-name-text {
    font-size: 50px;
    font-weight: bold; /* 太字にする */
    color: white; /* テキストの色を白に */
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,  
        -1px 1px 0 #000,  
        1px 1px 0 #000; /* 黒の縁取り */
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

.custom-calendar {
  margin: 1em 0;
}
.custom-calendar h3 {
  text-align: center;
}
.calendar-table {
  width: 100%;
  border-collapse: collapse;
}
.calendar-table th,
.calendar-table td {
  border: 1px solid #ccc;
  text-align: center;
  height: 40px;
}
.has-post {
  background-color: #fffae5;
}

.calendar-table td a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.calendar-table td.has-post a:hover {
  background-color: #f0f0f0;
}

@media (max-width: 600px) {
  .calendar-table th,
  .calendar-table td {
    font-size: 12px;
    padding: 4px;
    height: 30px;
  }

  .custom-calendar h3 {
    font-size: 16px;
  }

  .calendar-table {
    font-size: 12px;
  }

  .calendar-table td a {
    padding: 4px 2px;
  }
}

.calendar-nav {
  display: flex;
  justify-content: space-between; /* 左右に前月・次月 */
  align-items: center;            /* 縦中央揃え */
  gap: 10px;
  margin-bottom: 10px;
  white-space: nowrap;            /* 改行させずに1行で表示 */
}

.calendar-nav a {
  text-decoration: none;
  color: #0073aa;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.calendar-nav a:hover {
  background-color: #e2e8f0;
}

.calendar-nav h3 {
  margin: 0;
  flex-grow: 1;                  /* 中央の年月表示が中央に */
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
}

/* スマホで幅狭い時の対応 */
@media screen and (max-width: 480px) {
  .calendar-nav {
    flex-wrap: nowrap;          /* 改行させず */
    justify-content: space-between;
  }
  
  .calendar-nav a {
    padding: 3px 6px;
    font-size: 14px;
  }

  .calendar-nav h3 {
    font-size: 14px;
  }
}