/* 下層ページ共通：グリーンの背景と上端の曲線。
 * 使用例: <section class="page-section-green">...</section>
 * 上部の余白も含むため、他の背景や曲線用の要素は不要です。
 * --page-green / --page-curve-height で色・曲線の高さを変更できます。
 */
.page-section-green {
    --page-green: #a5e5d1;
    --page-curve-height: 115px;
    position: relative;
    isolation: isolate;
    background: var(--page-green);
    margin-top: var(--page-curve-height);
    padding: 70px 0 120px;
}
.page-section-green::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: var(--page-curve-height);
    bottom: 100%;
    left: 0;
    background: var(--page-green);
    clip-path: ellipse(65% 100% at 50% 100%);
}
/* 投稿個別ページ：背景は全幅、記事は読みやすい幅に保持。 */
body.single { background: #fffefa; }
.single-page .page-heading h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.55; }
.single-page .entry-content h2 { position: relative; font-size: clamp(23px, 2.5vw, 28px); line-height: 1.6; padding-left: 44px; margin: 2em 0 1em; }
.single-page .entry-content h2::before { content: ''; position: absolute; left: 0; top: .8em; width: 30px; height: 2px; background: #ff791f; transform: translateY(-50%); }
.single-page .entry-content h3 { font-size: clamp(20px, 2vw, 23px); line-height: 1.6; margin: 1.8em 0 1em; }
.single-page .post-navigation { margin-top: 56px; padding-top: 28px; border-color: #527d6e; }
.single-page .post-navigation .nav-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.single-page .post-navigation .nav-back { text-align: center; }
.single-page .post-navigation .nav-back a { justify-content: center; }
.single-page .post-navigation .nav-next { grid-column: 3; }
.single-page .post-navigation a { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; width: 180px; max-width: 100%; min-height: 48px; padding: 12px 22px; border: 1px solid #182c27; border-radius: 6px; font-size: 14px; font-weight: 700; }
.single-page .post-navigation a:hover { background: #182c27; color: #fffefa; }
@media (max-width: 540px) {
    .single-page .post-navigation .nav-links { gap: 8px; }
    .single-page .post-navigation a { padding: 10px 8px; gap: 4px; font-size: 12px; }
}
.news-page .pagination { margin-top: 48px; }
.news-page .pagination .nav-links { justify-content: center; align-items: center; gap: 8px; }
.news-page .pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; padding: 8px 12px; }
.news-page .pagination .dots { border-color: transparent; min-width: auto; }
.news-page .pagination a:hover { background: #182c27; color: #fffefa; }


/* お知らせ一覧 */
.news-page { background: #fffefa; }
.news-page-container { width: calc(100% - 48px); max-width: 780px; margin-inline: auto; }
.news-list .news-entry { display: grid; grid-template-columns: 18px 100px minmax(0, 1fr); padding: 22px 0; min-height: 70px; white-space: normal; }
.news-list h2 { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.news-list a:hover { text-decoration: underline; text-underline-offset: 5px; }
.news-page .page-numbers { border-color: #527d6e; }
.news-page .empty-state { background: transparent; }
@media (max-width: 700px) {
    .news-page-container { width: calc(100% - 40px); }
    .news-list .news-entry { grid-template-columns: 18px 90px minmax(0, 1fr); gap: 12px; }
    .news-list h2 { font-size: 16px; }
}
/* お問い合わせ / Contact Form 7 */
.contact-page { background: #fffefa; }
.contact-page-container { width: calc(100% - 48px); max-width: 820px; margin-inline: auto; }
.contact-introduction { margin-bottom: 38px; }
.contact-introduction h2 { position: relative; padding-left: 42px; font-size: clamp(22px, 2.5vw, 28px); line-height: 1.6; margin-bottom: 20px; }
.contact-introduction h2::before { content: ''; position: absolute; width: 28px; height: 2px; background: #ff791f; left: 0; top: .8em; }
.contact-introduction p { line-height: 1.9; }
.contact-form-panel { background: #fffefa; border-radius: 20px; padding: 44px 48px; }
.contact-form-note, .contact-policy-guide { font-size: 13px; line-height: 1.9; }
.contact-policy-guide { margin: 12px 0 34px; }
.contact-policy-guide a { text-decoration: underline; text-underline-offset: 4px; }
.contact-required, .contact-optional { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: 11px; line-height: 1.6; font-weight: 500; vertical-align: middle; }
.contact-required { color: #b42318; background: #fee4e2; }
.contact-optional { color: #175cd3; background: #e0edff; }
.contact-form-content { font-size: 16px; }
.contact-form-content > :last-child { margin-bottom: 0; }
.contact-page .contact-field { margin-bottom: 28px; }
.contact-page .contact-field > label { display: block; font-weight: 700; margin-bottom: 10px; }
.contact-page .contact-field > label span { margin-left: 8px; }
.contact-page .wpcf7-form p { margin: 0; }
.contact-page .wpcf7-form-control-wrap { display: block; }
.contact-page .wpcf7 input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]),
.contact-page .wpcf7 textarea, .contact-page .wpcf7 select { width: 100%; min-height: 50px; padding: 13px 16px; border: 1px solid #b3c9bd; border-radius: 7px; background: #fff; color: #182c27; font: inherit; line-height: 1.6; }
.contact-page .wpcf7 textarea { display: block; resize: vertical; min-height: 190px; }
.contact-page .wpcf7 select { padding-right: 32px; }
.contact-page .wpcf7 ::placeholder { color: #73837a; opacity: 1; }
.contact-page .wpcf7 :is(input, textarea, select):focus-visible { outline: 2px solid #246f59; outline-offset: 3px; }
.contact-page .wpcf7 input[type=checkbox] { width: 19px; height: 19px; margin: 3px 10px 0 0; padding: 0; flex-shrink: 0; accent-color: #246f59; }
.contact-page .contact-consent { border-top: 1px solid #dbe7de; padding-top: 26px; margin-top: 34px; font-size: 14px; line-height: 1.8; }
.contact-page .wpcf7-list-item { margin: 0; }
.contact-page .wpcf7-acceptance label { display: flex; align-items: flex-start; cursor: pointer; }
.contact-page .contact-submit { position: relative; text-align: center; margin-top: 30px; }
.contact-page .wpcf7 input[type=submit] { width: 240px; max-width: 100%; min-height: 54px; padding: 14px 24px; border: 0; border-radius: 7px; background: #182c27; color: #fffefa; font: inherit; font-weight: 700; cursor: pointer; }
.contact-page .wpcf7 input[type=submit]:hover { background: #246f59; }
.contact-page .wpcf7 input[type=submit]:disabled, .contact-page .wpcf7-form.submitting input[type=submit] { opacity: .55; cursor: wait; }
.contact-page .wpcf7-spinner { display: block; margin: 12px auto 0; }
.contact-page .wpcf7 [aria-invalid=true] { border-color: #a33225 !important; }
.contact-page .wpcf7-not-valid-tip { display: block; color: #a33225; font-size: 13px; line-height: 1.6; margin-top: 8px; }
.contact-page .wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 16px 20px; border-radius: 7px; font-size: 14px; line-height: 1.8; }
.contact-page .wpcf7 form.sent .wpcf7-response-output { border-color: #246f59; background: #edf7f0; }
.contact-page .wpcf7 form:is(.invalid, .unaccepted, .failed, .aborted, .spam) .wpcf7-response-output { border-color: #a33225; background: #fff2eb; }
@media (max-width: 700px) {
    .contact-page-container { width: calc(100% - 40px); }
    .contact-introduction p { font-size: 15px; }
    .contact-form-panel { padding: 28px 20px; border-radius: 14px; }
    .contact-page .contact-field { margin-bottom: 24px; }
}
/* 会社情報 */
body.unifu-company { background: #fffefa; }
.unifu-company .header { border-bottom: 1px solid #eceee9; }
.unifu-company .header-contact { background: #182c27; border-radius: 4px; }
.company-page { --company-orange: #ff791f; }
.page-title-heading { padding: 44px 24px 110px; text-align: center; }
.page-title-heading p { color: #ff791f; font-size: 14px; font-weight: 700; }
.page-title-heading h1 { margin-top: 12px; font-size: 30px; line-height: 1.5; }
.company-container { width: calc(100% - 48px); max-width: 1030px; margin-inline: auto; }
.company-container p { font-size: 16px; line-height: 1.5; }
.company-container .company-label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--company-orange); font-size: 14px; font-weight: 500; }
.company-label::before { content: ''; width: 31px; height: 2px; flex-shrink: 0; background: currentColor; }
.company-label span { margin-left: -7px; }
.company-principle { margin-bottom: 78px; }
.company-container .company-statement { font-size: 26px; font-weight: 500; line-height: 1.5; margin-bottom: 5px; }
.company-message h2, .company-overview h2 { font-size: 26px; line-height: 1.5; margin: 26px 0 30px; }
.company-message-copy p + p { margin-top: 24px; }
.company-container .company-signature { text-align: right; margin-top: 52px; }
.company-overview { margin: 50px 14px 0; }
.company-overview h2 { margin: 22px 0; }
.company-details { margin: 0; font-size: 14px; line-height: 1.8; }
.company-details > div { display: grid; grid-template-columns: 26% 1fr; align-items: center; min-height: 92px; padding: 18px 6.8%; border-top: 1px solid #fffefa; }
.company-details > div:last-child { border-bottom: 1px solid #fffefa; }
.company-details dt { font-weight: 400; }
.company-details dd { margin: 0; overflow-wrap: anywhere; }
.company-details a:hover, .company-details a:focus-visible { text-decoration: underline; }
.company-additional { margin-top: 60px; }
.unifu-company footer { background: #102c20; }
@media (min-width: 901px) {
    .unifu-company .header { height: 82px; padding-top: 0; }
}
@media (max-width: 700px) {
    .page-section-green { --page-curve-height: 65px; padding: 40px 0 70px; }
    .page-title-heading { padding: 42px 24px 55px; }
    .page-title-heading h1 { font-size: 28px; }
    .company-container { width: calc(100% - 40px); }
    .company-container p { font-size: 15px; line-height: 1.8; }
    .company-container .company-label { font-size: 12px; gap: 8px; }
    .company-principle { margin-bottom: 48px; }
    .company-container .company-statement { font-size: 21px; line-height: 1.65; }
    .company-message h2, .company-overview h2 { font-size: 24px; margin-top: 18px; }
    .company-container .company-signature { margin-top: 32px; }
    .company-overview { margin: 48px 0 0; }
    .company-details > div { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
    .company-details dt { font-weight: 700; }
}

/* プライバシーポリシー：下層ページ共通の見出しと曲線背景を使用。 */
.privacy-page { background: #fffefa; }
.privacy-page-container { width: calc(100% - 48px); max-width: 900px; margin-inline: auto; }
.privacy-policy-content { font-size: 16px; }
.privacy-policy-content h2 { position: relative; padding-left: 42px; margin: 2.4em 0 1em; font-size: clamp(21px, 2.5vw, 26px); line-height: 1.6; }
.privacy-policy-content h2::before { content: ''; position: absolute; left: 0; top: .8em; width: 28px; height: 2px; background: #ff791f; }
.privacy-policy-content ul { padding-left: 1.5em; list-style: disc; }
.privacy-policy-content li + li { margin-top: .5em; }
.privacy-policy-content > :last-child { margin-bottom: 0; }
.privacy-policy-content a:focus-visible { outline: 2px solid #246f59; outline-offset: 4px; }
@media (max-width: 700px) {
    .privacy-page-container { width: calc(100% - 40px); }
    .privacy-policy-content { font-size: 15px; }
    .privacy-policy-content h2 { padding-left: 32px; }
    .privacy-policy-content h2::before { width: 22px; }
}
