@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@500;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Zen+Maru+Gothic:wght@500;700&display=swap");

:root{
  --lp-ink:#344A41;
  --lp-muted:#6F7E76;
  --lp-accent:#D16F59;
  --lp-accent-dark:#BA604F;
  --lp-required:#C96553;
  --lp-line:#F1CFC2;
  --lp-paper:#FFF8F3;
  --lp-card:#FFFDFC;
  --lp-bg:#FFF8F3;
  --lp-focus:#83BFCE;
}

html,
body{
  margin:0;
  padding:0!important;
  background:var(--lp-bg)!important;
  color:var(--lp-ink);
  font-family:"Zen Kaku Gothic New","Hiragino Sans","Yu Gothic",sans-serif;
  font-size:16px!important;
  line-height:1.75;
  overflow:hidden!important;
}

#wpadminbar{
  display:none!important;
}

html.wp-toolbar,
html:has(#wpadminbar),
body.admin-bar{
  margin-top:0!important;
  padding-top:0!important;
}

.l-header,
.l-header-nav,
.p-site-header,
.p-header,
.p-header__line,
.p-header__inner,
.site-header,
.header,
#header,
.p-drawer-menu,
.js-drawer-menu,
.l-footer,
.p-footer,
.p-footer__inner,
.site-footer,
.footer,
#footer,
.c-breadcrumb,
.c-page-title,
.l-mv,
.l-bread,
.p-bread,
.breadcrumb,
.p-lower-kv,
.c-page-visual,
.c-underlayer,
.p-underlayer{
  display:none!important;
}

.p-post-paging{
  display:none!important;
}

html:has(body.page-ng-entry-confirm),
html:has(body.page-ng-entry-thanks),
html:has(body.page-ng-entry-complete){
  overflow:auto!important;
}

body.page-ng-entry-confirm,
body.page-ng-entry-thanks,
body.page-ng-entry-complete{
  overflow:auto!important;
}

body.page-ng-entry-confirm .l-header,
body.page-ng-entry-thanks .l-header,
body.page-ng-entry-complete .l-header,
body.page-ng-entry-confirm .p-site-header,
body.page-ng-entry-thanks .p-site-header,
body.page-ng-entry-complete .p-site-header,
body.page-ng-entry-confirm .p-header__inner,
body.page-ng-entry-thanks .p-header__inner,
body.page-ng-entry-complete .p-header__inner{
  display:block!important;
}

body.page-ng-entry-confirm .l-header,
body.page-ng-entry-thanks .l-header,
body.page-ng-entry-complete .l-header{
  position:static!important;
  width:100%!important;
  padding:0 24px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(92,72,58,.08)!important;
  box-sizing:border-box;
  min-height:0!important;
  line-height:1!important;
}

body.page-ng-entry-confirm .p-site-header,
body.page-ng-entry-thanks .p-site-header,
body.page-ng-entry-complete .p-site-header,
body.page-ng-entry-confirm .p-header__inner,
body.page-ng-entry-thanks .p-header__inner,
body.page-ng-entry-complete .p-header__inner{
  width:100%!important;
  max-width:1180px!important;
  margin:0 auto!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

body.page-ng-entry-confirm .p-header__block,
body.page-ng-entry-thanks .p-header__block,
body.page-ng-entry-complete .p-header__block,
body.page-ng-entry-confirm .p-header__left,
body.page-ng-entry-thanks .p-header__left,
body.page-ng-entry-complete .p-header__left,
body.page-ng-entry-confirm .p-header__left-cont,
body.page-ng-entry-thanks .p-header__left-cont,
body.page-ng-entry-complete .p-header__left-cont,
body.page-ng-entry-confirm .p-header__logo,
body.page-ng-entry-thanks .p-header__logo,
body.page-ng-entry-complete .p-header__logo{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
}

body.page-ng-entry-confirm .p-header__logo img,
body.page-ng-entry-thanks .p-header__logo img,
body.page-ng-entry-complete .p-header__logo img{
  display:block!important;
  width:178px!important;
  max-width:42vw!important;
  height:42px!important;
  object-fit:contain!important;
  object-position:left center!important;
  content:url("/lp/assets/logo-shirogane-reha.webp")!important;
}

body.page-ng-entry-confirm .p-header__line,
body.page-ng-entry-thanks .p-header__line,
body.page-ng-entry-complete .p-header__line,
body.page-ng-entry-confirm .p-header__cont-wrapper,
body.page-ng-entry-thanks .p-header__cont-wrapper,
body.page-ng-entry-complete .p-header__cont-wrapper,
body.page-ng-entry-confirm .p-header__cont,
body.page-ng-entry-thanks .p-header__cont,
body.page-ng-entry-complete .p-header__cont,
body.page-ng-entry-confirm .p-header__pc-menu,
body.page-ng-entry-thanks .p-header__pc-menu,
body.page-ng-entry-complete .p-header__pc-menu,
body.page-ng-entry-confirm .p-header__right,
body.page-ng-entry-thanks .p-header__right,
body.page-ng-entry-complete .p-header__right,
body.page-ng-entry-confirm .p-header__drawer,
body.page-ng-entry-thanks .p-header__drawer,
body.page-ng-entry-complete .p-header__drawer,
body.page-ng-entry-confirm .p-header__left-cont.u-mobile,
body.page-ng-entry-thanks .p-header__left-cont.u-mobile,
body.page-ng-entry-complete .p-header__left-cont.u-mobile{
  display:none!important;
}

body.page-ng-entry-confirm .l-header,
body.page-ng-entry-confirm .p-site-header,
body.page-ng-entry-confirm .p-header__inner,
body.page-ng-entry-confirm .p-header__block,
body.page-ng-entry-confirm .p-header__left,
body.page-ng-entry-confirm .p-header__left-cont,
body.page-ng-entry-thanks .l-header,
body.page-ng-entry-thanks .p-site-header,
body.page-ng-entry-thanks .p-header__inner,
body.page-ng-entry-thanks .p-header__block,
body.page-ng-entry-thanks .p-header__left,
body.page-ng-entry-thanks .p-header__left-cont,
body.page-ng-entry-complete .l-header,
body.page-ng-entry-complete .p-site-header,
body.page-ng-entry-complete .p-header__inner,
body.page-ng-entry-complete .p-header__block,
body.page-ng-entry-complete .p-header__left,
body.page-ng-entry-complete .p-header__left-cont{
  display:none!important;
}

main,
.l-main,
.l-content,
.p-content,
.content,
#content,
.p-page,
.p-entry,
.page,
.post,
.hentry,
.p-page-wrapper,
.p-page-content,
.p-post-content,
.l-container,
.container,
.wrap,
.inner,
.contents,
.p-page-inner,
.p-entry-inner,
.c-inner,
.l-inner,
.l-inner2,
.l-inner3,
.p-inner,
.site-main,
.content-area,
.main-content,
.entry-content,
.post_content,
.post-content,
.page-content,
article{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
}

.lp-form-page{
  width:100%!important;
  max-width:none!important;
  margin:0 auto!important;
  padding:0 18px 14px!important;
  box-sizing:border-box;
  background:transparent!important;
}

.lp-form-page--confirm,
.lp-form-page--thanks{
  max-width:1080px!important;
  padding:36px 24px 64px!important;
}

.lp-form-page--thanks{
  padding-top:120px!important;
}

.ng-form-heading{
  width:100%;
  max-width:960px;
  margin:0 auto 34px;
  text-align:center;
}

.ng-form-heading h1{
  margin:0;
  padding:0 0 24px;
  border-bottom:1px solid rgba(52,74,65,.18);
  color:var(--lp-ink);
  font-family:"Zen Maru Gothic","Zen Kaku Gothic New","Hiragino Sans","Yu Gothic",sans-serif;
  font-size:clamp(1.8rem,2.85vw,2.7rem);
  font-weight:700;
  line-height:1.45;
  letter-spacing:0;
}

.ng-form-heading p{
  margin:34px 0 0;
  color:var(--lp-muted);
  font-family:"Zen Kaku Gothic New","Hiragino Sans","Yu Gothic",sans-serif;
  font-size:clamp(1rem,1.35vw,1.2rem);
  font-weight:500;
  line-height:1.8;
}

.lp-form-page--confirm:not(:has(.ng-form-heading))::before{
  content:"エントリーフォーム確認";
  display:block;
  width:100%;
  max-width:960px;
  margin:0 auto;
  padding:0 0 24px;
  border-bottom:1px solid rgba(52,74,65,.18);
  color:var(--lp-ink);
  font-family:"Zen Maru Gothic","Zen Kaku Gothic New","Hiragino Sans","Yu Gothic",sans-serif;
  font-size:clamp(1.8rem,2.85vw,2.7rem);
  font-weight:700;
  line-height:1.45;
  letter-spacing:0;
  text-align:center;
}

.lp-form-page--confirm:not(:has(.ng-form-heading)) .wpcf7::before{
  content:"以下の内容にお間違いがないかご確認ください。";
  display:block;
  width:100%;
  max-width:960px;
  margin:34px auto 34px;
  color:var(--lp-muted);
  font-family:"Zen Kaku Gothic New","Hiragino Sans","Yu Gothic",sans-serif;
  font-size:clamp(1rem,1.35vw,1.2rem);
  font-weight:500;
  line-height:1.8;
  text-align:center;
}

.wpcf7{
  width:100%;
  max-width:none!important;
  margin:0;
  padding:0;
}

.wpcf7 form{
  display:grid;
  gap:24px;
  width:100%;
  max-width:880px!important;
  margin:26px auto 30px;
  padding:34px 42px 28px;
  background:var(--lp-card);
  border-radius:24px;
  box-sizing:border-box;
  box-shadow:0 16px 44px rgba(142,85,64,.12);
}

.lp-form-page--confirm .wpcf7 form{
  max-width:960px!important;
  margin:0 auto!important;
  padding:46px 40px 44px;
}

.lp-form-page--confirm .p-form-item{
  width:min(100%,760px)!important;
  max-width:760px;
  margin:0 auto!important;
  grid-template-columns:180px minmax(0,1fr);
  align-items:center;
  gap:48px;
  padding:18px 0!important;
  border-bottom:1px solid rgba(241,207,194,.62);
}

.lp-form-page--confirm .p-form-item .title{
  color:var(--lp-muted);
  font-family:"Zen Maru Gothic","Zen Kaku Gothic New","Hiragino Sans","Yu Gothic",sans-serif;
  font-size:.92em!important;
  font-weight:700;
  line-height:1.55;
}

.lp-form-page--confirm .p-form-item .content{
  margin:0;
  padding:0;
  border-radius:0;
  background:transparent;
  color:var(--lp-ink);
  font-family:"Zen Maru Gothic","Zen Kaku Gothic New","Hiragino Sans","Yu Gothic",sans-serif;
  font-size:1.06rem;
  font-weight:800;
  line-height:1.8;
}

.lp-form-page--confirm .submit-wrapper-grid{
  width:min(360px,100%)!important;
  max-width:360px!important;
  margin:40px auto 0!important;
  grid-template-columns:1fr;
  gap:14px;
  justify-items:center;
}

.lp-form-page--confirm .submit-wrapper{
  display:flex;
  justify-content:center;
  width:100%!important;
}

.lp-form-page--confirm .submit-wrapper-grid>*,
.lp-form-page--confirm .submit-wrapper-grid p,
.lp-form-page--confirm p:has(.wpcf7-submit),
.lp-form-page--confirm p:has(#goback),
.lp-form-page--confirm p:has(.wpcf7-previous){
  width:100%!important;
  max-width:360px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}

.lp-form-page--confirm .wpcf7-submit,
.lp-form-page--confirm form input[type="submit"],
.lp-form-page--confirm form input[type="button"],
.lp-form-page--confirm form button,
.lp-form-page--confirm .submit-wrapper input[type="submit"],
.lp-form-page--confirm .submit-wrapper input[type="button"],
.lp-form-page--confirm .submit-wrapper button,
.lp-form-page--confirm .submit-wrapper .wpcf7-previous,
.lp-form-page--confirm .wpcf7-form-control.wpcf7-previous,
.lp-form-page--confirm .submit-wrapper a.wpcf7-submit,
.lp-form-page--confirm #goback,
.lp-form-page--confirm .form-back-link{
  width:min(360px,100%)!important;
  max-width:100%!important;
  min-height:64px;
  box-sizing:border-box;
  text-align:center;
}

body.page-ng-entry-confirm .submit-wrapper-grid{
  width:min(360px,100%)!important;
  max-width:360px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  grid-template-columns:1fr!important;
  justify-items:center!important;
}

body.page-ng-entry-confirm .p-form-item{
  width:min(100%,760px)!important;
  max-width:760px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  grid-template-columns:180px minmax(0,1fr)!important;
  align-items:center!important;
  gap:48px!important;
  padding:18px 0!important;
  border-bottom:1px solid rgba(241,207,194,.62)!important;
}

body.page-ng-entry-confirm .p-form-item .title{
  color:var(--lp-muted)!important;
  font-family:"Zen Maru Gothic","Zen Kaku Gothic New","Hiragino Sans","Yu Gothic",sans-serif!important;
  font-size:.92em!important;
  font-weight:700!important;
  line-height:1.55!important;
}

body.page-ng-entry-confirm .p-form-item .content{
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--lp-ink)!important;
  font-family:"Zen Maru Gothic","Zen Kaku Gothic New","Hiragino Sans","Yu Gothic",sans-serif!important;
  font-size:1.06rem!important;
  font-weight:800!important;
  line-height:1.8!important;
}

body.page-ng-entry-confirm .submit-wrapper{
  width:100%!important;
}

body.page-ng-entry-confirm .submit-wrapper-grid>*,
body.page-ng-entry-confirm .submit-wrapper-grid p,
body.page-ng-entry-confirm p:has(.wpcf7-submit),
body.page-ng-entry-confirm p:has(#goback),
body.page-ng-entry-confirm p:has(.wpcf7-previous){
  width:100%!important;
  max-width:360px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
}

body.page-ng-entry-confirm .wpcf7 form input[type="submit"],
body.page-ng-entry-confirm .wpcf7 form input[type="button"],
body.page-ng-entry-confirm .wpcf7 form button,
body.page-ng-entry-confirm .submit-wrapper input[type="submit"],
body.page-ng-entry-confirm .submit-wrapper input[type="button"],
body.page-ng-entry-confirm .submit-wrapper button,
body.page-ng-entry-confirm .submit-wrapper .wpcf7-previous,
body.page-ng-entry-confirm .wpcf7-form-control.wpcf7-previous,
body.page-ng-entry-confirm .submit-wrapper a,
body.page-ng-entry-confirm #goback,
body.page-ng-entry-confirm .form-back-link{
  width:min(360px,100%)!important;
  max-width:100%!important;
  min-height:64px!important;
  box-sizing:border-box!important;
  text-align:center!important;
}

.p-form-item{
  display:grid;
  gap:10px;
  margin:0!important;
  padding:0!important;
}

.p-form-item label,
.p-form-item>p,
.p-form-item.radio,
.p-form-item .title{
  margin:0;
  color:var(--lp-ink);
  font-family:"Zen Maru Gothic","Noto Sans JP",sans-serif;
  font-size:1em!important;
  font-weight:700;
  letter-spacing:0;
  line-height:1.55;
}

.required{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:22px;
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  background:var(--lp-required);
  color:#fff;
  font-size:13px!important;
  font-weight:700;
  line-height:1;
  box-shadow:0 6px 14px rgba(201,101,83,.18);
}

.wpcf7-form-control-wrap{
  display:block;
  width:100%;
  margin-top:10px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea{
  width:100%;
  min-height:52px;
  border:1px solid var(--lp-line);
  border-radius:16px;
  background:var(--lp-paper);
  color:var(--lp-ink);
  box-sizing:border-box;
  padding:12px 16px;
  font:inherit;
  font-size:1em!important;
  font-weight:700;
  box-shadow:none;
  transition:border-color .2s,box-shadow .2s,background .2s;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder{
  color:#B9AAA0;
  font-weight:400;
  opacity:1;
}

.p-select-wrapper{
  position:relative;
}

.p-select-wrapper::before,
.p-select-wrapper::after{
  content:none!important;
  display:none!important;
}

.p-select-wrapper .wpcf7-form-control-wrap{
  position:relative;
}

.p-select-wrapper .wpcf7-form-control-wrap::after{
  content:"";
  position:absolute;
  right:18px;
  top:50%;
  width:10px;
  height:10px;
  border-right:2px solid var(--lp-ink);
  border-bottom:2px solid var(--lp-ink);
  pointer-events:none;
  transform:translateY(-62%) rotate(45deg);
  opacity:.92;
}

.wpcf7 select{
  appearance:none!important;
  -webkit-appearance:none!important;
  -moz-appearance:none!important;
  background-image:none!important;
  padding-right:44px;
}

.wpcf7 select::-ms-expand{
  display:none;
}

.wpcf7 textarea{
  height:96px!important;
  min-height:96px;
  resize:vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus{
  outline:0;
  border-color:var(--lp-focus);
  background:#fff;
  box-shadow:0 0 0 4px rgba(131,191,206,.22);
}

.p-select-wrapper p,
.mailform-footer p{
  margin:0;
}

.mailform-footer{
  margin-top:4px;
  padding:22px;
  border-radius:18px;
  background:#FFF8F3;
  border:1px solid rgba(241,207,194,.54);
  color:var(--lp-muted);
  font-size:.9rem;
}

.terms-container{
  max-height:180px;
  overflow:auto;
  margin-top:14px;
  padding:18px;
  border:1px solid var(--lp-line);
  border-radius:14px;
  background:#fff;
  text-align:left;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}

.terms-container ol,
.terms-container li{
  margin:0;
  padding:0;
  list-style:none;
}

.terms-container p{
  margin:0 0 12px;
}

.terms-container li+li{
  margin-top:10px;
}

.u-text-center{
  text-align:center;
}

.wpcf7-acceptance{
  display:block;
  color:var(--lp-ink);
  font-weight:700;
}

.wpcf7-list-item{
  margin:0!important;
}

.wpcf7-list-item label{
  display:inline-flex;
  gap:10px;
  align-items:center;
}

.wpcf7 input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color:var(--lp-accent);
}

.submit-wrapper,
.submit-wrapper-grid{
  margin-top:6px;
}

.submit-wrapper-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.wpcf7-submit,
.submit-wrapper input[type="submit"],
.submit-wrapper input[type="button"],
.submit-wrapper button,
.submit-wrapper .wpcf7-previous,
.submit-wrapper a.wpcf7-submit,
#goback{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:min(100%,360px);
  min-height:58px;
  border:0;
  border-radius:16px;
  background:var(--lp-accent);
  color:#fff;
  font-family:"Zen Maru Gothic","Noto Sans JP",sans-serif;
  font-size:1rem;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  box-shadow:0 14px 28px rgba(209,111,89,.22);
  transition:transform .2s,box-shadow .2s,background .2s;
}

.wpcf7-submit:hover,
.submit-wrapper input[type="submit"]:hover,
.submit-wrapper a.wpcf7-submit:hover{
  transform:translateY(-2px);
  background:var(--lp-accent-dark);
  box-shadow:0 18px 34px rgba(209,111,89,.28);
}

#goback{
  border:1px solid var(--lp-line);
  background:#fff;
  color:var(--lp-ink);
  box-shadow:none;
  text-decoration:none;
}

.wpcf7-previous,
.submit-wrapper input[type="button"].wpcf7-previous,
.submit-wrapper button.wpcf7-previous{
  border:1px solid var(--lp-line)!important;
  background:#fff!important;
  color:var(--lp-ink)!important;
  box-shadow:none!important;
  text-decoration:none;
}

.form-back-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:min(100%,360px);
  min-height:58px;
  border:1px solid var(--lp-line);
  border-radius:16px;
  background:#fff;
  color:var(--lp-ink);
  font-family:"Zen Maru Gothic","Noto Sans JP",sans-serif;
  font-size:1rem;
  font-weight:700;
  text-decoration:none;
  box-shadow:none;
}

.wpcf7-spinner{
  display:block;
  margin:12px auto 0;
}

.wpcf7-not-valid-tip{
  margin-top:8px;
  color:#C94B4B;
  font-size:.85rem;
}

.wpcf7-response-output{
  margin:18px 0 0!important;
  padding:14px 16px!important;
  border-radius:14px;
  font-size:.9rem;
}

.form-preview-step{
  display:none;
}

.form-preview-step.is-active{
  display:grid;
  gap:22px;
}

.p-form-item .title{
  display:block;
  color:var(--lp-muted);
  font-size:.86rem;
}

.p-form-item .content{
  display:block;
  margin-top:4px;
  padding:16px 18px;
  border-radius:14px;
  background:var(--lp-paper);
  color:var(--lp-ink);
  font-weight:700;
}

.ng-form-thanks{
  display:grid;
  gap:14px;
  margin:0;
  padding:42px 30px;
  border-radius:24px;
  background:var(--lp-card);
  color:var(--lp-ink);
  text-align:center;
}

.ng-form-thanks h1,
.ng-form-thanks h2{
  margin:0;
  color:var(--lp-ink);
  font-family:"Zen Maru Gothic","Noto Sans JP",sans-serif;
  font-size:1.5rem;
  line-height:1.5;
}

.ng-form-thanks p{
  margin:0;
  color:var(--lp-muted);
}

@media(max-width:640px){
  html,
  body{
    font-size:16px!important;
    overflow:hidden!important;
  }

  .lp-form-page{
    padding:0!important;
  }

  .lp-form-page--confirm,
  .lp-form-page--thanks{
    padding:20px 12px 40px!important;
  }

  .lp-form-page--thanks{
    padding-top:72px!important;
  }

  .ng-form-heading{
    margin-bottom:24px;
  }

  .ng-form-heading h1{
    padding-bottom:18px;
    font-size:1.75rem;
  }

  .ng-form-heading p{
    margin-top:22px;
    font-size:1rem;
    text-align:left;
  }

  .lp-form-page--confirm:not(:has(.ng-form-heading))::before{
    padding-bottom:18px;
    font-size:1.75rem;
  }

  .lp-form-page--confirm:not(:has(.ng-form-heading)) .wpcf7::before{
    margin:22px auto 24px;
    font-size:1rem;
    text-align:left;
  }

  body.page-ng-entry-confirm .l-header,
  body.page-ng-entry-thanks .l-header,
  body.page-ng-entry-complete .l-header{
    padding:0 16px!important;
  }

  body.page-ng-entry-confirm .p-header__logo img,
  body.page-ng-entry-thanks .p-header__logo img,
  body.page-ng-entry-complete .p-header__logo img{
    width:156px!important;
    height:37px!important;
  }

  .wpcf7 form{
    gap:20px;
    padding:28px 18px 22px;
    border-radius:22px;
  }

  .mailform-footer{
    margin-top:0;
    padding:18px 14px;
    border-radius:16px;
    background:transparent;
    border-color:rgba(241,207,194,.5);
  }

  .terms-container{
    max-height:220px;
    margin-top:12px;
    padding:14px;
    border-radius:14px;
    background:#fff;
  }

  .lp-form-page--confirm .wpcf7 form{
    padding:28px 22px 26px;
  }

  .lp-form-page--confirm .p-form-item{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:1fr;
    gap:4px;
    padding:12px 0!important;
  }

  body.page-ng-entry-confirm .p-form-item{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:1fr!important;
    gap:4px!important;
    padding:12px 0!important;
  }

  .lp-form-page--confirm .p-form-item .content{
    font-size:1em;
  }

  body.page-ng-entry-confirm .p-form-item .content{
    font-size:1em!important;
  }

  .p-form-item label,
  .p-form-item>p,
  .p-form-item.radio,
  .p-form-item .title{
    font-size:1em!important;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="number"],
  .wpcf7 select,
  .wpcf7 textarea{
    min-height:50px;
    border-radius:15px;
    font-size:1em!important;
  }

  .submit-wrapper-grid{
    grid-template-columns:1fr;
  }

  .lp-form-page--confirm .submit-wrapper-grid,
  body.page-ng-entry-confirm .submit-wrapper-grid,
  .lp-form-page--confirm .submit-wrapper-grid>*,
  .lp-form-page--confirm .submit-wrapper-grid p,
  body.page-ng-entry-confirm .submit-wrapper-grid>*,
  body.page-ng-entry-confirm .submit-wrapper-grid p{
    width:100%!important;
    max-width:100%!important;
  }

  .wpcf7-submit,
  .lp-form-page--confirm .wpcf7-submit,
  .lp-form-page--confirm form input[type="submit"],
  .lp-form-page--confirm form input[type="button"],
  .lp-form-page--confirm form button,
  body.page-ng-entry-confirm .wpcf7 form input[type="submit"],
  body.page-ng-entry-confirm .wpcf7 form input[type="button"],
  body.page-ng-entry-confirm .wpcf7 form button,
  .submit-wrapper input[type="submit"],
  .submit-wrapper input[type="button"],
  .submit-wrapper button,
  .submit-wrapper a.wpcf7-submit,
  #goback,
  .form-back-link{
    width:100%!important;
    max-width:100%!important;
  }

  .ng-form-thanks{
    padding:34px 20px;
    border-radius:20px;
  }
}

/* 確認画面は、項目名と内容を横並びにして縦長になりすぎないようにする。 */
body.page-ng-entry-confirm .wpcf7 form,
.lp-form-page--confirm .wpcf7 form,
.wpcf7 form:has(.p-form-item > .title):has(.p-form-item > .content){
  display:grid!important;
  grid-template-columns:1fr!important;
  row-gap:0!important;
  max-width:960px!important;
}

body.page-ng-entry-confirm .p-form-item,
.lp-form-page--confirm .p-form-item,
.wpcf7 form:has(.p-form-item > .title):has(.p-form-item > .content) .p-form-item{
  display:grid!important;
  grid-template-columns:180px minmax(0,1fr)!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  column-gap:44px!important;
  row-gap:0!important;
  align-items:center!important;
  padding:20px 0!important;
  border-bottom:1px solid rgba(241,207,194,.62)!important;
}

body.page-ng-entry-confirm .p-form-item .title,
.lp-form-page--confirm .p-form-item .title,
.wpcf7 form:has(.p-form-item > .title):has(.p-form-item > .content) .p-form-item .title{
  grid-column:1!important;
  font-size:.95rem!important;
}

body.page-ng-entry-confirm .p-form-item .content,
.lp-form-page--confirm .p-form-item .content,
.wpcf7 form:has(.p-form-item > .title):has(.p-form-item > .content) .p-form-item .content{
  grid-column:2!important;
  min-width:0!important;
  overflow-wrap:anywhere!important;
}

body.page-ng-entry-confirm .submit-wrapper-grid,
.lp-form-page--confirm .submit-wrapper-grid,
.wpcf7 form:has(.p-form-item > .title):has(.p-form-item > .content) .submit-wrapper-grid,
body.page-ng-entry-confirm .wpcf7-response-output,
.lp-form-page--confirm .wpcf7-response-output{
  grid-column:1 / -1!important;
}

@media(max-width:680px){
  body.page-ng-entry-confirm .p-form-item,
  .lp-form-page--confirm .p-form-item,
  .wpcf7 form:has(.p-form-item > .title):has(.p-form-item > .content) .p-form-item{
    grid-template-columns:1fr!important;
    row-gap:6px!important;
    align-items:start!important;
  }

  body.page-ng-entry-confirm .p-form-item .content,
  .lp-form-page--confirm .p-form-item .content,
  .wpcf7 form:has(.p-form-item > .title):has(.p-form-item > .content) .p-form-item .content{
    grid-column:1!important;
  }
}

/* WordPress/iframe側の幅判定に左右されない、確認画面の最終上書き。 */
body.page-ng-entry-confirm .wpcf7 form .p-form-item,
.lp-form-page--confirm .wpcf7 form .p-form-item,
body.page-ng-entry-confirm .wpcf7 form .p-form-item:has(.title):has(.content),
.lp-form-page--confirm .wpcf7 form .p-form-item:has(.title):has(.content),
.wpcf7 form .p-form-item:has(.title):has(.content){
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:44px!important;
  width:100%!important;
  max-width:none!important;
}

body.page-ng-entry-confirm .wpcf7 form .p-form-item .title,
.lp-form-page--confirm .wpcf7 form .p-form-item .title,
body.page-ng-entry-confirm .wpcf7 form .p-form-item:has(.title):has(.content) .title,
.lp-form-page--confirm .wpcf7 form .p-form-item:has(.title):has(.content) .title,
.wpcf7 form .p-form-item:has(.title):has(.content) .title{
  flex:0 0 180px!important;
  width:180px!important;
  min-width:180px!important;
}

body.page-ng-entry-confirm .wpcf7 form .p-form-item .content,
.lp-form-page--confirm .wpcf7 form .p-form-item .content,
body.page-ng-entry-confirm .wpcf7 form .p-form-item:has(.title):has(.content) .content,
.lp-form-page--confirm .wpcf7 form .p-form-item:has(.title):has(.content) .content,
.wpcf7 form .p-form-item:has(.title):has(.content) .content{
  flex:1 1 auto!important;
  min-width:0!important;
}

@media(max-width:480px){
  body.page-ng-entry-confirm .wpcf7 form .p-form-item,
  .lp-form-page--confirm .wpcf7 form .p-form-item,
  body.page-ng-entry-confirm .wpcf7 form .p-form-item:has(.title):has(.content),
  .lp-form-page--confirm .wpcf7 form .p-form-item:has(.title):has(.content),
  .wpcf7 form .p-form-item:has(.title):has(.content){
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:6px!important;
  }

  body.page-ng-entry-confirm .wpcf7 form .p-form-item .title,
  .lp-form-page--confirm .wpcf7 form .p-form-item .title,
  body.page-ng-entry-confirm .wpcf7 form .p-form-item:has(.title):has(.content) .title,
  .lp-form-page--confirm .wpcf7 form .p-form-item:has(.title):has(.content) .title,
  .wpcf7 form .p-form-item:has(.title):has(.content) .title{
    flex:0 1 auto!important;
    width:auto!important;
    min-width:0!important;
  }
}

/* :has() を使わない確認画面専用の最終指定。 */
body.page-ng-entry-confirm .wpcf7 form .p-form-item,
.lp-form-page--confirm .wpcf7 form .p-form-item{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:44px!important;
  width:100%!important;
  max-width:none!important;
}

body.page-ng-entry-confirm .wpcf7 form .p-form-item .title,
.lp-form-page--confirm .wpcf7 form .p-form-item .title{
  flex:0 0 180px!important;
  width:180px!important;
  min-width:180px!important;
}

body.page-ng-entry-confirm .wpcf7 form .p-form-item .content,
.lp-form-page--confirm .wpcf7 form .p-form-item .content{
  flex:1 1 auto!important;
  min-width:0!important;
}

/* Contact Form 7 が自動で <p> を挟む場合の確認画面用指定。 */
body.page-ng-entry-confirm .wpcf7 form .p-form-item>p,
.lp-form-page--confirm .wpcf7 form .p-form-item>p{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:44px!important;
  width:100%!important;
  margin:0!important;
}

body.page-ng-entry-confirm .wpcf7 form .p-form-item>p>.title,
.lp-form-page--confirm .wpcf7 form .p-form-item>p>.title{
  flex:0 0 180px!important;
  width:180px!important;
  min-width:180px!important;
}

body.page-ng-entry-confirm .wpcf7 form .p-form-item>p>.content,
.lp-form-page--confirm .wpcf7 form .p-form-item>p>.content{
  flex:1 1 auto!important;
  min-width:0!important;
}

@media(max-width:640px){
  body.page-ng-entry-confirm .wpcf7 form .p-form-item,
  .lp-form-page--confirm .wpcf7 form .p-form-item,
  body.page-ng-entry-confirm .wpcf7 form .p-form-item>p,
  .lp-form-page--confirm .wpcf7 form .p-form-item>p{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
    align-items:start!important;
  }

  body.page-ng-entry-confirm .wpcf7 form .p-form-item .title,
  .lp-form-page--confirm .wpcf7 form .p-form-item .title,
  body.page-ng-entry-confirm .wpcf7 form .p-form-item .content,
  .lp-form-page--confirm .wpcf7 form .p-form-item .content,
  body.page-ng-entry-confirm .wpcf7 form .p-form-item>p>.title,
  .lp-form-page--confirm .wpcf7 form .p-form-item>p>.title,
  body.page-ng-entry-confirm .wpcf7 form .p-form-item>p>.content,
  .lp-form-page--confirm .wpcf7 form .p-form-item>p>.content{
    grid-column:1!important;
    width:auto!important;
    min-width:0!important;
    flex:0 1 auto!important;
  }
}
