/*------------------------------------
  Default Styles
------------------------------------*/

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 1.75rem;
  letter-spacing: 0.1rem;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "liga", "kern";
  text-rendering: optimizelegibility;
  background-color: #1e2d62;
}

@media (max-width: 767px) {
  html,
  body {
    font-size: 14px;
  }
}

a {
  color: #d64291;
}

a:hover {
  color: #e562a8;
}

a:focus {
  outline: none;
}

hr {
  border-color: #e6e7e9;
}

[role="button"] {
  cursor: pointer;
}

p {
  overflow-wrap: anywhere;
}

/*----------------------------------
  Overlays
------------------------------------*/

.page-running {
  display: none;
}

/*------------------------------------
  Headings
------------------------------------*/

.ttl-about,
.ttl-flow,
.ttl-outline,
.ttl-judge,
.ttl-notes {
  height: 3.5rem;
  margin-top: 0rem;
}

/*------------------------------------
  Backgrounds
------------------------------------*/

.bg-about,
.bg-outline,
.bg-notes {
  background-image: url(https://www.hmcc.jp/aplcontest/2025/assets/img/bgimg_1.png);
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 50% auto;
  mix-blend-mode: lighten;
}

.bg-flow,
.bg-judge {
  background-image: url(https://www.hmcc.jp/aplcontest/2025/assets/img/bgimg_2.png);
  background-position: right top;
  background-repeat: no-repeat;
  background-size: 50% auto;
  background-color: #182348;
}

@media (max-width: 768px) {
  .bg-about,
  .bg-flow,
  .bg-outline,
  .bg-judge,
  .bg-notes {
    background-size: 70% auto;
  }
}

/*----------------------------------
  Buttons
------------------------------------*/

.btn {
  cursor: pointer;
  transition: 0.2s ease;
  border-radius: 0;
}

.btn--pill {
  border-radius: 6.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.btn--pill.btn-sm {
  padding-left: 0.9375rem;
  padding-right: 0.9375rem;
}

.btn--pill.btn-lg {
  padding-left: 1.5625rem;
  padding-right: 1.5625rem;
}

.btn-pink {
  background-color: #d64291;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-pink:hover {
  background-color: #e562a8;
}

.btn-pink img {
  width: 1.5rem;
  margin-right: 1rem;
}

.btn-pink.btn-lg img {
  width: 2.75rem;
  margin-right: 1rem;
}

.btn-pink p {
  margin: 0;
  text-align: start;
}

.btn-pink span {
  font-weight: 300;
  font-size: 0.5rem;
  line-height: 0.9em;
  display: block;
}

.btn-pink.btn-lg span {
  font-size: 0.75rem;
  line-height: 1.5em;
}

/*----------------------------------
  Header
------------------------------------*/

#top {
  margin-top: 70px;
}

.navbar {
  height: 70px;
  background: linear-gradient(90deg, #5d1a68 0%, #2e3e88 51.5%, #00246b 100%) !important;
  background-blend-mode: overlay;
  color: #ffffff;
}

.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}

.nav-logo {
  height: 1.5rem;
  padding-right: 1rem;
  border-right: 1px solid #ffffff;
}

.nav-logo-app {
  height: 1.125rem;
  padding-left: 0.5rem;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: bold;
  font-size: 0.9rem;
}

.nav-link span {
  color: #ffffff !important;
  font-weight: 300;
  font-size: 0.6rem;
  line-height: 0.9em;
  display: block;
}

@media (max-width: 768px) {
  .navbar .container-fluid {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .navbar-collapse {
    background-color: #ffffff;
    padding: 0 2rem 1rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    border: 1px solid #1e2d62;
  }
  .navbar-nav .nav-link,
  .navbar-nav .nav-link span {
    color: #1e2d62 !important;
  }
}

/*----------------------------------
  Footer
------------------------------------*/

#footer {
  background: #383838;
  font-size: 0.75rem;
}

/*----------------------------------
  Spaces
------------------------------------*/

.u-space {
  padding-top: 6.25rem;
  padding-bottom: 6.25rem;
}

.u-space-top {
  padding-top: 6.25rem;
}

.u-space-bottom {
  padding-bottom: 6.25rem;
}

@media (max-width: 768px) {
  .u-space {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  #company.u-space {
    padding-top: 4.25rem !important;
  }
}

/*----------------------------------
  Flow
------------------------------------*/

.flow-img {
  width: 10rem;
}

.flow-date {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .flow-img {
    width: 7.5rem;
  }
  .flow-date {
    font-size: 1rem;
  }
}

.flow-pill-grow {
  border-radius: 9999px;
  border: 1px solid #d64291;
  background: linear-gradient(90deg, #8a279a 0%, #364cb5 51.5%, #002979 100%);
  background-blend-mode: overlay;
}

.flow-pill-slate {
  border-radius: 9999px;
  border: 1px solid #adadad;
  background: #1e2d62;
}

/*----------------------------------
  Judge
------------------------------------*/

.judge-pill-slate {
  border-radius: 9999px;
  border: 1px solid #adadad;
  background: #1e2d62;
  width: 10rem;
  text-align: center;
}

/*----------------------------------
  Sponser
------------------------------------*/

.sponser-head {
  width: 6rem;
}

/*----------------------------------
  Fadein
------------------------------------*/

.fadein {
  opacity: 0;
  transition: all 1.4s;
}

.fadein-b {
  transform: translate(0, 100px);
}

.fadein-t {
  transform: translate(0, -100px);
}

.fadein-r {
  transform: translate(180px, 0);
}

.fadein-l {
  transform: translate(-180px, 0);
}

.fadein.active {
  opacity: 1;
  transform: translate(0, 0);
}
