 /* -----------------------------------------
 WordPressデフォルトのh2スタイルをリセット
 ----------------------------------------- */
.entry-content h2,
.entry-content h2:not([class]) {
  margin: 0;               /* 上下左右のマージンをリセット */
  padding: 0;              /* 上下左右のパディングをリセット */
  border: none;            /* ボーダーをリセット */
  background: none;        /* 背景色をリセット */
  color: inherit;          /* テキストカラーを親要素から継承 */
  font-size: inherit;      /* フォントサイズを親要素から継承 */
  font-weight: inherit;    /* フォントウェイトを親要素から継承 */
  line-height: inherit;    /* 行の高さを親要素から継承 */
  text-transform: none;    /* 大文字・小文字の変換を解除 */
  letter-spacing: normal;  /* 字間を標準にリセット */
}

 
 /* 親要素の制約を解除（これがないと余白が生まれる原因に） */
 .page-id-1498 .post,
 .page-id-1498 #content,
 .page-id-1498 #contentInner,
 .page-id-1498 #wrapper,
 .page-id-1498 main {
   max-width: none !important;
   margin: 0 !important;
   padding: 0 !important;
 }

 /* 全ページの本文フォントサイズを統一 */
 @media (max-width: 410px) {
  .about-section-wrapper p,
  .member-section-wrapper p,
  .supporter-section-wrapper p {
    font-size: 13px !important;
  }
}

 
 /* スクロール領域用 */
 .trigger-wrapper {
   position: relative;
   height: 1250px;
 }
 
 /* スクロールピン用エリア */
 .pin-wrapper {
   position: relative; 
   width: 100vw;
   height: auto; 
 }
 
 /* コンテナ */
 .hero-container-wrapper,
 .hero-container {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   overflow: hidden;
   z-index: 2; /* 背景画像を2に設定 */
 }
 
 /* 背景画像と重ねる要素（共通化） */
 .bg-image,
 .scene-element,
 .car-shadow {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
 }
 
 /* 600px以上はスマホ専用の要素を非表示に */
 .mobile-elements {
   display: none;
 }
 
 /* モバイル用表示切り替え（600px以下のみ適用） */
 @media (max-width: 600px) {
 
   /* PC用要素のみ非表示に */
   .hero-container > img {
     display: none;
   }
 
   /* スマホ用要素を表示 */
   .mobile-elements {
     display: block;
     position: absolute; /* ここはabsoluteで問題ない */
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     overflow: hidden;
   }
 
 
 
   .mobile-elements .bg02_mobile {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 1;
   }
   
   .mobile-elements .light-foot-mobile {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 2;
   }
   
   .mobile-elements .fog02-mobile-right-foot {
     position: absolute;
     top: 0; /* 手動調整予定 */
     left: 0; /* 手動調整予定 */
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 3;
   }
   
   .mobile-elements .car02-shadow-mobile,.mobile-elements .car02-mobile {
     position: absolute;
     top: 0;
     left: 45%;
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 4;
   }
   
   
   .mobile-elements .fog02-mobile-car02 {
     position: absolute;
     top: 50; /* 手動調整予定 */
     left: 0; /* 手動調整予定 */
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 6;
   }
   
   .mobile-elements .left-foot-mobile {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 7;
   }
   
   .mobile-elements .car01-shadow-mobile,.mobile-elements .car01-mobile {
     position: absolute;
     top: 10;
     left: -55%;
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 8;
   }
   
   
   .mobile-elements .fog02-mobile-car01 {
     position: absolute;
     top: 0; /* 手動調整予定 */
     left: 0; /* 手動調整予定 */
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 10;
   }
   
   .mobile-elements .fog04-mobile {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 11;
   }
   
   .mobile-elements .boy-mobile {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 12;
   }
   
   .mobile-elements .fog06-mobile {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 13;
   }
 }
 
 /* 追加CSS：foreground-deco（テキストと矢印） */
 
 .foreground-deco {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   pointer-events: none;
   z-index: 10;
   font-size: 100%; /* これが基準サイズ（これを変更して子要素も一括調整） */
 
   /* Flexboxで縦方向配置・中央揃え */
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: flex-start;
 }
 
 /* deco-text（上部テキスト） */
 .deco-text {
   position: relative; 
   margin-top: 5%;         /* 親コンテナの高さに対する割合で統一 */
   font-size: 8em; 
   color: #fff;
   font-weight: bold;
   font-family: 'BespokeStencil', sans-serif;
   text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
   white-space: nowrap;
 }
 
 /* arrows（矢印群）*/
 .arrows {
   position: relative; 
   margin-top: -10px;          /* deco-textとの距離を親コンテナの高さに対する割合で設定 */
   display: flex;
   flex-direction: column;
   align-items: center;
 }
 
 /* 個別の矢印（絶対指定）*/
 .arrow {
   width: 2.5em;
   height: 2.5em;
   margin-bottom: 5px;
   border-left: 3px solid #fff;   /* 絶対指定 */
   border-bottom: 3px solid #fff;
   transform: rotate(-45deg);
   box-shadow: 0px 3px 0 rgba(0,0,0,0.5);
 }
 
 /* 親要素 (基準になる要素) */
 .hero-container {
   font-size: 1.5vw; /* 画面幅に比例してスムーズに拡大縮小 */
 }
 
 /* 子要素 (foreground-deco) */
 .foreground-deco {
   font-size: 100%; /* 親のサイズを基準に100%から開始 */
 }
 
 /* 320px～480px (スマホ小型) */
 @media (max-width: 320px) {
   .foreground-deco {
     font-size: 130%; 
     margin-top: 10%;
   }
 }
 
 /* 320px～480px (スマホ小型) */
 @media (min-width: 320px) and (max-width: 480px) {
   .foreground-deco {
     font-size: 130%; 
     margin-top: 10%;
   }
 }
 
 /* 481px～767px (スマホ中型) */
 @media (min-width: 481px) and (max-width: 600px) {
   .foreground-deco {
     font-size: 120%; 
     margin-top: 10%;
   }
 }
 
 /* 768px～1023px (小型タブレット) */
 @media (min-width: 601px) and (max-width: 1023px) {
   .foreground-deco {
     font-size: 110%; 
   }
 }
 
 /* 1024px～ (PC以上は標準サイズ) */
 @media (min-width: 1024px) {
   .foreground-deco {
     font-size: 100%; /* 親要素のvw依存でそのまま伸縮 */
   }
 }
 
 
 /* マスク設定 */
 .hero-container {
   --maskY: 0%;
   mask-repeat: no-repeat;
   mask-mode: luminance;
   mask-position: center var(--maskY);
 }
 
 /* 4K以上（大きなテレビ） */
 @media (min-width: 1921px) {
   .hero-container {
     mask-image: url('/wp-content/themes/deer_child/assets/images/mask/fog-cloud-fixed_4k.png');
   }
 }
 
 /* 通常PC・タブレット・スマホ（同じ画像を使用） */
 @media (max-width: 1920px) {
   .hero-container {
     mask-image: url('/wp-content/themes/deer_child/assets/images/mask/fog-cloud-fixed.png');
   }
 }
 
 /* === pointer-events調整（置き換え後の最終コード） === */
 
 /* 基本的にイベントは無効化 */
 .hero-container-wrapper,
 .hero-container,
 .foreground-deco,
 .foreground-deco *,
 .behind-container {
   pointer-events: none;
 }
 
 
 
 /* 背後テキストと要素のスタイル */
 .behind-container {
   position: relative;  /* 絶対に変更しない */
   width: 100%;
   height: 100%;
   z-index: 1;
   box-sizing: border-box;
   pointer-events: none;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: flex-start; /* foreground-decoと完全一致 */
   font-size: 10vw; /* 基準を設定：画面幅に比例して変動 */
   overflow: hidden; /* 画面外に移動した文字が見えないようにする */
 }
 
 .behind-text-inner {
   position: relative; 
   margin-top: 9.5%;         /* deco-textと完全に一致 */
   font-size: 10em;         /* deco-textと完全に一致 */
   color: #162a43;
   font-weight: bold;
   font-family: 'BespokeStencil', sans-serif;
   white-space: nowrap;
   letter-spacing: -0.03em;
   box-sizing: border-box;
   transform: translateY(0);
 }
 
 /* 基本設定 (320px以下) */
 @media (max-width: 320px) {
   .behind-text-inner {
     margin-top: 20%;      /* 小さい画面ではやや下の方に表示 */
     padding-top: 0;
     font-size: 100%;        /* 親の高さ基準のフォントサイズ */
   }
 }
 
 /* 基本設定 (320px以上) */
 @media (min-width: 320px) {
   .behind-text-inner {
     margin-top: 20%;      /* 小さい画面ではやや下の方に表示 */
     padding-top: 0;
     font-size: 100%;        /* 親の高さ基準のフォントサイズ */
   }
 }
 
 /* 基本設定 (481px以上) */
 @media (min-width: 480px) {
   .behind-text-inner {
     margin-top: 20%;
     padding-top: 0;
     font-size: 100%;
   }
 }
 
 /* 基本設定 (600px以上) */
 @media (min-width: 600px) {
   .behind-text-inner {
     margin-top: 8%;
     padding-top: 0;
     font-size: 100%;
   }
 }
 
 /* 基本設定 (1024px以上) */
 @media (min-width: 1024px) {
   .behind-text-inner {
     margin-top: 7%;
     padding-top: 0;
     font-size: 100%;
   }
 }
 
 /* 基本設定 (1200px以上) */
 @media (min-width: 1200px) {
   .behind-text-inner {
     margin-top: 7%;
     padding-top: 0;
     font-size: 100%;
   }
 }
 
 
 
 
 
 /*box-containerの立体cube*/
 
 /* 親要素：box-containerを画面の中央に配置 */
 .box-container {
   perspective: 1000px; /* 3Dの視点距離設定 */
   perspective-origin: 50% 50%; /* 中央からの視点（調整可能）*/
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   width: 100%;
   pointer-events: auto;
 }
 
 .flip-box-wrapper{
   position: relative;
   width: 1250px;
   height: 200px;
 }
 
 .flip-box {
   position: relative;
   width: 100%;
   height: 100%;
   transform-style: preserve-3d; /* 3D表示を許可 */
   transform-origin: center center -100px; /* 要素の中心点を調整（奥行きの中心）*/
   transition: transform 0.6s ease; /* アニメーション設定 */
 }
 
 .flip-box-top {
   position: absolute;
   width: 100%;
   height: 100%;
   top: -100%;
   left: 0;
   transform-origin: bottom;
   transform: rotateX(90deg); /* 上面を奥方向に倒す */
 }
 
 .flip-box-front {
   position: absolute;
   width: 100%;
   height: 100%;
   top: 0;
   left: 0;
 }
 
 .flip-box-front img {
   width: 100%;
   height: 100%;
   display: block;
   border-bottom: 3px solid black; /* 画像自体に直接下線を追加 */
   box-sizing: border-box;
 }
 
 .flip-box:hover {
   transform: rotateX(-90deg); /* ホバー時に手前へ回転 */
 }
 
 .flip-box-wrapper-link {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%;          /* 横幅は親要素いっぱい */
   text-decoration: none;/* リンクの下線なし */
   color: inherit;       /* 色を親要素から継承 */
 }
 
 /* 既存のクラスは変更なし */
 .flip-box-wrapper {
   position: relative;
   width: 1250px;
   height: 200px;
 }
 
 /* レスポンシブ対応用 */
 
 @media (max-width: 1250px) {
   .flip-box-wrapper {
     width: 90%; /* 幅いっぱい */
     height: auto; /* 自動調整 */
     aspect-ratio: 1250 / 200; /* 元のアスペクト比を維持 */
   }
 
   .flip-box {
     transform-origin: center center calc((90vw * 200 / 1250) / -2); /* レスポンシブに高さに合わせて調整 */
   }
 }
 
 
 
 
 
 /*About‐USの箇所実装*/
 .about-section-wrapper {
   position: relative;
   opacity: 0;          /* ← 必須 */
   pointer-events: none; /* ← 必須 */
   user-select: none; /* テキスト選択も無効にする */
 }
 
 .about-us-container {
   position: relative; /* relativeを維持 */
   pointer-events: none; /* 操作も無効化（初期時点）*/
 }
 
 .about-image-mask {
   width: 100%;          /* コンテナ幅を調整（お好みで変更可能） */
   overflow: hidden;     /* はみ出した部分を隠す */
   z-index: 1;
   display: inline-block;
   margin-top: 70px; /* ← 上との間隔を調整（自由に調整可能）*/
 }
 
 /* about-usのマスク適用 */
 .about-image-mask img {
   display: block;
   width: 100%;            /* 画像幅を親要素に合わせる */
   height: auto;           /* 高さは自動で調整 */
   -webkit-mask-image: url('/wp-content/themes/deer_child/assets/images/mask/about-us.png');
   mask-image: url('/wp-content/themes/deer_child/assets/images/mask/about-us.png');
   -webkit-mask-repeat: no-repeat;
   mask-repeat: no-repeat;
   -webkit-mask-size: contain; /* コンテナにフィットさせる */
   mask-size: contain; 
   -webkit-mask-position: center;
   mask-position: center;
   pointer-events: none; /* テキストエリアを選択・クリック不能にする */
   user-select: none; /* テキスト選択も無効にする */
 }
 
 
 .about-content {
   text-align: center;
   margin: 20px auto;
   padding: 20px;
   font-family: 'BespokeStencil', sans-serif; /* BespokeStencilを統一して使用 */
   color: #162a43; /* 深みのある青系の色味で統一 */
   pointer-events: none; /* テキストエリアを選択・クリック不能にする */
   user-select: none; /* テキスト選択も無効にする */
   max-width: 90%; /* 画面幅の90%以内におさまる */
 }
 
 .about-us-container .about-content .about-title {
   font-size: clamp(40px, 8vw, 80px)!important;  /* 大きめに調整 */
   letter-spacing: 2px; /* 文字間隔を広げてモダンな印象に */
   margin-bottom: 20px;
   line-height: 1.1; /* ← 数値を小さくして行間を狭くする */
 }
 
 .about-us-container .about-content .about-text {
   font-size: clamp(18px, 4vw, 26px); /* 読みやすいサイズに調整 */
   line-height: 1.8; /* 行間を広めに調整 */
   font-weight: 500; /* 少し太めで読みやすさアップ */
   opacity: 0.85; /* 少し透け感を出しておしゃれに */
 }

 /* About Us タイトルの改行を許可し、折り返しをきれいにする */
.about-title {
  white-space: normal; /* nowrapを解除し、折り返しを許可 */
}

/* About Us テキストの改行を許可し、読みやすくする */
.about-text {
  white-space: normal; /* 文字が画面からはみ出さないように改行を許可します */
  line-height: 1.8; /* 行と行の間を読みやすくします */
  word-break: keep-all; /* 単語の途中で改行しないように設定します（これが大切！） */
  overflow-wrap: normal; /* 単語を無理に折り返さないようにします */
  text-align: center; /* 真ん中ぞろえにします */
  padding: 0 10px; /* 左右に少し余白を作って読みやすくします */
}
 
 @media (min-width: 1200px) {
   .about-us-container {
     position: relative;
     display: flex;
     justify-content: flex-end;
     align-items: flex-start;
     overflow: visible;  /* ←追加（必須）：はみ出しを許可 */
     min-height: 800px;  /* ←追加（調整可能）：最低限の高さを確保 */
   }
 
   .about-image-mask {
     width: 90%;
     transform: translate(10%, -5%); /* 少し調整して表示範囲内に戻す */
     margin-top: 100px; /* この値を大きくすると下に下がります */
     z-index: 1;
   }
 
   .about-image-mask img {
     width: 100%;
     height: auto;
     display: block;
   }
 
   .about-content {
     position: absolute;
     top: 60%; /* マイナスは廃止し、プラス方向へ調整して要素が表示範囲内に入るように */
     left: 5%;
     max-width: 90%;
     padding: 30px 40px;
     background-color: rgba(255, 255, 255, 0.85);
     backdrop-filter: blur(10px);
     z-index: 2;
     border-radius: 15px;
     box-shadow: 0 8px 20px rgba(0,0,0,0.15);
     transform: rotate(-2deg);
   }
 
   .about-title {
     font-family: 'BespokeStencil', sans-serif;
     font-size: clamp(52px, 5vw, 80px);
     white-space: nowrap;
     color: #162a43;
     margin-bottom: 20px;
   }
 
   .about-text {
     font-size: clamp(20px, 2vw, 24px);
     white-space: normal;
     color: #333;
   }
 }

 /* member要素 */
 .member-section-wrapper {
  pointer-events: none; /* テキスト・要素の選択・クリックを無効化 */
  user-select: none;    /* テキスト選択も無効にする */
}

 .member-container {
  position: relative;
  pointer-events: none;
}

.member-section-wrapper a {
  pointer-events: auto; /* リンクだけクリック可能に戻す */
}

/* マスク＋バナー画像を一体化 */
.member-image-mask {
  width: 100%;
  /* 1:1 のアスペクト比を維持 */
  aspect-ratio: 5 / 3;
  /* バナー画像を背景として敷く */
  background-image: url('/wp-content/themes/deer_child/assets/images/member/member-top.png');
  background-size: cover;
  background-position: center center;
  /* マスク画像を適用 */
  -webkit-mask-image: url('/wp-content/themes/deer_child/assets/images/mask/member-mask.png');
  mask-image:        url('/wp-content/themes/deer_child/assets/images/mask/member-mask.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat:        no-repeat;
  -webkit-mask-size: cover; /* ← containからcoverに変更 */
  mask-size: cover;         /* ← containからcoverに変更 */
  -webkit-mask-position: center center;
  mask-position: center center;
  display: block;
  filter: brightness(1.4);  /* 明るさをアップ */
  pointer-events: none; /* テキストエリアを選択・クリック不能にする */
  user-select: none; /* テキスト選択も無効にする */
}


/* テキストエリア */
.member-content {
  text-align: center;
  margin: 0px auto;
  padding: 0px;
  font-family: 'BespokeStencil', sans-serif;
  color: #162a43;
  pointer-events: none; /* テキストエリアを選択・クリック不能にする */
  user-select: none; /* テキスト選択も無効にする */
}

.member-container .member-content .member-title {
  font-size: clamp(40px, 8vw, 80px) !important;
  letter-spacing: 2px;
  margin-bottom: 0px;
  line-height: 1.1; /* ← 数値を小さくして行間を狭くする */
}

.member-container .member-content .member-text {
  font-size: clamp(18px, 4vw, 26px);
  line-height: 1.8;
  font-weight: 500;
  opacity: 0.85;
}

.member-container .member-content .member-text {
  white-space: normal; /* 改行を許可 */
  line-height: 1.8; /* ← 数値を小さくして行間を狭くする */
  word-break: keep-all; /* 単語の途中で折り返さない（重要）*/
  overflow-wrap: normal; /* 自然な折り返しに */
  text-align: center; /* 中央揃え */
  padding: 0 10px; /* 左右の余白を少しつける */
}

/* 1200px以上のときだけ左右レイアウト */
@media (min-width: 1200px) {
  .member-container {
    display: flex;
    justify-content: flex-start; /* 画像を左に */
    align-items: flex-start;
    overflow: visible;
    min-height: 900px;
  }

  .member-image-mask {
    width: 75%;
    margin-top: 0px;
    transform: translate(0, 0);
  }

  .member-content {
    position: absolute;
    bottom: 8%;
    right: 5%;
    max-width: 150rem;
    padding: 30px 40px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: rotate(2deg);
  }

  .member-title {
    font-family: 'BespokeStencil', sans-serif;
    font-size: clamp(52px, 5vw, 80px);
    white-space: nowrap;
    color: #162a43;
    margin-bottom: 20px;
  }

  .member-text {
    font-size: clamp(20px, 2vw, 24px);
    white-space: nowrap;
    color: #333;
  }
}

/*member紹介*/
/* ===== グリッドレイアウト ===== */
.member-cards {
  display: grid;
  grid-template-columns: 2fr;
  gap: 3rem;
  padding: 3rem;
}

/* 600px以上で2列 */
@media (min-width: 600px) {
  .member-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* 900px以上で3列 */
@media (min-width: 900px) {
  .member-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== 各カード ===== */
.member-card {
  position: relative; /* 基準位置に設定 */
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  aspect-ratio: 1 / 1;  
  border-radius: 50%;  
  padding: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  overflow: hidden; /* 画像がはみ出さないように */
}
.member-card:hover {
  transform: translateY(-8px);
}

/* ===== 丸い画像部分（中央に配置） ===== */
.member-card-image {
  position: absolute; /* 絶対位置で中央に配置 */
  top: 50%;  
  left: 50%;  
  transform: translate(-50%, -50%); /* 中央揃え */
  width: 80%; /* パネルに対する画像サイズ（お好みで調整） */
  aspect-ratio: 1 / 1; /* 正方形維持 */
  border-radius: 50%; /* 丸く表示 */
  overflow: hidden; 
  background: #eee;
}

.member-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 名前 ===== */
.member-card-name {
  position: absolute;
  bottom: 8%; /* 下端に少し余白を残して配置（お好みで調整） */
  left: 50%;  
  transform: translateX(-50%); /* 名前を左右中央揃え */
  font-size: 1rem;
  font-weight: bold;
  color: #162a43;
  font-family: 'BespokeStencil', sans-serif;
  white-space: nowrap;
}

.member-card-job,
.member-card-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'BespokeStencil', sans-serif;
  font-weight: bold;
  color: #162a43;
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 50%; /* 曲線状にするための設定 */
  width: 80%; /* 幅を調整してカーブさせる */
  box-sizing: border-box;
}

.member-card-job {
  top: 5%; /* 上側の位置を調整 */
  transform: translateX(-50%) translateY(-50%);
  font-size: 0.85rem; /* 職業の文字サイズ */
}

.member-card-name {
  bottom: 5%; /* 下側の位置を調整 */
  transform: translateX(-50%) translateY(50%);
  font-size: 1rem; /* 名前の文字サイズ */
}

/* 球体の立体感を追加 */
.member-card {
  background: radial-gradient(circle at 30% 30%, #ffffff, #dddddd);
  box-shadow: 
    inset -5px -5px 15px rgba(0,0,0,0.2),
    inset 5px 5px 15px rgba(255,255,255,0.7),
    0 8px 16px rgba(0,0,0,0.15);
}

/* カラー連番での色変更用 */
.color-1 {
  background: radial-gradient(circle at 30% 30%, #ffffff, #dddddd); /* 白系 */
}

.color-2 {
  background: radial-gradient(circle at 30% 30%, #c8e6c9, #4caf50); /* グリーン系 */
}

.color-3 {
  background: radial-gradient(circle at 30% 30%, #bbdefb, #2196f3); /* ブルー系 */
}

.color-4 {
  background: radial-gradient(circle at 30% 30%, #ffecb3, #ff9800); /* オレンジ系 */
}

.member-card-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* SVGにカーソルが当たらないようにする */
}

.member-card-svg text {
  fill: #162a43;
  letter-spacing: 1px; /* 文字間隔を調整 */
}

/* 文字を円から離すためパスの半径を調整 */
.member-card-svg path {
  fill: none;
}


.member-card {
  position: relative;
  overflow: hidden; /* 必須（オーバーレイのはみ出し防止） */
}

.member-overlay {
  position: absolute;
  top: 10%;      /* 円形画像の領域に合わせる調整 */
  left: 10%;
  width: 80%;
  height: 80%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  border-radius: 50%; /* 丸くするために重要 */
  transition: opacity 0.3s ease;
  text-decoration: none; /* リンクの下線を消す */
  cursor: pointer;
  z-index: 10;
}

.member-card:hover .member-overlay {
  opacity: 1; /* ホバー時に表示する */
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px; /* 開くと矢印の間隔調整 */
}

.overlay-text {
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

.overlay-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background: #fff;
  color: #162a43;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.overlay-icon:hover {
  background: #162a43;
  color: #fff;
  transform: scale(1.1);
}



/* supporterタイトルのフォント・配置・挙動設定 */

.supporter-section-wrapper {
  position: relative;
  pointer-events: none;
  user-select: none;
}

.supporter-container {
  position: relative;
  pointer-events: none;
}


/* マスク＋バナー画像を一体化 */
.supporter-image-mask {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url('/wp-content/themes/deer_child/assets/images/supporter/supporter-top.png');
  background-size: cover;
  background-position: center center;
  -webkit-mask-image: url('/wp-content/themes/deer_child/assets/images/mask/supporter.png');
  mask-image: url('/wp-content/themes/deer_child/assets/images/mask/supporter.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center center;
  mask-position: center center;
  display: block;
  filter: brightness(1.4);
  pointer-events: none;
  user-select: none;
}

/* supporter テキストエリア */
.supporter-content {
  text-align: center;
  margin: 20px auto;
  padding: 20px;
  font-family: 'BespokeStencil', sans-serif; /* BespokeStencilを統一して使用 */
  color: #162a43; /* 深みのある青系の色味で統一 */
  pointer-events: none; /* テキストエリアを選択・クリック不能にする */
  user-select: none; /* テキスト選択も無効にする */
  max-width: 90%; /* 画面幅の90%以内におさまる */
}

.supporter-container .supporter-content .supporter-title {
  font-size: clamp(40px, 8vw, 80px);  /* 大きめに調整 */
  letter-spacing: 2px; /* 文字間隔を広げてモダンな印象に */
  margin-bottom: 20px;
  line-height: 1.1; /* ← 数値を小さくして行間を狭くする */
}

.supporter-container .supporter-content .supporter-text {
  font-size: clamp(18px, 4vw, 26px); /* 読みやすいサイズに調整 */
  line-height: 1.8; /* 行間を広めに調整 */
  font-weight: 500; /* 少し太めで読みやすさアップ */
  opacity: 0.85; /* 少し透け感を出しておしゃれに */
}

.supporter-text {
  white-space: normal;
  line-height: 1.8;
  word-break: keep-all;        /* 単語を途中で区切らない */
  overflow-wrap: normal;       /* 不自然な単語分割を防ぐ */
  text-align: center;
  padding: 0 10px;
  max-width: 500px;            /* 最大幅を設定して、きれいな折り返しを維持 */
  margin: 0 auto;              /* 中央揃えを維持 */
  position: relative;
}

/* 1200px以上のときだけ左右レイアウト（memberと同じ） */
@media (min-width: 1200px) {
  .supporter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    min-height: 900px;
    position: relative; /* 基準位置として必要 */
  }

  .supporter-image-mask {
    width: 85%;
    margin: 0 auto;
    transform: translate(0, 0);
  }

  .supporter-content {
    position: absolute;
    top: 80%;  
    left: 50%;  
    transform: translate(-50%, -50%); /* ← 上下左右すべて中央 */
    max-width: 800px; /* ← 実用的なサイズへ調整 */
    padding: 30px 40px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-align: center;
  }

  .supporter-title {
    font-family: 'BespokeStencil', sans-serif;
    font-size: clamp(52px, 5vw, 80px);
    white-space: nowrap;
    color: #162a43;
    margin-bottom: 20px;
  }

  .supporter-text {
    font-size: clamp(20px, 2vw, 24px);
    white-space: normal;
    color: #333;
  }
}

/* SNSリンクのコンテナ設定（レスポンシブ対応） */
.sns-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3vw; /* ウィンドウ幅に応じた間隔 */
  margin-top: 5%; /* 上の要素との余裕ある間隔 */
  margin-bottom: 80px; /* 下の要素との余裕ある間隔 */
}

/* 各SNSリンクをパネル型にしてサイズをレスポンシブに調整 */
.sns-link {
  width: clamp(100px, 12vw, 220px);  /* 横幅をウィンドウ幅に応じて調整 */
  height: clamp(100px, 12vw, 220px); /* 正方形で高さも調整 */
  background-color: #ffffff;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  border-radius: 20px; /* 角丸設定 */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー効果 */
.sns-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* SNSロゴ画像のサイズ（パネルに応じて調整） */
.sns-link img {
  width: 65%; /* パネルの65%でバランス良く */
  height: auto;
  object-fit: contain;
}

/* スマホ表示の最適化 */
@media (max-width: 600px) {
  .sns-links {
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 60px;
  }

  .sns-link {
    width: 90px;
    height: 90px;
  }
}


