/* MAME v4.3 - brand hero + 今日の一言 + clean history list + mascot accents */
.mame-v4,.mame-v4 *{box-sizing:border-box!important}
.mame-v4{--mame-blue:#CFE9F6;--mame-blue-deep:#3D6FA8;--mame-blue-ink:#24588D;--mame-leaf:#A7D7B5;--mame-ivory:#F7F5EE;--mame-brown:#7A6E64;--mame-ink:#284866;--mame-soft:#6d87a2;--mame-line:#dcecf7;--mame-card:rgba(255,255,255,.88);--mame-shadow:0 18px 48px rgba(78,136,174,.13);width:100%;max-width:1040px!important;margin:0 auto!important;padding:0 0 clamp(18px,4vw,44px)!important;background:linear-gradient(180deg,#f6fcff 0%,#ffffff 56%,#f7fbfe 100%)!important;color:var(--mame-ink)!important;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif!important;line-height:1.9!important;border-radius:32px!important;overflow:hidden!important;isolation:isolate!important;border:1px solid rgba(220,236,247,.8)!important}
.mame-v4 h1,.mame-v4 h2,.mame-v4 h3,.mame-v4 p,.mame-v4 div,.mame-v4 span,.mame-v4 small,.mame-v4 time,.mame-v4 strong{color:inherit!important;font-family:inherit!important;line-height:inherit!important;margin-top:0!important}.mame-v4 p{margin-bottom:0!important}
.mame-brand-hero{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(240px,.8fr)!important;align-items:center!important;gap:clamp(18px,4vw,46px)!important;padding:clamp(38px,7vw,72px) clamp(24px,6vw,68px)!important;background:radial-gradient(circle at 7% 12%,rgba(207,233,246,.78) 0 13%,transparent 34%),radial-gradient(circle at 94% 72%,rgba(167,215,181,.32) 0 14%,transparent 36%),linear-gradient(180deg,#f9fdff,#eef8fe)!important;overflow:hidden!important}
.mame-brand-hero:before,.mame-brand-hero:after{content:""!important;position:absolute!important;border-radius:999px!important;background:#dff2fb!important;opacity:.55!important}.mame-brand-hero:before{width:82px!important;height:28px!important;left:28px!important;top:36px!important;transform:rotate(-28deg)!important}.mame-brand-hero:after{width:58px!important;height:20px!important;right:40px!important;top:132px!important;transform:rotate(-18deg)!important}.mame-brand-copy,.mame-brand-mascot{position:relative!important;z-index:1!important}.mame-v4-logo{font-size:clamp(42px,7vw,74px)!important;letter-spacing:.08em!important;font-weight:900!important;color:var(--mame-blue-deep)!important;line-height:1.08!important;margin:0 0 6px!important;text-shadow:0 2px 0 rgba(255,255,255,.75)!important}.mame-v4-sub{font-size:clamp(18px,2.6vw,27px)!important;letter-spacing:.08em!important;color:var(--mame-blue-ink)!important;font-weight:900!important;margin:0 0 22px!important}.mame-brand-copy p{font-size:clamp(15px,1.8vw,18px)!important;color:var(--mame-blue-ink)!important;font-weight:800!important;letter-spacing:.05em!important;margin:0 0 8px!important}.mame-character{width:min(310px,54vw)!important;margin:0 auto!important;display:block!important;filter:drop-shadow(0 24px 30px rgba(93,145,165,.18))}.mame-brand-mascot .mame-character{width:min(340px,60vw)!important}
.mame-today-card{margin:clamp(24px,4vw,34px) clamp(18px,4vw,42px) 0!important;padding:clamp(28px,5vw,44px)!important;border-radius:30px!important;background:var(--mame-card)!important;border:1px solid var(--mame-line)!important;box-shadow:var(--mame-shadow)!important;text-align:center!important}.mame-v4-label{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:4px 14px 9px!important;color:var(--mame-blue-ink)!important;font-size:clamp(19px,2.4vw,27px)!important;font-weight:900!important;letter-spacing:.09em!important;margin-bottom:18px!important;border-bottom:4px dotted #9bc9ec!important}.mame-v4-line{font-size:clamp(30px,5.4vw,58px)!important;line-height:1.55!important;font-weight:900!important;letter-spacing:.09em!important;color:var(--mame-blue-deep)!important;margin:0 auto 12px!important;max-width:820px!important;word-break:break-word!important}.mame-v4-line span{font:inherit!important}.mame-v4-date{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;color:var(--mame-soft)!important;font-weight:800!important;font-size:14px!important;margin-top:12px!important}.mame-v4-mood{display:inline-flex!important;align-items:center!important;gap:0!important;padding:5px 10px!important;border-radius:999px!important;background:#f4fbff!important;color:#7a5e4d!important;font-size:21px!important}.mame-empty-copy{font-size:clamp(32px,6vw,54px)!important;line-height:1.25!important;font-weight:900!important;color:var(--mame-blue-deep)!important;margin:0 auto 12px!important}.mame-empty-note{color:var(--mame-soft)!important;font-size:15px!important;font-weight:800!important}.mame-v4-card{background:var(--mame-card)!important;border:1px solid var(--mame-line)!important;border-radius:28px!important;box-shadow:var(--mame-shadow)!important;padding:clamp(22px,4vw,32px)!important;overflow:hidden!important}.mame-section-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin:0 0 18px!important}.mame-section-title h2{font-size:clamp(18px,2.4vw,24px)!important;line-height:1.35!important;margin:0!important;color:var(--mame-blue-ink)!important;font-weight:900!important;letter-spacing:.05em!important}.mame-section-title small{font-size:13px!important;color:var(--mame-soft)!important;font-weight:800!important}.mame-v4-body{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(280px,.75fr)!important;gap:22px!important;margin:clamp(22px,4vw,32px) clamp(18px,4vw,42px) 0!important}.mame-main,.mame-side{display:grid!important;gap:22px!important;min-width:0!important}
.mame-list{display:grid!important;gap:10px!important}.mame-item{display:grid!important;grid-template-columns:1fr auto!important;gap:14px!important;align-items:center!important;padding:17px 18px!important;border-radius:18px!important;background:#ffffff!important;border:1px solid #dbeaf5!important;text-decoration:none!important;color:inherit!important}.mame-item:hover{transform:translateY(-1px)!important}.mame-item-content{min-width:0!important}.mame-item p{font-size:clamp(16px,2vw,19px)!important;font-weight:850!important;line-height:1.65!important;color:#33495f!important;word-break:break-word!important}.mame-item time{display:block!important;font-size:13px!important;color:var(--mame-blue-ink)!important;font-weight:800!important;margin:0 0 3px!important;letter-spacing:.03em!important}.mame-item-mood{font-size:22px!important;opacity:.72!important}.mame-calendar{display:grid!important;grid-template-columns:repeat(7,1fr)!important;gap:8px!important;text-align:center!important}.mame-cal-head{font-size:11px!important;color:var(--mame-soft)!important;font-weight:900!important}.mame-cal-day{position:relative!important;min-height:34px!important;border-radius:999px!important;display:grid!important;place-items:center!important;font-size:13px!important;font-weight:800!important;color:#5d7182!important}.mame-cal-day.has-entry{background:#eef8f4!important;color:#2d6d53!important}.mame-cal-day.has-entry:after{content:""!important;position:absolute!important;bottom:4px!important;width:4px!important;height:4px!important;border-radius:50%!important;background:#7fae87!important}.mame-cal-day.is-today{outline:2px solid #A7D7B5!important;outline-offset:2px!important}.mame-stat{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}.mame-stat>div{background:#f4fbfe!important;border:1px solid #dceff8!important;border-radius:22px!important;padding:18px 12px!important;text-align:center!important}.mame-stat strong{display:block!important;font-size:34px!important;line-height:1!important;color:#5d96ad!important}.mame-stat span{display:block!important;font-size:12px!important;color:var(--mame-soft)!important;font-weight:900!important;margin-top:7px!important}.mame-lastyear p{font-size:20px!important;font-weight:900!important;line-height:1.65!important}.mame-lastyear small{display:block!important;color:var(--mame-soft)!important;font-weight:800!important;margin-top:10px!important}.mame-growth-wrap{display:grid!important;grid-template-columns:92px 1fr!important;align-items:center!important;gap:12px!important}.mame-growth-mascot{display:flex!important;justify-content:center!important;align-items:center!important}.mame-character-growth{width:90px!important;max-width:100%!important;filter:drop-shadow(0 10px 13px rgba(93,145,165,.14))}.mame-footer-message{margin:22px clamp(18px,4vw,42px) 0!important;padding:12px 18px!important;border-radius:24px!important;background:rgba(255,255,255,.68)!important;color:#87a7c1!important;text-align:center!important;font-weight:900!important;border:1px solid #d8ebf7!important;border-top:3px dotted #c9e3f5!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:14px!important}.mame-footer-text{display:inline-block!important}.mame-footer-mascot{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important}.mame-character-footer{width:58px!important;height:auto!important;display:block!important;filter:drop-shadow(0 8px 10px rgba(93,145,165,.12))}.mame-reveal{opacity:1!important;transform:none!important}.mame-reveal.is-visible{opacity:1!important;transform:none!important}
@media(max-width:860px){.mame-brand-hero{grid-template-columns:1fr!important;text-align:center!important;padding-bottom:36px!important}.mame-v4-body{grid-template-columns:1fr!important}.mame-brand-mascot .mame-character{width:min(260px,58vw)!important}.mame-v4-line{font-size:clamp(30px,8vw,48px)!important}.mame-item{grid-template-columns:1fr auto!important}}
@media(max-width:520px){.mame-v4{border-radius:24px!important}.mame-brand-hero{padding:34px 18px 30px!important}.mame-v4-logo{font-size:44px!important}.mame-v4-sub{font-size:18px!important}.mame-today-card,.mame-v4-body,.mame-footer-message{margin-left:12px!important;margin-right:12px!important}.mame-today-card{padding:24px 16px!important}.mame-v4-line{font-size:34px!important;letter-spacing:.04em!important}.mame-empty-copy{font-size:38px!important}.mame-v4-card{padding:20px!important;border-radius:24px!important}.mame-growth-wrap{grid-template-columns:1fr!important}.mame-character-growth{width:78px!important}.mame-stat{grid-template-columns:1fr!important}.mame-footer-message{gap:8px!important;padding:12px!important;font-size:14px!important}.mame-character-footer{width:46px!important}.mame-calendar{gap:6px!important}.mame-cal-day{min-height:30px!important}.mame-item p{font-size:16px!important}.mame-item{padding:15px!important}}
@media print{.mame-v4{box-shadow:none!important;background:#fff!important;max-width:100%!important;padding:20px!important}.mame-v4-card,.mame-brand-hero,.mame-today-card{box-shadow:none!important;break-inside:avoid!important}.mame-v4-body{display:block!important}.mame-side,.mame-main{display:block!important}.mame-v4-card{margin-bottom:14px!important}}

/* MAME start page v4.4.0 */
.mame-start-page{overflow:hidden!important}.mame-start-hero{display:grid!important;grid-template-columns:1.1fr .9fr!important;gap:24px!important;align-items:center!important;padding:56px clamp(22px,5vw,70px)!important;background:linear-gradient(135deg,#f7fcff 0%,#eef8fd 52%,#f8fbf1 100%)!important;border-bottom:1px solid #dbeaf5!important;position:relative!important}.mame-start-hero:before{content:""!important;position:absolute!important;inset:0!important;background:radial-gradient(circle at 12% 18%,rgba(207,233,246,.8),transparent 24%),radial-gradient(circle at 92% 82%,rgba(167,215,181,.34),transparent 25%)!important;pointer-events:none!important}.mame-start-copy,.mame-start-mascot{position:relative!important;z-index:1!important}.mame-start-kicker{display:inline-block!important;margin:0 0 12px!important;padding:7px 14px!important;border-radius:999px!important;background:#e8f5fb!important;color:#3f6b9c!important;font-weight:900!important;letter-spacing:.16em!important;font-size:13px!important}.mame-start-copy h1{margin:0!important;color:#3f6b9c!important;font-size:clamp(42px,6vw,76px)!important;line-height:1.18!important;letter-spacing:.08em!important;font-weight:950!important}.mame-start-sub{margin:16px 0 24px!important;color:#3f6b9c!important;font-size:clamp(20px,2.2vw,30px)!important;font-weight:900!important;letter-spacing:.08em!important}.mame-start-copy p{color:#315878!important;font-size:clamp(16px,1.7vw,20px)!important;line-height:2!important;font-weight:800!important;margin:0 0 8px!important}.mame-start-mascot{display:flex!important;justify-content:center!important}.mame-character-start{width:min(360px,100%)!important;filter:drop-shadow(0 18px 22px rgba(93,145,165,.18))}.mame-start-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-top:20px!important;padding:14px 24px!important;border-radius:999px!important;background:#3f6b9c!important;color:#fff!important;text-decoration:none!important;font-weight:900!important;box-shadow:0 12px 24px rgba(63,107,156,.18)!important}.mame-start-button:hover{transform:translateY(-1px)!important;color:#fff!important}.mame-start-button.is-small{font-size:14px!important;padding:11px 18px!important}.mame-start-body{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:16px!important;padding:34px clamp(18px,4vw,42px) 0!important}.mame-start-card,.mame-start-flow,.mame-start-message{background:rgba(255,255,255,.82)!important;border:1px solid #dbeaf5!important;border-radius:28px!important;box-shadow:0 14px 34px rgba(63,107,156,.08)!important}.mame-start-card{padding:26px!important;text-align:center!important}.mame-start-card-icon{font-size:34px!important;margin-bottom:10px!important}.mame-start-card h2,.mame-start-message h2{margin:0 0 10px!important;color:#3f6b9c!important;font-weight:950!important;letter-spacing:.06em!important}.mame-start-card p,.mame-start-message p,.mame-start-steps p{margin:0!important;color:#4f6678!important;line-height:1.85!important;font-weight:750!important}.mame-start-flow{margin:22px clamp(18px,4vw,42px) 0!important;padding:28px!important}.mame-start-steps{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:14px!important;margin-top:20px!important}.mame-start-steps div{padding:20px!important;border-radius:22px!important;background:#f5fbfe!important;border:1px solid #dceff8!important}.mame-start-steps span{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:50%!important;background:#dff1fa!important;color:#3f6b9c!important;font-weight:950!important;margin-bottom:12px!important}.mame-start-steps strong{display:block!important;color:#315878!important;font-size:18px!important;margin-bottom:8px!important}.mame-start-message{display:grid!important;grid-template-columns:110px 1fr!important;gap:18px!important;align-items:center!important;margin:22px clamp(18px,4vw,42px) 32px!important;padding:24px 28px!important;background:linear-gradient(90deg,rgba(255,255,255,.92),rgba(239,248,253,.82))!important}.mame-start-mini{display:flex!important;justify-content:center!important}.mame-character-start-mini{width:92px!important;filter:drop-shadow(0 10px 13px rgba(93,145,165,.14))}
@media(max-width:760px){.mame-start-hero{grid-template-columns:1fr!important;text-align:center!important;padding:40px 20px!important}.mame-start-body,.mame-start-steps{grid-template-columns:1fr!important}.mame-start-message{grid-template-columns:1fr!important;text-align:center!important}.mame-character-start{width:min(260px,90%)!important}.mame-start-copy p{font-size:16px!important;line-height:1.8!important}}

/* v4.5.0: カレンダーから過去の一言を表示 */
.mame-calendar-wrap{display:grid!important;gap:16px!important}.mame-calendar button.mame-cal-day{appearance:none!important;-webkit-appearance:none!important;border:0!important;margin:0!important;padding:0!important;font-family:inherit!important;line-height:1!important;cursor:pointer!important;transition:transform .18s ease,box-shadow .18s ease,background .18s ease!important}.mame-calendar button.mame-cal-day:hover,.mame-calendar button.mame-cal-day:focus-visible{transform:translateY(-2px)!important;box-shadow:0 7px 16px rgba(84,137,159,.17)!important;outline:2px solid #8fc4dc!important;outline-offset:2px!important}.mame-calendar button.mame-cal-day.is-selected{background:#d9f1e6!important;color:#225f49!important;box-shadow:0 0 0 3px rgba(126,184,151,.22)!important}.mame-calendar-detail{min-height:72px!important;padding:14px 15px!important;border-radius:18px!important;background:#f8fcff!important;border:1px solid #dcecf6!important}.mame-calendar-guide{margin:0!important;text-align:center!important;color:#7890a2!important;font-size:12px!important;font-weight:800!important;line-height:1.7!important}.mame-calendar-entry-view[hidden]{display:none!important}.mame-calendar-entry-date{display:flex!important;align-items:center!important;gap:7px!important;color:#4f83a5!important;font-size:12px!important;margin-bottom:7px!important}.mame-calendar-entry-date span{font-size:18px!important}.mame-calendar-entry-view p{margin:0!important;color:#33495f!important;font-size:15px!important;font-weight:850!important;line-height:1.75!important;word-break:break-word!important}.mame-calendar-detail.has-selection{background:#fff!important;border-color:#cfe5f2!important;box-shadow:0 8px 22px rgba(82,135,158,.08)!important}

/* v4.5.1: フッターを確実に表示 */
.mame-v4 > .mame-footer-message{display:flex!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:2!important;min-height:84px!important;margin-bottom:22px!important;background:linear-gradient(90deg,rgba(247,252,255,.96),rgba(255,255,255,.98),rgba(245,251,247,.96))!important;box-sizing:border-box!important}.mame-v4 > .mame-footer-message .mame-footer-text{font-size:clamp(15px,2vw,20px)!important;color:#5f88aa!important;line-height:1.7!important}.mame-v4 > .mame-footer-message .mame-footer-mascot{display:inline-flex!important}.mame-v4 > .mame-footer-message .mame-character-footer{display:block!important;visibility:visible!important;opacity:1!important}
