/* RENOVIA v3 / 2026-10 / CSS独立追加用。既存 css/style.css は上書きしません。 */
.rv3{--rv-red:#981e35;--rv-red-dark:#711429;--rv-pink:#fbe8e9;--rv-cream:#faf5ed;--rv-ink:#28252a;--rv-muted:#686368;--rv-border:#e9e1df;--rv-ease:cubic-bezier(.22,1,.36,1);color:var(--rv-ink);font-family:inherit;line-height:1.75;overflow:hidden;background:#fff}
.rv3 *, .rv3 *::before,.rv3 *::after,.rv3-chat *, .rv3-chat *::before,.rv3-chat *::after{box-sizing:border-box}
.rv3 a,.rv3 button,.rv3-chat button,.rv3-chat a{transition:background .24s var(--rv-ease),border-color .24s var(--rv-ease),transform .24s var(--rv-ease),box-shadow .24s var(--rv-ease)}
.rv3 a{text-decoration:none}.rv3 a:hover,.rv3 a:focus-visible{text-decoration:none}
.rv3-shell{width:min(1200px,calc(100% - 64px));margin-inline:auto}.rv3-only-mobile{display:none}
.rv3-section{padding:94px 0}.rv3-section--warm{background:#fbf7f2}.rv3-section--cream{background:#fff9f4}
.rv3-eyebrow{display:flex;gap:10px;align-items:center;letter-spacing:.14em;font-size:13px;font-weight:800;color:var(--rv-red);margin:0 0 28px}.rv3-eyebrow__dot{width:24px;height:2px;background:var(--rv-red)}
.rv3-kicker{font-size:12px;font-weight:900;letter-spacing:.18em;color:var(--rv-red);margin:0 0 14px;display:flex;align-items:center;gap:10px}.rv3-kicker:before{content:"";width:24px;height:2px;background:var(--rv-red);display:inline-block}
.rv3-heading{margin-bottom:37px}.rv3-heading h2,.rv3-why__intro h2{margin:0 0 13px;line-height:1.3;letter-spacing:-.035em;font-size:clamp(28px,3.5vw,46px);font-weight:850;color:var(--rv-ink)}.rv3-heading>p,.rv3-heading>div>p:last-child{margin:0;color:var(--rv-muted);font-size:15px}.rv3-heading--row{display:flex;justify-content:space-between;align-items:end;gap:24px}
.rv3-text-link{display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;font:inherit;font-weight:800;font-size:14px;color:var(--rv-red)!important;border:0;background:transparent;padding:7px 0;cursor:pointer;white-space:nowrap}.rv3-text-link:hover{transform:translateX(3px)}
.rv3-button{display:inline-flex;justify-content:center;align-items:center;gap:14px;min-height:52px;min-width:190px;border:1px solid transparent;border-radius:999px;padding:13px 24px;font-size:14px;line-height:1.4;font-weight:850;text-align:center;text-decoration:none!important;cursor:pointer}.rv3-button:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(70,17,31,.12)}
.rv3-button--primary{background:var(--rv-red);color:#fff!important}.rv3-button--primary:hover{background:var(--rv-red-dark)}.rv3-button--light{background:white;color:var(--rv-red)!important;border-color:#dcb7bd}
.rv3-hero{position:relative;background:radial-gradient(ellipse at 85% 10%,rgba(250,208,203,.45),transparent 43%),linear-gradient(105deg,#fff,#fffaf6 70%,#faeeec);padding:48px 0 0;isolation:isolate}
.rv3-hero__texture{position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(#e9d9d4 0.8px, transparent 0.8px);background-size:22px 22px;opacity:.18;z-index:-1}
.rv3-hero__layout{display:grid;grid-template-columns:52% 48%;align-items:center;min-height:580px}.rv3-hero__text{position:relative;z-index:2;padding:36px 0 55px}.rv3-hero h1{color:#211f23;font-size:clamp(50px,5.2vw,76px);font-weight:900;letter-spacing:-.07em;line-height:1.19;margin:0 0 26px}.rv3-hero h1 em{font-style:normal;color:var(--rv-red)}.rv3-hero__lead{font-size:clamp(15px,1.45vw,18px);font-weight:550;line-height:1.95;margin:0 0 30px;max-width:610px}.rv3-hero__actions{display:flex;flex-wrap:wrap;gap:12px}.rv3-hero__foot{margin:20px 0 0;color:#756e70;font-size:12px}
.rv3-hero__art{position:relative;height:540px;min-width:0}.rv3-hero__house{position:absolute;top:26px;right:-20px;width:94%;height:392px;object-fit:cover;border-radius:145px 22px 22px 22px;box-shadow:0 25px 58px rgba(44,23,22,.10)}.rv3-hero__sun{position:absolute;top:10px;right:5px;font-size:55px;color:#dcad63;opacity:.55;z-index:1}.rv3-hero__mascot{position:absolute;bottom:7px;right:25px;width:clamp(210px,26vw,340px);height:auto;z-index:3;filter:drop-shadow(0 12px 9px rgba(64,34,36,.10))}.rv3-speech{background:#fff;border:2px solid #dfd1cf;border-radius:22px;box-shadow:0 10px 24px rgba(83,23,35,.08);color:var(--rv-red-dark);font-size:15px;font-weight:850;text-align:center;line-height:1.55;padding:15px 20px}.rv3-hero__speech{position:absolute;right:80px;bottom:280px;z-index:4;transform:rotate(-4deg)}.rv3-hero__speech::after{content:"";position:absolute;right:34px;bottom:-13px;width:19px;height:19px;background:#fff;border-bottom:2px solid #dfd1cf;border-right:2px solid #dfd1cf;transform:rotate(45deg)}
.rv3-hero__friends{position:absolute;left:2px;bottom:25px;z-index:2;display:flex;align-items:end;gap:2px;padding:11px 12px 7px;background:#fff;border:1px solid #f0e2dc;border-radius:22px;box-shadow:0 8px 22px rgba(56,30,30,.07)}.rv3-hero__friends img{width:77px;height:73px;object-fit:contain}.rv3-hero__friends span{position:absolute;font-size:10px;color:#817477;left:12px;top:-21px;white-space:nowrap;font-weight:800}
.rv3-hero__points{display:flex;gap:0;padding:23px 0 28px;border-top:1px solid #e9dedd;position:relative;z-index:2}.rv3-hero__points>span{flex:1;display:flex;justify-content:center;align-items:center;gap:10px;font-size:14px;font-weight:750}.rv3-hero__points>span+span{border-left:1px solid #e9dedd}.rv3-hero__points i{display:grid;place-items:center;width:26px;height:26px;font-style:normal;color:var(--rv-red);background:var(--rv-pink);border-radius:50%}
.rv3-services{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.rv3-service{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:264px;padding:23px 20px 19px;background:white;border:1px solid #e7dfdb;border-radius:22px;color:var(--rv-ink)!important;overflow:hidden}.rv3-service:hover{transform:translateY(-5px);border-color:#cda3a6;box-shadow:0 16px 30px rgba(89,32,44,.07)}.rv3-service h3{position:relative;margin:0 0 12px;font-size:17px;line-height:1.55;font-weight:850;z-index:1}.rv3-service p{position:relative;margin:0 0 20px;font-size:13px;color:var(--rv-muted);line-height:1.85;z-index:1}.rv3-service__arrow{margin-top:auto;font-size:12px;font-weight:850;color:var(--rv-red)}.rv3-service__mark{width:62px;height:62px;border-radius:17px;display:grid;place-items:center;font-size:35px;font-style:normal;font-weight:850;margin-bottom:20px}.rv3-service__mark--red{background:#fff0ed;color:var(--rv-red)}.rv3-service__mark--gold{background:#fff5dd;color:#b57d25}.rv3-service__character{height:77px;max-width:118px;object-fit:contain;object-position:left center;margin:-8px 0 9px}.rv3-service--main{background:linear-gradient(155deg,#a6253f,#79152a);color:#fff!important;border-color:transparent}.rv3-service--main h3{color:#fff}.rv3-service--main p{color:rgba(255,255,255,.9)}.rv3-service--main .rv3-service__arrow{color:#fff}.rv3-service--main:hover{border-color:transparent}.rv3-service__top{width:100%;min-height:85px;display:flex;justify-content:space-between;align-items:center;gap:4px}.rv3-service__top img{width:105px;height:86px;object-fit:contain;filter:drop-shadow(0 5px 5px rgba(0,0,0,.12))}.rv3-service__label{font-size:10px;color:#fff;background:#bf4960;padding:6px 9px;border-radius:999px;font-weight:800}
.rv3-why{display:grid;grid-template-columns:43% 1fr;gap:75px;align-items:center}.rv3-why__intro>p:not(.rv3-kicker){font-size:15px;color:var(--rv-muted);line-height:2;max-width:450px;margin:0 0 21px}.rv3-why__items{display:grid;gap:13px}.rv3-why__items article{position:relative;padding:25px 30px 23px 83px;background:#fff;border-radius:18px;border:1px solid #eee1dc}.rv3-why__items article>span{position:absolute;left:29px;top:25px;font-weight:900;font-size:23px;color:#c16b75}.rv3-why__items h3{margin:0 0 3px;font-size:17px;font-weight:850}.rv3-why__items p{font-size:13px;color:var(--rv-muted);margin:0}
.rv3-news{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.rv3-news__featured{display:grid;grid-template-columns:43% 57%;min-height:255px;background:#fff;border:1px solid var(--rv-border);border-radius:22px;overflow:hidden}.rv3-news__featured-image{display:block;min-width:0}.rv3-news__featured-image img{width:100%;height:100%;object-fit:cover;display:block}.rv3-news__placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f7eded,#ebccd1);height:100%;min-height:240px;color:var(--rv-red);font-size:31px;line-height:1.25;font-weight:900;text-align:center}.rv3-news__featured-text{padding:22px 25px}.rv3-news__meta{display:flex;align-items:center;gap:9px;margin:0 0 13px;font-size:11px;color:#827b7f}.rv3-news__meta span{background:#ffe6e9;color:var(--rv-red);border-radius:30px;padding:3px 9px;font-weight:900}.rv3-news__featured-text h3{font-size:18px;line-height:1.6;margin:0 0 8px}.rv3-news__featured-text h3 a{color:var(--rv-ink)!important}.rv3-news__featured-text>p:last-child{font-size:12px;color:var(--rv-muted);line-height:1.9;margin:0}.rv3-news__list{display:flex;flex-direction:column;border:1px solid var(--rv-border);border-radius:22px;background:#fff;overflow:hidden}.rv3-news__list>a{display:grid;grid-template-columns:83px 1fr 15px;gap:12px;align-items:center;padding:17px 20px;color:var(--rv-ink)!important;border-bottom:1px solid var(--rv-border);min-height:77px}.rv3-news__list>a:last-child{border-bottom:0}.rv3-news__list>a:hover{background:#fff9f8}.rv3-news__list time{font-size:11px;color:#80787b}.rv3-news__list strong{font-size:13px;line-height:1.6;font-weight:750}.rv3-news__list>a span{color:var(--rv-red)}.rv3-news__empty{padding:24px;color:var(--rv-muted);font-size:13px}
.rv3-voice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.rv3-voice-card{background:#fff;border:1px solid #ebdfd5;border-radius:22px;padding:23px;position:relative}.rv3-voice-card__quote{color:#d6a2a7;font-family:Georgia,serif;font-size:54px;line-height:1;display:block}.rv3-voice-card h3{font-size:18px;margin:0 0 12px;line-height:1.5}.rv3-voice-card p{margin:0 0 12px;color:var(--rv-muted);font-size:13px}.rv3-voice-card a{color:var(--rv-red)!important;font-size:12px;font-weight:850}.rv3-voice-coming{display:flex;align-items:center;gap:22px;background:#fff;border-radius:22px;border:1px dashed #ddc0bc;padding:15px 26px;max-width:780px;margin:auto}.rv3-voice-coming img{width:105px;height:95px;object-fit:contain;flex:none}.rv3-voice-coming p{margin:0;color:var(--rv-muted);font-size:14px}.rv3-voice-coming strong{display:inline-block;color:var(--rv-ink);font-size:17px;margin-bottom:5px}
.rv3-case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.rv3-case{background:white;border:1px solid var(--rv-border);border-radius:22px;overflow:hidden;transition:transform .22s}.rv3-case:hover{transform:translateY(-4px);box-shadow:0 14px 26px rgba(50,20,25,.07)}.rv3-case__link{display:block;color:inherit!important}.rv3-case__photos{display:flex;height:220px;gap:3px;overflow:hidden;background:#f2eded}.rv3-case__photos>div{position:relative;flex:1;min-width:0}.rv3-case__photos img{height:100%;width:100%;display:block;object-fit:cover}.rv3-case__photos span{position:absolute;left:8px;bottom:9px;border-radius:7px;background:#242124;color:#fff;font-size:10px;font-weight:900;letter-spacing:.05em;padding:3px 9px}.rv3-case__photos .rv3-case__one{flex:1}.rv3-case__none{display:grid;place-items:center;width:100%;background:#f3e6e6;color:var(--rv-red);font-weight:900}.rv3-case__body{padding:18px 20px}.rv3-case__body>span{color:var(--rv-red);font-size:11px;font-weight:750}.rv3-case__body h3{margin:10px 0 13px;font-size:17px;line-height:1.5;min-height:51px;font-weight:850}.rv3-case__body p{font-size:12px;font-weight:800;color:var(--rv-red);margin:0}.rv3-empty{padding:25px;border-radius:18px;border:1px dashed #d7bdba;background:#fff;color:var(--rv-muted)}
.rv3-contact{color:#fff;background:linear-gradient(125deg,#74132a,#a6253f 70%,#b94359);padding:54px 0;position:relative;overflow:hidden}.rv3-contact::before{content:"";position:absolute;width:440px;height:440px;border:1px solid rgba(255,255,255,.10);border-radius:50%;right:-100px;top:-160px}.rv3-contact__layout{position:relative;display:grid;grid-template-columns:150px 1fr auto;align-items:center;gap:30px}.rv3-contact__layout>img{height:150px;width:150px;object-fit:contain;filter:drop-shadow(0 8px 8px rgba(0,0,0,.14))}.rv3-contact .rv3-kicker{color:#fff;opacity:.8}.rv3-contact .rv3-kicker::before{background:#fff}.rv3-contact__copy h2{font-size:clamp(24px,2.8vw,37px);line-height:1.45;margin:0 0 8px;font-weight:850;color:#fff}.rv3-contact__copy>p:last-child{margin:0;font-size:13px;line-height:1.9;color:rgba(255,255,255,.86)}.rv3-contact__buttons{display:grid;gap:9px;justify-items:stretch}.rv3-contact__buttons .rv3-button{min-width:210px}.rv3-button--white{background:#fff;color:var(--rv-red)!important}.rv3-button--outline-white{border-color:rgba(255,255,255,.75);background:transparent;color:#fff!important}.rv3-contact__phone{color:#fff!important;font-size:11px;font-weight:750;text-align:center}
/* chat launcher, panel: existing WordPress frontend unaffected */
.rv3-chat{--rv-chat-red:#981e35;--rv-chat-ink:#252226;font-family:inherit;position:fixed;left:20px;right:auto;bottom:20px;z-index:2147481000;pointer-events:none}.rv3-chat>*{pointer-events:auto}.rv3-chat button{font-family:inherit;cursor:pointer}.rv3-chat__launcher{border:2px solid white;border-radius:70px;background:var(--rv-chat-red);box-shadow:0 8px 36px rgba(56,20,27,.27);color:#fff;display:flex;gap:7px;align-items:center;min-width:236px;min-height:74px;padding:6px 16px 6px 6px;text-align:left}.rv3-chat__launcher:hover{transform:translateY(-4px)}.rv3-chat__launcher img{height:60px;width:65px;object-fit:contain;background:#fff7f7;border-radius:50%}.rv3-chat__launcher strong{display:block;font-size:14px;letter-spacing:.015em;line-height:1.6}.rv3-chat__launcher small{display:block;font-size:11px;line-height:1.45;color:#fbdce3}.rv3-chat__launcher-icon{margin-left:auto;font-size:23px;font-weight:400}.rv3-chat__panel{position:absolute;bottom:88px;left:0;right:auto;width:min(370px,calc(100vw - 24px));height:min(570px,calc(100dvh - 115px));background:#fff;border-radius:22px;border:1px solid #e6d8d6;box-shadow:0 15px 50px rgba(44,20,27,.22);display:flex;flex-direction:column;overflow:hidden;color:var(--rv-chat-ink)}.rv3-chat__panel[hidden]{display:none!important}.rv3-chat__header{flex:none;display:flex;align-items:center;gap:10px;padding:12px 14px;background:#fff7f5;border-bottom:1px solid #eedcdd}.rv3-chat__header img{width:48px;height:48px;object-fit:contain}.rv3-chat__header>div{flex:1}.rv3-chat__header strong{display:block;font-size:15px}.rv3-chat__header span{display:block;font-size:11px;color:#76686c}.rv3-chat__close{border:0;border-radius:50%;background:#fff;height:36px;width:36px;font-size:25px;line-height:1;color:#6b4e55}.rv3-chat__messages{flex:1;min-height:0;overflow:auto;padding:18px 14px 10px;background:#fffdfa;overscroll-behavior:contain}.rv3-chat__message{display:flex;align-items:flex-end;gap:8px;margin:0 0 13px}.rv3-chat__message img{height:40px;width:44px;object-fit:contain;flex:none}.rv3-chat__bubble{font-size:13px;line-height:1.75;padding:10px 12px;border-radius:16px 16px 16px 4px;background:#f4eceb;color:#353033;max-width:85%;white-space:pre-wrap;overflow-wrap:anywhere}.rv3-chat__message--user{justify-content:flex-end}.rv3-chat__message--user .rv3-chat__bubble{background:var(--rv-chat-red);color:#fff;border-radius:16px 16px 4px 16px}.rv3-chat__choices{display:flex;flex-wrap:wrap;gap:8px;padding:12px 13px;background:#fff;border-top:1px solid #efe6e4;flex:none;max-height:185px;overflow:auto}.rv3-chat__choices button,.rv3-chat__choices a{border:1px solid #d5a6b1;border-radius:999px;background:#fff;color:var(--rv-chat-red)!important;text-decoration:none!important;font-size:12px;font-weight:750;padding:9px 12px;line-height:1.3}.rv3-chat__choices button:hover,.rv3-chat__choices a:hover,.rv3-chat__choices button:focus-visible,.rv3-chat__choices a:focus-visible{background:#fdf0f2}.rv3-chat__disclaimer{margin:0;padding:7px 13px 9px;background:#fff;border-top:1px solid #f1ebea;font-size:10px;line-height:1.6;color:#7c7477;flex:none}
/* Root theme footer: size adjustment only on current homepage, no other pages */
body:has(> .rv3) .c-footer,body:has(.rv3) .c-footer{font-size:14px}
body:has(.rv3) .c-footer__mid__left__info{font-size:13px}
.rv3 :focus-visible,.rv3-chat :focus-visible{outline:3px solid #df9e4a;outline-offset:3px}
@media(max-width:1100px){.rv3-services{grid-template-columns:repeat(3,minmax(0,1fr))}.rv3-service--main{grid-column:span 2}.rv3-hero__layout{grid-template-columns:54% 46%}.rv3-hero__house{width:105%;right:-5%}.rv3-hero__mascot{width:280px;right:0}.rv3-contact__layout{grid-template-columns:105px 1fr auto;gap:15px}.rv3-contact__layout>img{height:105px;width:105px}}
@media(max-width:760px){.rv3-shell{width:min(100% - 36px,560px)}.rv3-section{padding:58px 0}.rv3-only-mobile{display:inline}.rv3-heading--row{align-items:flex-start;flex-direction:column;gap:10px}.rv3-heading{margin-bottom:26px}.rv3-hero{padding:18px 0 0}.rv3-hero__layout{display:flex;flex-direction:column;align-items:stretch;min-height:0}.rv3-hero__text{padding:22px 0 16px}.rv3-hero__text .rv3-eyebrow{font-size:11px;margin-bottom:18px}.rv3-hero h1{font-size:clamp(42px,10.8vw,62px);margin-bottom:14px}.rv3-hero__lead{font-size:14px;line-height:1.85;margin-bottom:20px}.rv3-pc{display:none}.rv3-hero__actions{gap:9px}.rv3-hero__actions .rv3-button{min-width:0;flex:1;padding:12px 10px;font-size:12px;min-height:49px}.rv3-hero__foot{margin-top:13px;font-size:10px}.rv3-hero__art{height:350px;width:100%;margin:4px 0}.rv3-hero__house{right:-4px;top:5px;width:92%;height:282px;border-radius:90px 18px 18px 18px}.rv3-hero__mascot{width:235px;bottom:0;right:-10px}.rv3-hero__speech{right:55px;bottom:208px;font-size:12px;padding:9px 12px}.rv3-hero__friends{bottom:8px;left:0;padding:8px 6px}.rv3-hero__friends img{width:52px;height:55px}.rv3-hero__friends span{font-size:9px}.rv3-hero__points{padding:14px 0;flex-direction:column;gap:7px}.rv3-hero__points>span{justify-content:flex-start;font-size:12px}.rv3-hero__points>span+span{border-left:0}.rv3-hero__points i{width:20px;height:20px}.rv3-services{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rv3-service--main{grid-column:span 2;min-height:185px}.rv3-service{min-height:220px;padding:16px;border-radius:17px}.rv3-service h3{font-size:15px}.rv3-service p{font-size:12px}.rv3-service__top{min-height:60px}.rv3-service__top img{height:70px;width:90px}.rv3-service__character{height:64px}.rv3-why{grid-template-columns:1fr;gap:22px}.rv3-why__intro h2{font-size:30px}.rv3-why__items article{padding:18px 20px 18px 67px}.rv3-why__items article>span{top:19px;left:20px;font-size:19px}.rv3-news{grid-template-columns:1fr}.rv3-news__featured{grid-template-columns:38% 62%;min-height:185px}.rv3-news__featured-text{padding:15px}.rv3-news__featured-text h3{font-size:15px}.rv3-news__placeholder{min-height:160px;font-size:21px}.rv3-news__list>a{min-height:65px;padding:13px;grid-template-columns:77px 1fr 14px}.rv3-voice-grid,.rv3-case-grid{grid-template-columns:1fr}.rv3-case__photos{height:240px}.rv3-case__body h3{min-height:0}.rv3-voice-coming{padding:13px;gap:12px}.rv3-voice-coming img{height:80px;width:90px}.rv3-voice-coming strong{font-size:14px}.rv3-voice-coming p{font-size:12px}.rv3-contact{padding:40px 0}.rv3-contact__layout{grid-template-columns:82px 1fr;gap:15px}.rv3-contact__layout>img{width:82px;height:96px;align-self:start}.rv3-contact__copy h2{font-size:24px}.rv3-contact__buttons{grid-column:1 / -1;grid-template-columns:1fr 1fr}.rv3-contact__buttons .rv3-button{min-width:0;padding:12px;font-size:12px;min-height:48px}.rv3-contact__phone{grid-column:1/-1}.rv3-chat{left:11px;right:auto;bottom:12px}.rv3-chat__launcher{min-width:0;min-height:59px;padding:4px 12px 4px 4px;gap:4px}.rv3-chat__launcher img{height:50px;width:52px}.rv3-chat__launcher strong{font-size:12px}.rv3-chat__launcher small{font-size:10px}.rv3-chat__panel{bottom:70px;height:min(530px,calc(100dvh - 95px))}}
@media(max-width:370px){.rv3-hero__mascot{width:200px}.rv3-hero__speech{bottom:185px;right:26px}.rv3-hero__friends img{width:42px}.rv3-services{grid-template-columns:1fr}.rv3-service--main{grid-column:1}.rv3-service{min-height:172px}.rv3-chat__launcher small{display:none}}
@media(prefers-reduced-motion:reduce){.rv3 *, .rv3-chat *{transition:none!important;scroll-behavior:auto!important}}


/* RENOVIA Ver.4 | りのびわん公式素材・TVCMセクション */
.rv3 .rv4-hero-cm-link{display:inline-flex;gap:7px;align-items:center;margin-left:10px;font-size:12px;font-weight:800;color:#981e35;text-decoration:underline;text-underline-offset:4px}
.rv3 .rv4-hero-cm-link:hover{color:#711429}
.rv3 .rv3-hero__mascot{object-fit:contain;max-width:45%;width:clamp(210px,26vw,340px)}
.rv3 .rv4-movie{background:linear-gradient(115deg,#fff8f3 0%,#fff 55%,#fff7f3 100%);border-top:1px solid #f4e8e5;border-bottom:1px solid #f4e8e5}
.rv3 .rv4-movie__layout{display:grid;grid-template-columns:0.79fr 1.21fr;gap:clamp(28px,5vw,72px);align-items:center}
.rv3 .rv4-movie__copy h2{font-weight:900;letter-spacing:-.04em;line-height:1.35;font-size:clamp(28px,3.4vw,43px);margin:0 0 21px;color:#28252a}
.rv3 .rv4-movie__copy>p:not(.rv3-kicker){font-size:15px;color:#635c60;line-height:2;margin:0 0 18px}
.rv3 .rv4-movie__mini{display:flex;align-items:center;gap:10px;color:#8d2a3c;font-weight:850;font-size:13px;line-height:1.55}
.rv3 .rv4-movie__mini img{width:84px;height:75px;object-fit:contain}
.rv3 .rv4-movie__screen{position:relative;width:100%;aspect-ratio:16/9;border:8px solid #fff;border-radius:24px;overflow:hidden;background:#1f1b1d;box-shadow:0 25px 55px rgba(70,30,32,.14)}
.rv3 .rv4-movie__screen video{display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:contain;background:#181818}
.rv3 .rv4-movie__meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:15px;font-size:12px;color:#7f7779}
.rv3 .rv4-movie__meta>span:first-child{font-weight:900;color:#981e35}
.rv3 .rv4-movie__meta>span:first-child span{margin-right:6px}
@media(max-width:850px){.rv3 .rv4-movie__layout{grid-template-columns:1fr;gap:25px}.rv3 .rv4-movie__mini{margin-bottom:3px}}
@media(max-width:600px){.rv3 .rv4-movie__screen{border-width:5px;border-radius:15px}.rv3 .rv4-movie__meta{flex-direction:column}.rv3 .rv4-hero-cm-link{display:flex;margin:12px 0 0}}

/* RENOVIA Ver.4.1: ミツモア口コミ表示 (テスト環境専用) */
.rv41-voices__heading{margin-bottom:34px}
.rv41-voices__layout{display:grid;grid-template-columns:minmax(290px,.78fr) minmax(0,1.35fr);gap:24px;align-items:stretch}
.rv41-voices__summary,.rv41-voices__widget{background:#fff;border:1px solid #eadbdb;border-radius:24px;padding:28px;min-width:0}
.rv41-voices__summary{position:relative;overflow:hidden;background:linear-gradient(145deg,#fff,#fff5f3)}
.rv41-voices__eyebrow{color:#9b1937;font-size:12px;font-weight:700;letter-spacing:.03em}
.rv41-voices__mascot{display:block;position:absolute;width:85px;height:85px;object-fit:contain;right:20px;top:18px}
.rv41-voices__platform{margin:42px 0 5px;color:#4a3740;font-size:16px;font-weight:700}
.rv41-voices__score{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.rv41-voices__score strong{font-size:56px;font-weight:800;line-height:1.14;color:#212027}
.rv41-voices__stars{font-size:24px;letter-spacing:2px;color:#d29a32;background:linear-gradient(to right,#d29a32 94%,#d9d3ce 94%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.rv41-voices__count{font-size:14px;color:#323036;margin:8px 0 14px}
.rv41-voices__count strong{font-size:16px}
.rv41-voices__note{font-size:12px;line-height:1.85;color:#746e71}
.rv41-voices__link{display:inline-flex;gap:10px;align-items:center;background:#9b1937;color:#fff!important;border-radius:99px;padding:12px 20px;margin-top:22px;font-size:13px;font-weight:700;text-decoration:none!important;transition:transform .18s}
.rv41-voices__link:hover{transform:translateY(-2px)}
.rv41-voices__widget{background:#fff}
.rv41-voices__widget-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline;border-bottom:1px solid #eee5e2;padding-bottom:14px;margin-bottom:18px;flex-wrap:wrap}
.rv41-voices__widget-head h3{font-size:19px;line-height:1.3;margin:0}
.rv41-voices__widget-head p{color:#8b8181;font-size:12px;margin:0}
.rv41-voices__widget-area{min-height:200px;max-width:100%;overflow-x:auto}
.rv41-voices__widget-foot{font-size:12px;color:#70686b;line-height:1.8;margin-top:16px}
.rv41-voices__widget-foot a{color:#9b1937;text-decoration:underline}
@media(max-width:920px){.rv41-voices__layout{grid-template-columns:1fr}.rv41-voices__summary,.rv41-voices__widget{padding:24px}.rv41-voices__widget-area{min-height:130px}}
@media(max-width:520px){.rv41-voices__summary,.rv41-voices__widget{padding:20px;border-radius:18px}.rv41-voices__mascot{width:60px;height:60px;top:14px;right:14px}.rv41-voices__platform{margin-top:30px}.rv41-voices__score strong{font-size:46px}.rv41-voices__stars{font-size:18px}.rv41-voices__widget-head h3{font-size:17px}}


/* RENOVIA Ver.4.2: official social media links; only homepage */
.rv3 .rv42-social{background:#fff;border-top:1px solid #f2e8e5;padding-top:58px;padding-bottom:58px}
.rv3 .rv42-social__layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(330px,.88fr);align-items:center;gap:clamp(28px,6vw,85px)}
.rv3 .rv42-social__intro h2{font-size:clamp(26px,3vw,41px);font-weight:900;line-height:1.4;letter-spacing:-.04em;color:#272128;margin:12px 0 14px}
.rv3 .rv42-social__intro>p:not(.rv3-kicker){font-size:14px;line-height:1.9;color:#6a5c60;max-width:520px;margin:0}
.rv3 .rv42-social__friends{display:flex;align-items:end;gap:6px;margin-top:16px}
.rv3 .rv42-social__friends img{width:63px;height:63px;object-fit:contain}
.rv3 .rv42-social__friends img:first-child{width:75px;height:75px}
.rv3 .rv42-social__links{display:grid;gap:13px}
.rv3 .rv42-social__link{display:flex;align-items:center;gap:17px;padding:17px 20px;background:#fffaf8;color:#34242c!important;border:1px solid #ead8d7;border-radius:18px;text-decoration:none!important;box-shadow:0 10px 24px rgba(88,38,44,.04);transition:transform .2s,border-color .2s,box-shadow .2s}
.rv3 .rv42-social__link:hover{transform:translateY(-3px);border-color:#bd8c95;box-shadow:0 14px 28px rgba(88,38,44,.11)}
.rv3 .rv42-social__icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;flex:0 0 56px;border-radius:15px;color:#a41c3b;background:#fbe7ed}
.rv3 .rv42-social__icon svg{width:30px;height:30px}
.rv3 .rv42-social__icon--x{background:#242026;color:white;font-size:28px;font-weight:700}
.rv3 .rv42-social__label{display:grid;gap:4px;flex:1;min-width:0}
.rv3 .rv42-social__label strong{font-size:19px;line-height:1.25;color:#2b2429}
.rv3 .rv42-social__label small{color:#786971;font-size:13px}
.rv3 .rv42-social__arrow{font-size:19px;font-weight:800;color:#a41c3b}
.rv3 .rv42-contact-social{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px 14px;margin-top:2px;color:#fff;font-size:12px;grid-column:1/-1}
.rv3 .rv42-contact-social a{color:#fff!important;text-decoration:underline!important;text-underline-offset:3px;font-weight:700}
@media(max-width:850px){.rv3 .rv42-social__layout{grid-template-columns:1fr;gap:24px}.rv3 .rv42-social__links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.rv3 .rv42-social{padding-top:44px;padding-bottom:44px}.rv3 .rv42-social__links{grid-template-columns:1fr}.rv3 .rv42-social__link{padding:13px 15px}.rv3 .rv42-social__icon{width:48px;height:48px;flex-basis:48px}.rv3 .rv42-social__label strong{font-size:17px}.rv3 .rv42-social__friends img{width:54px;height:54px}.rv3 .rv42-social__friends img:first-child{width:64px;height:64px}}

/* RENOVIA Ver.4.3: two trust sources; screenshot-based snapshot, no Google scraping */
.rv3 .rv43-voices__sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:20px}
.rv3 .rv43-voices__source{background:#fff;border:1px solid #eadbdb;border-radius:24px;padding:27px;display:flex;flex-direction:column;min-width:0;box-shadow:0 8px 24px rgba(88,38,44,.035)}
.rv3 .rv43-voices__source--meetsmore{background:linear-gradient(135deg,#fff,#fff7f5)}
.rv3 .rv43-voices__source-top{display:flex;align-items:center;justify-content:space-between;min-height:68px;gap:10px}
.rv3 .rv43-voices__source-top img{width:68px;height:68px;object-fit:contain}
.rv3 .rv43-voices__eyebrow{font-size:11px;letter-spacing:.15em;font-weight:850;color:#981e35}
.rv3 .rv43-voices__google-g{display:grid;place-items:center;width:54px;height:54px;font-family:Arial,sans-serif;font-size:37px;font-weight:bold;color:#4285f4;background:#fff;border:1px solid #eee;border-radius:15px}
.rv3 .rv43-voices__source h3{font-size:22px;line-height:1.45;font-weight:850;color:#242024;margin:12px 0 6px}
.rv3 .rv43-voices__source>p:not(.rv43-voices__date){font-size:14px;line-height:1.85;color:#706469;margin:5px 0 12px}
.rv3 .rv43-voices__source .rv43-voices__google-location{font-weight:700;color:#494047;margin-bottom:6px}
.rv3 .rv43-voices__snapshot{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:4px 0 10px}
.rv3 .rv43-voices__snapshot strong{font-size:37px;line-height:1.3;font-weight:850;color:#242024}
.rv3 .rv43-voices__stars{background:linear-gradient(to right,#e4a027 90%,#d5d0ca 90%);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:24px;letter-spacing:-1px;white-space:nowrap}
.rv3 .rv43-voices__snapshot>span:last-child{font-size:13px;color:#615962}
.rv3 .rv43-voices__source .rv43-voices__date{font-size:12px;line-height:1.7;color:#777074;margin:0 0 14px}
.rv3 .rv43-voices__go{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:#941d34!important;border:1px solid #dbaeb5;border-radius:100px;padding:12px 16px;text-decoration:none!important;margin-top:auto;align-self:flex-start}
.rv3 .rv43-voices__go:hover{background:#fbeef0}
.rv3 .rv43-voices__widget{padding:22px 26px}
.rv3 .rv43-voices__widget .rv41-voices__widget-head{margin-bottom:10px}
.rv3 .rv43-voices__widget .rv41-voices__widget-area{min-height:130px}
@media(max-width:760px){.rv3 .rv43-voices__sources{grid-template-columns:1fr;gap:14px}.rv3 .rv43-voices__source{padding:20px;border-radius:18px}.rv3 .rv43-voices__source h3{font-size:19px}.rv3 .rv43-voices__widget{padding:20px}}


/* ============================================
   RENOVIA Ver.4.4 — テスト環境専用 UI微調整
   ・固定ヘッダーの本文重なり防止（透過背景→スクロールで白帯）
   ・ロゴ・ナビのPCサイズ見直し
   ・PCコンテンツ幅の拡張
   ・相談チャットを右下へ
   対象: WordPressトップページのみ body:has(#rv3-top) / #rv3-top
   ============================================ */

/* 本文の読みやすさ：左右を少し広く使用 */
.rv3 .rv3-shell {
  width: min(1390px, calc(100% - clamp(38px, 6vw, 96px)));
  margin-inline: auto;
}
.rv3 .rv3-section { padding-block: clamp(64px, 5.1vw, 86px); }
.rv3 .rv3-hero__layout { min-height: 570px; }

/* スクロール後の固定ナビ背景をテストサイトのトップページに限定して表示 */
body:has(#rv3-top).rv44-scrolled::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 78px;
  z-index: 999998;
  pointer-events: none;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #efe6e4;
  box-shadow: 0 8px 24px rgba(47, 25, 31, .055);
}

@media (min-width: 769px) {
  body:has(#rv3-top) .c-header__logo {
    top: clamp(68px, 5vw, 85px);
    left: clamp(16px, 2vw, 32px);
    transition: top .24s ease, translate .24s ease;
  }
  body:has(#rv3-top) .c-header__logo a { padding: 0; }
  body:has(#rv3-top) .c-header__logo a img {
    width: clamp(116px, 9.1vw, 154px);
    height: auto;
    max-width: none;
    transition: width .24s ease;
  }
  body:has(#rv3-top) .c-header__right {
    top: clamp(68px, 5vw, 85px);
    right: clamp(16px, 2vw, 32px);
    height: 54px;
    gap: 9px;
    max-width: calc(100vw - 220px);
    transition: top .24s ease;
  }
  body:has(#rv3-top) .c-header__right__nav {
    padding-inline: clamp(14px, 1.55vw, 24px);
    gap: clamp(11px, 1.3vw, 20px);
    border-radius: 14px;
    box-shadow: 0 3px 18px rgba(36, 19, 22, .045);
  }
  body:has(#rv3-top) .c-header__right__nav a span {
    font-size: clamp(11px, .78vw, 13px);
    white-space: nowrap;
  }
  body:has(#rv3-top) .c-header__right__contact a {
    padding-inline: 20px;
    border-radius: 14px;
  }
  body:has(#rv3-top) .c-header__right__contact a > span > span {
    font-size: 13px;
    white-space: nowrap;
  }
  body:has(#rv3-top) .c-header__right__hamburger {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }
  body:has(#rv3-top).rv44-scrolled .c-header__logo,
  body:has(#rv3-top).rv44-scrolled .c-header__right {
    top: 12px;
    translate: 0 0 !important;
  }
  body:has(#rv3-top).rv44-scrolled .c-header__logo a img { width: 118px; }
  /* ヘッダーの古いスクロール時非表示クラスをトップページで打ち消す */
  body:has(#rv3-top).rv44-scrolled .c-header__right__nav.is-hidden,
  body:has(#rv3-top).rv44-scrolled .c-header__right__contact.is-hidden { translate: 0 0 !important; }
}

/* 中程度のPC幅ではメニューを3点ボタンへ畳み、窮屈さを防ぐ */
@media (min-width: 769px) and (max-width: 1219px) {
  body:has(#rv3-top) .c-header__right__nav { display: none; }
}

/* スマホでは下端に来ていた既存ヘッダーを上部に統一 */
@media (max-width: 768px) {
  .rv3 .rv3-shell { width: calc(100% - 32px); }
  .rv3 .rv3-section { padding-block: 54px; }
  .rv3 .rv3-hero__layout { min-height: auto; }
  body:has(#rv3-top) .c-header__logo {
    top: 13px;
    left: 12px;
    translate: 0 0 !important;
  }
  body:has(#rv3-top) .c-header__logo a { padding: 0; }
  body:has(#rv3-top) .c-header__logo a img { width: 100px; height: auto; }
  body:has(#rv3-top) .c-header__right {
    top: 10px;
    right: 10px;
    bottom: auto;
    height: 45px;
    gap: 6px;
    translate: 0 0 !important;
  }
  body:has(#rv3-top) .c-header__right__nav { display: none; }
  body:has(#rv3-top) .c-header__right__contact.is-hidden,
  body:has(#rv3-top) .c-header__right__nav.is-hidden { translate: 0 0 !important; }
  body:has(#rv3-top) .c-header__right__contact a {
    padding-inline: 10px;
    border-radius: 11px;
  }
  body:has(#rv3-top) .c-header__right__contact a > span > span {
    font-size: 11px;
    white-space: nowrap;
  }
  body:has(#rv3-top) .c-header__right__hamburger {
    height: 45px;
    width: 45px;
    border-radius: 11px;
  }
  body:has(#rv3-top).rv44-scrolled::before { height: 65px; }
}

/* りのびわん相談チャット：右下に配置して左側の文章を見せる */
.rv3-chat {
  left: auto;
  right: clamp(12px, 1.5vw, 26px);
  bottom: 18px;
}
.rv3-chat__panel { left: auto; right: 0; }
.rv3-chat__launcher {
  min-height: 65px;
  min-width: 202px;
  padding: 5px 12px 5px 5px;
}
.rv3-chat__launcher img { width: 54px; height: 53px; }
.rv3-chat__launcher strong { font-size: 13px; }
.rv3-chat__launcher small { font-size: 10px; }
.rv3-chat__panel {
  bottom: 78px;
  width: min(386px, calc(100vw - 24px));
  max-height: calc(100dvh - 104px);
}
@media (max-width: 768px) {
  .rv3-chat { right: 10px; left: auto; bottom: 10px; }
  .rv3-chat__launcher { min-width: 0; min-height: 56px; padding: 4px 10px 4px 4px; }
  .rv3-chat__launcher img { width: 47px; height: 47px; }
  .rv3-chat__panel {
    right: 0;
    left: auto;
    bottom: 66px;
    height: min(530px, calc(100dvh - 94px));
    width: min(365px, calc(100vw - 20px));
  }
}

/* ページ内リンクで見出しが固定ヘッダーに隠れることを軽減 */
html:has(body:has(#rv3-top) #rv3-top) { scroll-padding-top: 92px; }
@media (max-width: 768px) {
  html:has(body:has(#rv3-top) #rv3-top) { scroll-padding-top: 72px; }
}


/* Ver.4.4.1: ミツモア評価をカード内に集約。幅いっぱいの空白コンテナを廃止 */
.rv3 .rv43-voices__source--meetsmore {
  align-items:stretch;
}
.rv3 .rv441-voices__badge-wrap {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:160px;
  margin:9px 0 22px;
  padding:14px 12px;
  border:1px solid #f1e5e3;
  border-radius:16px;
  background:rgba(255,255,255,.75);
}
.rv3 .rv441-voices__badge {
  width:min(100%,260px);
  min-height:116px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto;
  overflow:visible;
}
.rv3 .rv441-voices__badge > * {
  max-width:100%;
}
@media(max-width:760px) {
  .rv3 .rv441-voices__badge-wrap{min-height:145px;margin:8px 0 18px;padding:12px}
}


/* =========================================================
   RENOVIA Ver.4.4.2 - Header structure fix (homepage only)
   Original header.php outputs plain <body>, without body_class().
   Therefore selectors relying on body.home never matched.
   Scope to the actual main#rv3-top via :has() instead.
   The real header is now one sticky normal-flow row.
   ========================================================= */
body:has(#rv3-top).rv44-scrolled::before { content: none !important; }
body:has(#rv3-top) .c-header {
  position: sticky;
  top: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  height: 76px;
  padding: 0 clamp(14px,2.2vw,32px);
  margin: 0;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid #f0e8e5;
  box-shadow: 0 5px 20px rgba(44,28,31,.055);
}
body:has(#rv3-top) .c-header__logo,
body:has(#rv3-top) .c-header__right,
body:has(#rv3-top).rv44-scrolled .c-header__logo,
body:has(#rv3-top).rv44-scrolled .c-header__right {
  position: relative;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  translate: none !important;
}
body:has(#rv3-top) .c-header__logo {
  flex: 0 0 auto;
  z-index: 2;
}
body:has(#rv3-top) .c-header__logo.is-hidden,
body:has(#rv3-top) .c-header__right.is-hidden,
body:has(#rv3-top) .c-header__right__nav.is-hidden,
body:has(#rv3-top) .c-header__right__contact.is-hidden {
  translate: none !important;
}
body:has(#rv3-top) .c-header__logo a {
  display: flex;
  align-items: center;
  padding: 0;
}
body:has(#rv3-top) .c-header__logo a img,
body:has(#rv3-top).rv44-scrolled .c-header__logo a img {
  display: block;
  width: clamp(115px,9vw,152px);
  height: auto;
  max-width: 100%;
}
body:has(#rv3-top) .c-header__right {
  flex: 0 1 auto;
  margin-left: auto;
  max-width: calc(100% - 162px);
  height: 52px;
  gap: 8px;
  z-index: 2;
}
body:has(#rv3-top) .c-header__right__nav {
  gap: clamp(12px,1.5vw,22px);
  padding: 0 clamp(14px,1.6vw,26px);
  border-radius: 12px;
  box-shadow: none;
}
body:has(#rv3-top) .c-header__right__nav a span { white-space: nowrap; }
body:has(#rv3-top) .c-header__right__contact a { border-radius: 12px; }
body:has(#rv3-top) .c-header__right__hamburger { width: 52px; height: 52px; border-radius: 12px; }
body:has(#rv3-top) .c-header__open-nav { z-index: 3; }
/* Avoid chat floating above full-screen mobile/menu navigation. */
body:has(#rv3-top):has(.c-header__open-nav.is-active) .rv3-chat { visibility: hidden; }
@media (min-width:769px) and (max-width:1219px) {
  body:has(#rv3-top) .c-header__right__nav { display: none; }
}
@media (max-width:768px) {
  body:has(#rv3-top) .c-header {
    height: 66px;
    gap: 8px;
    padding: 0 11px;
  }
  body:has(#rv3-top) .c-header__logo a img,
  body:has(#rv3-top).rv44-scrolled .c-header__logo a img {
    width: clamp(87px,27vw,108px);
  }
  body:has(#rv3-top) .c-header__right {
    height: 44px;
    gap: 6px;
    max-width: calc(100% - 110px);
  }
  body:has(#rv3-top) .c-header__right__nav { display: none; }
  body:has(#rv3-top) .c-header__right__contact a { padding: 0 9px; }
  body:has(#rv3-top) .c-header__right__contact a > span > span { font-size: 11px; }
  body:has(#rv3-top) .c-header__right__hamburger { width: 44px; height: 44px; }
}

/* =============================================================
   RENOVIA Ver.4.4.3 - reliable scroll-follow header (TEST ONLY)
   The existing theme uses .body-inner { overflow: clip }, which
   can interfere with position:sticky in some browsers/layouts.
   Instead use the existing homepage-only body.rv44-scrolled flag
   generated by index.php when window.scrollY > 90.

   Before scrolling: the header remains in normal document flow.
   After scrolling: use position:fixed and insert a same-height
   placeholder before it so the main content does not jump.

   Changes apply only to the top page containing #rv3-top.
   No changes to header.php, index.php, main style.css or chat.
   ============================================================= */

/* Preserve normal document flow at the top of the page. */
body:has(#rv3-top):not(.rv44-scrolled) #header.c-header {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
}

/* Give the header a stable position in its flow when fixed. */
body:has(#rv3-top).rv44-scrolled .body-inner::before {
  content: "";
  display: block;
  width: 100%;
  height: 76px;
  pointer-events: none;
}

body:has(#rv3-top).rv44-scrolled #header.c-header {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 999999 !important;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 5px 20px rgba(44, 28, 31, .075);
}

/* Existing theme JS can hide the logo/menu on scroll. Keep both
   visible inside the new unified fixed header on this page. */
body:has(#rv3-top).rv44-scrolled #header .c-header__logo,
body:has(#rv3-top).rv44-scrolled #header .c-header__right,
body:has(#rv3-top).rv44-scrolled #header .c-header__right__nav,
body:has(#rv3-top).rv44-scrolled #header .c-header__right__contact {
  translate: none !important;
  transform: none !important;
}

@media (max-width: 768px) {
  body:has(#rv3-top).rv44-scrolled .body-inner::before {
    height: 66px;
  }
}


/* ================================================================
   RENOVIA Ver.4.5 — mobile chat usability adjustments
   Only affects the homepage chatbot; preserves header and reviews.
   ================================================================ */
/* Keep the launcher hidden whenever the chat panel is open. */
#rv3-chat.rv3-chat--open .rv3-chat__launcher,
#rv3-chat .rv3-chat__launcher[hidden] { display:none !important; }

/* Reduce obstruction of contact details/SNS/footer links when closed. */
#rv3-chat.rv3-chat--near-footer:not(.rv3-chat--open) .rv3-chat__launcher {
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(12px);
}
#rv3-chat .rv3-chat__launcher { transition:opacity .18s ease,transform .18s ease,visibility .18s; }

@media (max-width: 768px) {
  #rv3-chat.rv3-chat { left:auto !important; right:12px !important; bottom:calc(12px + env(safe-area-inset-bottom, 0px)) !important; }
  /* The mascot stays recognizable without covering page content. */
  #rv3-chat .rv3-chat__launcher {
    width:auto !important; min-width:0 !important; min-height:48px !important;
    max-width:calc(100vw - 24px); padding:4px 11px 4px 4px !important;
    gap:6px !important; border-radius:999px !important;
  }
  #rv3-chat .rv3-chat__launcher img {
    width:40px !important; height:40px !important;
  }
  #rv3-chat .rv3-chat__launcher strong { font-size:12px !important; line-height:1.2 !important; }
  #rv3-chat .rv3-chat__launcher small { display:none !important; }
  #rv3-chat .rv3-chat__launcher-icon {font-size:18px !important; margin-left:3px !important;}
  /* Auto-height to remove the huge empty space on short conversations.
     Messages still scroll internally if conversation becomes long. */
  #rv3-chat .rv3-chat__panel {
    left:auto !important; right:0 !important; bottom:0 !important;
    width:min(370px,calc(100vw - 24px)) !important;
    height:auto !important; min-height:0 !important;
    max-height:calc(100dvh - 118px) !important;
    border-radius:20px !important;
  }
  #rv3-chat .rv3-chat__messages {
    flex:1 1 auto !important; min-height:110px !important;
    max-height:min(340px,42dvh) !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  #rv3-chat .rv3-chat__choices {max-height: min(190px, 30dvh) !important; overflow-y:auto !important;}
  #rv3-chat .rv3-chat__header {padding:9px 12px !important;}
  #rv3-chat .rv3-chat__header img {width:42px !important; height:42px !important;}
}
@media(max-width:370px){
  #rv3-chat .rv3-chat__panel {max-height:calc(100dvh - 104px) !important;}
  #rv3-chat .rv3-chat__choices {gap:6px !important; padding:10px !important;}
}
