/* =====================================================================
   松野正史プロフィールページ 専用「ご案内」ウィジェット
   #matsuno-profile 配下にスコープ。style.css / matsuno-profile.css は変更しない。
   ===================================================================== */

#matsuno-profile .mp-guide-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--mp-color-accent);
  color: #fff;
  font-family: var(--mp-font-body);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

#matsuno-profile .mp-guide-launcher:hover {
  filter: brightness(1.08);
}

#matsuno-profile .mp-guide-launcher__icon {
  font-size: 1.1rem;
}

#matsuno-profile .mp-guide-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 41;
  width: min(360px, calc(100vw - 40px));
  max-height: min(520px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  background: var(--mp-color-panel);
  border: 1px solid var(--mp-color-line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

#matsuno-profile .mp-guide-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--mp-color-line);
  background: var(--mp-color-bg-muted);
}

#matsuno-profile .mp-guide-panel__title {
  margin: 0;
  font-family: var(--mp-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mp-color-text);
}

#matsuno-profile .mp-guide-panel__close {
  border: none;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--mp-color-text-soft);
  cursor: pointer;
  padding: 2px 6px;
}

#matsuno-profile .mp-guide-panel__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#matsuno-profile .mp-guide-message {
  max-width: 84%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

#matsuno-profile .mp-guide-message--user {
  align-self: flex-end;
  background: var(--mp-color-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

#matsuno-profile .mp-guide-message--assistant {
  align-self: flex-start;
  background: var(--mp-color-bg-muted);
  color: var(--mp-color-text);
  border-bottom-left-radius: 4px;
}

#matsuno-profile .mp-guide-note {
  align-self: flex-start;
  margin: 0;
  font-size: 0.78rem;
  color: var(--mp-color-text-soft);
}

#matsuno-profile .mp-guide-route {
  align-self: flex-start;
  margin: -2px 0 0;
}

#matsuno-profile .mp-guide-route__link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mp-color-accent);
  border: 1px solid var(--mp-color-accent);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
}

#matsuno-profile .mp-guide-route__link:hover {
  background: var(--mp-color-accent);
  color: #fff;
}

#matsuno-profile .mp-guide-choices {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

#matsuno-profile .mp-guide-choices__button {
  border: 1px solid var(--mp-color-line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--mp-color-panel);
  color: var(--mp-color-text);
  font-family: var(--mp-font-body);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}

#matsuno-profile .mp-guide-choices__button:hover {
  background: var(--mp-color-bg-muted);
}

#matsuno-profile .mp-guide-panel__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--mp-color-line);
}

#matsuno-profile .mp-guide-panel__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--mp-color-line);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--mp-font-body);
  font-size: 0.86rem;
  color: var(--mp-color-text);
  background: var(--mp-color-panel);
}

#matsuno-profile .mp-guide-panel__send {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--mp-color-accent);
  color: #fff;
  font-family: var(--mp-font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

#matsuno-profile .mp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  #matsuno-profile .mp-guide-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 84px;
  }

  #matsuno-profile .mp-guide-launcher__label {
    display: none;
  }
}
