@charset "UTF-8";

/* ----------------------------------------------------------------------
 WordPress プリセットスタイル
---------------------------------------------------------------------- */


.post_content a { text-decoration:underline; color:#5f8c15; }
.post_content > *:first-child { margin-top:calc(0.5em - 0.5lh) !important; }
.post_content > *:last-child { margin-bottom:calc(0.5em - 0.5lh) !important; }


/* text and headline */
.post_content p { line-height:1.8; margin:0 0 1.5em 0; }
.post_content h1,
.post_content h2,
.post_content h3,
.post_content h4,
.post_content h5,
.post_content h6 { line-height:1.5; padding:0; font-weight:600; }
.post_content h1 { font-size:200%; margin-bottom:20px; }
.post_content h2 { font-size:140%; margin-bottom:25px; }
.post_content h3 { font-size:120%; margin-bottom:25px; }
.post_content h4 { font-size:120%; margin-bottom:1em; }
.post_content h5 { font-size:110%; margin-bottom:1em; }
.post_content h6 { font-size:110%; margin-bottom:1em; }
.post_content .no_space { margin-bottom:10px; }


/* alignment */
.post_content .alignright { float:right; }
.post_content .alignleft { float:left; }
.post_content .aligncenter { display:block; margin:0 auto 2em; text-align:center; }
.post_content blockquote.alignleft,
.post_content img.alignleft { margin:0 2em 2em 0; }
.post_content .wp-caption.alignleft { margin:0 2em 2em 0; }
.post_content blockquote.alignright,
.post_content img.alignright { margin:0 0 2em 2em; }
.post_content .wp-caption.alignright { margin:0 0 2em 2em; }
.post_content blockquote.aligncenter,
.post_content img.aligncenter,
.post_content .wp-caption.aligncenter { margin-bottom:2em; }


/* image */
.post_content img[class*="align"],
.post_content img[class*="wp-image-"],
.post_content img[class*="attachment-"],
.post_content img.size-full,
.post_content img.size-large,
.post_content .wp-post-image,
.post_content img { height:auto; max-width:100%; display:block; }
.post_content p:has(img) { margin-bottom:70px; }
body.single-post .post_content p:has(img),
body.single-news .post_content p:has(img) { margin-bottom:2em !important; }
.post_content p + p:has(img) { margin-top:70px; }
body.single-post .post_content p + p:has(img),
body.single-news .post_content p + p:has(img) { margin-top:0px !important; }
.post_content .q_button_wrap + p:has(img) { margin-top:120px; }
@media screen and (max-width:1100px) {
  .post_content p + p:has(img) { margin-top:90px; }
  .post_content .q_button_wrap + p:has(img) { margin-top:100px; }
}
@media screen and (max-width:800px) {
  .post_content img { border-radius:7px; }
  .post_content p:has(img) { margin-bottom:30px; }
  .post_content p + p:has(img) { margin-top:30px; margin-bottom:30px; }
  #footer .post_content p:has(img) { margin-bottom:0px; }
  .post_content .q_button_wrap + p:has(img) { margin-top:40px; }
  body.single-post .post_content p + p:has(img),
	body.single-news .post_content p + p:has(img) { margin-top:0px; }
}


/* list */
.post_content li,
.post_content dt,
.post_content dd { line-height:1.8; }
.post_content ul,
.post_content ol,
.post_content dl { margin-bottom:1.5em; }
.post_content ol { list-style:decimal outside none; margin-left:1.5em; }
.post_content ul { list-style:disc outside none; margin-left:1.3em; }
.post_content li > ul,
.post_content li > ol { margin-bottom:0; }
.post_content dt { font-weight:bold; }
.post_content dd { margin-bottom:1em; }
.post_content ul li::marker { color:#84c125; }
/*
.post_content p + ul,
.post_content p + ol,
.post_content p + dl { margin-top:-1.5em; }
.post_content ul + p,
.post_content ol + p,
.post_content dl + p { margin-top:-1.5em; }
*/

/* table */
.post_content table {
  margin:0 0 50px 0; width:100%;
  border-collapse:collapse; table-layout:auto; word-break: break-all; word-wrap: break-all;
}
.post_content .s_table table { margin-bottom:50px; }
.post_content td,
.post_content th { border:1px solid #b4dc77; padding:18px 30px 16px; line-height:1.8; background:none; }
.post_content th { background:none; font-weight:normal; }
@media screen and (max-width:800px) {
  .post_content table { margin:0 0 35px 0; }
}


/* blockquote */
.post_content blockquote {
  position:relative; color:rgba(0, 0, 0, 0.6); margin-bottom:50px; padding:2em 2.4em;
  box-shadow:none; background:rgba(0, 0, 0, 2%); border:none; border-left:3px solid #000;
}
.post_content blockquote:before {  line-height:40px;   top:5px; left:10px; }
.post_content blockquote:after {  text-align:left; line-height:60px;   bottom:10px; right:-2px; }
.post_content blockquote:before,
.post_content blockquote:after {
  content: '"'; font-style:italic; font-size:30px; font-weight:normal; color:#000;
  width:30px; height:30px; position:absolute;
}
.post_content blockquote p { line-height:1.8; }
.post_content blockquote cite{ text-align: right; display: block; border-top: 1px dotted #000; margin: 2em 0 0; padding: 1em 0 0; font-size: 14px; }


/* captions */
.post_content .wp-caption { margin-bottom:2em; background:#fff; border:1px solid #ddd; padding:10px; max-width:100%; }
.post_content .wp-caption-text { text-align:center; line-height:1.5; margin:0 auto; padding:20px 0 10px; font-size:14px; }
.post_content .wp-caption img[class*="wp-image-"] { display:block; margin:0 auto 0; }


/* gallery */
.gallery { margin-bottom:50px; }
.gallery img { border: 0 !important; display:block; margin:0; }
.gallery-item { float:left; margin:0 4px 4px 0; overflow:hidden; position:relative; }
.gallery-columns-1,
.gallery-columns-2,
.gallery-columns-3,
.gallery-columns-4,
.gallery-columns-5,
.gallery-columns-6,
.gallery-columns-7,
.gallery-columns-8,
.gallery-columns-9,
.gallery-columns-10 { margin:0 -4px -4px 0 !important; }
.gallery-columns-1 .gallery-item { max-width:100%; }
.gallery-columns-2 .gallery-item { max-width:calc(50% - 4px); }
.gallery-columns-3 .gallery-item { max-width:calc(100% / 3 - 4px); }
.gallery-columns-4 .gallery-item { max-width:calc(25% - 4px); }
.gallery-columns-5 .gallery-item { max-width:calc(20% - 4px); }
.gallery-columns-6 .gallery-item { max-width:calc(100% / 6 - 4px); }
.gallery-columns-7 .gallery-item { max-width:calc(100% / 7 - 4px); }
.gallery-columns-8 .gallery-item { max-width:calc(100% / 8 - 4px); }
.gallery-columns-9 .gallery-item { max-width:calc(100% / 9 - 4px); }
.gallery-columns-10 .gallery-item { max-width:calc(10% - 4px); }
.gallery-caption {
  background-color:rgba(0, 0, 0, 0.7); color:#fff; font-size:12px; line-height:1.5; margin:0; pointer-events:none;
  padding:6px 8px; position:absolute; bottom:0; left:0; text-align:left; width:100%;
  -webkit-box-sizing:border-box; box-sizing:border-box;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0s;
}
.gallery-item:hover .gallery-caption { transform: translate3d(0, 0, 0); }
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption,
.gallery-columns-10 .gallery-caption { display: none; }
@media screen and (max-width:800px) {
  .gallery { margin-bottom:35px; }
  .gallery-caption { display:none; }
}


/* etc */
.post_content .wp-smiley { border:0; margin-bottom:0; margin-top:0; padding:0; }
.post_content address { margin:0 0 24px 0; line-height:1.8; }
.post_content pre { border-left:5px solid var(--main_color); font-size:14px; margin:0 0 27px 0; line-height:30px; background: repeating-linear-gradient(#eee 0, #eee 30px, #fafafa 30px, #fafafa 60px); padding:0 17px; overflow:auto; }
.post_content .mejs-container { margin: 12px 0 25px; }
.post_content sup { vertical-align: super; font-size: smaller; }
.post_content sub { vertical-align: sub; font-size: smaller; }
.post_content hr { margin-bottom:2em; margin-top:2em; }


/* ブロックエディタ */
.wp-block-social-links a { color:#fff !important; }
.has-small-font-size { font-size:.8125em !important; }
.has-normal-font-size,
.has-regular-font-size { font-size:1em !important; }
.has-medium-font-size { font-size:1.25em !important; }
.has-large-font-size { font-size:2.25em !important; }
.has-huge-font-size,
.has-larger-font-size { font-size:2.625em !important; }
.has-text-align-left { text-align:left !important; }
.has-text-align-right { text-align:right !important; }
.wp-block-embed { margin-bottom:50px; }
.wp-block-image { margin-bottom:50px; }
.wp-block-columns { margin-bottom:50px; }
@media (max-width:800px) {
  .wp-block-embed { margin-bottom:35px; }
  .wp-block-image { margin-bottom:35px; }
  .wp-block-columns { margin-bottom:35px; }
}


/* ブロックエディターのテーブルブロックの調整 */
.wp-block-table { overflow:visible !important; margin-bottom:50px; }
.wp-block-table table { margin-bottom:0; }
.wp-block-table .wp-element-caption { padding:30px 0 0; text-align:center; }
.wp-block-table.is-style-stripes { border-bottom:none !important; }
.wp-block-table.is-style-stripes td,
.wp-block-table.is-style-stripes th,
.wp-block-table .has-background td,
.wp-block-table .has-background th {
  background-color:transparent; border:none !important;
}


/* YouTube */
.post_content iframe[src*="youtube.com"] {
	width: 100% !important;
	max-width: 100% !important;
	aspect-ratio: 16 / 9;
	height: auto !important;
}


/* Google Maps */
.post_content  iframe[src*="google.com/maps"] {
  width: 100% !important;
  max-width: 100% !important;
}




/* END TRIGGER preset.css */