/* -------------------------------
	HOME
-------------------------------- */

body {
  font-family: "游ゴシック体", "YuGothic", "游ゴシック", "Yu Gothic", "NotoSansCJKjp", "メイリオ", sans-serif;
}

/* フォントとカラーの統一 */
.hero-font {
  color: #000;
  /* font-family: 'YuMincho', '游明朝体', 'Hiragino Mincho ProN', serif; */
}
.hero-font .button {
  font-family: sans-serif; /* 例: 明朝体を解除してゴシック体へ */
}

.ttl-main-pro {
  font-size: 2.5rem;
  line-height: 1.4;
}

.ttl-main {
  font-size: 5rem;
  line-height: 1.4;
}

.service-title {
  font-weight: normal;
  line-height: 1.5;
}

.narrow-line-height {
  line-height: 1.1; /* 通常は1.5〜1.8程度。1.1で詰まる */
  margin-bottom: 20px; /* 必要に応じて調整 */
}

.company-title {
  font-weight: bold;
  font-size: 2.8rem;
}

.company-info {
  color: #000;
}

.service-image {
  width: 120%;
  height: auto;
  max-width: none;
}

.works-image {
  width: 120%;
  height: auto;
  max-width: none;
}

/* 初期状態では改行を表示（PC用） */
.pc-only {
  display: inline;
}

.our-service-section.py60 {
  padding-bottom: 100px;
}


@media (max-width: 992px) {
  .service-image {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 60px;
  }

  .works-image {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }
}

@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }

  .lead{
    font-size: 1.0rem !important;
    line-height: 2.0;
  }

  .ttl-main {
    font-size: 4rem;
    line-height: 1.4;
  }

  .company-title {
    font-weight: bold;
    font-size: 2.8rem;
  }

  .hero-section {
    padding: 60px 0;
  }

  .section-bg-1 {
    padding: 40px 22px;
  }

  .hero-section .container {
    padding-left: 22px;
    padding-right: 22px;
  }

  .our-service-section.py60 {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .company-section,
  .hero-section,
  .section-bg-1,
  .section-bg-2 {
    padding-top: 40px;
    padding-bottom: 30px;
  }

  .mb30 {
    margin-bottom: 20px;
  }

  .mb40 {
    margin-bottom: 20px;
  }
  .service_button{
    margin-top: 60px;
  }
  .company-btn-wrapper {
    text-align: center;
  }

  .ttl-main-pro {
    font-size: 1.4rem;
    line-height: 1.4;
  }
}

.uniform-button {
  min-width: 200px; /* 必要に応じて調整可能 */
  display: inline-block;
  text-align: center;
}


/* 背景画像付きセクション */
.section-bg-1 {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: url('/images/home/company_1_4.png') center/cover no-repeat;
  padding: 60px 22px;
}

.section-bg-2 {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: url('/images/home/company_1_1.jpg') center/cover no-repeat;
  padding: 60px 22px;
  z-index: 0;
}

.section-bg-2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.7); /* ← 白で50%薄くする */
  z-index: 1;
}

/* 子要素を前面に出す */
.section-bg-2 > .container {
  position: relative;
  z-index: 2;
}


.hero-section {
  padding: 80px 0; /* 上下60pxの余白を追加 */
}

.company-section {
  padding: 100px 0; /* 上下80pxの余白 */
}

/* その他共通 */
.lead {
  font-size: 1.1rem;
  line-height: 2.0;
}

.mb20 {
  margin-bottom: 20px;
}

.mb30 {
  margin-bottom: 30px;
}

.mb40 {
  margin-bottom: 40px;
}

.py60 {
  padding-top: 125px;
  padding-bottom: 60px;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 40px;
  transition: all 0.3s ease;
}

.btn-gradient {
  color: #FFFF;
  border: none;
  background-image: url("../images/common/bg01.svg"); 
}

.btn-gradient:hover {
  background-image: url("../images/common/bg01.svg"); 
  color: #FFFF;
  text-decoration: none;
  transform: scale(1.05);
}

.footer a {
  text-decoration: none;
  color: #666; /* 薄めのグレー */
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #000; /* ホバー時に黒に変更（お好みで） */
  text-decoration: underline;
}



/* -------------------------------
	SERVICE
-------------------------------- */

.twentyfour-services-section {
  padding: 60px 22px 40px 22px;
}

.twentyfour-services-section .left-text .sub-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.twentyfour-services-section .left-text .main-title {
  font-weight: bold;
  font-size: 5.4rem;
  line-height: 1.4;
}

.twentyfour-services-section .right-text .lead {
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1.8;
}

.service-24 .service-box {
  padding: 12px 16px;
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 4px;
  color: #000;
  text-align: center;
}

.bg-blue {
  background-color: #d0e6f9;
}

.bg-gray {
  background-color: #f0f0f0;
}

.feature-box {
  padding: 60px 22px;
  background-color: #fff;
}

.container-box {
  border: 1px solid #ccc;
  padding: 40px 22px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* ←これが中央寄せのポイント */
  text-align: center;
}

.top-text p {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.center-image img {
  max-width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-box {
  display: inline-block;
  padding: 12px 24px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-box:hover {
  background-color: #444;
}

.box-frame {
  width: 100%;
  max-width: 1110px;
  margin: 0 auto; 
  line-height: normal; 
  text-align: center; 
  padding: 3.4448%; 
  background: url("../images/common/bg01.svg") no-repeat center center/cover; 
  position: relative; 
  z-index: 0;
}

.box-frame:before { 
  content: ""; 
  position: absolute; 
  top: 5px; 
  right: 5px; 
  bottom: 5px; 
  left: 5px; 
  background-color: #fff; 
  z-index: -1; 
}

.main_ttl {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.feature-box {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* 各タイトル共通 */
.category-title {
  background: linear-gradient(90deg, #fffccd, #c9f5c1); /* ← ここが背景 */
  padding: 6px 14px; /* タイトルの余白を圧縮 */
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px; /* タイトル下の余白も詰める */
  font-size: 1.1rem; /* 少し小さく */
}

/* 各サービスリスト共通 */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; /* 項目間を圧縮 */
  list-style: none;
  padding: 0;
  margin: 0;
  justify-items: center;
}

.service-list.custom-3col {
  grid-template-columns: repeat(3, 1fr);
}

.service-list li {
  background: linear-gradient(90deg, #fffccd, #c9f5c1); /* ← ここが背景 */
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
  width: 140px;
  height: auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

/* カテゴリ別の背景色 */
.media-list li {
  background: linear-gradient(90deg, #fffccd, #c9f5c1); /* ← ここが背景 */
}
.sns-list li {
  background: url("../images/common/bg01.svg") no-repeat center center/cover; 
}
.event-list li {
  background: url("../images/common/bg01.svg") no-repeat center center/cover; 
}
.analysis-list li {
  background: url("../images/common/bg01.svg") no-repeat center center/cover; 
}
.creative-list li {
  background: url("../images/common/bg01.svg") no-repeat center center/cover; 
}

/* メディアプランニング個別設定 */
.category-box.media-planning {
  width: fit-content;
  margin: 0 auto 20px;
}

.category-title.media-title {
  background: linear-gradient(90deg, #fffccd, #c9f5c1); /* ← ここが背景 */
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px;
  font-size: 1.1rem;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

.service-wrapper {
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

.service-row.justify-center {
  justify-content: center;
}

.service-item {
  background: linear-gradient(90deg, #fffccd, #c9f5c1); /* ← ここが背景 */
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
  width: 140px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

/* 下段2つ用の横幅調整（上段3つと合わせる） */
.service-row-wide .service-item.wide {
  width: calc((140px * 3 + 20px) / 2 + 5px); /* gap 10px 基準 */
}

/* イベント体験の下段用 */
.service-row-wide2 {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 10px;
}

.service-row-wide2 .service-item.wide {
  width: 295px; /* 140 * 2 + 15 (gap) → 揃える */
}

/* 上下ブロックの横並び全体調整 */
.category-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

/* 各カテゴリを並べる行の余白調整（上下） */
.category-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0px; /* 10px に詰める */
  margin-bottom: 10px; /* ←40px → 10px に詰める */
}


/* メディアプランニングだけ制限（1列目: 130*3 + gap2*10 = 410px） */
.service-wrapper {
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
}

/* 下段ワイド用も再調整（130*2 + gap1*10） */
.service-row-wide .service-item.wide {
  width: calc((130px * 3 + 20px) / 2 + 5px); /* → 205pxぐらい */
}
.service-row-wide2 .service-item.wide {
  width: 270px; /* ← 上記に合わせて */
}

/* 上段のカテゴリボックスを共通幅に */
.category-box.strategy,
.category-box.media-planning,
.category-box.sns {
  width: 420px;
  flex-shrink: 0;
  margin: 0 5px;
}

/* タイトルも幅を揃える */
.category-title.strategy-title,
.category-title.media-title,
.category-title.sns-title {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

/* メディアプランニング用の中身調整 */
.category-box.media-planning .service-wrapper {
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.category-box.media-planning .service-item {
  width: 130px;
}

/* 下段の2つの横幅調整（上段と同じに） */
.service-row-wide .service-item.wide {
  width: calc((130px * 3 + 20px) / 2); /* gap: 10px 揃える */
}

/* 共通：上段ブロックを正方形に */
.category-box.strategy,
.category-box.media-planning,
.category-box.sns {
  width: 360px;
  min-height: 360px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

/* タイトルを上に固定、横幅100% */
.category-title {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 22px !important;
}


.category-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
  width: 100%;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-items: center;
  flex-grow: 1;
  width: 100%;
}

.service-list li {
  background: url("../images/common/bg01.svg") no-repeat center center/cover; 
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: bold;
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  transition: all 0.3s ease; /* スムーズな変化 */
}

.service-list li:hover {
  filter: brightness(1.05);            /* 少し明るく */
  transform: translateY(-2px);         /* 少し上に浮かせる */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 影をつける */
  cursor: pointer;                     /* カーソルをポインターに */
}

.service-list li.wide {
  grid-column: span 2;
}


.right-image {
  max-width: 1000px; /* ← お好みのサイズに調整 */
  width: 100%;
  margin-top: 50px;
  height: auto;
  margin: 0 auto;
  display: block;
}


.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: transparent; /* ← 白い背景を無効に */
  object-fit: contain;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  display: block;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}




/* メディアプランニング用の独自レイアウト */
.service-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.service-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.service-row.center {
  justify-content: center;
}

.service-item {
  background: url("../images/common/bg01.svg") no-repeat center center/cover; 
  border-radius: 10px;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  width: 100%;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.4;
  cursor: pointer;
}

/* イベント / 体験設計の横幅調整 */
.service-list li.wide {
  grid-column: span 2;
  width: 100%;
}


.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 横3つに固定 */
  gap: 5px;
  justify-items: center;
  width: 100%;
  max-width: 1200px; /* 画面サイズに応じて拡大制限もできる */
  margin: 0 auto;
  padding: 22px;
  box-sizing: border-box;
}

.category-box {
  aspect-ratio: 1 / 1; /* 正方形を保つ */
  width: 100%;
  max-width: 360px;  /* 必要に応じて調整（画面が広がったときの拡大上限） */
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}


.category-box.media .service-list li {
  background: url("../images/common/bg01.svg") no-repeat center center/cover; 
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: bold;
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

/* 横長アイテム（グリッド2列分使う） */
.category-box.media .service-list li.wide {
  grid-column: span 2;
  width: 100%;
}



@media screen and (max-width: 768px) {
  .center-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  .button-group{
    margin-bottom: 20px;
  }
  
  .service-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
  }

  .category-box {
    width: 100%;
    max-width: 95%;
    height: auto !important;
    padding: 1px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .category-title {
    width: 100%;
    font-size: 1rem;
    padding: 8px 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
  }

  .service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-items: center;
  }

  .service-list li {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 10px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .service-list li.wide {
    grid-column: span 2;
    max-width: 100%;
  }

  .twentyfour-services-section .left-text .main-title {
    font-size: 2.4rem !important;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 20px;
  }

  .twentyfour-services-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .twentyfour-services-section .row.align-items-center {
    flex-direction: column;
  }

  .twentyfour-services-section .left-text,
  .twentyfour-services-section .right-text {
    width: 100%;
  }

  .twentyfour-services-section .right-text .lead {
    font-size: 1.0rem; /* 文字サイズを小さめに調整 */
    line-height: 1.8;    /* 行間も少し詰める */
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }

  .heropro-logo img {
    height: 1.4em; /* お好みで調整。文字と揃うサイズ感に */
    vertical-align: middle;
  }

  .service-heading {
    font-size: 1.4rem; /* スマホで収まるサイズに調整 */
    line-height: 1.5;
    text-align: center;
    padding: 0 22px; /* 画面端との余白調整 */
  }
  .text-center.sp-padding {
    padding: 0 22px;
    font-size: 0.9rem;
  }
  

  .service-footer {
    text-align: center;
    font-size: 24px;
    line-height: 1.8;
    padding: 0 22px;
  }

  .footer-logo-wrap img.heropro-logo-bot {
    max-width: 150px;
    height: auto;
    vertical-align: middle;
  }

  .footer-line-1 {
    white-space: nowrap;
    font-size: 18px;
  }

  .footer-line-2 {
    white-space: nowrap;
    font-size: 18px;
  }

  .football-brand-section .left-image,
  .football-brand-section .right-image {
    padding-left: 22px;
    padding-right: 22px;
    width: 100%;
    box-sizing: border-box;
  }

  .section-hero-message {
    padding-top: 30px !important;  /* 例えば 30px に縮小 */
    padding-bottom: 30px !important; /* 下側も必要に応じて調整 */
  }

  .football-brand-section {
    padding-top: 80px; /* 上の余白を縮める */
    padding-bottom: 40px;
  }

  .football-brand-section .brand-title {
    padding-left: 30px; /* タイトルを少し右に寄せる */
    text-align: left; 
  }
  
}

/* PCでは改行タグ非表示 */
@media screen and (min-width: 769px) {
  .sp-only {
    display: none;
  }
}


/* 戦略 / 企画設計（黄色〜緑） */
.category-box.strategy .service-list li  {
  background: linear-gradient(135deg, #fffccd, #c9f5c1);
}
.f1 {
  background: linear-gradient(135deg, #fffccd, #c9f5c1);
}

/* メディアプランニング / 運用（水色〜緑） */
.category-box.media .service-list li {
  background: linear-gradient(135deg, #ccf3ff, #c1f5dc);
}
.f2 {
  background: linear-gradient(135deg, #ccf3ff, #c1f5dc);
}

/* SNS / コミュニティ（青〜オレンジ） */
.category-box.sns .service-list li {
  background: linear-gradient(135deg, #c8eaff, #fce0c0);
}
.f3 {
  background: linear-gradient(135deg, #c8eaff, #fce0c0);
}

/* イベント / 体験設計（緑〜青） */
.category-box.event .service-list li {
  background: linear-gradient(135deg, #c8fdd0, #d0e7ff);
}
.f4 {
  background: linear-gradient(135deg, #c8fdd0, #d0e7ff);
}

/* 制作 / クリエイティブ（ピンク〜オレンジ） */
.category-box.creative .service-list li {
  background: linear-gradient(135deg, #cceeff, #fff0cc);
}
.f5 {
  background: linear-gradient(135deg, #cceeff, #fff0cc);
}

/* 効果検証 / 改善（青〜ベージュ） */
.category-box.analysis .service-list li {
  background: linear-gradient(135deg, #ffd7e9, #ffe8cc);
}
.f6 {
  background: linear-gradient(135deg, #ffd7e9, #ffe8cc);
}


.service-heading {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 24px;
  line-height: 1.8;
}

.service-heading .heropro-logo {
  display: inline-block;
  vertical-align: middle;
  margin: 0 4px;
}

.service-heading .heropro-logo img {
  height: 1.0em;
  vertical-align: text-bottom;
  position: relative;
  top: -1px; /* 上に1pxずらす */
}

.heropro-logo-bot{
  width: 100%;
  max-width: 160px;
  position: relative;
  top: -3px; /* 位置調整（任意） */
  vertical-align: middle;
}

.service-footer {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 24px;
}

.brand-text {
  margin-bottom: 0;
}

.left-image {
  margin-top: -10px;
}



/* -------------------------------
	WORKS
-------------------------------- */

.works-section {
  padding: 22px 22px 60px 22px;
  background-color: #fff;
  font-family: 'Hiragino Sans', '游ゴシック体', sans-serif;
}

.works-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-start; /* ← 中央から左詰めに変更 */
}

.work-item {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.work-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 12px;
}

.work-item .title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 10px;
}

.work-item h5 {
  font-weight: bold;
  font-size: 1rem;
  margin: 0 0 6px;
}

.work-item .description {
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}

.pagination {
  display: flex;
  justify-content: center;  /* ← ボタンとページ情報を中央寄せ */
  align-items: center;
  gap: 16px;                 /* ボタンとページ番号の間隔 */
  margin-top: 30px;          /* 上の要素との余白 */
  text-align: center;
}

.pagination button {
  padding: 8px 16px;
  margin: 0 8px;
  font-weight: bold;
  background-color: #eee;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.pagination button:hover {
  background-color: #ccc;
}

.pagination .page-info {
  font-weight: bold;
  font-size: 1rem;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
  .works-container {
    flex-direction: column;
    align-items: center;
  }
}




/* -------------------------------
	PROFILE
-------------------------------- */

.team-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px; /* 余白を狭く */
  padding: 40px 80px;
}

.team-member {
  width: calc(33.333% - 14px); /* 横3列でgapに合わせて調整 */
  text-align: center;
}

.main-photo {
  width: 100%;
  max-width: 360px; /* 少し大きめ */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* object-fit: contain; */
  border-radius: 6px;
  background-color: #f0f2f8;
  margin: 0 auto 10px;
  object-position: center 12%; /* 少し上に寄せる */
}

.thumbnails {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 8px 0;
}

.thumbnails img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  /* object-fit: contain; */
  background-color: #f0f2f8;
  border-radius: 4px;
  border: 1px solid #ddd;
  object-position: center 12%; /* 少し上に寄せる */
}

.position {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 2px;
}

h3 {
  margin: 4px 0 2px;
  font-weight: bold;
  font-size: 1.1rem;
}

.name-en {
  margin: 0 0 8px;
  color: #555;
  font-size: 0.85rem;
}

.sns-icons {
  margin-top: 6px;
}

.sns-icons img {
  width: 18px;
  height: 18px;
  margin: 0 3px;
  vertical-align: middle;
}

.thumbnails img {
  cursor: pointer;
  opacity: 0.4; /* 初期状態は薄く */
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.thumbnails img:hover {
  transform: scale(1.05);
}

.thumbnails img.active {
  opacity: 1; /* 選択中は濃く */
}

/* モバイル用 */
@media screen and (max-width: 768px) {
  .team-section {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 22px 10px;
  }

  .team-member {
    width: 100%;
    max-width: 360px;
  }

  .main-photo {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    /* object-fit: contain; */
    object-fit: cover;
    border-radius: 6px;
    background-color: #f0f2f8;
    margin: 0 auto 10px;
  }

  .thumbnails img {
    width: 100px;
    height: 100px;
    /* object-fit: contain; */
    object-fit: cover;
  }
}
  