/* 導入事例一覧の補助リンクは横一列。狭い画面では自然に折り返す。 */
.ci-page .ci-card-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ci-page .ci-card-bottom{border-top:0;justify-content:flex-end;gap:10px}
/* 導入事例詳細の下部CTAは無料デモ・問い合わせの2段に揃える。 */
.case-page .case-contact-actions{flex-direction:column;align-items:stretch;gap:10px;width:330px;max-width:100%;flex:none}
.case-page .case-contact-actions .case-demo-cta{width:100%}
.case-page .case-contact-actions .library-button{width:100%;min-height:52px;justify-content:space-between;gap:10px;padding-inline:18px;border:1px solid #cbd6e1}
.case-page .case-contact-actions .case-contact-button{background:#292e33;border-color:#292e33;color:#fff}
.case-page .case-contact-actions .case-contact-button:hover{background:#424d59;border-color:#424d59;color:#fff}
@media(max-width:699px){.case-page .case-contact-actions{width:100%}}
.ci-footer .ci-footer-main{flex-wrap:wrap}
.ci-footer .ci-footer-main>nav{display:flex;flex-wrap:wrap;gap:4px 24px}
.ci-footer .ci-footer-main>nav>a{white-space:nowrap}

/* PCの共通ヘッダー・フッターは、背景を全幅のまま内容を1240pxへ揃える。 */
@media(min-width:1180px){
 [data-site-header]>:is(.header-inner,.posts-header-inner,.inquiry-header-inner,.ci-header-inner,.completion-header-inner,.booking-header-inner,.header__inner,.inner.gnav),
 :is(.site-footer,.posts-footer,.library-footer,.ci-footer,.policy-footer) > :is(.wrap,.posts-footer-inner,.library-wrap,.ci-wrap,.policy-wrap),
 .completion-footer>div,
 .inquiry-footer{
  box-sizing:border-box!important;
  width:calc(100% - 64px)!important;
  max-width:1240px!important;
  margin-inline:auto!important;
  padding-inline:0!important;
 }
}

/* スマホではブランド、リンク、コピーライトの順に並べる。 */
@media(max-width:599px){
 .posts-footer .posts-footer-inner,
 :is(.post-single-page,.case-page) .library-footer>.library-wrap{
  display:flex!important;flex-direction:column;align-items:stretch!important;gap:0!important;
 }
 .posts-footer-inner>div,
 .library-footer>.library-wrap>div{display:contents}
 .posts-footer .posts-footer-nav,
 .library-footer>.library-wrap>nav{order:1;margin-top:20px}
 .posts-footer .posts-copyright,
 .library-footer .library-copyright{order:2;display:block;margin-top:24px}
 .inquiry-footer{flex-direction:column;align-items:flex-start}
 .inquiry-footer>span{order:1}
 .completion-footer>div{flex-direction:column;align-items:flex-start;gap:20px}
 .ci-footer .ci-footer-bottom{flex-wrap:wrap}
 .ci-footer .ci-footer-bottom>small{order:1;flex-basis:100%}
}

/* 完了ページは資料詳細と同じ控えめなフッターにし、コピーライトを中央へ。 */
.completion-page{background:linear-gradient(115deg,#f0f6f6 0%,#eff3f8 60%,#f1eff8 100%)}
.completion-page .completion-consult{background:transparent;border-bottom:0}
.completion-page .completion-footer{border:0;background:transparent;padding:0 0 17px;color:#9ba2ab;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:10px;font-weight:400;line-height:1.5;letter-spacing:normal}
.completion-page .completion-footer>div{justify-content:center;align-items:center;text-align:center;gap:0}
.completion-page .completion-footer small{font:inherit;color:inherit}
.documents-page .inquiry-footer{justify-content:center;align-items:center;text-align:center}
@media(min-width:1000px) and (max-height:800px){.completion-page .completion-footer{padding-bottom:11px}}
@media(max-width:999px){.completion-page .completion-footer{padding-bottom:23px;font-size:12px;line-height:1.8}}

/* 問い合わせページはコピーライトのみ中央に配置する。 */
:is(.inquiry-page,.industry-inquiry-page) .inquiry-footer{justify-content:center;align-items:center;text-align:center}

/* スマホ・タブレットでは補助リンクの下で、コピーライトと先頭リンクを左右に並べる。 */
@media(max-width:1179px){
 #footer.site-footer .footer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;row-gap:8px}
 #footer.site-footer .footer-bottom>div{grid-row:1;grid-column:1/-1;justify-content:flex-end;text-align:right}
 #footer.site-footer .footer-bottom a[href]{min-height:28px;display:inline-flex;align-items:center}
 #footer.site-footer .footer-bottom>span{grid-row:2;grid-column:1;order:0;align-self:center}
 #footer.site-footer .footer-bottom>a{display:inline-flex;align-items:center;justify-content:flex-end;grid-row:2;grid-column:2;justify-self:end;align-self:center;margin:0;text-align:right}
}

/* 全フッターのコピーライトは、テンプレート固有の指定より優先して統一する。 */
#footer .footer-bottom>span,
footer .posts-copyright,
footer.inquiry-footer>span,
footer .ci-footer-bottom>small,
footer.completion-footer small{font-size:12px!important;color:#536071!important}

/* フッターの運営会社・プライバシー・先頭リンクの表記を統一する。 */
footer a:is([href^="https://jetb.co.jp"],[href^="/privacypolicy"],[href="#top"],[href="#content"],[href="#case-index-title"]){font-size:11px!important;color:#536071!important}
