/* ANIMAL BASE 試作 CSS：スマホ幅（約390px）で1画面に収まる形を基本にする */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: #F3F6FA;
  color: #24313D;
  font-size: 17px;
  line-height: 1.5;
}
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-bottom: 2px solid #C9D6E4;
  padding: 10px 12px;
  max-width: 430px; margin: 0 auto;
}
.back-btn {
  font-size: 16px; padding: 8px 10px; border-radius: 10px;
  border: 2px solid #9FB4C9; background: #fff; cursor: pointer;
}
.brand { flex: 1; }
.brand-name { font-weight: 700; font-size: 20px; }
.brand-sub { font-size: 12px; color: #6B7E90; }
.login-link {
  font-size: 15px; color: #25405D; text-decoration: none;
  border: 2px solid #25405D; border-radius: 10px; padding: 6px 10px;
}
main { max-width: 430px; margin: 0 auto; padding: 14px 12px 24px; }
.foot {
  max-width: 430px; margin: 0 auto; padding: 10px 12px 28px;
  font-size: 13px; color: #7C8DA0; text-align: center;
}
h1.page-title { font-size: 22px; margin: 4px 0 12px; }
.note { font-size: 14px; color: #666; }
.note-small { font-size: 13px; color: #666; }

/* 一番最初の画面（写真だけの画面） */
/* 写真のフェード切り替えは、この画面だけの例外 */
body.cover-mode .topbar, body.cover-mode .foot { display: none; }
body.cover-mode main { max-width: none; padding: 0; }
.cover {
  position: relative; height: 100vh; height: 100dvh; overflow: hidden;
  background: #D9E3EE; cursor: pointer;
  display: flex; flex-direction: column;
}
.cover-photo { position: relative; flex: 1; min-height: 0; }
.cover-cards { display: flex; gap: 10px; padding: 12px 12px 0; }
.cover-card {
  flex: 1; background: #fff; border: 2px dashed #B9C9DA; border-radius: 14px;
  padding: 9px 10px; min-height: 66px; text-decoration: none; color: #2b2b2b;
}
.cover-card .mc-title { font-weight: 700; font-size: 15px; }
.cover-card .mc-body { font-size: 13px; color: #999; margin-top: 3px; }
.settings-row { text-align: center; margin-top: 2px; }
.settings-link { color: #25405D; font-size: 15px; }
.cover-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
}
.cover-slide.on { opacity: 1; }
.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-nophoto {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #5A7186; font-size: 15px;
}
.cover-home-btn {
  align-self: center; margin: 14px 0 28px;
  background: #25405D; color: #fff; font-size: 24px; font-weight: 700;
  padding: 18px 72px; border-radius: 999px; border: 3px solid #fff;
  text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  white-space: nowrap;
}
.cover-photo-empty {
  display: flex; align-items: center; justify-content: center;
}
.cover-empty-inner { text-align: center; padding: 16px; }
.cover-empty-title { font-size: 20px; font-weight: 700; color: #25405D; }
.cover-empty-sub { font-size: 14px; color: #5A7186; margin-top: 6px; }
.mini-cards { display: flex; gap: 10px; margin-bottom: 14px; }
.mini-card {
  flex: 1; background: #fff; border: 2px dashed #B9C9DA; border-radius: 14px;
  padding: 10px; min-height: 74px;
}
.mini-card .mc-title { font-weight: 700; font-size: 15px; }
.mini-card .mc-body { font-size: 13px; color: #999; margin-top: 4px; }
.big-btn {
  display: block; width: 100%; text-align: left; cursor: pointer;
  border: none; border-radius: 18px; padding: 20px 18px; margin-bottom: 12px;
  color: #fff; text-decoration: none;
}
.big-btn .bb-title { font-size: 24px; font-weight: 700; }
.big-btn .bb-sub { font-size: 14px; opacity: .92; margin-top: 2px; }
.btn-trouble { background: #25405D; }
.btn-daily { background: #D9E3EE; color: #25405D; }
.btn-search { background: #D9E3EE; color: #25405D; }
.btn-if { background: #25405D; }

/* 困った時 */
.urgent {
  border: 3px solid #c62828; background: #fdecea; border-radius: 16px;
  padding: 14px; margin-bottom: 14px;
}
.urgent .u-title { color: #b71c1c; font-weight: 700; font-size: 19px; }
.urgent .u-body { margin: 6px 0 12px; }
.menu-btn {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid #C9D6E4; border-radius: 16px;
  padding: 16px; margin-bottom: 10px; text-decoration: none; color: #2b2b2b;
}
.menu-btn .mb-title { font-size: 19px; font-weight: 700; }
.menu-btn .mb-sub { font-size: 14px; color: #6B7E90; }
.menu-btn.dim { opacity: .55; }
.tag-stage {
  display: inline-block; font-size: 12px; background: #eee; color: #666;
  border-radius: 8px; padding: 1px 7px; margin-left: 6px; vertical-align: middle;
}

/* 病院一覧 */
.phone-notice {
  background: #fff3e0; border: 2px solid #ef6c00; border-radius: 12px;
  padding: 10px 12px; font-weight: 700; margin-bottom: 12px; font-size: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  border: 2px solid #9FB4C9; background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 15px; cursor: pointer;
}
.chip.on { background: #25405D; border-color: #25405D; color: #fff; }
.hosp-card {
  background: #fff; border: 2px solid #D3DEE9; border-radius: 16px;
  padding: 14px; margin-bottom: 12px;
}
.hosp-name { font-size: 19px; font-weight: 700; }
.hosp-meta { font-size: 14px; color: #666; margin: 2px 0 8px; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 700;
  border-radius: 8px; padding: 2px 8px; margin-right: 6px;
}
.badge.open { background: #e8f5e9; color: #1b5e20; border: 1px solid #66bb6a; }
.badge.closed { background: #f1f1f1; color: #777; border: 1px solid #bbb; }
.badge.night { background: #ede7f6; color: #4527a0; border: 1px solid #9575cd; }
.badge.extra { background: #e3f2fd; color: #0d47a1; border: 1px solid #64b5f6; }
.hosp-actions { display: flex; gap: 10px; margin-top: 10px; }
.call-btn, .detail-btn {
  flex: 1; text-align: center; font-size: 18px; font-weight: 700;
  border-radius: 12px; padding: 14px 6px; text-decoration: none; cursor: pointer;
}
.call-btn { background: #25405D; color: #fff; border: none; }
.detail-btn { background: #fff; color: #25405D; border: 2px solid #25405D; }
.source-note { font-size: 13px; color: #666; margin-top: 8px; }

/* 病院の詳しいページ */
.big-call {
  display: block; width: 100%; text-align: center; background: #25405D; color: #fff;
  font-size: 21px; font-weight: 700; border-radius: 14px; padding: 16px; margin: 12px 0;
  text-decoration: none;
}
.map-btn {
  display: block; width: 100%; text-align: center; background: #fff; color: #25405D;
  font-size: 17px; font-weight: 700; border: 2px solid #25405D; border-radius: 14px;
  padding: 13px; margin-bottom: 14px; text-decoration: none;
}
.kv { background: #fff; border: 2px solid #D3DEE9; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.kv .k { font-size: 13px; color: #888; }
.kv .v { font-size: 17px; margin-top: 2px; white-space: pre-line; }

/* この子カード */
.pet-photo {
  background: #E3EAF2; border: 2px dashed #A9BCD2; border-radius: 16px;
  height: 170px; display: flex; align-items: center; justify-content: center;
  color: #5A7186; font-size: 15px; margin-bottom: 12px; text-align: center;
}
.pet-name { font-size: 26px; font-weight: 700; }
.band { display: flex; gap: 3px; margin: 8px 0 4px; }
.band .day { flex: 1; height: 22px; border-radius: 5px; }
.band .d-green { background: #66bb6a; }
.band .d-orange { background: #ffa726; }
.band .d-gray { background: #cfcfcf; }
.legend { font-size: 13px; color: #666; margin-bottom: 12px; }
.show-big-btn {
  display: block; width: 100%; background: #25405D; color: #fff; border: none;
  font-size: 19px; font-weight: 700; border-radius: 14px; padding: 16px; cursor: pointer;
  margin-top: 6px;
}
.pet-photo.has-photo { border: none; background: none; height: auto; }
.pet-photo img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 16px; display: block; }
.edit-btn {
  display: block; width: 100%; text-align: center; background: #fff; color: #25405D;
  border: 2px solid #25405D; font-size: 17px; font-weight: 700; border-radius: 14px;
  padding: 14px; margin-top: 10px; text-decoration: none;
}

/* この子の切り替え（何頭かいる時） */
.pet-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pet-switch-btn {
  border: 2px solid #9FB4C9; background: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: 16px; font-weight: 700; cursor: pointer; color: #2b2b2b;
}
.pet-switch-btn.on { background: #25405D; border-color: #25405D; color: #fff; }
.field[hidden] { display: none; }

/* この子の登録 */
.field select {
  width: 100%; font-size: 18px; padding: 13px; border: 2px solid #B9C9DA;
  border-radius: 12px; background: #fff;
}
.edit-photo {
  background: #E3EAF2; border: 2px dashed #A9BCD2; border-radius: 14px; min-height: 120px;
  display: flex; align-items: center; justify-content: center; color: #5A7186;
  font-size: 14px; margin-bottom: 8px; overflow: hidden;
}
.edit-photo img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.field label.photo-pick {
  display: block; text-align: center; background: #fff; color: #25405D;
  border: 2px solid #25405D; border-radius: 12px; padding: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer; margin-bottom: 0;
}
.big-text { font-size: 30px; line-height: 1.7; font-weight: 700; }
.big-text .bt-k { font-size: 18px; color: #777; font-weight: 400; display: block; }

/* さがす・少ない動物 */
.animal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.animal-btn {
  background: #fff; border: 2px solid #A9BCD2; border-radius: 16px; padding: 18px 8px;
  font-size: 19px; font-weight: 700; cursor: pointer; text-align: center;
}
.kaho-card {
  background: #fff8e1; border: 2px solid #ffb300; border-radius: 16px; padding: 14px; margin-top: 14px;
}

/* ログイン・準備中 */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 14px; color: #666; margin-bottom: 4px; }
.field input {
  width: 100%; font-size: 18px; padding: 13px; border: 2px solid #B9C9DA; border-radius: 12px;
}
.primary-btn {
  display: block; width: 100%; background: #25405D; color: #fff; border: none;
  font-size: 18px; font-weight: 700; border-radius: 12px; padding: 15px; cursor: pointer;
}
.line-btn {
  display: block; width: 100%; background: #06c755; color: #fff; border: none;
  font-size: 18px; font-weight: 700; border-radius: 12px; padding: 15px; cursor: pointer;
}
.or-line { text-align: center; color: #999; margin: 14px 0; font-size: 14px; }
.soon-box {
  background: #fff; border: 2px dashed #b7ab8d; border-radius: 16px; padding: 22px 16px;
  text-align: center;
}
.soon-box .s-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.msg { background: #E3EAF2; border: 1px solid #9FB4C9; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 12px; }

/* 普段の様子を入れる */
.intro-box {
  background: #fff; border: 2px solid #C9D6E4; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 14px; font-size: 16px;
}
.acc {
  background: #fff; border: 2px solid #D3DEE9; border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.acc summary {
  padding: 14px; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '＋'; float: right; color: #25405D; }
.acc[open ] summary::after { content: '−'; }
.acc-body { padding: 2px 14px 6px; }
.field textarea {
  width: 100%; font-size: 18px; padding: 13px; border: 2px solid #B9C9DA;
  border-radius: 12px; font-family: inherit; min-height: 84px;
}
.check-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; padding: 7px 0; cursor: pointer;
}
.check-row input[type="checkbox"] {
  width: 24px; height: 24px; padding: 0; border: none; flex: none;
}

/* 外に出る情報の確認 */
.lost-card {
  background: #fff; border: 2px solid #25405D; border-radius: 14px;
  padding: 14px; margin-bottom: 10px;
}
.lost-head { font-size: 20px; font-weight: 700; color: #25405D; margin-bottom: 8px; }
.lost-card .lost-photo { margin: 0 0 10px; }
.lost-card .pet-name { margin-bottom: 6px; }
.share-title { font-size: 19px; font-weight: 700; margin: 18px 0 8px; }
.share-photo {
  width: 100%; max-height: 200px; object-fit: cover;
  border-radius: 10px; display: block; margin-top: 6px;
}
.share-ng {
  background: #fff; border: 2px solid #D3DEE9; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 8px; font-size: 17px;
}

/* 今日の様子（記録する画面） */
.today-pet { font-size: 20px; font-weight: 700; }
.today-date { font-size: 16px; color: #6B7E90; margin: 2px 0 12px; }
.mark-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.mark-btn {
  width: 100%; text-align: center; font-size: 19px; font-weight: 700;
  background: #fff; color: #25405D; border: 2px solid #9FB4C9;
  border-radius: 14px; padding: 16px; cursor: pointer;
}
.mark-btn.on { background: #25405D; border-color: #25405D; color: #fff; }
.care-note {
  background: #fff; border: 2px solid #C9D6E4; border-radius: 12px;
  padding: 10px 12px; font-size: 16px; margin-bottom: 14px;
}
.since-label { font-size: 14px; color: #666; margin: 2px 0 6px; }
.photo-remove {
  display: block; width: 100%; text-align: center; background: #fff; color: #666;
  border: 2px solid #B9C9DA; border-radius: 12px; padding: 10px;
  font-size: 15px; cursor: pointer; margin-top: 8px;
}
.rec-card {
  background: #fff; border: 2px solid #D3DEE9; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 10px;
}
.rec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-date { font-weight: 700; }
.rec-mark {
  font-size: 13px; font-weight: 700; border-radius: 8px;
  padding: 2px 8px; border: 1px solid;
}
.rec-mark.m-ok { background: #e8f5e9; color: #1b5e20; border-color: #66bb6a; }
.rec-mark.m-warn { background: #fff3e0; color: #e65100; border-color: #ffa726; }
.rec-mark.m-bad { background: #fdecea; color: #b71c1c; border-color: #e57373; }
.rec-since { margin-top: 4px; font-size: 14px; color: #666; }
.rec-memo { margin-top: 6px; white-space: pre-line; }
.rec-photo {
  width: 100%; max-height: 200px; object-fit: cover;
  border-radius: 10px; display: block; margin-top: 8px;
}

/* 病院で見せる（文字は大きめ） */
.vet-head { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.vet-note { font-size: 18px; line-height: 1.6; color: var(--ink-sub, #44586e); background: #e8eff7; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.vet-sec {
  background: #fff; border: 2px solid #D3DEE9; border-radius: 14px;
  padding: 14px 16px; margin-bottom: 14px;
}
.vet-sec .vs-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.vet-sec .vs-body { font-size: 20px; line-height: 1.65; }
.vet-memo { padding: 8px 0; border-top: 1px solid #D3DEE9; }
.vet-memo:first-child { border-top: none; padding-top: 0; }
.vet-memo-date { font-weight: 700; }
.vet-photo {
  width: 100%; max-height: 220px; object-fit: cover;
  border-radius: 12px; display: block; margin-top: 8px;
}
