/* =========================================================
   ColoringContest2026
   01. Global
   02. Header / Navigation
   03. Section 01 - Hero
   04. Section 02 - Intro Paper
   05. Shared Labels / Hand Lines
   06. Section 03 - How To Join
   07. Section 04 - Theme Cards
   08. Section 05 - Judges / Awards
   09. Section 06 - Criteria / Popular
   10. Section 07 - Terms
   11. RWD
   ========================================================= */

/* 01. Global
   --------------------------------------------------------- */
:root {
  --color-text: #111111;
  --color-paper: #ffffff;
  --color-bg: #f8efd8;
  --color-wave: #ffd69a;
  --font-main: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  /* page-width controls the outer page wrapper. */
  --page-width: 1500px;
  /* content-width controls the main centered visual/content blocks. */
  --content-width: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.75;
  background-color: var(--color-bg);
  background-image: url("images/bg.png");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrap {
  width: min(100% - 40px, var(--page-width));
  margin: 0 auto;
  z-index: 1;
}

.msg {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 34px;
  color: #f68431;
}

#indexCenter {
  position: relative;
  display: none;
}

/* 02. Header / Navigation
   --------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  padding-top: 14px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: min(330px, 48vw);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 22px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 0 10px;
}

.main-nav a + a::before {
  position: absolute;
  left: 0;
  content: "|";
}

.main-nav a:hover {
  color: #e9861b;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #111111;
}

/* 03. Section 01 - Hero
   --------------------------------------------------------- */
.event-page {
  overflow: hidden;
}

.hero-wrap {
  width: min(100% - 18px, 1240px);
}

.hero-section {
  position: relative;
  z-index: 3;
}

.hero-banner {
  width: 100%;
  margin: -12px auto 0;
}

/* 04. Section 02 - Intro Paper
   --------------------------------------------------------- */
.intro-section {
  position: relative;
  z-index: 2;
  margin-top: -18px;
}

.paper-panel {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  border-radius: 18px;
  background-color: var(--color-paper);
  background-image: url("images/toppaper.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}

.intro-paper {
  max-width: var(--content-width);
  min-height: 500px;
  padding: 58px 84px 58px 120px;
}

/* Paper holes are separated for easy future spacing and size edits. */
.paper-holes {
  position: absolute;
  top: 46px;
  bottom: 42px;
  left: -11px;
  width: 46px;
  pointer-events: none;
}

.paper-holes::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 20px 16px, var(--color-bg) 0 12px, #f8f0da 13px, transparent 14px) 0 0 / 46px 43px repeat-y;
}

.intro-text {
  max-width: 1100px;
  margin: 0 auto 30px;
  font-size: 30px;
  font-weight: 600;
  line-height: 2;
  text-align: left;
}

.intro-text p {
  margin: 0;
}

.event-info {
  display: grid;
  grid-template-columns: 260px minmax(260px, 1fr) 400px;
  align-items: center;
  gap: 26px;
  padding-bottom: 3%;
}

.story-book {
  margin: 0;
}

.target-card {
  justify-self: center;
  min-width: 300px;
  padding: 25px 20px 22px;
  font-weight: 600;
  text-align: left;
}

.target-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 24px;
  line-height: 1.65;
}

.date-card {
  position: relative;
  min-height: 206px;
  font-weight: 600;
  text-align: center;
}

.date-note {
  width: 100%;
  max-width: none;
}

.date-card-content {
  position: absolute;
  inset: 0px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(3deg);
}

.date-card-content p {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  padding-top: 2%;
}

/* 05. Shared Labels / Hand Lines
   --------------------------------------------------------- */
.title-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  color: #111111;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.title-label-target {
  min-width: 150px;
  min-height: 50px;
  margin: 0 auto 8px;
  padding: 25px 40px 20px;
  background-image: url("images/title_Target.svg");
  font-size: 30px;
}

.title-label-time {
  padding-top: 10%;
  padding-right: 17%;
  background-image: none;
}

.title-label-join {
  min-width: 180px;
  min-height: 70px;
  padding: 10px 26px 14px;
  background-image: url(images/title_HowToJoin.svg);
  color: #ffffff;
  font-size: 22px;
}

.title-label-theme {
  min-width: 180px;
  min-height: 64px;
  padding: 10px 30px 16px;
  background-image: url("images/title_Theme.svg");
  color: #ff7f25;
  font-size: 26px;
}

.title-label-judges {
  min-width: 154px;
  min-height: 56px;
  padding: 9px 28px 13px;
  background-image: url("images/title_Judges.svg");
  color: #315bdc;
  font-size: 18px;
}

.title-label-criteria {
  min-width: 190px;
  min-height: 64px;
  padding: 20px 34px 16px;
  background-image: url("images/title_Criteria.svg");
  font-size: 24px;
}

.title-label-judge-award {
  text-align: center;
  min-width: 112px;
  min-height: 110px;
  /* padding: 14px 20px 18px; */
  font-size: 21px;
  line-height: 1.25;
  z-index: 2;
  /* background-image: url("images/title_JudgeAward.svg"); */
  /* background-size: cover; */
}

.title-label-popular {
  min-width: 160px;
  min-height: 60px;
  padding: 10px 30px 16px;
  background-image: url("images/title_Popular.svg");
  font-size: 26px;
}

.join-button {
  position: absolute;
  left: 50%;
  bottom: 5%;
  z-index: 4;
  transform: translateX(-50%) rotate(-3deg);
}

.orange-wave {
  position: absolute;
  left: 50%;
  bottom: -120px;
  z-index: 1;
  width: 100vw;
  height: 220px;
  background-image: url("images/Wave.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
  transform: translateX(-50%);
  pointer-events: none;
}

.orange-underline {
  padding-bottom: 7px;
  background-image: url("images/orange_line.svg");
  background-repeat: repeat-x;
  background-position: left calc(100% - 1px);
  background-size: auto 7px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hand-line {
  display: block;
  width: 100%;
  height: 8px;
  margin: 2px auto 12px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.hand-line-purple {
  max-width: 116px;
  background-image: url("images/purple_line.svg");
}

.hand-line-blue-point {
  max-width: 230px;
  background-image: url("images/blue_point_line.svg");
}

.hand-line-orange-point {
  max-width: 230px;
  background-image: url("images/orange_point_line.svg");
}

.hand-line-green-point {
  max-width: 230px;
  background-image: url("images/green_point_line.svg");
}

.hand-line-sky {
  max-width: 230px;
  height: 24px;
  margin: 0;
  background-image: url("images/blueline.svg");
}

.hand-line-gray {
  max-width: 760px;
  height: 18px;
  margin: 34px auto 30px;
  background-image: url("images/gray_line.svg");
}

.lastwd {
  color: #000000;
  font-weight: 600;
}

.wave {
  position: relative;
  width: 100%;
  z-index: 2;
  margin-top: -5%;
}

/* 06. Section 03 - How To Join
   --------------------------------------------------------- */
.howto-section {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 86px 0 70px;
  background: var(--color-wave);
}

.step-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.step-card {
  position: relative;
  min-height: 425px;
  padding: 42px 24px 76px;
  border-radius: 16px;
  background: #ffffff;
  font-weight: 600;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -18px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  transform: translateX(-50%);
}

.step-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.step-card p {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.65;
  text-align: left;
}

.step-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-icon-box {
  position: absolute;
  right: 30%;
  bottom: -5%;
  width: 120px;
  height: auto;
}

.step-icon {
  width: 100%;
}

.step-card:nth-child(2) .step-icon-box {
  width: 180px;
  height: auto;
  right: 20%;
  bottom: -10%;
}

.step-card:nth-child(4) .step-icon-box {
  right: 2%;
  bottom: -15%;
}

/* .step-card:nth-child(1) .step-icon-box,
.step-card:nth-child(3) .step-icon-box {
  right: 42px;
}

.step-icon-box-submit {
  width: 128px;
  height: 122px;
  right: -20px;
  bottom: -24px;
} */

/* 07. Section 04 - Theme Cards
   --------------------------------------------------------- */
.theme-section {
  position: relative;
  z-index: 2;
  padding: 54px 0 92px;
}

/* .theme-section::before {
  position: absolute;
  top: -86px;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 150px;
  content: "";
  background-image: url("images/Wave.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  transform: translateX(-50%) rotate(180deg);
} */

.theme-heading {
  margin-bottom: 34px;
  text-align: center;
}

.theme-heading p {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.4;
  padding-top: 10px;
}

.theme-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.theme-card {
  position: relative;
  padding-top: 48px;
  text-align: center;
}

.theme-avatar {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 104px;
  height: 104px;
  object-fit: contain;
  transform: translateX(-50%);
}

.theme-card-inner {
  position: relative;
  height: 440px;
  padding: 52px 28px 68px;
  border: 4px solid currentColor;
  border-radius: 18px;
  background: #ffffff;
  font-weight: 900;
}

.theme-card-blue {
  color: #4d72e6;
}

.theme-card-orange {
  color: #ff822e;
}

.theme-card-green {
  color: #42b961;
}

.theme-card h3 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
}

.theme-card h4 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.theme-card p {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.55;
  padding: 0 6%;
}

.theme-grade {
  margin: 4px 0 14px;
  color: #111111;
  font-size: 18px;
  line-height: 1;
}

.theme-question {
  min-height: 72px;
  margin-bottom: 0;
}

.theme-q1 {
  color: #4059d9;
}

.theme-q2 {
  color: #e7793a;
}

.theme-q3 {
  color: #4f8d5d;
}

.theme-question-line {
  max-width: 230px;
  margin-top: 0;
  margin-bottom: 18px;
}

.download-button {
  position: absolute;
  left: 50%;
  bottom: -43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.12;
  transform: translateX(-50%);
}

.download-button-blue {
  background: #4d72e6;
}

.download-button-orange {
  background: #ff922f;
}

.download-button-green {
  background: #4ebf66;
}

/* 08. Section 05 - Judges / Awards
   --------------------------------------------------------- */
.judge-section {
  padding: 0 0 70px;
}

.judge-paper {
  max-width: var(--content-width);
  min-height: 600px;
  padding: 42px 74px 48px 112px;
}

.judge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 76px;
  margin-bottom: 38px;
}

.judge-card {
  position: relative;
  font-weight: 900;
  text-align: center;
}

.judge-photo {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 8px;
}

.judge-card .title-label {
  position: absolute;
  right: 24px;
  top: 154px;
}

.judge-card h3 {
  margin: 16px 0 14px;
  font-size: 24px;
  line-height: 1.35;
}

.judge-card p {
  max-width: 360px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600;
}

.section-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
  max-width: 720px;
  margin: 0 auto 18px;
  text-align: center;
}

.section-divider h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
}

.pie-chart {
  display: block;
  max-width: 760px;
  margin: 0 auto 26px;
}

.pie-chart img {
  width: 100%;
}

.award-divider {
  margin-top: 2px;
  margin-bottom: 24px;
}

.award-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 70px;
  max-width: 760px;
  margin: 0 auto;
}

.award-card {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 132px 1px 1fr;
  align-items: center;
  gap: 22px;
  padding: 18px;
  border-radius: 42px;
  font-weight: 900;
}

.award-card > strong {
  font-size: 43px;
  line-height: 1.1;
  text-align: center;
}

.award-card > span {
  width: 1px;
  height: 76px;
  background: #111111;
}

.award-card p {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}

.award-card p span {
  color: #ff1f61;
}

.award-card-blue {
  background: #9bd5ef;
}

.award-card-green {
  background: #a9e49f;
}

.award-card-orange {
  background: #fac789;
}

.award-card-pink {
  background: #f4a2ae;
}

.award-card-purple {
  grid-column: 2;
  width: 100%;
  justify-self: stretch;
  background: #d4cff8;
}

.award-card-purple > strong {
  font-size: 29px;
}

.award-deco {
  position: absolute;
  pointer-events: none;
}

.award-bag {
  left: -36px;
  bottom: -8px;
  width: 78px;
}

.award-keyring {
  right: -22px;
  bottom: 8px;
  width: 68px;
}

.judge-bottom-deco {
  position: absolute;
  bottom: -34px;
  pointer-events: none;
}

.judge-boy {
  left: 172px;
  width: 145px;
}

.judge-girl {
  left: 320px;
  width: 120px;
}

/* 09. Section 06 - Criteria / Popular
   --------------------------------------------------------- */
.criteria-section {
  padding: 0 0 74px;
}

.criteria-paper {
  position: relative;
  max-width: var(--content-width);
  padding: 58px 86px 42px 112px;
  border: 7px solid #f36470;
  border-radius: 44px;
  background: #ffffff;
}

.criteria-paper > .title-label-criteria {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
}

.criteria-certificate {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 120px;
}

.criteria-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
}

.criteria-content p {
  margin: 0 0 12px;
}

.info-table {
  width: 100%;
  margin: 8px 0 18px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 20px;
  line-height: 1.35;
}

.info-table th,
.info-table td {
  padding: 5px 12px;
  border: 2px solid #111111;
  text-align: left;
}

.info-table th {
  background: #e7e3d9;
}

.info-table th:first-child,
.info-table td:first-child {
  width: 28%;
}

.notice-list,
.date-list {
  margin: 0 0 16px;
  padding-left: 20px;
}

.notice-list li,
.date-list li {
  margin-bottom: 4px;
}

.notice-list li::marker {
  color: #111111;
}

.small-label {
  display: inline-flex;
  margin: 4px 0 8px;
  padding: 8px 10px 5px;
  border-radius: 7px;
  background: #f36470;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.judge-award-note {
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.judge-award-badge {
  position: relative;
  min-height: 122px;
}

.judge-award-badge-img {
  position: absolute;
  top: 20%;
  left: -10px;
  width: 54px;
  z-index: 2;
}

.judge-award-badge .title-label {
  position: absolute;
  right: 0;
  bottom: 0;
}

.pink-title {
  position: absolute;
  max-width: none;
  width: 120%;
  z-index: 1;
}

.judge-award-note p {
  margin: 0;
}

.popular-box {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 54px 42px 30px;
  border: 7px solid #42d3d2;
  border-radius: 30px;
}

.popular-box > .title-label-popular {
  position: absolute;
  top: -34px;
  left: 82px;
}

.popular-medal {
  position: absolute;
  top: -31px;
  left: 226px;
  width: 48px;
}

.popular-prize {
  position: absolute;
  top: -34px;
  right: -242px;
  width: 310px;
}

.popular-prize img {
  width: 100%;
}

.popular-prize p {
  position: absolute;
  inset: 34px 22px 16px 40px;
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  transform: rotate(6deg);
}

.popular-prize span,
.popular-box li {
  color: #0075ff;
}

.popular-box p {
  margin: 0 0 14px;
}

.popular-box ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.popular-title {
  position: absolute;
  width: 100%;
  top: 18%;
  left: 0;
  text-align: center;
  transform: rotate(8deg);
}
.popular-ct {
  position: absolute;
  width: 80%;
  bottom: 16%;
  left: 13%;
  text-align: left;
  transform: rotate(8deg);
  font-size: 18px;
}

/* 10. Section 07 - Terms
   --------------------------------------------------------- */
.terms-section {
  padding: 10px 0 70px;
}

.terms-content {
  max-width: var(--content-width);
  margin: 0 auto;
  color: #111111;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.62;
}

.terms-content h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.4;
}

.terms-content h2::before {
  content: "・";
}

.terms-content p {
  margin: 0 0 18px;
}

.terms-list {
  counter-reset: termsItem;
  list-style: none;
  margin: 0 0 28px;
  padding-left: 0;
}

.terms-list > li {
  position: relative;
  counter-increment: termsItem;
  margin-bottom: 4px;
  padding-left: 28px;
}

.terms-list > li::before {
  position: absolute;
  top: 0;
  left: 0;
  content: counter(termsItem) ".";
}

.terms-list ol {
  counter-reset: termsSubItem;
  margin: 2px 0 0;
  padding-left: 0;
  list-style: none;
}

.terms-list ol > li {
  position: relative;
  counter-increment: termsSubItem;
  margin-bottom: 4px;
  padding-left: 40px;
}

.terms-list ol > li::before {
  position: absolute;
  top: 0;
  left: 0;
  content: counter(termsItem) "-" counter(termsSubItem) ".";
}

.terms-list dl {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0 4px;
  margin: 4px 0 0;
}

.terms-list dt,
.terms-list dd {
  margin: 0;
}

.status-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-overlay.hidden {
  display: none;
}

.status-box {
  min-width: 220px;
  padding: 28px 36px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.title-other {
  color: #ed1c24;
  font-size: 20px;
}

.Award-title {
  background-color: #f76470;
  color: #fff;
  width: fit-content;
  text-align: center;
  padding: 5px 20px;
  border-radius: 5px;
  margin: 5% auto;
}

.dl2 {
  width: 80%;
  margin: 0 auto;
}

/* 11. RWD
   --------------------------------------------------------- */
@media (max-width: 1200px) {
  .step-card {
    min-height: 480px;
  }
}
@media (max-width: 1024px) {
  .main-nav {
    font-size: 18px;
  }

  .intro-paper {
    padding: 46px 48px 58px 76px;
  }

  .paper-holes {
    left: -9px;
  }

  .intro-text {
    font-size: 22px;
  }

  .event-info {
    grid-template-columns: 300px 1fr;
  }

  .date-card {
    grid-column: 1 / -1;
    justify-self: center;
    width: 310px;
  }

  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-grid {
    max-width: 760px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .theme-card-inner {
    min-height: auto;
  }

  .judge-paper {
    padding: 42px 50px 48px 76px;
  }

  .judge-list {
    gap: 34px;
  }

  .award-grid {
    gap: 18px 28px;
  }

  .award-card {
    grid-template-columns: 112px 1px 1fr;
    gap: 16px;
  }

  .criteria-paper {
    padding: 54px 50px 40px 76px;
  }

  .popular-prize {
    position: relative;
    top: auto;
    right: auto;
    margin: -12px auto 10px auto;
  }

  .title-label-target {
    min-width: 150px;
    min-height: 50px;
    margin: 0 auto 8px;
    padding: 25px 40px 20px;
    font-size: 26px;
  }
  .title-label-time {
    padding-top: 10%;
    padding-right: 17%;
    background-image: none;
  }

  .date-card-content p {
    font-size: 20px;
  }

  .join-button {
    bottom: 5px;
  }

  .step-icon-box {
    position: absolute;
    right: 34%;
    bottom: 0;
    width: 120px;
    height: auto;
  }

  .theme-card p {
    font-size: 25px;
  }

  .criteria-certificate {
    top: -30px;
    right: -20px;
  }

  .terms-section {
    padding: 10px 100px 70px;
  }
}

@media (max-width: 767px) {
  body {
    background-size: auto 100%;
  }

  .page-wrap {
    width: min(100% - 24px, var(--page-width));
  }

  .site-header {
    padding-top: 10px;
  }

  .brand-logo {
    width: min(250px, 64vw);
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 58px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(80, 60, 30, 0.16);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .main-nav a + a::before {
    content: none;
  }

  .hero-wrap {
    width: min(100% - 8px, 1240px);
  }

  .hero-banner {
    margin-top: 4px;
  }

  .intro-section {
    margin-top: -6px;
  }

  .intro-paper {
    min-height: auto;
    padding: 34px 24px 56px 42px;
    border-radius: 15px;
  }

  .paper-panel {
    border-radius: 15px;
  }

  .paper-holes {
    top: 50px;
    bottom: 30px;
    left: -8px;
    width: 32px;
  }

  .paper-holes::before {
    background: radial-gradient(circle at 14px 12px, var(--color-bg) 0 9px, #f8f0da 10px, transparent 11px) 0 0 / 32px 34px repeat-y;
  }

  .intro-text {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.85;
  }

  .event-info {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .story-book {
    justify-self: center;
    width: min(70%, 250px);
  }

  .target-card {
    min-width: 0;
    width: 100%;
    padding: 8px 0 4px;
    text-align: center;
  }

  .target-card ul,
  .date-card-content p {
    font-size: 16px;
  }
  .title-other {
    font-size: 14px;
  }

  .date-card-content {
    inset: 0px 28px 34px;
  }

  .date-card {
    width: min(100%, 310px);
  }

  .title-label-target {
    min-width: 132px;
    min-height: 44px;
    font-size: 18px;
  }

  .title-label-join {
    min-width: 166px;
    min-height: 64px;
    font-size: 18px;
  }

  .title-label-theme {
    min-width: 196px;
    min-height: 76px;
    font-size: 25px;
  }

  .orange-wave {
    bottom: -92px;
    height: 150px;
    background-size: auto 100%;
  }

  .howto-section {
    padding: 44px 0 58px;
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .step-card {
    min-height: 280px;
    padding: 42px 24px 26px;
  }

  .theme-section {
    padding: 48px 0 82px;
  }

  .theme-section::before {
    top: -64px;
    height: 110px;
    background-size: auto 100%;
  }

  .theme-heading p {
    font-size: 19px;
  }

  .theme-grid {
    gap: 46px;
  }

  .theme-card h3 {
    font-size: 32px;
  }

  .theme-card h4 {
    font-size: 22px;
  }

  .theme-card p {
    font-size: 18px;
  }

  .judge-section {
    padding-bottom: 52px;
  }

  .judge-paper {
    padding: 34px 24px 56px 42px;
  }

  .judge-list {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .judge-photo {
    max-width: 320px;
  }

  .judge-card .title-label {
    top: auto;
    right: 18px;
    bottom: 110px;
  }

  .judge-card h3 {
    font-size: 17px;
  }

  .judge-card p {
    font-size: 15px;
  }

  .section-divider {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-bottom: 12px;
  }

  .section-divider .hand-line {
    justify-self: center;
    width: 180px;
  }

  .pie-chart {
    max-width: 420px;
  }

  .award-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .award-card,
  .award-card-purple {
    grid-column: auto;
    width: 100%;
    grid-template-columns: 98px 1px 1fr;
    gap: 14px;
    min-height: 104px;
    padding: 16px 22px;
  }

  .award-card > strong {
    font-size: 34px;
  }

  .award-card-purple > strong {
    font-size: 24px;
  }

  .award-card p {
    font-size: 16px;
  }

  .judge-bottom-deco {
    display: none;
  }

  .criteria-section {
    padding-bottom: 56px;
  }

  .criteria-paper {
    padding: 50px 24px 34px 42px;
    border-width: 5px;
    border-radius: 28px;
  }

  .criteria-paper > .title-label-criteria {
    top: -30px;
  }

  .criteria-certificate {
    display: none;
  }

  .criteria-content {
    font-size: 16px;
  }

  .info-table {
    font-size: 16px;
  }

  .info-table th,
  .info-table td {
    padding: 5px 7px;
  }

  .judge-award-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .judge-award-badge {
    width: 126px;
    margin: 0 auto;
  }

  .popular-box {
    padding: 48px 22px 26px;
    border-width: 5px;
  }

  .popular-box > .title-label-popular {
    left: 24px;
  }

  .popular-medal {
    left: 168px;
  }

  .popular-prize {
    position: relative;
    width: min(100%, 250px);
    margin: 0 auto 14px;
  }

  .popular-prize p {
    font-size: 13px;
  }

  .terms-content {
    font-size: 16px;
    line-height: 1.58;
  }

  .terms-list > li {
    padding-left: 24px;
  }

  .terms-list ol > li {
    padding-left: 38px;
  }

  .step-icon {
    display: none;
  }

  .terms-section {
    padding: 10px 20px 70px;
  }

  .popular-ct {
    position: absolute;
    width: 80%;
    bottom: 16%;
    left: 13%;
    text-align: left;
    transform: rotate(8deg);
    font-size: 14px;
  }

  .popular-title {
    position: absolute;
    width: 100%;
    top: 18%;
    left: 0;
    text-align: center;
    transform: rotate(8deg);
  }

  .dl2 {
    width: 90%;
  }
}

/* 12. Upload Page
   --------------------------------------------------------- */
.upload-header .header-inner {
  justify-content: space-between;
}

.upload-nav {
  margin-left: auto;
}

.upload-page .hero-banner {
  margin-top: -12px;
}

.upload-form-section {
  padding: 38px 0 80px;
}

.upload-form {
  position: relative;
  width: min(95%, calc(var(--content-width) * 0.95));
  margin: 0 auto;
  padding: 74px 72px 58px;
  border: 8px solid #69cfc9;
  border-radius: 56px 56px 0 0;
  background: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.45;
}

.upload-form-title {
  position: absolute;
  top: -44px;
  left: 50%;
  min-width: 180px;
  min-height: 74px;
  padding: 14px 34px 18px;
  background-image: url("images/title_Target.svg");
  color: #111111;
  font-size: 24px;
  transform: translateX(-50%);
}

.upload-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.upload-group-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  margin-bottom: 28px;
}

.upload-student-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 24px;
}

.upload-group-fieldset legend {
  float: left;
  margin-right: 8px;
  padding: 0;
}

.upload-student-fieldset legend {
  float: left;
  margin-right: 8px;
  padding: 0;
}

.upload-group-fieldset label,
.upload-student-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.upload-form input[type="radio"],
.upload-form input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 3px;
  accent-color: #31bdb9;
  cursor: pointer;
}

.upload-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 42px;
}

.upload-field {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: end;
  min-width: 0;
}

.upload-field-full {
  grid-column: 1 / -1;
}

.upload-branch-selects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.upload-elementary-field {
  display: none;
}

.upload-select-field {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

.upload-select-field label {
  white-space: nowrap;
}

.upload-branch-selects select {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 2px solid #69cfc9;
  border-radius: 8px;
  background: #ffffff;
  color: #666666;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  outline: none;
}

.upload-field label {
  white-space: nowrap;
}

.upload-field input[type="text"],
.upload-field input[type="tel"] {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  border-bottom: 1px solid #777777;
  border-radius: 0;
  background: transparent;
  font: inherit;
  line-height: 1.2;
  outline: none;
}

.upload-file-field {
  align-items: center;
  margin-top: 4px;
}

.upload-file-control {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.upload-file-control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 4px 18px;
  border: 3px solid #69cfc9;
  border-radius: 999px;
  background: #ecfffb;
  color: #111111;
  cursor: pointer;
}

.upload-file-note {
  color: #555555;
  font-size: 16px;
  font-weight: 800;
}

.upload-agreements {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  font-size: 16px;
  line-height: 1.55;
}

.upload-agreements label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: start;
}

.upload-submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 62px;
  margin: 28px auto 0;
  padding: 8px 28px;
  border: 0;
  background: url("images/title_HowToJoin.svg") center / 100% 100% no-repeat;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .upload-form {
    padding: 64px 46px 52px;
    font-size: 19px;
  }

  .upload-field {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .upload-form-section {
    padding: 32px 0 56px;
  }

  .upload-header .header-inner {
    align-items: flex-start;
  }

  .upload-nav {
    top: 58px;
  }

  .upload-form {
    width: 100%;
    padding: 58px 22px 42px;
    border-width: 5px;
    border-radius: 30px 30px 0 0;
    font-size: 16px;
  }

  .upload-form-title {
    top: -34px;
    min-width: 152px;
    min-height: 60px;
    font-size: 18px;
  }

  .upload-group-fieldset {
    display: grid;
    gap: 10px;
  }

  .upload-student-fieldset {
    display: grid;
    gap: 10px;
  }

  .upload-group-fieldset legend,
  .upload-student-fieldset legend {
    float: none;
    margin: 0 0 4px;
  }

  .upload-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .upload-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .upload-file-control {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .upload-select-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .upload-file-note {
    font-size: 13px;
  }

  .upload-branch-selects select {
    min-height: 50px;
    font-size: 15px;
  }

  .upload-agreements {
    font-size: 12px;
  }
}
