/*
Theme Name: Lightning Child
Theme URI:
Template: lightning
Description: Lightning Child
Author: Ryo Seikai
*/

/* ★試合結果一覧関連 */

/* 横スクロール用ラッパー */
.game_result_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* テーブル全体 */
.game_result {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    min-width: 600px; /* モバイルで潰れすぎないように最低幅設定 */
    white-space: nowrap; /* 折り返し防止 */
	margin-bottom: 20px;
}

/* ヘッダーとセル */
.game_result th,
.game_result td {
    border: 1px solid #ccc;
    padding: 8px;
}

/* 1列目（試合日）固定 */
.game_result th:first-child,
.game_result td:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
}

/* 左上セルは最前面に */
.game_result thead th:first-child {
    z-index: 3;
}

/* リンクの装飾（必要に応じて調整） */
.game_result a {
    color: inherit;
    text-decoration: underline;
}

/* フォーム関連 */

/* form-group 全体の余白 */
.form-group {
  margin-bottom: 1.2em;
}

.form-group label {
  display: block;
  margin-bottom: 0.4em;
  font-weight: bold;
}

/* 姓・名を横並びに */
.wpcf7 .name-wrap {
  display: flex;
  gap: 10px;
}

/* flex の子要素は span.wpcf7-form-control-wrap */
.wpcf7 .name-wrap > .wpcf7-form-control-wrap {
  flex: 1;
  min-width: 0;
}

/* 入力欄を100%に広げる */
.wpcf7 .name-wrap input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}

/* スマホでは縦並び */
@media (max-width: 600px) {
  .wpcf7 .name-wrap {
    flex-direction: column;
  }
}