/* ものしりぼうし の画面。色・字・ボタンの作りは たかたのひみつどうぐ の style.css を使い、ここには足りないものだけを書く */
.mh { text-align: center; margin-top: 8px; }
.mh img { width: 112px; height: 112px; border-radius: 24px; }
.mh h1 { margin: 12px 0 0; color: var(--red); font-weight: 900; font-size: clamp(1.8rem, 9vw, 2.2rem); letter-spacing: 0.06em; }
.mh p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }

.mh p.lead { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--soft); color: var(--ink); font-size: 0.95rem; line-height: 1.7; text-align: left; }
footer .family { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-weight: 800; text-decoration: none; }
footer .family img { width: 20px; height: 21px; }

.card { border: 2px solid var(--line); border-radius: 18px; padding: 16px; margin: 20px 0 0; }
.card h2 { margin: 0 0 10px; font-size: 1.1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row > div { min-width: 0; }
/* 日付の欄は狭いと年月日が切れるので、スマホ幅では縦に並べる */
@media (max-width: 440px) { .row { grid-template-columns: 1fr; gap: 14px; } }
.field { margin: 14px 0 0; padding: 0; border: none; min-width: 0; }
label, legend { display: block; padding: 0; font-size: 0.9rem; color: var(--muted); margin-bottom: 4px; }
.in { display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; }
.in.other { margin-top: 8px; }
.in[hidden] { display: none; }
input[type="date"].in, input[type="time"].in { -webkit-appearance: none; appearance: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; margin: 0; border: 2px solid var(--blue); border-radius: 999px; color: var(--blue); font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.3; background: #fff; cursor: pointer; }
.chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--blue); color: #fff; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; }

.draft { display: block; width: 100%; min-height: 300px; padding: 12px; border: 2px dashed var(--line); border-radius: 12px; font: inherit; font-size: 0.95rem; line-height: 1.7; color: var(--ink); background: var(--soft); resize: vertical; }
.redo { margin-top: 8px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.redo[hidden] { display: none; }
.go { display: grid; gap: 10px; margin-top: 14px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 14px; border: none; border-radius: 999px; font: inherit; font-weight: 800; color: #fff; text-decoration: none; font-size: 1.05rem; cursor: pointer; }
.btn.ask { background: var(--red); }
.btn.ask.sub { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn[hidden] { display: none; }
.attached { margin-top: 10px; }
.attached summary { cursor: pointer; font-size: 0.9rem; color: var(--blue); font-weight: 700; }
.attached pre { max-height: 260px; overflow: auto; margin: 8px 0 0; padding: 10px; border-radius: 12px; background: var(--soft); font-size: 0.75rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.open-ai { margin: 4px 0 0; text-align: center; font-weight: 700; }
.open-ai[hidden] { display: none; }
.status { margin: 8px 0 0; min-height: 1.4em; font-size: 0.9rem; color: var(--green); font-weight: 700; text-align: center; }
.note2 { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; line-height: 1.7; }

.ask { margin: 0 0 8px; font-size: 0.9rem; color: var(--muted); }
.bubble { background: var(--soft); border-radius: 18px; border-top-left-radius: 4px; padding: 14px 16px; font-size: 0.95rem; line-height: 1.8; }
.bubble .src { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

.dev p { margin: 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.dev code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: 0.85rem; }
