@charset "UTF-8";

/* ======================
   Reset
   ====================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; line-height: 1.7; }
img  { display: block; width: 100%; max-width: 100%; height: auto; }
li   { list-style: none; }
a    { display: block; color: inherit; text-decoration: none; }

/* ======================
   Vendor overrides
   ====================== */
.global-header { display: none; }
.global-contents__inner { width: 100% !important; padding: 0 !important; }
#tblLayout { width: 100% !important; }
table { border-collapse: collapse; margin: 0; padding: 0; }
td, th { padding: 0; margin: 0; }
main + div { display: none; }

.sp_only { display: block; }
.pc_only  { display: none; }
@media (min-width: 768px) {
  .sp_only { display: none; }
  .pc_only  { display: block; }
}
p {
  font-size: 1.4rem;
}

/* ==========================
Reset and base styles
========================== */
.global-header {
  display: none;
}
.global-contents__inner {
  width: 100% !important;
  padding: 0 !important;
}
#tblLayout {
  width: 100% !important;
}
table {
  border-collapse: collapse;
  margin: 0;
  padding: 0;
}
td, th {
  padding: 0;
  margin: 0;
}
main + div {
  display: none;
}

/* ==========================
morifes
========================== */
.morifes {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(176deg, #1A3322 10%, #2D5C3A 90%);
}
.morifes .container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 44px;
}

/* ==========================
topbox
========================== */
.topbox {
  background-color: #2A5436;
  position: fixed;
  z-index: 9999;
  padding: 10px;
  width: 100%;
  left: 0;
}
.topbox a {
  color: #F5F0E4;
  font-weight: 500;
  text-align: center;
  display: inline-block;
  font-size: 1.2rem;
  transition: .2s;
  text-decoration: underline;
}
.topbox p {
  color: #F5F0E4;
  font-weight: 500;
  text-align: center;
  display: block;
  font-size: 1.2rem;
  transition: .2s;
  margin: 0;
}
@media screen and (min-width: 960px) {
  .topbox a {
    font-size: 1.6rem;
  }
  .topbox p {
    font-size: 1.6rem;
  }
}

/* ==========================
section
========================== */
.section1 {
  padding: 47px 0 0;
}

/* ==========================
button
========================== */
.button {
  display: block;
  text-align: center;
  margin: 40px auto 0;
  width: 80%;
  background-color: #C8A02A;
  text-decoration: none;
  color: #1A3322;
  font-weight: 700;
  padding: 19px 25px;
  border-radius: 100px;
  font-size: 1.6rem;
}
@media screen and (min-width: 960px) {
  .button {
    font-size: 1.8rem;
    width: 60%;
  }
}

/* ==========================
STEP cards
========================== */
.step-wrap {
  margin: 24px 16px 0;
  padding: 40px 18px;
  background: #1E3C2A;
  border-radius: 16px;
  border: 1.5px solid #4A7B5A;
}
.step-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2em;
}
.step-num {
  display: inline-block;
  background: #C8A02A;
  color: #1A3322;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.step-title {
  color: #F5F0E4;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
}
.step-body {
  color: #F5F0E4;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.9;
  margin-top: 4px;
  text-align: center;
}
.step-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: #C8A02A;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #C8A02A;
  padding: 9px 22px;
  border-radius: 100px;
  transition: .25s;
  width: auto;
}
.step-link:hover {
  background: #C8A02A;
  color: #1A3322;
  opacity: 1;
}

/* ==========================
Step arrow
========================== */
.step-arrow {
  display: block;
  text-align: center;
  color: #C8A02A;
  font-size: 2.2rem;
  margin: 6px 0;
}

/* ==========================
Rank section
========================== */
.rank-section {
  margin: 40px 16px 24px;
}
.rank-section-title {
  text-align: center;
  color: #F5F0E4;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.rank-section-sub {
  text-align: center;
  color: #C8A02A;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.rank-grid {
  display: flex;
  gap: 8px;
}
.rank-card {
  flex: 1;
  border-radius: 14px;
  padding: 14px 6px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1E3C2A;
  border: 1.5px solid #4A7B5A;
}
.rank-card.regular {
  background: #75c178b5;
}
.rank-card.silver {
  background: #A9A9A9b5;
}
.rank-card.gold {
  background: #d3bb65b5;
}
.rank-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #F5F0E4;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.rank-percent {
  font-size: 3.8rem;
  font-weight: 700;
  color: #F5F0E4;
  line-height: 1.0;
}
.rank-off-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F5F0E4;
  margin-top: 2px;
}
.rank-cond {
  text-align: center;
  color: #C8BFA8;
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 10px;
}
@media screen and (min-width: 600px) {
  .rank-section-title {
    font-size: 2.4rem;
  }
  .rank-percent {
    font-size: 4.8rem;
  }
  .step-title {
    font-size: 1.8rem;
  }
  .step-body {
    font-size: 1.5rem;
  }
}

/* ==========================
attnlist
========================== */
.attnlist {
  margin-top: 60px;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0 28px;
  word-wrap: break-word;
  color: #F5F0E4;
}
.attnlist span {
  text-align: center;
  display: block;
  margin-bottom: 10px;
  font-size: 1.4rem;
}
.attnlist li {
  font-size: 1.2rem;
}
@media screen and (min-width: 960px) {
  .attnlist span {
    font-size: 1.6rem;
  }
  .attnlist li {
    font-size: 1.2rem;
  }
}

/* ==========================
Festival: pennants
========================== */
.pennants {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
  margin: 16px 0 0;
}
.pennants::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2%;
  right: 2%;
  height: 1.5px;
  background: #7A6818;
}
.pennant {
  width: 20px;
  height: 24px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  flex-shrink: 0;
  transform-origin: top center;
  animation: pennant-sway 3.5s ease-in-out infinite;
}
.pennant:nth-child(3n+1) { background: #C8A02A; }
.pennant:nth-child(3n+2) { background: #EDE8D8; }
.pennant:nth-child(3n)   { background: #3A6B45; }
.pennant:nth-child(2n)   { animation-delay: -1.75s; }
.pennant:nth-child(5n)   { animation-delay: -1.0s; }
@keyframes pennant-sway {
  0%, 100% { transform: rotate(-5deg); }
  50%       { transform: rotate(5deg); }
}

/* ==========================
Festival: string lights
========================== */
.string-lights {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 0 16px;
  margin: 28px 0 0;
}
.string-lights::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3%;
  right: 3%;
  height: 1px;
  background: #7A6818;
}
.bulb {
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 44% 44%;
  position: relative;
  top: 2px;
  flex-shrink: 0;
}
.bulb::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 4px;
  background: #7A6818;
  border-radius: 1px 1px 0 0;
}
.bulb.y { background: #C8A02A; animation: twinkle-y 2.2s ease-in-out infinite; }
.bulb.w { background: #EDE8D8; animation: twinkle-w 1.9s ease-in-out infinite 0.4s; }
.bulb.g { background: #6DB86E; animation: twinkle-g 2.6s ease-in-out infinite 0.9s; }
.triangle {
  text-align: center;
  font-size: 3rem;
  color: #F5F0E4;
}
.footer {
  text-align: center;
  padding: 20px 0;
  background: #EDE8D8;
}
@keyframes twinkle-y {
  0%, 100% { opacity: 1;   box-shadow: 0 0 8px 3px rgba(200, 160, 42, 0.75); }
  50%       { opacity: 0.3; box-shadow: none; }
}
@keyframes twinkle-w {
  0%, 100% { opacity: 0.5; box-shadow: none; }
  50%       { opacity: 1;   box-shadow: 0 0 7px 3px rgba(237, 232, 216, 0.6); }
}
@keyframes twinkle-g {
  0%, 35%, 100% { opacity: 1;   box-shadow: 0 0 6px 2px rgba(109, 184, 110, 0.55); }
  70%            { opacity: 0.2; box-shadow: none; }
}
