/*/* ===== ベース設定 (中略) ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #111111;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden; 
  animation: fadeInBody 0.8s ease-out;

  background-image: url('back2.png'); 
  background-size: cover; 
  background-attachment: fixed; 
  background-position: center center; 
  background-repeat: no-repeat; 
  background-color: #F8F7F5; 
}

/* ===== リンク / ヘッダー / ナビゲーション (中略) ===== */
a {
  text-decoration: none;
  color: #3A3330; /* ページ内のリンクのデフォルト色 */
  transition: color 0.25s;
}
a:hover {
  color: #111111; 
}

/* ★修正: ヘッダーのスタイル - ダークブラウン化 */
header {
  background: #3A3330; /* 濃い茶色 */
  color: #F5F2F0; 
  border-bottom: 1px solid #282422; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); 
  position: sticky;
  top: 0; z-index: 100;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  font-size: 1.2rem;
  color: #F5F2F0; 
  letter-spacing: 0.5px;
  margin: 0;
}
/* ヘッダー内のリンク設定 */
header a {
    color: #F5F2F0; 
}
header a:hover {
    color: #EEDDCC; /* ホバー色を明るい茶色系に */
}

nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav li a {
  font-weight: 500;
  color: #F5F2F0; 
  padding-bottom: 0.1rem;
  font-size: 0.9rem;
  position: relative;
}
nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%; height: 2px;
  background: #EEDDCC; 
  transition: width 0.22s ease;
}
nav li a:hover { color: #EEDDCC; } 
nav li a:hover::after { width: 100%; }

/* ===== メインコンテンツエリア (中略) ===== */
main {
  min-height: calc(100vh - 70px); 
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
section { opacity: 1; transform: none; transition: none; }
/* ★修正: 浮き上がりの表現を強調 (影を深く、ぼかしを広く) */
section.show { 
    opacity: 1; 
    transform: none; 
    padding: 3rem; 
    background: rgba(255, 255, 255, 0.95); 
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); 
    margin-bottom: 2.5rem !important; 
    transition: opacity 0.5s, transform 0.5s;
}

/* ★追加: 統一ボタンのスタイル (黒と茶色で高級感) */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: #3A3330; 
    color: #FFFFFF !important;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
}
.btn:hover {
    background-color: #111111; 
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}


/* ===== 1. メインビジュアルエリア (CSS Gridで斜め配置の土台) ===== */
.main-visual-area {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto 5rem; 
    padding: 0 2rem;
    min-height: 700px; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: 1fr 1fr; 
    gap: 0; 
}

/* 1-1. メインスライダー (左上に大きく配置、斜め) */
.hero-slider {
  grid-column: 1 / 2; 
  grid-row: 1 / 3; 
  width: 95%; 
  height: 650px; 
  position: relative; 
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); 
  border-radius: 12px;
  overflow: hidden;
  z-index: 10; 
  background: rgba(255, 255, 255, 0.9); 
  transform: rotate(-3deg); 
  transform-origin: top left; 
}
.swiper {
  width: 100%; 
  height: 100%; 
  margin: 0;
  border-radius: 0;
  box-shadow: none; 
}
.swiper-slide {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: flex-start; 
  padding: 1rem; 
  background: transparent; 
}
.swiper-slide a {
  display: block;
  width: 100%;
  height: 90%; 
}
.swiper-slide img {
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  transition: transform 0.35s ease; 
  display:block;
}
.swiper-slide img:hover { transform: scale(1.02); }

.product-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #3A3330;
  margin-top: 0.5rem; 
  text-align: center;
}


/* 1-2. 情報オーバーレイ (スライドの上に重ねる要素群) */
.info-overlay {
    grid-column: 2 / 3; 
    grid-row: 1 / 3; 
    position: relative; 
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 20; 
    
    top: 100px; 
    right: 0;
    margin-left: -50px; 
}

/* ブランド由来ブロック (右上に配置) */
.brand-story {
  height: auto; 
  min-height: 380px; 
  background: rgba(255, 255, 255, 0.9); 
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); 
  border-left: none; 
  
  transform: none; 

  width: calc(100% - 30px); 
  margin-bottom: auto; 
  
  display: flex;
  gap: 1.5rem;
  align-items: center; 
  overflow: hidden;
}

.brand-story-text {
    flex-basis: 60%; 
    transform: none; 
    height: 100%;
    padding-right: 0; 
}
.brand-story-image {
    flex-basis: 40%; 
    width: 150px; 
    height: 150px; 
    background: transparent; 
    border-radius: 8px;
    overflow: hidden;
    transform: none; 
    flex-shrink: 0;
}

.brand-story-image img {
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    border-radius: 8px;
    display: block;
}

.brand-story h2 {
  font-size: 1.5rem; 
  color: #5D4037; 
  margin-bottom: 0.8rem; 
}
.brand-story p {
  color: #3A3330;
  font-size: 0.95rem; 
  line-height: 1.6;
}

/* メンバーリストコンテナ (右下に小さく固定) */
.members-container {
  width: 350px; 
  background: rgba(255, 255, 255, 0.9); 
  padding: 1.5rem; 
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
  transform: rotate(1deg); 
  transform-origin: bottom right; 
  z-index: 30; 
  position: relative;
  margin-top: auto;
}
.members-container h3 {
    font-size: 1rem; 
    color: #111111;
    margin-bottom: 0.6rem; 
    text-align: left; 
}
.mini-member-list {
  display: flex;
  flex-wrap: nowrap; 
  justify-content: flex-start; 
  align-content: flex-start; 
  gap: 0.8rem; 
  padding: 0.5rem 0;
  overflow-x: auto; 
  padding-bottom: 0;
  -ms-overflow-style: none; 
  scrollbar-width: none; 
  position: relative; 
}
.mini-member-list::-webkit-scrollbar {
  display: none; 
}

/* メンバーアイテムの親要素に位置基準を設定 */
.mini-member {
  width: 70px; 
  text-align: center;
  flex-shrink: 0;
  position: relative; 
  cursor: pointer; 
}
.mini-member img { 
  width: 60px; 
  height: 60px; 
  border-radius: 50%; 
  object-fit: cover;
  margin-bottom: 0.2rem; 
  border: 1px solid #E0E0E0; 
  transition: transform 0.2s;
}
.mini-member:hover img {
    /* ホバー時のアクションを無効化しても、画像拡大は残すことでクリック可能な印象を維持 */
    transform: scale(1.1); 
}
.mini-member p {
  font-size: 0.75rem; 
  color: #3A3330;
  line-height: 1.1;
}

/*
★削除: メンバーポップアップ関連のCSS 
*/


/* ===== 2. 活動記録/製品リストのカードスタイル (activity.html 用) ===== */
.product-list {
    /* Gridレイアウトはactivity.htmlの <style> ブロックで上書きされる */
    display: flex; 
    justify-content: space-around;
    flex-wrap: wrap; 
    gap: 2rem;
    padding: 2rem;
}

.product-card {
    /* flex設定はactivity.htmlのGridスタイルにより調整される */
    flex: 0 0 calc(33.333% - 20px); 
    max-width: 300px; /* デフォルトサイズを維持 */
    
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; 
}
.product-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3); 
}
.product-card img {
    /* 画像サイズはactivity.htmlのスタイルで制御される */
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #EAE7E5;
    transition: filter 0.3s;
}

/* ★追加: ホバー時に画像を暗くしてポップアップを強調 */
.product-card:hover img {
    filter: brightness(0.4);
}

.product-card h3 {
    font-size: 1.1rem;
    color: #3A3330;
    margin-bottom: 0.5rem;
    display: none; 
}
.product-card p {
    font-size: 0.9rem;
    color: #555555;
    display: none; 
}

/* ★修正: 活動記録カード用 ポップアップスタイル (サイズ調整) */
.activity-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 100%; /* ★修正: カードにぴったり収める */
    height: 100%; /* ★修正: カードにぴったり収める */
    
    padding: 2rem; /* パディングを調整 */
    border-radius: 10px;
    
    /* やや透けた黒背景に白文字 */
    background: rgba(0, 0, 0, 0.85); 
    color: #FFFFFF;
    
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    font-size: 1.05rem; 
    line-height: 1.5;
    box-shadow: none; /* 吹き出しがカードに重なるため、影を削除 */
}

/* ★追加: ホバー時にポップアップを表示 */
.product-card:hover .activity-popup {
    visibility: visible;
    opacity: 1;
}

.activity-popup h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF; /* 小見出しの色を白色に */
    display: block !important;
}
.activity-popup p {
    font-size: 1rem;
    color: #F5F2F0;
    display: block !important;
}


/* ===== 3. メンバー紹介のレイアウト (members.html 用) ===== */
.member-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 2rem 0;
}
.member {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
    padding: 1rem;
    text-align: center;
    width: 150px; 
    transition: transform 0.2s, box-shadow 0.2s;
}
.member:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #5D4037; 
}
.member h3 {
    font-size: 1rem;
    color: #3A3330;
    margin-bottom: 0.2rem;
}
.member p {
    font-size: 0.8rem;
    color: #777777;
}


/* ===== 4. 製品詳細ページのレイアウト (lip, foundation, concealer用) ===== */
.product-detail-container {
    max-width: 700px; 
    margin: 3rem auto;
    padding: 3rem;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); 
    text-align: center;
}
.product-detail-container img {
    width: 60%;
    max-width: 350px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #EAE7E5;
}
.product-detail-container h2 {
    font-size: 1.8rem;
    color: #5D4037; 
    margin-bottom: 1rem;
}
.product-detail-container p {
    font-size: 1rem;
    color: #3A3330;
    margin: 1rem 0;
}


/* ===== フッター / アニメーション / スプラッシュ (中略) ===== */
/* ★修正: フッターのスタイル - ダークブラウン化 */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #3A3330; 
  color: #F5F2F0; 
  font-size: 0.9rem;
  border-top: 1px solid #282422; 
}
@keyframes fadeInBody { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* ★修正: スプラッシュスクリーンのデザイン */
#splash {
  position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 9999; 
  background-color: rgba(0, 0, 0, 0.85); 
  backdrop-filter: blur(5px); 
  text-align: center; opacity: 1; transition: opacity 0.7s ease-out;
}
#splash-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #EEDDCC; 
  font-family: 'Times New Roman', serif; 
  font-size: 6rem; 
  font-weight: 900; 
  letter-spacing: 8px; 
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8); 
  animation: logoSimpleFadeIn 1s ease-out forwards; opacity: 0;
}
@keyframes logoSimpleFadeIn {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
.is-loaded #splash { opacity: 0; visibility: hidden; pointer-events: none; }


/* ===== レスポンシブ対応 (中略) ===== */
@media (max-width: 1000px) {
  header { 
    padding: 1rem 1.5rem; 
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); 
  }
  
  /* モバイルでは縦積みに戻す */
  .main-visual-area {
    display: flex; 
    flex-direction: column;
    padding: 0 1.5rem;
    min-height: auto;
    margin: 1.5rem auto;
  }
  .hero-slider, .info-overlay {
    position: relative; 
    width: 100%;
    top: auto;
    left: auto;
    right: auto;
    transform: none; 
    margin: 0;
  }
  .hero-slider {
    height: 400px; 
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
  }
  .info-overlay {
    margin-top: -50px; 
    padding: 0 1rem;
    height: auto;
    flex-grow: 1; 
  }
  .brand-story {
    flex-grow: 0;
    margin-bottom: 1.5rem;
    width: 100%;
    transform: none; 
    display: block; 
    height: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
  }
  /* モバイル時のブランドストーリー画像調整 */
  .brand-story-text, .brand-story-image {
    width: 100%;
    flex-basis: auto;
    margin-bottom: 1rem;
    transform: none; 
  }
  .brand-story-image {
      width: 100%;
      height: 200px; 
  }
  .brand-story-image img {
      object-fit: contain; 
  }
  .members-container {
    position: relative; 
    width: 100%;
    bottom: auto;
    right: auto;
    transform: none; 
    margin-top: 1.5rem;
  }
  .mini-member-list {
    flex-wrap: nowrap;
    overflow-x: scroll; 
  }
  
  /* モバイル時のポップアップ調整 */
  /* ポップアップ機能削除により、このブロックは不要 */

  /* モバイル時のカードリスト調整 */
  .product-list {
      display: flex; /* flexに戻す */
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
      padding: 1rem;
  }
  .product-card {
      max-width: 90%;
      padding-bottom: 1rem;
      height: auto; /* モバイルでは高さ固定を解除 */
  }
  .product-card h3 {
    display: block !important;
  }
  .product-card p {
    display: block !important;
    margin-top: 0.5rem;
  }
  .activity-popup {
      visibility: hidden;
      opacity: 0;
  }
  .member-list {
      padding: 1rem 0;
      gap: 15px;
  }
  .product-detail-container {
      padding: 2rem 1.5rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
  }
}

@media (max-width: 600px) {
  .hero-slider { height: 300px; }
  .info-overlay { top: 20px; }
  .brand-story { padding: 1.5rem; }
  .brand-story h2 { font-size: 1.5rem; }
  #splash-logo { font-size: 4rem; letter-spacing: 5px; } 
}