:root{
  --bg:#eef7ff;
  --navy:#173060;
  --blue:#1d6ee5;
  --line:#cfe1f5;
  --card:rgba(255,255,255,.88);
  --shadow:0 12px 28px rgba(57,91,151,.12);
}

*{
  box-sizing:border-box;
}

html,
body{
  width:100%;
  min-height:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  color:var(--navy);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;
  background:#eef5fb;
}

button,
input{
  font:inherit;
}

button{
  cursor:pointer;
}

.app{
  width:100%;
  max-width:480px;
  margin:0 auto;
  padding:18px 16px 110px;
}

.card{
  width:100%;
  overflow:hidden;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
}

.app-header{
  display:grid;
  grid-template-columns:54px 1fr 54px;
  align-items:center;
  gap:8px;
  margin-bottom:18px;
}

.round-button{
  width:54px;
  height:54px;
  border:0;
  border-radius:50%;
  color:var(--navy);
  background:#fff;
  box-shadow:0 8px 20px rgba(57,91,151,.15);
  font-size:23px;
}

.brand{
  min-width:0;
  text-align:center;
}

.brand h1{
  margin:0;
  color:#152b5d;
  font-size:30px;
  line-height:1.1;
  letter-spacing:.02em;
  white-space:nowrap;
}

.brand h1 span{
  color:#f4c44c;
}

.brand p{
  margin:7px 0 0;
  color:#1b3568;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}

.hero-card{
  padding:26px 24px 22px;
  background:linear-gradient(180deg,#f8fbff 0%, #eef5fc 100%);
}

.hero-copy h2{
  margin:0;
  color:#142d62;
  font-size:30px;
  line-height:1.48;
  letter-spacing:.02em;
}

.hero-copy p{
  margin:20px 0 0;
  font-size:19px;
  font-weight:650;
  line-height:1.7;
}

.hero-copy p span{
  color:var(--blue);
  font-weight:900;
}

.hero-summary{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:12px;
  margin-top:18px;
}

.summary-image{
  width:112px;
  height:112px;
  flex:0 0 112px;
  border-radius:50%;
  background:
    linear-gradient(rgba(255,255,255,.08),rgba(255,255,255,.08)),
    url("../assets/summary.png") center/cover no-repeat;
  box-shadow:inset 0 0 18px rgba(255,255,255,.5);
}

.summary-button{
  flex:0 0 auto;
  border:0;
  border-radius:999px;
  color:var(--blue);
  background:#fff;
  padding:14px 19px;
  box-shadow:0 8px 18px rgba(57,91,151,.12);
  font-size:17px;
  font-weight:900;
}

.voice-card{
  margin-top:18px;
  padding:18px;
}

.voice-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.chat-mark{
  flex:0 0 auto;
  font-size:28px;
}

.voice-row input{
  width:0;
  min-width:0;
  flex:1;
  height:58px;
  border:0;
  border-radius:20px;
  outline:none;
  color:var(--navy);
  background:#f2f6ff;
  padding:0 15px;
  font-size:17px;
  font-weight:700;
}

.voice-row input::placeholder{
  color:#91a1bb;
}

#micButton{
  width:58px;
  height:58px;
  flex:0 0 58px;
  border:0;
  border-radius:20px;
  color:#fff;
  background:#2d7bef;
  box-shadow:0 8px 16px rgba(45,123,239,.28);
  font-size:24px;
}

.suggestion-chips{
  display:flex;
  gap:10px;
  margin-top:13px;
  overflow-x:auto;
  padding:2px 0 4px;
  scrollbar-width:none;
}

.suggestion-chips::-webkit-scrollbar{
  display:none;
}

.suggestion-chips button{
  flex:0 0 auto;
  border:1px solid #c8dcf5;
  border-radius:999px;
  color:#1768d7;
  background:#f7fbff;
  padding:9px 13px;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}

.notice-section,
.schedule-card,
.task-card{
  margin-top:18px;
  padding:19px;
}

.section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.section-header h3{
  margin:0;
  color:#1768d7;
  font-size:20px;
}

.section-header button{
  flex:0 0 auto;
  border:0;
  color:#1768d7;
  background:transparent;
  font-size:13px;
  font-weight:850;
}

.notice-list{
  display:flex;
  gap:12px;
  margin-top:16px;
  overflow-x:auto;
  padding:1px 0 5px;
  scrollbar-width:none;
}

.notice-list::-webkit-scrollbar{
  display:none;
}

.notice-card{
  width:225px;
  min-height:200px;
  flex:0 0 225px;
  border:1px solid rgba(190,210,238,.55);
  border-radius:22px;
  padding:15px;
}

.notice-card.night{
  background:#eef8ff;
}

.notice-card.medicine{
  background:#fff4f6;
}

.notice-card.garbage{
  background:#effbf4;
}

.notice-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.68);
  font-size:25px;
}

.notice-card h4{
  margin:10px 0 0;
  color:var(--navy);
  font-size:16px;
  line-height:1.42;
}

.notice-card p{
  margin:7px 0 0;
  color:#59729a;
  font-size:13px;
  line-height:1.5;
}

.notice-card button{
  width:100%;
  border:1px solid rgba(94,145,226,.4);
  border-radius:999px;
  color:#1768d7;
  background:rgba(255,255,255,.82);
  margin-top:16px;
  padding:9px 10px;
  font-size:14px;
  font-weight:850;
}

.timeline{
  margin-top:17px;
}

.timeline-row{
  display:grid;
  grid-template-columns:58px 18px minmax(0,1fr);
  gap:9px;
  align-items:start;
  position:relative;
  padding-bottom:17px;
}

.timeline-row:not(:last-child)::after{
  content:"";
  position:absolute;
  top:18px;
  left:66px;
  width:2px;
  height:26px;
  background:#d9e9fb;
}

.timeline-row time{
  padding-top:1px;
  color:#223967;
  font-size:16px;
  font-weight:850;
}

.timeline-dot{
  width:12px;
  height:12px;
  margin-top:5px;
  border-radius:50%;
  background:#2d7bef;
  box-shadow:0 0 0 4px #e9f3ff;
}

.timeline-dot.purple{
  background:#8365dc;
}

.timeline-row strong{
  display:block;
  font-size:16px;
  line-height:1.3;
}

.timeline-row small{
  display:block;
  margin-top:4px;
  color:#6d83a6;
  font-size:13px;
  line-height:1.35;
}

.add-button{
  width:100%;
  border:1px solid #c9ddf5;
  border-radius:999px;
  color:#1768d7;
  background:#fff;
  margin-top:2px;
  padding:12px 14px;
  font-size:15px;
  font-weight:850;
}

.task-list{
  margin-top:15px;
}

.task-list label{
  display:flex;
  align-items:center;
  gap:11px;
  border-bottom:1px solid #e3edf8;
  padding:15px 0;
  color:#233a66;
  font-size:16px;
  font-weight:720;
}

.task-list input{
  width:22px;
  height:22px;
  margin:0;
  accent-color:#2d7bef;
  flex:0 0 auto;
}

.bottom-nav{
  position:fixed;
  z-index:10;
  bottom:0;
  left:0;
  right:0;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  padding:9px 4px calc(9px + env(safe-area-inset-bottom));
  border-top:1px solid #d8e6f6;
  border-radius:24px 24px 0 0;
  background:rgba(255,255,255,.96);
  box-shadow:0 -8px 26px rgba(57,91,151,.12);
}

.bottom-nav button{
  min-width:0;
  border:0;
  color:#7b8eaa;
  background:transparent;
  font-size:11px;
  font-weight:800;
}

.bottom-nav button span{
  display:block;
  margin-bottom:3px;
  font-size:20px;
}

.bottom-nav button.active{
  color:#1768d7;
}

.toast{
  position:fixed;
  z-index:20;
  left:50%;
  bottom:92px;
  width:calc(100% - 40px);
  max-width:420px;
  transform:translate(-50%,20px);
  border-radius:18px;
  color:#fff;
  background:rgba(23,48,96,.94);
  padding:14px 16px;
  text-align:center;
  font-size:14px;
  font-weight:700;
  opacity:0;
  pointer-events:none;
  transition:.25s ease;
}

.toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

@media (min-width:700px){
  body{
    padding:24px 0;
  }

  .app{
    max-width:700px;
  }

  .notice-list{
    overflow:visible;
  }

  .notice-card{
    width:auto;
    flex:1;
  }

  .bottom-nav{
    left:50%;
    right:auto;
    width:680px;
    transform:translateX(-50%);
    bottom:16px;
    border-radius:24px;
  }
}

/* 今日のまとめ画像 */
.summary-image{
  background-image:url("../assets/summary.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* 入力欄を少しコンパクトに */
.voice-row input{
  font-size:15px;
  padding:0 12px;
}

.chat-mark{
  font-size:24px;
}

#micButton{
  width:54px;
  height:54px;
  flex-basis:54px;
  font-size:22px;
}

/* 下部ナビを少し薄く・低く */
.bottom-nav{
  padding:7px 4px calc(7px + env(safe-area-inset-bottom));
}

.bottom-nav button span{
  font-size:18px;
}

.bottom-nav button{
  font-size:10px;
}

.summary-image{
  display:block !important;
  width:112px !important;
  height:112px !important;
  min-width:112px !important;
  border-radius:50% !important;
  background-image:url("../assets/summary.png") !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}

.summary-page{
  padding-bottom:150px;
}

.summary-page-header{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}

.summary-page-header p{
  margin:0;
  color:#748caf;
  font-size:12px;
  font-weight:800;
}

.summary-page-header h2{
  margin:4px 0 0;
  color:#173060;
  font-size:24px;
}

.summary-back-button{
  width:46px;
  height:46px;
  border:0;
  border-radius:50%;
  color:#173060;
  background:#fff;
  box-shadow:0 8px 20px rgba(57,91,151,.14);
  font-size:34px;
  line-height:1;
}

.summary-main-card,
.summary-content-card,
.summary-message-card{
  margin-top:16px;
  border:1px solid var(--line);
  border-radius:26px;
  background:var(--card);
  box-shadow:var(--shadow);
}

.summary-main-card{
  padding:22px;
  background:linear-gradient(180deg,#f7fbff 0%,#ecf5ff 100%);
}

.summary-kicker{
  margin:0;
  color:#6f8db9;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
}

.summary-main-card h3{
  margin:9px 0 8px;
  color:#173060;
  font-size:23px;
}

.summary-main-card > p:last-child{
  margin:0;
  color:#4e6d96;
  font-size:15px;
  line-height:1.7;
}

.summary-content-card{
  padding:19px;
}

.summary-content-card h3{
  margin:0;
  color:#1768d7;
  font-size:19px;
}

.summary-flow{
  margin-top:17px;
}

.summary-flow > div{
  display:grid;
  grid-template-columns:58px 18px 1fr;
  gap:10px;
  position:relative;
  padding-bottom:18px;
}

.summary-flow > div:not(:last-child)::after{
  content:"";
  position:absolute;
  top:18px;
  left:66px;
  width:2px;
  height:28px;
  background:#d8e8fa;
}

.summary-flow time{
  padding-top:2px;
  font-size:16px;
  font-weight:850;
}

.summary-flow span{
  width:12px;
  height:12px;
  margin-top:6px;
  border-radius:50%;
  background:#2d7bef;
  box-shadow:0 0 0 4px #e9f3ff;
}

.summary-flow span.purple{
  background:#8365dc;
}

.summary-flow p{
  margin:0;
}

.summary-flow strong{
  display:block;
  font-size:16px;
}

.summary-flow small{
  display:block;
  margin-top:4px;
  color:#6b82a5;
  font-size:13px;
}

.summary-reminders{
  margin-top:15px;
}

.summary-reminders > div{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 0;
  border-bottom:1px solid #e3edf8;
}

.summary-reminders > div:last-child{
  border-bottom:0;
}

.summary-reminders span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#edf6ff;
  font-size:22px;
}

.summary-reminders p{
  margin:0;
}

.summary-reminders strong{
  display:block;
  font-size:15px;
}

.summary-reminders small{
  display:block;
  margin-top:3px;
  color:#6b82a5;
  font-size:12px;
}

.summary-check-list{
  margin-top:14px;
}

.summary-check-list label{
  display:flex;
  align-items:center;
  gap:11px;
  padding:14px 0;
  border-bottom:1px solid #e3edf8;
  font-size:16px;
  font-weight:700;
}

.summary-check-list label:last-child{
  border-bottom:0;
}

.summary-check-list input{
  width:22px;
  height:22px;
  margin:0;
  accent-color:#2d7bef;
}

.summary-message-card{
  display:flex;
  gap:12px;
  padding:17px;
  background:#f5faff;
}

.summary-message-card > span{
  font-size:24px;
}

.summary-message-card p:last-child{
  margin:7px 0 0;
  color:#4b6992;
  font-size:14px;
  line-height:1.65;
}