/*!
Theme Name: saimuseiri-2025
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: saimuseiri-2025
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

saimuseiri-2025 is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

body {
  background-color: #fff;
  color: #4b4b4b;
  margin: 0;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

.flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.inner {
  max-width: 1280px;
  margin: auto;
}

h1,
h2 {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
p,
li {
  line-height: 1.55;
}

a {
  color: inherit;
}
img {
  width: 100%;
  height: auto;
}

main {
  margin-top: 0;
  padding: 30px 0;
  background-color: #f2faef;
}

.arrow-ico {
  /* display: flex;
  justify-content: center;
  align-items: center; */
  position: relative;
  text-decoration: underline;
}
.arrow-ico::after {
  content: "";
  background-image: url(img/arrow_p.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.4em;
  position: absolute;
  right: -1.5em;
  top: calc(50% - 0.5em);
  transition: 0.2s;
}

.arrow-ico:hover::after {
  right: -1.65em;
}

.spitem {
  display: none;
}

/* * * * * * * * * * * * * * * * * * * *
 header 
 * * * * * * * * * * * * * * * * * * * */

header {
  position: relative;
  z-index: 100000;
}

.logo .flex {
  gap: 0.6em;
}

.logom {
  padding: 2px;
}

.hnav-menu {
  color: #707070;
  display: flex;
}

.hdnav {
  padding: 4px 0;
}
.hnav-menu a {
  font-size: 14.5px;
  padding: 1em 1.2em;
  display: flex;
  align-items: center;
  position: relative;
}

.hnav-menu a:after {
  content: "";
  display: inline-block;
  background-color: #4b4b4b;
  width: 1px;
  height: 0.8em;
  margin-left: 1em;
  position: absolute;
  right: 0;
}

.hnav-menu a:last-child:after {
  display: none;
}

.gnav {
  margin-top: 1em;
  justify-content: center;
  gap: 2%;
  align-items: stretch;
  padding-bottom: 1em;
}

.gnav a {
  padding: 1em 0;
  text-align: center;
  border-bottom: solid 6px #ebebeb;
  flex-basis: 14%;
  /* flex-basis: 24%; */
  /* font-weight: 500; */
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gnav a img {
  margin: auto;
  width: auto;
}

.gnav a p {
  margin-top: 0.8em;
  margin-bottom: 0;
}

/* * * * * * * * * * * * * * * * * * * *
 toggle menu 
 * * * * * * * * * * * * * * * * * * * */
/* .cp_cont {
  height: 65vh;
} */
.cp_offcm01 {
  position: fixed;
  top: 12px;
  right: 12px;
  display: inline-block;
}
/* menu */
.cp_offcm01 .cp_menu {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 250px;
  height: 100%;
  /* cursor: pointer; */
  -webkit-transition: 0.53s transform;
  transition: 0.53s transform;
  -webkit-transition-timing-function: cubic-bezier(0.38, 0.52, 0.23, 0.99);
  transition-timing-function: cubic-bezier(0.38, 0.52, 0.23, 0.99);
  background-color: #57c280;
}
.cp_offcm01 .cp_menu ul {
  margin: 0;
  padding: 0;
  padding-top: 1em;
}
.cp_offcm01 .cp_menu li {
  list-style: none;
}
.cp_offcm01 .cp_menu li a {
  display: block;
  padding: 0.8em 20px;
  text-decoration: none;
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
}

.cp_offcm01 #cp_toggle01 {
  position: absolute;
  display: none;
  opacity: 0;
}
.cp_offcm01 #cp_toggle01:checked ~ .cp_menu {
  -webkit-transform: translateX(-100vw);
  transform: translateX(-100vw);
}
/* menu toggle */
.cp_offcm01 #cp_toggle01 ~ label {
  display: block;
  cursor: pointer;
  -webkit-transition: 0.5s transform;
  transition: 0.5s transform;
  -webkit-transition-timing-function: cubic-bezier(0.61, 0.37, 1.27);
  transition-timing-function: cubic-bezier(0.61, 0.37, 1.27);
  text-align: center;
  color: #333333;
}
.cp_offcm01 #cp_toggle01:checked ~ label {
  -webkit-transform: translateX(-250px);
  transform: translateX(-250px);
}
.cp_offcm01 #cp_toggle01 ~ label::before {
  content: "";
  display: block;
  width: 34px;
  height: 32px;
  background-color: #57c280;
  border-radius: 6px;
  background-image: url(img/menu-open.svg);
  background-size: 58%;
  background-position: center;
  background-repeat: no-repeat;
}
.cp_offcm01 #cp_toggle01:checked ~ label::before {
  background-image: url(img/menu-close.svg);
  background-size: 50%;
}
/* contents */
.cp_contents {
  color: #333333;
  text-align: center;
}

.cp_gnav a {
  background-color: #fff;
  margin: 1em;
  border-bottom: solid 4px #ebebeb !important;
  text-align: center;
  border-radius: 10px;
}

.cp_offcm01 .cp_menu .cp_gnav a {
  color: inherit;
  padding: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5em;
}

.cp_offcm01 .cp_menu .cp_gnav a p {
  margin: 0;
  flex: 1;
  /* text-align: left; */
}

.cp_offcm01 .cp_menu .cp_gnav a img {
  margin: auto 6px;
  width: 20%;
  max-height: 2em;
}

/* * * * * * * * * * * * * * * * * * * *
 bread 
 * * * * * * * * * * * * * * * * * * * */

.bread {
  height: 70px;
  width: 100%;
  background-color: #dff4e8;
  margin-top: -30px;
  margin-bottom: -20px;
  overflow: auto;
  white-space: nowrap;
}

.bread-inner {
  max-width: 1020px;
  margin: auto;
  padding-top: 15px;
  font-size: 0.8em;
  display: block;
}

.bread a {
  color: #58c280;
}

.bread a:hover {
  text-decoration: underline;
}

/* * * * * * * * * * * * * * * * * * * *
 page 
 * * * * * * * * * * * * * * * * * * * */
.page-wrapper {
  max-width: 1100px;
  margin: auto;
}

.page-content {
  display: flex;
  justify-content: center;
  gap: 1em;
}

/* * * * * * * * * * * * * * * * * * * *
 side 
 * * * * * * * * * * * * * * * * * * * */
.sidebar-cont {
  max-width: 300px;
}

.sidebar-menu {
  list-style: none;
  padding: 1em;
}

.sidebar-menu li a {
  padding: 1em 0;
  display: block;
  color: #58c280;
  background-image: linear-gradient(to right, #58c280 8px, transparent 8px);
  background-size: 10px 1px;
  background-repeat: repeat-x;
  background-position: left bottom;
}

.sidebar-menu li a:hover {
  text-decoration: underline;
}

.sidebar-cont img {
  margin-bottom: 10px;
}

.sidebar-posts-list ul {
  list-style: none;
  padding: 0;
}

.sidebar-posts-list li {
  display: flex;
  gap: 0.6em;
  margin-bottom: 12px;
}

.sidebar-posts-list li:hover {
  opacity: 0.88;
}

.sidebar-posts-list li a {
  margin-bottom: 5px;
  line-height: 1.5;
  font-size: 13px;
  display: block;
}

.sidebar-posts-list .post-date {
  font-size: 11.5px;
  color: #8e8e8e;
}

.widget-post-thumbnail {
  flex: 0 0 120px;
}

.widget-post-thumbnail img {
  width: auto;
  height: 100%;
  border-radius: 4px;
  max-width: 100%;
  object-fit: cover;
}

/* * * * * * * * * * * * * * * * * * * *
 footer 
 * * * * * * * * * * * * * * * * * * * */
footer {
  width: 100%;
  min-height: 200px;
  background-color: #eee;
  padding: 2em;
}

footer .left,
footer .right {
  width: 50%;
}

footer ul {
  padding-top: 0.5em;
}

footer ul li {
  margin-bottom: 0.5em;
}

/*  bottom_bannar */
#bottom_bannar {
  display: block;
  position: fixed;
  /* 追従 */
  z-index: 99999;
  /* 他の要素の下に隠れないように */
  left: 0px;
  bottom: 4px;
  text-align: center;
  opacity: 0;
  width: 100%;
}

#bottom_bannar_cancel {
  width: 15px;
}

.bottom_bannar:hover {
  opacity: 0.8;
  /* ホバーで少し透過 */
}

.fade_off {
  opacity: 0;
  transition: all 1s;
}

.fade_on {
  opacity: 1 !important;
}

.flex_bottom_bannar {
  display: flex;
  padding: 0 1%;
  justify-content: space-around;
}

.flex_bottom_bannar a {
  width: 100%;
}

.flex_bottom_bannar a img {
  width: 100%;
}

.ft-logo {
  width: 300px;
  height: auto;
}

.footer-contact {
  text-align: center;
  font-family: "Zen Maru Gothic", serif;
  margin: auto;
  margin-bottom: 2em;
  max-width: 500px;
}

.footer-contact-title {
  position: relative;
  background-color: #f88391;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  padding: 0.25em 1em;
  width: 84%;
  border-radius: 20px;
  font-weight: 500;
  font-size: 18px;
}

.footer-contact-title:before,
.footer-contact-title:after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  background: #fff;
  transform: rotate(45deg);
}

.footer-contact-box {
  background-color: #fff;
  margin-top: -1.1em;
  padding: 1em;
  color: #7f735c;
  border-radius: 20px;
}

.footer-contact-box h2 {
  font-size: 20px;
  font-weight: 600;
}

.footer-contact-box h2 strong {
  color: #f88391;
}

.footer-contact-cont {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1em;
}

.footer-telnum {
  font-family: "Lato", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-size: 30px;
}

.footer-telnum img {
  width: auto;
}
.footer-mail,
.footer-line {
  background-color: #eee;
  padding: 0.8em;
  border-radius: 10px;
  display: flex;
  align-items: center;
  height: 3em;
}

.footer-mail img {
  width: auto;
  height: 26px;
}

.footer-line img {
  width: auto;
  height: 32px;
}

/* * * * * * * * * * * * * * * * * * * *
 form 
 * * * * * * * * * * * * * * * * * * * */

.form_lead {
  display: flex;
}

.forminator-ui {
  background-color: #f9f9f9 !important;
  padding: 20px !important;
  display: block;
}

.form .form_lead .right {
  width: 25%;
  padding-left: 20px;
}

.form .form_lead .left {
  width: 70%;
  padding-left: 20px;
}

.form_flex_item {
  display: flex;
  align-items: center;
  gap: 2%;
}

.form_flex_item img {
  width: 100px;
}

/* * * * * * * * * * * * * * * * * * * *
 sitemap 
 * * * * * * * * * * * * * * * * * * * */
.wsp-pages-list {
  padding-left: 1em;
}

.wsp-pages-list li {
  padding: 0.4em 0;
}

.wsp-pages-list .children {
  padding-left: 1em;
}

.wsp-pages-list a {
  text-decoration: none;
  border-bottom: dotted 1px;
}

/* * * * * * * * * * * * * * * * * * * *
 ani 
 * * * * * * * * * * * * * * * * * * * */

a:hover {
  transition: 0.2s;
}

a:hover img {
  opacity: 0.8;
}

.gnav a:hover {
  background-color: #dff4e8;
  border-radius: 10px;
  border-color: #a2e3bb;
}

/* * * * * * * * * * * * * * * * * * * *
 archives
 * * * * * * * * * * * * * * * * * * * */

 .archive-articles {
  flex: 1;
}

.article-post {
  margin-bottom: 1em;
  padding: 2em 2.8em;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0px 2px 6px rgba(181, 247, 169, 0.3);
}

.article-post h2 {
  margin-top: 0;
  transition: 0.2s;
  margin-bottom: 0.6em;
  font-size: 32px;
  font-weight: 500;
}

.article-post:hover h2 {
  color: #57c280;
}

.article-post a {
  display: flex;
  gap: 1em;
  align-items: flex-start;
}

.article-post .article-date{
  color: #888;
  font-size: small;
}

.article-post .excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-post .excerpt p{
  margin-top: 0;
}
/* * * * * * * * * * * * * * * * * * * *
 404
 * * * * * * * * * * * * * * * * * * * */
input.search-field {
  padding: 1em;
  min-width: 60%;
}

.search-submit {
  padding: 0.8em 1.6em;
}

/* * * * * * * * * * * * * * * * * * * *
 responsive
 * * * * * * * * * * * * * * * * * * * */

@media screen and (max-width: 1080px) {
  .gnav a {
    flex-basis: 17%;
  }
}

@media screen and (max-width: 480px) {
  .spitem {
    display: block;
  }

  .pcitem {
    display: none !important;
  }

  .inner {
    max-width: 94%;
  }

  .page-content {
    flex-direction: column;
  }

  .bread {
    padding: 0 1em;
  }

  .bread-inner {
    max-width: none;
  }

  .sidebar-cont {
    width: 94%;
    max-width: none;
    margin: auto;
  }

  iframe {
    max-width: 100%;
  }
  .hdnav {
    border-bottom: solid 1px #e8e8e8;
    width: 100% !important;
    max-width: none !important;
    padding: 10px;
    display: block;
  }

  .hdnav .logo {
    width: 100%; /* 親要素の幅を調整 */
    max-width: 72%; /* 最大幅を68%に制限 */
    box-sizing: border-box; /* パディングやボーダーを含める  */
  }

  .hdnav .logo img {
    max-width: 80%;
    height: auto;
    display: block; /* ブロック要素にすることで余白を消す */
  }

  .hnav-menu {
    display: none;
  }

  .sidebar-cont img {
    max-width: 90%;
    margin: auto;
    display: block;
  }

  footer {
    padding: 2em 1em 88px;
  }

  footer .flex {
    flex-direction: column;
    gap: 1em;
  }

  footer .left,
  footer .right {
    width: 100%;
  }

  footer .left > a {
    text-align: center;
    width: 100%;
    display: block;
  }

  .footer-contact-title {
    width: 96%;
    font-size: 16px;
    /* background-color: #bfb098; */
  }

  .footer-contact-box {
    border: none;
    margin-bottom: 20px;
  }

  .footer-contact-box h2 {
    margin-bottom: 0;
  }

  .footer-contact-cont {
    flex-wrap: wrap;
    gap: 0.4em;
    padding: 1em 0.5em;
  }

  .footer-telnum-btn {
    font-family: "Lato", sans-serif;
    display: flex;
    align-items: center;
    gap: 0.2em;
    font-size: 30px;
    width: 100%;
    background-color: #57c280;
    color: #fff;
    border-bottom: solid #43ae78 4px;
    text-align: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0.2em;
    min-height: 2.2em;
  }

  .footer-telnum-btn img {
    width: auto;
  }

  .ft-logo {
    margin: 10px auto;
  }

  .footer-mail,
  .footer-line {
    flex: 1;
    display: flex;
    justify-content: center;
    border-bottom: solid #eaeaea 4px;
    min-height: 3.4em;
  }

  .form_lead {
    flex-direction: column;
    gap: 1em;
  }

  .form .form_lead .right {
    width: 100%;
    padding-left: 0;
  }

  .form .form_lead .left {
    width: 100%;
    padding-left: 0;
  }
}


/* ---- ページタイトル（上部） ---- */
.archive-articles .page-header {
  margin-bottom: 20px;
}
.archive-articles .page-title,
h1.page-title {
    font-weight: 700;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    gap: .5em;
    border-left: 5px solid #208f4b;
    padding-left: 1%;
}
.archive-articles .page-title span,
h1.page-title span {
  color: var(--brand-green-dk);
  background: var(--card-tint);
  padding: .15em .6em;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ---- ページネーション ---- */

.wp-paginate.wpp-modern-grey a, .wp-paginate.wpp-modern-grey .current {
    background: #ffffff !important;;
    border: 1px solid #22904b !important;;
    border-radius: 36px !important;;
    color: #000 !important;;
    padding: 3px 6px !important;;
}

.nav-links { margin-top: 24px; }
.wp-paginate {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 0 0;
}
.wp-paginate .title {
  color: var(--muted);
  margin-right: 6px;
}
.wp-paginate .page,
.wp-paginate .next {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.wp-paginate .page,
.wp-paginate .prev {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.wp-paginate .page:hover,
.wp-paginate .next:hover {
  border-color: var(--brand-green);
  color: var(--brand-green-dk);
}
.wp-paginate .current {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}

