/* デバック用 */
/* * {
  outline: 1px solid red; 
  
} */



/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: transparent;
  box-sizing: border-box;
}

.header-logo {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: #f5f5f5;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: opacity 0.25s ease;
}

.header-logo::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  opacity: 0.85;
}

.header-logo:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-link {
  font-size: 12px;
  font-weight: 400;
  color: #f5f5f5;
  text-decoration: none;
  position: relative;
  transition: opacity 0.25s ease;
}

.header-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.header-link:hover {
  opacity: 0.85;
}

.header-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #f5f5f5;
  border-radius: 1px;
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(8px);
}

.menu-overlay.is-open {
  display: flex;
}

.menu-overlay-link {
  font-size: 14px;
  font-weight: 400;
  color: #f5f5f5;
  text-decoration: none;
  position: relative;
  transition: opacity 0.25s ease;
}

.menu-overlay-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 80%;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.menu-overlay-link:hover {
  opacity: 0.85;
}

.menu-overlay-link:hover::after {
  transform: translateX(-50%) scaleX(1);
  transform-origin: center;
}

  
  
/* 全体のフォント設定 */
body {
  cursor: none;
  overflow-x: hidden;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
  background-color: #ffffff;
  color: #f5f5f5;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

body.page-enter {
  animation: bgReveal 1s ease-out forwards, pageEnter 0.5s ease-out 0.6s forwards;
}

/* 背景が白から黒へ変わるアニメーション（初回ロード時） */
@keyframes bgReveal {
  from {
    background-color: #ffffff;
  }
  to {
    background-color: #121212;
  }
}

body.page-leaving {
  opacity: 0;
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 円形・ガラス風半透明のカスタムカーソル（縁の線なし） */
.cursor-circle {
  position: fixed;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(1);
  will-change: transform;
  transition: transform 0.12s ease-out;
}

.cursor-circle.is-pressed {
  transform: translate(-50%, -50%) scale(0.7);
}

main {
  padding-top: 72px;
}

/* ホーム：写真セクション（A.htmlと同じく幅80%・中央寄せ、残りを3等分、画像間14px） */
.photo-section {
  width: 80%;
  margin: 0 auto;
  padding-top: 80px;
  box-sizing: border-box;
}

.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.photo-list li {
  width: calc((100% - 68px) / 3);
  display: flex;
  flex-direction: column;
}

.photo-list .image-link {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e5e5;
  position: relative;
}

.photo-list .image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.photo-list .image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #e5e5e5;
  position: relative;
  z-index: 1;
}

@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.photo-list .caption {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: #f5f5f5;
  text-align: left;
  line-height: 1.5;
  flex-shrink: 0;
}

.photo-list .caption-year {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #a0a0a0;
  text-align: left;
  flex-shrink: 0;
}

.title {
  font-size: 20px;/* !!!!!!!!!!!!!!!!! */
  margin-left: auto;
  margin-right: auto;
  width: 80%; /* 通常時は幅70% */
  /* margin-left: 20%; */
}
.about-text {
  font-size: 15px;/* !!!!!!!!!!!!!!! */
  line-height: 1.5;/* 行間 */
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  width: 80%; /* 通常時は幅70% */
}
/* 共通フッタースタイル（著作権10pxに統一） */
.footer {
  text-align: center;
  margin-top: 160px;
  padding: 0;
  font-size: 10px;
  color: #a0a0a0;
}

  /* レスポンシブ */
  @media (max-width: 900px) {
    .photo-list li {
      width: calc((100% - 34px) / 2);
    }
  }
  
  @media (max-width: 600px) {
    .header-nav {
      display: none;
    }
    .hamburger {
      display: flex;
    }
    .photo-section {
      padding-top: 20px;
    }
    .photo-list li {
      width: 100%;
    }
    .photo-list .caption {
      margin-top: 6px;
    }
    .footer {
      text-align: center;
      margin-top: 120px;
      padding: 0;
      font-size: 10px;
      color: #a0a0a0;
    }
  }

  


  
  

  



/* ____________________________________________________________________________________ */

 /* オープニングアニメーションのスタイル */
.opening-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #121212;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  z-index: 9999;
  animation: fadeIn 10s ease-out forwards;
}

.opening-animation h1 {
  color: #f5f5f5;
  font-size: 1.2em;
  font-weight: bold;
  opacity: 0;
  animation: fadeInText 2.2s ease-out 0.3s forwards;
}

/* 背景がダークのままフェードアウト */
@keyframes fadeIn {
  0% {
    opacity: 1;
    background-color: #121212;
  }
  50% {
    opacity: 0.7;
    background-color: #121212;
  }
  100% {
    opacity: 0;
    background-color: #121212;
    display: none; /* アニメーション終了後に非表示 */
  }
}

/* テキストがボワッと現れるフェードイン */
@keyframes fadeInText {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

