@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  font-family: sans-serif;
}

img {
  width: 100%;
  vertical-align: bottom;
}

/* body */
body {
  color: #555;
  background-color: #f5fafd;
  /* CONTACTのみ追加 */
  position: relative;
  height: 100%;
  min-height: 100vh;
  padding-bottom: 15px;
}

/* header */
header {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #f5fafd;
  padding: 3px 0;
}

header a :hover {
  opacity: 0.5;
}

.inner-header {
  width: 90%;
  margin: 10px auto;
  justify-content: space-between;
  align-items: end;
}

.sp-logo {
  display: block;
}

.sp-logo img {
  width: 50px;
  margin-left: 10px;
}

.pc-logo {
  display: none;
}

.inner-header nav ul {
  justify-content: space-between;
  gap: 20px;
}

.inner-header nav ul a {
  font-size: small;
  color: #999;
}

.inner-header nav ul a:hover {
  opacity: 0.5;
}

/* ハンバーガーメニュー */
.ham {
  z-index: 99;
  width: 35px;
  height: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  position: fixed;
  top: 20px;
  right: 30px;
}

.ham span {
  display: block;
  width: 100%;
  height: 1px;
  border-radius: 1px;
  background-color: #555;
  transition: 1s;
}

/* スマホ */
.navi {
  width: 100%;
  height: 100vh;
  background: #f5fafd;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: 1s;
  pointer-events: none;
}

.navi ul {
  display: block;
  margin-left: 100px;
  padding: 15px;
  border-left: 1px solid #999;
}

.navi ul li {
  margin-bottom: 20px;
}

.navi ul li a {
  color: #888;
  font-size: 14px;
}

.navi ul li img {
  width: 50px;
}

.navi ul .n-item {
  margin-bottom: 0;
}

.navi.open {
  opacity: 1;
  pointer-events: all;
}

.ham.open span:first-child {
  transform: translateY(11px) rotate(45deg);
}

.ham.open span:nth-child(2) {
  opacity: 0;
}

.ham.open span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.pc-navi {
  display: none;
}

/* main */
main {
  width: 90%;
  margin: 0 auto;
}

main div {
  width: 100%;
  margin-bottom: 50px;
}

.f-img {
  display: flex;
  object-fit: cover;
  /* 追加 */
  padding-bottom: 150px;
}

.form dd {
  font-size: 12px;
  margin-bottom: 15px;
}

.form dt {
  font-size: 13px;
  margin-bottom: 3px;
}

.form dt h3 {
  font-size: 16px;
  margin-bottom: 20px;
}

input {
  font-size: 13px;
  padding: 5px;
  color: #999;
  border: 1px solid #999;
}

input[type="email"] {
  font-size: 13px;
  width: 100%;
  border: 1px solid #999;
}

textarea {
  font-size: 13px;
  width: 100%;
  padding: 5px;
  border: 1px solid #999;
}

input[type="submit"] {
  font-size: 13px;
  font-weight: bold;
  padding: 10px;
  background-color: #fff;
  color: #555;
  border: 1px solid #999;
}

.form a {
  display: block;
  font-size: 13px;
  text-align: center;
  padding: 10px;
  margin-top: 20px;
  background-color: #fff;
  border: 1px solid #999;
}

.form a:hover {
  opacity: 0.5;
}

.form a img {
  width: 13px;
  height: 13px;
}

/* footer */
footer {
  width: 100%;
  display: flex;
  /* 追加 */
  position: absolute;
  bottom: 0;
}

footer div {
  width: fit-content;
  text-align: center;
  margin: 0 auto;
}

footer p {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #777;
}

/* レスポンシブ */
@media (min-width: 1024px) {
  .pc-navi {
    display: block;
  }

  .pc-navi ul {
    display: flex;
    gap: 20px;
  }

  .pc-logo {
    display: block;
  }

  .pc-logo img {
    width: 220px;
  }

  .sp-logo {
    display: none;
  }

  .ham {
    display: none;
  }

  header {
    padding: 15px;
    background-color: #f5fafd;
  }

  .inner-header {
    width: 90%;
    display: flex;
    margin: 20px auto;
    justify-content: space-between;
    align-items: baseline;
  }

  .inner-header nav ul {
    gap: 50px;
  }

  .inner-header nav ul a {
    font-size: medium;
    font-weight: bold;
  }

  .navi {
    display: block;
  }

  .navi ul {
    display: flex;
    gap: 5px;
  }

  .navi ul li {
    font-family: sans-serif;
  }

  .navi ul li a {
    display: block;
    padding: 5px 15px;
    opacity: 1;
  }

  .navi ul a:hover {
    opacity: 0.5;
  }

  .pc-navi ul li {
    font-family: sans-serif;
  }

  main {
    width: 90%;
    margin: 0 auto;
    display: flex;
  }

  main div {
    width: 50%;
    padding: 50px;
  }

  .f-img {
    display: flex;
  }

  main div img {
    object-fit: cover;
    align-items: center;
  }

  form {
    margin-bottom: 20px;
  }

  .form dd {
    margin-bottom: 15px;
    font-size: 13px;
  }

  .form dt {
    margin-bottom: 3px;
    font-size: 14px;
  }

  .form dt h3 {
    font-size: 18px;
    margin-bottom: 30px;
  }

  input {
    font-size: 14px;
    padding: 5px;
    color: #999;
    border: 1px solid #999;
  }

  input[type="email"] {
    font-size: 14px;
    width: 100%;
    border: 1px solid #999;
  }

  textarea {
    width: 100%;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #999;
  }

  input[type="submit"] {
    padding: 10px;
    background-color: #fff;
    color: #555;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #999;
  }

  .form a {
    display: block;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    margin-top: 5px;
    background-color: #fff;
    border: 1px solid #999;
  }

  .form a:hover {
    opacity: 0.5;
  }

  .form a img {
    width: 15px;
    height: 15px;
  }

  footer {
    width: 100%;
    display: flex;
  }

  footer div {
    width: fit-content;
    text-align: center;
    margin: 0 auto;
  }

  footer p {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #777;
  }
}