/* =========================================================
   光明寺サイト共通：言語切替
========================================================= */
@media screen and (min-width:769px){
  html[lang^="ja"] .main_header nav a[href$="/en/"]{
    display:inline-flex!important;align-items:center;justify-content:center;
    min-width:92px;padding:9px 20px!important;margin:6px 0 0 8px!important;
    background:#b9dbe6!important;border:1px solid #9fc8d5!important;border-radius:22px!important;
    color:#2f4f59!important;font-size:15px!important;font-weight:700!important;line-height:1.2!important;
    text-decoration:none!important;white-space:nowrap;
  }
  html[lang^="ja"] .main_header nav a[href$="/en/"]:hover{opacity:.82}
  html[lang^="en"] .main_header nav ul{display:flex;flex-wrap:nowrap;align-items:center}
  html[lang^="en"] .main_header nav ul li{width:auto!important;min-width:0!important;white-space:nowrap}
  html[lang^="en"] .main_header nav ul li a{padding-left:15px!important;padding-right:15px!important;font-size:15px}
  html[lang^="en"] .main_header nav ul li:last-child a{
    padding:9px 14px!important;margin-left:5px;background:#b9dbe6;border:1px solid #9fc8d5;
    border-radius:22px;color:#2f4f59;font-weight:700;
  }
}
@media screen and (max-width:768px){
  .main_header .container{position:relative}
  .sp-header-controls{
    position:absolute;top:50%;right:12px;z-index:10000;display:flex!important;
    align-items:center;gap:10px;transform:translateY(-50%);
  }
  .sp-language-switch{
    display:inline-block;padding:7px 14px;background:#b9dbe6;border-radius:20px;
    color:#333!important;font-size:14px;font-weight:600;line-height:1;text-decoration:none!important;white-space:nowrap;
  }
  .sp-header-controls .drawer-hamburger{
    position:relative!important;top:auto!important;right:auto!important;left:auto!important;
    display:block!important;width:42px;height:42px;margin:0!important;padding:0!important;
  }
}

/* =========================================================
   英語トップ 2320
========================================================= */
body.page-id-2320{overflow-x:hidden}
body.page-id-2320 .entry-header,
body.page-id-2320 .page-header,
body.page-id-2320 .page-title,
body.page-id-2320 .page_title{display:none!important}
body.page-id-2320 .entry-content,
body.page-id-2320 .site-main,
body.page-id-2320 .content-area{margin-top:0!important;padding-top:0!important}
body.page-id-2320 .en-welcome-photo{
  position:relative;left:50%;width:100vw;max-width:none!important;margin:0 -50vw;overflow:hidden;
}
body.page-id-2320 .en-welcome-photo img{display:block;width:100%;height:min(48vw,680px);object-fit:cover;object-position:center}
@media screen and (max-width:768px){
  body.page-id-2320 .en-welcome-photo img{height:55vh;min-height:360px;max-height:520px}
  body.page-id-2320 .en-welcome{padding-top:55px}
}

/* =========================================================
   樹木葬 2477：新HTML専用
========================================================= */
body.page-id-2477{overflow-x:hidden;background:#fff}
body.page-id-2477 .entry-header,
body.page-id-2477 .page-header,
body.page-id-2477 .page-title,
body.page-id-2477 .page_title,
body.page-id-2477 .entry-title{display:none!important}
body.page-id-2477 .entry-content,
body.page-id-2477 .site-main,
body.page-id-2477 .content-area{max-width:none!important;margin-top:0!important;padding-top:0!important}

body.page-id-2477 .kjt-page{
  --green:#496653;--green-dark:#30483a;--soft:#edf3ed;--cream:#f8f5ed;
  --gold:#917643;--border:#d5dfd6;--text:#333;
  position:relative;left:50%;width:100vw;margin-left:-50vw;color:var(--text);
  font-family:inherit;font-size:16px;line-height:1.9;overflow:hidden;
}
body.page-id-2477 .kjt-page *,
body.page-id-2477 .kjt-page *::before,
body.page-id-2477 .kjt-page *::after{box-sizing:border-box}
body.page-id-2477 .kjt-page img{max-width:100%}
body.page-id-2477 .kjt-page h1,
body.page-id-2477 .kjt-page h2,
body.page-id-2477 .kjt-page h3{margin-top:0;padding:0;border:0;background:none}
body.page-id-2477 .kjt-wrap{width:min(1120px,calc(100% - 48px));margin:0 auto}
body.page-id-2477 .kjt-narrow{max-width:920px}
body.page-id-2477 .kjt-section{padding:88px 0}
body.page-id-2477 .kjt-soft{background:var(--soft)}
body.page-id-2477 .kjt-cream{background:var(--cream)}
body.page-id-2477 .kjt-eyebrow{margin:0 0 10px;color:var(--gold);font-size:14px;font-weight:700;letter-spacing:.12em}
body.page-id-2477 .kjt-heading{max-width:850px;margin:0 auto 46px;text-align:center}
body.page-id-2477 .kjt-heading h2,
body.page-id-2477 .kjt-copy h2,
body.page-id-2477 .kjt-pet-box h2{margin:0 0 22px;color:var(--green);font-size:36px;font-weight:500;line-height:1.5}
body.page-id-2477 .kjt-heading p:last-child{margin-bottom:0}
body.page-id-2477 .kjt-center{text-align:center;margin-top:32px}
body.page-id-2477 .kjt-center-text{text-align:center;margin:28px auto 0;max-width:760px}

/* buttons */
body.page-id-2477 .kjt-actions{display:flex;flex-wrap:wrap;gap:12px}
body.page-id-2477 .kjt-btn{
  display:inline-flex;align-items:center;justify-content:center;min-width:220px;padding:14px 26px;
  border-radius:30px;font-weight:700;text-align:center;text-decoration:none!important;line-height:1.4;
}
body.page-id-2477 .kjt-btn-primary{background:var(--green);color:#fff!important}
body.page-id-2477 .kjt-btn-light{background:rgba(255,255,255,.94);color:var(--green-dark)!important}
body.page-id-2477 .kjt-btn-outline{background:#fff;border:1px solid var(--green);color:var(--green)!important}
body.page-id-2477 .kjt-btn:hover{opacity:.84}

/* hero */
body.page-id-2477 .kjt-hero{position:relative;height:min(78vh,780px);min-height:610px;overflow:hidden}
body.page-id-2477 .kjt-hero-img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
body.page-id-2477 .kjt-hero-overlay{
  position:absolute;inset:0;background:linear-gradient(90deg,rgba(18,35,24,.60),rgba(18,35,24,.30) 42%,rgba(18,35,24,.03) 72%);
}
body.page-id-2477 .kjt-hero-content{
  position:absolute;top:50%;left:max(6vw,55px);width:min(600px,86vw);transform:translateY(-50%);
  color:#fff;text-shadow:0 2px 9px rgba(0,0,0,.4);
}
body.page-id-2477 .kjt-kicker{margin:0 0 10px;letter-spacing:.12em}
body.page-id-2477 .kjt-hero h1{margin:0 0 20px;color:#fff;font-size:clamp(36px,4vw,60px);font-weight:500;line-height:1.3}
body.page-id-2477 .kjt-hero-copy{margin:0 0 16px;font-size:clamp(29px,3vw,44px);font-weight:500;line-height:1.5}
body.page-id-2477 .kjt-hero-sub{margin:0 0 26px;font-size:18px}

/* quick */
body.page-id-2477 .kjt-quick{padding:40px 0 0;background:#fff}
body.page-id-2477 .kjt-heading-compact{margin-bottom:22px}
body.page-id-2477 .kjt-heading-compact h2{font-size:30px}
body.page-id-2477 .kjt-quick-list{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
body.page-id-2477 .kjt-quick-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:130px;padding:18px 10px;border-right:1px solid var(--border);text-align:center}
body.page-id-2477 .kjt-quick-item:last-child{border-right:0}
body.page-id-2477 .kjt-quick-item span{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#6d8874;color:#fff;font-weight:700}
body.page-id-2477 .kjt-quick-item strong{color:#29372f;font-size:15px}
body.page-id-2477 .kjt-nav{display:flex;flex-wrap:nowrap;justify-content:center;gap:8px;margin:26px 0 0}
body.page-id-2477 .kjt-nav a{padding:9px 14px;border:1px solid #cdd9cf;border-radius:22px;color:var(--green);text-decoration:none;white-space:nowrap;font-size:14px}

/* split + media */
body.page-id-2477 .kjt-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:60px;align-items:center}
body.page-id-2477 .kjt-media{width:100%;overflow:hidden;border-radius:5px}
body.page-id-2477 .kjt-media img{display:block;width:100%;height:520px;object-fit:cover;object-position:center}
body.page-id-2477 .kjt-copy p{margin:0 0 20px}
body.page-id-2477 .kjt-copy p:last-child{margin-bottom:0}

/* features */
body.page-id-2477 .kjt-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body.page-id-2477 .kjt-feature-card{padding:38px 24px 34px;background:#fff;border-top:4px solid #78917e}
body.page-id-2477 .kjt-num{display:block;margin-bottom:14px;color:#aa905e;font-weight:700}
body.page-id-2477 .kjt-feature-card h3{margin:0 0 16px;color:var(--green);font-size:22px;font-weight:500;line-height:1.6}
body.page-id-2477 .kjt-feature-card p{margin:0;font-size:15px;line-height:1.85}

/* prices */
body.page-id-2477 .kjt-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body.page-id-2477 .kjt-price-card{overflow:hidden;background:#fff;border:1px solid var(--border);box-shadow:0 7px 24px rgba(39,67,46,.07)}
body.page-id-2477 .kjt-price-head{padding:18px 18px 15px;background:#eef4ee;text-align:center}
body.page-id-2477 .kjt-price-head small{display:block;color:var(--gold);font-size:12px}
body.page-id-2477 .kjt-price-head h3{margin:0;color:var(--green);font-size:30px;font-weight:500}
body.page-id-2477 .kjt-price-img{display:block!important;width:100%!important;height:280px!important;object-fit:cover!important;object-position:center!important;opacity:1!important;visibility:visible!important}
body.page-id-2477 .kjt-price-body{padding:26px 24px}
body.page-id-2477 .kjt-price-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 0;border-bottom:1px solid #eee}
body.page-id-2477 .kjt-price-row strong{color:#806232;font-size:26px;white-space:nowrap}
body.page-id-2477 .kjt-maint{margin:18px 0;padding:12px;background:var(--cream);text-align:center}
body.page-id-2477 .kjt-note{max-width:900px;margin:32px auto 0;padding:22px 26px;background:#f8f7f2;text-align:center}
body.page-id-2477 .kjt-note p{margin:0 0 8px}
body.page-id-2477 .kjt-note p:last-child{margin-bottom:0;font-size:14px;color:#666}

/* choice */
body.page-id-2477 .kjt-figure{margin:0;background:#fff;border-radius:5px;overflow:hidden}
body.page-id-2477 .kjt-figure img{display:block;width:100%;height:520px;object-fit:cover;object-position:center}
body.page-id-2477 .kjt-figure figcaption{padding:10px 14px;text-align:center;color:#5b695f;font-size:14px}
body.page-id-2477 .kjt-engraving{margin-top:25px;padding:22px 24px;background:#fff;border-left:4px solid #9a8557}
body.page-id-2477 .kjt-engraving h3{margin:0 0 10px;color:#66522f;font-size:20px}

/* gallery */
body.page-id-2477 .kjt-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
body.page-id-2477 .kjt-gallery figure{margin:0;background:#f5f5f1;overflow:hidden}
body.page-id-2477 .kjt-gallery img{display:block;width:100%;height:350px;object-fit:cover;object-position:center}
body.page-id-2477 .kjt-gallery-wide{grid-column:1/-1}
body.page-id-2477 .kjt-gallery-wide img{height:470px}
body.page-id-2477 .kjt-gallery figcaption{padding:11px 15px;text-align:center;color:#56645a;font-size:14px}

/* flow */
body.page-id-2477 .kjt-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:34px}
body.page-id-2477 .kjt-flow article{position:relative;padding:26px 14px 22px;background:#fff;text-align:center;min-height:230px}
body.page-id-2477 .kjt-flow article:not(:last-child)::after{content:"→";position:absolute;right:-29px;top:50%;transform:translateY(-50%);color:#8da292;font-size:24px}
body.page-id-2477 .kjt-flow article span{display:flex;align-items:center;justify-content:center;width:42px;height:42px;margin:0 auto 14px;border-radius:50%;background:#6d8874;color:#fff}
body.page-id-2477 .kjt-flow h3{margin:0 0 10px;color:var(--green);font-size:18px;font-weight:500}
body.page-id-2477 .kjt-flow p{margin:0;font-size:14px;line-height:1.75}
body.page-id-2477 .kjt-box{max-width:900px;margin:42px auto 0;padding:32px 36px;background:#fff;border-top:4px solid #78927f}
body.page-id-2477 .kjt-box h3{margin:0 0 16px;color:var(--green);font-size:24px;line-height:1.6}
body.page-id-2477 .kjt-check{margin:18px 0 0;padding:0;list-style:none}
body.page-id-2477 .kjt-check li{position:relative;margin:0 0 9px;padding-left:24px}
body.page-id-2477 .kjt-check li::before{content:"✓";position:absolute;left:0;color:#66806c;font-weight:700}
body.page-id-2477 .kjt-box-message{border-top:0;border-left:5px solid #78927f}

/* recommend */
body.page-id-2477 .kjt-recommend{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:0;
  padding:0;
  list-style:none;
}
body.page-id-2477 .kjt-recommend > li{
  position:relative;
  display:block;
  margin:0;
  padding:17px 18px 17px 48px;
  min-height:64px;
  background:#f4f8f4;
  list-style:none;
}
body.page-id-2477 .kjt-recommend > li::before{
  content:"✓";
  position:absolute;
  left:18px;
  top:17px;
  color:#607e68;
  font-weight:700;
}
body.page-id-2477 .kjt-recommend > br,
body.page-id-2477 .kjt-recommend > p{
  display:none!important;
}

/* pet */
body.page-id-2477 .kjt-pet{padding-top:0}
body.page-id-2477 .kjt-pet-box{padding:46px 42px;background:var(--cream);text-align:center}
body.page-id-2477 .kjt-pet-intro{max-width:740px;margin:0 auto 26px}
body.page-id-2477 .kjt-pet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;text-align:left}
body.page-id-2477 .kjt-pet-grid article{padding:24px 21px;background:#fff;border-top:3px solid #8a9e8d}
body.page-id-2477 .kjt-pet-grid h3{margin:0 0 10px;color:var(--green);font-size:19px}
body.page-id-2477 .kjt-pet-grid p{margin:0;font-size:14px;line-height:1.8}
body.page-id-2477 .kjt-pet-note{max-width:760px;margin:24px auto 0;padding:20px 24px;background:#fff;text-align:left}
body.page-id-2477 .kjt-pet-note p{margin:0 0 10px}
body.page-id-2477 .kjt-pet-note p:last-child{margin-bottom:0}

/* direct management list: bullet and text always aligned */
body.page-id-2477 .kjt-dot-list{margin:24px 0 0;padding:0;list-style:none}
body.page-id-2477 .kjt-dot-list li{display:grid;grid-template-columns:9px 1fr;column-gap:12px;align-items:start;margin:0 0 9px;padding:0;line-height:1.75}
body.page-id-2477 .kjt-dot-list li::before{content:"";width:8px;height:8px;margin-top:.72em;border-radius:50%;background:#809786}

/* terms */
body.page-id-2477 .kjt-terms{margin:0;border-top:1px solid var(--border)}
body.page-id-2477 .kjt-terms>div{display:grid;grid-template-columns:235px 1fr;border-bottom:1px solid var(--border)}
body.page-id-2477 .kjt-terms dt{padding:16px 20px;background:#f1f5f1;color:var(--green);font-weight:700}
body.page-id-2477 .kjt-terms dd{margin:0;padding:16px 20px}

/* kuyo */
body.page-id-2477 .kjt-kuyo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
body.page-id-2477 .kjt-kuyo-grid article{padding:28px 20px;background:#fff;text-align:center}
body.page-id-2477 .kjt-kuyo-grid h3{margin:0 0 12px;color:var(--green);font-size:20px}
body.page-id-2477 .kjt-kuyo-grid p{margin:0;font-size:14px}
body.page-id-2477 .kjt-consult{max-width:900px;margin:40px auto 0;padding:36px 40px;background:#fff;border-top:4px solid #927b50}
body.page-id-2477 .kjt-consult h3{margin:0 0 18px;color:#67502c;font-size:24px;line-height:1.6}
body.page-id-2477 .kjt-consult-lead{margin-top:24px!important;padding:20px;background:#f8f6f0;font-weight:700}

/* contract */
body.page-id-2477 .kjt-contract{margin:0;padding:0;list-style:none}
body.page-id-2477 .kjt-contract li{display:grid;grid-template-columns:46px 1fr;gap:20px;align-items:start;margin:0 0 12px;padding:22px 26px;background:#f3f7f3}
body.page-id-2477 .kjt-contract li>span{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#6c8874;color:#fff;font-weight:700}
body.page-id-2477 .kjt-contract strong{display:block;margin:0 0 3px;color:var(--green);font-size:19px}
body.page-id-2477 .kjt-contract p{margin:0}

/* priest: never overlap */
body.page-id-2477 .kjt-priest{position:static!important}
body.page-id-2477 .kjt-priest-photo img{display:block!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
body.page-id-2477 .kjt-priest-name{margin-top:24px!important;font-weight:700;text-align:right}

/* faq */
body.page-id-2477 .kjt-faq{position:static!important}
body.page-id-2477 .kjt-faq details{position:static!important;margin:0 0 9px;border:1px solid var(--border);background:#fff}
body.page-id-2477 .kjt-faq summary{position:relative;padding:18px 52px 18px 21px;color:#405d49;font-weight:700;cursor:pointer;list-style:none}
body.page-id-2477 .kjt-faq summary::-webkit-details-marker{display:none}
body.page-id-2477 .kjt-faq summary::after{content:"＋";position:absolute;right:20px;top:50%;transform:translateY(-50%);color:#718a77;font-size:20px}
body.page-id-2477 .kjt-faq details[open] summary::after{content:"−"}
body.page-id-2477 .kjt-faq details p{margin:0;padding:0 21px 20px}

/* contact */
body.page-id-2477 .kjt-contact-grid{display:grid;grid-template-columns:1.08fr .92fr;align-items:stretch;max-width:1050px;margin:0 auto;background:#fff;overflow:hidden}
body.page-id-2477 .kjt-contact-photo{min-height:580px}
body.page-id-2477 .kjt-contact-photo img{display:block;width:100%;height:100%;min-height:580px;object-fit:cover;object-position:center}
body.page-id-2477 .kjt-contact-info{padding:40px 36px}
body.page-id-2477 .kjt-contact-info h3{margin:0 0 20px;color:var(--green);font-size:25px}
body.page-id-2477 .kjt-contact-info p{margin:0 0 16px}
body.page-id-2477 .kjt-contact-info ul{margin:18px 0;padding-left:22px}
body.page-id-2477 .kjt-contact-note{padding:16px 18px;background:var(--cream);font-weight:700}
body.page-id-2477 .kjt-contact-actions{display:flex;flex-direction:column;gap:9px;margin-top:22px}
body.page-id-2477 .kjt-map{max-width:1050px;margin:28px auto 0;overflow:hidden}
body.page-id-2477 .kjt-map iframe{display:block;width:100%}

/* final: max 1144px, no upscaling beyond source width, crop lower part */
body.page-id-2477 .kjt-final{position:relative;width:min(1144px,100%);height:500px;margin:0 auto;overflow:hidden;background:#fff}
body.page-id-2477 .kjt-final>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 22%;filter:none;opacity:1}
body.page-id-2477 .kjt-final-content{position:absolute;top:50%;left:50%;width:min(850px,88%);transform:translate(-50%,-50%);color:#fff;text-align:center;text-shadow:0 2px 5px rgba(0,0,0,.9),0 0 12px rgba(0,0,0,.42)}
body.page-id-2477 .kjt-final-content h2{margin:0 0 16px;color:#fff;font-size:34px;font-weight:500;line-height:1.5}
body.page-id-2477 .kjt-final-content p{margin:0;font-size:18px}
body.page-id-2477 .kjt-final-actions{justify-content:center;margin-top:28px}

/* anchors */
body.page-id-2477 #kjt-features,
body.page-id-2477 #kjt-price,
body.page-id-2477 #kjt-eitai,
body.page-id-2477 #kjt-pet,
body.page-id-2477 #kjt-kuyo,
body.page-id-2477 #kjt-faq,
body.page-id-2477 #kjt-contact{scroll-margin-top:90px}

/* =========================================================
   MOBILE
========================================================= */
@media screen and (max-width:768px){
  body.page-id-2477 .kjt-page{font-size:15px}
  body.page-id-2477 .kjt-wrap{width:calc(100% - 32px)}
  body.page-id-2477 .kjt-section{padding:58px 0}
  body.page-id-2477 .kjt-heading{margin-bottom:32px}
  body.page-id-2477 .kjt-heading h2,
  body.page-id-2477 .kjt-copy h2,
  body.page-id-2477 .kjt-pet-box h2{font-size:27px;line-height:1.55}
  body.page-id-2477 .kjt-eyebrow{font-size:12px}

  /* hero */
  body.page-id-2477 .kjt-hero{height:520px;min-height:0}
  body.page-id-2477 .kjt-hero-overlay{background:linear-gradient(0deg,rgba(18,35,24,.72),rgba(18,35,24,.18) 65%,rgba(18,35,24,.02))}
  body.page-id-2477 .kjt-hero-content{top:auto;bottom:22px;left:18px;width:calc(100% - 36px);transform:none}
  body.page-id-2477 .kjt-hero h1{font-size:31px;margin-bottom:12px}
  body.page-id-2477 .kjt-hero-copy{font-size:25px;margin-bottom:10px}
  body.page-id-2477 .kjt-hero-sub{font-size:14px;margin-bottom:16px}
  body.page-id-2477 .kjt-actions{flex-direction:column}
  body.page-id-2477 .kjt-btn{width:100%;min-width:0}

  /* 5 features: exactly one vertical column */
  body.page-id-2477 .kjt-quick{padding-top:34px}
  body.page-id-2477 .kjt-heading-compact h2{font-size:28px}
  body.page-id-2477 .kjt-quick-list{display:block}
  body.page-id-2477 .kjt-quick-item{
    display:grid;grid-template-columns:36px 1fr;align-items:center;gap:14px;
    min-height:68px;padding:14px 16px;border-right:0;border-bottom:1px solid var(--border);text-align:left;
  }
  body.page-id-2477 .kjt-quick-item:last-child{border-bottom:0}
  body.page-id-2477 .kjt-quick-item span{width:36px;height:36px}
  body.page-id-2477 .kjt-quick-item strong{font-size:16px}

  /* nav 2 columns, last full width */
  body.page-id-2477 .kjt-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.page-id-2477 .kjt-nav a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:9px 7px;white-space:normal;text-align:center;line-height:1.35}
  body.page-id-2477 .kjt-nav a:last-child{grid-column:1/-1}

  /* split: image always above text */
  body.page-id-2477 .kjt-split{display:block}
  body.page-id-2477 .kjt-split>div+div{margin-top:28px}
  body.page-id-2477 .kjt-media{display:block!important;width:100%!important;height:auto!important}
  body.page-id-2477 .kjt-media img{display:block!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;opacity:1!important;visibility:visible!important}

  /* feature cards */
  body.page-id-2477 .kjt-feature-grid{grid-template-columns:1fr;gap:14px}
  body.page-id-2477 .kjt-feature-card{padding:27px 20px}

  /* price photos must remain visible */
  body.page-id-2477 .kjt-price-grid{grid-template-columns:1fr;gap:20px}
  body.page-id-2477 .kjt-price-card{display:block!important;overflow:hidden!important}
  body.page-id-2477 .kjt-price-img{display:block!important;width:100%!important;height:220px!important;min-height:220px!important;object-fit:cover!important;opacity:1!important;visibility:visible!important}
  body.page-id-2477 .kjt-price-body{padding:22px 19px}
  body.page-id-2477 .kjt-price-row strong{font-size:23px}
  body.page-id-2477 .kjt-note{text-align:left;padding:20px 17px}

  /* choice */
  body.page-id-2477 .kjt-figure img{height:auto}
  body.page-id-2477 .kjt-engraving{padding:20px 18px}

  /* gallery */
  body.page-id-2477 .kjt-gallery{grid-template-columns:1fr}
  body.page-id-2477 .kjt-gallery-wide{grid-column:auto}
  body.page-id-2477 .kjt-gallery img,
  body.page-id-2477 .kjt-gallery-wide img{height:300px}

  /* flow: no fixed height, no overlap */
  body.page-id-2477 .kjt-flow{display:block}
  body.page-id-2477 .kjt-flow article{min-height:0;margin:0;padding:22px 18px 20px}
  body.page-id-2477 .kjt-flow article:not(:last-child){margin-bottom:34px}
  body.page-id-2477 .kjt-flow article:not(:last-child)::after{content:"↓";right:auto;left:50%;top:auto;bottom:-31px;transform:translateX(-50%);font-size:22px}
  body.page-id-2477 .kjt-flow h3{font-size:17px}
  body.page-id-2477 .kjt-flow p{font-size:14px}
  body.page-id-2477 .kjt-box{padding:26px 19px}
  body.page-id-2477 .kjt-box h3{font-size:21px}

  /* recommendation + pet */
  body.page-id-2477 .kjt-recommend{
    grid-template-columns:1fr;
    gap:10px;
    margin:0;
    padding:0;
  }
  body.page-id-2477 .kjt-recommend > li{
    min-height:0;
    padding:15px 16px 15px 44px;
  }
  body.page-id-2477 .kjt-recommend > li::before{
    left:16px;
    top:15px;
  }
  body.page-id-2477 .kjt-pet-box{padding:34px 18px}
  body.page-id-2477 .kjt-pet-grid{grid-template-columns:1fr}
  body.page-id-2477 .kjt-pet-note{padding:19px 17px}

  /* direct-management bullet alignment */
  body.page-id-2477 .kjt-dot-list li{grid-template-columns:8px 1fr;column-gap:10px;font-size:14px}
  body.page-id-2477 .kjt-dot-list li::before{width:7px;height:7px;margin-top:.68em}

  /* terms stacked */
  body.page-id-2477 .kjt-terms>div{grid-template-columns:1fr}
  body.page-id-2477 .kjt-terms dt{padding:13px 15px 7px}
  body.page-id-2477 .kjt-terms dd{padding:7px 15px 15px}

  /* kuyo */
  body.page-id-2477 .kjt-kuyo-grid{grid-template-columns:1fr;gap:12px}
  body.page-id-2477 .kjt-kuyo-grid article{padding:22px 18px}
  body.page-id-2477 .kjt-consult{padding:28px 19px}
  body.page-id-2477 .kjt-consult h3{font-size:21px}

  /* contract */
  body.page-id-2477 .kjt-contract li{grid-template-columns:38px 1fr;gap:12px;padding:18px 15px}
  body.page-id-2477 .kjt-contract li>span{width:38px;height:38px}
  body.page-id-2477 .kjt-contract strong{font-size:17px}

  /* priest: hard normal flow */
  body.page-id-2477 .kjt-priest{display:block!important;position:static!important;height:auto!important;overflow:visible!important}
  body.page-id-2477 .kjt-priest>div{position:static!important;width:100%!important;height:auto!important;transform:none!important}
  body.page-id-2477 .kjt-priest-photo{margin:0 0 26px!important}
  body.page-id-2477 .kjt-priest-photo img{position:static!important;display:block!important;width:100%!important;height:auto!important;object-fit:contain!important;transform:none!important}
  body.page-id-2477 .kjt-priest>div+div{margin-top:0}

  /* faq normal flow */
  body.page-id-2477 .kjt-faq{position:static!important;height:auto!important;overflow:visible!important}
  body.page-id-2477 .kjt-faq details{position:static!important;height:auto!important;overflow:visible!important}
  body.page-id-2477 .kjt-faq summary{padding:15px 44px 15px 15px;font-size:14px;line-height:1.55}
  body.page-id-2477 .kjt-faq details p{padding:0 15px 16px;font-size:14px;line-height:1.7}

  /* contact */
  body.page-id-2477 .kjt-contact-grid{grid-template-columns:1fr}
  body.page-id-2477 .kjt-contact-photo{min-height:0}
  body.page-id-2477 .kjt-contact-photo img{height:auto;min-height:0;object-fit:contain}
  body.page-id-2477 .kjt-contact-info{padding:28px 19px}
  body.page-id-2477 .kjt-map iframe{height:360px}

  /* final */
  body.page-id-2477 .kjt-final{height:420px}
  body.page-id-2477 .kjt-final>img{object-position:center 22%}
  body.page-id-2477 .kjt-final-content h2{font-size:25px}
  body.page-id-2477 .kjt-final-content p{font-size:14px}
}

/* 日本語ヘッダーを一列に収める */
@media screen and (min-width:769px){
  html[lang^="ja"] .main_header nav ul{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center;
  }
  html[lang^="ja"] .main_header nav ul li{
    width:auto!important;
    min-width:0!important;
    white-space:nowrap;
  }
  html[lang^="ja"] .main_header nav ul li a{
    padding-left:12px!important;
    padding-right:12px!important;
    font-size:14px;
  }
}

/* 英語Accessページ：時間・料金欄の空白枠を非表示 */
body.page-id-2471 .en-access-info p:empty {
  display: none !important;
}