
/* 共通フッターCSS追加 (style.cssの該当部分) */
footer {
  padding: 17px;
  background-color: #f5f5f5;
  text-align: left;
  font-size: 12px;
  font-family: Arial, sans-serif;
  border-top: 1px solid #ccc;
  line-height: 1.4;
  height: auto;
}

@media (max-width: 768px) {
  .image-gallery {
    column-count: 1 !important; /* 1列で表示 */
    column-gap: 0 !important;
  }

  .image-gallery a {
    display: block;
    width: 100%;
    margin-bottom: 16px;
  }

  .image-gallery img {
    width: 100%;
    height: auto;
  }
}


/* ヘッダー構成：左上ロゴ／右上リンク＋言語切替 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  height: auto;
}

header .logo img {
  height: 70px;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.language-toggle {
  margin-left: 20px;
  font-size: 14px;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.language-toggle span {
  margin-left: 10px;
  color: #333;
  text-decoration: underline;
}

/* 画像ギャラリースタイル（メーソンリー風） */

.image-gallery {
  column-count: 3;
  column-gap: 16px;
  padding: 20px;
}

.image-gallery img {
  width: 100%;
  margin-bottom: 16px;
  cursor: zoom-in;
  display: block;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 拡大表示オーバーレイ */
#preview {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#preview img {
  max-width: 90%;
  max-height: 90%;
}
.preview-hidden {
  display: none;
}



@media (max-width: 768px) {
  .image-gallery {
    column-count: 1 !important; /* 1列で表示 */
    column-gap: 0 !important;
  }

  .image-gallery a {
    display: block;
    width: 100%;
    margin-bottom: 16px;
  }

  .image-gallery img {
    width: 100%;
    height: auto;
  }
}


/* 作品テキストブロックのスタイル調整 */
.project-description {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 14px;
  line-height: 1.2;
  padding: 20px;
}

/* 拡大表示用の単一画像スタイル（別ページで表示される前提） */
.fullscreen-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* プロフィール写真のスタイル */
.profile-photo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 150px; /* 必要に応じてここを調整 */
  margin-top: 20px;
  border-radius: 4px;
  display: block;
}

.image-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.image-container img {
  display: block;
  transition: opacity 0.3s ease;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
  font-weight: bold;
  font-family: 'Arial', sans-serif;  /* ← 任意のフォントに変更可能 */
  letter-spacing: 1px;               /* ← 文字の間隔 */
  line-height: 1.4;                  /* ← 行間 */
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.image-container:hover img {
  opacity: 0.5;
}

.image-container:hover .overlay-text {
  opacity: 1;
}
/* 共通スタイル */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo img {
  height: 40px;
}

/* nav-wrapper 全体のスタイル */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-top: 10px;
  }

  .nav-links {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    width: 100%;
  }

  .language-toggle {
    margin-top: 6px;
  }

  .logo {
    align-self: flex-start;
  }
}
