/*
Inazumaweb2 Plugin front css
*/

#login #loginform {
    border-radius: 8px;
    box-shadow: 0 4px 8px #eef3fe0d, 0 -4px 8px #eef3fe0d !important;
    box-sizing: border-box;
    border: solid 2px #3088f2;
}



/* 背景の暗いオーバーレイ */
.front-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    /* 初期状態は非表示 */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 中央のコンテンツボックス */
.front-overlay-content {
    width: 90vw;
    height: 90vh;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: auto;
}

/* 閉じるボタン */
.front-close-btn {
    float: right;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 10px;
}


/* ここから フロント編集ボタン関連　✏ */

/* JS で付与する親用クラス */
.editpen-parent {
  position: relative;
}

/* ペン本体（クリック領域） */
.editpen {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%);   /* ちょっと外にはみ出させる */
  width: 1.5em;
  height: 1.5em;
  pointer-events: auto;
}

/* 見た目は疑似要素で */
.editpen::before {
  content: "✏";
  font-size: 0.9em;
  line-height: 1;
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  padding: 0.1em 0.2em;
}

/* ここまで フロント編集ボタン関連　✏ */





/* ここから Summernote回り込み関連 */
.post_content img.note-float-left {
  float: left !important;
  width: auto !important;
  max-width: 50% !important;
  height: auto !important;
  margin: 0 1em 1em 0 !important;
}

.post_content img.note-float-right {
  float: right !important;
  width: auto !important;
  max-width: 50% !important;
  height: auto !important;
  margin: 0 0 1em 1em !important;
}

.post_content p {
  clear: none !important;
  overflow: visible !important;
}

.post_content::after {
  content: "";
  display: block;
  clear: both;
}
/* ここまで Summernote回り込み関連 */
/* 単一フィールドのインライン検索窓 (templates/inazuma-search-parts-single.php) */
.inazuma-search-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin: 0 0.8em 0.6em 0;
  vertical-align: middle;
}

.inazuma-search-inline-label {
  white-space: nowrap;
  font-size: 0.9em;
}

.inazuma-search-inline-input {
  width: 12em;
  max-width: 100%;
  padding: 0.4em 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.inazuma-search-inline-button {
  padding: 0.4em 1em;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}

/* アコーディオン表示時。summary(ラベル)をクリックすると下に検索欄が出る。横並びできるようinline-block */
.inazuma-search-inline-details {
  display: inline-block;
  vertical-align: top;
  margin: 0 0.8em 0.6em 0;
}

.inazuma-search-inline-summary {
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.9em;
}

.inazuma-search-inline-details .inazuma-search-inline {
  margin: 0.4em 0 0 0;
}

/* ショートコードを改行して並べるとWordPressが一部を<p>で包み、そこで行が折れてしまう。
   検索窓を含む<p>は箱として扱わないようにして、前後の検索窓と横並びになるようにする。 */
p:has(> .inazuma-search-inline),
p:has(> .inazuma-search-inline-details) {
  display: contents;
}
/* ここまで 単一フィールドのインライン検索窓 */
