* {
  box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "fot-tsukuaoldmin-pr6n", YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
    overflow: hidden;
    letter-spacing: 0.05em;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ffffff00;
    z-index: 3;
    padding: 20px 40px;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .span {
    color: #8B7355;
}

nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.nav-link:hover {
    color: #8B7355;
}

.nav-link.active {
    color: #8B7355;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #8B7355;
}

#left {
  position: fixed;
  left: 0;
  top: 0;
  width: 60%;
  height: 100vh;
  overflow-y: auto;
  background: #ffffff;
  z-index: 2;
  padding: 80px 40px 40px;
}

#right {
  position: fixed;
  right: 0;
  top: 0;
  width: 40%;
  height: 100vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}

#right img {
  max-width: 85%;
  max-height: 80%;
  object-fit: contain;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  filter: blur(4px);
}

#right img.loaded {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

#now {
  display: none; /* 現在表示エリアを非表示にして重複を防ぐ */
}

#now-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  line-height: 2;
  font-family: Cormorant, serif;
}

#now-summary {
  font-size: 0.9rem;
  color: #666;
  line-height: 2;
  margin: 0 0 30px 0;
}

#now-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: #e3f2fd;
  color: #1976d2;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.project {
  margin-bottom: 80px;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

.project-image {
  display: none;
}

.project:last-child {
  border-bottom: none;
  margin-bottom: 40px;
}

.project .tag {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.project .title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  line-height: 2;
  font-family: Cormorant, serif;
}

.project .cols {
  padding: 20px;
}

.project .desc {
  color: #555;
  line-height: 2;
  margin: 0 0 25px 0;
  font-size: 0.9rem;
}

.project .links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.btn {
  background: transparent;
  color: #8B7355;
  border: 1px solid #8B7355;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '↗';
  font-size: 14px;
  transition: transform 0.3s ease;
}

.btn:hover {
  background: #8B7355;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.btn:hover::after {
  transform: rotate(45deg);
}

#footer {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  color: #999;
  font-size: 0.9rem;
}

/* スクロールバーを非表示 */
#left {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

#left::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* About Page Styles */
.about-container {
  min-height: 100vh;
  padding: 100px 40px 40px;
  background: #fafafa;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.about-text {
  padding: 40px 0;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  line-height: 1.2;
  font-family: Cormorant, serif;
}

.about-subtitle {
  font-size: 1.2rem;
  color: #8B7355;
  margin: 0 0 40px 0;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.about-description {
  margin-bottom: 60px;
}

.about-description p {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  margin: 0 0 20px 0;
}

.skills h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 30px 0;
  font-family: Cormorant, serif;
}

.skill-grid {
  display: grid;
  gap: 30px;
}

.skill-item {
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.skill-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 10px 0;
  font-family: Cormorant, serif;
}

.skill-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.cta {
  margin-top: 60px;
  text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 750px) {
  body {
    overflow: auto;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .about-title {
    font-size: 2rem;
  }
  
  .about-image img {
    max-height: 300px;
  }
  
  #left {
    width: 100%;
    position: relative;
    height: auto;
    min-height: auto;
    padding: 100px 20px 40px;
  }
  
  #right {
    display: none;
  }
  
  .project {
    margin-bottom: 60px;
    padding: 30px 0;
  }
  
  .project-image {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .project-image:hover img {
    transform: scale(1.02);
  }
  
  .project .cols {
    grid-template-columns: 1fr;
  }
  
  header {
    padding: 20px;
  }
  
  .project {
    margin-bottom: 60px;
    padding: 30px 0;
  }
}
