@charset "UTF-8";

@use "common" as *;


/* --------------------- */
/* -----footer------- */
/* --------------------- */

.footer {
  background-color: var(--color-main);
  margin-top: 5rem;
  padding-top: 1.5rem;
  color: var(--color-white);
}
@media screen and (max-width: 768px) {
  .footer {
    margin-top: 3rem;
    padding: 0;
  }
}
.footer a{color: var(--color-white);}
.footer a:hover{color: var(--color-blue-hi-light);}
.footer .content {padding: 1rem;}

@media screen and (max-width: 768px) {
  .footer .content {
    padding: 1rem;
    width: 100%;
  }
}

.footer .footer-content{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media screen and (max-width: 768px) {
  .footer .footer-content {display: block;}
}
/* ロゴ周り*/
.footer .footer_corporate .logo{
  width: 45%;
  margin-bottom: 0.3rem;
}
.footer .footer_corporate p{color: var(--color-white);}

@media screen and (max-width: 768px) {
  .footer .footer_corporate .logo {
    width:48%;
    margin:0;
  }
  .footer .footer_corporate p{
    font-size: var(--s14);
    margin-top: -0.3rem;
    margin-bottom: 1.5rem;
  }
}

/*メニューリスト*/
.footer_nav_list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.footer_nav_list ul{display: flex;}
.footer_nav_list ul li{margin-right: 1rem;}
@media screen and (max-width: 768px) {
  .footer_nav_list {display: flex;}
  .footer_nav_list ul{
    display: inline;
    margin-right: 1rem;
  }

  .footer_nav_list li a{
    display: block;
    font-size: var(--s14);
    margin-bottom: 0.8rem;
  }
}

/*----フッター問い合わせ----*/
.footer_inquiry{
width:30%;
}
@media screen and (max-width: 768px) {
  .footer_inquiry {
    width:100%;
    margin-top: 2rem;
  }
}
.footer_inquiry li{
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: solid 1px #fff;
  font-weight: 400;
}
.footer_inquiry .tel{
  font-size: var(--s25);
  letter-spacing: 0.1rem;
}
/*----フッターアイコン----*/
.footer_inquiry .icon {
   display: block;
  width: 100%;
  /* アイコンのスペースを確保したpadding-leftを設定する */
  padding-left: 2.8rem;
  position: relative;
  /* 折り返しの対応 */
  overflow-wrap: break-word;
  &::before {
    content: "";
    display: block;
    width: 1.7rem;
    height: 1.7rem;
    position: absolute;
    left: 0.5rem;
    /* top: 50%;と、transform: translateY(-50%) で上下中央に配置 */
    top: 50%;
    transform: translateY(-50%);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  &.tel::before {
    background-image: url("../../common/img/icon_tel.svg");
  }
  &.mail::before {
    background-image: url("../../common/img/icon_mail.svg");
  }
}



/*コピーライト */
.footer small {
  display: block;
  margin-top: 30px;
  color: var(--color-white);
  text-align: center;
  font-weight: 100;
}

/* ===============================
   ページトップボタン本体
=============================== */
.p_top {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  z-index: 100;

  /* 初期非表示（スクロールで出す） */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* 表示状態 */
.p_top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.p_top a {
  display: block;
  text-decoration: none;
}

/* ===============================
   丸ボタン
=============================== */
#p_top {
  width: 70px;
  height: 70px;
  background:var(--color-blue);
  border-radius: 50%;
  position: relative;

  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* ホバーでふわっと */
.p_top a:hover #p_top {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

.p_top img{
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 2rem;
  z-index: 200;
  transition: transform 0.3s ease;
}
/* ホバーでふわっと（画像も） */
.p_top a:hover img {
  transform: translate(-50%, calc(-50% - 6px));
}

/* ===============================
   TOP文字
=============================== */
#p_top::after {
  content: "TOP";
  position: absolute;
  bottom: 0.3rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 2px;
}

/* ===============================
   スマホ対応
=============================== */
@media screen and (max-width: 768px) {
  #p_top {
    width: 60px;
    height: 60px;
  }

  #p_top::after {
    font-size: 12px;
  }
}
