/* Shared page base + contact form styles (from post_content) */

/* --- sakura-base --- */
@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&display=swap');
body.home .ltg-slide{display:none!important}

body,button,input,select,textarea{font-family:'BIZ UDPGothic',"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",Meiryo,sans-serif;color:#333;letter-spacing:.02em}
body{line-height:1.9;font-size:16px}
h1,h2,h3,h4,.page-header-title{font-family:'BIZ UDPGothic',"Hiragino Kaku Gothic ProN",sans-serif;letter-spacing:.05em;font-weight:700;color:#333}
















.page-header{background:#FDF3F6;padding:36px 0}
.page-header .page-header-title{color:#333;font-size:1.5rem;letter-spacing:.1em}
body.page .main-section--col--two{width:100%;max-width:900px;margin-left:auto;margin-right:auto;flex:none;float:none}
body.page .sub-section{display:none}
.entry-content{font-size:1rem}
.entry-content p{line-height:1.95}
.entry-content>h2{border:none;padding:0 0 0 16px;position:relative;color:#C2477A;margin:2em 0 .8em;font-size:1.3rem}
.entry-content>h2::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:5px;border-radius:3px;background:#C2477A}
.entry-content>h3{color:#333;border-bottom:2px solid #F8E1E9;padding-bottom:6px;font-size:1.12rem}
.entry-content>h4{color:#C2477A;font-size:1rem}
.entry-content img{border-radius:8px}
.site-footer{background:#FDF3F6;border-top:1px solid #F8E1E9}
.site-footer,.site-footer p,.site-footer li{color:#333;font-size:.92rem}
.ft-logo{font-size:1.15rem;font-weight:700;color:#C2477A;margin:0 0 2px;font-family:'BIZ UDPGothic',sans-serif}
.ft-sub{font-size:.66rem;color:#B98FA0;letter-spacing:.15em;margin:0 0 14px}
.ft-title{font-weight:700;color:#333;border-bottom:2px solid #C2477A;padding-bottom:6px;margin:0 0 10px;font-family:'BIZ UDPGothic',sans-serif}
.ft-links{list-style:none;padding:0;margin:0}
.ft-links li{margin:6px 0}
.ft-links a{color:#333;text-decoration:none}
.ft-links a:hover{color:#C2477A}
@media(max-width:767px){


.page-header{padding:22px 0}
.page-header .page-header-title{font-size:1.2rem}

}
body.home .slp{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
body.home{overflow-x:hidden}
body.home .main-section--col--two{max-width:100%}

/* TOP: 初めての方へ — テキスト右の余白を詰め、画像比率を上げる */
/* 高さは「当院について」(.agrid img) と同じ計算式に合わせる:
   .in 幅(max 1500) − 左右padding20×2 − gap46、画像列 0.92/2、アスペクト 816/1312 */
@media(min-width:901px){
  body.home .slp .first .box{
    grid-template-columns:.95fr 1.05fr;
    height:calc((min(100vw,1500px) - 86px) * .46 * 816 / 1312);
  }
  body.home .slp .first .ph{
    position:relative;
    min-height:0;
    overflow:hidden;
  }
  body.home .slp .first .ph img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    min-height:0;
    max-height:none;
    object-fit:cover;
  }
  body.home .slp .first .txt{
    padding:28px 24px 28px 32px;
    min-height:0;
    justify-content:center;
  }
  body.home .slp .first .hh{
    margin:0 0 12px;
  }
  body.home .slp .first .txt>p{
    margin:0 0 16px;
    line-height:1.75;
  }
}
@media(min-width:901px) and (max-width:1199px){
  body.home .slp .first .txt{
    padding:16px 16px 16px 20px;
  }
  body.home .slp .first .hh{
    margin:0 0 8px;
    gap:10px;
  }
  body.home .slp .first .hh img{
    width:32px;
    height:32px;
  }
  body.home .slp .first .hh h2{
    font-size:1.2rem;
  }
  body.home .slp .first .txt>p{
    margin:0 0 10px;
    line-height:1.5;
    font-size:.9rem;
  }
}

.site-footer-copyright p:last-child{display:none}

/* --- sakura-form --- */
.sakura-form{font-size:16.5px;line-height:1.95;max-width:720px;margin:0 auto}
.sakura-form .form-lead{background:#FCF2F6;border-radius:10px;padding:16px 20px;font-size:.98rem}
.sakura-form h3{margin-top:2.2em;padding:.5em .9em;background:#FBE9F0;border-left:5px solid #C2477A;border-radius:6px;color:#A03D5E;font-size:1.15rem}
.sakura-form .req{display:inline-block;margin-left:.5em;padding:1px .7em;font-size:.72em;color:#fff;background:#d9534f;border-radius:4px;vertical-align:2px}
.sakura-form input[type="text"],.sakura-form input[type="tel"],.sakura-form input[type="email"],.sakura-form input[type="number"],.sakura-form textarea{width:100%;max-width:560px;padding:.75em;font-size:16px;border:1.5px solid #c9d8e2;border-radius:8px;background:#fff}
.sakura-form input[type="number"]{max-width:140px}
.sakura-form .wpcf7-list-item{display:block;margin:.35em 0}
.sakura-form .wpcf7-list-item label{cursor:pointer}
.sakura-form .privacy-check{margin-top:2em;text-align:center;font-weight:600}
.sakura-form .btn-consult{display:block;width:100%;max-width:420px;margin:1em auto 0;padding:1.1em;font-size:18px;font-weight:bold;color:#fff;background:#C2477A;border:none;border-radius:999px;cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,.15);font-family:'BIZ UDPGothic',sans-serif}
.sakura-form .btn-consult:hover{background:#7A2942}
.sakura-form .form-note{margin-top:1.6em;font-size:.9em;color:#666;text-align:center}
.sakura-form .wpcf7-not-valid-tip{color:#d9534f;font-size:.88em}


/* --- faq --- */
.faq details{border:1px solid #F4D6E1;border-radius:10px;margin:0 0 12px;background:#fff;box-shadow:0 1px 6px rgba(0,0,0,.03)}.faq summary{cursor:pointer;font-weight:700;color:#A03D5E;padding:16px 44px 16px 18px;list-style:none;position:relative}.faq summary::-webkit-details-marker{display:none}.faq summary::before{content:"Q";display:inline-block;background:#C2477A;color:#fff;border-radius:6px;width:26px;height:26px;text-align:center;line-height:26px;margin-right:10px;font-size:.85rem}.faq summary::after{content:"＋";position:absolute;right:16px;top:16px;color:#C2477A;font-weight:700}.faq details[open] summary::after{content:"−"}.faq .a{padding:2px 18px 16px;border-top:1px dashed #F4D6E1;margin-top:0}.faq .a p{margin:12px 0 0;line-height:1.9}.faq h3.cat{color:#A03D5E;border-bottom:2px solid #C2477A;padding-bottom:8px;margin:2.2em 0 1em}


/* --- referral form --- */
.rf{max-width:860px;margin:0 auto;font-size:16px;line-height:1.9;color:#333}
.rf .lead{background:#FCF2F6;border-radius:10px;padding:16px 20px;margin-bottom:26px}
.rf fieldset{border:1.5px solid #F4D6E1;border-radius:12px;padding:10px 22px 22px;margin:0 0 26px}
.rf legend{font-weight:700;color:#C2477A;font-size:1.2rem;padding:4px 14px;background:#FBE9F0;border-radius:8px;font-family:'BIZ UDPGothic',sans-serif}
.rf .row{margin:16px 0}
.rf label.q{display:block;font-weight:600;margin-bottom:6px}
.rf .req{display:inline-block;margin-left:.5em;padding:1px .6em;font-size:.7em;color:#fff;background:#d9534f;border-radius:4px;vertical-align:2px}
.rf input[type=text],.rf input[type=tel],.rf input[type=date],.rf input[type=number],.rf input[type=email],.rf textarea,.rf select{width:100%;max-width:560px;padding:.7em;font-size:16px;border:1.5px solid #c9d8e2;border-radius:8px;background:#fff;font-family:inherit}
.rf input[type=number]{max-width:120px}
.rf textarea{min-height:80px}
.rf .inline{display:flex;flex-wrap:wrap;gap:8px 20px}
.rf .inline label{display:inline-flex;align-items:center;gap:5px;font-weight:400;cursor:pointer}
.rf .cols{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px}
.rf .hint{font-size:.85em;color:#777;margin-top:4px}
.rf .consent{background:#FFF6F8;border:1.5px solid #eaa0b4;border-radius:10px;padding:16px 18px;font-weight:600}
.rf .filebox{border:2px dashed #a9c6cd;border-radius:10px;padding:20px;text-align:center;background:#fafdfe}
.rf .btn{display:block;width:100%;max-width:440px;margin:8px auto 0;padding:1.1em;font-size:18px;font-weight:700;color:#fff;background:#C2477A;border:none;border-radius:999px;cursor:pointer;font-family:'BIZ UDPGothic',sans-serif}
.rf .btn:hover{background:#7A2942}.rf .btn:disabled{background:#9bb4c6;cursor:wait}
.rf #rf-msg{text-align:center;font-weight:700;margin-top:16px;padding:14px;border-radius:8px;display:none}
.rf #rf-msg.ok{display:block;background:#e5f4ec;color:#1e7a4d}
.rf #rf-msg.ng{display:block;background:#fbe9e9;color:#b3261e}
@media(max-width:700px){.rf .cols{grid-template-columns:1fr}}


/* --- bottom CTA cards --- */
.wp-block-group.sakura-bottom-cta,
.sakura-bottom-cta{
  margin:48px 0 8px;
  display:flex!important;
  flex-direction:column!important;
  gap:20px!important;
  row-gap:20px!important;
}
.sakura-bottom-cta > .wp-block-group,
.sakura-bottom-cta > .sakura-cta-card{
  margin-block-start:0!important;
  margin-block-end:0!important;
  margin-top:0!important;
  margin-bottom:0!important;
}
/* gap未対応環境向けフォールバック（gapが効く場合は実質0に近づける） */
@supports not (gap: 20px) {
  .sakura-bottom-cta > .wp-block-group + .wp-block-group,
  .sakura-bottom-cta > .sakura-cta-card + .sakura-cta-card{
    margin-top:20px!important;
  }
}
.sakura-bottom-cta .sakura-cta-card,
.wp-block-group.sakura-cta-card{
  padding:28px 24px;
  background:#fff;
  border-radius:14px;
  text-align:center;
  border:2px solid #C2477A;
  box-sizing:border-box;
}
.sakura-bottom-cta .sakura-cta-title,
.sakura-cta-card .sakura-cta-title,
.sakura-cta-card h3,
.editor-styles-wrapper .sakura-cta-card h3{
  font-size:20px!important;
  font-weight:700!important;
  color:#C2477A!important;
  margin:0 0 10px!important;
  border:none!important;
  border-bottom:none!important;
  padding:0!important;
  background:transparent!important;
}
.sakura-cta-card .sakura-cta-title::before,
.sakura-cta-card .sakura-cta-title::after,
.sakura-cta-card h3::before,
.sakura-cta-card h3::after,
.editor-styles-wrapper .sakura-cta-card h3::before,
.editor-styles-wrapper .sakura-cta-card h3::after{
  display:none!important;
  content:none!important;
  border:none!important;
  width:0!important;
}
.sakura-cta-card p{
  font-size:16px;
  color:#333;
  margin:0 0 20px;
  line-height:1.9;
}
.sakura-cta-card p.sakura-cta-actions{
  margin:0;
}
.sakura-cta-card .wp-block-button__link,
.sakura-cta-btn .wp-block-button__link,
a.sakura-cta-link{
  display:inline-block;
  background:#C2477A!important;
  color:#fff!important;
  font-size:17px;
  font-weight:700;
  text-decoration:none;
  padding:15px 30px;
  border-radius:40px;
  border:none!important;
}
.sakura-cta-card .wp-block-button__link:hover,
a.sakura-cta-link:hover{background:#7A2942!important;color:#fff!important}

/* 編集画面のSSRプレビュー */
.sakura-bottom-cta-editor .sakura-bottom-cta{
  margin-top:24px;
}

/* --- news archive list (参考: libe-clinic news) --- */
body.page-id-322 .entry-body > .sakura-news-archive,
body.page-id-322 .entry-content > .sakura-news-archive{
  margin-top:8px;
}
.sakura-news-archive{
  max-width:860px;
  margin:0 auto;
}
.sakura-news-archive__label{
  text-align:center;
  margin:0 0 6px;
  font-size:.72rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:#C2477A;
  font-weight:700;
}
.sakura-news-archive__heading{
  text-align:center;
  font-size:1.55rem;
  color:#333;
  margin:0 0 36px;
  letter-spacing:.08em;
  font-weight:700;
  border:none!important;
  padding:0!important;
  position:relative;
}
.sakura-news-archive__heading::before{
  display:none!important;
  content:none!important;
}
.sakura-news-archive__heading::after{
  content:"";
  display:block;
  width:36px;
  height:2px;
  background:#C2477A;
  margin:14px auto 0;
  border-radius:2px;
  opacity:.55;
  position:static!important;
  left:auto!important;
  top:auto!important;
  bottom:auto!important;
}
.sakura-news-archive__list{
  border-top:1px solid #F4D6E1;
}
.sakura-news-archive__item{
  display:flex;
  align-items:center;
  gap:28px;
  padding:22px 8px;
  border-bottom:1px solid #F4D6E1;
  text-decoration:none!important;
  color:#333;
  transition:background .2s ease,padding-left .2s ease;
}
.sakura-news-archive__item:hover{
  background:#FFF7FA;
  padding-left:14px;
}
.sakura-news-archive__meta{
  display:flex;
  align-items:center;
  gap:14px;
  flex:none;
  min-width:168px;
}
.sakura-news-archive__date{
  font-size:.92rem;
  font-weight:700;
  color:#666;
  letter-spacing:.02em;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.sakura-news-archive__cat{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 12px;
  border-radius:999px;
  background:#FBE9F0;
  color:#C2477A;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.04em;
  white-space:nowrap;
}
.sakura-news-archive__body{
  display:flex;
  align-items:center;
  gap:16px;
  flex:1;
  min-width:0;
}
.sakura-news-archive__title{
  flex:1;
  font-size:1.02rem;
  font-weight:500;
  line-height:1.65;
  letter-spacing:.02em;
  color:#333;
}
.sakura-news-archive__item:hover .sakura-news-archive__title{
  color:#C2477A;
}
.sakura-news-archive__arrow{
  flex:none;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#FBE9F0;
  color:#C2477A;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:1.15rem;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.sakura-news-archive__item:hover .sakura-news-archive__arrow{
  background:#C2477A;
  color:#fff;
  transform:translateX(2px);
}
.sakura-news-archive__empty{
  text-align:center;
  color:#999;
  padding:40px 0;
}
@media(max-width:700px){
  .sakura-news-archive__item{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:18px 4px;
  }
  .sakura-news-archive__item:hover{
    padding-left:4px;
  }
  .sakura-news-archive__meta{
    min-width:0;
    width:100%;
  }
  .sakura-news-archive__body{
    width:100%;
  }
  .sakura-news-archive__heading{
    font-size:1.3rem;
    margin-bottom:28px;
  }
}

/* --- news detail (参考: libe-clinic news detail) --- */
body.single.single-post,
body.sakura-news-detail{
  font-family:'BIZ UDPGothic',"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",Meiryo,sans-serif;
  color:#333;
}
body.single.single-post .page-header{
  background:#FDF3F6!important;
  padding:36px 0;
}
body.single.single-post .page-header .page-header-title{
  color:#333!important;
  font-size:1.5rem;
  letter-spacing:.1em;
  text-align:center;
}
body.single.single-post .main-section--col--two{
  width:100%!important;
  max-width:760px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  flex:none!important;
  float:none!important;
}
body.single.single-post .sub-section{display:none!important}
body.single.single-post .comments-area,
body.single.single-post .comment-respond{display:none!important}
body.single.single-post .vk_posts.next-prev{display:none!important}

body.single.single-post .entry-header{
  text-align:center;
  margin:12px 0 28px;
  padding:0;
  border:none;
}
body.single.single-post .entry-title{
  color:#333;
  font-size:1.55rem;
  font-weight:700;
  letter-spacing:.04em;
  line-height:1.6;
  margin:0 0 18px;
  border:none;
  padding:0;
}
body.single.single-post .entry-title::before,
body.single.single-post .entry-title::after{
  display:none!important;
  content:none!important;
}
body.single.single-post .sakura-news-detail__meta,
body.single.single-post .entry-meta{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:0;
  margin:0;
  padding:0;
  border:none;
  color:#888;
}
body.single.single-post .sakura-news-detail__date{
  display:inline-block;
  font-size:.95rem;
  font-weight:700;
  letter-spacing:.04em;
  color:#888;
  font-variant-numeric:tabular-nums;
}
body.single.single-post .entry-meta-item,
body.single.single-post .entry-meta i{
  display:none!important;
}

body.single.single-post .entry-body,
body.single.single-post .entry-content{
  font-size:1.02rem;
  line-height:2;
  color:#333;
}
body.single.single-post .entry-body > p,
body.single.single-post .entry-content > p{
  margin:0 0 1.35em;
}
body.single.single-post .entry-body a,
body.single.single-post .entry-content a{
  color:#C2477A;
}
body.single.single-post .entry-footer{display:none!important}

.sakura-news-detail__back{
  text-align:center;
  margin:48px 0 8px;
  padding-top:32px;
  border-top:1px solid #F4D6E1;
}
.sakura-news-detail__back-link{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:13px 28px;
  border:1.5px solid #C2477A;
  color:#C2477A!important;
  border-radius:999px;
  text-decoration:none!important;
  font-weight:700;
  font-size:1rem;
  background:#fff;
  box-shadow:0 4px 14px rgba(194,71,122,.08);
  transition:background .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.sakura-news-detail__back-cir{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#FBE9F0;
  color:#C2477A;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:1.1rem;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.sakura-news-detail__back-link:hover{
  background:#C2477A;
  color:#fff!important;
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(194,71,122,.18);
}
.sakura-news-detail__back-link:hover .sakura-news-detail__back-cir{
  background:#fff;
  color:#C2477A;
  transform:translateX(2px);
}

@media(max-width:767px){
  body.single.single-post .page-header{padding:22px 0}
  body.single.single-post .page-header .page-header-title{font-size:1.2rem}
  body.single.single-post .entry-title{font-size:1.28rem}
  body.single.single-post .entry-header{margin-bottom:22px}
  .sakura-news-detail__back{margin-top:36px;padding-top:24px}
}
