@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=IBM+Plex+Sans+JP:wght@100;200;300;400;500;600;700&family=Kosugi+Maru&family=M+PLUS+Rounded+1c:wght@100;300;400;500;700;800;900&family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Varela+Round&family=Zen+Maru+Gothic:wght@300;400;500;700;900&display=swap');

@import url('https://kit.fontawesome.com/20aae6bbbd.js');

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollDown {
  from { top: 0px; }
  to { top: 800px; }
}

:root {
  --font-main: "Plus Jakarta Sans", "IBM Plex Sans JP", sans-serif;
  --btn-radius: 5px;
  --transition: 0.3s all ease-in-out;
  --black:   #0d0d0d;
  --white:   #f5f5f3;
  --mid:     #6e6e6e;
  --border:  #e0e0dd;
  --hover-bg:#f0f0ee;
  --nav-h:   64px;
  --color1: #ffd51c;
  --color2: #2a4ca8;
  --color3: #fffdf8;
  --color4: #da4012;
  --color5: #aa2800;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  font-family: var(--font-main);
  animation: fadeIn 1s ease forwards;
  font-optical-sizing: auto;
  font-size: 14px;
}

.footer {
  padding: 2rem;
  background-color: var(--color2);
  text-align: center;
  font-size: 0.8em;
  color: var(--white);
}
.footer a {
  color: var(--color1);
}

.spacer {
  margin: 2rem 0 2rem 0;
  color: transparent;
}

#topBtn {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: rgba(42, 76, 168, 0.2);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  width: 50px;
  height: 50px;
  transition: 0.3s ease-in-out;
}
#topBtn:hover {
  background-color: var(--color2);
}

/*--------------- Hero ---------------*/
.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://www.rikkyo.ac.jp/news/2017/05/qo9edr000000nfh4-img/qo9edr000000nfog.jpg");
  height: 100%;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
.hero-text {
  text-align: center;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  width: 50%;
}
.hero-text h1 {
  font-size: 3em;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero-text p {
  margin-bottom: 40px;
  font-size: 1.2em;
}

/*--------------- Button ---------------*/
.mainbtn {
  color: var(--black);
  background-color: var(--color1);
  text-align: center;
  border-radius: var(--btn-radius);
  font-weight:600;
  text-decoration: none;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  width: max-content;
  border: none;
  font-family: var(--font-main);
  transition: var(--transition);
}
.mainbtn:hover {
  background-color: var(--color2);
  color: #fff;
  box-shadow: 1px 1px 5px #313131;
}
.altmainbtn {
  color: var(--white);
  background-color: var(--color2);
  text-align: center;
  border-radius: var(--btn-radius);
  font-weight:600;
  text-decoration: none;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  width: max-content;
  border: none;
  font-family: var(--font-main);
  transition: var(--transition);
}
.altmainbtn:hover {
  box-shadow: 1px 1px 5px #6e6e6e;
  background-color: var(--color1);
  color: var(--black);
}
.linedabtn {
  color: var(--black);
  text-align: center;
  border-radius: var(--btn-radius);
  font-weight:600;
  text-decoration: none;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  width: max-content;
  border: 1px solid var(--black);
  font-family: var(--font-main);
  transition: var(--transition);
}
.linedabtn:hover {
  background-color: var(--color2);
  border: 1px solid var(--color2);
  color: #fff;
  box-shadow: 1px 1px 5px #313131;
}
.linelibtn {
  color: var(--white);
  text-align: center;
  border-radius: var(--btn-radius);
  font-weight:600;
  text-decoration: none;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  width: max-content;
  border: 1px solid var(--white);
  font-family: var(--font-main);
  transition: var(--transition);
}
.linelibtn:hover {
  background-color: var(--color2);
  border: 1px solid var(--color2);
  color: #fff;
  box-shadow: 1px 1px 5px #313131;
}
.btnsmall {
  padding: 0.5rem 1rem;
  font-size: 0.8em;
}
.btnmedium {
  padding: 0.6rem 1.5rem;
  font-size: 1em;
}
.btnlarge {
  padding: 0.7rem 3rem;
  font-size: 1.3em;
}

/*--------------- Home Section ---------------*/
.home-section {
  margin: 8rem 0 8rem 0;
  width: 100%;
}
.home-section-title {
  margin: 1rem auto;
}
.home-section-title h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--color1);
  color: var(--color2);
  text-align: center;
  width: max-content;
  margin: auto;
  margin-bottom: 2.4rem;
}
.home-section-footer {
  margin: 0 0 8rem 0;
}

/*--------------- Guides Card ---------------*/
.guide-grid {
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
  width: 80%;
  margin: auto;
}
.guide-card {
  display: grid;
  width: 300px;
  height: 260px;
  border-radius: 10px;
  text-align: center;
  margin: auto;
  border: 1px solid lightgrey;
  transition: 0.3s ease-in-out;
}
.guide-card:hover {
  transform: scale(1.01);
  box-shadow: 1px 1px 5px lightgrey;
}
.guide-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.guide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-txt {
  margin: 0.5rem 0 1rem 0;
}
.guide-txt h3 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

/*--------------- Schedule List ---------------*/
.sch-container{
  max-width:900px;
  margin:40px auto;
  padding:0 20px;
}
.match-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fff;
  border:1px solid #ddd;
  border-radius:12px;
  padding:1rem 2rem;
  margin-bottom:25px;
  box-shadow:0 2px 4px rgba(0,0,0,0.03);
  transition: 0.3s ease-in-out;
}
.match-card:hover {
  transform: scale(1.01);
  box-shadow: 1px 1px 5px lightgrey;
}
.date-box{
  text-align:center;
  min-width:70px;
}
.date-box h2{
  margin:0;
  font-size:3rem;
  color: var(--color2);
}
.date-box span{
  font-size:12px;
  letter-spacing:1px;
  color: var(--color2);
  font-weight:bold;
}
.divider{
  width:1px;
  height:60px;
  background:#ddd;
  margin:0 25px;
}
.match-info{
  flex:1;
}
.match-info h3{
  margin:0 0 8px;
  font-size:16px;
  font-weight:700;
  letter-spacing:0.5px;
  text-transform: uppercase;
}
.match-info p{
  margin:0;
  font-size:13px;
  color:#888;
}
.more-games {
  justify-content: center;
  text-align: center;
}
.versus {
  color: var(--color4);
}

/*--------------- Standings Table ---------------*/
.std-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
  max-width: 700px;
  margin: auto;
  padding: 0 1em;
}
.table-container {
  margin-bottom: 1rem;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1em 0;
  letter-spacing: 0.5px;
}
.section-title.red { color: var(--color4); }
.section-title.blue { color: var(--color2); }

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  font-size: 1.2em;
}
thead tr {
  color: var(--color2);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1em;
}

/* League & Pitching header */
.header-gold thead tr { background: var(--color1); font-weight: 800; }
/* Batting header */
.header-blue thead tr { background: var(--color2); color: #fff; }
thead th {
  padding: 0.6rem 1.5rem;
  text-align: center;
  font-size: 1em;
}
thead th:first-child { text-align: left; padding-left: 14px; }
tbody tr { background: #fff; border-bottom: 1px solid #eee; }
tbody tr:nth-child(even) { background: #fdf8ec; }
.header-blue tbody tr:nth-child(even) { background: #f0f4ff; }
tbody td {
  padding: 0.7rem 1.2rem;
  text-align: center;
  color: #222;
  font-weight: 400;
}
tbody td:first-child {
  text-align: center;
  width: 28px;
  color: var(--color4);
  font-weight: 700;
}
tbody td:nth-child(2) {
  text-align: left;
  padding-left: 8px;
  font-weight: 600;
  color: #1a1a1a;
}

/* ERA column highlight */
.highlight { color: var(--color4); font-weight: 700; }
.ba-highlight { color: var(--color4); font-weight: 700; }

/*--------------- Banners ---------------*/
.top-banner {
  width: 100%;
  padding: 3rem 2rem 3rem 2rem;
  background-color: var(--color1);
}
.top-banner-card {
  display: grid;
  grid-template-columns: 50% 50%;
  width: 80%;
  margin: auto;
  gap: 4rem;
}
.top-banner-img {
  width: 100%;
  height: 270px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: -15px 15px 0 rgba(134, 182, 255, 0.815);
}
.top-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.top-banner-txt {
  color: var(--black);
  display: block;
  padding: 2rem 0 2rem 0;
}
.top-banner-txt h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.top-banner-txt p {
  margin-bottom: 1.5rem;
}

.bottom-banner {
  display: grid;
  grid-template-columns: 50% 50%;
}
.bannercard {
  display: grid;
  grid-template-columns: 40% 55%;
  gap: 2rem;
  padding: 2rem 2rem 2rem 3.5rem;
}
.bannercard-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 10px;
}
.bannercard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.bannercard-txt {
  width: 100%;
  word-wrap: break-word;
}
.bannercard-txt h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}
.bannercard-txt p {
  margin-bottom: 1.5rem;
}
.dark {
  background-color: #313131;
  color: white;
}
.light {
  background-color: #eeeeee;
  border: 1px solid #cacaca;
}

/*--------------- Footer Section ---------------*/
.footer-sec {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 2rem;
  width: 100%;
  padding: 1rem 4rem 0 2rem;
}
.footercard {
  padding: 1.5rem;
  background-color: #fafafa;
  border: 1px solid #cacaca;
  border-radius: 10px;
  box-shadow: 2px 3px 5px #ebebeb;
  line-height: 1.8;
  height: 400px;
}
.footercard h3 {
  font-size: 1.4rem;
  border-left: 4px solid var(--color2);
  padding: 0 0 0 1rem;
  margin: 0;
}
.footercard-content {
  margin: 1rem 0 1rem 0;
  overflow: auto;
}
.footercard-content a {
  color: var(--color2);
  text-decoration: none;
  border-bottom: 1px solid var(--color2);
  transition: 0.3s ease-in-out;
}
.footercard-content a:hover {
  color: var(--color4);
  border-bottom: none
}
.footercard p {
  margin: 0 0 1rem 0;
}
.log-container {
  height: 300px;
}
.sitelog {
  margin: 0;
  overflow: auto;
  padding: 0 5px 0 0;
}
.sitelog dt {
  color: var(--color4);
  font-weight: 600;
  padding-top: 0.5rem;
}
.sitelog dt:first-of-type {
  padding-top: 0;
}
.sitelog dd {
  border-bottom: 1px solid #dbdbdb;
  padding-bottom: 0.5rem;
}
.sitelog dd:last-of-type {
  border-bottom: none;
}



@media screen and (max-width:970px) {
  body {
    font-size: 13px;
  }
  .btnlarge {
    padding: 0.6rem 2rem;
  }
  #topBtn {
    right: 15px;
  }
  .hero-text {
    width: 80%;
  }
  .hero-text h1 {
    font-size: 2.2em;
  }
  .hero-text p {
    font-size: 1.2em;
  }
  .home-section-title h2 {
    font-size: 1.6rem;
  }
  .guide-grid {
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    padding: 0 1.3rem;
  }
  .guide-card {
    width: 100%;
  }
  .match-card {
    flex-wrap: wrap;
    padding: 14px 16px;
  }
  .date-box h2 {
    font-size: 2rem;
  }
  .date-box span {
    font-size: 0.8rem;
  }
  .divider {
    height: 36px;
    margin: 0 15px 0 0;
  }
  .match-info {
    flex: 1;
    min-width: 0;
  }
  .match-info h3 {
    font-size: 0.85rem;
  }
  .match-card a {
    order: 1;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    box-sizing: border-box;
  }
  .std-container {
    font-size: 1em;
  }
  .header-gold, .header-blue {
    width: 100%;
  }
  .table-container {
    overflow: auto;
    border-radius: 10px;
    box-shadow: 2px 2px 10px #d6d6d6;
    font-size: 0.9em;
    margin: 0 0.2rem;
  }
  tbody td {
    padding: 0.5rem 1rem;
  }
  .top-banner-img {
    margin-left: 0.5rem;
  }
  .top-banner-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    text-align: center;
  }
  .bottom-banner {
    display: flex;
    flex-direction: column;
  }
  .bannercard {
    width: 100%;
    padding: 2rem;
  }
  .bannercard-txt h2 {
    font-size: 1.5rem;
  }
  .footer-sec {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 2rem 0 2rem;
    margin-bottom: -3rem;
    margin-top: -3rem;
    gap: 4rem;
  }
  .footercard {
    height: max-content;
  }
}