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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/


.site-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(45deg, #0073aa, #00a98f);
  padding: 8px 20px;
  border-radius: 6px;
}

.site-title a {
  color: inherit;           /* 元の文字色を引き継ぐ */
  text-decoration: none;    /* 下線を消す */
}

.site-title a:hover {
  opacity: 0.8;              /* ホバー時の軽いフェード効果 */
}

.event-row-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.95em;
}

.event-row span {
  white-space: nowrap;
}

.event-title a {
  text-decoration: none;
  color: #0073aa;
  font-weight: bold;
}

.event-title a:hover {
  text-decoration: underline;
}

.no-events {
  margin-top: 24px;
  text-align: center;
  font-size: 1.1em;
  color: #999;
}

.event-row span {
  white-space: nowrap;
  font-size: 0.95em;
  color: #333;
}

.event-region {
  color: #0073aa;
  font-weight: bold;
}

.event-info {
  margin-bottom: 12px;
  font-size: 1em;
  line-height: 1.6;
}

.event-info strong {
  font-weight: bold;
  color: #333;
}

.event-detail {
  position: relative;
  padding-top: 40px;
}

.event-region-label {
  position: absolute;
  top: 0;
  left: 0;
  background: #eee;
  color: #555;
  font-size: 0.85em;
  padding: 4px 8px;
  border-radius: 0 0 6px 0;
  font-weight: bold;
}

.event-block {
  margin-top: 32px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
}

.event-block h2 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0073aa;
  margin-bottom: 8px;
  border-left: 4px solid #0073aa;
  padding-left: 8px;
}

.event-text {
  line-height: 1.8;          /* 行間を広げる */
  font-size: 1em;
  font-family: "Noto Sans JP", sans-serif; /* 日本語に最適なフォント */
  text-indent: 0;
  margin-left: 0;
  padding-left: 0;
  color: #333;
  background: #f9f9f9;
  padding: 12px 16px;
  border-radius: 6px;
  white-space: pre-line;
  /* white-space: pre-wrap;     改行とスペースをそのまま表示 */
}

.edit-button-area {
  margin-top: 32px;
  /*text-align: center;*/
}

.button-group {
  display: flex;
  justify-content: flex-start; /* ← 左詰め */
  flex-wrap: wrap;
}

.edit-button,
.delete-button {
  display: inline-block;       /* ← ブロックからインラインへ */
  padding: 8px 16px;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  width: auto;                 /* ← 幅を自動に */
  min-width: 100px;            /* ← 最低幅だけ指定（任意） */
}

.edit-button {
  background: #0073aa;
  color: #fff;
}

.edit-button:hover {
  background: #005a8c;
}

.delete-button {
  background: #c00;
  color: #fff;
}

.delete-button:hover {
  background: #900;
}

.event-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 20px;
}

.event-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.event-date-label {
  background: #0073aa;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.85em;
  border-radius: 4px;
}

.event-region-label {
  background: #eee;
  color: #333;
  padding: 4px 8px;
  font-size: 0.85em;
  border-radius: 4px;
}

.event-region-line {
  font-size: 0.9em;
  font-weight: bold;
  color: #444;
  margin: 6px 0;
  background: #eef6ff;  /* 薄いブルーで視覚的に区切り */
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}


.event-title {
  font-size: 1.1em;
  margin: 0 0 8px;
}

.event-title a {
  text-decoration: none;
  color: #0073aa;
  font-weight: bold;
}

.event-title a:hover {
  text-decoration: underline;
}

.event-organizer {
  font-size: 0.9em;
  color: #666;
}

.no-events {
  margin-top: 24px;
  text-align: center;
  font-size: 1.1em;
  color: #999;
}

.region-select {
  margin-bottom: 24px;
  text-align: center;
}

.region-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #0073aa;
  margin-bottom: 12px;
}

.region-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.region-btn {
  display: inline-block;
  background: #f4f4f4;
  color: #333;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9em;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.region-btn:hover {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.region-btn.active {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #0073aa;
  color: #fff;
  border-radius: 50%;
  font-size: 28px;
  text-align: center;
  line-height: 56px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}
.fab:hover {
  background: #005a8c;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-new-post {
  background: #0073aa;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
}
.btn-new-post:hover {
  background: #005a8c;
}

.event-meta-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.event-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-meta-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #ccc;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.event-meta-list li:last-child {
  border-bottom: none;
}

.meta-label {
  font-weight: bold;
  margin-right: 8px;
  min-width: 120px;
  display: inline-block;
  color: #0073aa;
}

.event-image {
  margin: 16px 0 24px;
  text-align: center;
}

.event-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-image-preview img {
  max-width: 300px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.hero-buttons .btn-main {
  display: inline-block;
  background: #0073aa;
  color: #fff;
  padding: 12px 24px;
  margin: 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.region-btn {
  display: inline-block;
  background: #f0f0f0;
  padding: 10px 16px;
  margin: 6px;
  border-radius: 4px;
  text-decoration: none;
}

.event-location {
  line-height: 1.6;
  white-space: pre-wrap; /* 改行(\n)も保持して表示 */
  word-break: break-word;
}

.event-location a {
  display: inline; /* ← inline-blockをやめる */
  padding: 4px 8px;
  margin-left: 6px; /* テキストとの間隔だけ確保 */
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.event-location a:hover {
  background-color: #005f8d;
}

.event-card {
  display: block;
  padding: 1em;
  border-bottom: 1px solid #ddd;
}

.event-card-content {
  margin-bottom: 0.5em;
}

.event-card-thumb {
  text-align: center;
  margin-top: 0.5em;
}

.event-card-thumb img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.event-type-label {
  display: inline-block;
  font-size: 0.85em;
  font-weight: bold;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  margin-bottom: 0.5em;
}

.event-type-topic {
  background-color: #007bff;
  color: #fff;
}

.event-type-practice {
  background-color: #28a745;
  color: #fff;
}

.hero-message {
  text-align: center;
  padding: 1.5em 1em;
  background: #f8f9fa; /* やや明るめの背景で軽さを演出 */
  color: #333;
}

.hero-message h1 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.6em;
  word-break: keep-all;
}

.hero-message p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: #555;
}

/* タブレット以上で少し拡大 */
@media (min-width: 768px) {
  .hero-message h1 {
    font-size: 1.6rem;
  }
  .hero-message p {
    font-size: 1.2rem;
  }
}

.meta-label {
  font-weight: bold;
  margin-right: 4px;
}

.meta-value {
  white-space: pre-wrap;       /* 改行保持 */
  word-break: break-word;      /* 長い単語やURLも折り返し */
  overflow-wrap: anywhere;
}

.meta-value a {
  display: inline;
  padding: 4px 8px;
  margin-left: 6px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.meta-value a:hover {
  background-color: #005f8d;
}

.site-footer {
  background-color: #f5f5f5;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #333;
}

.footer-contact a {
  color: #0073aa;
  text-decoration: underline;
}


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

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

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