@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #011e41;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border 0.2s ease, margin 0.2s ease;
  transform: translateZ(0);
}

body.cursor-hover #custom-cursor {
  width: 44px;
  height: 44px;
  background-color: transparent;
  border: 2px solid #fff;
  margin: -15px 0 0 -15px;
}

body.page-blog #custom-cursor {
  background-color: #fff;
}

body.page-blog.cursor-hover #custom-cursor {
  width: 44px;
  height: 44px;
  background-color: transparent;
  border: 2px solid #fff;
  margin: -15px 0 0 -15px;
}

body.page-programming.cursor-hover #custom-cursor {
  width: 44px;
  height: 44px;
  background-color: transparent;
  border: 2px solid #fff;
  margin: -15px 0 0 -15px;
}

/* イントロ */
.intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease 0.4s;
  visibility: hidden;
}

.intro.show {
  visibility: visible;
}

.intro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro.slide-up {
  transform: translateY(-100%);
  opacity: 0;
}

/* メインコンテンツ */

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  padding: 92px 50px 60px;
}

.work-item {
  display: block;
  text-decoration: none;
  color: #011e41;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.work-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.work-item img {
  width: 100%;
  aspect-ratio: 1.414 / 1;
  object-fit: cover;
}

.work-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 20, 45, 0.85);
  opacity: 0;
  aspect-ratio: 1.414 / 1;
}

.work-item:hover::after {
  opacity: 1;
}

.work-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 20px;
  text-align: center;
  z-index: 1;
  opacity: 0;
  padding: 0 20px;
  width: 400px;
}

.work-item:hover .work-title {
  opacity: 1;
}

.footer {
  padding: 60px 50px;
  font-size: 14px;
  color: rgba(1, 30, 65, 0.3);
}


.main-content {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.main-content.visible {
  opacity: 1;
}

body {
  font-family: "HelveticaNowDisplay-Regular", sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: #e6e6e6;
  color: #011e41;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 50px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #e6e6e6;
  z-index: 100;
  transform: translateY(0);
  transition: transform 0.4s ease, background-color 1.2s ease;
}

.nav-hidden {
  transform: translateY(-100%);
}

.nav-left {
  display: flex;
  gap: 30px;
}

.nav-right {
  display: flex;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: #011e41;
  font-size: 20px;
  position: relative;
  margin-bottom: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #011e41;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}


h1 {
  margin-bottom: 20px;
}

p {
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #011e41;
  color: #fff;
  text-decoration: none;
}
