@charset "utf-8";
/*
Template: jstorkse
Theme Name: STORK SE Child
Theme URI: https://open-cage.com/stork-se/
Version: 1.0.0
Author: opencage
Author URI: https://open-cage.com/
*/



/* ログイン画面 */
.login {
    background: url("images/login_back.jpg") no-repeat center center;
    background-size: cover;
}

/* ロゴ */
.login h1 a {
    background-image: url("images/pokke_banner.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 210px 127px;
    display: block;
    font-size: 20px;
    line-height: 1.3em;
    margin: 0 auto 25px;
    padding: 0;
    text-indent: -9999px;
    width: 210px;
    height: 127px;
}

/* ログインフォーム */
.login div#login form#loginform {
    background: rgba(255, 255, 255, 0.7);
}

/* ユーザー名・パスワード入力欄 */
.login div#login form#loginform input#user_login,
.login div#login form#loginform input#user_pass {
    font-size: 1.5em;
    padding-left: 0.5em;
}

/* ログインボタン */
.login div#login form#loginform p.submit input#wp-submit {
    display: block;
    width: 100%;
    margin-top: 1em;
    font-size: 1.5em;
}

/* ナビゲーション・サイトへ戻るリンク */
.login div#login p#nav,
.login div#login p#backtoblog {
    border-radius: 1px;
    padding: 0;
    text-align: center;
    background-color: #ffa;
}

.login div#login p#nav a,
.login div#login p#backtoblog a {
    color: #666;
    display: block;
    padding: 0.5em 1em;
}

/*メニューの説明を非表示*/
.menu-item-type-taxonomy .gf{
	display:none;
}

/* ==========================================
   Luxeritas：過去記事のマーカーデザインを維持
   ========================================== */

/* 色の定義：帯・斜線マーカー共通 */
.luxe-hilight-yellow,
.luxe-dot-hilight-yellow {
    --luxe-marker-color: #fff352;
}

.luxe-hilight-red,
.luxe-dot-hilight-red {
    --luxe-marker-color: #ea618e;
}

.luxe-hilight-blue,
.luxe-dot-hilight-blue {
    --luxe-marker-color: #b2cbe4;
}

.luxe-hilight-green,
.luxe-dot-hilight-green {
    --luxe-marker-color: #a7d28d;
}

.luxe-hilight-orange,
.luxe-dot-hilight-orange {
    --luxe-marker-color: #fad09e;
}

.luxe-hilight-pink,
.luxe-dot-hilight-pink {
    --luxe-marker-color: #f5b2b2;
}



/* ==========================================
   1. ドット／斜線マーカー
   ========================================== */

:is(
    .luxe-dot-hilight-yellow,
    .luxe-dot-hilight-red,
    .luxe-dot-hilight-blue,
    .luxe-dot-hilight-green,
    .luxe-dot-hilight-orange,
    .luxe-dot-hilight-pink
) {
    padding-bottom: .05em;
    background-color: transparent;
    background-image: repeating-linear-gradient(
        -45deg,
        var(--luxe-marker-color) 0 2px,
        transparent 2px 4px
    );
    background-repeat: repeat-x;
    background-position: left 88%;
    background-size: 5px .45em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

:is(
    .luxe-dot-hilight-yellow,
    .luxe-dot-hilight-red,
    .luxe-dot-hilight-blue,
    .luxe-dot-hilight-green,
    .luxe-dot-hilight-orange,
    .luxe-dot-hilight-pink
)::before {
    content: none;
}

/* ==========================================
   2. 帯マーカー：旧子テーマの表示を維持
   ========================================== */

:is(
    .luxe-hilight-yellow,
    .luxe-hilight-red,
    .luxe-hilight-blue,
    .luxe-hilight-green,
    .luxe-hilight-orange,
    .luxe-hilight-pink
) {
    position: relative;
    display: inline-block;
    background: none !important;
    padding-bottom: 0;
    overflow: visible;
    z-index: 0;
}

:is(
    .luxe-hilight-yellow,
    .luxe-hilight-red,
    .luxe-hilight-blue,
    .luxe-hilight-green,
    .luxe-hilight-orange,
    .luxe-hilight-pink
)::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: .6em;
    transform: translateY(-.15em);
    background: var(--luxe-marker-color) !important;
    z-index: -1;
    pointer-events: none;
}

/* マーカー内のふりがなには背景を付けない */
:is(
    .luxe-hilight-yellow,
    .luxe-hilight-red,
    .luxe-hilight-blue,
    .luxe-hilight-green,
    .luxe-hilight-orange,
    .luxe-hilight-pink,
    .luxe-dot-hilight-yellow,
    .luxe-dot-hilight-red,
    .luxe-dot-hilight-blue,
    .luxe-dot-hilight-green,
    .luxe-dot-hilight-orange,
    .luxe-dot-hilight-pink
) rt {
    background: none !important;
}

/****旧テーマの吹き出し関連の修正****/
/* 旧吹き出しから引き継いだ名前 */
.voice .icon .legacy-balloon-name {
    display: block;
    margin-top: .4em;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

/* 旧本文に直接入力された改行を表示 */
.voice .legacy-balloon-text {
    white-space: pre-line;
}


/* =================================================
   3) ふりがな (rt) には背景を付けない —— 任意
================================================= */
rt{ background:none !important; }

/*印刷用QRコード普段は非表示*/
#print-qr-box{display:none;}


/* =================================================
   ビデオ部分（260727追加）
================================================= */
body.single .wp-block-video {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
  background: #fff !important;
  overflow: hidden !important;
  /* 縦幅の上限を640pxに設定 */
  max-height: 640px !important;
  /* aspect-ratio は削除 */
}

body.single .wp-block-video video {
  width: 100% !important;
  height: 100% !important;
  max-height: 640px !important;
  /* 動画の本来の比率を保ちながら枠内に全体を収める */
  object-fit: contain !important;
  background: #fff !important;
  /* aspect-ratio は削除 */
}


/* 記事末尾の執筆者 */
.custom_author {
    margin-top: 3em;
    padding: 0;
    border: none;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 14px;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.6;
    color: #111;
}

.custom_author .auther_mark {
    flex-shrink: 0;
    display: inline-block;
    padding: 2px 5px;
    border-radius: 4px;
    background-color: #2db9bd;
    color: #fff;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
}

.custom_author .custom_author_name {
    text-align: right;
    overflow-wrap: anywhere;
}


/*ルビフルボタンの調整*/
/* 付箋全体：右端を固定して左へ伸ばす */
#ruby-edge-control {
  position: fixed !important;
  right: 0 !important;
  bottom: 80px !important;
  z-index: 10000;
  display: flex;
  align-items: center;
  width: auto;
  height: 64px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f5803a;
  border-radius: 7px 0 0 7px;
  box-shadow: -2px 2px 6px rgb(0 0 0 / 15%);
}

/* 「ルビ」を左側に配置
   展開時はこの部分も左へ移動する */
#ruby-edge-control .ruby-edge-tab {
  order: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  min-width: 34px;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff !important;
  font-size: 13px;
  line-height: 1;
  writing-mode: vertical-rl;
  cursor: pointer;
  box-shadow: none;
}

/* 付箋の中に現れるON／OFF操作 */
#ruby-edge-control .ruby-edge-panel {
  order: 1;
  display: flex;
  align-items: center;
  width: 0;
  max-width: none;
  height: 64px;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  background: transparent;
  box-shadow: none;
  transition:
    width .25s ease,
    opacity .25s ease,
    visibility .25s ease;
}

#ruby-edge-control.is-open .ruby-edge-panel {
  width: 64px;
  max-width: none;
  visibility: visible;
  opacity: 1;
}

/* Rubyfulが生成するボタンをそのまま利用 */
#ruby-edge-control button.my-toggle {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 56px !important;
  min-width: 0;
  height: 44px;
  margin: 0 !important;
  padding: 0 8px;
  border: 0;
  border-left: 1px solid rgb(255 255 255 / 45%);
  border-radius: 0;
  background: transparent !important;
  color: #fff !important;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

#ruby-edge-control button.my-toggle:hover {
  background: rgb(255 255 255 / 12%) !important;
}

#ruby-edge-control button:focus-visible {
  outline: 2px solid #333;
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  #ruby-edge-control .ruby-edge-panel {
    transition: none;
  }
}


/*****よく見られている記事のウィジェット対応*****/
/* PCのみ：投稿を横スクロールのカード表示に */
@media (min-width: 768px) {

  #stk_popularpostswidget-2 {
    min-width: 0;
    max-width: 100%;
  }

  #stk_popularpostswidget-2 .cat_postlist__ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 0 14px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #f5803a #eee;
  }

  /* 記事1件の幅 */
  #stk_popularpostswidget-2 .cat_postlist__li {
    flex: 0 0 220px !important;
    width: 220px !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    box-sizing: border-box;
    scroll-snap-align: start;
  }

  /* 画像と本文を上下に配置 */
  #stk_popularpostswidget-2 .cat_postlist__link {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0;
    height: 100%;
    padding: 0 !important;
  }

  /* 画像の大きさを統一 */
  #stk_popularpostswidget-2 .eyecatch {
    position: relative;
    float: none !important;
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 6px;
  }

  #stk_popularpostswidget-2 .eyecatch img {
    position: static !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  /* 画像の下にタイトルと日付 */
  #stk_popularpostswidget-2 .postbody {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 10px 0 0 !important;
    box-sizing: border-box;
  }

  #stk_popularpostswidget-2 .ttl {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #stk_popularpostswidget-2 .time__date {
    display: block;
    margin-top: auto;
    padding-top: 4px;
    font-size: 12px;
    color: #777;
  }

  /* 横スクロールバー */
  #stk_popularpostswidget-2 .cat_postlist__ul::-webkit-scrollbar {
    height: 8px;
  }

  #stk_popularpostswidget-2 .cat_postlist__ul::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 4px;
  }

  #stk_popularpostswidget-2 .cat_postlist__ul::-webkit-scrollbar-thumb {
    background: #f5803a;
    border-radius: 4px;
  }
}

@media (min-width: 768px) {
  #stk_popularpostswidget-2 .cat_postlist__li {
    flex: 0 0 180px !important;
    width: 180px !important;
  }

  #stk_popularpostswidget-2 .cat_postlist__ul {
    margin-top: 12px !important;
    gap: 12px;
  }
}

/*ページネーションの調整*/
.pagination .page-numbers.current, .page-links .post-page-numbers.current {
    color:#333;
    background-color: #fc3;
	border: #fc3;
}

.pagination .page-numbers, .page-links .post-page-numbers {
    color: #333;
    border:solid 2px #FC3;
    border-radius: var(--stk-btn-border_radius, 3px);
	background-color:#fff9ea;
}

.pagination .page-numbers:hover, .page-links .post-page-numbers:hover {
	background-color:var(--stk-palette-color5);
	color:#333;
}

/*スクルロールボタンの調整*/
.pt-button.--link-color{
	background-color:#f5803a;
	box-shadow: -4px 4px 10px -2px rgba(0, 0, 0, 0.3);
}

/*ホームボタンのマークなど調整*/
.breadcrumb .bc_homelink .breadcrumb__link:not(.no-icon)::before {
    color: #f5803a
}

/* Kadenceギャラリーだけ、STORKのリストマークを非表示 */
.entry-content .wp-block-kadence-advancedgallery ul.kb-gallery-ul > li.kadence-blocks-gallery-item::before {
    content: none;
    display: none;
}

/*simple download monitor*/
.sdm_download_link a{
	text-decoration:none;
	border:none;
	font-size:1em;
	line-height:1.1em;
	border-radius:5px;
	font-weight:normal;
}
.sdm_download.blue {
    background: #4a8eff;
    color: #fff !important;
    text-shadow:none;
    border:none;
}
.sdm_download.blue:hover {
    background: #6aaeff;
    text-shadow:none;
}
.sdm_download_item_count {
    margin-left: 20px;
    /*border: 1px solid #e7e9eb;*/
    border:none;
    border-radius:3px;
    padding: 3px 10px;
    display: inline-block;
    float: right;
    font-size:0.675em;
    background-color:#ddd;
}
.sdm_download_size{
    border:none;
    border-radius:3px;
    padding: 3px 10px;
    display: inline-block;
    float: right;
    font-size:0.675em;
    background-color:#ddd;
    margin:0 1em;	
}
.sdm_download_title {
    float: left;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 2em;
}



@media print {
  /* メニューと検索ボタンだけを非表示 */
  #header .stk_g_nav,
  #header .search_btn {
    display: none !important;
  }

  #header {
    position: static !important;
    height: auto !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #header .inner-header {
    display: block !important;
    height: auto !important;
  }

  #header .custom-logo {
    max-width: 180px;
    height: auto;
  }
	
	#single_foot,#aside-content,footer,#ruby-edge-control,#page-top,#breadcrumb,.stk-toc{
		display:none;
	}
	#header .site__logo {
 	 padding-left: 15px !important;
	}
	#inner-content {
		padding-top:0;
	}
}