@charset "UTF-8";

html {
  font-size: 100%;
}
body {
  color: #24292e;
  padding-top: 150px; /* ヘッダーの高さに合わせて調整 */
  margin: 0;
  font-family: "BIZ UDPGothic", sans-serif;
  line-height: 1.6;
}

/* コンテンツの横幅制限＆中央寄せ */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}
img {
  max-width: 100%;
}
li {
  list-style: none;
}
h1{
color: #202bc1;
font-size:250%;
font-family: "BIZ UDPGothic", sans-serif;
text-align: center;
}
h2,footer{
text-align:center;
font-family: "BIZ UDPGothic", sans-serif;}
h2{
  position: relative;
  display: block; /* 下線をテキスト幅だけにする */
  padding-bottom: 6px; /* 下線との間隔 */
margin: 45px auto; /* 上下に40px、左右はautoで中央寄せ */
background-repeat:no-repeat;
background-position:center bottom;
background-size:220px 28px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0; /* h2の下端 */
  left: 50%; /* 真ん中から配置 */
  transform: translateX(-50%); /* 中央寄せ */
  width: 100px; /* 下線の長さ（調整可） */
  height: 2px; /* 下線の太さ（細く） */
  background-color: #202bc1; /* チームカラー */
  border-radius: 2px; /* 少し丸く */
}

h3 {
  position: relative;
  padding-left: 12px; /* 線と文字の間隔 */
}

h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px; /* 線の太さ */
  height: 100%;
  background-color: #202bc1; /* チームカラー */
  border-radius: 2px; /* 少し丸く */
}


/*-------------------------------------------
ヘッダー
-------------------------------------------*/

header {
  border-top: solid 10px #202bc1;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* 左 中央 右 */
  align-items: center;    /* 横方向中央寄せ */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /*上に表示する*/
  background-color: #fff; /*背景色*/
  border-bottom: 1px solid #202bc2; /*仕切り線*/
  padding: 8px 4%;
  box-sizing: border-box;
}


/* ロゴ画像のサイズ調整 */
header img {
  max-height: 70px; /* 高さを小さく */
  width: auto;      /* 縦横比維持 */
}

/* ナビ部分 */
header nav {
  margin-top: 6px; /* ロゴとメニューの間に余白 */
}

/* ナビリンクを右寄せ＆下寄せ */
nav {
  grid-column: 3;
  align-self: end; /* 下寄せ */
  justify-self: end; /* 右寄せ */
}
nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav li a {
  color: #24292e;
  text-decoration: none;
}
nav li a:hover {
  opacity: 0.8;
}
/*----------------
main
-----------------*/
#main p{
text-align:center;

}

/*-------------------------------------------
Mainvisual
-------------------------------------------*/
iframe{
max-width:100%;
}
#mv {
  margin-bottom: 80px;
}
#mv img {
  width: 100%;
  max-width: 1920px;
  height: 420px;
  object-fit: cover;
}

/*--------------------------
surada-
--------------------------*/
.slider {
  width: 100%;
  max-width: 600px;
  margin: auto;
  overflow: hidden; /* はみ出した部分を隠す */
  border-radius: 10px;
  position: relative;
}
.slides {
  display: flex;
  transition: transform 0.6s ease; /* スライドの動き */
}
.slides img {
  width: 100%;
  height: auto; 
  flex-shrink: 0; /* 画像の幅を固定 */
}
.dots {
  text-align: center;
  margin-top: 10px;
}
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}
.dot.active {
  background: #333;
}


/*-------------------------------------------
 監督の言葉 活動紹介
-------------------------------------------*/

.coach-name {
  margin-top: 1rem;
  font-weight: bold;
  color: #202bc1; /* 名前も青色に */
}

.coach-section {
  display: flex;
  align-items: flex-start; /* 上揃え */
  gap: 30px; /* 左右の間隔 */
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
}

.coach-section a{
    margin: 40px auto; /* 上下に40px、左右はautoで中央寄せ */

}
.coach-text {
  flex: 2; /* 左のテキストを広めに */
}

.coach-photo {
  flex: 1; /* 右は写真用 */
}

.coach-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* 角丸にする場合 */
}


.coach-text ul {
  padding-left: 20px;
  margin: 10px 0 20px 0;
}

.coach-text li {
  margin-bottom: 6px;
}

.coach-text ul li {
  border: 1px solid #202bc1; /* 枠線の色 */
  border-radius: 4px;         /* 角を少し丸くする場合 */
  padding: 8px 12px;          /* 中の余白 */
  margin-bottom: 8px;         /* li同士の間隔 */
  background-color: #f9f9f9;  /* 背景色（任意） */
}


.facebook-button {
  display: inline-block;
  background-color: #202bc1;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;

}

.facebook-button:hover {
  background-color: #151d8a;
    transform: translateY(-2px);

}


/*---------------------------------
teams
----------------------------------*/
#teams ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
#teams li {
  width: 48%;
  margin-bottom: 24px;
}

#teams li img:hover {
  opacity: 0.5;
  transition: 0.5s;
}

#teams img {
  max-width: 100%;
  max-height: 250px; /* 高さをそろえる */
  object-fit: contain; /* 画像がはみ出ないように */
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}
/*------------
news
-------------*/
#news {
  text-align: center;
  margin: 40px auto;
}

.news-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* 要素間の余白 */
  margin-top: 20px;
}

.news-links img {
  width: 50px;
  height: auto;
  transition: transform 0.2s ease;
}

.news-links img:hover {
  transform: scale(1.1);
}

.btn-link {
  display: inline-block;
  background-color: #202bc1;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;

}

.btn-link:hover {
  background-color: #1a229b;
  transform: translateY(-2px);
}

/*-----------------------------------------
goods
---------------------------------*/
#goods {
  text-align: center;
  margin: 40px auto;
}

#goods ul {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px; /* 要素間の余白 */
  flex-wrap: wrap; /* 画面幅が狭い時は折り返し */
  margin-top: 20px;
}

#goods li img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
}
#goods li img:hover {
  opacity: 0.5;
  transition: 0.5s;
}

/*-------------
sponsorオフィシャルスポンサー
---------------*/
.supporter-list{
  columns: 2; /* PCでは2列 */
  -webkit-columns: 2;
  -moz-columns: 2;
  list-style: disc;
  padding-left: 1.5em;

}
.supporter-list li{
    margin: 0 0 0.5em;

}


.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* 余白調整 */
  padding: 0;
  list-style: none;
}

.sponsor-list li {
  width: calc(50% - 10px); /* 2列になるように幅を調整 */
  box-sizing: border-box;
  display: inline-block; 
}



/* 協賛内容ボタン */
.btn-link-sponsor {
  display: inline-block;
    justify-content: center;
  padding: 10px 20px;
  background-color: #202bc1;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-link-sponsor:hover {
  background-color: #1a229b;
  transform: translateY(-2px);

}

/* 企業スポンサー（目立たせるカードデザイン） */

/* スポンサー一覧 */
.sponsor-widget {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* スポンサーカード */
.sponsor-card {
  background: #fff;
  border: 1px solid #202bc1;
  border-radius: 8px;
  width: 310px;  /* 横幅を310pxに固定 */
  padding: 16px;  /* 内側の余白を16pxとる */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center; /* カード内の要素を中央揃えに統一 */
  height: 130px;
  text-align: center; /* テキストを中央揃えに統一 */
}

/* ホバーアクション */
.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* スポンサー画像 */
.sponsor-card img {
  object-fit: contain;
  margin-bottom: 10px;
  display: block;
  max-width: 100%;

  max-height: 60px; /* ★高さを揃える（ここ調整ポイント） */
}

/* スポンサー名 */
.sponsor-card p {
  font-size: 25px; 
  margin: 0;
  color: #333;
}
/* ロゴ用ボックス（有無に関わらず高さを統一） */
.logo-box {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}


/* ロゴがない場合の調整 */
.sponsor-card.no-logo .logo-box {
  height: 40px; /* 空白を少し小さく */
}


/*-------------------------------------------
game
-------------------------------------------*/

/* カード全体の基本デザイン */
.event-schedule {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin: 1rem 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid #202bc1; /* チームカラーの青ライン */
}

.event-schedule:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* 大会タイトル */
.event-schedule h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

/* 定義リスト（dl）を縦型で見やすく */
.event-schedule dl {
  margin: 0;
}

.event-schedule dt {
  font-weight: bold;
  color: #202bc1;
  margin-top: 0.5rem;
}

.event-schedule dd {
  margin: 0 0 0.5rem 0;
  padding-left: 0.5rem;
  color: #333;
}

/* 主催者リスト */
.event-schedule ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
}


/*-----
試合風景
-----*/
.huukei img{
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.huukei ul {
  display: flex;
  flex-wrap: wrap;         /* 折り返し可能にする */
  gap: 20px;               /* 画像間の余白 */
  justify-content: center; /* 中央寄せ */
  padding: 0;
}

.huukei li {
  flex: 0 0 calc(50% - 20px); /* 横に2枚並べる（gap分マイナス） */
  text-align: center;
}


/*-------------------------------------------
Contact PHP
-------------------------------------------*/
form {
  max-width: 600px;
  margin: 0 auto;
}

form div {
  margin-bottom: 1.5em;
}

label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 1em;
  border-radius: 5px;
  box-sizing: border-box;
}

textarea {
  min-height: 150px;
  resize: vertical;
}
/*-----*/
#contact {
  text-align: center;
}
#contact p {
  margin-bottom: 64px;
}
#contact .button {
  margin: 0 auto;
  text-align: center;
  width: 200px;
  background-color: #202bc2;
  color: #fff;
  padding: 16px 0;
}
#contact .button:hover {
  background: #b9b9b9;
  color: #24292e;

}

/*--------------------------
フッター
------------------------*/
footer{
  border-top: solid 2px #202bc1;
  border-bottom: solid 10px #202bc1;
}

.company-link {
  color: #24292e;
  text-decoration: none;
  opacity: 0.9;
}

.company-link:hover {
  opacity: 0.7;
}

/* --------
上に戻る
---------- */
#backToTop {
  display: none; /* 最初は非表示 */
  position: fixed;
  bottom: 20px;   /* 画面下からの距離 */
  right: 20px;    /* 画面右からの距離 */
  z-index: 1000;  /* 手前に出す */
  background: #202bc1;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
}

#backToTop.show {
  display: block;
  opacity: 0.8;
}

#backToTop:hover {
  opacity: 1;
}

/*---------------------------
 sp 
---------------------------*/

/* ===== スマホ対応（幅768px以下） ===== */
@media (max-width: 768px) {
body {
  padding-top: 30px; /* headerの高さ + 少し余裕 */
}

  /*ヘッター*/
  nav ul {
    display: flex;        /* 横並びにする */
    justify-content: center; /* 中央寄せ */
    flex-wrap: wrap;
    gap: 10px;/* ナビの間隔を縮める */
    padding: 0;           /* 不要な余白を消す */
    margin: 0;
    list-style: none;     /* ・を消す */
  }
  nav li {
    display: inline-block;
  }

    nav li a {
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #202bc1;
    color: #fff;
    text-decoration: none;
  }

  header img {
    max-height: 40px; /* ロゴも小さめに */
  }

  header {
    display: block;   /* grid解除 */
    grid-template-columns: 1fr; /* 1カラムレイアウト */
    height: auto; /* 高さ自動 */
    position: relative; /* 固定解除 */
    padding: 8px 4%;
    height: auto;
  }

  nav {
    grid-column: unset;
    justify-self: unset;
    text-align: center;
  }
  nav li a:hover {
    opacity: 0.85;
  }
  h1 {
    font-size: 1.4rem; /* 見出し小さめに */
    line-height: 1.3;  /* 行間も詰める */
    margin: 0.5em 0;   /* 上下の余白も減らす */
  }

/* 監督の言葉　活動紹介 */
  .coach-section {
    flex-direction: column; /* 縦並び */
    align-items: center;
    text-align: center;
  }
  .coach-text{
    text-align: left;
  }
  .coach-photo {
    margin-top: 20px;
  }

  /* team 紹介　*/
  #teams ul {
    flex-direction: column; /* 縦並び */
    align-items: center;
    text-align: center;
  }

  #teams {
    display: block; /* flex解除して縦並び */
  }
  #teams li {
    width: 100%;  /* li幅いっぱい */
    margin-bottom: 20px;
  }
  #teams li img {
    width: 100%;  /* 画像も幅いっぱい */
    height: auto; /* 縦横比維持 */
  }
  
  section {
    padding: 0 8px; /* 左右の余白を減らす */
  }

  #teams ul,
  #goods ul {
    padding: 0;
    margin: 0 auto; /* 中央寄せは維持 */
  }

  #teams li,
  #goods li {
    width: 95%;      /* 少し余白を残して画面幅いっぱい */
    margin: 0 auto 20px auto; /* 上下間隔＋中央寄せ */
  }


/* game */
  .huukei ul{
    flex-direction: column; /* 縦並び */
    align-items: center;
    text-align: center;
  }

  
/* PCで横並びカードに */
  .event-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .event-schedule {
    flex: 1 1 calc(50% - 1rem);
  }


/*監督の*/
/* スマホ対応：縦並び */
  .coach-container {
    flex-direction: column;
    text-align: center;
  }

  .coach-text, .coach-photo {
    flex: 1 1 100%;
  }



/* スポンサー */
  .sponsor-card {
  width: 100%;     /* スマホで1列表示にしたいなら100% */
  height: auto;    /* ← 固定高さをやめる */
  min-height: 120px; /* 最低限の高さは確保しておくと崩れにくい */
}
 .sponsor-list li {
    width: 100%; /* スマホは1列 */
  }
  .supporter-list{
    columns: 1; /* スマホは1列 */
  }

}
