@charset "UTF-8";

@font-face{ 
  font-family: "APJapanesefont";
  src: url("https://kokura-catholic.com/wp/wp-content/uploads/fonts/APJapanesefont.woff") format("woff"),
  url("https://kokura-catholic.com/wp/wp-content/uploads/fonts/APJapanesefont.eot") format("eot");
}
h2 {
font-family: "APJapanesefont";
}



.grecaptcha-badge { visibility: hidden; }
h1 {
	font-family: APJapanesefont;
}
h2 {
	font-family: APJapanesefont;
  background: bisque;
  box-shadow: 0px 0px 0px 5px bisque;
  border: dashed 2px white;
  padding: 0.2em 0.5em;
}
h6 {
  font-family: APJapanesefont;
  padding: 0.2em 0.5em;
  font-size: 1.5em;
  position: relative;
  padding-left: 2em;
}

/* 外側の●（塗り） */
h6::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2em;
  height: 1.2em;
  background-color: #f5d1a7;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #f5d1a7; 
  border: 2px dashed white; 
  box-sizing: border-box;
}

footer .copySection p:nth-child(2) {
    display:none !important;
}

header.siteHeader{
  background-color: transparent;
}
div.page-header{
  background-color: transparent;
  background-image:url(https://kokura-catholic.com/wp/wp-content/uploads/2021/02/crover.png);
  background-size: auto 40%;
  background-position: bottom;
  background-repeat:repeat-x;
}
div.page-header h1{
  color: black;
}


/****************************************
  行事予定表
****************************************/
#news_wrap {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
max-width: 700px;
}

#news_wrap .month {
display: flex;
align-items: center;
background-color: gold;
text-align: center;
border-radius: 10px;
padding: 3px 5px;
margin: 10px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

#news_wrap .month>img {
width: 80px;
}

#news_wrap .month a {
text-decoration: none;
color: black;
font-family: "APJapanesefont";
font-size: 1.2em;
display: block;
width: 160px;
padding: 5px 0px;
text-wrap: nowrap;
border-radius: 10px;
margin: 5px 0px;
border: 2px solid white;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

#news_wrap .month a img {
width: 20px;
}

#news_wrap .month a.calendar {
background-color: palegreen;
}

#news_wrap .month a.eat {
background-color: pink;
}

#news_wrap .month a:active {
box-shadow: none;
transform: translate(2px, 2px);
}

#news_wrap .month a:hover {
opacity: 0.6;
}

#news_wrap .gray {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
filter: grayscale(100%);
pointer-events: none;
}


/****************************************
  絵本の会
****************************************/
.ehon, .ehon *{
    all: initial;
    display: block;
    user-select: none;
}

.ehon{
    width: 100%;
}
.ehon figure, .ehon figure *{ cursor: pointer; }
.ehon figure{
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-bottom: 1em;
    padding: 20px;
    box-sizing: border-box;
    background-color: papayawhip;
    transition: 0.2s;
}
.ehon figure:first-child:after{
    content: "";
    position: absolute;
    top: 0px; left: 0px;
    display: block;
    width: 40px;
    height: 40px;
    background-image: url(https://kokura-catholic.com/wp/wp-content/uploads/event_ehon/new.png);
}
@media (max-width: 480px){
  .ehon figure{ flex-wrap: wrap; }
  .ehon figure img{ display: block; margin: 0 auto; }
}
.ehon figure:hover{
    transform: scale(1.1)
}
.ehon figure figcaption time{
    color: maroon;
}
.ehon img{
    display: block;
    width: 100%;
    max-width: 200px;
    object-fit: cover;
}
.show_img{
    position: fixed;
    top:0px; left: 0px;
    display: flex;
    gap: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 80px 20px 20px 20px;
    box-sizing: border-box;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    animation: show_img 0.5s forwards;
}
.show_img img{
    display: block;
    width: 95%;
    height: 95%;
    max-width: fit-content;
    max-height: fit-content;
}
.show_img .bt_close, .show_img .bt_close *{
    user-select: none;
    cursor: pointer;
}
.show_img .bt_close{
    position: relative;
    display: block;
    width: 38px;
    aspect-ratio: 1 / 1;
    background-color: rgba(0,0,0,0.5);
    border-radius: 38px;
}
.show_img .bt_close:before,
.show_img .bt_close:after{
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    display: block;
    width: 70%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}
.show_img .bt_close:before{ transform: translate(-50%,-50%) rotate(45deg); }
.show_img .bt_close:after{ transform: translate(-50%,-50%) rotate(135deg); }

@keyframes show_img {
    0%{ opacity: 0; }
    100%{ opacity: 1; }
}