.l-footer {
  background: #f4f6fa;
}
.l-footer__inner {
  display: flex;
}
.p-footer {
  padding: 24px 0;
}
.p-footer .l-content-container {
  width: 95%;
}
.p-footer__logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 32%;
  margin-right: 5.4%;
}
.p-footer__logo a {
  max-width: 50%;
}
.p-footer__logo a:not(:first-child) {
  max-width: 42%;
}
.p-footer__logo path,
.p-footer__logo rect {
  fill: #fff;
}
.p-footer__copy {
  text-align: center;
  color: #fff;
  font-size: calc(10 / 16 * 1rem);
  background-color: #001024;
  line-height: calc(24 / 16 * 1rem);
}
.p-footer__address {
  display: flex;
}
.p-footer__address__item {
  font-size: calc(14 / 16 * 1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.p-footer__address__item:first-child {
  margin-right: 8px;
  font-size: calc(12 / 16 * 1rem);
  line-height: 1.6;
}
.p-footer__tb__flex {
  display: flex;
  align-items: center;
}
.p-footer__tel {
  font-weight: bold;
  margin-right: 16px;
  font-size: calc(20 / 16 * 1rem);
  letter-spacing: 0.05em;
  line-height: 1.45;
  position: relative;
  margin-left: 32px;
}
.p-footer__tel::before {
  content: "";
  display: block;
  width: 24px;
  height: 16px;
  background: url(../img/free-dial.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 8px;
  left: -30px;
}
.p-footer__tel .fa-solid.fa-phone {
  color: #1a4d8d;
  margin-right: 4px;
  font-size: calc(12 / 16 * 1rem);
}
.p-footer__time {
  margin-right: 8px;
  font-size: calc(12 / 16 * 1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.p-footer__fax {
  font-size: calc(16 / 16 * 1rem);
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
@media screen and (max-width: 480px) {
  .l-footer__inner {
    align-items: flex-start;
  }
  .p-footer__logo {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 30%;
    margin-right: 4%;
    gap: 8px;
  }
  .p-footer__logo a {
    max-width: 100%;
  }
  .p-footer__logo a:not(:first-child) {
    max-width: 100%;
    margin-top: 0;
  }
  .p-footer__logo :not(:first-child) {
    margin-top: 0;
  }
  .p-footer__address {
    flex-direction: column;
  }
  .p-footer__address__item {
    font-size: calc(13 / 16 * 1rem);
  }
  .p-footer__address__item:first-child {
    margin-right: 4px;
    font-size: calc(12 / 16 * 1rem);
  }
  .p-footer__tel::before {
  }
  .p-footer__tb__flex {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 4px;
    column-gap: 8px;
  }
  .p-footer__tb__flex > ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
  }
  .p-footer__tb__flex > ul:last-child {
    flex-basis: 100%;
  }
  .p-footer__tel {
    margin-right: 0;
    font-size: calc(18 / 16 * 1rem);
  }
  .p-footer__date {
    font-size: calc(10 / 16 * 1rem);
  }
  .p-footer__tel .fa-solid.fa-phone {
    margin-right: 4px;
  }
  .p-footer__time {
    margin-right: 4px;
    font-size: calc(10 / 16 * 1rem);
  }
  .p-footer__fax {
    font-size: calc(12 / 16 * 1rem);
  }
  .p-footer__info {
    align-items: center;
  }
}

/* 固定サイドバー：電話ボタンのホバー時フリーダイヤルポップオーバー（PCのみ） */
.p-fixed-sidebar__btn--tel {
  position: relative;
}
.p-fixed-sidebar__popover {
  display: none;
}
.p-fixed-sidebar__popover {
  display: block;
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translate(0.5rem, -50%);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 100;
}
.p-fixed-sidebar__popover img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
}
.p-fixed-sidebar__btn--tel:hover .p-fixed-sidebar__popover,
.p-fixed-sidebar__btn--tel:focus-visible .p-fixed-sidebar__popover {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

/* 固定サイドバー（基本レイアウト） */
.p-fixed-sidebar {
  position: fixed;
  top: 55%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 90;
}
.p-fixed-sidebar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: calc(60 / 16 * 1rem);
  padding: calc(20 / 16 * 1rem) 0;
  color: #fff;
  text-decoration: none;
  gap: calc(10 / 16 * 1rem);
  transition: opacity 0.2s ease;
}
.p-fixed-sidebar__btn:first-child {
  border-radius: 8px 0 0 0;
}
.p-fixed-sidebar__btn:last-child {
  border-radius: 0 0 0 8px;
}
.p-fixed-sidebar__btn:hover {
  opacity: 0.9;
}
.p-fixed-sidebar__btn--mail {
  background-color: #eb6100;
}
.p-fixed-sidebar__btn--tel {
  background-color: #1a4d8d;
}
.p-fixed-sidebar__icon {
  display: block;
  width: calc(28 / 16 * 1rem);
}
.p-fixed-sidebar__icon img {
  display: block;
  width: 100%;
  height: auto;
}
.p-fixed-sidebar__text {
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.p-fixed-sidebar__text--pc {
  writing-mode: vertical-rl;
  font-size: calc(14 / 16 * 1rem);
  line-height: 1.2;
}
.p-fixed-sidebar__text--upright {
  text-orientation: upright;
  letter-spacing: -0.05em;
}
.p-fixed-sidebar__text--sp {
  display: none;
}
.p-fixed-sidebar__text-line {
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
}

@media screen and (max-width: 960px) {
  .p-fixed-sidebar__btn {
    width: calc(48 / 16 * 1rem);
    box-sizing: border-box;
    padding: 12px 0 12px 2px;
    gap: calc(6 / 16 * 1rem);
  }
  .p-fixed-sidebar__btn:first-child {
    border-radius: 6px 0 0 0;
  }
  .p-fixed-sidebar__btn:last-child {
    border-radius: 0 0 0 6px;
  }
  .p-fixed-sidebar__icon {
    width: calc(22 / 16 * 1rem);
  }
  .p-fixed-sidebar__text--pc {
    display: none;
  }
  .p-fixed-sidebar__text--sp {
    display: block;
    font-size: calc(11 / 16 * 1rem);
    line-height: 1.4;
    writing-mode: horizontal-tb;
    letter-spacing: 0;
    text-align: center;
  }
  .p-fixed-sidebar__popover {
    display: none;
  }
}
