* { box-sizing: border-box; margin: 0; padding: 0; }
/* 300×250の比率で全体を拡縮。最大幅400px。 */
html { font-size: min(0.3333333333vw, 1.3333333333px); }
html, body { width: 100%; max-width: 400px; height: 250rem; font-family: 'M PLUS Rounded 1c', sans-serif; }
.banner-container { display: block; position: relative; width: 100%; height: 250rem; overflow: hidden; color: #284e45; text-decoration: none; background-color: #dcece0; background-image: linear-gradient(#ffffff50 1rem, transparent 1rem), linear-gradient(90deg, #ffffff50 1rem, transparent 1rem); background-size: 16rem 16rem; border: 1rem solid #bed5c7; }
.copy { position: relative; z-index: 3; text-align: center; padding-top: 10rem; }
.eyebrow { display: inline-block; padding: 3rem 12rem; background: #fff8df; border-radius: 3rem; font-size: 8rem; font-weight: 700; letter-spacing: .7rem; transform: rotate(-2deg); }
h1 { margin-top: 7rem; font-size: 20rem; font-weight: 800; line-height: 1.35; letter-spacing: -.5rem; }
h1 span { color: #276857; }
.description { margin-top: 2rem; font-size: 8rem; color: #4f7467; }
.brand { position: absolute; top: 205rem; left: 14rem; text-align: left; font-size: 8rem; line-height: 1.45; }
.brand strong { font-size: 12rem; font-weight: 800; }
.habit-cards { position: absolute; top: 110rem; left: 43rem; width: 205rem; height: 82rem; transform: rotate(-3deg); animation: card-in .7s ease-out both; }
.back-card { position: absolute; inset: 0; background: #e9c774; border-radius: 9rem; transform: rotate(3deg); }
.habit-card { position: absolute; inset: 0; border-radius: 9rem; background: #fffcf0; border: 1rem solid #c4ceae; box-shadow: 0 5rem 10rem #315f4820; padding: 6rem 14rem; }
.habit-card::before { content: ''; position: absolute; top: -6rem; left: 76rem; width: 53rem; height: 12rem; background: #96b7a6aa; transform: rotate(4deg); }
.card-kicker { display: block; font-size: 5.5rem; letter-spacing: 1.4rem; color: #718b6f; }
.card-title { display: block; margin-top: 3rem; font-size: 11rem; font-weight: 800; }
.card-caption { position: absolute; top: 27rem; right: 12rem; font-size: 5.5rem; color: #718b6f; }
.card-flower { position: absolute; right: 13rem; top: 5rem; color: #c1993b; font-size: 20rem; }
.checks { display: flex; gap: 10rem; margin-top: 6rem; }
.checks span { display: grid; place-items: center; width: 25rem; height: 25rem; border-radius: 50%; background: #e4eede; color: #53886b; border: 1rem dashed #a0b69b; font-size: 22rem; line-height: 1; }
.checks span:nth-child(2) { transform: rotate(18deg); }
.checks span:nth-child(4) { transform: rotate(-14deg); }
.checks span:last-child { background: transparent; color: #b8baa0; font-size: 15rem; }
.card-done { display: block; margin-top: 4rem; text-align: center; font-size: 6rem; color: #56846a; }
.character { position: absolute; z-index: 4; right: 1rem; bottom: 54rem; width: 56rem; height: auto; transform: rotate(8deg); filter: drop-shadow(0 3rem 3rem #37634c20); }
.cta-button { position: absolute; right: 13rem; bottom: 20rem; display: flex; align-items: center; justify-content: space-between; width: 154rem; padding: 9rem 13rem; background: #326e58; color: #fffdf0; border-radius: 8rem; box-shadow: 0 3rem 0 #22513f; font-size: 11rem; font-weight: 800; transition: background .2s; }
.cta-button span { font-size: 16rem; line-height: 1; }
.footer-note { position: absolute; right: 34rem; bottom: 5rem; font-size: 6.5rem; color: #557661; }
.petal { position: absolute; color: #fff8e0; text-shadow: 0 1rem #d1b76d; }
.petal-one { left: 9rem; top: 78rem; font-size: 31rem; transform: rotate(15deg); }
.petal-two { right: 9rem; top: 34rem; font-size: 22rem; }
.banner-container:hover .cta-button { background: #245842; }
.banner-container:focus-visible { outline: 3rem solid #245842; outline-offset: -3rem; }
@keyframes card-in { from { opacity: 0; transform: translateY(10rem) rotate(2deg); } to { opacity: 1; transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
