* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background: #fff;
}
a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.8em;
    margin-left: 4px;
    position: relative;
    top: -2px; /* 少し上げる */
}
/* ローディング */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loading.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.loading-text {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #e8a5c4;
}

.loading-text span {
  display: inline-block;
  opacity: 0;
  animation: fade 1s forwards;
}

.loading-text span:nth-child(1) {
  animation-delay: 0s;
}

.loading-text span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-text span:nth-child(3) {
  animation-delay: 0.4s;
}



/* モーダル背景 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

/* モーダルコンテンツ */
.modal-content {
  position: relative;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 182, 193, 0.4), transparent 40%),
    radial-gradient(circle at 20% 10%, rgba(173, 216, 230, 0.3), transparent 50%),
    #ffffff;
  margin: 5% auto;
  padding: 40px;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  animation: slideIn 0.3s ease;
}
.modal-content h3 span{
  font-size: 0.7em;
  display: block;
}
/* 閉じるボタン */
.close {
  position: absolute;
  top: 0;
  right: 2%;
  font-size: 40px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #000;
}

/* モーダル内テキスト */
.modal-content h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #333;
}

.modal-content p {
  line-height: 1.8;
  margin-bottom: 15px;
  color: #666;
}

.modal-content a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 30px;
  background: #e8a5c4;
  /* ベースの背景色 */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.modal-content a:hover {
  background: #d594b3;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

/* メインラッパー */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* 左側固定 */
.left-fixed {
  position: fixed;
  left: 0;
  top: 0;
  width: 35%;
  height: 100vh;
  background: linear-gradient(135deg, #f8fdff 0%, #fde3f3 50%, #bbdefb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile {
  text-align: center;
  color: #124577;
}

.profile-img {
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
  border-radius: 50%;
  border: 3px solid #e8a5c4;
  overflow: hidden;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile h1 {
  font-size: 60px;
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  font-family: 'Noto Serif JP', serif;
}

.job-title {
  font-size: 14px;
  color: rgb(18, 69, 119);
  margin-bottom: 30px;
  font-family: 'Noto Serif JP', serif;
}

.social {
  min-height: 24px;
}

/* 右側スクロール */
.right-scroll {
  margin-left: 35%;
  width: 65%;
  padding: 80px 60px;
}

.sec {
  margin-bottom: 120px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* フェードイン後の状態 */
.sec.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.sec h2 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
  padding-bottom: 15px;
  border-bottom: 2px solid #e8a5c4;
  display: inline-block;
  font-family: 'Noto Serif JP', serif;
}

.sec p {
  line-height: 1.8;
  color: #666;
  margin-bottom: 1em;
}

/* Works */
.works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2列 */
  gap: 25px;
}

.work {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem 1rem;
}

.work:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.work-item {
  transition: all 0.3s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
}

/* .work-item:hover {
  cursor: pointer;
  transform: scale(1.1);
} */

.work img {
  width: 100%;
  object-fit: cover;
}

.work-info {
  padding: 20px 20px 0;
}

.work-info h3 {
  font-size: 16px;
  /* 少し小さく */
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.work-info p {
  font-size: 13px;
  /* 少し小さく */
  color: #666;
  margin-bottom: 12px;
}

.tags {
  display: block;
  gap: 8px;
  margin-bottom: 12px;
}

.tags span {
  padding: 4px 10px;
  background: #f0f0f0;
  display: inline-block;
  font-size: 11px;
}

.work-info .btn-view {
  display: inline-block;
  padding: 8px 20px;
  background: #e8a5c4;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 12px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.work-info .btn-view:hover {
  background: #d594b3;
}

.confidential {
  background: #f9f9f9;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  color: #707070;
  margin-top: 3rem;
}

.confidential h3 {
  font-weight: 500;
}

.confidential ul {
  width: 94%;
  margin: 0 auto 1rem
}

/* Skills */
.skill-group {
  margin-bottom: 40px;
}

.skill-group h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 500;
}

.skill-group ul {
  list-style: none;
}

.skill-group li {
  padding: 10px 0;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.copyright {
  color: #7793ad;
  text-align: center;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }

  .left-fixed {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .right-scroll {
    margin-left: 0;
    width: 100%;
    padding: 40px 20px;
  }

  .works {
    grid-template-columns: 1fr;
    /* 1列 */
  }

  .confidential {
    grid-column: 1;
  }

}