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

body {
	margin: 0;
	overflow-x: hidden;
	font-size: 16px;
}
/*@media(min-width: 980px) {
	body:lang(ja) {font-size: 18px;	}
}*/

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

/* reset */
* {box-sizing: border-box;}
html {scroll-behavior: smooth;}
main {overflow-x: hidden;background:#fff;}

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

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

:where(.wp-block-group.has-background),
:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)), 
:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)) {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;}


/* Links
--------------------------------------------- */
a {
	background-color: transparent;
	color: #004192;
	text-decoration: none;
}
a:hover, a:active {
	color: #19a5d2;
	background: rgba(210, 216, 232, 0.4);
	transition-duration: 0.6s;
}
header a:hover {background: none;}

/* ヘッダー */
@media(min-width:600px){
.wp-block-navigation-link {border-bottom: solid 1px #000;}
.wp-block-navigation-link:hover {border-bottom: solid 2px #a4d8e3;}
}
@media(max-width:599px){
#hmenu {border:solid 2px #303c68 !important;}
#modal-1-content{
	ul > li{padding:10px 0;border:solid 1px;margin-bottom:4px;width:14em;}
	ul li ul{margin-top:10px;padding:5px 0 0 0;border-top:dotted 1px;}
	ul li ul li{border: none;}
}
}

/* ナビゲーション
@media(max-width:600px){
	#masthead{display: block;}
	.sphead{text-align: center;}
	.spfoot{position: fixed;bottom: 0;z-index: 300;background: #fff;padding:0;}
	.spfootbtn{max-width:100vw;}
}
.main-navigation ul ul {
	padding: 0.2em 0.5em 0 0.5em;
	margin: 0 -1em;
}
.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul li:hover > ul, .main-navigation ul li.focus > ul {
	left: auto;
	transform: scaleX(1);
}

.main-navigation li {
	border-right: solid 1px #202c5c;
}
.main-navigation li:first-child {
	border-left: solid 1px #202c5c;
}
.main-navigation ul ul li {
	border-left: none !important;
	border-right: none !important;
	border-bottom:none !important;
	border-top: dotted 1px #202c5c;
	word-break: keep-all;
}
.wp-block-navigation__submenu-icon.wp-block-navigation-submenu__toggle {
	margin: 0 4px 0 0;
	color: #999;
}
.main-navigation a {
	display: block;
	text-decoration: none;
	color: #202c5c;
	font-size: 110%;
	align-self: center;
	font-weight: bold;
	line-height: 1;
	transition: all 0.3s;
	padding: 0.4em 0.2em;
}
.main-navigation a:hover {
	background: #202c5c;
	color: #fff !important;
} 
@media (min-width:600px) and (max-width: 1250px){
.main-navigation a {font-size: 1.6vw !important;}
}

@media(max-width:599px){
.navi{position:relative;padding:10px !important;border:solid 1px;z-index:300;}
}
*/

/* フッター */
#footerall ul {
	font-size: 16px;
	padding: 0;
	list-style: none;
	margin: 0 0 1.5em 0;
}
#footerall li{
  padding-left: 0.5em;
}
#footerall .trib a::before {
	content: "\25b6";
}
#footerall .bnr img {
	max-width: 160px;
	max-height:40px;
}
#footerall .bnr li {
	margin-bottom: 5px;
}
.martop1{margin-top:1em;}
.footerlink div {margin: 0 auto;}

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

/* post */
.wp-block-latest-posts__list li {display:grid;margin-bottom:6px;border-bottom:dotted 1px #000;}
.wp-block-latest-posts__list li .wp-block-latest-posts__post-title{order:2;}
.wp-block-latest-posts__list li .wp-block-latest-posts__post-date{order:1;}
body.single p {margin:1em 0;}
body.single img.aligncenter {display:block;margin:auto;}
body.single img.alignright {float:right;}
body.single img.alignleft {float:left;}

/* +++++++++++++++++++++ add +++++++++++++++++++++ */
.nodisp{display:none;}
.mincho{font-family:serif;}
.wordkeep{word-break: keep-all;}
.nomark ul{padding: 0;}
.nomark li {list-style: none;}

.widfit {max-width: fit-content !important;}
.mauto {margin:auto;}
.j_even {justify-content:space-evenly;}
.flex_wrap {flex-wrap: wrap !important;}
.txt-just{text-align: justify;}
.txtwhite, .txtwhite a{color: #fff;}
.txtaka, .txtaka a{color: #c00;}
.txtshadow {text-shadow: 5px 0 10px #fff,0 5px 10px #fff,-5px 0 10px #fff,0 -5px 10px #fff,0 0 2px #fff;}

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


