:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; background: #f6f7f3; color: #17211d; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
.app { display: flex; flex-direction: column; min-height: 100dvh; max-width: 560px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 24px max(20px, env(safe-area-inset-bottom)); }
.app__header { flex: 0 0 auto; }
.app__date { margin: 0 0 14px; font-size: .94rem; color: #587064; text-align: center; }
.progress { height: 8px; overflow: hidden; background: #dfe7e1; border-radius: 99px; }
.progress__bar { display: block; height: 100%; width: 9.09%; background: #3d8064; border-radius: inherit; transition: width .2s ease; }
.app__step { margin: 10px 0 0; color: #587064; font-size: .86rem; text-align: right; }
.question { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 18px 0 28px; }
.question__title { margin: 0 0 8px; font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: -.04em; line-height: 1.3; }
.question__hint { margin: 0 0 28px; color: #587064; font-size: 1rem; line-height: 1.6; }
.field { width: 100%; min-height: 72px; border: 2px solid #b8c8bd; border-radius: 16px; background: #fff; padding: 14px 18px; color: inherit; font-size: 1.55rem; outline: none; }
.field:focus { border-color: #3d8064; box-shadow: 0 0 0 4px #d8eee2; }
.field--textarea { min-height: 210px; resize: vertical; font-size: 1.15rem; line-height: 1.6; }
.mood-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mood-list__button { min-height: 78px; border: 2px solid #b8c8bd; border-radius: 14px; background: #fff; font-size: 2rem; cursor: pointer; }
.mood-list__button[aria-pressed="true"] { border-color: #3d8064; background: #e5f4e9; }
.toggle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle-list__button { min-height: 100px; border: 2px solid #b8c8bd; border-radius: 16px; background: #fff; color: inherit; font-size: 1.35rem; font-weight: 700; cursor: pointer; }
.toggle-list__button[aria-pressed="true"] { border-color: #3d8064; background: #e5f4e9; }
.number-control { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; border: 2px solid #b8c8bd; border-radius: 18px; background: #fff; overflow: hidden; }
.number-control__button { height: 76px; border: 0; background: #edf3ee; color: #315a4b; font-size: 2rem; cursor: pointer; }
.number-control__value { text-align: center; font-size: 1.6rem; font-weight: 700; }
.notice { min-height: 1.5em; margin: 0 0 12px; color: #b42318; text-align: center; }
.notice--success { color: #197044; }
.login { display: flex; flex-direction: column; gap: 16px; }
.login__button { width: 100%; }
.navigation { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; flex: 0 0 auto; }
.navigation[hidden] { display: none; }
.button { min-height: 60px; border: 0; border-radius: 16px; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button--sub { background: #e1e9e3; color: #315a4b; }
.button--main { background: #315a4b; color: #fff; }
@media (min-width: 600px) { .app { border-inline: 1px solid #e0e5e1; } }
