.link-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  max-width: 280px;
  margin: 0.8rem 0;
  transition: box-shadow 0.2s;
  cursor: pointer;
}
.link-card .banner-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.link-card .banner-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.link-card .banner-text {
  padding: 0.6rem 0.8rem;
  background: #fff;
}
.link-card .link-card-title {
  color: #222;
  font-size: 0.9rem;
  font-weight: bold;
  margin: 0 0 0.2rem;
  line-height: 1.5;
}
.link-card .link-card-domain {
  font-size: 0.75rem;
  color: #888;
  margin: 0;
}
.link-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.entry-fixed-btn {
  position: fixed;
  top: 10%;
  right: max(0.5rem, calc((100vw - 1280px) / 2 - 8rem));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: radial-gradient(circle, #ffe1f5, #feb4e1);
  color: #000;
  border: 2px solid #462208;
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.entry-fixed-btn:hover {
  opacity: 1;
}
@media (max-width: 1260px) {
  .entry-fixed-btn {
    top: auto;
    bottom: 1rem;
    right: clamp(0.5rem, 2vmin, 1rem);
    width: clamp(2.25rem, 10vmin, 3.5rem);
    height: clamp(2.25rem, 10vmin, 3.5rem);
    font-size: clamp(0.55rem, 2.5vmin, 0.75rem);
  }
}
html.is-mobile-portrait .entry-fixed-btn {
  top: auto;
  bottom: 1rem;
  right: clamp(0.5rem, 2vmin, 1rem);
  width: clamp(2.25rem, 10vmin, 3.5rem);
  height: clamp(2.25rem, 10vmin, 3.5rem);
  font-size: clamp(0.55rem, 2.5vmin, 0.75rem);
}
.event-nav-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.event-nav-btn-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}
.event-nav-btn-item > .hex-btn {
  grid-column: 2;
}
.event-nav-btn-item .apply-btn-note {
  grid-column: 3;
  padding-left: 0.8rem;
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}
.schedule-section {
  margin-bottom: 2rem;
  padding-left: 3px;
  padding-right: 3px;
}
.eve-schedule {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.eve-schedule th:nth-child(1) {
  width: 12%;
}
.eve-schedule th:nth-child(2) {
  width: 66%;
}
.eve-schedule th:nth-child(3) {
  width: 22%;
}
.eve-schedule th {
  background: #3c3c3c;
  color: #eee;
  padding: 0.5rem 0.8rem;
  text-align: center;
  font-weight: bold;
  white-space: nowrap;
}
.eve-schedule th[data-sort-key] {
  cursor: pointer;
  user-select: none;
}
.eve-schedule th[data-sort-key]:hover {
  background: #505050;
}
.eve-schedule .sort-indicator {
  font-size: 0.75em;
  margin-left: 4px;
  color: #888;
}
.eve-schedule .sort-indicator.active {
  color: #c9a050;
}
.eve-schedule td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}
.eve-schedule tr.evesc-row {
  transition: background 0.15s;
}
.eve-schedule tr.evesc-row:hover {
  background: rgba(139,69,19,0.08);
}
.eve-schedule tr.clickable {
  cursor: pointer;
}
.eve-schedule .loading-text {
  text-align: center;
  padding: 1rem;
  color: #888;
}
#descriptions {
  margin-top: 2rem;
}
.event-detail {
  max-width: 900px;
  width: calc(100% - 2rem);
  box-sizing: border-box;
  margin: 0 auto 1.5rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 1.5rem;
  scroll-margin-top: var(--nav-offset, 6rem);
}
.event-detail-title {
  font-size: 1.3rem;
  color: #2b140b;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #8b4513;
}
.event-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.event-detail-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.event-detail-table td:first-child {
  white-space: nowrap;
  font-weight: bold;
  width: 7rem;
  color: #555;
}
.event-detail-table a {
  color: #8b4513;
  word-break: break-all;
}
.event-comment {
  margin-top: 0.8rem;
  line-height: 1.7;
  color: #333;
}
.event-comment a {
  color: #8b4513;
}
.apply-link-wrap {
  text-align: center;
  margin: 1.5rem 0;
}
.back-to-schedule {
  display: inline-block;
  margin-top: 0.8rem;
  color: #8b4513;
  text-decoration: none;
  font-size: 0.9rem;
}
.back-to-schedule:hover {
  text-decoration: underline;
}
.event-note {
  background: #fff8f0;
  border-left: 4px solid #c9a050;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}
.entry-form-desc {
  margin-bottom: 0.8rem;
  line-height: 1.7;
  color: #333;
  font-size: 0.95rem;
}
.entry-form-dl {
  margin: 1.2rem 0;
}
.entry-form-dl dt {
  font-weight: bold;
  color: #555;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.entry-form-dl dd {
  margin: 0;
}
.entry-form-dl dd input[type="text"],
.entry-form-dl dd input[type="email"] {
  padding: 0.4rem 0.6rem;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 0.95rem;
  width: 100%;
  max-width: 24rem;
  box-sizing: border-box;
}
.entry-form-dl dd select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 0.95rem;
  min-width: 14rem;
}
@media (max-width: 1260px) {
  .event-nav-btn-item {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.4rem;
  }
  .event-nav-btn-item .apply-btn-note {
    padding-left: 0;
  }
  .eve-schedule {
    font-size: 0.82rem;
  }
  .eve-schedule th,
  .eve-schedule td {
    padding: 0.4rem 0.5rem;
  }
  .event-detail {
    padding: 1rem;
  }
  .event-detail-table td:first-child {
    width: 5rem;
  }
  .entry-form-dl input[type="text"],
  .entry-form-dl input[type="email"] {
    max-width: 100%;
  }
  .entry-form-dl select {
    min-width: 100%;
    width: 100%;
  }
}
html.is-mobile-portrait .event-nav-btn-item {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.4rem;
}
html.is-mobile-portrait .event-nav-btn-item .apply-btn-note {
  padding-left: 0;
}
html.is-mobile-portrait .eve-schedule {
  font-size: 0.82rem;
}
html.is-mobile-portrait .eve-schedule th,
html.is-mobile-portrait .eve-schedule td {
  padding: 0.4rem 0.5rem;
}
html.is-mobile-portrait .event-detail {
  padding: 1rem;
}
html.is-mobile-portrait .event-detail-table td:first-child {
  width: 5rem;
}
html.is-mobile-portrait .entry-form-dl input[type="text"],
html.is-mobile-portrait .entry-form-dl input[type="email"] {
  max-width: 100%;
}
html.is-mobile-portrait .entry-form-dl select {
  min-width: 100%;
  width: 100%;
}
