@charset "UTF-8";

.golf-distance-table-page {
  max-width: 1200px;
}

.club-distance-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.club-setting-box,
.club-capture-area {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
}

.club-setting-box {
  background: #fbfcfe;
}

.club-setting-title h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
}

.club-setting-title p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.club-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.club-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.club-preset-btn {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.club-preset-btn:hover {
  transform: translateY(-1px);
  border-color: #111827;
  color: #111827;
}

.club-capture-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.club-capture-head strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #111827;
}

.club-capture-head p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

.club-capture-head span {
  color: #9ca3af;
  font-size: 13px;
  white-space: nowrap;
}

.club-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.club-distance-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.club-distance-table th,
.club-distance-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf1f5;
  border-right: 1px solid #edf1f5;
  font-size: 14px;
  text-align: center;
  color: #374151;
}

.club-distance-table th {
  background: #f8fafc;
  color: #111827;
  font-weight: 800;
}

.club-distance-table th:first-child,
.club-distance-table td:first-child {
  text-align: left;
  font-weight: 800;
  color: #111827;
}

.club-distance-table tr:last-child td {
  border-bottom: none;
}

.club-distance-table th:last-child,
.club-distance-table td:last-child {
  border-right: none;
}

.club-distance-table input {
  width: 86px;
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 10px;
  font-size: 14px;
  text-align: center;
  outline: none;
}

.club-distance-table input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

.club-total-cell,
.club-meter-cell,
.club-yard-cell {
  font-weight: 900;
  color: #111827;
}

.club-gap-good {
  color: #166534 !important;
  font-weight: 900;
}

.club-gap-warning {
  color: #b45309 !important;
  font-weight: 900;
}

.club-gap-danger {
  color: #b91c1c !important;
  font-weight: 900;
}

.club-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.club-summary-box {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8fafc;
}

.club-summary-box span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
}

.club-summary-box strong {
  display: block;
  font-size: 22px;
  color: #111827;
  font-weight: 900;
}

.club-analysis-box {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #f8fbff;
}

.club-analysis-box h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

#gapAnalysisResult {
  font-size: 14px;
  line-height: 1.8;
  color: #475569;
}

.club-analysis-list {
  margin: 0;
  padding-left: 18px;
}

.club-analysis-list li + li {
  margin-top: 6px;
}

.club-btn-row {
  justify-content: center;
}

.club-message {
  margin: 0;
  min-height: 22px;
  font-size: 14px;
  text-align: center;
  color: #4b5563;
}

.club-message.is-success {
  color: #166534;
  font-weight: 700;
}

.club-message.is-error {
  color: #b91c1c;
  font-weight: 700;
}

@media (max-width: 960px) {
  .club-option-grid,
  .club-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .club-distance-card,
  .club-setting-box,
  .club-capture-area {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .club-distance-card {
    padding: 18px;
  }

  .club-option-grid,
  .club-summary-grid {
    grid-template-columns: 1fr;
  }

  .club-capture-head {
    flex-direction: column;
  }

  .club-capture-head strong {
    font-size: 21px;
  }

  .club-summary-box strong {
    font-size: 20px;
  }
}