/*
Theme Name: kagblock-hokusetu
Author: kag
Text Domain: kagblock
*/

body {
	margin: 0;
	overflow-x: hidden;
	font-size:16px;
}

/* clearfix */
.wp-block-post-content::after , .clear::after{
	clear: both;
	content: "";
	display: block;
}


/* reset */
* {box-sizing: border-box;}
html {scroll-behavior: smooth;}

a{text-decoration: none;}
article nav li.wp-block-navigation-item:hover { background:#fff; color: #1b62a3;}

img {max-width: 100%;height: auto;}

.wp-block-embed{text-align: center;}
iframe {max-width: 100%;}
.wp-block-embed iframe{height: auto;width: 100%;}

.wp-block-column{padding:8px;}

figure.wp-block-gallery {justify-content: center;}
figure.wp-block-gallery figure {flex-grow: 0;}

.post-meta {
	display: flex;justify-content: flex-start;
	font-size: var(--wp--preset--font-size--megane-min);
}
.post-meta div {
	margin-top: 0;
	margin-right: 10px;
}
.taxonomy-post_tag a{
	display: inline-block;
	background-color: #e9e9e9;
	padding: 0 5px;
	border-radius: 3px;
}

:where(.wp-block-group.has-background) {padding:0;}
p.has-background, 
h1.has-background, h2.has-background, h3.has-background, h4.has-background, h5.has-background, h6.has-background {padding: 0.5em;}


main,.entry-content.wp-block-post-content{margin:0;}
.wp-site-blocks > * + * {margin-block-start: 0;}


/* ヘッダー 
header.site-header {
	z-index: 100;
	position: fixed;
	width: 100%;
	top: 0;
}*/

/* ナビゲーション */
@media (min-width: 600px) {/* デフォルトのブレークポイント無効化. */
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none;
  }
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }
}


@media (min-width: 781px) { /* 新しいブレークポイント設定. */
  /* メニューを表示. */
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    background-color: inherit;
    display: block;
    position: relative;
    width: 100%;
    z-index: auto;
  }
.wp-block-navigation li {
  border-right: solid 1px #000;
  padding: 6px 8px !important;
}
.wp-block-navigation li:first-child {
  border-left: solid 1px #000;
}
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none;
  }
}
 @media (max-width: 780px) {  /* ナビのブレークポイント */
nav.is-responsive ,.wp-block-navigation__responsive-close button{
	position: absolute;
	top: 2px;
	right: 2px;
	padding: 0.5em;
	border: solid 1px #000;
	background: #fff;
}
#headbar .lt {
	margin-right: 5.5em;
	min-height: 3em;
}
.wp-block-navigation li {
  padding: 0.5em 0 !important;
}

}

/* フッター */
footer.site-footer {margin: 0;word-break: keep-all;position: relative;}
footer.site-footer > :first-child {margin-top: 0;}

/* pagetop */
.pagetop {
	cursor: pointer;
	position: fixed;
	right: 1vw;
	bottom: 4.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background: rgba(0,0,0,0.6);
	color: #fff;
	border: solid 1px #fff;
	border-radius: 50%;
	transition: .3s;
	opacity: 0;
	z-index: 50;
}
.pagetop:hover {
	background: #333;
}

/* main 
.anc {padding-top:1em;}
:target {scroll-margin-top: 90px;}*/
/*main{padding-top:3em;} ヘッダーfix上部*/
/*@media (max-width: 780px) { 
main{padding-top:4.8em;} ヘッダーfix上部
}*/

main header {
	display: none;
}
a:hover {background: rgba(255,255,255,0.4);}

/* +++++ add +++++ */
p,button{font-size:16px;}
.mincho{font-family:serif;}
.widfit {max-width: fit-content !important;}
.mauto {margin:auto;}
.j_even {justify-content:space-evenly;}
.txt-just{text-align: justify;}
.txtwhite, .txtwhite a{color: #fff;}
.txtshadow {text-shadow: 5px 0 10px #fff,0 5px 10px #fff,-5px 0 10px #fff,0 -5px 10px #fff,0 0 2px #fff;}
.boxshadow {box-shadow: 2px 1px 8px #666;}
.tategaki {writing-mode: vertical-lr;}
.nomark ul{padding: 0;}
.nomark li {list-style: none;}

.div3bl{flex-wrap: wrap;}
.div3bl figure {width: 290px;max-width: 45vw;}
@media(max-width:570px){
.grid3-2 {grid-template-columns: repeat(2, minmax(0, 1fr));}
}

.more a::after {
	content: "＞";
	display: inline-block;
}
.tri a::after {
	content: "\025B6";
	display: inline-block;
}

summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	padding:0.5em;
	border:solid 1px #000;
}
summary::-webkit-details-marker {display: none;}
summary::after{content:"▼";}
details[open] summary::after{content:"▲";}
details {border-bottom:solid 1px #333;}
details div{padding-bottom:0.5em;}

a[href*=".pdf"]::before {content: url('/media/fileicon/pdf60.png');}
a[href*=".doc"]::before,a[href*=".docx"]::before {content: url('/media/fileicon/word60.png');}
a[href*=".xls"]::before,a[href*=".xlsx"]::before {content: url('/media/fileicon/excel60.png');}
a[href*=".pptx"]::before {content: url('/media/fileicon/ppt60.png');}
a[href*=".zip"]::before {content: url('/media/fileicon/zip60.png');}

/* post */
#tinymce {font-family: sans-serif;}
body.single article .entry-content .alignright {
	float: right;
	margin: 0.5em 0 0.5em 1em;
}
body.single article .entry-content .alignleft {
	float: left;
	margin: 0.5em 1em 0.5em 0;
}
body.single article .entry-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
body.single article .entry-content hr.kugiri {clear: both;
	margin: 1.5em 0;
	visibility: hidden;
}

/*category*/
.wp-block-query-pagination{color:var(--wp--preset--color--color-03);margin-top:2em !important;}
.wp-block-query-pagination .page-numbers {
	padding: 0 8px;
	border: solid 1px var(--wp--preset--color--color-03);
}
.wp-block-query-pagination .current{background: #f3fff0;color:#000;}
.wp-block-query-pagination .dots {border: none;}


/*お問合せ*/
.smf-item__description {
	color: #cc3033;
}
.smf-text-control__control {
	width: 100%;
	font-size: 1em;
}
body.page-privacy-policy main header {display: block;}
body.page-privacy-policy main header h1 {
	margin: 1em auto !important;
	text-align: center;
}

