/* Concert Schedule CSS for WordPress Theme */
/* Based on concert-schedule app design */
/* Uses existing WordPress KV styling */

/* Base Font Setting */
.archive-concert {
  font-family: "Zen Old Mincho", serif;
}

/* Tabs Section */
.archive-concert .tabs-section {
  padding: 32px 0 24px;
}

@media (min-width: 768px) {
  .archive-concert .tabs-section {
    padding: 48px 0 32px;
  }
}

.archive-concert .tabs-wrapper {
  position: relative;
}

.archive-concert .tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 768px) {
  .archive-concert .tabs {
    flex-direction: row;
    gap: 48px;
  }
}

.archive-concert .tab-button {
  position: relative;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.05em;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 0;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  min-height: 60px;
  transition: color 0.3s;
  outline: none;
}

@media (min-width: 768px) {
  .archive-concert .tab-button {
    padding: 20px 0;
    border-bottom: none;
    min-height: auto;
  }

  .archive-concert .tab-button:last-child {
    border-bottom: none;
  }
}

.archive-concert .tab-button:hover,
.archive-concert .tab-button.active {
  color: black;
}

.archive-concert .tab-button:focus {
  outline: none;
}

.archive-concert .tab-button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: black;
}

.archive-concert .tabs-underline {
  display: none;
}

@media (min-width: 768px) {
  .archive-concert .tabs-underline {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #d1d5db;
  }
}

/* Loading */
.archive-concert .loading {
  text-align: center;
  padding: 32px 0;
}

.archive-concert .spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid black;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Main Content */
.archive-concert .content-area {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 768px) {
  .archive-concert .content-area {
    padding: 32px 0;
    gap: 32px;
  }
}

/* Container Width Override */
.archive-concert .wp-block-group.content-width {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 767px) {
  .archive-concert .wp-block-group.content-width {
    max-width: 100%;
    width: 92%;
    margin: 0 auto;
    padding: 0 8px;
  }
}

/* Concert Section */
.archive-concert .concert-section {
  margin-bottom: 32px;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid #e5e7eb;
  border-top: none !important;
}

.archive-concert .section-header {
  background-color: #e0e0e0;
  padding: 24px;
  border-top: none !important;
}

/* 黒い線完全除去 */
.archive-concert .section-header,
.archive-concert .section-header *,
.archive-concert .section-title,
.archive-concert .section-title *,
.archive-concert .section-info,
.archive-concert .section-info * {
  border-top: none !important;
  border-top-width: 0 !important;
  border-top-style: none !important;
  border-top-color: transparent !important;
}

@media (min-width: 768px) {
  .archive-concert .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.archive-concert .section-info {
  flex: 1;
}

.archive-concert .section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: black;
  letter-spacing: 0.05em;
  text-align: left;
  font-family: "Zen Old Mincho", serif;
  border-top: none !important;
  border: none !important;
}

@media (min-width: 768px) {
  .archive-concert .section-title {
    font-size: 1.25rem;
  }
}

.archive-concert .section-subtitle {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: #374151;
  margin-top: 8px;
  letter-spacing: 0.025em;
}

.archive-concert .section-dates {
  font-size: 1.125rem;
  color: #374151;
  letter-spacing: 0.025em;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .archive-concert .section-dates {
    font-size: 1.125rem;
  }
}

/* Detail Button */
.archive-concert .section-detail-button {
  margin-left: 16px;
}

@media (max-width: 767px) {
  .archive-concert .section-detail-button {
    margin-top: 16px;
    margin-left: 0;
  }
}

.archive-concert .detail-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: black;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  border-radius: 0;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-concert .detail-button:hover {
  background-color: #374151;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Concert Table */
.archive-concert .concert-table-container {
  padding: 0;
}

/* Mobile Table */
.archive-concert .mobile-table {
  display: block;
}

@media (min-width: 768px) {
  .archive-concert .mobile-table {
    display: none;
  }
}

.archive-concert .mobile-concert-item {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.archive-concert .mobile-concert-item:not(:first-child) {
  border-top: 1px solid #e5e7eb;
}

.archive-concert .mobile-date-status {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.archive-concert .mobile-date {
  font-size: 20px;
  font-weight: 500;
  color: black;
  letter-spacing: 0.025em;
}

.archive-concert .status-badge {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  width: 96px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.archive-concert .status-available {
  border: 2px solid black;
  color: black;
  background: transparent;
}

.archive-concert .status-soldout {
  border: 2px solid #ef4444;
  color: #ef4444;
  background: transparent;
}

.archive-concert .status-preparing {
  border: 2px solid #9ca3af;
  color: #9ca3af;
  background: transparent;
}

.archive-concert .mobile-section {
  border-top: 1px solid #f3f4f6;
  padding-top: 24px;
}

.archive-concert .mobile-section-title {
  font-size: 18px;
  color: #374151;
  font-weight: 500;
  margin-bottom: 16px;
}

.archive-concert .mobile-venue {
  font-size: 18px;
  color: black;
  font-weight: 500;
  letter-spacing: 0.025em;
  margin-bottom: 8px;
}

.archive-concert .mobile-prefecture {
  font-size: 18px;
  color: #6b7280;
  letter-spacing: 0.025em;
}

.archive-concert .mobile-time {
  font-size: 18px;
  color: black;
  letter-spacing: 0.025em;
}

.archive-concert .mobile-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.archive-concert .mobile-detail-button {
  display: flex;
  justify-content: flex-start;
}

.archive-concert .mobile-detail-btn {
  width: 192px;
  text-align: center;
}

.archive-concert .ticket-button {
  font-size: 1rem;
  background-color: black;
  color: white;
  padding: 12px 16px;
  letter-spacing: 0.025em;
  width: 192px;
  text-align: center;
  border-radius: 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.archive-concert .ticket-button:hover {
  background-color: #374151;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.archive-concert .mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.archive-concert .contact-name,
.archive-concert .contact-label,
.archive-concert .contact-phone {
  font-size: 18px;
  color: black;
  letter-spacing: 0.025em;
  font-weight: 500;
}

.archive-concert .contact-name a,
.archive-concert .contact-label a,
.archive-concert .contact-phone a {
  color: #2563eb;
  text-decoration: underline;
}

.archive-concert .contact-name a:hover,
.archive-concert .contact-label a:hover,
.archive-concert .contact-phone a:hover {
  color: #1d4ed8;
}

.archive-concert .contact-hours {
  font-size: 18px;
  color: #9ca3af;
  letter-spacing: 0.025em;
}

.archive-concert .contact-url a {
  color: #2563eb;
  text-decoration: underline;
  font-size: 18px;
}

.archive-concert .contact-url a:hover {
  color: #1d4ed8;
}

/* Desktop Table */
.archive-concert .desktop-table {
  display: none;
  overflow-x: visible;
}

@media (min-width: 768px) {
  .archive-concert .desktop-table {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 1000px) {
  .archive-concert .desktop-table {
    overflow-x: auto;
  }
}

.archive-concert .concert-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

@media (min-width: 768px) and (max-width: 1000px) {
  .archive-concert .concert-table {
    min-width: 1400px;
  }
}

.archive-concert .concert-table th {
  background-color: #fafafa;
  padding: 16px 16px;
  text-align: center;
  border-right: 1px solid #d1d5db;
  letter-spacing: 0.05em;
  font-size: 1.125rem;
  font-weight: 500;
  white-space: nowrap;
}

/* 5列テーブル（TOUR、DINNER SHOW）の列幅 */
.archive-concert .concert-table th:nth-child(1) { width: 16%; }
.archive-concert .concert-table th:nth-child(2) { width: 28%; }
.archive-concert .concert-table th:nth-child(3) { width: 18%; }
.archive-concert .concert-table th:nth-child(4) { width: 19%; }
.archive-concert .concert-table th:nth-child(5) { width: 19%; }

/* 6列テーブル（OTHER LIVE）の列幅 */
.archive-concert .concert-table.six-columns th:nth-child(1) { width: 14%; }
.archive-concert .concert-table.six-columns th:nth-child(2) { width: 22%; }
.archive-concert .concert-table.six-columns th:nth-child(3) { width: 16%; }
.archive-concert .concert-table.six-columns th:nth-child(4) { width: 18%; }
.archive-concert .concert-table.six-columns th:nth-child(5) { width: 18%; }
.archive-concert .concert-table.six-columns th:nth-child(6) { width: 12%; }

.archive-concert .concert-table th:last-child {
  border-right: none;
}

.archive-concert .concert-table td {
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid #e5e7eb;
}

.archive-concert .concert-table td:last-child {
  border-right: none;
}

.archive-concert .concert-table tr:not(:first-child) {
  border-top: 1px solid #e5e7eb;
}

.archive-concert .desktop-date {
  font-size: 18px;
  color: black;
  letter-spacing: 0.025em;
  font-weight: 500;
}

.archive-concert .desktop-status {
  font-size: 0.875rem;
  margin-top: 8px;
  letter-spacing: 0.025em;
  font-weight: 500;
  width: 96px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 8px auto 0;
}

.archive-concert .desktop-venue {
  font-size: 18px;
  color: black;
  letter-spacing: 0.025em;
  font-weight: 500;
  word-wrap: break-word;
  line-height: 1.3;
}

.archive-concert .desktop-prefecture {
  font-size: 1rem;
  color: #6b7280;
  margin-top: 4px;
  letter-spacing: 0.025em;
}

.archive-concert .desktop-time {
  font-size: 18px;
  color: black;
  letter-spacing: 0.025em;
  font-weight: 500;
}

.archive-concert .desktop-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.archive-concert .desktop-detail-button {
  display: flex;
  justify-content: center;
}

.archive-concert .desktop-detail-btn {
  width: 120px;
  text-align: center;
  padding: 8px 12px;
  font-size: 16px;
}

.archive-concert .desktop-ticket-button {
  font-size: 16px;
  background-color: black;
  color: white;
  padding: 12px;
  letter-spacing: 0.025em;
  width: 176px;
  text-align: center;
  border-radius: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.archive-concert .desktop-ticket-button:hover {
  background-color: #374151;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.archive-concert .desktop-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.archive-concert .desktop-contact-name,
.archive-concert .desktop-contact-label,
.archive-concert .desktop-contact-phone {
  font-size: 18px;
  color: black;
  letter-spacing: 0.025em;
  font-weight: 500;
}

.archive-concert .desktop-contact-name a,
.archive-concert .desktop-contact-label a,
.archive-concert .desktop-contact-phone a {
  color: #2563eb;
  text-decoration: underline;
}

.archive-concert .desktop-contact-name a:hover,
.archive-concert .desktop-contact-label a:hover,
.archive-concert .desktop-contact-phone a:hover {
  color: #1d4ed8;
}

.archive-concert .desktop-contact-hours {
  font-size: 1rem;
  color: #6b7280;
  margin-top: 4px;
  letter-spacing: 0.025em;
}

.archive-concert .desktop-contact-url a {
  color: #2563eb;
  text-decoration: underline;
}

.archive-concert .desktop-contact-url a:hover {
  color: #1d4ed8;
}

/* More Button */
.archive-concert .more-button-container {
  text-align: center;
  padding: 32px 0;
}

.archive-concert .more-button {
  padding: 16px 48px;
  font-size: 1.125rem;
  background-color: black;
  color: white;
  letter-spacing: 0.05em;
  border-radius: 0;
  min-height: 50px;
  border: 2px solid black;
  cursor: pointer;
  transition: all 0.2s;
}

.archive-concert .more-button:hover {
  background-color: #374151;
  border-color: #374151;
  color: white;
}

.archive-concert .more-button:focus {
  outline: none;
}

/* Empty State */
.archive-concert .empty-state {
  text-align: center;
  padding: 80px 0;
}

.archive-concert .empty-state p {
  font-size: 1.25rem;
  color: #6b7280;
}

/* Utility Classes */
.archive-concert .hidden {
  display: none !important;
}

/* Chevron Icon (CSS) */
.archive-concert .chevron-right {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

/* Concert Name Header for OTHER LIVE */
.concert-name-header {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
  letter-spacing: 0.025em;
}

.concert-name-row {
  background-color: #f9fafb;
  font-weight: 600;
  padding: 12px 16px !important;
  border-bottom: none !important;
}

.desktop-concert-name {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0.025em;
}