/* WordPress theme additions */
#mainImage,#mainImage_outer,#mainImage_body{opacity:1!important;visibility:visible!important;height:auto!important}
#mainImage img{display:block;max-width:100%;height:auto}
.cf7-placeholder{padding:30px;border:1px dashed #bbb;background:#fafafa;text-align:center}

/* CF7 */
.page-contact .wpcf7 form{margin:0}
.page-contact .wpcf7 table.contactTable{width:100%;border-collapse:collapse}
.page-contact .wpcf7 .contactTable th,.page-contact .wpcf7 .contactTable td{padding:16px 18px;border:1px solid #ddd;vertical-align:top}
.page-contact .wpcf7 .contactTable th{width:30%;font-weight:700;background:#f7f7f7}
.page-contact .wpcf7 input[type=text],.page-contact .wpcf7 input[type=tel],.page-contact .wpcf7 input[type=email],.page-contact .wpcf7 textarea{width:100%;max-width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #ccc;border-radius:0;background:#fff}
.page-contact .wpcf7 textarea{min-height:180px;resize:vertical}
.page-contact .wpcf7 .required{display:inline-block;margin-left:7px;padding:2px 6px;background:#e51b0c;color:#fff;font-size:11px;line-height:1.4}
.page-contact .wpcf7 .contact-submit{text-align:center;margin:28px 0 0}
.page-contact .wpcf7 input[type=submit]{min-width:240px;padding:15px 30px;border:0;background:#e51b0c;color:#fff;font-size:16px;font-weight:700;cursor:pointer}

/* News archive */
.news-archive #mainTopics{margin-top:0}
.news-archive .topics{margin:0;padding:0;list-style:none}
.news-archive .topic{padding:22px 0;border-bottom:1px solid #ddd}
.news-archive .topic:first-child{border-top:1px solid #ddd}
.news-archive .topic .date{margin:0 0 6px;font-size:13px;color:#777}
.news-archive .topic h3{margin:0 0 8px;font-size:19px;line-height:1.55}
.news-archive .topic .description{margin:0 0 8px;line-height:1.8}
.news-pagination{margin:42px auto 20px;text-align:center}
.news-pagination ul{display:flex;justify-content:center;gap:7px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.news-pagination a,.news-pagination span{display:flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;box-sizing:border-box;border:1px solid #222;color:#222;text-decoration:none}
.news-pagination .current,.news-pagination a:hover{background:#222;color:#fff}

/* Single news */
.news-entry{max-width:900px;margin:0 auto}
.news-entry__header{padding:4px 0 24px;border-bottom:1px solid #ddd;margin-bottom:30px}
.news-entry__date{margin:0 0 10px;color:#777;font-size:14px}
.news-entry__title{margin:0;font-size:30px;line-height:1.55;font-weight:700}
.news-entry__thumb{margin:0 0 30px}.news-entry__thumb img{display:block;width:100%;height:auto}
.news-entry__body{font-size:16px;line-height:2}.news-entry__body img{max-width:100%;height:auto}
.news-entry__body h2,.news-entry__body h3,.news-entry__body h4{margin-top:2em;line-height:1.5}
.post-navigation-custom{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;margin-top:55px;padding:24px 0;border-top:1px solid #bbb;border-bottom:1px solid #bbb;align-items:stretch}
.post-navigation-custom a{color:inherit;text-decoration:none}
.post-navigation-custom__prev a,.post-navigation-custom__next a{display:flex;flex-direction:column;gap:6px;height:100%}
.post-navigation-custom__next{text-align:right}.post-navigation-custom span{font-size:12px;color:#777}.post-navigation-custom strong{font-size:14px;line-height:1.55;font-weight:600}
.post-navigation-custom__index{display:flex;align-items:center;padding:0 18px;border-left:1px solid #ddd;border-right:1px solid #ddd;white-space:nowrap}

@media screen and (max-width:767px){
 .page-contact .wpcf7 .contactTable,.page-contact .wpcf7 .contactTable tbody,.page-contact .wpcf7 .contactTable tr,.page-contact .wpcf7 .contactTable th,.page-contact .wpcf7 .contactTable td{display:block;width:100%;box-sizing:border-box}
 .page-contact .wpcf7 .contactTable tr{margin-bottom:18px}
 .page-contact .wpcf7 .contactTable th{border-bottom:0;padding:11px 12px}
 .page-contact .wpcf7 .contactTable td{padding:12px}
 .page-contact .wpcf7 input[type=submit]{width:100%;min-width:0}
 .news-archive .topic{padding:17px 0}.news-archive .topic h3{font-size:16px}
 .news-entry__header{margin-bottom:22px}.news-entry__title{font-size:22px}.news-entry__body{font-size:15px;line-height:1.9}
 .post-navigation-custom{grid-template-columns:1fr 1fr;gap:0;padding:0;border-bottom:1px solid #bbb}
 .post-navigation-custom__prev,.post-navigation-custom__next{padding:16px 8px}
 .post-navigation-custom__next{border-left:1px solid #ddd}
 .post-navigation-custom__index{grid-column:1/-1;grid-row:2;border:0;border-top:1px solid #ddd;justify-content:center;padding:14px}
}

/* 404 / Thanks */
.error404-content #mainContents,
.thanks-content #mainContents{float:none;width:100%;max-width:980px;margin-left:auto;margin-right:auto}
.error404-content .mainArticles,
.thanks-content .mainArticles{padding-bottom:50px}
.error404-jp{font-size:.62em}
.error404-article .article_body,
.thanks-article .article_body{max-width:780px;margin:0 auto;text-align:center}
.error404-article h3,
.thanks-article h3{margin-bottom:28px}
.error404-article p,
.thanks-article p{line-height:2}
.error404-actions,
.thanks-actions{margin-top:38px;text-align:center}
.thanks-note{margin-top:26px;padding:20px;border-top:1px solid #ddd;border-bottom:1px solid #ddd;font-size:14px}

@media screen and (max-width:767px){
 .error404-content #mainContents,.thanks-content #mainContents{width:100%}
 .error404-content .mainArticles,.thanks-content .mainArticles{padding-bottom:25px}
 .error404-article .article_body,.thanks-article .article_body{text-align:left}
 .error404-article h3,.thanks-article h3{text-align:center;font-size:22px;line-height:1.5}
 .error404-article p,.thanks-article p{line-height:1.9}
 .error404-actions,.thanks-actions{text-align:center;margin-top:28px}
 .thanks-note{padding:15px 0;font-size:13px}
}


/* Privacy policy - editor content compatibility
   古い privacy.html が固定ページ本文に残っていてもレイアウトを整える */
body.page .privacy-page,
body.page .privacy-content-page {
  width: 95%;
  max-width: 1032px;
  margin: 0 auto;
  box-sizing: border-box;
}

body.page .privacy-page .privacy-content,
body.page .privacy-content-page .privacy-content {
  width: 100%;
  max-width: 1032px;
  margin: 0 auto;
  box-sizing: border-box;
  line-height: 1.9;
}

body.page .privacy-page > h2 {
  margin: 0 0 30px;
  font-size: 32px;
  line-height: 1.45;
}

body.page .privacy-page .privacy-content h3,
body.page .privacy-page .privacy-content h4,
body.page .privacy-content-page .privacy-content h3,
body.page .privacy-content-page .privacy-content h4 {
  display: block;
  width: 100%;
  margin: 34px 0 14px;
  padding: 0 0 9px;
  border: 0;
  border-bottom: 1px solid #222;
  box-sizing: border-box;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  text-align: left;
}

body.page .privacy-page .privacy-content p,
body.page .privacy-content-page .privacy-content p {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  padding: 0;
  line-height: 1.9;
  box-sizing: border-box;
}

body.page .privacy-page .privacy-content ul,
body.page .privacy-content-page .privacy-content ul {
  margin: 0 0 22px;
  padding: 0 0 0 1.6em;
  box-sizing: border-box;
}

body.page .privacy-page .privacy-content li,
body.page .privacy-content-page .privacy-content li {
  margin: 0 0 8px;
  padding: 0;
  line-height: 1.8;
}

/* 固定ページ本文に #contents 一式を貼る新HTMLにも対応 */
body.page .privacy-content-page#contents {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.page .privacy-content-page #mainContents {
  float: none;
  width: 100%;
}

body.page .privacy-content-page .article_outer {
  max-width: 1032px;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

/* Footer privacy link: お問い合わせと同じメニュー内 */
#footer .topMenu li a[href*="/privacy/"] {
  display: block;
}

@media screen and (max-width: 767px) {
  body.page .privacy-page,
  body.page .privacy-content-page .article_outer {
    width: 90%;
  }

  body.page .privacy-page > h2 {
    margin-bottom: 22px;
    font-size: 24px;
  }

  body.page .privacy-page .privacy-content h3,
  body.page .privacy-page .privacy-content h4,
  body.page .privacy-content-page .privacy-content h3,
  body.page .privacy-content-page .privacy-content h4 {
    margin-top: 28px;
    font-size: 16px;
  }

  body.page .privacy-page .privacy-content p,
  body.page .privacy-content-page .privacy-content p,
  body.page .privacy-page .privacy-content li,
  body.page .privacy-content-page .privacy-content li {
    font-size: 14px;
  }
}


/* Privacy internal headings restore */
body.page .privacy-page .privacy-content h4,
body.page .privacy-content-page .privacy-content h4 {
  margin: 34px 0 14px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid #222;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
  text-align: left;
}

@media screen and (max-width: 767px) {
  body.page .privacy-page .privacy-content h4,
  body.page .privacy-content-page .privacy-content h4 {
    margin-top: 28px;
    font-size: 16px;
  }
}


/* Privacy heading final override */
body.page #mainArticles .article.privacy-page .privacy-content h3,
body.page #mainArticles .article.privacy-page .privacy-content h4,
body.page .privacy-content-page #mainArticles .article .privacy-content h3,
body.page .privacy-content-page #mainArticles .article .privacy-content h4 {
  display: block !important;
  width: 100% !important;
  margin: 34px 0 14px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #222 !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}

/* basic.css の h3::first-line 40px をプラポリ内だけ解除 */
body.page #mainArticles .article.privacy-page .privacy-content h3::first-line,
body.page .privacy-content-page #mainArticles .article .privacy-content h3::first-line {
  font-size: 17px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

@media screen and (max-width: 767px) {
  body.page #mainArticles .article.privacy-page .privacy-content h3,
  body.page #mainArticles .article.privacy-page .privacy-content h4,
  body.page .privacy-content-page #mainArticles .article .privacy-content h3,
  body.page .privacy-content-page #mainArticles .article .privacy-content h4 {
    margin-top: 28px !important;
    font-size: 16px !important;
  }

  body.page #mainArticles .article.privacy-page .privacy-content h3::first-line,
  body.page .privacy-content-page #mainArticles .article .privacy-content h3::first-line {
    font-size: 16px !important;
  }
}
