/* =========================================================
   SPERIO JOHOKU (スペリオ城北) 専用スタイル
========================================================= */

/* ベースカラー（エメラルドグリーン） */
:root {
  --spejo-color: #2fb5bc;
}
.bread {
    display: flex;
    max-width: 996px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 24px;
    font-size: 14px;
}

/* ★タブのデフォルトスタイル（マルポチ）を解除 */
.recruit-tabs li {
    list-style: none;
}

/* ★募集職種などのh3タイトルを大きく、左ボーダーを追加 */
.recruit-section h3 {
    font-size: 2rem;
    font-weight: bold;
    border-left: 4px solid #000;
    padding-left: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
    clear: both;
}

/* --------------------------------------
 * 1. ヘッダー部分（ロゴとタイトル）
 * -------------------------------------- */
.spejo_header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

/* ロゴの枠 */
.spejo_logo_wrap {
  width: 150px; /* ロゴの大きさに合わせて調整してください */
  margin-right: 30px;
}
.spejo_logo_wrap img {
  width: 100%;
  height: auto;
}

/* タイトル部分 */
.spejo_title_wrap {
  flex: 1;
}

/* メインタイトル（SPERIO JOHOKU） */
.spejo_main_title {
  color: var(--spejo-color) !important; /* ベースカラーを適用 */
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
  text-align: left; /* 左寄せ */
}

/* Sの赤文字を打ち消し、全て同じ色にする場合 */
.spejo_main_title .f-red {
  color: var(--spejo-color) !important;
}

/* サブタイトル（スペリオ城北） */
.spejo_sub_title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #000;
}


/* --------------------------------------
 * 2. 説明文
 * -------------------------------------- */
.spejo_desc_text {
  font-size: 2rem;
  line-height: 1.8;
  font-weight: bold;
  color: #333;
  margin-bottom: 50px;
}


/* --------------------------------------
 * 3. インフォメーション ＆ メンバーエリア（横並び）
 * -------------------------------------- */
.spejo_info_area {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px;
}


/* --------------------------------------
 * 3-1. 左側：ホームタウン・所属リーグ
 * -------------------------------------- */
.spejo_info_list {
  flex: 1; /* 左側の幅を自動調整 */
}

.spejo_info_list dl {
  display: flex;
  margin-bottom: 20px;
  line-height: 1.6;
}

.spejo_info_list dt {
  color: var(--spejo-color);
  font-weight: bold;
  width: 130px; /* 見出しの幅を固定して揃える */
  flex-shrink: 0;
}

.spejo_info_list dd {
  font-weight: bold;
  color: #333;
  margin: 0;
}


/* --------------------------------------
 * 3-2. 右側：メンバー（大津・木暮・酒井）
 * -------------------------------------- */
.spejo_member_list {
  display: flex;
  background-color: #fff; /* 白い背景 */
  padding: 30px;
  border-radius: 10px;    /* 角丸 */
  gap: 30px;              /* メンバー間の余白 */
  box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* 軽い影をつける */
}

.spejo_member_box {
  text-align: center;
  width: 120px;
}

/* メンバーの丸い画像 */
.spejo_member_img {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #eee; /* 画像が入るまでの仮背景色 */
}

.spejo_member_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 役職（オーナー/監督など） */
.spejo_member_role {
  color: var(--spejo-color);
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

/* 名前 */
.spejo_member_name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #000;
}

/* 最初の1文字の赤色をリセットする場合 */
.spejo_member_name .f-red {
  color: inherit;
}

/* =========================================================
   ★共同オーナーセクション用スタイル (image_5.png デザイン)
========================================================= */

/* セクション全体の余白調整 */
.spejo_owner_section {
  padding: 60px 15px 0 15px;
}

/* セクションタイトル */
.spejo_owner_section .project_event_title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 60px;
  text-align: left;
  color: var(--spejo-color) !important; /* 青緑色 */
  font-size: 2.2rem;
  font-weight: bold;
}

/* タイトル内の特定テキストの色変更 */
.spejo_owner_section .project_event_title .spejo-text {
  color: var(--spejo-color);
}

/* ロゴマーク画像枠 */
.spejo_logo_small {
  width: 40px; /* サイズは適宜調整 */
  margin-right: 15px;
}
.spejo_logo_small img {
  width: 100%;
  height: auto;
}

/* オーナーリストのグリッド (3列) */
.spejo_owner_section .owner_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列 */
  gap: 60px 40px; /* 縦の余白60px、横の余白40px */
}

/* 各オーナーボックス (フレックスコンテナ) */
.owner_box {
  display: flex;
  align-items: start; /* 上端合わせ */
  gap: 20px; /* 画像とテキストの間の余白 */
}

/* 円形画像全体のラッパー */
.owner_img_wrap {
  width: 160px; /* 画像サイズ */
  flex-shrink: 0;
}

/* 円形の背景色レイヤー */
.owner_img_bg {
  position: relative;
  width: 160px;
  height: 160px;
  background-color: #d8f5f6; /* 薄い青緑色の背景 */
  border-radius: 50%; /* 正円 */
  overflow: hidden;
}

/* 正円の画像 */
.owner_img {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 50%;
  overflow: hidden;
}
.owner_img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 比率を保ってトリミング */
}

/* 情報と経歴のフレックスコンテナ */
.owner_info_career {
  flex: 1;
  gap: 20px;
}

/* オーナー情報 */
.owner_info .owner_role {
  color: var(--spejo-color);
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 5px;
}
.owner_info .owner_name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 5px;
}
.owner_info .owner_team {
  font-size: 1rem;
  color: #333;
}

/* 経歴リスト */
.owner_career {
  list-style-type: none; /* デフォルトのリストマークを消す */
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666; /* 灰色 */
}
/* リストマーク「・」を追加 */
.owner_career li {
  position: relative;
  padding-left: 1em;
}
.owner_career li:before {
  content: "・";
  position: absolute;
  left: 0;
  color: #666; /* リストマークの色 */
}

/* --------------------------------------
 * スマホ用レスポンシブ対応
 * -------------------------------------- */
@media screen and (max-width: 768px) {
  /* ヘッダーを縦並びに */
  .spejo_header {
    flex-direction: column;
    align-items: flex-start;
  }
  .spejo_logo_wrap {
    margin-bottom: 20px;
  }

  /* ★タイトルのフォントサイズをスマホ画面幅(vw)に合わせて可変にする */
  .spejo_main_title {
    font-size: 9vw; 
  }
  
  /* ★サブタイトルをスマホに適したサイズに縮小 */
  .spejo_sub_title {
    font-size: 1.2rem;
  }
  
  /* ★説明文をホームタウン等と同じ基本サイズ(1rem)に縮小 */
  .spejo_desc_text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px; /* 余白もスマホ用に少し狭める */
  }
  
  /* インフォメーションエリアを縦並びに */
  .spejo_info_area {
    flex-direction: column;
    gap: 30px;
  }
  
  /* DLを縦並びに近い形に */
  .spejo_info_list dl {
    flex-direction: column;
  }
  .spejo_info_list dt {
    margin-bottom: 5px;
  }
  
  /* メンバーリストの余白調整 */
  .spejo_member_list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
  }

  /* ★募集職種タイトルのスマホサイズ調整 */
  .recruit-section h3 {
    font-size: 1.5rem;
  }

  /* --------------------------------------
   * ★スマホ用レスポンシブ対応 (オーナーセクション)
   * -------------------------------------- */
  /* タイトルサイズ縮小 */
  .spejo_owner_section .project_event_title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }
  
  /* グリッドを1列に */
  .spejo_owner_section .owner_list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* 各オーナーボックスを縦並びに */
  .owner_box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  
  /* リストマークを中央揃えに調整 */
  .owner_career li {
    padding-left: 0;
  }
  .owner_career li:before {
    display: none; /* スマホではマークを消す */
  }
}
/* =========================================================
   ★共同オーナーセクション用スタイル (画像重なり修正・完全版)
========================================================= */

.spejo_owner_section .project_event_title {
  color: var(--spejo-color) !important;
  font-size: 150%;
  font-weight: bold;
  margin-bottom: 40px;
}

/* 3列のグリッドレイアウト */
.owner_list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 50px 30px !important;
}

/* ★ここが最重要：HTMLの順番を無視して強制的に配置する */
.owner_box {
  display: grid !important;
  grid-template-columns: 130px 1fr !important; /* 左：画像130px、右：残り全部 */
  /* パズルのように名前をつけて配置します */
  grid-template-areas:
    "image info"
    "image career" !important;
  gap: 10px 20px !important;
  align-items: start !important;
  position: relative !important;
}

/* 左側の画像エリア */
.owner_img {
  grid-area: image !important; /* "image"の場所に配置 */
  position: static !important; /* 過去のabsoluteを強制解除して重なりを防止 */
  width: 130px !important;
  height: 130px !important;
  border-radius: 50% !important; /* まん丸にする */
  background-color: #aae0e2 !important; /* 水色の背景 */
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 丸枠の中に画像を綺麗に収める */
.owner_img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  position: static !important;
}

/* 右側・上段（テキスト） */
.owner_info {
  grid-area: info !important; /* "info"の場所に配置 */
}

.owner_role {
  color: var(--spejo-color);
  font-weight: bold;
  font-size: 85%;
  margin-bottom: 5px;
}
.owner_name {
  font-size: 120%;
  font-weight: bold;
  color: #000;
  margin-bottom: 5px;
}
.owner_team {
  font-size: 85%;
  color: #333;
}

/* 右側・下段（経歴） */
.owner_career {
  grid-area: career !important; /* "career"の場所に配置 */
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 80%;
  line-height: 1.6;
}
.owner_career li {
  position: relative;
  padding-left: 1em;
}
.owner_career li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* --------------------------------------
 * スマホ用レスポンシブ対応
 * -------------------------------------- */
@media screen and (max-width: 992px) {
  .owner_list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (max-width: 768px) {
  .owner_list {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .owner_box {
    grid-template-columns: 100px 1fr !important; /* スマホは画像を少し小さく */
  }
  .owner_img {
    width: 140px !important;
    height: 140px !important;
  }
}