@charset "UTF-8";

/* スタイル */
html {
  scroll-padding-top: 70px;
}
body {
  padding-top: 70px;
}
header {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-light);
  backdrop-filter: blur(5px);
}
.h-container {
  max-width: 1300px;
  margin-inline: auto;
}
.h-wrap {
  min-height: 70px;
  padding-inline: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.h-left {
}
.h-right {
}

.h-logo {
  font-family: var(--f-en);
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}
.h-logo:hover {
  opacity: 0.8;
}

ul.h-navlist {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: 20px;
}
ul.h-navlist > li {
}
ul.h-navlist > li > a {
  font-family: var(--f-en);
  display: block;
  color: #333;
  text-decoration: none;
}
ul.h-navlist > li > a:hover {
  text-decoration: underline;
}

footer {
  background: var(--primary-light);
  margin-top: 100px;
}
.f-wrap {
  display: grid;
  place-content: center;
  min-height: 80px;
}
.copyright > small {
  font-family: var(--f-en);
  letter-spacing: 0.05em;
  font-weight: 500;
  color: #333;
}

/* トップページ */
.link-card-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-inline: auto;
}

.link-card-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #333;
  padding: 20px;
  width: 400px;
  height: auto;
  aspect-ratio: 16/9;
  box-shadow: 10px 10px 10px #999;
  transition: 0.3s;
}
.link-card-item:hover {
  transform: translateY(3px);
  box-shadow: 2px 2px 5px #999;
}
.link-card-item:hover .link-img-box:before {
  opacity: 0;
}

@media only screen and (max-width: 768px) {
  .link-card-list {
    flex-direction: column;
    width: 100%;
  }
  .link-card-item {
    width: 100%;
  }
}

.link-img-box {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.link-img-box > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.link-img-box:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.5;
  transition: 0.3s;
}
.link-card-txt-box {
  position: relative;
  z-index: 3;
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
}

/* プロフィールページ */
.profile-wrap {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 20px;
  row-gap: 20px;
}

@media only screen and (max-width: 768px) {
  .profile-wrap {
    flex-direction: column;
  }
}

.profile-img-box {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 5px;
  width: 40%;
}

.profile-img-box > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-txt-box {
  width: 60%;
}

@media only screen and (max-width: 768px) {
  .profile-img-box {
    width: 100%;
  }
  .profile-txt-box {
    width: 100%;
  }
}
