




/* メインコンテンツを上下左右中央に配置 */

  

  
  

/* プロジェクトコンテナ - 親要素の設定（左右余白はヘッダーと同じ22px） */
.project-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3%;
  width: 100%;
  box-sizing: border-box;
  padding-left: 22px;
  padding-right: 22px;
  /* 重要: これがないと右側のテキスト列が画像と同じ高さまで伸びてしまい、動く隙間がなくなります */
  align-items: start;
  position: relative;
}

/* 画像列を上端揃えにし、列の高さは内容に合わせる（写真の下の白余白を抑える） */
.project-container .project-images {
  align-self: start;
  min-height: 0; /* グリッドセルの余計な伸びを防ぐ */
}

.project-images {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-images .vertical-image-list {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  border: none;
}

.project-images .vertical-image-list li {
  width: 100%;
  margin-bottom: 0; /* 写真間の白い線を出さない（余白なし） */
  background: transparent;
  border: none;
  outline: none;
  animation: subpageImageFadeInFromTop 0.7s ease-out both;
}

/* サブページ画像：上からふわっと出現（index と同じ） */
@keyframes subpageImageFadeInFromTop {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 上の画像から順に少しずつ遅らせて表示 */
.project-images .vertical-image-list li:nth-child(1) { animation-delay: 0.05s; }
.project-images .vertical-image-list li:nth-child(2) { animation-delay: 0.1s; }
.project-images .vertical-image-list li:nth-child(3) { animation-delay: 0.15s; }
.project-images .vertical-image-list li:nth-child(4) { animation-delay: 0.2s; }
.project-images .vertical-image-list li:nth-child(5) { animation-delay: 0.25s; }
.project-images .vertical-image-list li:nth-child(6) { animation-delay: 0.3s; }
.project-images .vertical-image-list li:nth-child(7) { animation-delay: 0.35s; }
.project-images .vertical-image-list li:nth-child(8) { animation-delay: 0.4s; }
.project-images .vertical-image-list li:nth-child(9) { animation-delay: 0.45s; }
.project-images .vertical-image-list li:nth-child(10) { animation-delay: 0.5s; }
.project-images .vertical-image-list li:nth-child(11) { animation-delay: 0.55s; }
.project-images .vertical-image-list li:nth-child(12) { animation-delay: 0.6s; }
.project-images .vertical-image-list li:nth-child(13) { animation-delay: 0.65s; }
.project-images .vertical-image-list li:nth-child(14) { animation-delay: 0.7s; }
.project-images .vertical-image-list li:nth-child(15) { animation-delay: 0.75s; }
.project-images .vertical-image-list li:nth-child(16) { animation-delay: 0.8s; }
.project-images .vertical-image-list li:nth-child(17) { animation-delay: 0.85s; }
.project-images .vertical-image-list li:nth-child(18) { animation-delay: 0.9s; }
.project-images .vertical-image-list li:nth-child(19) { animation-delay: 0.95s; }
.project-images .vertical-image-list li:nth-child(20) { animation-delay: 1s; }
.project-images .vertical-image-list li:nth-child(21) { animation-delay: 1.05s; }
.project-images .vertical-image-list li:nth-child(22) { animation-delay: 1.1s; }
.project-images .vertical-image-list li:nth-child(23) { animation-delay: 1.15s; }
.project-images .vertical-image-list li:nth-child(24) { animation-delay: 1.2s; }
.project-images .vertical-image-list li:nth-child(25) { animation-delay: 1.25s; }

/* 最後の写真の下に白い余白が出ないように */
.project-images .vertical-image-list li:last-child {
  margin-bottom: 0;
}

.project-images .vertical-image-list img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
  background: transparent;
  line-height: 0;
  font-size: 0;
  border: none;   /* 写真間の白線を消す */
  outline: none;
}

/* YouTube動画のスタイル */
.project-images .vertical-image-list li.youtube-video {
  width: 100%;
  margin-bottom: 12px; /* 写真-写真間のmarginと同じ */
}

.project-images .vertical-image-list li.youtube-video > div {
  width: 100%;
}

/* 右側のテキストブロック（追従設定） */
.project-text {
  /* Safari用の記述 */
  position: -webkit-sticky;
  position: sticky;

  /* 固定ヘッダーに被らないよう、上から少し余裕を持たせます */
  top: 100px;

  /* 重要: 高さを中身に合わせることで、スクロールする余地を作ります */
  height: fit-content;

  width: 100%;
  text-align: left;

  /* 他の要素に埋もれないよう設定 */
  z-index: 10;
}

.project-text .title {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 12px;
  margin-top: 0;
}

/* 英語テキスト - 統一スタイル（aboutme.html、0_temple.html、1.htmlなどすべてのページで使用） */
.project-text p,
.project-details p {
  margin: 6px 0;
  line-height: 1.3;
  font-size: 13px; /* 16pxから3px小さく */
}

/* aboutme 経歴ブロック（既存 .project-details p のフォント・行間を継承し色のみグレーに） */
.project-details .career-entry {
  margin: 14px 0;
  line-height: 1.5;
  font-size: 13px;
  color: #6b6b6b;
}

/* リンクが埋め込まれた文字は青色で統一 */
.project-details a,
.project-text a,
.link-with-arrow {
  color: #4a6fa5;
  text-decoration: none;
}
.project-details a:hover,
.project-text a:hover,
.link-with-arrow:hover {
  text-decoration: underline;
}

/* リンク未設定（準備中）用：グレーアウト・クリック不可 */
.link-disabled {
  color: #999;
  cursor: default;
  pointer-events: none;
}

/* achievementsのスタイル */
.project-details .achievements {
  margin: 6px 0;
  line-height: 1.3;
  font-size: 13px;
}

/* achievementsが空の場合は非表示 */
.project-details .achievements:empty,
.project-details .achievements[style*="display: none"] {
  display: none !important;
}

/* 属性（Member / Design category / Role）と説明文の間に区切り線 */
.project-details .project-attributes-divider {
  width: 100%;
  margin: 14px 0 10px;
  border: 0;
  border-top: 1px solid #d3d3d3;
}

/* 詳しい説明のスタイル */
.project-details .detailed-description {
  margin-top: 12px;
  line-height: 1.6;
  font-size: 13px;
}

/* 詳しい説明が空の場合は非表示 */
.project-details .detailed-description:empty,
.project-details .detailed-description[style*="display: none"] {
  display: none !important;
}

/* 簡単な説明が空の場合は非表示 */
.project-details .short-description:empty {
  display: none;
}

/* 日本語テキスト - 統一スタイル（aboutme.html、0_temple.html、1.htmlなどすべてのページで使用） */
/* 日本語ブロック（属性の直下に配置時）の下余白 */
.project-details .project-details-japanese {
  margin-bottom: 14px;
}

.project-details-japanese p,
.japanese-text {
  margin: 6px 0;
  line-height: 1.6;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", "游ゴシック", "メイリオ", sans-serif;
  font-size: 11px; /* 11pxに変更 */
  font-weight: 320; /* font-weightを320に設定 */
}

main {
  justify-content: flex-start;
  padding-top: 20vh; /* project同様 */
}

/* ========== aboutme 専用: 他サブページと同じ 左2/3写真・右1/3テキスト ========== */
.aboutme-page .project-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  max-width: 100%;
}
.aboutme-page .project-images {
  width: 100%;
}
.aboutme-page .project-images .vertical-image-list {
  margin: 0;
  padding: 0;
}
.aboutme-page .project-images .vertical-image-list li {
  margin-bottom: 0;
}
.aboutme-page .project-images .vertical-image-list li:last-child {
  margin-bottom: 0;
}
.aboutme-page .project-text {
  width: 100%;
}

  
  /* サブページ専用: 縦1列の画像リスト */
  .vertical-image-list {
    list-style: none;
    padding: 0;
    margin: 50px auto 20px;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
  }
  
  .vertical-image-list li {
    margin-bottom: 0; /* 写真間の白線を出さない */
    width: 70%;
    background: transparent;
    border: none;
    outline: none;
  }
  
  .vertical-image-list img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    background: transparent;
    line-height: 0;
    font-size: 0;
    border: none;
    outline: none;
  }









/* Aboutセクションをグリッドで配置 */
.about-section {
  display: grid; /* グリッドレイアウトを使用 */
  grid-template-columns: 1fr 1fr; /* 2カラムのグリッド */
  gap: 50px; /* 各グリッドアイテムの間の余白 */
  margin: 0 auto; /* 中央揃え */
  padding: 0 10%; /* 左右に10%の余白 */
  align-items: start; /* 上端揃え */
}

/* 文章部分 */
.about-text {
  grid-column: 1; /* 左カラムに配置 */
  font-size: 16px;
  line-height: 1.8; /* 行間を調整して読みやすく */
  text-align: left; /* 左揃え */
  display: flex;
  flex-direction: column; /* 縦方向に揃える */
  gap: 10px; /* 段落間の余白 */
}

/* 画像部分 */
.about-images {
  grid-column: 2; /* 右カラムに配置 */
  display: flex; /* 画像を縦に並べる */
  flex-direction: column; /* 縦並び */
  gap: 10px; /* 各画像の間に隙間 */
}

.about-images img {
  width: 100%; /* 画像の幅を親要素に合わせる */
  height: auto; /* アスペクト比を維持 */
  object-fit: cover; /* 必要に応じて拡大縮小 */
}

/* about-section2 のスタイル */
.about-section2 {
  width: 80%; /* 幅を全体の80%に設定 */
  margin: 30px auto; /* 上下に間隔を追加して中央揃え */
  text-align: center;
}

.about-section2 img {
  width: 100%; /* 画像の幅を親要素に合わせる */
  height: auto;
  display: block;
  margin: 0 auto;
}


/* about-section3 のスタイル */
.about-section3 {
  width: 40%; /* 幅を全体の80%に設定 */
  margin: 20px auto; /* 上下に間隔を追加して中央揃え */
  text-align: center;
}

.about-section3 img {
  width: 20%; /* 画像の幅を親要素に合わせる */
  height: auto;
  display: block;
  margin: 0 auto;
}









  
  
  /* レスポンシブ対応 */
  @media (max-width: 900px) {
  }


  
  @media (max-width: 640px) {
    .project-container {
      grid-template-columns: 1fr; /* レスポンシブ時は1列表示（縦並び） */
      padding-left: 22px;
      padding-right: 22px;
    }
    /* aboutme も他サブページ同様に画像→テキストの縦並び */
    .aboutme-page .project-container {
      grid-template-columns: 1fr;
    }
    .aboutme-page .project-images {
      order: 1;
    }
    .aboutme-page .project-text {
      order: 2;
    }

    .vertical-image-list li {
      width: 90%; /* 幅を90%に拡大 */
    }
    .title {
      font-size: 1.6em;
    }
    body {
      font-size: 14px;
    }
    /* ヘッダー関連のスタイルはstylesheet.cssで統一管理 */
    .image-list li {
      width: 100%; 
      max-width: 1200px; /* 必要に応じて最大幅を設定 */
      /* width: 80%; 1列表示に変更 */
    }

      /* about-section3 のスタイル */
  .about-section3 {
    width: 60%; /* 幅を全体の80%に設定 */
    margin: 20px auto; /* 上下に間隔を追加して中央揃え */
    text-align: center;
  }

  .about-section3 img {
    width: 20%; /* 画像の幅を親要素に合わせる */
    height: auto;
    display: block;
    margin: 0 auto;
  }





    
  }


  
  @media (max-width: 400px) {
    .vertical-image-list li {
      width: 100%; /* 幅を100%に拡大 */
    }
    .title{
      font-size: 18px; /* フォントサイズを少し小さく */
    }

    body {
      font-size: 12px;
    }
  }

/* ========== 縦並び写真の白線を確実に消す（全ルールを上書き） ========== */
main .project-container .project-images .vertical-image-list {
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px !important; /* 縦に並んだ画像の間を8px開ける */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
main .project-container .project-images .vertical-image-list li {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
main .project-container .project-images .vertical-image-list img {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  display: block !important;
  vertical-align: top !important;
  line-height: 0 !important;
  font-size: 0 !important;
  max-width: 100%;
  height: auto;
  object-fit: fill;
}

/* 1.html 等サブページのフッター：上余白20px、下余白2px */
.footer {
  margin-top: 20px;
  margin-bottom: 2px;
}

/* 一番上に戻る（円形＋白矢印）・著作権より上に配置・右揃え */
.back-to-top-wrap {
  text-align: right;
  margin: 0;
  margin-top: 64px; /* 24px + 40px */
  margin-right: 22px;
  margin-bottom: 0;
  padding: 0;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8e8e8; /* さらに薄いグレー */
  text-decoration: none;
  transition: background 0.2s ease;
  line-height: 0;
}
.back-to-top:hover {
  background: #d0d0d0;
}
/* 矢印（白） */
.back-to-top-arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #ffffff;
  margin-bottom: 2px; /* 視覚的に中央に */
}

