/*
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用 */
}

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

/* scrooll-hint */
/* デスクトップ・スマホ共通で初期状態は非表示 */
.scroll-hint {
  display: none;
}

/* スマートフォン用の位置やスタイル指定 */
@media only screen and (max-width: 768px) {
  .scroll-hint {
    position: fixed;
    top: 50%; /* 中央よりやや下に調整 */
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 10px;
    border-radius: 4px;
  }
}

.arrow {
  display: inline-block;
  font-size: 12px;
  animation: moveArrow 1s infinite alternate ease-in-out;
}

@keyframes moveArrow {
  from { transform: translateX(0); }
  to   { transform: translateX(10px); } /* ←大きめにする */
}

/* 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 {
  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%;
  
  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.past-disabled {
  color: #999;              /* グレー文字 */
  background-color: #f9f9f9; /* 淡い背景 */
}

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

/* フォーム全体のレイアウト */
#searchForm {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

/* セレクトボックス */
#searchForm select {
    background: #fff;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 0;
    min-width: 120px;
}

/* 年月グループ */
#searchForm .ym-group {
    display: flex;
    gap: 8px;
}

/* 検索ボタン（白背景・黒文字・二重線） */
#searchForm button {
    padding: 10px 20px;
    font-size: 15px;
    background: #fff;
    color: #000;
    border: 2px double #000;
    border-radius: 0;
    cursor: pointer;
    margin-top: 4px;
}

/* 訃報日付 */
.obit-date {
    margin-top: 24px;
    padding: 8px 12px;
    background: #f0f4ff;
    border-left: 4px solid #3b6ff5;
    font-size: 18px;
    font-weight: bold;
}

/* 訃報ブロック */
.obit-block {
    padding: 12px 16px;
    margin: 12px 0;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
    line-height: 1.6;
}

/* 情報なし */
.no-result {
    padding: 16px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    color: #856404;
    margin-top: 20px;
}

/* スマホ（600px以下） */
@media (max-width: 600px) {
    #searchForm {
        flex-direction: column;
    }

    #searchForm .ym-group {
        flex-direction: row; /* 年月は横並び */
    }

    #searchForm button {
        width: 100%; /* スマホでは横幅いっぱい */
    }
}