/* ============================================
   header
============================================ */
.header {
  padding: 20px 0;
  position: relative;
}
.header .inr {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header .inr h1 {
  font-family: var(--font-family-en);
  font-size: 1.3rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0em;
  line-height: 1.5;
  color: var(--color-basicgray);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.header .inr h1.animate {
  opacity: 1;
  transform: translateX(0);
}
/* ハンバーガーメニューボタン（モバイル基本） */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  position: relative;
}
.hamburger-menu span {
  width: 100%;
  height: 1px;
  background-color: var(--color-basicgray);
  border-radius: 0;
  transition: all 0.3s ease;
  transform-origin: center;
  position: relative;
}
.hamburger-menu.active span:nth-child(1) {
  position: absolute;
  top: 50%;
  left: 0;
  transform: rotate(45deg) translateY(-50%);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  position: absolute;
  top: 50%;
  left: 0;
  transform: rotate(-45deg) translateY(-50%);
}
/* ナビゲーション（モバイル基本：ハンバーガーメニュー） */
.header .inr .nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 80px 30px 30px;
  gap: 0;
  transition: right 0.3s ease-out;
  z-index: 999;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}
.header .inr .nav.active {
  right: 0;
}
.header .inr .nav li {
  width: 100%;
  margin-bottom: 10px;
  opacity: 1;
  transform: translateX(0);
  padding: 10px;
}
.header .inr .nav li a {
  font-size: 2rem;
  text-decoration: none;
  color: var(--color-basicgray);
}
/* デスクトップ（1000px以上） */
@media (min-width: 1000px) {
  .header {
    padding: 30px 0;
  }
  .header .inr h1 {
    font-size: 1.3rem;
  }
  .hamburger-menu {
    display: none;
  }
  .header .inr .nav {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    gap: 20px;
    box-shadow: none;
  }
  .header .inr .nav li {
    width: auto;
    margin-bottom: 0;
    opacity: 0;
    transform: translateX(-30px);
    padding: 5px;
    font-family: var(--font-family-en);
    font-weight: var(--font-weight-regular);
    font-size: 1.3rem;
    color: var(--color-basicgray);
    letter-spacing: 0.1rem;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, background-color 0.3s ease;
    border-radius: 5px;
  }
  .header .inr .nav li.animate {
    opacity: 1;
    transform: translateX(0);
  }
  .header .inr .nav li:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  .header .inr .nav li a {
    font-size: 1.3rem;
    display: block;
    text-decoration: none;
    color: var(--color-basicgray);
  }
}
/* ============================================
   footer
============================================ */
footer .inr {
  padding: 50px 0;
}
footer .inr .wrap-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
footer .inr .wrap-top h1 {
  font-family: var(--font-family-en);
  font-size: 1.3rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0em;
  line-height: 1.5;
  color: var(--color-basicgray);
}
footer .inr .wrap-top ul {
  display: flex;
  gap: 20px;
}
footer .inr .wrap-top ul li {
  font-family: var(--font-family-en);
  font-weight: var(--font-weight-regular);
  font-size: 1.3rem;
  color: var(--color-basicgray);
  letter-spacing: 0.1rem;
}
footer .inr .wrap-top ul li a {
  display: block;
  text-decoration: none;
  color: var(--color-basicgray);
}
footer .inr .wrap-bottom p {
  font-family: var(--font-family-en);
  font-weight: var(--font-weight-regular);
  font-size: 1rem;
  color: #676767;
  letter-spacing: 0.1rem;
}
/* ============================================
   mainVisual
============================================ */
.mainVisual {
  margin-bottom: 120px;
}
.mainVisual .inr {
  position: relative;
  text-align: left;
  padding: 120px 0;
}
.mainVisual .main-catch {
  font-family: var(--font-family-ja);
  font-size: 3.4rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-basicgray);
  margin-bottom: 0;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.mainVisual .main-catch.animate {
  opacity: 1;
  transform: translateY(0);
}
.mainVisual .main-catch-sub {
  font-family: var(--font-family-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-basicgray);
  letter-spacing: 0.1rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.mainVisual .main-catch-sub.animate {
  opacity: 1;
  transform: translateY(0);
}
.main-bg-sp {
  width: 100%;
  z-index: -1;
}
.main-bg-sp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* デスクトップ（1000px以上） */
@media (min-width: 1000px) {
  .mainVisual {
    position: relative;
    overflow: hidden;
  }
  .mainVisual .inr {
    text-align: left;
  }
  .mainVisual .main-catch {
    font-size: 6rem;
    margin-bottom: 20px;
  }
  .mainVisual .main-catch-sub {
    font-size: 2.4rem;
  }
}
/* ============================================
   works
============================================ */
.works h3 {
  position: relative;
}
.card-title::after {
  display: none;
}
.works .inr > ul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
}
.works > ul > li {
  font-family: var(--font-family-en);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-medium);
  color: var(--color-basicgray);
  letter-spacing: 0.1rem;
  margin-bottom: 3px;
}
.card-list {
  list-style: none;
}
.card-list > li {
  width: 100%;
}
.card {
  position: relative;
  background-color: #f7f7f7;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: border-color 0.5s ease-out, background-color 0.5s ease-out;
}
.card-title {
  display: block;
  font-family: var(--font-family-en);
  font-size: 1.8rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-basicgray);
  margin: 0;
  text-align: center;
}
.card-desc {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
  box-sizing: border-box;
  overflow-y: auto;
}
.card:hover .card-title {
  opacity: 0;
}
.card-desc li {
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
  border-radius: 5px;
}
.card-desc li:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.card-desc li p {
  font-size: 1.2rem;
  color: #b1b1b1;
  margin-top: 5px;
}
.card:hover {
  border-color: #f7f7f7;
}
.card:hover .card-desc {
  opacity: 1;
  pointer-events: auto;
}
.card-desc a {
  color: var(--color-basicgray);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}
.card-desc li:hover a {
  color: var(--color-basicgray);
}
/* デスクトップ（1000px以上） */
@media (min-width: 1000px) {
  .works .inr > ul {
    flex-direction: row;
  }
  .card-list > li {
    width: 32.5%;
  }
}
/* ============================================
   gallery
============================================ */
.gallery {
  position: relative;
  overflow: hidden;
}
.gallery .section-ttl {
  margin-bottom: 80px;
}
.gallery-bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: #6fd9c0;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  z-index: -1;
}
.gallery-scroll-wrapper {
  overflow: hidden;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  cursor: grab;
}
.gallery-scroll-wrapper:active {
  cursor: grabbing;
}
.gallery-list-wrapper {
  display: flex;
  width: fit-content;
  will-change: transform;
}
.gallery-list {
  display: flex;
  flex-direction: row;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: fit-content;
  flex-shrink: 0;
}
.gallery-list li {
  flex-shrink: 0;
  width: 300px;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transform-origin: center;
}
.gallery-list li img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}
.gallery-list li img:hover {
  opacity: 0.7;
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* デスクトップ（1000px以上） */
@media (min-width: 1000px) {
  .gallery-list li {
    width: 400px;
  }
}
/* ============================================
   preview modal
============================================ */
.preview-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}
.preview-modal.active {
  display: block;
}
.preview-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(103, 103, 103, 0.95);
}
.preview-modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  pointer-events: none;
}
.preview-modal-container * {
  pointer-events: auto;
}
.preview-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  transition: background-color 0.3s ease;
}
.preview-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
.preview-modal-slider {
  display: flex;
  width: fit-content;
  height: 100%;
  transition: transform 0.5s ease-out;
  align-items: center;
}
.preview-modal-slide {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  overflow-y: auto;
}
.preview-modal-slide img {
  width: 60vw;
  height: auto;
  object-fit: contain;
  padding-top: 150px;
}
.preview-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  transition: background-color 0.3s ease;
}
.preview-modal-nav:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
.preview-modal-nav.prev {
  left: 20px;
}
.preview-modal-nav.next {
  right: 20px;
}
.gallery-link {
  cursor: pointer;
}
/* ============================================
   skills
============================================ */
.skills {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}
.skills-card-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 90%;
}
.skills .card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.skills .card {
  width: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.skills .card-title {
  font-family: var(--font-family-en);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--color-basicgray);
  display: flex;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.skills .card .inr {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  box-sizing: border-box;
}
.skills .card-desc {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  position: static;
  top: auto;
  left: auto;
  height: auto;
}
.skills .card:hover .card-title {
  opacity: 0;
}
.skills .card:hover .card-desc {
  opacity: 1;
  pointer-events: auto;
}
.skills .card:hover {
  border-color: #f7f7f7;
  background-color: #ffffff;
}
.skills .card-desc > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 0;
}
.skills .card-desc > li:hover {
  background-color: transparent;
}
.skills .card-desc > li ul li:hover {
  background-color: transparent;
}
.skills .card-desc > li h3 {
  font-family: var(--font-family-en);
  font-size: var(--font-headline-03);
  font-weight: var(--font-weight-semibold);
  color: var(--color-basicgray);
  margin: 0;
  min-width: auto;
  flex-shrink: 0;
}
.skills .card-desc > li ul {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
/* デスクトップ（1200px以上） */
@media (min-width: 1200px) {
  .skills .card {
    min-height: 250px;
  }
  .skills-card-wrapper {
    max-width: 80%;
  }
  .skills .card .inr {
    max-width: 100%;
    justify-content: flex-start;
  }
  .skills .card-desc {
    max-width: 100%;
    width: 100%;
  }
  .skills .card-desc > li {
    flex-direction: row;
    gap: 30px;
  }
  .skills .card-desc > li h3 {
    min-width: 100px;
  }
  .skills .card-desc > li ul {
    flex-direction: row;
  }
}
.skills .card-desc > li ul li {
  margin: 0;
}
.skills .card-desc > li ul li h4 {
  font-family: var(--font-family-en);
  font-size: var(--font-headline-04);
  font-weight: var(--font-weight-regular);
  color: var(--color-basicgray);
  margin: 0;
}
/* ============================================
   philosophy
============================================ */
.philosophy .inr {
  background-position: center;
  background-size: cover;
}
.philosophy .section-ttl {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.philosophy .section-ttl.animate {
  opacity: 1;
  transform: translateY(0);
}
.philosophy .text-block {
  position: static;
  width: 100%;
}
.philosophy p {
  font-family: var(--font-family-ja);
  font-weight: 400;
  font-size: 1.2rem;
  color: #676767;
  line-height: 2;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.philosophy p.animate {
  opacity: 1;
  transform: translateY(0);
}
/* デスクトップ（1000px以上） */
@media (min-width: 1000px) {
  .philosophy {
    margin-bottom: 200px;
  }
  .philosophy .text-block {
    width: 50%;
  }
  .philosophy p {
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    line-height: 2.5;
  }
}
/* ============================================
   preview
============================================ */
.preview {
  background-color: #e6e6e6;
}
.contents {
  max-width: 90%;
  margin: 0 auto;
  margin-top: 100px;
  margin-bottom: 100px;
  box-shadow: 5px 5px 10px 0.5px rgba(0, 0, 5, 0.1);
}
.contents img {
  width: 100%;
}
/* デスクトップ（1001px以上） */
@media (min-width: 1001px) {
  .contents {
    max-width: 50%;
  }
}
