/*
Theme Name:nishiki-pro-child
Theme URI:
Description:nishiki-proの子テーマです。
Template:nishiki-pro
Author:
Author URI:Version:0.0.8
*/

/*横スクロールコンテナ*/
.scroll-container {
  white-space: nowrap; /* テキストを折り返さずに一行で表示する */
  overflow-x: auto; /* X方向にスクロールバーを表示する */
 -webkit-overflow-scrolling: touch; /* IOS用 */
	overflow-scrolling: touch; /* Android用 */
}

/* reCAPTCHA非表示 */
.grecaptcha-badge { visibility: hidden; }

/* scrooll-hint */
/* デスクトップ非表示 */
.scroll-hint {
  display: none;
}
/* スマートフォン用 */
@media only screen and (max-width: 768px) {
  .scroll-hint {
    position: fixed;
    top: calc(50%) !important; /* 中央よりやや下に100px移動 */
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    display: block; /* スタイルを表示する */
  }
}
/* scrooll-hintここまで */

/* アーカイブ説明非表示 */
.taxonomy-description {
 display: none !important;
}

/**TOPページ全国地図**/
.japan.map {
  display: flex;
  justify-content: center; /* 水平方向に中央配置 */
  align-items: center; /* 垂直方向に中央配置 */
  transform: scale(0.9);  /*サイズを縮小 */
}

@media only screen and (min-width: 768px) {
  .japan.map {
    display: flex;
    justify-content: center; /* 水平方向に中央配置 */
    align-items: center; /* 垂直方向に中央配置 */
  }
}

@media only screen and (max-width: 767px) {
  .japan.map {
    display: none; /* スマートフォンでは非表示 */
  }
}

/**TOPページ全国地図ここまで**/

/* アコーディオンの選択をPCとタブレットで非表示 */
@media only screen and (min-width: 768px) {
  .wp-block-nishiki-blocks-pro-accordion {
    display: none; /* PCとタブレットで非表示 */
  }
}
/* アコーディオンの選択をPCとタブレットで非表示ここまで*/

/*マップホバー時の動作*/
.hover-scale {
 transition: all 0.1s ease;
}
.hover-scale:hover {
  filter: brightness(0.7); 
}
/*マップホバー時の動作ここまで*/


/*メニュー下線
.menu-items {
  position: relative;
  border-bottom: 1px solid purple; 
	border-top: 1px solid purple;
}
.menu-item {
  position: relative;
  border-top: 1px solid transparent;
}
.menu-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 0;
  height: 1px;
  background: black;
  transition: width 0.3s, left 0.3s;
}
.menu-item:hover::before {
  width: 100%;
  left: 0;
}
*/

.menu-items {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between; /* 左右に均等配置 */
}

/*フロートボタン*/
.float-button {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(50%);
    writing-mode: vertical-rl;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* 背景色を少し透明にする */
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
		width: 50px; /* ボタンの幅 */ 
		height: 200px; /* ボタンの高さ */
		z-index: 1000; /* 他の要素の前面に表示 */
		border-radius: 3px; /* 角を丸くする半径 */
}
.float-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transition: background-color 0.3s ease; /* ホバー時の背景色変化に0.3秒のアニメーション */
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2); /* 影を付ける */
}
.float-a {
    color: #fff;
    text-decoration: none !important; /* リンクのアンダーバーを消す */
    display: block; /* ブロック要素にすることで、確実にスタイルが適用されるように */
}
.float-button:hover .float-a {
  color: #fff; /* ホバー時にも白色 */
}
/*フロートボタン設定ここまで*/

/* inputやtextarea以外の要素の選択を無効化 */
body:not(.admin-user) :not(input):not(textarea) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/*専用カレンダー*/
/* カレンダー全体 */
.okuyami-calendar {
  border-collapse: collapse;
  width: 100%;
  max-width: 300px;
  font-size: 14px;
  text-align: center;
}

.okuyami-calendar th,
.okuyami-calendar td {
  border: 1px solid #ccc;
  padding: 6px;
}

/* 今日の日付ハイライト */
.okuyami-calendar td.today {
  background-color: #ffeeba; /* 淡い黄色で強調 */
  font-weight: bold;
}

/* 表示ボタンの余白 */
.calendar-select input[type="submit"] {
  margin-left: 8px; /* 隣のセレクトボックスと少し離す */
  padding: 4px 10px;
}

.calendar-select select {
  padding: 2px 4px;       /* 内側余白を小さく */
  border: 1px solid #ccc; /* 枠線を細く */
  font-size: 13px;        /* 文字サイズを少し小さめに */
  margin-right: 4px;      /* 隣との間隔を少しだけ */
}

.okuyami-calendar td.today {
  background-color: #ffeeba; /* 今日を黄色で強調 */
  font-weight: bold;
}

.okuyami-calendar td.past-disabled {
  color: #999;              /* グレー文字 */
  background-color: #f9f9f9; /* 淡い背景 */
}

.okuyami-calendar td.selected-day {
  background-color: #cce5ff; /* 選択中の日付を淡い青で強調 */
  font-weight: bold;
}
