@charset "UTF-8";

/*!
 * Events Style
 * Author: SSTA
 * Date: 2026-06-17
 */

/* ==============================================
   1. Container Settings
   ============================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 66px;
}

@media screen and (max-width: 768px) {
  #events .inner {
    padding: auto 10px;
  }
}

/* ==============================================
   2. Tournament Base
   ============================================== */
.tournament_nav {
  margin-bottom: 60px;
  background: #f5f5f5;
  padding: 30px;
}

.tournament_nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.tournament_nav a {
  color: #4a5f70;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  position: relative;
}

.tournament_nav a:hover {
  color: #b89a5e;
  border-bottom: 2px solid #b89a5e;
}

.tournament_section {
  margin-bottom: 60px;
}

.tournament_section h2 {
  color: #4a5f70;
  font-size: 22px;
  margin-bottom: 25px;
  padding-left: 15px;
  border-left: 4px solid #b89a5e;
}

/* --- SP Layout (~768px) --- */
@media screen and (max-width: 768px) {
  .tournament_nav {
    padding: 20px;
    border-bottom: none;
    margin-bottom: 40px;
  }

  .tournament_nav ul {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .tournament_nav a {
    font-size: 16px;
    border-bottom: none;
  }

  .tournament_section {
    margin-bottom: 55px;
  }

  .tournament_section h2 {
    font-size: 18px;
    margin-bottom: 13px;
    padding-left: 10px;
    border-left: 3px solid #b89a5e;
  }
}

/* ==============================================
   3. Event List - Event Header
   ============================================== */
.event_list {
  width: 100%;
  margin-top: 20px;
  list-style: none;
  border-top: 2px solid #4a5f70;
  border-bottom: 2px solid #4a5f70;
}

.event_item {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 35px 20px;
  background: transparent;
  border-bottom: 1px solid #e0e0e0;
}

.event_item:last-child {
  border-bottom: none;
}

@media (hover: hover) {
.event_item:hover {
  background: #fcfcfc;
  transform: none;
  box-shadow: none;
}
}

.event_header {
  display: grid;
  grid-template-columns: 110px 1fr;
  grid-template-rows: min-content min-content;
  align-content: center;
  gap: 5px 27px;
  width: 100%;
  padding: 3px 0;
}

.event_date_and_label {
  display: contents;
}

.event_date {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  width: 110px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 3px solid #b89a5e;
  padding: 10px 10px 10px 0;
}

.date_year {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #999;
  line-height: 1;
  margin-bottom: 4px;
  margin-left: -5px;
}

.date_wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

.date_day {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #555;
  line-height: 1;
  margin-left: 0;
}

.day_of_week {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #555;
  margin-left: -5px;
}

.event_date_and_label + .event_title_wrap,
.event_label_wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event_label_wrap {
  flex-direction: row;
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
}

.label_category,
.label_status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

.label_category {
  background: #555;
  border: 1px solid #555;
  color: #fff;
  border-radius: 4px;
}

.label_status.is-upcoming {
  background: #fff;
  border: 1px solid #4a5f70;
  color: #4a5f70;
  border-radius: 20px;
}

.label_status.is-finished {
  background: #a8a8a8;
  border: 1px solid #a8a8a8;
  color: #fff;
  border-radius: 20px;
}

.event_title_wrap {
  display: flex;
  flex-direction: column;
  width: auto;
}

.event_title {
  font-size: 19px;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.event_organizer {
  font-size: 13px;
  color: #b89a5e;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- SP Layout (~768px) --- */
@media screen and (max-width: 768px) {
  .event_list {
    width: 100%;
    margin-top: 20px;
    list-style: none;
    border-top: 2px solid #4a5f70;
    border-bottom: 2px solid #4a5f70;
  }

  .event_item {
    padding: 30px 0;
  }

  .event_item::after {
        left: 96px;
  }

  .event_header {
    grid-template-columns: 83px 1fr;
    gap: 7px 13px;
  }

  .event_date_and_label {
    display: contents;
  }

  .event_date {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 83px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #b89a5e;
    padding: 10px 8px 10px 0;
  }

  .date_year {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #999;
    line-height: 1;
    margin-bottom: 4px;
  }

  .date_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px
  }

  .date_wrapper + .date_wrapper {
    margin-bottom: 2px;
  }

  .date_day {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-left: 0;
  }

  .day_of_week {
    font-size: 12px;
    font-weight: 600;
    margin-left: -7px;
    margin-right: -7px;
    line-height: 1;
    padding-top: -2px;
  }

  .event_date_and_label +  .event_title_wrap,
  .event_label_wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .event_label_wrap {
    flex-direction: row;
    gap: 6px;
    align-items: center;
    margin-bottom: 0;
  }

  .label_category,
  .label_status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
  }

  .event_title_wrap {
    display: flex;
    flex-direction: column;
    width: auto;
  }

  .event_title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
  }

  .event_organizer {
    font-size: 12px;
    margin-top: 1px;
    margin-bottom: 3px;
  }
}

/* ==============================================
   4. Event List - Event Body
   ============================================== */
.event_body {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-left: 137px;
}

.event_place {
  color: #666;
  margin-top: 8px;
  font-size: 15px;
}

.event_links {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-width: auto;
  margin-top: 3px;
}

@media screen and (min-width: 1101px) {
  .event_links:not(:has(.links_right)):not(:has(.btn_gallery_link)) .links_left .btn_event_link {
    width: 91px;
  }

  .event_links:not(:has(.links_right)):not(:has(.btn_gallery_link)) .links_left {
    margin-right: 261px;
  }
}

.links_left,
.links_right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links_right {
  flex-direction: column;
}

.no_gallery {
  width: 154px;
}

.no_gallery_result {
  width: 230px;
}


.btn_event_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none !important;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.3s;
}

.btn_event_link.is-result {
  width: 109px;
}

.btn_event_link.youkou {
  width: 93px;
}

.btn_event_link i {
  margin-top: 2px;
  margin-right: 5px;
  font-size: 1.1em;
}

.links_left .btn_event_link {
  background: #fff;
  border: 1px solid #b89a5e;
  color: #b89a5e;
}

.links_left .btn_event_link i {
  color: #b89a5e;
}

@media (hover: hover) {
.links_left .btn_event_link:hover {
  background: #b89a5e;
  color: #fff;
}

.links_left .btn_event_link:hover i {
  color: #fff;
}
}

.links_right .btn_event_link {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  color: #4a5f70;
}

.links_right .btn_event_link i {
  color: #75787d;
}

@media (hover: hover) {
.links_right .btn_event_link:hover {
  background: #4a5f70;
  border-color: #4a5f70;
  color: #fff;
}

.links_right .btn_event_link:hover i {
  color: #fff;
}
}

.btn_gallery_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background: #4a5f70;
  color: #fff;
  border-radius: 20px;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.3s;
}

.btn_gallery_link i {
  margin-right: 8px;
}

.btn_external_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #4a5f70;
  color: #fff;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.btn_external_link i {
  margin-right: 8px;
}

@media (hover: hover) {
.btn_gallery_link:hover,
.btn_external_link:hover {
  background: #b89a5e;
}
}

/* --- SP Layout (~768px) --- */
@media screen and (max-width: 768px) {
  .event_body {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0;
    width: 100%;
  }

  .event_place {
    margin-top: 7px;
    font-size: 13px;
    margin-bottom: 0;
    padding-left: 96px;
  }

  .event_place:has(+ .event_links) {
    margin-bottom: 17px;
  }

  .event_links {
    width: 100%;
    flex-direction: column;
    gap: 13px;
    margin-top: 0;
  }

  .links_left, .links_right {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    width: 100%;
  }

  .links_left {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .links_left:has(.btn_event_link:only-child) {
    width: 50%;
  }


  .links_right .btn_event_link:nth-child(3) {
    grid-column: 1 / 2;
  }

  .no_gallery {
    display: none;
  }

  .btn_event_link.is-result,
  .btn_event_link.youkou {
    width: auto;
  }
  .btn_event_link.youkou {
    margin-bottom: -26px;
  }
  .btn_event_link,
  .btn_gallery_link,
  .btn_external_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 45px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: 0.3s;
  }

  .btn_event_link {
    padding: 0 10px;
    border-radius: 6px;
  }

  .btn_external_link {
    height: 45px;
    padding: 0 15px;
    border-radius: 6px;
  }

  .btn_gallery_link {
    height: 45px;
    padding: 0 15px;
    border-radius: 20px;
  }
}


@media screen and (min-width: 769px) and (max-width: 1100px) {
  .event_item {
    padding: 35px 15px;
  }

  .event_header {
    grid-template-columns: 100px 1fr;
    gap: 5px 23px;
  }

  .event_date {
    width: 100px;
  }

  .event_links {
    gap: 10px;
  }

  .event_body {
    padding-left:123px;
  }

  .event_links:not(:has(.links_right)):not(:has(.btn_gallery_link)) .links_left .btn_event_link {
    width: 91px;
  }

  .event_links:not(:has(.links_right)):not(:has(.btn_gallery_link)) .links_left {
    margin-right: 251px;
  }
}
