/* 全体のスタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Courier New', Courier, monospace; /* Typewriter風フォント */
}

/* ヘッダーのスタイル */
header {
  background-color: rgb(255, 255, 255); /* ヘッダーの背景色 */
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white; /* 背景色がないと下の要素と重なるときに文字が見えなくなる */
  z-index: 1000; /* 他の要素より前面に出す */
  
}

/* ヘッダー内のコンテナ */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer {
  text-align: center;
  font-size: 8pt;
  font-family: 'Courier New', Courier, monospace; /* typewriter風フォント */
  padding: 20px 0;
  color: #333;
}


/* ロゴ */
.logo img {
  width: 250px; /* ロゴの幅を大きく設定 */
  margin: 0 auto;
}
.logo {
  position: absolute;
  top: 20%; /* 縦方向の中央 */
  left: 50%;
  transform: translateX(-50%);
}

  /* ABOUTページの背景色 */
  .about {
      background-color: white; /* 背景色をホワイトに設定 */
  }



/* ハンバーガーメニュー */
.hamburger-menu {
  font-size: 30px;
  cursor: pointer;
  display: block;
}

/* ハンバーガーメニューのドロップダウン */
/* 初期状態（非表示） */
.hamburger-dropdown {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out; /* transitionを追加 */
}

/* アニメーションのキーフレーム */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
  /* アニメーション定義 */
  @keyframes fadeSlideIn {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
/* リスト全体の共通スタイル（すでにある場合は追加だけ） */
.hamburger-dropdown ul li {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeSlideIn 0.6s ease forwards;
}


/* 遅延をつけて順番に表示させる */
.hamburger-dropdown ul li:nth-child(1) {
  animation-delay: 0.1s;
}
.hamburger-dropdown ul li:nth-child(2) {
  animation-delay: 0.2s;
}
.hamburger-dropdown ul li:nth-child(3) {
  animation-delay: 0.3s;
}
.hamburger-dropdown ul li:nth-child(4) {
  animation-delay: 0.4s;
}
.hamburger-dropdown ul li:nth-child(5) {
  animation-delay: 0.5s;
}

/* 表示時に一度だけアニメーション */
.hamburger-dropdown.show {
  display: block;
  animation: dropdownFadeIn 0.8s ease-out forwards;
}


.hamburger-dropdown ul {
  list-style-type: none;
  padding: 10px 0;
  text-align: center;
}

.hamburger-dropdown ul li a {
  display: block;
  text-decoration: none;
  color: black;
  font-size: 18px;
  padding: 10px;
}
.hamburger-dropdown.open {
  display: block; /* .open クラスが追加された時に表示 */
}


.hamburger-dropdown ul li a:hover {
  color: #a0a0a0; /* 文字の色を薄いグレーに変更 */
}

/* ============================================
ヒーローセクション 共通
============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* 画像ラッパー */
.hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-image-link {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
}

.hero-image {
  width: 90%;
  height: 93%;
  object-fit: cover;
  transition: transform 0.3s ease;
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

/* PCサイズ：拡大中央表示 */
@media screen and (min-width: 769px) {
  .hero-image {
      transform: scale(1.04) !important; 
      transform-origin: center;
  }

  .hero2-image {
    transform: scale(0.8) translateY(20%);
    transform-origin: center top;
  }
}

/* モバイル表示（iPhone等） */
@media screen and (max-width: 768px) {
  .hero-image-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-image {
    width: auto;
    height: 100vh;
    object-fit: contain;
    transform: scale(0.9) !important; 
  }

  .hero .explore-btn,
  .hero1 .explore-btn,
  .hero2 .explore-btn {
    font-size: 14px;
  }
}

/* フェードインアニメーション */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
  ヒーローセクション1
============================================ */
.hero1 .explore-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  border: none;
  z-index: 2;
  transition: color 0.3s ease;
}

.hero1 .explore-btn:hover {
  color: rgb(0, 0, 0);
  transition: background-color 0.3s ease, color 0.3s ease;
}


/* ============================================
  ヒーローセクション2
============================================ */
.hero2 {
  display: flex;
  position: relative;
  text-align: center;
  background-color: rgb(255, 255, 255);
  align-items: center;
  justify-content: flex-start;
  padding: 6rem;
  box-sizing: border-box;
}

.hero2-wrapper {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 2vw;
  padding-left: 2vw;
  height: 100vh;
  position: relative;
}
@media screen and (min-width: 1024px) {
  .hero2-image {
    position: absolute;
    left: 0;
    width: auto;
    height: auto;
    max-height: calc(40vh * 1.3 * 1.2);
    margin: 0 0 2vw 2vw;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease-out;
  }
}


.hero2-image.show {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .hero2-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3vw;
  }

  .hero2-image {
    max-width: 70vw;
    margin: 0 auto; /* 水平中央寄せ */
    transform: scale(1.5) translate(0, -20%); /* 水平方向は変えず、垂直方向だけ調整 */
    transform-origin: top center; /* 上部中央を基準に拡大 */
    opacity: 0;
    animation: fadeInHero2 1.5s ease-out forwards;
    animation-delay: 0.5s;
    display: block; /* 画像をブロック要素にして中央寄せを有効に */
  }
  

  @keyframes fadeInHero2 {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
}



/* Exploreボタン：hero2 */
.explore-btn.hero2-style {
  position: absolute;
  top: 40%;
  left: 40%;
  color: #333;
  font-family: 'Courier New', Courier, monospace;
  font-size: 27px;
  font-weight: 400; /* フォントを細くする */
  border: none;
  opacity: 1;
  transform: translateY(50px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.explore-btn.hero2-style.show {
  opacity: 1;
  transform: translateY(0);
}

.explore-btn.hero2-style:hover {
  color: rgb(164, 164, 164);
}
@media (max-width: 768px) {
  .explore-btn.hero2-style {
    top: 70%;              /* モバイルで下の方に配置 */
    left: 13.5%;             /* 横方向で中央に配置 */
    transform: translateX(-50%); /* 中央揃え調整 */
    padding: 20px 10px;
    font-size: 26px;       /* モバイル向けに小さめの文字サイズ */
    text-align: center;    /* ボタン内のテキストを中央揃え */
  }
}





/* ============================================
  ナビ・テキストスタイル
============================================ */
@media (max-width: 768px) {
  #navbar {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .hero h1 {
    font-size: 35px;
  }

  .cta-button {
    font-size: 12px;
  }
}


/* タイプライタータイトル（左寄せ） */
.collection-title {
  padding: 40px 20px 20px 20px;
  font-size: 24px;
  font-family: 'Courier New', Courier, monospace;
  color: #333;
  text-align: left;
  margin-left: 10%;
}

/* タイプライター本体 */
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  left: 10%;
}

/* テキスト説明 */
.collection-note {
  display: block;
  line-height: 1.8;
  max-width: 80%;
}

/* 共通スタイル */
.collection-title-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 60px 20px;
  font-size: 12pt;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  text-align: right;
  margin-right: 10%;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 2.5s ease, transform 2.5s ease;
  position: relative;
}

/* 表示時のアニメーション */
.collection-title-right.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .collection-title {
    text-align: center;
    margin-left: 0;
    padding: 20px 10px;
  }

  .typewriter {
    left: 0;
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  .collection-note {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .collection-title-right {
    align-items: center;
    text-align: center;
    margin-right: 0;
    padding: 40px 20px;
  }
}


/* Aboutセクション */
.about-section {
  background-color: #ffffff; /* 背景色 */
  padding: 50px 20px;
  font-family: 'Courier New', Courier, monospace; /* Typewriterフォント */
}

.about-section .container {
  width: 80%;
  margin: 0 auto;
}

h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: normal; /* 太字を削除して細文字に */
}

h2 {
  font-size: 24px;
  margin-top: 20px;
  font-weight: normal; /* 太字を削除して細文字に */
}

.bio-text {
  font-size: 12pt;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  margin-bottom: 20px;
}

.awards ul {
  list-style: none;
  padding-left: 0;
}

.awards li {
  font-size: 12pt;
  margin-bottom: 10px;
  color: #333;
}


/* モバイル対応のためのメディアクエリ */
@media only screen and (max-width: 600px) {
  .header-container {
      flex-direction: column;
      align-items: flex-start;
  }

  .logo img {
      height: 40px;
  }

  nav ul {
      padding-left: 0;
  }

  nav ul li {
      display: block;
      margin-left: 0;
      margin-bottom: 10px;
  }

  .about-section {
      padding: 10px;
  }

  .content {
      padding: 0;
  }

  .story-text, .bio-text {
      font-size: 14px;
  }

  h1, h2 {
      font-size: 18px;
  }

  ul li {
      font-size: 14px;
  }
}


header {
  background-color: #fff;
  padding: 10px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
}

/* ナビゲーション */
#navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
}

#navbar ul li {
  padding: 10px;
}

#navbar ul li a {
  text-decoration: none;
  color: #000;
}

/* セクション全体 */
.portfolio-section {
  width: 100vw;
  height: 100vh;
  overflow-y: scroll; /* 縦スクロール */
  background-color: #fff;
  padding: 0;
  box-sizing: border-box;
  scroll-snap-type: none; /* スナップしない！ */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* コンテナは縦並び */
.portfolio-container {
  display: flex;
  flex-direction: column;
  width: 100%;  /* 画面の幅に合わせる */
  height: 100%; /* 画面の高さに合わせる */
  margin: 0; /* 余白なし */
}

/* 各アイテムをフルスクリーンに */
.portfolio-item {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  margin: 0; /* アイテム間の余白をなくす */
}

/* 通常は cover */
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PCのみ contain に変更 */
@media screen and (min-width: 1024px) {
  .portfolio-item img {
    object-fit: contain;
  }
}
/* スマホ用に微調整 */
@media (max-width: 768px) {
  .portfolio-container {
    display: flex;
    flex-direction: column; /* 画像を縦に並べる */
    gap: 0; /* アイテム間の間隔をなくす */
    padding: 0; /* 内側の余白をなくす */
  }

  .portfolio-item {
    margin: 0; /* アイテム間の余白をなくす */
    width: 100%; /* アイテムの幅を100%にする */
    height: auto; /* 高さを自動にして画像の比率を保つ */
  }

  .portfolio-item img {
    width: 100%;
    height: 100%; /* 親要素にぴったりフィットさせる */
    object-fit: cover; /* 画像が親要素に収まるように調整 */
    display: block;
  }
}





/* コレクションページの全体的なスタイル */
.collections-section {
  text-align: center;
  padding: 50px;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列のグリッド */
  gap: 20px;
  margin-top: 20px;
}

.collection-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.collection-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}



/* ベースのスタイル */
body {
  font-family: 'Courier New', Courier, monospace; /* Typewriter風のフォント */
  background-color: #ffffff; /* 背景色 */
  color: #333;
  margin: 0;
  padding-top: 100px; /* ヘッダーの高さ分スペースを空ける（調整可能） */
}

header {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  padding: 10px 20px;
  text-align: center;
}

header nav ul {
  list-style-type: none;
  padding: 0;
}

header nav ul li {
  display: inline-block;
  margin-right: 20px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}



footer {
  text-align: center;
  padding: 10px 0;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  font-size: 14px;
  margin-top: 40px;
}



.contact-section {
  text-align: left;
  padding: 60px 20px;
  background-color: white;
  margin-left: 10%; /* 全体を10%右に寄せる */
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 24px; /* Contact UsとInstagramの間のスペース */
}

.contact-heading {
  font-size: 18px;
  margin-bottom: 10px;
}

.contact-instagram {
  font-size: 14px;
  color: #000000;
  margin: 5vh 0 0 0; /* 上から5%の余白を追加 */
}

.contact-email {
  font-size: 14px;
  color: #000000;
  margin-top: 1.5em; /* Instagramの下に空き */
}

.contact-email a:hover,
.contact-instagram a:hover {
  text-decoration: none;
  color: #999; /* ホバー時に薄いグレーに */
}

.contact-email a,
.contact-instagram a {
  color: #000000; /* リンクカラーを黒に */
  text-decoration: none; /* 下線を消す */
}

.contact-email a:hover,
.contact-instagram a:hover {
  color: #888888; /* ホバー時に薄いグレーに */
}

.contact-profile {
  max-width: 900px;
  margin-top: 4em;
}

.contact-bio {
  font-size: 12pt;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

.contact-awards {
  list-style: none;
  padding: 0;
  margin: 3em 0 0;
}

.contact-awards li {
  font-size: 12pt;
  line-height: 1.6;
  margin-bottom: 0.75em;
}

/* タブレット以上のサイズに対応 */
@media (min-width: 768px) {
  .contact-heading {
      font-size: 24px;
  }

  .contact-email,
  .contact-instagram {
      font-size: 18px;
  }
}

@media (max-width: 767px) {
  .contact-profile {
    margin-top: 3em;
  }

  .contact-bio,
  .contact-awards li {
    font-size: 14px;
  }
}



/* リンクのデザイン */
a {
  text-decoration: none;  /* アンダーバーを削除 */
  color: black;           /* 文字色をブラックに設定 */
}

/* リンクにホバーしたときのデザイン */
a:hover {
  color: #333;            /* ホバー時の文字色を少し濃い色に変更 */
}




nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

@media (max-width: 768px) {
  body.design-development-page {
    padding-top: 70px;
  }

  body.design-development-page .portfolio-section {
    display: block;
    width: 100%;
    height: auto;
    min-height: calc(100vh - 70px);
    overflow: visible;
  }

  body.design-development-page .portfolio-container {
    height: auto;
  }

  body.design-development-page .portfolio-item img {
    height: auto;
    object-fit: contain;
  }
}

main.portfolio {
  padding: 20px;
}

/* ヒーローセクションのスタイル */
.hero-section {
  position: relative;
  width: 100%;
  height: 400px; /* セクションの高さ */
  margin-bottom: 30px;
}
