/* ひなた 店主アプリ（LIFF最小版）— スマホ表示前提 */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: #f4f6f8;
  color: #1a2b33;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.app-header {
  background: #123a4d;
  color: #fff;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.app-subtitle {
  font-size: 13px;
  opacity: 0.85;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 12px calc(24px + env(safe-area-inset-bottom));
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(18, 58, 77, 0.12);
}

.card h2 {
  font-size: 16px;
  margin: 0 0 12px;
  color: #123a4d;
  border-left: 4px solid #e8873a;
  padding-left: 8px;
}

/* 相談チャット */
.messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 4px 2px 8px;
}

.msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
}

.msg-assistant {
  background: #eef4f2;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-user {
  background: #123a4d;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-form textarea {
  flex: 1;
  min-width: 0;
}

textarea, select {
  width: 100%;
  font: inherit;
  font-size: 16px; /* iOSの自動ズーム防止 */
  padding: 10px;
  border: 1px solid #c3ced4;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 10px;
}

.chat-form textarea {
  margin-bottom: 0;
  resize: vertical;
}

button {
  font: inherit;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  background: #e8873a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

button:disabled {
  opacity: 0.5;
}

button.secondary {
  background: #2e6e63;
}

.wide-btn {
  width: 100%;
  margin-bottom: 10px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #46606e;
  margin: 6px 0 4px;
}

.note {
  font-size: 13px;
  color: #5b7280;
  margin: 4px 0 0;
}

/* 設定 */
.settings {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 15px;
}

.settings dt {
  color: #46606e;
  font-weight: 600;
}

.settings dd {
  margin: 0;
  word-break: break-all;
}
