@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.3s 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;
}

@media (hover: hover) and (pointer: fine) {
  .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;
}

@media (hover: hover) and (pointer: fine) {
  .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", YakuHanJP, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  background: #e6e6e6;
  color: #011e41;
  overflow-x: hidden;
  text-align: justify;
}

.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: 200;
  transform: translateY(0);
  transition: transform 0.4s ease, background-color 0.3s 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.active::after {
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after {
    width: 100%;
  }
}

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

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

.logo-white {
  display: none;
}

.nav.menu-open {
  background: #000;
}

.nav.menu-open .logo-dark {
  display: none;
}

.nav.menu-open .logo-white {
  display: block;
}


/* ハンバーガーボタン */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 300;
  position: relative;
}

.hamburger span {
  display: block;
  width: 32px;
  height: 2px;
  background: #011e41;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span {
  background: #fff;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  transform: translateY(-6px) rotate(-45deg);
}

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  display: block;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  margin-bottom: 24px;
}

.mobile-nav-link.active {
  text-decoration: underline;
  text-underline-offset: 6px;
}

@media (max-width: 768px) {
  #custom-cursor {
    display: none;
  }

  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .nav {
    padding: 16px 20px 14px;
  }

  .logo img {
    height: 38px;
    margin-top: 3px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    padding: 74px 16px 40px;
    gap: 12px;
  }

  .footer {
    padding: 20px 16px 30px;
  }

  .intro img {
    object-position: 30% center;
  }
}

p {
  margin-bottom: 20px;
  font-weight: 300;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
