@charset "UTF-8";

/* =============================================================================
   TOP のユーザーボイス ボタン（吹き出し形）
   Figma : 水産DX（運用） / 各サービス_TOP の「btn_fukidashi」
   style.css の後に読み込む。.page の外（ログインのバナー .float-cta の直前）に置く。
   画面右下に固定し、ログインのバナー（.float-cta）が出る場所の上に積む。
   バナーが出ていないときも位置は変えない（出たときに押し上げられて動かないように）。
   767px 以下はバナー自体が出ないので、右下の角に置く。
   ========================================================================== */

.voice-btn {
  /* ログインのバナーの位置・高さ（style.css の .float-cta と合わせる） */
  --cta-edge: 20px;
  --cta-h: 72px;
  --cta-gap: 12px;
  position: fixed;
  right: var(--cta-edge);
  bottom: calc(var(--cta-edge) + var(--cta-h) + var(--cta-gap));
  z-index: 120;
  display: block;
  width: 269px;
  padding-right: 5px;   /* しっぽが本体の右端から 5px はみ出す分 */
  color: #fff;
  text-decoration: none;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .4));
  transform-origin: right bottom;
  transition: transform .25s ease;
}

.voice-btn:hover,
.voice-btn:focus-visible { transform: translateY(-3px); }

.voice-btn__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border-radius: 45px;
  background: #FF8800;
}

/* 吹き出しのしっぽ（装飾）：本体の右下に重ね、右下へ向ける */
.voice-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 216px;
  width: 53px;
  height: 18px;
  background: url("/jp/fisheries/lib/img/common/voice/btn-tail.svg") center / contain no-repeat;
}

/* アバター：地方の背景＋人物を同じセルに重ねる */
.voice-btn__icon {
  display: grid;
  flex: none;
  overflow: hidden;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #35BCFF;
}

.voice-btn__icon > img { grid-area: 1 / 1; }

.voice-btn__bg {
  width: 60px;
  height: 60px;
}

.voice-btn__chara {
  width: 50.571px;
  height: 50.571px;
  margin: 9.43px 0 0 4.29px;
  object-fit: cover;
}

.voice-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 700;
  white-space: nowrap;
}

.voice-btn__sub {
  font-size: 12px;
  line-height: 1.3;
}

.voice-btn__main {
  font-size: 22px;
  line-height: 1.4;
}

/* SP：ログインのバナーは出ない（style.css で非表示）ので右下の角に置く。
   ボタンは少し小さくして本文を隠しすぎないようにする */
@media (max-width: 767px) {
  .voice-btn {
    --cta-edge: 12px;
    --cta-h: 0px;
    --cta-gap: 0px;
    scale: .8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-btn { transition: none; }
}
