@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&family=Montserrat:wght@500;600&display=swap');
/* Brand reference: https://kk-lavie.com/ — official logo, rose and cream palette. */
:root{--bg:#f2eeea;--paper:#fff;--ink:#333;--muted:#746e68;--green:#9a6560;--pale:#efe3e0;--line:#e3ddd3;--orange:#97603b;--cream:#ece6dc;--rose:#9a6560;--rose-hover:#86554f;--mustard:#e2c16f;--blue:#4a81a3}
body{font-family:'Zen Maru Gothic','Hiragino Maru Gothic ProN','Yu Gothic',sans-serif;font-weight:500;letter-spacing:.025em}
h1,h2,h3{font-family:'Zen Maru Gothic','Yu Gothic',sans-serif;letter-spacing:.06em;font-weight:700}h1,h2{color:var(--rose)}h2{line-height:1.7}h1{font-size:26px}
button{border-radius:28px;font-weight:700}button:hover{border-color:#b88f88;background:#efe3e0}.primary,.upload{background:var(--rose);border-color:var(--rose);border-radius:30px;color:#fff}.primary:hover,.upload:hover{background:var(--rose-hover)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:var(--blue)}
.eyebrow{font-family:Montserrat,sans-serif;font-weight:600;letter-spacing:.12em;color:#946a32}.badge{color:#86554f;background:#efe3e0}.warm{background:#f3e6c2;color:#785827}.dot{background:#b58b3e}
.sidebar{background:#f7f6f5;border-color:#e3ddd3;padding-top:27px}.brand{gap:10px;margin:0 4px 26px}.brand-icon{width:57px;height:57px;border-radius:50%;object-fit:cover;flex-shrink:0}.brand-wordmark{width:112px;height:auto;display:block}.brand small{color:var(--rose);font-size:10px;letter-spacing:.22em;margin-top:7px;text-align:center}.mode{background:#ece6dc;border-radius:22px;color:#725a55}.mode small{color:#746e68}.navbtn{border-radius:28px;font-size:13px}.navbtn.active{background:#efe3e0;box-shadow:none;color:#86554f}.navbtn .ico{color:#9a6560}.sidefoot button{background:#f2eeea}.sidefoot .quiet{background:transparent}.avatar{background:var(--rose)}
.topbar{background:#f2eeeaf2;border-bottom-color:var(--line)}.notice{color:#746e68}.card{border-radius:30px;border-color:#ebe5de;box-shadow:0 8px 25px -18px #75564d22}.hero{border-radius:36px;background:#ece6dc;position:relative;isolation:isolate}.hero-copy{position:relative;z-index:1;padding:32px 36px}.hero-copy:before{content:'';position:absolute;width:105px;height:95px;top:-35px;right:12px;border-radius:52% 48% 47% 53% / 55% 45% 55% 45%;background:#e2c16f66;z-index:-1;pointer-events:none}.hero h2{color:var(--rose);font-size:28px}.hero p{color:#6e625b}.hero .date{color:#796d63}.hero-photo{height:295px;object-position:50% 48%;border-radius:65px 0 0 65px}.hero .eyebrow{color:#91683d}
.stat{border-radius:24px;background:#f7f6f5;border-color:#e3ddd3}.stat.active{background:#efe3e0;border-color:#9a6560}.stat b{font-family:Montserrat,sans-serif;color:var(--rose)}.stat small{font-weight:500}.stat:nth-child(2) b{color:#99732e}.stat:nth-child(3) b{color:#4a81a3}.pet{background:#faf8f5;border-radius:22px}.pet.active{background:#efe3e0;border-color:#b88f88}.pet .arrow{color:var(--blue)}.pet img,.pethead img{border:3px solid #fff;box-shadow:0 0 0 1px #e3ddd3}.pethead h2{color:#86554f}.caremini>div{background:#f2eeea;border-radius:20px}.caremini b{color:#86554f;font-weight:700}.caremini>div:nth-child(2){background:#f6edda}.caremini>div:nth-child(3){background:#edf0f2}
.chartsection{background:#f7f4f0;border-radius:22px}.chartsection h3{color:#86554f}.rangegroup{background:#f7f4f0;border-radius:24px}.percent{font-family:Montserrat,sans-serif;color:#9a6560}.check{border-radius:25px}.check:has(input:checked){background:#efe3e0;border-color:#b88f88}.tabs button.active{background:var(--rose);border-color:var(--rose)}.tabs button{color:#86554f}.tabs button.active{color:white}
.photo{border-radius:25px;border-color:#e3ddd3}.photo>button{border-radius:0}.photo figcaption{background:#fff}.history-item img{border-radius:22px}.bubble{background:#f2eeea;border-radius:22px}.bubble.mine{background:#efe3e0}.conversation.active{background:#efe3e0;border-color:#b88f88}.conversation{border-radius:22px}.count{background:#9a6560}.membership{background:#9a6560;border-radius:32px;overflow:hidden}.membership small,.membership .eyebrow{color:#f8ece8}.membership .badge{color:#79524b;background:#f3e6c2}.membership b{font-family:Montserrat,sans-serif}.member-logo{width:115px;height:auto;display:block}.membership:after{content:'';position:absolute;width:135px;height:130px;border:1px solid #ffffff24;border-radius:50%;bottom:-50px;right:-20px;pointer-events:none}
.loginvisual{background:#ece6dc}.loginvisual h1{font-family:'Zen Maru Gothic',sans-serif;font-weight:700;font-size:34px;color:#9a6560}.loginvisual img:not(.brand-icon):not(.brand-wordmark){border-radius:45% 45% 28px 28px;object-position:center}.loginvisual .brand{max-width:260px}.loginvisual .brand-icon{width:70px;height:70px}.loginvisual .brand-wordmark{width:155px}.loginform h2{color:var(--rose)}.loginform button{padding:14px 20px}.loginform{background:#f7f6f5;border-radius:40px}.mobilemenu{background:#9a6560;color:white;border-color:#9a6560;width:40px;height:40px;padding:0;flex-shrink:0;border-radius:50%}.mobilemenu:hover{background:#86554f;color:white}
dialog{border-radius:30px;background:#f7f6f5}dialog::backdrop{background:#49363180}#toast{background:#754e49}.empty{color:#746e68}.membership+.card h3{color:#86554f}
.mobile-preview .topbar>.row:first-child{min-width:0;gap:8px}.mobile-preview .topbar>.row:first-child>div{min-width:0}.mobile-preview .topbar h1{font-size:19px;white-space:nowrap}.mobile-preview .topbar>.row:last-child{gap:5px}.mobile-preview .topbar .avatar{width:30px;height:30px;flex-shrink:0}.mobile-preview .topbar .small{font-size:10px;white-space:nowrap;padding:6px 8px}.mobile-preview .topbar small{font-size:9px}.mobile-preview .hero-photo{border-radius:40px 40px 0 0}.mobile-preview .hero-copy{padding:26px}.mobile-preview .hero{border-radius:28px}
.brand .brand-wordmark{border-radius:0;object-fit:contain;max-height:none}.brand .brand-icon{border-radius:50%;object-fit:cover}.loginvisual .brand-icon{border-radius:50%}.loginvisual .brand-wordmark{border-radius:0;object-fit:contain}
@media(max-width:1000px){.brand-icon{width:45px;height:45px}.brand-wordmark{width:100px}.brand{gap:8px}.hero-copy{padding:26px}.hero h2{font-size:25px}.login{grid-template-columns:1fr}.loginvisual{padding:35px}.loginvisual h1{font-size:29px}.loginvisual img:not(.brand-icon):not(.brand-wordmark){max-height:300px;border-radius:35px}.loginform{margin:25px auto;padding:35px;width:calc(100% - 40px)}}
@media(max-width:900px){.topbar{padding:14px 17px}.topbar>.row{gap:9px}.topbar h1{font-size:21px}.topbar small{font-size:10px}.card{border-radius:25px}.hero{border-radius:28px}.hero-photo{height:205px;border-radius:45px 45px 0 0}.hero-copy{padding:27px}.hero h2{font-size:27px}.stats .stat{border-radius:20px}.stat b{font-size:25px}.brand-icon{width:57px;height:57px}.brand-wordmark{width:115px}.loginvisual{padding:30px 25px}.loginvisual h1{font-size:27px}.loginvisual .brand-icon{width:55px;height:55px}.loginvisual .brand-wordmark{width:130px}.loginform{margin:20px 17px 30px;width:auto;padding:28px;border-radius:30px}.loginvisual img:not(.brand-icon):not(.brand-wordmark){border-radius:35px}.membership{padding:24px}.member-logo{width:105px}}

/* Semantic navigation icons share one stroke and optical size. */
.menu-icon{width:24px;height:24px;display:inline-block;vertical-align:middle;flex-shrink:0}.navbtn .ico{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex:0 0 26px}.navbtn .menu-icon{width:23px;height:23px}.navbtn.active .menu-icon{stroke-width:2}.topbar button:has(.menu-icon){display:inline-flex;align-items:center;gap:5px}.mobile-preview .navbtn .menu-icon{width:23px;height:23px}

.member-photo{margin-top:22px;padding:10px;background:#fff;border-radius:14px;position:relative;z-index:1}.member-photo img{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:8px}.membership:has(.member-photo){height:auto}.membership{overflow:hidden}

/* Compact portrait inside the membership card. The original upload stays intact. */
.member-body{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:20px;position:relative;z-index:1}.member-info{min-width:0;overflow-wrap:anywhere}.member-photo{margin:0;flex:0 0 clamp(84px, 23%, 126px);aspect-ratio:4 / 5;padding:4px;background:#fff;border-radius:12px;overflow:hidden}.member-photo img{display:block;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center 40%;border-radius:8px}.membership:has(.member-photo){height:auto}.mobile-preview .member-photo{flex-basis:96px}@media(max-width:600px){.member-photo{flex-basis:96px}.member-body{gap:10px}}
.grid2:has(> .stack > .membership){align-items:start}
.navgroup{display:grid;gap:5px;margin:8px 0 3px}.navgroup-label{font-size:11px;font-weight:600;letter-spacing:.08em;color:#8a625c;padding:6px 15px 2px;border-top:1px solid #e3ddd3;margin-top:2px;padding-top:12px}.navgroup .navbtn{margin-left:14px}
/* メニュー下部: 設定（歯車）・ログアウト（色付き）／スマホのメニュー開閉（2026-11-18） */
.sidefoot .settings-btn{width:100%;margin-top:8px;font-size:13px;background:transparent;border:0}
.sidefoot .logout-btn{width:100%;margin-top:8px;background:#9a6560;color:#fff;border-color:#9a6560;font-weight:700}
.sidefoot .logout-btn:hover{background:#86554f;border-color:#86554f;color:#fff}
@keyframes lavie-side-in{from{transform:translateX(-100%)}to{transform:none}}
.sidebar.open{animation:lavie-side-in .2s ease-out}
@media(prefers-reduced-motion:reduce){.sidebar.open{animation:none}}
/* ホーム: 施設カードは PC 4列／スマホ幅 2×2。メニューボタン（☰）は丸の中央に大きめの線画（2026-11-18） */
.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:1200px){.stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
.mobile-preview .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.mobilemenu{display:none;align-items:center;justify-content:center;line-height:0}
.mobilemenu .burger{width:22px;height:22px;display:block}
.mobile-preview .mobilemenu{display:inline-flex}
@media(max-width:900px){.mobilemenu{display:inline-flex}}
/* ヘッダーを詰める（スタッフのキャッチコピー削除に合わせて。2026-11-18） */
.topbar{height:80px;padding-top:12px;padding-bottom:12px}
.mobile-preview .topbar{height:64px;padding:10px 15px}
@media(max-width:900px){.topbar{height:64px;padding:10px 17px}html{scroll-padding-top:76px}}
/* 未読の赤丸（メニューの件数・☰ボタン）とアイコンバッジ許可のお願い（2026-11-18） */
.navbtn .count{background:#d93a32;color:#fff;font-weight:700;min-width:20px;text-align:center}
.mobilemenu{position:relative}
.mobilemenu .menu-dot{position:absolute;top:1px;right:1px;width:11px;height:11px;border-radius:50%;background:#d93a32;border:2px solid #f2eeea}
.badge-ask{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 16px;margin-bottom:18px;font-size:13px;line-height:1.6}
.badge-ask .row{gap:8px;margin-top:10px}
