/* ==================================================
   全ページ共通：PC用固定リンク
   ファイル名：botton.css
   透過ロゴ＋紺色ラベル＋右側の縦ライン
================================================== */

.nobo-fixed-social {
  --fixed-social-blue: #0272d4;
  --fixed-social-navy: #142f53;

  --fixed-social-label-color: var(--fixed-social-navy);
  --fixed-social-label-shadow:
    0 0 3px rgb(255 255 255 / 95%),
    0 1px 5px rgb(255 255 255 / 80%);
  --fixed-social-line-color: rgb(2 114 212 / 65%);

  --fixed-social-width: 84px;
  --fixed-social-image-size: 42px;
  --fixed-social-youtube-scale: 1.35;
  --fixed-social-right: 18px;
  --fixed-social-gap: 24px;
  --fixed-social-padding-y: 26px;
  --fixed-social-line-space: 12px;

  position: fixed;
  z-index: 100;
  top: 50%;
  right: var(--fixed-social-right);
  transform: translateY(-50%);

  display: block;
  width: var(--fixed-social-width);
  margin: 0;
  padding:
    var(--fixed-social-padding-y)
    var(--fixed-social-line-space)
    var(--fixed-social-padding-y)
    0;

  border: 0;
  background: transparent;
  box-shadow: none;

  color: var(--fixed-social-label-color);
  font-family:
    "Zen Old Mincho", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;

  /* リンク間の余白は背後のコンテンツを操作可能 */
  pointer-events: none;
}

.nobo-fixed-social,
.nobo-fixed-social::before,
.nobo-fixed-social::after,
.nobo-fixed-social *,
.nobo-fixed-social *::before,
.nobo-fixed-social *::after {
  box-sizing: border-box;
}

/* ==================================================
   右側の縦ライン
================================================== */

.nobo-fixed-social::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;

  width: 1px;
  background: var(--fixed-social-line-color);

  pointer-events: none;
}

.nobo-fixed-social::after {
  content: none;
}

/* ==================================================
   文字色の切り替え
   標準：紺色
   --dark：既存HTMLとの互換用
   --light：暗い背景で白文字にする場合
================================================== */

.nobo-fixed-social--dark {
  --fixed-social-label-color: var(--fixed-social-navy);
}

.nobo-fixed-social--light {
  --fixed-social-label-color: #fff;
  --fixed-social-label-shadow: 0 1px 4px rgb(0 0 0 / 50%);
  --fixed-social-line-color: rgb(92 184 224 / 80%);
}

/* ==================================================
   リンク一覧
================================================== */

.nobo-fixed-social__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--fixed-social-gap);

  width: 100%;
  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;
  box-shadow: none;
  list-style: none;
}

.nobo-fixed-social__item {
  min-width: 0;
  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;
  box-shadow: none;
}

/* ==================================================
   共通リンク
================================================== */

.nobo-fixed-social__link {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;

  width: 100%;
  min-height: 78px;
  margin: 0;
  padding: 6px 2px;

  border: 0;
  border-radius: 2px;

  color: var(--fixed-social-label-color);
  background: transparent;
  box-shadow: none;
  opacity: 1;

  text-align: center;
  text-decoration: none;

  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.nobo-fixed-social__link:visited,
.nobo-fixed-social__link:hover,
.nobo-fixed-social__link:active {
  color: var(--fixed-social-label-color);
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

/* 共通リンク装飾による矢印などを表示しない */
.nobo-fixed-social__link::before,
.nobo-fixed-social__link::after {
  content: none;
}

/* ==================================================
   ロゴ画像
================================================== */

.nobo-fixed-social__image {
  --social-image-scale: 1;

  display: block;
  flex: 0 0 auto;

  width: var(--fixed-social-image-size);
  height: var(--fixed-social-image-size);
  max-width: 100%;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;

  object-fit: contain;
  object-position: center;

  transform: scale(var(--social-image-scale));
  transform-origin: center;

  filter: drop-shadow(0 1px 2px rgb(20 47 83 / 14%));

  pointer-events: none;

  transition:
    transform 220ms ease,
    filter 220ms ease;
}

/* YouTube素材の透明余白に合わせた補正 */
.nobo-fixed-social__image--youtube {
  --social-image-scale: var(--fixed-social-youtube-scale);
}

/* ==================================================
   ラベル
   ロゴの下に常時表示
================================================== */

.nobo-fixed-social__label {
  position: static;

  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;

  color: inherit;
  background: transparent;
  box-shadow: none;

  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.025em;
  text-align: center;
  text-shadow: var(--fixed-social-label-shadow);
  white-space: nowrap;

  overflow: visible;
  clip-path: none;
  visibility: visible;
  opacity: 1;
  transform: none;

  pointer-events: none;
}

.nobo-fixed-social__link--official .nobo-fixed-social__label {
  letter-spacing: 0.12em;
}

/* ==================================================
   キーボード操作
================================================== */

.nobo-fixed-social__link:focus-visible {
  outline: 2px solid var(--fixed-social-blue);
  outline-offset: 3px;
}

/* ==================================================
   ホバー
   ラベルの位置は固定し、ロゴだけ少し浮かせる
================================================== */

@media (hover: hover) and (pointer: fine) {
  .nobo-fixed-social__link[href]:not([aria-disabled="true"]):hover
    .nobo-fixed-social__image {
    transform:
      translateY(-3px)
      scale(var(--social-image-scale));

    filter: drop-shadow(0 4px 5px rgb(20 47 83 / 22%));
  }
}

/* ==================================================
   URL未設定時
   半透明にはしない
================================================== */

.nobo-fixed-social__link:not([href]),
.nobo-fixed-social__link[aria-disabled="true"] {
  opacity: 1;
  cursor: default;
}

/* ==================================================
   小さめのPC画面
================================================== */

@media (min-width: 1025px) and (max-width: 1279px) {
  .nobo-fixed-social {
    --fixed-social-width: 76px;
    --fixed-social-image-size: 36px;
    --fixed-social-right: 10px;
    --fixed-social-gap: 20px;
    --fixed-social-padding-y: 22px;
    --fixed-social-line-space: 10px;
  }

  .nobo-fixed-social__link {
    min-height: 70px;
    gap: 8px;
  }
}

/* ==================================================
   高さの低いPC画面
================================================== */

@media (min-width: 1025px) and (max-height: 600px) {
  .nobo-fixed-social {
    --fixed-social-image-size: 32px;
    --fixed-social-gap: 12px;
    --fixed-social-padding-y: 16px;
  }

  .nobo-fixed-social__link {
    min-height: 62px;
    gap: 6px;
    padding-block: 4px;
  }
}

/* ==================================================
   タブレット・スマートフォン：非表示
================================================== */

@media (max-width: 1024px) {
  .nobo-fixed-social {
    display: none;
  }
}

/* ==================================================
   動きを抑える設定
================================================== */

@media (prefers-reduced-motion: reduce) {
  .nobo-fixed-social__image {
    transition: none;
  }

  .nobo-fixed-social__link[href]:not([aria-disabled="true"]):hover
    .nobo-fixed-social__image {
    transform: scale(var(--social-image-scale));
  }
}