:root {
  --primary-color: rgba(255, 255, 255, 0.8);
  --background-color: #f5f5f7;
  --text-color: #1d1d1f;
  --accent-color: rgba(0, 0, 0, 0.05);
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'BIZ UDPGothic', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.Header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.HeaderTitle {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-family: 'Source Code Pro', monospace;
}

.headerMenu {
  margin-top: 1rem;
}

.headerMenuList {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.headerMenuItem a {
  color: var(--text-color);
  text-decoration: none;
  transition: opacity var(--transition-speed);
}

.headerMenuItem a:hover {
  opacity: 0.7;
}

main {
  margin-top: 100px;
  padding: 2rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

figure {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

figure:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contentImage {
  position: relative;
  padding-top: 66.67%;
  overflow: hidden;
}

.contentImage img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

figure:hover .contentImage img {
  transform: scale(1.05);
}

figcaption {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

figcaption a {
  text-decoration: none;
  color: inherit;
}

.title {
  font-weight: 500;
  color: #000000;
}

.data {
  color: #666666;
  font-size: 0.9rem;
  font-family: 'Source Code Pro', monospace;
}

.caption {
  color: #666666;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .Header {
    padding: 1rem;
  }

  .headerMenuList {
    flex-direction: column;
    gap: 1rem;
  }

  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
  }
}

.menu-btn {
  display: none;
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger_line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition-speed);
  }

  .hamburger_line_1 { top: 15px; }
  .hamburger_line_3 { bottom: 15px; }

  .headerMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 80px 2rem;
    transition: right var(--transition-speed);
  }

  .headerMenu.active {
    right: 0;
  }
}

/* パスワードモーダル */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.modal-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: 'BIZ UDPGothic', sans-serif;
}

.modal-input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  font-family: 'Source Code Pro', monospace;
  font-size: 1rem;
}

.modal-input:focus {
  outline: none;
  border-color: var(--text-color);
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.modal-button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'BIZ UDPGothic', sans-serif;
  transition: all var(--transition-speed);
}

.modal-submit {
  background: var(--text-color);
  color: white;
}

.modal-cancel {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-color);
}

.modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 既存のフッタースタイル */
.footer {
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-color);
}

.footer a {
  color: var(--text-color);
  text-decoration: none;
  transition: opacity var(--transition-speed);
}

.footer a:hover {
  opacity: 0.7;
} 