@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=IBM+Plex+Sans+JP&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Kosugi+Maru&family=M+PLUS+Rounded+1c:wght@100;300;400;500;700&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');


@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css');

:root {
    --yellow: #ffd82b;
    --lightgreen: #69d169;
}

html {
  scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', 'IBM Plex Sans JP', sans-serif;
    margin: 0;
    font-optical-sizing: auto;
    font-size: 16px;
}

/* ----- NAVBAR STYLES (core) ----- */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid #e9edf2;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* LOGO / BRAND */
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-decoration: none;
    color: #000;
    transition: opacity 0.2s;
}
.logo-small {
    color: #dadada;
    font-weight: 400;
    margin-left: 5px;
    font-size: 0.8em;
}

/* DESKTOP MENU (flex row) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
    transition: all 0.3s ease-in-out;
}

.nav-item {
    list-style: none;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    color: #1f2e3a;
    padding: 0.5rem 0.2rem;
    transition: 0.2s ease-in-out;
    font-size: 1rem;
}

.nav-link:hover {
    opacity: 0.5;
}

/* Mobile menu toggle button (hidden on desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.menu-toggle:focus-visible {
    outline: 2px solid #2c7da0;
    outline-offset: 2px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #2c3e50;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Active state for hamburger animation (optional) */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  transition: transform 0.2s;
}
.has-dropdown.is-open .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;           /* match your navbar bg */
  border: 0.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px 0;
  z-index: 100;
  list-style: none;
  margin: 0;
}
.has-dropdown.is-open .dropdown-menu { display: block; }

.dropdown-link {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.dropdown-link:hover { background: #f5f5f5; }

/* Mobile: dropdown stacks inline */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    border: none;
    padding: 0 0 0 16px;
    box-shadow: none;
  }
}


/* ----- HERO ----- */
.hero-image {
  height: 400px;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(112, 112, 112, 0.514),rgba(0, 0, 0, 0.719));
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  width: max-content;
}
.hero-text h1 {
  font-size: 2.5em;
}
.hero-text p {
  margin-bottom: 2rem;
}

.hero-btn {
  text-decoration: none;
  border: none;
  outline: 0;
  display: inline-block;
  padding: 10px 20px;
  color: #ffffff;
  background-color: #069140;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  border-radius: 5px;
  margin: 0.5rem;
}
.hero-btn:hover {
  background-color: #017732;
}

/* ----- MAIN ----- */
#main {
  margin: 4rem 2.2rem;
  padding: 0 2rem;
}
section {
  margin-bottom: 5rem;
}
section h2 {
  font-size: 2.2em;
  border-left: 5px solid #017732;
  padding-left: 10px;
}
.breadcrumbs {
  margin: 0;
  padding: 0;
}
.breadcrumbs a {
  color: #006329;
  text-decoration: none;
}
.breadcrumbs a::after {
  content: "/";
  margin-left: 5px;
  margin-right: 5px;
}
.breadcrumbs span {
  color: #929292;
}

.main-btn {
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: #017732;
  display: flex;
  align-items: center;
  justify-content:center;
  max-width: fit-content;
  border-radius: 5px;
  transition: 0.2s ease-in-out;
}
.main-btn:hover {
  background-color: #005523;
}

.btn-med {
  padding: 0.7rem 1.5rem;
  margin: 2rem 0;
}

/* ----- PROSPECT CARD LIST ----- */
.pro-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}
.pro-card {
  flex: 0 0 calc(33.8% - 20px); 
  border: 1px solid #83c49e;
  background: linear-gradient(152deg,rgba(255, 255, 255, 1) 12%, rgba(240, 255, 240, 1) 100%);
  padding: 1rem 1.2rem;
  border-radius: 5px;
  font-weight: bold;
  box-sizing: border-box;
  transition: 0.2s ease-in-out;
}
.pro-card:hover {
  box-shadow: 2px 2px 10px #dbdbdb;
}
.pro-card-meta {
  margin-bottom: -10px;
  display: flex;
}
.pro-card-cat {
  font-size: 0.7em;
  border-radius: 3px;
  padding: 2px 5px;
  font-weight: 500;
  margin-right: 10px;
}
.card-pos {
  font-size: 0.7em;
  border-radius: 3px;
  padding: 2px 5px;
  font-weight: 500;
}
.pro-card h3 {
  margin: 0;
  padding: 0;
  font-size: 1.5em;
}
.pro-card p {
  font-weight: 500;
  color: #acacac;
  margin-top: 5px;
}
.pro-card a {
  color: #2ca087;
  font-size: 0.9em;
  display: flex;
  float: right;
  text-decoration: underline dotted;
}
.card-kanji {
  color: #aaaaaa;
  font-size: 0.7em;
  margin: 7px 0 0 0;
  display: block;
}

.cat-hs {
  background-color: #e7fff1;
  border: 1px solid #13c25c;
  color: #017732;
}
.cat-univ {
  background-color: #e4f2ff;
  border: 1px solid #135fc2;
  color: #013077;
}
.cat-jaba {
  background-color: #f0e9ff;
  border: 1px solid #9f13c2;
  color: #6d0177;
}
.pos-rhp {
  background-color: #caf7ff;
  border: 1px solid #00d3da;
  color: #015677;  
}
.pos-lhp {
  background-color: #ffccca;
  border: 1px solid #da0000;
  color: #771d01;  
}
.pos-c {
  background-color: #ffe6ca;
  border: 1px solid #da5700;
  color: #772c01;  
}
.pos-if {
  background-color: #feffca;
  border: 1px solid #dac400;
  color: #772201;  
}
.pos-of {
  background-color: #f7ffca;
  border: 1px solid #8eda00;
  color: #157701;  
}

/* Responsive: 2 columns on tablets */
@media (max-width: 768px) {
    .pro-card {
        flex: 0 0 calc(50% - 20px);
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 480px) {
    .pro-card {
        flex: 0 0 100%;
    }
}

/* ----- TOP PROSPECT LIST TABLE ----- */
.top-table {
  width: 100%;
  border-collapse: collapse;
}

.top-table th, .top-table td {
  border-bottom: 1px solid #dddddd;
  padding: 10px 10PX;
  text-align: left;
}

.top-table th {
  background-color: #005523;
  color: #fff;
  font-weight: 600;
}

.top-table tr:nth-child(even) {
  background-color: #f7f7f7;
}

.top-table td:first-child, .top-table td:nth-child(2) {
  font-weight: 500;
  color: #005523;
}

.top-table th:first-child, .top-table td:first-child {
  text-align: right;
  font-weight: 700
}

.top-table a {
  color: #005523;
  transition: 0.1s ease-in-out;
  text-decoration: 1px dotted underline;
}
.top-table a:hover {
  color: #d80000;
}

/* ----- PROSPECT LIST TABLE ----- */
.prospect-table {
  width: 100%;
  border-collapse: collapse;
}

.prospect-table th, .prospect-table td {
  border-bottom: 1px solid #dddddd;
  padding: 10px 10PX;
  text-align: left;
}

.prospect-table th {
  background-color: #005523;
  color: #fff;
  font-weight: 600;
}

.prospect-table tr:nth-child(even) {
  background-color: #f7f7f7;
}

.prospect-table td:first-child, .prospect-table td:nth-child(2) {
  font-weight: 500;
  color: #005523;
}

.prospect-table th:first-child, .prospect-table td:first-child {
  text-align: right;
  font-weight: 700
}

.prospect-table a {
  color: #005523;
  transition: 0.1s ease-in-out;
  text-decoration: 1px dotted underline;
}
.prospect-table a:hover {
  color: #d80000;
}

/* --- Sorting Table --- */
.filter-summary summary { margin-bottom: 10px; cursor: pointer; background-color: #005523; padding: 5px 15px; border-radius: 5px; width: max-content; color: #fff;}
.search-row { display: flex; align-items: center; gap: 8px; }
.search-wrap { position: relative; flex: 1; max-width: 320px; margin: 0 0 20px 0; }
.search-wrap svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); opacity: 0.4; pointer-events: none; }
#searchInput { width: 100%; padding: 15px 35px; font-size: 1em; border: 0.5px solid #ccc; border-radius: 5px; color: #464646; font-family: var(--font-sans); }
#searchInput:focus { outline: none; border-color: #005523; }
#clearBtn { display: none; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--color-text-tertiary); font-size: 14px; line-height: 1; padding: 0; }
#clearBtn:hover { color: #ccc; }
.result-count { font-size: 12px; color: #005523; white-space: nowrap; }

.filter-group { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.filter-label { font-size: 1em; font-weight: 700; min-width: 70px; text-transform: uppercase; color: #005523; padding: 5px 10px 5px 0; }
.filter-btn {
  font-family: 'Figtree', sans-serif; padding: 4px 11px; border-radius: 5px;
  border: 1px solid #005523; background: transparent;
  color: #005523; cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover { border: 1px solid #d80000; color: #d80000; }
.filter-btn.active { background: #005523; border: 1px solid #005523; color: #EEEDFE; font-weight: 500; }
.filters-wrap { padding: 12px 0 6px; border-bottom: 0.5px solid var(--color-border-tertiary); margin-bottom: 12px; }
.prospect-table thead th.sortable { cursor: pointer; }
.prospect-table thead th.sortable:hover { color: #fff; }
.prospect-table thead th .sort-icon { display: inline-block; margin-left: 4px; opacity: 0.5; font-style: normal; font-size: 1em; }
.prospect-table thead th.sort-asc .sort-icon, thead th.sort-desc .sort-icon { opacity: 1; color: #ffd311; }
.prospect-table tbody tr.hidden { display: none; }
.no-results { padding: 24px; text-align: center; color: var(--color-text-tertiary); font-size: 14px; display: none; }



/* ----- DRAFT NEWS LIST ----- */
.draft-news {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}
.draft-news-link {
  text-decoration: none;
  color: #000;
  transition: 0.2s ease-in-out;
}
.draft-news-link:hover {
  color: #005523;
}

.draft-news-list {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(33.3% - 20px); 
  border: 1px solid #ccc;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  box-sizing: border-box;
  transition: 0.2s ease-in-out;
}
.draft-news-list:hover {
  box-shadow: 2px 2px 10px #dbdbdb;
}
.draft-news-list h3 {
  font-size: 1.2em;
}
.draft-news-list p {
  color: #838383;
  font-size: 0.8em;
  font-weight: 500;
}
.draft-news-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
  margin: 10px 0;
  display: flex;
  float: left;
}
.draft-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media screen and (max-width:768px) {
    .draft-news {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
   .draft-news-list {
      border: 1px solid #b8b8b8;
      border-radius: 0 5px 5px 0;
      border-left: 4px solid #2e9157;
      padding: 5px 20px;
      transition: 0.2s ease-in-out;
    }
}
@media screen and (max-width:450px) {
    .draft-news-list, .draft-news-img {
      display: flex;
      flex-direction: column;
    }
    .draft-news-img {
      width: 100%;
      height: 120px;
      margin: 15px 0 0 0;
    }
}


/* ----- SCOUTER NOTES ----- */
.scout-note {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}
.scout-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(33.3% - 20px); 
  border: 1px solid #8fb67f;
  border-radius: 5px;
  padding: 5px 15px;
  box-sizing: border-box;
}
.scout-playername {
  padding: 10px 0;
  color: #005523;
}
.scout-playername h3 {
  margin: 0;
  padding: 0;
  font-size: 1.5em;
}
.scout-playername a {
  color: #005523;
  text-decoration: 1.4px underline dotted;
}
.scout-playername a:hover {
  color: #d80000;
}
.scout-playername h3 span {
  font-size: 0.8em;
  display: block;
  color: #a7a7a7;
  font-weight: 400;
  margin-top: 5px;
}
.scout-playername p {
  margin: 0;
  padding: 0;
  margin-top: 5px;
}
.scout-report {
  background-color: #eef7eb;
  padding: 5px 15px;
  line-height: 1.6;
  border: 1px solid #d1e7da;
  border-radius: 5px;
  color: #2d7e4e;
}
.scouter {
  text-align: right;
  font-style: italic;
  color: #6e6e6e;
  font-size: 0.9em;
}

@media screen and (max-width:768px) {
    .scout-note {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
   .scout-card {
      border: 1px solid #b8b8b8;
      border-radius: 0 5px 5px 0;
      border-left: 4px solid #2e9157;
      padding: 5px 20px;
      transition: 0.2s ease-in-out;
    }
}


/* ----- SITE LOG ----- */
.sitelog {
  line-height: 1.6;
}
.sitelog dt {
  display: flex;
  float: left;
  margin-right: 15px;
  letter-spacing: 1px;
  padding-top: 15px;
  padding-bottom: 15px;
  color: #005523;
  font-weight: 500;
}
.sitelog dt, .sitelog dd {
  border-bottom: 1px dotted #b8b8b8;
}
.sitelog dd {
  padding-bottom: 15px;
  padding-top: 15px;
}
.sitelog a {
  color: #005523;
  transition: 0.2s ease-in-out;
}
.sitelog a:hover {
  color: #d80000;
}

/* ----- FOOTER ----- */
#footer {
  background-color: #005523;
  padding: 20px 70px;
  display: flex;
  justify-content: space-between;
}
#footer p {
  color: #d6d6d6;
  font-weight: 300;
  font-size: 0.8em;
  letter-spacing: 1px;
}
#footer a {
  color: #d6d6d6;
  text-decoration: none;
  margin-left: 20px;
  transition: 0.2s ease-in-out;
}
#footer a:hover {
  text-decoration: underline;
}

/* ----- TOP BUTTON ----- */
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 15px;
  z-index: 99;
  font-size: 18px;
  border: 1px solid #ffffff63;
  outline: none;
  background-color: #79bd956e;
  color: white;
  cursor: pointer;
  padding: 15px 15px;
  border-radius: 4px;
  line-height: 1;
  transition: 0.2s ease-in-out;
}

#myBtn:hover {
  background-color: #d80000;
}


/* -------------------------------------- MOBILE VIEW -------------------------------------- */
@media (max-width: 768px) {
  body {
      font-size: 14px;
  }
  .logo { font-size:1.2em; padding-left:0.5em; }
  .logo-small {margin-left: 5px;}
  .nav-container {
      padding: 0.3rem 1rem;
  }

  .menu-toggle {
      display: block;
  }

  /* Initially hidden on mobile (collapsed) */
  .nav-menu {
      position: absolute;
      left: 0;
      top: 40px;
      width: 100%;
      background-color: #ffffff;
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
      border-top: 1px solid #eef2f6;
      border-bottom: 1px solid #eef2f6;
      transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                  opacity 0.25s ease,
                  visibility 0.2s;
      z-index: 999;
      backdrop-filter: blur(0px);
      padding: 0;
  }

  /* When active class toggled: DROPDOWN EXPANDS */
  .nav-menu.active {
      max-height: 380px;      /* enough for typical nav items */
      opacity: 1;
      visibility: visible;
      padding: 0;
      overflow-y: auto;
  }

  .nav-item {
      width: 100%;
      transition: background 0.2s;
      border-bottom: 1px solid #eee;
      padding: 0.5rem 1.2rem;
  }

  .nav-item:hover {
      background-color: #f8fafd;
  }

  .nav-link {
      display: block;
      width: 100%;
      font-size: 1.1rem;
      padding: 0.3rem 0.75rem;
      font-size: 1em;
  }
  .hero-text {width: 90%;}
  .hero-text h1 {
      font-size: 2em;
  }
  #main {
      margin: 3rem 0;
      padding: 0 1.5rem;
  }
  .main-btn {
      max-width: 100%;
  }
  section h2 {
      font-size: 1.8em;
  }

  .table-container {
      overflow: auto;
  }
  .prospect-table {
    width: max-content;
  }

  .sitelog dt {
      display: flex;
      flex-direction: column;
      float: none;
      border: none;
      padding-bottom: 0;
  }
  .sitelog dd {
    padding-top: 5px;
    margin-left: 0;
  }

  #footer {
      padding: 20px 30px;
      display: block;
      font-size: 0.8em;
  }
  #footer p {
      display: block;
      margin-bottom: 20px;
  }
  #footer a {
      margin-left: 0;
      margin-right: 10px;
  }
}