@charset "UTF-8";

/* =========================
   Footer (final)
   HTML:
   #footer
     .footer-container
       .footer-left
       .footer-right
     .footer-bottom
       .footer-bottom_left
       .footer-bottom_right(任意)
   ========================= */

#footer{
  background-color: #101726;
  padding: 40px 0;
  font-size: 14px;
  margin-top: 160px;
}

#footer p{
  color: #fff;
  line-height: 2.2;
}

#footer a{
  color: #fff;
  text-decoration: none;
}

#footer a:hover{
  text-decoration: underline;
}

/* -------------------------
   Main layout (PC)
   ------------------------- */
.footer-container{
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.footer-left{
  flex: 1 1 520px;
  min-width: 280px;
}

.footer-right{
  flex: 0 0 auto;
}

/* Logo */
.footer-logo img.logo{
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin-bottom: 24px;
}

/* SNS（使う場合） */
.social-media{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.social-media_icon{
  width: auto;
  display: grid;
  place-items: center;
}

.social-media_icon img{
  width: 20px;
  height: 20px;
  display: block;
}

.social-media_txt p{
  margin: 0;
}

/* Links (PC: 横並び) */
.footer-links ul{
  list-style: none;
  margin: 0;
  padding: 0;

  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.footer-links ul li{
  margin: 0;
}

.footer-links ul li a{
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.footer-links ul li a:hover{
  text-decoration: underline;
}

/* -------------------------
   Bottom area
   ------------------------- */
.footer-bottom{
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.18);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  font-size: 12px;
}

.footer-bottom_left,
.footer-bottom_right{
  width: auto;
}

.footer-bottom_left p,
.footer-bottom_right p{
  margin: 0;
  color: #fff;
  line-height: 1.6;
}

/* 任意：プライバシーリンクなど */
.privacy-policy{
  color: #fff;
  text-decoration: none;
}

.privacy-policy:hover{
  text-decoration: underline;
}

/* =========================
   Responsive
   ========================= */

/* タブレット */
@media screen and (max-width: 900px){
  .footer-container{
    gap: 40px;
  }
}

/* スマホ */
@media screen and (max-width: 768px){
  #footer{
    padding: 32px 0;
    margin-top: 100px; /* SPは詰めたい場合 */
  }

  .footer-container{
    margin: 0 auto 36px;
    flex-direction: column;
    gap: 28px;
  }

  .footer-left,
  .footer-right{
    width: 100%;
    min-width: 0;
  }

  .footer-logo img.logo{
    max-width: 240px;
    margin: 40px 0;
  }

  #footer p{
    line-height: 2.0;
  }

  /* SP: メニューは縦並び＋左寄せ */
  .footer-links ul{
    display: grid;
    gap: 12px;
    justify-content: start;
  }

  .footer-links ul li a{
    white-space: normal;
  }

  /* SP: 下段は中央寄せで折り返し */
  .footer-bottom{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* さらに小さい端末 */
@media screen and (max-width: 420px){
  .footer-logo img.logo{
    max-width: 210px;
  }
}