/* ナビ */
.otaku-select__nav {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #d0d0d0;
  border-radius: 1rem;
  margin-bottom: 32px;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.otaku-select__item {
  display: flex;
  width: 50%;
  text-align: center;
  font-weight: 700;
  position: relative;
  border: none;
}

.otaku-select__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background-color: #d0d0d0;
}

.otaku-select__item:hover {
  background: #f5f7f8;
}

.otaku-select__item a {
  margin: auto;
  padding: 16px 10px;
  width: 100%;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.otaku-select__item a:hover {
  text-decoration: none;
}

.otaku-select__item.active a {
  color: #0056b3;
}

/*チェキ集計画面*/
.ranking-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
padding: 0rem;
}

.ranking-card {
border-radius: 12px;
padding: 0.5rem;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
text-align: center;
font-family: 'Helvetica Neue', sans-serif;
}

.rank-icon {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}

img.member-icon {
width: 5rem;
border-radius: 50%;
}

.information {
border-radius: 6px;
}

.member-name {
font-size: 1.7rem;

margin-top: 0.3rem;
filter: invert(100%) grayscale(100%) contrast(100);
}

.quantity {
font-size: 2rem;
font-weight: bold;
filter: invert(100%) grayscale(100%) contrast(100);
}

.future-quantity {
  font-size: 0.9rem;
  filter: invert(100%) grayscale(100%) contrast(100);
}

/*for SP*/
@media screen and (max-width:768px) {
    .member-name {
        font-size: 1.2rem;
    }
    img.member-icon {
        width: 5rem;
    }
}

/*スケジュール画面*/
/* テーブル全体 */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.95rem;
  color: #333;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

/* ヘッダー */
.modern-table thead {
  background-color: #f7f7f7;
  color: #555;
}

.modern-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
}

.no-wrap {
  width: 0;
  white-space: nowrap;
}

.canceled {
  background-color: #f5f5f5;
  opacity:  0.5;
}

/* ボディ */
.modern-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.week-divide {
  border-top: 1.5px dashed #ccc;
}

/* 行ホバー */
.modern-table tbody tr:hover {
  background-color: #f9fafb;
  transition: background-color 0.3s;
}

/* 今日の日付の行に色 */
.modern-table tr.today {
  background-color: #fffbe6 !important;
}

/* チケ+D代の条件付きハイライト */
.modern-table td.highlight {
  background-color: #fff0d6;
}

.alert {
  font-size: 0.8rem;
  color:#fff;
  background-color: #cc0000;
  border-radius: 50%;
  padding: 2px 4px;
  width: max-content
}

/* 合計行 */
.modern-table .total-row {
  background-color: #f0f4f8;
  font-weight: bold;
}

/* リンク */
.modern-table a {
  color: #007acc;
  text-decoration: none;
}
.modern-table a:hover {
  text-decoration: underline;
}

.venue-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.venue-modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
  margin-top: 0;
}

.close-btn {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/*スケジュール登録フォーム*/
.schedule-form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 720px;
  margin: auto;
  font-family: "Helvetica Neue", sans-serif;
}

.schedule-form dl {
  margin-bottom: 1.5rem;
}

.schedule-form dt {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.schedule-form dd {
  margin: 0;
}

.schedule-form input[type="text"],
.schedule-form input[type="url"],
.schedule-form input[type="number"],
.schedule-form input[type="date"],
.schedule-form input[type="datetime-local"],
.schedule-form select,
.schedule-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.schedule-form .error input,
.schedule-form .error select,
.schedule-form .error textarea {
  border-color: #e00;
  background-color: #fee;
}

.schedule-form .error span {
  color: #e00;
  font-size: 0.85rem;
}

.schedule-form .checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.schedule-form .actions {
  text-align: center;
  margin-top: 2rem;
  justify-content: flex-end;
  gap: 1rem;
}

.schedule-form button {
  background-color: #6c5ce7;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
}

.schedule-form button:hover {
  background-color: #5a4bd4;
}

.form-section {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.form-section dl {
  margin-bottom: 1.5rem;
}

.form-section dt {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-section dd {
  margin: 0;
}

.inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.price-field {
  width: 50%;
}

.custom-checkbox {
  display: inline-block;
  margin-top:  1.3rem;
  position: relative;
  cursor: pointer;
  padding: 0.5rem 0.5rem 0.5rem;
  border-radius: 10px;
  border: 2px solid #ccc;
  background-color: white;
  font-weight: 500;
  color: #333;
  user-select: none;
  transition: all 0.2s ease-in-out;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.custom-checkbox.checked {
  background-color: #6C5CE7;
  border-color: #6C5CE7;
  color: white;
}

.otaku-select {
  border-radius: 7px;
  border-color: #ccc;
}

a.delete-btn {
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

button[type="submit"] {
  background: #6C5CE7;
  color: white;
}

a.delete-btn {
  background: #d63031;
  color: white;
}

.ui-autocomplete {
  max-height: 300px;
  max-width: 60%;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  z-index: 10000 !important; /* モーダルなどと重なってもOKに */
}

.ui-menu-item {
  padding: 5px 12px;
  cursor: pointer;
}

.ui-menu-item:hover {
  background-color: #f0f0f0;
  color: #333;
}

/*コール画面用*/
.song-container {
 max-width: 720px;
 margin: 0 auto;
 padding: 1rem;
}

.page-header {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: bold;
}

.song-index {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.song-index h2 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.song-index ul {
  list-style: disc inside;
  margin-bottom: 1rem;
}

.song-index a {
  text-decoration: none;
}

.song-index a:hover {
  text-decoration: underline;
}

.add-button {
  display: inline-block;
  background-color: #7c3aed;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.song-index .add-button:hover {
  background-color: #6d28d9;
}

.song-detail {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.song-detail h2 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #222;
}

.song-detail h2 a {
  font-size: 0.9rem;
  margin-left: 0.5rem;
  text-decoration: none;
}

.song-detail h2 a:hover {
  text-decoration: underline;
}

.song-detail p {
  white-space: pre-wrap;
  color: #555;
  line-height: 1.6;
}

.song-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));*/
  gap: 0.8rem;
}

.song-item {
  background: #f9f9fb;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: background 0.2s, transform 0.2s;
}

.song-item:hover {
  background: #f0ebff;
  transform: translateY(-2px);
}

.song-icon {
  font-size: 1.1em;
}
