/* BJ治療院 シンプル版: 余白と装飾を減らし、少ないスクロールで要点に届くようにする */
.bj-reveal,.bj-reveal-ready .bj-reveal{opacity:1!important;transform:none!important;transition:none!important}
body.bj-site{font-size:16px;line-height:1.85}

/* ページ見出しを小さく */
.bj-page-head{padding:20px 0 16px!important;background:var(--bj-light)}
.bj-page-head .bj-eyebrow{display:none!important}
.bj-page-head .bj-breadcrumb{margin:0 0 4px!important;font-size:12px}
.bj-page-head h1{font-size:clamp(22px,2.6vw,28px)!important;line-height:1.4!important;margin:0!important}
.bj-page-main{padding:22px 0 56px!important}
.bj-s-page{max-width:940px;margin-inline:auto}
.bj-s-page>*:first-child{margin-top:0}
.bj-s-page h2,.bj-s-page .wp-block-heading{font-size:19px!important;line-height:1.5!important;margin:30px 0 8px!important;padding:0 0 0 12px!important;border-left:4px solid var(--bj-green)!important;background:none!important}
.bj-s-page h3{font-size:16px!important;margin:0 0 4px!important}
.bj-s-page p{margin:0 0 12px}
.bj-s-page ul,.bj-s-page ol{margin:0 0 12px}
.bj-s-note{font-size:14px;color:var(--bj-muted)}
.bj-s-more{margin:8px 0 0!important}
.bj-s-more a{font-weight:600;color:var(--bj-green)}

/* 2カラム（文章＋写真/文章）。スマホでは1列 */
.bj-s-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start;margin:14px 0}
.bj-s-two>.wp-block-image,.bj-s-two>figure{margin:0}
.bj-s-two>.wp-block-image img{border-radius:12px;width:100%;height:auto}
.bj-s-two .bj-s-portrait{max-width:300px}
.bj-s-two:has(.bj-s-portrait){grid-template-columns:260px minmax(0,1fr)}
.bj-s-two .bj-s-side-photo img{aspect-ratio:4/3;object-fit:cover}
.bj-s-two-even>div>h2:first-child{margin-top:8px!important}
.bj-s-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:14px 0}
.bj-s-route{background:var(--bj-light);border:1px solid var(--bj-line);border-radius:12px;padding:16px 18px}
.bj-s-route p{font-size:14.5px;line-height:1.8}
.bj-s-route p:first-of-type{font-weight:600}
.bj-s-access .bj-map,.bj-s-access iframe{width:100%;height:100%;min-height:260px;border:0;border-radius:12px}

/* トップ: 挨拶＋写真、その下に6つの入口 */
.bj-home{padding-top:0}
.bj-s-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:44px;align-items:center;padding:34px 0 22px!important;min-height:0!important}
.bj-s-hero h1{font:500 clamp(26px,3vw,34px)/1.5 var(--bj-serif)!important;margin:0 0 14px!important}
.bj-s-hero p{margin:0 0 11px;font-size:16px}
.bj-s-hero-photo{margin:0}
.bj-s-hero-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:18px}
.bj-s-hero .wp-block-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.bj-s-hero .wp-block-button__link,.bj-s-page .wp-block-button__link{background:var(--bj-green);color:#fff!important;border:1px solid var(--bj-green);border-radius:999px;padding:11px 22px;font-size:15px;font-weight:600;text-decoration:none}
.bj-s-hero .is-style-outline .wp-block-button__link,.bj-s-page .is-style-outline .wp-block-button__link{background:#fff;color:var(--bj-green)!important}
.bj-s-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:6px 0 44px!important}
.bj-s-card{background:var(--bj-light);border:1px solid var(--bj-line);border-radius:14px;padding:16px 18px 12px}
.bj-s-card h3{font:600 17px/1.4 var(--bj-serif)!important;margin:0 0 6px!important;padding:0!important;border:0!important}
.bj-s-card p{font-size:14.5px;line-height:1.75;margin:0 0 8px}

/* 料金 */
.bj-price-table{margin:10px 0 6px}
.bj-price-row{padding:12px 0!important;margin:0!important}
.bj-price-row h3{margin:0!important}
.bj-price-row p{margin:0!important;font-size:14px}
.bj-s-tag{display:inline-block;margin-left:8px;padding:1px 9px;border-radius:999px;background:var(--bj-sage);color:var(--bj-green-dark);font:600 12px/1.7 var(--bj-sans);vertical-align:2px}
.bj-s-course{margin:0 0 6px!important}

/* 開閉（よくあるご質問・コース詳細・症状） */
.bj-s-page .bj-faq{border:1px solid var(--bj-line);border-radius:10px;background:#fff;margin:0 0 8px;padding:0}
.bj-s-page .bj-faq summary{padding:12px 16px;font-weight:600;cursor:pointer;line-height:1.6}
.bj-s-page .bj-faq>*:not(summary){padding:0 16px;margin-bottom:12px}
.bj-s-page .bj-s-course summary{font-weight:500;font-size:14px;color:var(--bj-green)}
.bj-s-page .bj-callout{margin:14px 0}

/* フッターの大きなお問い合わせ帯は使わない */
.bj-footer-contact{display:none!important}
.bj-footer{padding-top:32px!important}

@media(max-width:960px){
  .bj-s-hero{grid-template-columns:1fr;gap:20px;padding-top:20px!important}
  .bj-s-hero-photo{order:-1}
  .bj-s-hero-photo img{aspect-ratio:16/9}
  .bj-s-info{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bj-s-two,.bj-s-two:has(.bj-s-portrait){grid-template-columns:1fr;gap:14px}
  .bj-s-three{grid-template-columns:1fr}
  .bj-s-two .bj-s-portrait{max-width:220px}
}
@media(max-width:520px){
  .bj-s-info{grid-template-columns:1fr}
  .bj-s-card{padding:14px 16px 10px}
  .bj-page-head{padding:16px 0 12px!important}
}

/* 料金表の整え */
.bj-price-table{border-top:1px solid var(--bj-line);margin:10px 0 20px!important}
.bj-price-row{align-items:center!important;padding:14px 0 4px!important;border-bottom:0!important}
.bj-price-row h3{font-size:17px!important}
.bj-s-page .bj-faq>p{font-size:15px;color:var(--bj-ink)}
.bj-s-page .bj-s-course{border:0!important;border-bottom:1px solid var(--bj-line)!important;border-radius:0!important;background:none!important;margin:0 0 2px!important}
.bj-s-page .bj-s-course summary{padding:2px 30px 12px 0!important;font-size:13px!important;color:var(--bj-green)!important;font-weight:500!important}
.bj-s-page .bj-s-course summary::after{top:0!important}
.bj-s-info{align-items:stretch}
.bj-s-page p,.bj-s-page li,.bj-s-page .wp-block-heading{max-width:none!important}
.bj-s-page{font-size:15.5px}
.bj-s-page .bj-step-list li{padding-top:7px!important;padding-bottom:7px!important;min-height:0!important}
@media(max-width:520px){
  .bj-s-info{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  .bj-s-card{padding:12px 13px 8px}
  .bj-s-card h3{font-size:15px!important}
  .bj-s-card p{font-size:12.5px;line-height:1.65}
  .bj-s-card .bj-s-more a{font-size:12.5px}
  .bj-s-hero p{font-size:15px}
  .bj-s-page{font-size:15px}
}

/* 入口カード: すべて同じ大きさ＋アイコン */
.bj-s-info{grid-auto-rows:1fr;align-items:stretch}
.bj-s-card{display:flex!important;flex-direction:column;min-height:176px;height:100%}
.bj-s-card>.bj-s-more{margin-top:auto!important;padding-top:6px}
.bj-s-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--bj-sage);color:var(--bj-green);margin-bottom:8px}
.bj-s-icon svg{width:22px;height:22px}
@media(max-width:520px){.bj-s-card{min-height:168px}.bj-s-icon{width:34px;height:34px}.bj-s-icon svg{width:19px;height:19px}}
.bj-s-card{min-height:0!important;height:100%!important;padding:16px 18px 12px}
.bj-s-info .bj-s-card p{margin:0 0 4px!important}
.bj-s-icon{margin-bottom:6px!important}

/* ヒーローの下: ご挨拶（文章＋写真） */
.bj-s-greet{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:44px;align-items:center;padding:44px 0 14px!important}
.bj-s-greet h2{font:500 clamp(24px,2.6vw,30px)/1.5 var(--bj-serif)!important;margin:0 0 14px!important;padding:0!important;border:0!important}
.bj-s-greet p{margin:0 0 11px}
.bj-s-greet-photo{margin:0}
.bj-s-greet-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:18px}
.bj-s-greet .wp-block-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.bj-s-greet .wp-block-button__link{background:var(--bj-green);color:#fff!important;border:1px solid var(--bj-green);border-radius:999px;padding:11px 22px;font-size:15px;font-weight:600;text-decoration:none}
.bj-s-greet .is-style-outline .wp-block-button__link{background:#fff;color:var(--bj-green)!important}
.bj-home .bj-hero{padding-bottom:30px}
@media(max-width:960px){.bj-s-greet{grid-template-columns:1fr;gap:20px;padding-top:30px!important}}

/* ===== 明るい配色（ロゴの黄緑に合わせる） ===== */
:root{
  --bj-green:#3f8f3a; --bj-green-dark:#2f6f2c;
  --bj-sage:#e6f3d3; --bj-light:#f3f9e8; --bj-paper:#fffffb; --bj-line:#dfe9cf;
  --bj-accent:#8cc63f; --bj-sun:#f7c948;
}
body.bj-site{background:var(--bj-paper)}
/* トップ上部にやわらかい色の面 */
body.home main#bj-main,body.page-id-1621 main#bj-main{background:linear-gradient(180deg,#eef7dc 0,#f8fcee 420px,var(--bj-paper) 760px)}
.bj-home .bj-hero-visual::before,.bj-hero-visual::before{background:#d7edb4!important}
.bj-hero-note{border-top:3px solid var(--bj-sun)!important}
.bj-hero h1,.bj-home h1{color:#244a2f}
.bj-hero h1 em,.bj-hero h1 strong{color:var(--bj-green)}
/* ボタン */
.wp-block-button__link,.bj-btn{background:var(--bj-green)!important;color:#fff!important}
.wp-block-button__link:hover,.bj-btn:hover{background:var(--bj-green-dark)!important}
.is-style-outline .wp-block-button__link{background:#fff!important;color:var(--bj-green)!important;border-color:var(--bj-green)!important}
/* 入口カード: 白地＋やわらかい影、アイコンは色分け */
.bj-s-card{background:#fff!important;border:1px solid var(--bj-line)!important;box-shadow:0 4px 14px rgba(110,160,50,.10);border-top:4px solid var(--bj-accent)!important;transition:transform .15s,box-shadow .15s}
.bj-s-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(110,160,50,.18)}
.bj-s-info .bj-s-card:nth-child(1){border-top-color:#8cc63f}.bj-s-info .bj-s-card:nth-child(1) .bj-s-icon{background:#e6f4cf;color:#4a9a26}
.bj-s-info .bj-s-card:nth-child(2){border-top-color:#f7c948}.bj-s-info .bj-s-card:nth-child(2) .bj-s-icon{background:#fdf1c6;color:#b7860a}
.bj-s-info .bj-s-card:nth-child(3){border-top-color:#4fc3a8}.bj-s-info .bj-s-card:nth-child(3) .bj-s-icon{background:#d9f3ec;color:#1f8e77}
.bj-s-info .bj-s-card:nth-child(4){border-top-color:#f08a5d}.bj-s-info .bj-s-card:nth-child(4) .bj-s-icon{background:#fde4d8;color:#d0602f}
.bj-s-info .bj-s-card:nth-child(5){border-top-color:#8c9cf0}.bj-s-info .bj-s-card:nth-child(5) .bj-s-icon{background:#e5e9fd;color:#4c5dc0}
.bj-s-info .bj-s-card:nth-child(6){border-top-color:#5bb5e5}.bj-s-info .bj-s-card:nth-child(6) .bj-s-icon{background:#dcf0fb;color:#2381b3}
.bj-s-icon{width:44px!important;height:44px!important}.bj-s-icon svg{width:24px!important;height:24px!important}
/* 下層ページ: 見出し帯と見出しに黄緑 */
.bj-page-head{background:linear-gradient(90deg,#e9f5d4,#f7fbee)!important;border-bottom:3px solid var(--bj-accent)}
.bj-s-page h2,.bj-s-page .wp-block-heading{border-left-color:var(--bj-accent)!important}
.bj-s-tag{background:#fdf1c6!important;color:#8a6508!important}
.bj-s-route{background:#fff!important;border-color:var(--bj-line)!important;border-top:4px solid var(--bj-accent)!important}
.bj-s-page .bj-callout{background:#f6fbe9!important;border-left-color:var(--bj-accent)!important}
.bj-s-page .bj-faq{border-color:var(--bj-line)}
.bj-s-page .bj-faq summary::after{color:var(--bj-green)}
.bj-s-greet h2{color:#244a2f}
.bj-s-greet-photo img,.bj-hero-photo{box-shadow:0 10px 28px rgba(110,160,50,.18)}

/* ===== 背景の葉っぱ（装飾） ===== */
/* 背景色はbodyに持たせ、葉のレイヤーを「背景と内容の間」に置く */
body.home main#bj-main,body.page-id-1621 main#bj-main{background:none!important}
body.home,body.page-id-1621{background:linear-gradient(180deg,#eef7dc 0,#f8fcee 420px,var(--bj-paper) 760px) no-repeat,var(--bj-paper)!important}
