@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  scroll-padding: 100px;
}
@media screen and (max-width: 767px) {
  html {
    scroll-padding: 140px;
  }
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background: #ffe7c1;
  min-height: 100vh;
  /* padding: 20px; */
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  -webkit-box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
          box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
h1 a {
  color: #000;
}

a {
  text-decoration: none;
}

.tournament-selector {
  /* background: linear-gradient(45deg, #8e44ad, #3498db); */
  background: #27ae60;
  color: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: center;
}

.tournament-selector h2 {
  margin-bottom: 15px;
  font-size: 1.5em;
}

.tournament-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.section {
  width: 100%;
  margin-bottom: 40px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
}

.section:hover {
  -webkit-transform: translateY(-5px);
          transform: translateY(-5px);
  -webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
          box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.section h2 {
  color: #34495e;
  margin-bottom: 20px;
  font-size: 1.8em;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
}

.input-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.input-group.team {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 40%;
}
@media screen and (max-width: 767px) {
  .input-group.team {
    width: 30%;
  }
}
.input-group.score {
  width: 10%;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .input-group.score {
    width: 20%;
  }
}

div#archiveModal {
  margin-bottom: 40px;
}

select#team1,
select#team2 {
  width: 100%;
}

#score1,
#score2 {
  width: 100%;
}

.score-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
  width: 100%;
}
.score-wrap .input-group {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.input-group label {
  font-weight: bold;
  color: #2c3e50;
  min-width: 120px;
}

input,
select,
button,
textarea {
  padding: 12px;
  border: 2px solid #bdc3c7;
  /* border-radius: 8px; */
  font-size: 16px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #3498db;
  -webkit-box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
          box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

button {
  /* background: linear-gradient(45deg, #3498db, #2980b9); */
  background: #27ae60;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

button.button-delete {
  float: right;
}
@media screen and (max-width: 767px) {
  button.button-delete {
    margin-top: 20px;
    padding: 5px;
    float: none;
  }
}

button:hover:not(:disabled) {
  background: linear-gradient(45deg, #2980b9, #1abc9c);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  -webkit-transform: none;
          transform: none;
}

.tournament-selector select {
  background: white;
  color: #2c3e50;
  min-width: 200px;
}

.tournament-selector button {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
}

.tournament-selector button:hover:not(:disabled) {
  background: white;
  color: #3498db;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.team-item {
  background: linear-gradient(45deg, #f39c12, #e67e22);
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.team-item:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

.tournament-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tournament-card {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  padding: 20px;
  border-radius: 15px;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.tournament-card:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

.tournament-card h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
}

.tournament-card p {
  margin-bottom: 5px;
  opacity: 0.9;
}

.tournament-card .stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.match-table-container,
.league-table-container,
.ranking-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  max-width: 100%;
  width: 100%;
}

.match-table,
.league-table,
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.match-table {
  /* min-width: 900px; */
}

.league-table {
  /* min-width: 600px; */
}

.match-table th,
.match-table td,
.league-table th,
.league-table td,
.ranking-table th,
.ranking-table td {
  padding: 5px;
  text-align: center;
  border: 1px solid #ddd;
}

.match-table th,
.league-table th,
.ranking-table th {
  background: linear-gradient(45deg, #34495e, #2c3e50);
  color: white;
  font-weight: bold;
}

.match-table tr:nth-child(even),
.ranking-table tr:nth-child(even) {
  background: rgba(52, 152, 219, 0.1);
}

.match-table tr:nth-child(odd) {
  background: #fff;
}

.match-table tr:hover,
.ranking-table tr:hover {
  background: rgba(52, 152, 219, 0.2);
  -webkit-transform: scale(1.02);
          transform: scale(1.02);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.league-table .team-name {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  font-weight: bold;
}

.league-table .diagonal {
  background: linear-gradient(14deg, #95a5a6 49%, #34495e 50%, #95a5a6 51%);
}

.match-result-cell {
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.match-result-cell:hover {
  background: rgba(52, 152, 219, 0.2);
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

.match-result-cell.win {
  /* background: linear-gradient(45deg, #2ecc71, #27ae60); */
  background: #e74c3c;
  color: white;
}

.match-result-cell.loss {
  /* background: linear-gradient(45deg, #e74c3c, #c0392b); */
  background: #000;
  color: white;
}

.match-result-cell.draw {
  background: linear-gradient(45deg, #f39c12, #e67e22);
  color: white;
}

.ranking-table .rank-1 {
  background: linear-gradient(45deg, #f1c40f, #f39c12);
  color: white;
  font-weight: bold;
}

.ranking-table .rank-2 {
  background: linear-gradient(45deg, #95a5a6, #7f8c8d) !important;
  color: white;
  font-weight: bold;
}

.ranking-table .rank-3 {
  background: linear-gradient(45deg, #e67e22, #d35400);
  color: white;
  font-weight: bold;
}

.score {
  font-weight: bold;
  color: #e74c3c;
  font-size: 1.2em;
}

.vs {
  font-weight: bold;
  color: #34495e;
  margin: 0 10px;
}

.match-result {
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.match-result:hover {
  -webkit-transform: translateX(5px);
          transform: translateX(5px);
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.success {
  background: linear-gradient(45deg, #2ecc71, #27ae60);
  color: white;
}

.error {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
}

.loading {
  background: linear-gradient(45deg, #f39c12, #e67e22);
  color: white;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: bold;
}

.status-preparation {
  background: #f39c12;
  color: white;
}

.status-ongoing {
  background: #2ecc71;
  color: white;
}

.multi-group-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.group-section {
  /* flex: 1; */
  /* min-width: 400px; */
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 20px;
  -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 767px) {
  .group-section {
    min-width: 100%;
  }
}

#teamList .group-section {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.group-section h3 {
  color: #34495e;
  margin-bottom: 15px;
  font-size: 1.5em;
  text-align: center;
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  padding: 10px;
  /* border-radius: 10px; */
}

.group-teams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
@media screen and (max-width: 767px) {
  .group-teams {
    grid-template-columns: repeat(2, 1fr);
  }
}

.group-team-item {
  background: linear-gradient(45deg, #f39c12, #e67e22);
  color: white;
  padding: 10px;
  /* border-radius: 8px; */
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

div#matchTable {
  overflow-y: auto;
  height: 300px;
}

div#teamManagementSection {
  background: #fcffe7;
}

div#matchInputSection {
  background: #ebf7ff;
}

div#matchTableSection {
  background: #fff6e7;
}

div#leagueTableSection {
  background: #efefef;
}

div#rankingTableSection {
  background: #fff5f5;
}

.menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 40px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
}
@media screen and (max-width: 767px) {
  .menu {
    gap: 15px;
  }
}
.menu h3 {
  color: #fff;
  background: #e74c3c;
}
@media screen and (max-width: 767px) {
  .menu h3 {
    font-size: 14px;
  }
}
.menu h3 a {
  padding: 10px 20px;
  color: #fff;
  display: block;
}
@media screen and (max-width: 767px) {
  .menu h3 a {
    padding: 10px;
  }
}

/* アーカイブ関連スタイル */
.archive-btn {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.archive-modal-content {
  width: 100%;
  /* max-width: 1000px; */
  overflow: auto;
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  table-layout: fixed;
}

.archive-table th,
.archive-table td {
  padding: 10px;
  width: 120px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.archive-type-badge {
  background: #3498db;
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
}

span.close {
  width: 60px;
  font-size: 40px;
  color: #000;
  opacity: 0.6;
  text-align: right;
}

.restore-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  margin-right: 5px;
}

.delete-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.header-controls {
  margin-bottom: 20px;
}

.goTop {
  position: fixed;
  bottom: 0;
  z-index: 100;
  text-align: center;
  width: 100%;
}
.goTop a {
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  color: #fff;
  background: rgba(16, 123, 61, 0.8);
  padding-block: 10px;
  width: 100%;
  display: block;
  outline: 1px dashed #fff;
  outline-offset: -5px;
}

@media (max-width: 1024px) {
  .container {
    padding: 20px;
    /* overflow: hidden; */
  }
  h1 {
    font-size: 2em;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 10px;
    margin: 0;
    border-radius: 0;
    overflow-x: hidden;
  }
  h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .tournament-controls {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .section {
    padding: 20px;
    margin-bottom: 25px;
  }
  .section h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
  }
  .input-group {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    gap: 10px;
  }
  .input-group label {
    min-width: auto;
    font-size: 14px;
  }
  input,
  select,
  button,
  textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
  }
  .vs {
    text-align: center;
    margin: 10px 0;
    font-size: 1rem;
  }
  .team-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tournament-list {
    grid-template-columns: 1fr;
  }
  .team-item {
    padding: 12px;
    font-size: 14px;
  }
  .match-table,
  .league-table,
  .ranking-table {
    font-size: 12px;
    /* min-width: 800px; */
  }
  .league-table {
    /* min-width: 400px; */
  }
  .match-table th,
  .match-table td,
  .league-table th,
  .league-table td,
  .ranking-table th,
  .ranking-table td {
    padding: 8px 4px;
    white-space: nowrap;
  }
  .match-table th,
  .league-table th,
  .ranking-table th {
    font-size: 11px;
  }
  .score {
    font-size: 14px;
  }
}/*# sourceMappingURL=style.css.map */