@charset "UTF-8";

/*ヘッダー モーダル付き*/
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  padding: 0 0 0 15px !important;
  background-color: #fff;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .1);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  height: 60px;
  margin: 0 auto;
  position: relative;
  padding: 5px 20px;
}

.header__inner img {
  vertical-align: bottom;
}

.header__inner .header__group {
  display: flex;
  align-items: center;
}

.header__inner .header__group button,
#modal,
.icon_close {
  background-color: transparent;
  border: none;
  outline: none;
  padding: 0;
  appearance: none;
}

.header__inner .header__tel {
  margin-right: 64px;
}

.header__inner .header__group .header__share {
  position: absolute;
  right: 0;
  padding: 16px;
  border-left: 2px solid #eee;
  cursor: pointer;
}

.header__inner .header__group .header__share:hover {
  opacity: .7;
}

.sp-tel {
  display: none;
}

/*モーダル*/

#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 50%);
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

#modal.is-active {
  opacity: 1;
  visibility: visible;
}

#modal .modal-container {
  background: #fff;
  padding: 30px 20px;
  border-radius: 30px;
  width: 440px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 250px auto auto;
  height: max-content;
}

#modal button {
  cursor: pointer;
}

#modal .icon_close {
  position: absolute;
  top: 20px;
  right: 20px;
}

#modal p {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: solid 1px #D9D9D9;
}

#modal .sns_container {
  display: flex;
  justify-content: center;
  gap: 38px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media screen and (max-width: 767px) {
  header {
    padding: 0 !important;
  }

  .header__logo img {
    width: 80%;
  }

  .header__inner {
    padding: 5px 20px 5px 5px;
  }

  .header__inner::before {
    right: 50px;
  }

  .header__inner .header__tel {
    margin-right: 40px;
  }

  .header__inner .header__group .header__share {
    margin-left: 0;
    position: absolute;
    right: 0;
    padding: 16px 12px;
    height: 60px;
  }

  .header__inner .header__group .header__share img {
    width: 20px;
    height: 20px;
  }

  .sp-tel {
    margin-right: 40px;
    display: block;
  }

  #modal .modal-container {
    margin: auto;
    width: 80%;
    padding: 20px;
  }

  #modal p {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  #modal .sns_container {
    gap: 30px;
  }
}

@media screen and (max-width: 500px) {
  #modal p {
    font-size: 5vw;
  }
}
/*ヘッダー モーダル付き終わり*/
