/*TT5のiPhone12での左寄り・右空白の対策*/
@supports (-webkit-touch-callout: none) {
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    text-wrap: wrap;
  }
}


/*CF7 入力欄の上下マージンを小さくする調整*/
.wpcf7 p {
  margin: 0.25rem;
}

/*----------------------------------------------------------------------------------------------------*/

/*フォントサイズ流動変化*/
:root {
  --min-font: 0.75rem;
  --max-font: 1rem;
  --fluid-font: calc(0.5rem + 0.5vw);
}

html {
  font-size: clamp(var(--min-font), var(--fluid-font), var(--max-font));
}


/*フォント指定*/
html {font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;}
body {font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;}
h1,h2,h3,h4,h5,h6 {font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;}
.gothic {font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;}
.mincho {font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;}


/*個別　テキストシャドウ 黒影*/
.xshadb {text-shadow:0.1rem 0.1rem 0 rgb(51, 51, 51, 1.0);}
/*個別　テキストシャドウ 灰影*/
.xshadg {text-shadow:0.1rem 0.1rem 0 rgb(221, 221, 221, 1.0);}
/*個別　テキストシャドウ 白影*/
.xshadw {text-shadow:0.1rem 0.1rem 0 rgb(255, 255, 255, 1.0);}

/*----------------------------------------------------------------------------------------------------*/

/*スマホサイズのみ改行を無効化し一文にする　600未満*/
@media (max-width: 599.98px) {
br {
display:none;
 }
}

/*個別スマホサイズのみ改行の無効化を打ち消しスマホサイズでも改行させる*/
@media (max-width: 599.98px) {
.xbrdb br {
display:block;
 }
}

/*個別スマホサイズ以上の改行の指定を無効化し一文にする　.xbrdbとの併用でスマホサイズでのみ改行させられる*/
@media (min-width: 600px) {
.xbrdn br {
display:none;
 }
}

/*----------------------------------------------------------------------------------------------------*/

/*画面遷移フェードインエフェクト*/
body {
  animation: fadeIn 1s ease-in-out forwards;
}
@keyframes fadeIn {
  0.1% { opacity: 0; }
  100% { opacity: 1; }
}


/*reCAPTCHA非表示*/
.grecaptcha-badge {
visibility:hidden;
}


/*カバーブロック　上下余白を0にして左右余白は0remや1remのままにするなど*/
.wp-block-cover {
  padding: 0 0rem;
}


/*指定　SMスライダーの左右端余白をゼロに*/
.xsmcsp .has-global-padding {
  padding-right: 0;
  padding-left: 0;
}

/*----------------------------------------------------------------------------------------------------*/

/*TT5　ボタン　一括　かど角調整*/
.wp-element-button {
border-radius:0;
}


/*TT5　ボタンhover時に少し暗くする　100%を超えて大きくすると明るくもできる*/
.wp-block-button__link {
  transition: filter 0.3s ease;
}
.wp-block-button__link:hover {
  filter: brightness(90%);
}

/*----------------------------------------------------------------------------------------------------*/

/* ヘッダー専用の出し分け設定 */

/* 【PCヘッダー】スマホサイズかつ非ログイン時に隠す */
@media (max-width: 599.98px) {
  :not(.logged-in) .header-pc { display: none !important; }
}
/* 【SPヘッダー】PCサイズかつ非ログイン時に隠す */
@media (min-width: 600px) {
  :not(.logged-in) .header-sp { display: none !important; }
}
/* エディター内での強制表示 */
.editor-styles-wrapper .header-pc, 
.editor-styles-wrapper .header-sp { display: block !important; }


/* 個別パーツ（バナー等）の出し分け設定 */

/* 【PC用パーツ】スマホサイズかつ非ログイン時に隠す */
@media (max-width: 599.98px) {
  :not(.logged-in) .xpcdbn { display: none !important; }
}
/* 【SP用パーツ】PCサイズかつ非ログイン時に隠す */
@media (min-width: 600px) {
  :not(.logged-in) .xspdbn { display: none !important; }
}
/* エディター内での強制表示 */
.editor-styles-wrapper .xpcdbn, 
.editor-styles-wrapper .xspdbn { display: block !important; }



/* TT5　管理バーの高さを考慮（ログイン時）*/
body.admin-bar .wp-site-blocks > header {
  top: 2rem;
}


/* TT5　CSSのみでのグローバルメニュー固定*/
/*992px以上のサイズで反映*/
@media (min-width: 992px) {
.wp-site-blocks > header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  /*background-color: #fff;*/ /*必要に応じて背景色を調整*/
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /*視認性向上*/
  }
}

/* TT5　CSSのみでのグローバルメニュー固定*/
/*992px未満のサイズで反映*/
@media (max-width: 991.98px) {
.wp-site-blocks > header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  /*background-color: #fff;*/ /*必要に応じて背景色を調整*/
  /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/ /*視認性向上*/
  }
}

/*----------------------------------------------------------------------------------------------------*/

/*TT5　もともとの下線を非表示に*/
.wp-block-navigation .wp-block-navigation-item a {
  text-decoration: none !important;
}


/*TT5　ホバー時のアンダーライン（アニメーション）*/
.wp-block-navigation .wp-block-navigation-item a {
  position: relative;
  text-decoration: none !important;
  display: inline-block;
  padding-bottom: 4px;
}
.wp-block-navigation .wp-block-navigation-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #666666;
  transition: width 0.3s ease;
}
.wp-block-navigation .wp-block-navigation-item a:hover::after {
  width: 100%;
}


/*TT5　カレント状態の下線（静的表示）*/
.wp-block-navigation .wp-block-navigation-item.current-menu-item > a {
  position: relative;
  text-decoration: none;
  display: inline-block;
  padding-bottom: 4px;
}
.wp-block-navigation .wp-block-navigation-item.current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #666666;
}


/*TT5　マウスオーバー時の項目周囲のフォーカス枠線を非表示*/
:where(.wp-site-blocks *:focus) {
  outline: none !important;
  box-shadow: none !important;
}

/*----------------------------------------------------------------------------------------------------*/

/* サイト全体を縦方向flexにしてフッターを押し下げる */
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: max(100vh, 100dvh);
}

/* フッターパーツを最下部へ */
.wp-site-blocks > footer.wp-block-template-part {
  margin-top: auto;
}

/* 余計な高さ指定は不要。スクロールを自然に処理させる */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 管理画面ログイン時の管理バーがある場合の調整 */
body.admin-bar .wp-site-blocks {
  min-height: calc(100dvh - 32px); /* 管理バー分を差し引く */
}

/*----------------------------------------------------------------------------------------------------*/

/*CF7送信ボタンなど　TT5*/
.wpcf7-submit {
    background-color: black; /* ボタンカラー */
    color: white;
    font-size: 1.125rem; /* フォントサイズを少し大きく */
    font-weight: bold;
    padding: 0.875rem 1.75rem; /* 余白を大きく */
    border-radius: 0px;
    border: 1px solid black;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: inline-block;
    cursor: pointer;
    width: 100%; /* ボタンの幅を広げる（適宜変更） */
    max-width: 300px; /* 必要なら最大幅を指定 */
    transition: background-color 0.3s ease, color 0.3s ease; /* 色変更のみ */
    margin-bottom: 5px; /* ボタン下の余白を調整 */
}
/*ボタンホバーカラー*/
.wpcf7-submit:hover {
    background-color: white;
    color: black;
}

/*アラート文字色など*/
.wpcf7-response-output {
    color: red; /* 文字を赤色に */
    font-size: 1rem; /* フォントサイズ調整 */
    font-weight: normal; /* 文字を強調 */
    text-align: center; /* 中央配置 */
    background: none !important; /* 背景色を完全に消す */
    border: none !important; /* 枠線を完全に削除 */
    box-shadow: none !important; /* 影を削除（もし適用されていた場合） */
  margin: 0 !important;
  padding: 0 !important;
}


/*CF7　必須項目です等のメッセージカラー*/
span.wpcf7-not-valid-tip {
color:red;
}

/*CF7　送信完了メッセージカラー*/
.wpcf7 form.sent .wpcf7-response-output {
color:blue;
}


/*スピナーカラー調整*/
.wpcf7-spinner {
    background-color: #fff !important;
}

/*スピナー回転ボールの調整*/
.wpcf7-spinner::before {
  background-color: #ccc !important;
}

/* 送信ボタンを中央に配置 */
.wpcf7 .wpcf7-submit {
  display: block;
  margin: 0 auto;
}

/* スピナーの位置を調整 */
.wpcf7 .wpcf7-spinner {
  display: block;
  margin: 10px auto 0 auto; /* 上に余白をつけて中央揃え */
  position: relative;
}


/*CF7 日付時間ファイル等のフォント*/
.wpcf7 input {
font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
}


/*CF7　ファイル選択　行間等調整　テキスト部の手のマウスカーソル非表示*/
.wpcf7 input[type="file"] {
width: 50%;
border: none;
margin:0rem 0rem 0rem 0rem;
cursor:initial!important;
font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; /* フォントを統一 */
}

@media (max-width: 991.98px) {
.wpcf7 input[type="file"] {
width: 75%;
border: none;
margin:0rem 0rem 0rem 0rem;
cursor:initial!important;
font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; /* フォントを統一 */
}
}


/* テキストフィールドとテキストエリアのサイズ・フォントを統一 */
.wpcf7-form-control.wpcf7-text, 
.wpcf7-form-control.wpcf7-textarea {
    width: 100%; /* 幅を最大化 */
    max-width: 100%; /* 必要なら最大幅を設定 TT5では98%等の指定が必要 */
    font-size: 16px; /* フォントサイズ統一 */
    font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; /* フォントを統一 */
    padding: 5px; /* 内側の余白調整 */
    border:1px solid #ccc;
    line-height: 1.25;
    letter-spacing: 0.05em;
    color:#333333;
}


/* プレースホルダーのデザイン調整 */
::placeholder {
    font-size: 1rem; /* プレースホルダーの文字サイズを統一 */
    color: #999; /* 視認性を向上するための色調整 */
    font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; /* フォントをテキスト欄と統一 */
}


/*CF7　radioの左余白をナシにして右余白アリに変更調整*/
.wpcf7-list-item {
  display: inline-block;
  margin: 0 1rem 0 0 !important;
}

/*----------------------------------------------------------------------------------------------------*/

/*bbPressフォントサイズ*/
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results, #bbpress-forums ul.bbp-topics {
  font-size: 0.88rem;
  overflow: hidden;
  border: 1px solid #eee;
  margin-bottom: 20px;
  clear: both;
}


/*bbPressのパンクズリスト非表示*/
.bbp-breadcrumb {
  display: none;
}


/*bbpressプロフィール編集ボタン非表示*/
.bbp-user-edit-link {
display:none;
}


/*bbpress 投降者のIPアドレス非表示*/
.bbp-author-ip {
display:none;
}


