@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;
}

/* 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 */

.about-flex {
  width: 90%;
  margin: 0 auto;
  display: block;
  align-items: center;
}

.about-flex div {
  width: 100%;
  margin: 15px;
  margin-bottom: 30px;
  padding: 15px;
  border-left: 1px solid #555;
}
.about-flex h2 {
  font-size: 18px;
}

.about-flex h3 {
  font-size: 16px;
  margin-bottom: 10px;
  width: fit-content;
  background-color: #fff;
  border: 1px solid #555;
  border-radius: 2px;
  padding: 4px 10px 4px 10px;
}

.about-flex div p {
  font-size: 13px;
  line-height: 1.7;
}

.about-flex img {
  padding: 15px;
  object-fit: contain;
  border: none;
}

.about-item {
  display: flex;
  align-items: center;
}

.about-item h2 {
  font-size: 16px;
}

.about-item a img{
  width: 50px;
  height: 50px;
}

.about-item a:hover {
  opacity: 0.5;
}

.about-img img {
  height: 200px;
  object-fit: cover;
  object-position: bottom;
}

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

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;
  }

  .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;
  }

  .about-flex {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
  }

  .about-flex div {
    width: 100%;
    margin: 15px;
    margin-bottom: 50px;
    padding: 15px;
    border-left: 1px solid #555;
  }

  .about-flex h2 {
    font-size: 18px;
  }

  .about-flex h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .about-flex div p {
    font-size: 14px;
    line-height: 1.7;
  }

  .about-flex img {
    height: 600px;
    padding: 15px;
    object-fit: cover;
    object-position: bottom;
    border: none;
  }

  .about-item {
    display: flex;
    align-items: center;
  }

  .about-item h2 {
    font-size: 18px;
  }

  .about-item a img{
    width: 50px;
    height: 50px;
  }

  .about-item a:hover {
    opacity: 0.5;
  }

  .about-img img {
    height: 300px;
    object-fit: cover;
    object-position: bottom;
  }

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

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

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