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

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

body.home .main {
  padding-top: 0 !important;
}

/* half-section だけ margin を個別に設定し、既存 section の margin を打ち消す */
section.half-section {
  margin: 0 !important; /* section に既にある margin: 2rem 0; をリセット */
  margin-bottom: 2rem !important;  /* 必要に応じて個別にマージンを指定（例：下にだけ余白） */
  margin-top: 10px !important;  /* 必要に応じて個別にマージンを指定（例：下にだけ余白） */
}

/* イベントと練習試合横並び */
.double-section-container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

/* 各セクションの幅を均等に */
.double-section-container .half-section {
  flex: 1;
  min-width: 0;
}

/* レスポンシブ対応：1023px以下は縦並び */
@media screen and (max-width: 1023px) {
  .double-section-container {
    flex-direction: column;
	gap: 0px;
  }
  
  section.half-section {
  margin-bottom: 0.5rem !important;  /* 必要に応じて個別にマージンを指定（例：下にだけ余白） */
  }

  .double-section-container .half-section {
    width: 100%;
  }
}
/* イベントと練習試合横並びここまで */


/* MVスライド */
.mv-slider-wrapper {
  background-color :#01b4ed;
  position: relative;
  width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
  left: 50%;
  margin-left: -50vw;
  margin-bottom: 0px;
}

.mv-slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.mv-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mv-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* PC：750x400px */
@media (min-width: 769px) {
	
.mv-slider-wrapper {
  transform: translateY(-30px);
  }
	
  .mv-slide {
    flex: 0 0 750px;
    width: 750px;
    height: 400px;
  }
}

/* SP：375x200px */
@media (max-width: 768px) {
  .mv-slide {
    flex: 0 0 375px;
    width: 375px;
    height: 200px;
  }
}

.mv-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 24px;
  padding: 12px 14px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
}

.mv-slider-btn.prev { left: 10px; }
.mv-slider-btn.next { right: 10px; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
/* MVスライド */



/* アイコンの調整 */
.youtube-section-title i {
  font-size: 1.3em; /* アイコンのサイズを適切に */
  margin-right: 80px; /* アイコンとテキストの間隔を適度に広げる */
}

/* YouTube動画セクションのレイアウト */
.youtube-video-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* 余白調整に対応 */
  gap: 30px; /* 動画間の余白を増やす */
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 32px; /* 左右の余白を調整 */
  box-sizing: border-box;
}

/* 動画のサイズをコラムのサムネイルと統一 */
.youtube-video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* iframeの調整 */
.youtube-video iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* 親要素のオーバーフローを防止 */
.section-content {
  overflow: visible !important;
}

/* ブラウザ幅が1024px以下で2列 */
@media (max-width: 1024px) {
  .youtube-video-container {
    grid-template-columns: repeat(2, minmax(320px, 1fr)); /* 2列 */
    max-width: 100vw;
    padding: 0 10px; /* タブレット時も適度な余白 */
  }
}

/* ブラウザ幅が768px以下で1列 */
@media (max-width: 768px) {
  .youtube-video-container {
    grid-template-columns: repeat(1, minmax(320px, 1fr)); /* 1列 */
    max-width: 100vw;
    padding: 0 10px; /* スマホ時も余白を適切に */
  }
}



/* フッターのサイトマップコンテナ */
.footer-sitemap-container {
  display: flex;
  justify-content: space-between; /* 均等に配置 */
  flex-wrap: wrap; /* 狭い画面では折り返し */
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

/* 各カラムのスタイル */
.footer-sitemap-column {
  flex: 1; /* 均等幅 */
  min-width: 200px; /* 幅が狭くなりすぎないように設定 */
}

/* 見出しデザイン */
.footer-sitemap-column h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
  border-bottom: 2px solid #2196F3;
  padding-bottom: 5px;
}

/* リストデザイン */
.footer-sitemap-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-sitemap-column ul li {
  margin-bottom: 5px;
}

.footer-sitemap-column ul li a {
  text-decoration: none;
  color: #2196F3;
  transition: color 0.3s;
}

.footer-sitemap-column ul li a:hover {
  color: #FFC107;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .footer-sitemap-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-sitemap-column {
    width: 100%;
  }
}
/* フッターのサイトマップコンテナここまで */


.custom-tag-button {
    display: inline-block;
    background-color: #2196F3;
    color: #FFFFFF;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #1E88E5;
}

.custom-tag-button:hover {
    background-color: #1E88E5;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .custom-tag-button {
        font-size: 14px;
        padding: 10px 16px;
    }
}



/* バナー部分 */
/* バナー共通 */
.banner-container a {
  text-decoration: none;
  color: inherit;
}

#banner-section-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.banner-container {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.banner-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* LINEバナー専用 */
#line-banner-container {
  background-color: #FFFFFF;
  border: 5px solid #00A000;
}

#line-banner-content {
  display: flex;
  align-items: center;
  padding: 20px;
}

#line-banner-logo {
  width: 100px;
  height: auto;
  margin-right: 20px;
}

#line-banner-text {
  flex: 1;
  text-align: left;
}

.line-banner-title {
  font-size: 1.8rem;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1DB954;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.line-banner-desc {
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  color: #FFFFFF;
  background-color: #00B300;
}

.line-highlight {
  color: #FFE082;
  font-style: italic;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
}

#line-illustration {
  position: absolute;
  top: 0px;
  right: 20px;
  width: 120px;
  transform: rotate(15deg);
}

/* 試合情報バナー専用 */
#submission-banner-container {
  background-color: #FFA726;
}

#submission-banner-content {
  display: flex;
  align-items: center;
  padding: 20px;
}

#submission-banner-text {
  flex: 1;
  text-align: left;
  color: #FFFFFF;
  position: relative; /* 文字を明示的に上層にする */
  z-index: 2; /* 画像よりも上層に配置 */
}

.submission-banner-title {
  font-size: 1.8rem;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  margin-bottom: 10px;
}

.submission-banner-desc {
  font-size: 1rem;
  font-weight: bold;
}

#submission-banner-image {
  position: absolute; /* 必須: 文字の背面に配置するため */
  top: -50px;
  right: 10px;
  transform: rotate(-15deg);
  width: 250px;
  opacity: 0.3;
  z-index: 1; /* 文字よりも下層に配置 */
}

/* 横幅1150px以下の場合 */
@media (max-width: 1150px) {
  #banner-section-container {
    flex-direction: column;
    align-items: center;
  }

  .banner-container {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {

	#banner-section-container {
    gap: 10px;
    margin: 10px 0;
	}

  #line-banner-logo {
    width: 75px; 
    margin-right: 5px;
  }

  #line-illustration { 
    top: 9px;
    right: -10px;
    width: 65px;
  }

  .line-banner-title {
    font-size: 1.3rem;
  }

  .line-banner-desc {
    font-size: 0.8rem; 
    padding: 5px 5px;
  }

  #line-banner-content { 
    padding: 5px;
  }

  .submission-banner-title {
    font-size: 1.3rem;
  }
	
  .submission-banner-desc {
    font-size: 0.9rem;
	}

  #submission-banner-content { 
    padding: 0px 10px;
  }

  #submission-banner-image { 
    top: -30px;
    right: -30px;
    width: 180px;
  }
}
/* バナー部分ここまで */



/* 都道府県ボタン間のスペースを調整 */
.wp-block-buttons {
  display: flex;
  gap: 20px; /* ボタン間のスペースを広げる */
  flex-wrap: wrap; /* ボタンが折り返すように設定 */
}

/* 「インハイ3冠王のテニスCH！」のラベル全体のコンテナ */
.highlight-text-container {
  position: relative; /* 子要素の配置基準を作る */
  margin-bottom: 10px; /* 下部に余白を追加 */
}

/* インハイ3冠王の装飾 */
/* タグ風デザイン */
.highlight-text-title-inhigh {
  position: absolute; /* 親要素を基準に配置 */
  top: 0; /* 上方向に配置基準を設定 */
  left: -25px; /* 左方向にずらす */
  background-color: #FFAA00; /* ゴールド系の背景色 */
  color: #ffffff; /* テキストを白にして視認性を向上 */
  font-size: 0.9rem; /* コンパクトなサイズでタグらしさを演出 */
  font-weight: bold; /* 太字で強調 */
  padding: 5px 10px; /* タグの内側の余白 */
  border-radius: 5px; /* 角を丸めて柔らかい印象に */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 軽い影を追加して立体感を演出 */
  transform: rotate(-18deg); /* 斜めに配置 */
}

/* スマホ用のスタイル */
@media (max-width: 768px) {
  .highlight-text-title-inhigh {
    font-size: 0.7rem; /* フォントサイズを小さくする */
    padding: 3px 8px; /* 内側の余白を小さくする */
    left: -15px; /* 左方向の位置を微調整 */
  }
}


/* 「後藤プロのテニスCH！」の装飾 */
.highlight-text {
  padding-left :15px;
  color: #2196F3;  
  font-weight: bold; /* 太字にする */
  text-decoration: none; /* リンクの下線を削除 */
  font-size :22px;
}




/* 試合情報投稿フォーム全体のデザイン */
#match-info-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* フォーム要素のデザイン */
.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.required-field {
    color: red;
    font-size: smaller;
    margin-left: 5px;
    vertical-align: top;
}

input[type="text"],
input[type="url"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
    font-size: 14px;
}

.time-input-group {
    display: flex;
    gap: 10px;
}

button[type="submit"] {
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #1e88e5;
}

/* 主催者名と同様チェックボックスのスタイル */
#same-as-organizer {
    margin-right: 8px;
}

/* 隠すためのスタイル（JSで制御） */
.hidden {
    display: none !important;
}

/* 種別の部分 */

/*フォームのデザインここまで */


/* 一覧のアイコン関連 */
.list-match-tag i,
.list-user-address i,
.list-subcategories-container i {
    margin-right: 5px; /* アイコンとテキストの間のスペース */
    color: #333; /* アイコンの色 */
	font-size: 1em;
}

.list-subcategories-container {
    display: flex; /* フレックスコンテナを設定 */
    align-items: center; /* アイテムを垂直方向の中央に配置 */
}


/* 一覧の住所部分＆タグ（主催者情報） */
.list-user-address, 
.list-match-tag {
    margin: 0.1em 0; /* 上下の余白を設定 */
    font-size: 0.9em; /* フォントサイズを設定 */
    color: #333; /* テキストカラーを設定 */
}


/* 試合情報ページのタイトル帯 */
header.article-header.entry-header {
    background-color: #ffffff; /* 背景色を白に設定 */
	padding: 0 ;
}

h1.entry-title[itemprop="headline"] {
    background-color: #2196F3; /* 背景色を #2196F3 に設定 */
    color: #ffffff; /* テキストカラーを白に設定して読みやすく */
    text-align: left; /* テキストを左寄せ */
    padding: 10px; /* 背景色が見えるように余白を追加 */
    margin-bottom: 20px; /* タイトルと次の要素の間に余白を追加 */
}


/* 更新日非表示 */
.date-tags{
	display:none;
}

/* 試合情報ページの表 */
.custom-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed;
}

.custom-info-table th, .custom-info-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    word-wrap: break-word; /* 長いテキストを折り返す */
}

.custom-info-table th {
    background-color: #f2f2f2;
    width: 20%; /* 左の枠の幅を20%に設定 */
}

.custom-info-table td {
    width: 80%; /* 右の枠の幅を80%に設定 */
}





/* エントリーカードのグレー背景 */
.entry-card-wrap {
	background-color:#F8F9FA;
}



/* モーダルウィンドウのスタイル */
.modal {
    display: none; /* 最初は非表示 */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0); /* フォールバックカラー */
    background-color: rgba(0,0,0,0.4); /* 背景の黒色を半透明に */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* モーダルのタイトルのスタイル */
.modal-title {
    font-size: 20px;
    padding: 5px 10px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
}
/* モーダルウィンドウのスタイル ここまで*/



.mobile-menu-buttons {
    background: #01B4ED;
}
	
.appeal-content {
    max-width: 1100px;
    background-color: rgba(255, 255, 255, 0.85);
    margin: auto;
    padding: 2em;
    text-align: center;
    border-radius: var(--cocoon-basic-border-radius);
    display: block;
}

.appeal-message {
    font-size: 18px; /* テキストの大きさ */
    font-weight: bold; /* フォントを太字に */
    text-align: center; /* 中央寄せ */
    margin: 20px 0; /* 上下の外側のスペース */
}


.content {
    margin-top: 10px;
}

.main-visual {
    background-image: url('http://kusato-tennis.com/wp-content/uploads/2024/03/MV-ver4-scaled.jpg'); /* 画像のパスを指定 */
    background-size: cover;
    background-position: center;
    position: relative;
    height: 500px; /* 望む高さに設定 */
    color: #ffffff; /* h1のテキストカラー */
    display: flex;
    align-items: center;
    justify-content: center;
	left: 50%; /* 左に50%移動させることで中央を基点にする */
	right: 50%; /* 右に50%移動させることで中央を基点にする */
	margin-left: -50vw; /* 左のマージンをマイナスの画面の半分にする */
  	margin-right: -50vw; /* 右のマージンをマイナスの画面の半分にする */
    width: 100vw;   /* 画面の全幅を使用 */
	margin-top: 0;
}

.main-visual h1 {
    z-index: 2;
    position: relative;
    font-size: 2.5rem; /* 望むフォントサイズに調整 */
    margin: 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* 背景色の透明度を調整してh1を見やすくする */
}



/* カレンダーのセルのスタイル */
table.match-calendar td {
    width: 100px;
    height: 100px;
    vertical-align: top;
    overflow-y: auto; /* 縦方向のオーバーフローをスクロールに設定 */
    position: relative;
    font-size: 12px;
    line-height: 1.2;
    padding: 5px;
}

/* 土曜日のヘッダーのテキストカラー */
table.match-calendar th:nth-child(7) {
    color: #2196F3; /* 青色 */
}

/* 日曜日のヘッダーのテキストカラー */
table.match-calendar th:nth-child(1) {
    color: #FFC107; /* 赤色 */
}

/* 土曜日の日付のテキストカラー */
table.match-calendar td:nth-child(7) .day-number {
    color: #2196F3; /* 青色 */
}

/* 日曜日の日付のテキストカラー */
table.match-calendar td:nth-child(1) .day-number {
    color: #FFC107; /* 赤色 */
}

/* 省略表示をやめて、セル内での折り返しを許容する */
.match-content-ellipsis {
    display: block;
    white-space: normal; /* 折り返しを許容する */
    overflow: visible;   /* オーバーフローの非表示を解除 */
    text-overflow: clip; /* 省略表示をやめる */
}

/* ツールチップのスタイル */
.match-content-ellipsis:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    left: 100%;
    top: 0;
    white-space: normal;
    width: 200px;
    z-index: 1;
}

.month-container {
    /* height: 100vh; */
    overflow: hidden;
}

body {
    overflow-x: hidden; /* 横スクロールを防ぐ */
}

.hidden {
    display: none;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-navigation {
    display: flex;
    gap: 10px;
}

.match-calendar .day-number {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.flex-container-newmatch {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 70%;
    gap: 1px;
	margin-bottom: 25px; /* 余白の量を20pxに設定 */
}

.match-details {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
}

.newmatch-matchdate {
    white-space: nowrap; /* 折り返しを防ぐ */
    text-overflow: ellipsis; /* 省略記号（...）を使用してテキストを切り捨てる */
    flex: 0 0 auto;   /*コンテンツとぴったりになる */
}

.newmatch-title {
    white-space: nowrap; /* 折り返しを防ぐ */
    text-overflow: ellipsis; /* 省略記号（...）を使用してテキストを切り捨てる */
    width: 30%; /* 各項目の最大幅を調整。必要に応じてこの値を変更 */
	flex: 1 1 auto;
	margin-left: 10px; /* タイトルと日付の間の余白 */
}

.newmatch-deadline {
    white-space: nowrap; /* 折り返しを防ぐ */
    font-size: 0.8em;
    margin-left: 10px; /* もし余白が余分にある場合、この値を0にしてみてください */
}

.tags-container {
    display: flex;      // フレックスボックスを使用
    gap: 5px;          // タグの間のスペース
    margin-bottom: 10px; // タグとその他の情報との間のスペース
}

.newmatch-tag {
    display: inline-block;
    background-color: #eee; 
    border-radius: 4px;
    padding: 2px 8px;
    margin: 0 5px 5px 0; 
    font-size: 0.8em;
	background-color: #23AC38;  /* 明るい緑に変更 */
    color: white; /* 文字色を白に変更 */
}

.topblog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;  // 投稿の間隔を均等に
    margin: -10px;  // 余白の調整
}

.topblog-post-item {
    box-sizing: border-box;
    width: calc(33.3333% - 20px);  // 3列表示を考慮
    padding: 10px;  // 内側の余白の追加
    overflow: hidden;
}

.topblog-post-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

.topblog-updated-date {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    margin-bottom: 10px;
}

.topblog-title {
    font-size: 16px;
    margin-top: 5px;
    font-weight: normal;
    line-height: 1.4;
}

.topblog-title a {
    color: #333;
    text-decoration: none;
}

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


/* 基本設定 */
body {
    background-color: #E5E7E9;
    color: #2E4052;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* ヘッダー */
header {
    background-color: #01B4ED;
    color: #FFFFFF;
    padding: 1rem 0;
    text-align: center;
}

.main {
  padding: 8px 29px;
}

/* リンクの色 */
a {
    color: #2196F3;
    transition: color 0.3s;
}

.category-header-link {
	color: #FFFFFF; /* 特別なリンクの色 */
	text-decoration: none; /* 下線をなし */
}

a:hover {
    color: #FFC107;
}

/* ボタン */
button, input[type="submit"], .wp-block-button .wp-block-button__link, .category-button {
    background-color: #01B4ED;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0px 4px 10px rgba(157, 196, 95, 0.2); /* 緑の影を追加 */
    text-decoration: none;
}

.moresiborikomi {
	margin-bottom :1rem;
	margin-top: 0; /* 上側のマージンを0に設定 */
}

/*一覧の見出し */
.category-header {
  background-color : #2196F3; 
  color:#FFFFFF;
/*  background-color: #F8F9FA; */
  font-size:25px;
  padding-left:15px;
  margin-bottom: 1.5rem; 
}

button:hover, input[type="submit"]:hover, .wp-block-button .wp-block-button__link:hover, .category-button:hover {
    background-color: #2196F3;
}

/* h2 見出しデザイン */
h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid ; 
	border-image: linear-gradient(to right, #28C443, #01B4ED) 1;
    margin: 0;
    padding: 0;
    background-color: #F8F9FA;
    border-radius: 5px 5px 0 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

/*h2::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 30px;
    height: 5px;
    background-color: #FFC107;
}*/

/* カード内のコンテンツの余白 */
.section-content {
    padding: 1rem 2rem;
}

/* h2 見出しの余白をオーバーライド */
.section h2 {
    margin: 0;
    padding: 1rem 2rem;
}

/* カードデザイン */
section {
    background-color: white;
    margin: 2rem 0;
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 検索ページのボタン */
.button-container {
    display: inline-block;  
    margin-right: 20px;     
    margin-bottom: 20px;  
}

.date-and-title-container {
  display: flex; /* フレックスボックスを有効化 */
  align-items: center; /* アイテムを中央揃えにする */
  margin-bottom: 1em; /* 下部の余白を設定 */
}

/* 具体的なセレクタで優先順位を上げる */
.entry-card .list-match-date {
    font-weight: bold !important;
}

/* 具体的なセレクタで優先順位を上げる */
.list-match-date {
  font-size:0.9em;
　font-weight:bold !important;
  color: #333; /* サイトのテキストカラーに合わせます */
  margin-right: 1em; /* 日付とタイトルの間に余白を設定 */
  display: inline-block; /* ブロック要素として扱いつつ、必要な分の幅しか取らないようにします */
  white-space: nowrap; /* 日付が長くなっても折り返さないように設定します */
}

.second-level-category, .third-level-category {
  display: inline-block;
  padding: 0.3em 0.8em; /* タグ内のパディングを小さくします */
  margin: 0.2em; /* タグ間のマージンを小さくします */
  background-color: #f5f5f5; /* 背景色 */
  border: 1px solid #ddd; /* 境界線の色 */
  border-radius: 2em; /* 角を丸くします */
  font-size: 0.75em; /* 文字サイズを小さくします */
  color: #555; /* 文字色 */
  text-decoration: none; /* テキストの下線を消去します */
  font-weight: normal; /* 文字の太さをノーマルにします */
}


.list-tags-container {
  display: flex; /* フレックスコンテナを設定 */
  flex-wrap: wrap; /* アイテムが次の行に折り返すことを許可 */
  align-items: center; /* アイテムを垂直方向の中央に配置 */
  margin-bottom: 10px; /* タグと日付の間のスペース */
}


/*タグに色を付けてた旧デザイン*/
/* .list-match-tag {
    display: inline-block;
    background-color: #eee; 
    border-radius: 4px;
    padding: 2px 8px;
    margin: 0 5px 5px 0; 
    font-size: 0.8em;
	background-color: #23AC38;  
    color: white; 
    } */

h2.match-entry-card-title {
	color : #2196F3 ;
    font-size: initial; /* ブラウザのデフォルトフォントサイズを使用 */
    border-bottom: none; /* ボーダーを削除 */
    margin: initial; /* マージンをブラウザのデフォルトに戻す */
    padding: initial; /* パディングをブラウザのデフォルトに戻す */
    background-color: transparent; /* 背景色を透明にする */
    border-radius: initial; /* 角の丸みをブラウザのデフォルトに戻す */
    box-shadow: none; /* ボックスシャドウを削除 */
	font-size: 19px; /* ブラウザのデフォルトフォントサイズを使用 */
}


/* より具体的なセレクタを使用して .entry-card-wrap の背景色を削除 */
html body .user-id-17.entry-card-wrap {
    background-color: transparent !important;
}

/* ユーザーID=18の投稿に対して .list-match-tag と .list-subcategories-container を非表示にする */
html body .user-id-17 .list-match-tag,
html body .user-id-17 .list-subcategories-container {
    display: none !important;
}






/* 色バリエーション */
.color-accent1 { background-color: #01B4ED; }
.color-accent2 { background-color: #FFC107; }
.color-accent3 { background-color: #23AC38; } /* h2に使っていた緑がこれ現在は青に変更 */
.color-accent4 { background-color: #2196F3; }

/*
ブルー系
#81D4FA: 明るいスカイブルーで、空の色を思わせます。基本の青色と非常に調和します。旭ヶ丘
#4FC3F7: ライトブルーで、清涼感があります。新体連愛知
#29B6F6: やや鮮やかなブルーで、活動的な印象を与えます。スポルト
#B3E5FC: 非常に明るいブルーで、穏やかな海の色を思わせます。マリン
#039BE5: 明るいセルリアンブルーで、ダイナミックな活動を連想させます。飯田テニス協会
#0277BD: 濃いブルーで、よりフォーマルな印象を与えます。WIM岐阜
グリーン系
#66BB6A: 明るいグリーンで、新鮮な葉の色です。名古屋グリーン
#AED581: 明るいライムグリーンで、フレッシュな印象を与えます。ウインズ
#9CCC65: ライトグリーンで、柔らかく穏やかな雰囲気を作ります。桑名協会
#388E3C: 深いグリーンで、豊かな自然を表現します。メイン
#2E7D32: ダークグリーンで、落ち着いた信頼感を与えます。若鳩インドア
イエロー・オレンジ系
#FFEB3B: 鮮やかなイエローで、エネルギッシュな雰囲気を作り出します。
#FFCA28: ゴールドイエローで、豊かさや価値を象徴します。キングダム
#FFA726: オレンジで、暖かみがあり、親しみやすい印象を与えます。OTC
レッド・ピンク系
#EF5350: 明るいレッドで、情熱や活動的なイメージを表現します。
#EC407A: 明るいピンクで、楽しく明るい印象を与えます。チェリー
ラベンダー紫
#AB47BC: ラベンダー紫で、創造性や独創性を象徴します。
*/

/* タグ（団体）ID 46に対する背景色をまとめて指定 */
/*.list-match-tag.tag-46,*/ .newmatch-tag.tag-46 { background-color: #66BB6A; } /* 名古屋グリーン */
/*.list-match-tag.tag-41,*/ .newmatch-tag.tag-41 { background-color: #81D4FA; } /* 旭ヶ丘 */
/*.list-match-tag.tag-48,*/ .newmatch-tag.tag-48 { background-color: #FFCA28; } /* テニスキングダム */
/*.list-match-tag.tag-40,*/ .newmatch-tag.tag-40 { background-color: #EC407A; } /* チェリー */
/*.list-match-tag.tag-42,*/ .newmatch-tag.tag-42 { background-color: #4FC3F7; } /* 新体連 */
/*.list-match-tag.tag-49,*/ .newmatch-tag.tag-49 { background-color: #2E7D32; } /* 若鳩インドア */
/*.list-match-tag.tag-50,*/ .newmatch-tag.tag-50 { background-color: #B3E5FC; } /* 衣浦マリンテニスクラブ */
/*.list-match-tag.tag-51,*/ .newmatch-tag.tag-51 { background-color: #9CCC65; } /* 桑名テニス協会 */
/*.list-match-tag.tag-53,*/ .newmatch-tag.tag-53 { background-color: #388E3C; } /* メインテニスクラブ */
/*.list-match-tag.tag-54,*/ .newmatch-tag.tag-54 { background-color: #29B6F6; } /* スポルトテニスアカデミー */
/*.list-match-tag.tag-65,*/ .newmatch-tag.tag-65 { background-color: #0277BD; } /* WIM岐阜 */
/*.list-match-tag.tag-67,*/ .newmatch-tag.tag-67 { background-color: #AED581; } /* ウインズ */
/*.list-match-tag.tag-68,*/ .newmatch-tag.tag-68 { background-color: #FFA726; } /* OTC */
/*.list-match-tag.tag-70,*/ .newmatch-tag.tag-70 { background-color: #039BE5; } /* E-fact */
/*.list-match-tag.tag-71,*/ .newmatch-tag.tag-71 { background-color: #039BE5; } /* 飯田テニス協会 */

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
		.appeal-message {
    font-size: 14px; /* テキストの大きさ */
	}

  /* カレンダーセルのサイズを小さく */
  table.match-calendar td {
      width: 80px;
      height: 80px;
  }

  /* topblogの表示を2列に */
  .topblog-post-item {
      width: calc(50% - 20px);
	  margin-bottom:40px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
	
  .video-wrapper {
    flex-direction: column;
   }
  .video-item iframe {
    height: 200px; /* 高さを調整 */
  }
	
	/* 「インハイ3冠王のテニスCH！」の装飾 */
   .highlight-text {
    font-size: 1.1rem; /* フォントサイズを大きく */
	}
	
	main.main, div.sidebar {
    padding: 0px 16px;
	}
	
	.appeal-message {
    font-size: 10px; /* テキストの大きさ */
	}
	
  /* カレンダーセルのサイズをさらに小さく */
  table.match-calendar td {
      width: 70px;
      height: 70px;
  }

  /* topblogの表示を1列に */
  .topblog-post-item {
      width: 100%;
  }

  .flex-container-newmatch {
	}
	
  .match-details {
      align-items: flex-start;
  }

  .newmatch-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	}
}

/* 480px以下 */
@media screen and (max-width: 480px){
	
	.category-button {
		font-size:0.9em;
		font-weight:bold;
        width: 90px; /* 任意の固定幅 */
        height: 37px; /* 任意の固定高さ */
        display: flex;
        align-items: center;
        justify-content: center;
    }
	
	/* モーダルのタイトルのスタイル */
    .modal-title {
    font-size: 14px;
    padding: 1px 8px;
   }
	
	/* 試合情報リンクの文字サイズ */
    .match-content-ellipsis {
    font-size: 14px !important; /* ここで重要度を上げる */
    }
	
	main.main, div.sidebar {
    padding: 0px 16px;
	}
	
	.category-header {/* 一覧のカテゴリ名 */
	font-size: 1.1em; /* フォントサイズを小さくする */
	}
	
    .category-15 .entry-card .entry-card-title,
	.category-15-parent .entry-card .entry-card-title {
    font-size: 14px; /* フォントサイズを小さくする */
    line-height: 1.5; /* 行の高さを調整 */
    height: 3.0em; /* 2行分の高さを設定 */
    overflow: hidden; /* 余分なテキストを隠す */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0 0 5px; /* タイトル下のマージンを設定 */
  }

  /* 開催日のスタイル */
  .category-15 .entry-card .list-match-date,
  .category-15-parent .entry-card .list-match-date {
    /* font-size: 14px; /* フォントサイズを小さくする */
    line-height: 1.2; /* 行の高さを調整 */
    margin: 0; /* 余分なマージンを削除 */
    padding: 0; /* 余分なパディングを削除 */
    height: 1.8em; /* 開催日の高さを設定 */
    display: flex;
    /*align-items: center; /* 中央揃え */
    /*justify-content: center; /* 中央揃え */
  }

  /* 本文抜粋の非表示 */
  .category-15 .entry-card .entry-card-snippet,
  .category-15-parent .entry-card .entry-card-snippet {
    display: none;
  }

  /* 更新日の非表示 */
  .category-15 .entry-card .entry-date,
  .category-15-parent .entry-card .entry-date,
  .category-15 .entry-card .post-update,
  .category-15-parent .entry-card .post-update {
    display: none;
  }

  /* エントリーカード全体の高さを調整する */
  .category-15 .entry-card,
  .category-15-parent .entry-card {
    height: auto; /* 高さを自動で調整し、内容に合わせる */
  } 
  
  /* サムネイル画像の高さに合わせてコンテンツエリアの高さを調整 */
  .category-15 .entry-card .entry-card-content,
  .category-15-parent .entry-card .entry-card-content {
    min-height: 100px; /* 開催日とタイトルの総高さに合わせて調整 */
  }
	
  /* カテゴリーID 15 に属するエントリーカードの時計アイコンを非表示にする */
  .category-15 .entry-card .fa-clock-o,
  .category-15-parent .entry-card .fa-clock-o {
  display: none;
  }
	
	
    .appeal-content {
        max-width: 90%; 
        padding: 1.5em;
    }

    .appeal-message {
        font-size: 8px; 
        margin: 10px 0;
    }
	
	 .month-container {
    overflow-x: auto;
  	}
	
    table.match-calendar td div {
		width: 100px;
    }

    table.match-calendar {
        width: 100%;
        overflow-x: scroll;
        display: block;
        white-space: nowrap;
    }

    /* カレンダーセルのサイズ調整 */
    table.match-calendar td {
        width: 100%;
        height: 80px; 
    }
	
	.match-content-ellipsis {
		font-size: 8px;
	}

    .search-box input[type="text"] {
        width: 70%; 
    }

    .flex-container-newmatch {
        max-width: 100%;
    }

    .newmatch-matchdate {
        font-size: 14px; 
    }

    .newmatch-title {
        font-size: 14px; /* 必要に応じて調整 */
        white-space: normal; /* nowrapを解除し、テキストを折り返す */
        overflow: visible; /* hiddenを解除し、折り返したテキストを表示する */
        text-overflow: clip; /* ellipsisを解除し、テキストを切り取らずに表示する */
    }

    .newmatch-deadline {
        display: none;
    }

    .newmatch-tag {
        font-size: 11px;
    }
	
	/* 検索ページのボタン */
	.button-container {
    margin-right: 10px;     
	}
	
	.second-level-category, .third-level-category {
    display: inline-block; /* インラインブロック要素として表示 */
    padding: 0.3em 0.6em; /* タグのパディングをさらに小さく調整 */
    margin: 0.1em; /* タグ間のマージンを小さく調整 */
    font-size: 0.7em; /* スマホ表示ではフォントサイズを小さく調整 */
    border-radius: 1em; /* 角の丸みを調整 */
  }
	
	.entry-card {
    position: relative; /* 絶対位置指定された子要素の基点となる */
  }
	
	  .date-and-title-container {
    align-items: flex-start; /* コンテナ内のアイテムを上部に揃えます */
  }

  .list-match-date {
    margin-right: 0; /* スマートフォン表示時は右の余白をなくします */
  }

  .list-tags-container {
    position: static;
    top: 0;
    left: 0;
    z-index: 30; /* 必要に応じて調整 */
  }
	
/*タグに色を付けてた旧デザイン*/
/*  .list-match-tag {
    font-size: 0.7em;
    padding: 5px; 
    margin: 0 5px 5px 0; 
    display: inline-block;
    border-radius: 4px;
    } */

h2.match-entry-card-title {
	 font-size: 0.9em; /* 文字サイズ */
}
	

	

}
