/*　メインコンテンツ全体　*/
/*　レイアウト　*/
.maincontents {
    background-image: url(../img/bg_paper.jpg);
    display: grid;
    grid-template-columns: 1fr minmax(270px,1200px) 1fr;
    padding: 0 0 2rem 0;
    background-repeat: repeat;
    background-position: center;
    background-size: auto;
    background-blend-mode: normal;
    opacity: 0.9; /* ほんの少し透かすと“紙感”アップ */
    filter: saturate(0.9) contrast(1.02);
}
.maincontents h1 {
    grid-area: 1 / 1 / 1 / 4;
}
.maincontents article {
    grid-column-start: 2;
    grid-row-start: 2;
    background-color: rgba(253, 253, 253, 0.8);
    padding: clamp(16px, 4vw, 32px);
    background: rgba(255, 255, 255, 0.92); /* 透明度は 0.9〜0.95 が読みやすい */
    border-radius: 16px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(1px); /* 対応ブラウザで紙の下をほんのり馴染ませる */
    -webkit-backdrop-filter: blur(1px);
    isolation: isolate; /* シャドウの重なりを安定させるため */
}
.maincontents .prose {
  line-height: 1.9;
  font-size: clamp(15px, 1.6vw, 17px);
}
.maincontents img,
.maincontents figure,
.maincontents iframe {
  border-radius: 10px;
  overflow: hidden;
}
/*　ログインプラグインレイアウト　*/
#wpmem_login {
    margin: auto;
}

/*　スタイリング　*/

.maincontents h1 {
    font-size: 1.8rem;
    text-align: center;
    padding: 3rem 1.5rem;
    background-image: url(../img/heading_bg.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-bottom: 2rem;
} 
.maincontents article h2 {
    margin: 1.6rem 0 .8rem 0;
    color: #3A533A;
    border-bottom: 2px dotted #C8C2B4;
}
.maincontents article h3 {
    margin: 2rem 0 .5rem 0;
    padding: 0 0 0 .7rem;
    color: #3A533A;
    font-weight: 900;
    border-left: 5px solid #8A9D87;
}
.maincontents article h4 {
    color: #4C513F;
    font-weight: 900;
}
.maincontents article h5 {
    font-weight: 900;
    border-bottom: 1px solid #C8C2B4;
}
.maincontents article p {
    line-height: 1.8rem;
    margin-bottom: 1rem;
}
.maincontents ul {
    list-style: none;
    padding-left: 1.2em;
    margin: 1rem 0;
}
.maincontents ul li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.5em;
}
.maincontents ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.6em;
    height: 0.6em;
    background-color: #C8C2B4; /* メインカラー */
    border-radius: 50%;
}
.maincontents ol {
    list-style-type: decimal;
    margin: 1rem 2rem;
}
.maincontents ol li {
    margin-bottom: 0.5em;
}
.maincontents a {
    color: #3A533A;
}
.maincontents a:hover {
    color: #8A9D87
}
.maincontents article pre {
    background-color: #C8C2B4;
    padding: .7rem;
    margin: 2rem 1rem;
    white-space: pre-wrap;
} 
.maincontents article code {
    background-color: black;
    color: #C8C2B4;
    padding: .5rem;
}
.maincontents article figure {
    padding: 1rem;
}
.wp-element-caption{
  font-size:0.85rem;
  color:#555;
  margin-top:6px;
  text-align:center;
  padding-top:4px;

}

/* contactform関連 */
.wpcf7 form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.wpcf7 label {
  font-weight: 600;
  font-size: 0.95rem;
  display: grid;
  gap: 6px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.wpcf7 textarea {
  min-height: 160px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  background: #333;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  width: fit-content;
}

.wpcf7 input[type="submit"]:hover {
  opacity: 0.85;
}

.wpcf7 .consent {
  font-weight: normal;
}

.wpcf7 .wpcf7-not-valid-tip {
  font-size: 0.85rem;
}

.wpcf7 .wpcf7-response-output {
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
}
.contact-consent {
  margin-top: 4px;
  padding: 14px 16px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-consent .wpcf7-list-item {
  margin: 0;
}

.contact-consent .wpcf7-acceptance {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-consent input[type="checkbox"] {
  margin: 0.25em 0 0;
  transform: scale(1.15);
}

.contact-consent span {
  display: inline;
}
/**/
/**/
/* メディアクエリ　タブレット～PCサイズ */
/**/
/**/
@media screen and (min-device-width: 900px) and (max-width: 1250px) {

    /*　メインコンテンツ全体せ　*/
    .maincontents {
        grid-template-columns: 1fr;
        padding: 80px 5%;
    }
    .maincontents article {
    grid-column-start: 1;
    }

}
/**/
/**/
/* メディアクエリ　スマホ～タブレットサイズ */
/**/
/**/
@media screen and (min-device-width: 601px) and (max-width: 899px) {

    /*　メインコンテンツ全体　*/
    .maincontents {
        grid-template-columns: 1fr;
        padding: 80px 5%;
    }
    .maincontents article {
    grid-column-start: 1;
    }
    .maincontents .is-layout-grid {
        grid-template-columns: 1fr;
    }
}

/**/
/**/
/* メディアクエリ　スマホサイズ */
/**/
/**/
@media screen and (max-width: 600px) {

    /*　メインコンテンツ全体　*/
    .maincontents {
        grid-template-columns: 1fr;
        padding: 80px 5%;
    }
    .maincontents article {
    grid-column-start: 1;
    }
    .maincontents .is-layout-grid {
        grid-template-columns: 1fr;
    }
}
/**/
/**/
/* メディアクエリ　ちっさいサイズ */
/**/
/**/
@media screen and (max-width: 390px) {
    
}