@font-face {
    font-family: 'maka';
    src: url('fonts/maka.ttf') format('truetype'); /* フォントのパスを指定 */
}

@font-face {
    font-family: 'NotoSerifJP';
    src: url('fonts/NotoSerifJP-Regular.ttf') format('truetype'); /* Noto Serif JPのフォントパスを指定 */
}

html, body {
    font-family: 'maka', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;  /* 横スクロールを防ぐ */
    font-size: 10px; /* より小さな文字サイズ */
}


/* ------------------<div class="background">------------------ */

/* ------------------ PC版 ------------------ */
@media screen and (min-width: 768px) {
    .background {
        background-image: url('photoxx/image-pc.jpg'); /* PC版背景画像 */
        background-size: cover; /* 背景画像を要素全体に拡大縮小 */
        background-position: center; /* 画像を中央に配置 */
        background-attachment: fixed; /* スクロールしても背景を固定 */
    }
}

/* ------------------ スマホ版 ------------------ */
@media screen and (max-width: 767px) {
    .background {
        background-image: url('photoxx/image-mobile.jpg'); /* スマホ版背景画像 */
        background-size: cover; /* 背景画像を要素全体に拡大縮小 */
        background-position: center; /* 画像を中央に配置 */
        background-attachment: fixed; /* スクロールしても背景を固定 */
    }
}
/* ------------------<div class="background">------------------ */


/* ------------------<div class="mainpage">------------------ */
        .mainpage {
            max-width: 600px; /* 最大幅を600pxに制限 */
            margin: 0px auto; /* 中央寄せするためのマージン */
            padding: 0px;
            top: 0; /* 親要素の上端に合わせる */

            z-index: 1; /* ビデオより手前に配置 */
            text-align: center; /* 中央揃え */
            padding: 0px; /* 内側の余白 */
            width: 100%; /* 親要素の幅の100%に設定 */
        }
/* ------------------<div class="mainpage">------------------ */


/* ------------------<div class="container">------------------ */
.container {
    margin: 0 auto 0px; /* 上は0px、下は20px、水平方向は自動で中央寄せ */
    padding: 20px 20px;
    background-color: rgba(244, 244, 244, 0.8); /* 透明度を設定した背景色 */
    text-align: left; /* 文字を左寄せに設定 */
}
/* ------------------<div class="container">------------------ */

/* ------------------<div class="top-image-container">------------------ */
.top-image-container {
    display: flex;
    justify-content: center; /* 水平方向に画像を中央寄せ */
    align-items: center; /* 垂直方向に画像を中央寄せ */
    width: 100%; /* 横幅を親要素の100%に設定 */
    height: auto; /* 縦の高さを自動に設定 */
}
        .top-image-container img {
            max-width: 100%; /* 画像の最大幅をdivに合わせる */
            max-height: 100%; /* 画像の最大高さをdivに合わせる */
        }
/* ------------------<div class="top-image-container">------------------ */


/* ------------------<div class="cabtrey-image-container">------------------ */
.cabtrey-image-container {
    display: flex;
    justify-content: center; /* 水平方向に画像を中央寄せ */
    align-items: center; /* 垂直方向に画像を中央寄せ */
    width: 100%; /* 横幅を親要素の100%に設定 */
    height: auto; /* 縦の高さを自動に設定 */
}
        .cabtrey-image-container img {
            max-width: 100%; /* 画像の最大幅をdivに合わせる */
            max-height: 100%; /* 画像の最大高さをdivに合わせる */
        }

.cabtrey-image-container-v2 {
    display: flex;
    justify-content: left; /* 水平方向に画像を中央寄せ */
    align-items: center; /* 垂直方向に画像を中央寄せ */
    width: 50%; /* 横幅を親要素の100%に設定 */
    max-width: 200px;
    height: auto; /* 縦の高さを自動に設定 */
}
        .cabtrey-image-container-v2 img {
            max-width: 100%; /* 画像の最大幅をdivに合わせる */
            max-height: 100%; /* 画像の最大高さをdivに合わせる */
        }
/* ------------------<div class="cabtrey-image-container">------------------ */



/* ------------------<div class="mainpage">------------------ */

.cabtrey-description {
    font-family: NotoSerifJP, sans-serif;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    max-width: 600px;
    margin: 20px auto;
}

.cabtrey-description h2 {
    font-size: 1.5em;
    color: #333;
}

.cabtrey-description p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}



/* ------------------<div class="mainpage">------------------ */

/* ------------------導入部------------------ */
section {
    margin-bottom: 20px; /* マージンを調整 */
}

section h2 {
    font-size: 12px; /* より小さな文字サイズ */
    border-bottom: 1px solid #333;
}

section h3 {
    font-size: 10px; /* 小見出しの文字サイズ */
    margin-top: 0; /* 上のマージンをリセット */
    margin-bottom: 0; /* 下のマージンをリセット */
}

ul {
    list-style-type: none;
    padding: 0;
}

.list_schedule li {
    margin-bottom: 4px; /* マージンを調整 */
    padding: 0px; /* パディングを調整 */
    border-radius: 3px; /* 角を少し丸める */
    font-size: 0.8em; /* より小さな文字サイズ */
}


.memo li {
    margin-bottom: 0px; /* マージンを調整 */
    padding: 1px; /* パディングを調整 */
    border-radius: 3px; /* 角を少し丸める */
    font-size: 0.7em; /* より小さな文字サイズ */
}

.sweet a,
.links a,
.recipes a,
.photo-sharing a {
    display: block;
    margin-bottom: 3px; /* マージンを調整 */
    font-size: 0.9em; /* より小さな文字サイズ */
    color: #AAAAAA;
    text-decoration: none;
}










/* ------------------導入部------------------ */












/* ------------------------------------フッター------------------------------------ */
    .gray-line {
        height: 0.5px; /* ラインの高さ */
        width: 100%; /* ラインの幅 */
        background-color: gray; /* ラインの色 */
        margin: 30px 0; /* 上下の余白 */
    }

.footer-cabtrey {
    height: 20vh; /* ラインの高さ */
    width: 100%; /* ラインの幅 */
    margin: 50px 0; /* 上下の余白 */
    display: flex; /* Flexbox を使用 */
    justify-content: center; /* 横方向の中央寄せ */
    align-items: center; /* 縦方向の中央寄せ */
    flex-direction: column; /* 子要素を縦に並べる */
    font-family: NotoSerifJP, sans-serif;
}

    .footer-cabtrey h2 {
      font-size: 24px;
      margin: 2px 0px;
    }
.footer-cabtrey h3 {
  font-size: 16px;
  margin-top: 4px; /* 上側のマージンを2pxに設定 */
  margin-bottom: 4px; /* 下側のマージンを5pxに設定 */
  color: gray; /* 文字色をグレーにする */
}
.footer-cabtrey h4 {
  font-size: 10px;
  margin-top: 4px; /* 上側のマージンを2pxに設定 */
  margin-bottom: 4px; /* 下側のマージンを5pxに設定 */
  color: gray; /* 文字色をグレーにする */
}

.footer-cabtrey h6 {
  font-size: 8px;
  margin-top: 4px; /* 上側のマージンを2pxに設定 */
  margin-bottom: 4px; /* 下側のマージンを5pxに設定 */
  color: gray; /* 文字色をグレーにする */
}

.footer-cabtrey-extra {
    margin: 4px 0; /* 上下の余白 */
    display: flex; /* Flexbox を使用 */
    justify-content: center; /* 横方向の中央寄せ */
    align-items: center; /* 縦方向の中央寄せ */
    flex-direction: column; /* 子要素を縦に並べる */
    font-family: NotoSerifJP, sans-serif;
}

.footer-cabtrey-extra p {
  font-size: 8px;
  margin-top: 2px; /* 上側のマージンを2pxに設定 */
  margin-bottom: 2px; /* 下側のマージンを5pxに設定 */
  color: gray; /* 文字色をグレーにする */
}

/* ------------------------------------フッター------------------------------------ */





/* ------------------共通スタイル------------------ */
.common-content {
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 10px; /* 角を丸くする */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 軽い影をつける */
    max-width: 800px; /* 最大幅を指定 */
    margin: 20px auto; /* 上下にマージンをつけ、中央寄せ */
}

.common-content h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}





.common-members-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 5px;
    list-style-type: none;
    padding: 0;
    margin: 5px;
}

.common-members-list-div {
    margin: 0px;
    padding: 0px;
    background-color: transparent;
    text-align: center;
}

.common-members-list-div h2 {
    font-size: 24px;
    color: #333;
}

/* 各メンバーのカードスタイル */
.common-member-item {
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* プロフィール画像のスタイル */
.common-member-item img {
    border-radius: 50%; /* 円形にする */
    width: 100%; /* 親要素の100%の幅 */
    height: auto; /* 高さを横幅に合わせる（自動調整） */
    aspect-ratio: 1/1; /* 正方形を維持 */
    object-fit: cover; /* 画像を要素にフィットさせる */
    margin-bottom: 0px;
}

/* メンバー情報のスタイル */
.common-member-info .name {
    font-size: 12px;
    color: #333;
    margin: 3px 0;
}

.common-member-info .id {
    font-size: 8px;
    color: #666;
    margin: 2px 0;
}

.common-member-info .bio {
    font-size: 5px;
    color: #999;
}

.common-member-info div {
    margin: 5px 0;
}

.common-file-edit-modal {
    background-color: rgba(245, 245, 220, 0.4); /* 半透明のベージュ */
    padding: 5px 5px;
    border-radius: 15px;
}

.common-file-select {
    max-width: 200px; /* 最大幅を200pxに設定 */
}

.common-button {
    display: inline-flex;
    align-items: center;
    margin: 2px 2px;
    padding: 4px 8px;
    font-size: 8px;
    color: #808080;
    background-color: transparent;
    border: 1px solid #808080;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
/* ------------------共通スタイル------------------ */








/* ------------------ 予定表02 ------------------ */

.Pepper02-cabtrey-description {
    font-family: NotoSerifJP, sans-serif;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: rgba(249, 249, 249, 0.8);
    max-width: 600px;
    margin: 20px auto;
  cursor: pointer; /* クリック可能 */
  transition: background-color 0.3s ease; /* クリック時の背景色変更にアニメーションを追加 */
}

.Pepper-cabtrey-description:hover {
  background-color: #f0f0f0; /* 背景色変更 (必要に応じて変更) */
}

.Pepper02-cabtrey-description h2 {
    font-size: 1.5em;
    color: #333;
    margin: 4 0;
}

.Pepper02-cabtrey-description p {
    font-size: 0.8em;
    color: #444;
    line-height: 1.6;
}

#Pepper02-edit-modal {
  pointer-events: none; /* クリックを無効化 */
  opacity: 0; /* 初期状態は透明 */
  max-width: 600px; /* 最大幅を600pxに制限 */
  position: fixed;
  top: 50%; /* 親要素の中央に配置 */
  left: 50%; /* 親要素の中央に配置 */
  width: 95%; /* 親要素の幅の80% */
  height: 95%; /* 親要素の高さの80% */
  transform: translate(-50%, -50%); /* 画面中央に配置 */
  background-color: rgba(12, 12, 36, 0.8); /* 半透明の背景 */
  text-align: center;
  z-index: 10; /* 他の要素より手前に表示 */
  color: #DDDDDD;
  border-radius: 60px; /* 角を丸くする */
  transition: opacity 0.5s ease; /* アニメーションを追加 */
  overflow: auto; /* コンテンツがオーバーレイの外にはみ出た場合にスクロールする */
}

#Pepper02-edit-modal-content {
  width: 80%;
  height: 100%;
  padding: 20px 0px;
  margin: 30px auto; /* 水平方向に中央寄せ */
}

#Pepper02-edit-modal.active {
  opacity: 1; /* 表示時に不透明にする */
  pointer-events: auto; /* クリックを有効化 */
}


#Pepper02-edit-modal h2 {
  font-size: 24px;
  margin: 2px 0px;
  font-family: 'maka', sans-serif; /* Makaフォントを適用 */
}

#Pepper02-edit-modal textarea {
  font-size: 10px;
  width: 95%;
  height: 400px;
  margin: 20px 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  line-height: 1.2; /* 行間を広げる */
}

/* モーダルのボタンスタイル */
#Pepper02-edit-modal button {
    display: inline-flex;
    align-items: center;
    margin: 10px 5px;
    padding: 5px 15px;
    font-size: 14px;
    color: #BBBBBB;
    background-color: transparent;
    border: 2px solid #BBBBBB;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

#Pepper02-edit-modal button:hover {
  background-color: #0056b3;
}
/* ------------------ 予定表02 ------------------ */

/* Text Filesセクション */
.text-common-file-section {
  background-color: rgba(249, 249, 249, 0.3);
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none; /* 初期状態は非表示 */
  position: relative;
}


.edit-button {
    display: inline-flex;
    align-items: center;
    margin: 2px 2px;
    padding: 4px 8px;
    font-size: 8px;
    color: #808080;
    background-color: transparent;
    border: 1px solid #808080;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}



/* テキストエリア */
#yuppenjobs-text-editor {
  background-color: rgba(240, 240, 240, 0.9); /* 背景色（透明度付き） */
  border: 2px solid #ccc; /* ボーダー */
  border-radius: 8px; /* 角丸 */
  padding: 12px; /* 内側の余白 */
  font-size: 8px; /* フォントサイズ */
  font-family: Arial, sans-serif; /* フォントファミリー */
  color: #333; /* テキストの色 */
  width: 100%; /* 幅を100%に */
  box-sizing: border-box; /* ボックスサイズをパディング込みで計算 */
  resize: vertical; /* 縦方向のみリサイズ可能 */
}

#yuppenjobs-text-editor:focus {
  outline: none; /* フォーカス時のアウトラインを削除 */
  border-color: #4CAF50; /* フォーカス時のボーダーカラーを変更 */
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5); /* フォーカス時に軽い影を追加 */
}




/* ------------------ <div class="vegveg-vegetable-grid"> ------------------ */

/* グリッド全体のスタイル */
.vegveg-vegetable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 横に3つ並ぶように設定 */
  gap: 4px;
  padding: 10px;
  background-color: #f4f4f4; /* 背景色をグレーに */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 各野菜項目のスタイル */
.vegveg-vegetable-item {
  background-color: #dcdcdc; /* 明るいグレー */
  padding: 5px;
  text-align: left;
  border-radius: 8px;
  font-size: 4px; /* フォントサイズを調整 */
  font-family: NotoSerifJP, sans-serif; /* フォントファミリーの指定 */
  font-weight: normal; /* 太字を解除 */
  color: #333; /* 文字色を濃いグレーに */
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* ホバー時の効果 */
.vegveg-vegetable-item:hover {
  background-color: #a9a9a9; /* ダークグレー */
  transform: translateY(-2px); /* 少し浮き上がる */
}

/* 既存のCSS（変更された部分のみ） */

/* モーダル全体 */

/* 本文表示エリアの全体 */
#vegveg-description-modal {
  transition: opacity 0.5s ease;
  pointer-events: none;
  opacity: 0;
  max-width: 600px;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 95%;
  height: 95%;
  transform: translate(-50%, -50%);
  background-color: rgba(192, 192, 192, 0.95);
  text-align: center;
  z-index: 10;
  color: #DDDDDD;
  border-radius: 10px;
  overflow: auto;
}

/* モーダルコンテンツのスタイル */
#vegveg-description-modal-content {
  background-color: #fff;
  padding: 20px;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  width: 90%;
  height: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease; /* フェードインアニメーション */
}

/* 見出しのスタイル */
#vegveg-description-modal-content h2 {
  font-family: 'NotoSerifJP', sans-serif;
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  font-weight: bold;
}

#vegveg-description-modal-display {

  width: 100%;
  height: 80%;
  margin: 10px auto;
  border-radius: 10px;
  border: 1px solid #ccc;

}

#vegveg-description-modal-content p {
  font-family: NotoSerifJP, sans-serif;
  text-align: left;
  color: #333;
  line-height: 1.2; /* 行間を広げる */
  font-size: 10px;
  margin: 20px;
}



#vegveg-edit-modal {
  transition: opacity 0.5s ease;
  pointer-events: none;
  opacity: 0;
  max-width: 600px;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 95%;
  height: 95%;
  transform: translate(-50%, -50%);
  background-color: rgba(192, 192, 192, 0.95);
  text-align: center;
  z-index: 10;
  color: #DDDDDD;
  border-radius: 10px;
  overflow: auto;
}

#vegveg-description-modal.active,
#vegveg-edit-modal.active {
  opacity: 1;
  pointer-events: auto;
}


#vegveg-edit-modal-content {
  width: 90%;
  height: 100%;
  padding: 20px 0;
  margin: 20px auto;
  display: block;
}


#vegveg-edit-modal h2 {
  font-size: 16px;
  margin: 2px 0;
  font-family: NotoSerifJP, sans-serif;
  color: #666;
  font-weight: normal;
}


#vegveg-edit-modal textarea {
  font-size: 12px;
  margin: 10px auto;
  font-family: NotoSerifJP, sans-serif;
  color: #666;
}


#vegveg-edit-modal button {
  padding: 10px 15px;
  margin: 5px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#vegveg-description-modal button:hover,
#vegveg-edit-modal button:hover {
  background-color: #45a049;
}

/* ------------------ <div class="vegveg-vegetable-grid"> ------------------ */















#memberships {
  display: flex; /* 子要素を横に並べる */
  overflow-x: auto; /* 横スクロールを有効化 */
  overflow-y: hidden; /* 縦スクロールを無効化 */
  scroll-snap-type: x mandatory; /* スナップ効果を有効にする（オプション） */
  -webkit-overflow-scrolling: touch; /* スムーズスクロールを有効にする */
}

#memberships > div {
  flex: 0 0 auto; /* 子要素の幅をその内容のみに設定 */
  scroll-snap-align: start; /* スナップ効果の位置を指定（オプション） */
  margin-right: 16px; /* 要素間の余白を調整（必要に応じて） */
  width: 100%;
}













/* スライダーコンテナ */
.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0; /* 少し広めのスペース */
  padding: 0px;
  scroll-behavior: smooth;
  text-align: left;
    margin: 4px 0px;

  /* スクロールバーを非表示にする */
  scrollbar-width: none; /* Firefox用 */
  -ms-overflow-style: none; /* IE10+用 */
}

.slider-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari用 */
}

.slider-container h2 {
    font-size: 12px;
    color: #333;
    margin: 4 0;
  font-weight: bold;
}


/* スライドアイテム */
.slide-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 100%;
  border: 1px solid #ccc; /* 柔らかいグレーのボーダー */
  border-radius: 8px; /* より丸みを強調 */
  padding: 0px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-item-content {
  padding: 8px;
}


/* ナビゲーションコンテナ */
/* ナビゲーションコンテナ */
.navigation-container {
  display: flex; /* 水平方向に並べる */
  flex-wrap: wrap; /* 必要に応じて改行 */
  justify-content: flex-start;
  align-items: center; /* 垂直方向で中央揃え */
  gap: 5px; /* 要素間の隙間 */
  padding: 5px; /* 内側の余白 */
  background-color: rgba(255, 255, 255, 0.3); /* 透明度のある白い背景 */
  border-radius: 30px; /* 角丸 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* 柔らかな影を追加 */
  max-width: 100%; /* ナビゲーションの横幅を制限 */
  text-align: left;
}

/* 各ナビゲーションボタン */
.navigation-item {
  display: inline-block; /* 改行を許容 */
  margin: 0; /* 外側の余白をなくす */
  padding: 5px 10px; /* ボタン内の余白 */
  font-size: 8px; /* フォントサイズを小さく調整 */
  font-weight: normal; /* 通常の太さ */
  color: #333; /* ボタンの文字色 */
  background-color: transparent; /* 背景色を透明に */
  border: none; /* 枠線を消す */
  cursor: pointer; /* マウスホバー時にポインターを表示 */
  border-right: 1px solid #ddd; /* ボタンの右側に縦線を追加 */
  transition: color 0.3s, transform 0.2s ease; /* ホバー時の色変化と拡大を滑らかに */
  border-radius: 0px; /* ボタンの角丸をなくす */
  white-space: nowrap; /* テキストが折り返されるのを防ぐ（必要なら削除） */
}

/* 最後のボタンには縦線を表示しない */
.navigation-item:last-child {
  border-right: none;
}

/* ホバー時のスタイル */
.navigation-item:hover {
  color: #555; /* ホバー時に文字色を明るめのグレーに変更 */
  transform: scale(1.05); /* ホバー時に微妙に拡大 */
}

/* 選択中のナビゲーションボタン */
.navigation-item.active {
  color: #000; /* 選択中は文字色を黒に強調 */
  font-weight: bold; /* 選択中の文字を太字に */
}



.common-app {
  margin-top: 15px;
  margin-bottom: 15px;
}














.footer-cabtrey-extra {
  max-width: 600px;         /* .container に揃える */
  margin: 0 auto 10px;      /* 中央寄せ＋下に余白 */
  padding: 0 0px;          /* .container と同じ内側余白 */
  font-family: NotoSerifJP, sans-serif;
  text-align: center;
}

.footer-image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;       /* 任意：角丸も可 */
}
