/*
Theme Name: Adapted Sports
Theme URI: http://teamstudio-e.net
Description: Adapted Sports Theme.
Author: NPO Studio-E</a>
*/

/* コンテナ */
body {
	margin:0;
	padding:0;
}

div#container	{
	width: 760px;
	margin-right: auto;
	margin-left: auto;
	margin-top: 0;
	margin-bottom: 0;
	background-color:#FFF;
}

/* ヘッダー */
div#header h1	{font-size: 1.875em;
	margin: 0;
	float: left;
	margin-bottom: 4px}

div#header h1 a	{text-decoration: none;
	color: #000000}

div#header p#desc	{font-size: 0.75em;
	color: #444444;
	margin: 0;
	float: right;
	margin-top: 18px}

div#header	{border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 20px}

div#header img#image	{
	margin: 0px;
	border-width: 0px;
}

/* ホームアンカー */
div#a_home_url {
	display: inline;
	float:left;
	border-right: solid 1px #ffffff;
	margin-top: 8px;
	margin-bottom: 8px;
/*
	padding-top: 8px;
	padding-bottom: 8px;
*/
	padding-left: 15px;
	padding-right: 15px}
}
div#a_home_url a{
	color: #ffffff;
	text-decoration: none}
}
div#a_home_url a:hover	{color: #ffaa00}

/* ナビゲーションバー */
div#nav	{clear:both;
	width:100%}

div#header	{margin-bottom: 0}

div#nav ul	{background-color: #1c2887;
	padding: 8px 0;
	margin: 0 0 10px}

div#nav li a	{font-size: 0.75em;
	color: #ffffff;
	text-decoration: none}

div#nav li a:hover	{color: #ffaa00}
 
div#nav li	{display: inline;
	list-style-type: none;
	border-right: solid 1px #ffffff;
	padding-left: 15px;
	padding-right: 15px}


/* コンテンツ */
div#content	{
	width: 365px;
	float: left;
}

p#pagetitle	{font-size: 0.875em;
	font-weight: bold;
	color: #0c8bcd;
	border: dotted 1px #0c8bcd;
	text-align: center;
	padding: 10px 0;
	margin-top: 0}

#whatsnew {
	padding-left:10px;
	margin-bottom:3px;
	font-weight:bold;
}

/* 記事 */
div.post	{border: solid 1px #dc143c;
	padding: 15px;
	margin-bottom: 20px}

div.post h2	{background-color: #a3d2f2;
	background-image: url(titlebar.png);
	font-size: 1.0em;
	padding: 10px;
	margin: 0}

div.post h2 a	{text-decoration: none;
	color: #000000}

/* 固定ページのタイトル */
div.page div.post h2 {
	background-color: #a3d2f2;
	background-image: url(titlebar.png);
	font-size: 1.3em;
	padding: 10px;
	margin: 0
}

div.post p	{font-size: 0.875em;
	line-height: 1.6;
	margin-top: 10px}

p.postinfo	{color: #0c8bcd;
	text-align: right;
	margin: 20px 0 0;
	clear: both}

p.postinfo a	{color: #0c8bcd}


/* 記事内の画像 */
.aligncenter	{display: block;
	margin-left: auto;
	margin-right: auto}

div.post img	{border: none}

.alignleft	{float: left;
	margin-right: 10px;
	margin-bottom: 10px}

.alignright	{float: right;
	margin-left: 10px;
	margin-bottom: 10px}

.wp-caption	{border: solid 1px #aaaaaa;
	text-align: center;
	padding-top: 5px}


/* ページリンク */
span.oldpage	{float: left}

span.newpage	{float: right}

p.pagelink a	{font-size: 0.75em;
	color: #0c8bcd;}

p.pagelink	{overflow: hidden;
	width: 100%}


/* コメント */
#comments	{border: solid 1px #0c8bcd;
	padding: 0 18px;
	margin: 20px 0}

#comments h3	{font-size: 0.875em;
	border-bottom: solid 1px #0c8bcd;
	padding-bottom: 3px;
	margin-top: 20px}

#comments p	{font-size: 0.75em}

#comments p a	{color: #0c8bcd}

#comments input, #comments textarea
	{display: block}

#comments textarea	{width: 450px}

#comments .required	{color: #ff0000}

#comments code	{display: block;
	margin-top: 5px;
	font-size: smaller}

#comments ul	{margin: 0;
	padding: 0}

#comments li.compost	{list-style-type: none;
	border-bottom: dotted 1px #0c8bcd;
	margin-bottom: 20px;}

#comments p.cominfo	{text-align: right}

#comments #comfeed a	{background-image: url(feed-icon-12x12.png);
	background-repeat: no-repeat;
	background-position: 0 50%;
	padding-left: 17px;
	line-height: 1em;
	color: #000000;
	text-decoration: none}

#comments #comfeed	{background-color: #a3d2f2;
	padding: 8px;
	margin-top: 30px}

#comments #trurl	{background-color: #a3d2f2;
	padding: 8px;
	margin-bottom: 30px}


/* サイドバー */
div#sidebar	{width: 370px;
	float: right}

div#sidebar ul	{margin: 0;
	padding: 0;}

div#sidebar li	{list-style-type: none}

div#sidebar .widget	{
/*	background-color: #ff7f50;*/
	background-color: #ff7f50;
	padding: 16px;
	margin-bottom: 10px}

div#sidebar h2	{font-size: 0.75em;
	color: #ffffff;
	border-bottom: solid 1px #ffffff;
	padding-bottom: 8px;
	margin: 0 0 10px}

/* スポーツの種類 */
div#sidebar li.widget_text li a	{
	font-size: 20px;
	font-weight:bold;
	width: 328px;
	display: block;
	margin-bottom: 4px;
	background-image: url(catego.gif);
	background-repeat: no-repeat;
	padding: 5px 5px 5px 5px;
	text-decoration: none;
	color: black;
	cursor:hand;
}
div#sidebar li.widget_text li a:hover {
	background-image: url(catego2.gif);
	background-repeat: no-repeat;
}


/* カレンダー */
.widget_calendar h2	{display: none}

#wp-calendar	{font-size: 0.75em;
	color: #ffffff;
	width: 100%}

#wp-calendar a	{color: #ffffff}

#wp-calendar td, #wp-calendar th
	{text-align: center}

#wp-calendar caption	{font-weight: bold;
	text-align: left;
	border-bottom: solid 1px #ffffff;
	padding-bottom: 8px;
	margin-bottom: 8px}

#wp-calendar #prev	{text-align: left;
	padding-top: 3px}

#wp-calendar #next	{text-align: right;
	padding-top: 3px}

/* フィード */
p.feed	{font-size: 0.75em;
	font-family: Verdana, Helvetica, sans-serif;
	border: solid 1px #0c8bcd;
	padding: 5px;
	margin: 25px 0}

p.feed a	{color: #444444;
	text-decoration: none}

p.feed img	{vertical-align: middle;
	margin-right: 8px}

/* フッター */
div#footer	{clear: both;
	border-top: solid 3px #1c2887;
	padding: 6px 0;
	text-align:center;
	margin-bottom:100px;
}

address	{
	color: #1c2887;
	font-size: 0.75em;
	font-style: normal;
	font-family: Verdana, sans-serif;
	margin: 0}

address a	{color: #000000}

/* 固定ページ */
div#content.page	{width: 100%}

/* トップページ */
div#topcontent p	{text-align: center;
	font-size: 0.875em;
	line-height: 1.5;
	margin: 0 0 20px}

/* コンテンツの背景 */
div.post,
p.feed,
#comments	{background-color: #ffffff}

/* ページナビ */
.wp-pagenavi {
	text-align:center;
	margin:10px 0px 10px;
}

/* ポップアップメニュー */
div.local_navi {
	display:block;
}
div.local_navi a{
	display:block;
	width:350px;
	color:#006400;
	font-size:18px;
	font-weight:bold;
	background-color:#F5DEB3;
	background-image:url(maru_ani.gif);
	background-repeat:no-repeat;
	background-position:9px 16px;
	text-decoration:none;
	border:1px solid #006400;
	padding:10px 10px 10px 20px;
}
div.local_navi a:hover{
	color: #006400;
	background-color: #FDF5E6;
	background-image:url(maru_ani.gif);
	background-repeat:no-repeat;
	background-position:9px 16px;
	text-decoration:none;
	border:1px solid #006400;
}
div.local_navi img {
	border:none;
}

/* ボタン */
#submit{
	width: 160px; 
	height: 31px; 
	background: url(bttn_bg.png) no-repeat; 
	border: 0; 
	color: #fff; 
	font-weight: 700; 
	font-size: 14px; 
	font-family: Arial; 
	cursor: pointer;
}
/* 主な活動内容ページ */
ul.work_list { margin:20px 10px 10px 10px;}
ul.work_list li{
	margin: 0px 0px 20px 0px;
	list-style: none; 
	background: url(circle_o.gif) no-repeat left 2px; 
	padding: 0 0 0 16px;
}
/* お問い合わせページ */
span.mail_icon {
	background: url(mail.gif) no-repeat left 5px; 
	padding: 0 0 0 55px;
}
span.tel_icon {
	background: url(tel.gif) no-repeat left 3px; 
	padding: 0 0 0 25px;
}
/* リンクページ */
ul.links { margin:20px 10px 10px 10px;}
ul.links li{
	margin: 0px 0px 20px 0px;
	list-style: none; 
	background: url(aniaqua.gif) no-repeat left 2px; 
	padding: 0 0 0 20px;
}
ul.links li a:hover {
	text-decoration: none;
}
/* 協議会についてページ */
div#enkaku {
	display:block;
	width:255px;
	height:42px;
	margin-top:10px;
	background:url(enkaku.gif);
}
table.enkaku {
	font-size: 0.875em;
}
/* 卓球協会のページ */
#ttennis {
	background:url(t_02.gif) no-repeat 400px 160px;
}
/* 障がい者スポーツとはのページ */
span.text_blue {
	color:blue;
}
span.text_orange {
	color:orange;
	font-weight:bold;
}
span.text_red {
	color:red;
	font-weight:bold;
}

/* 年間行事カレンダーのページ */
#calender h3 {
	font-weight:bold;
	font-size:24px;
	color:#8b4513;
	border-bottom:2px solid #f5deb3;
	border-right:2px solid #f5deb3;
	background-color:#fffacd;
	padding:4px 10px 5px;
}

#calender h4 {
	color:black;
	font-size:16px;
	padding:3px 0px 3px 10px;
	margin:5px 5px 5px 0px;
	background-color:#CCFFCC;
}
.event {
	width:600px;
	float:right;
}
.waku {
	clear:both;
}


/* ドリームスポーツクラブのページ */
#volley {
	background:url(bb.gif) no-repeat 380px bottom;
}
div.top_inline_menu a {
	font-size:12px;
}

.wp-pagenavi {
  display: flex;
  flex-wrap: wrap;          /* はみ出したら折り返す */
  justify-content: center;  /* 中央寄せ */
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.wp-pagenavi a, .wp-pagenavi span {
  color:#999;
  background-color:#FFF;
  border:solid 1px #999;
  padding: 8px 15px;
  margin:0 2px;
  white-space: nowrap;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
}
.wp-pagenavi a:hover{
  color:#FFF;
  background-color:#999;
  border-color:#999;
}
.wp-pagenavi span.current{
  color:#FFF;
  background-color:#333;
  border-color:#333;
  font-weight: bold;
}

/* ===============================
   全体（オレンジ背景）
=============================== */
#sidebar .wpb_category_n_menu_accordion {
  background: #ff8a55 !important;
  padding: 10px !important;
}

/* li 共通 */
#sidebar .wpb_category_n_menu_accordion li {
  list-style: none !important;
  margin: 8px 0 !important;
}

/* ===============================
   親メニュー
=============================== */
#sidebar .wpb_category_n_menu_accordion > ul > li > a {
  display: block !important;
  padding: 14px 48px 14px 16px !important;
  font-weight: bold !important;
  color: #000 !important;
  text-decoration: none !important;

  background: linear-gradient(
    to bottom,
    #fff6a5 0%,
    #ffe600 45%,
    #ffd200 55%,
    #fff6a5 100%
  ) !important;

  border: 3px solid #ff5a5a !important;
  border-radius: 4px !important;
  position: relative !important;
}

/* 親の矢印 */
#sidebar .wpb_category_n_menu_accordion > ul > li > a::after {
  content: "››" !important;
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 20px !important;
  font-weight: bold !important;
  color: #6ec6ff !important;
  text-shadow: 1px 1px 0 #fff !important;
}

/* ===============================
   サブメニュー
=============================== */
#sidebar .wpb_category_n_menu_accordion ul.sub-menu {
  background: transparent !important;
  padding: 6px 0 !important;
}

#sidebar .wpb_category_n_menu_accordion ul.sub-menu li {
  margin-left: 14px !important;
}

/* サブメニューリンク */
#sidebar .wpb_category_n_menu_accordion ul.sub-menu li > a {
  display: block !important;
  padding: 10px 44px 10px 24px !important;
  color: #000 !important;
  text-decoration: none !important;

  background: linear-gradient(
    to bottom,
    #fffbe0 0%,
    #fff1a8 50%,
    #fffbe0 100%
  ) !important;

  border: 2px solid #ffb3b3 !important;
  border-radius: 4px !important;
  position: relative !important;
}

/* サブ矢印 */
#sidebar .wpb_category_n_menu_accordion ul.sub-menu li > a::after {
  content: "›" !important;
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-55%) !important; /* ← 少し上へ */
  font-size: 16px !important;
  color: #8ecbff !important;
}

/* ===============================
   アクティブ状態
=============================== */
#sidebar .wpb_category_n_menu_accordion li.current-menu-item > a,
#sidebar .wpb_category_n_menu_accordion li.current-menu-ancestor > a {
  background: linear-gradient(
    to bottom,
    #ffe070 0%,
    #ffcc00 50%,
    #ffe070 100%
  ) !important;
}
#sidebar .wpb_category_n_menu_accordion
li.menu-item-has-children > a::after {
  display: none !important;
}
/* ＋マークを水色にする */
#sidebar .wpb_category_n_menu_accordion
.wpb-submenu-indicator {
  color: #4db8ff !important; /* 水色 */
  font-weight: bold;
}
#sidebar .wpb_category_n_menu_accordion a {
  font-size: 18px;   /* ← 全体の文字サイズ（16〜20pxで調整） */
  line-height: 1.6;
}
/* メニュー上に見出しを追加 */
#sidebar .wpb_category_n_menu_accordion::before {
  content: "スポーツの種類";
  display: block;
  font-size: 18px;
  font-weight: bold;
  padding: 0 0 8px;
  margin-bottom: 10px;
  border-bottom: 2px solid #fff;
  color: #fff
}
/* ===============================
   メニュー高さを50pxに固定
=============================== */
#sidebar .wpb_category_n_menu_accordion a {
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* 高さが増えないよう完全固定 */
#sidebar .wpb_category_n_menu_accordion > ul > li > a,
#sidebar .wpb_category_n_menu_accordion ul.sub-menu li > a {
  height: 50px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}
/* ===============================
   子メニュー：1行中央・2行自然
=============================== */
#sidebar .wpb_category_n_menu_accordion ul.sub-menu li > a {
  min-height: 50px !important;
  height: auto !important;

  padding: 11.5px 44px 8.5px 24px !important; /* ← 上下を1pxずらす */

  font-size: 15px !important;
  line-height: 1.4 !important;

  display: block !important;
  box-sizing: border-box !important;
}

/* ===============================
   子メニュー：文字小さく＋水色背景
=============================== */
#sidebar .wpb_category_n_menu_accordion ul.sub-menu li > a {
  font-size: 15px !important;   /* 親より少し小さく */
  background: linear-gradient(
    to bottom,
    #e9f7ff 0%,
    #cfeeff 50%,
    #e9f7ff 100%
  ) !important;
  border-color: #8ecbff !important;
  color: #000 !important;
}
#sidebar .wpb_category_n_menu_accordion > ul > li > a {
  align-items: flex-start !important; /* 中央→やや上 */
  padding-top: 12px !important;       /* 微調整 */
}
/* 子を持つ親メニューのリンクを無効化 */
#sidebar .wpb_category_n_menu_accordion
li.menu-item-has-children > a {
  pointer-events: none;
}

/* ＋だけはクリック可能にする */
#sidebar .wpb_category_n_menu_accordion
li.menu-item-has-children > a .wpb-submenu-indicator {
  pointer-events: auto;
  cursor: pointer;
}
