:root {
  /* Colors */
  --clr-primary: #ffcac8;
  --clr-secondary: #d3011c;
  --clr-tertiary: #fff8dc;
  --clr-quaternary: #0802a3;
  --clr-underline: #ff9c97;
  --clr-extra: #ffc4c1;
  --clr-dark: #404040;
  --clr-light: #eeeeee;
  --clr-white: #ffffff;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
html,
body {
  height: 100%;
  font-family: "Roboto", "Hiragino Sans", "Meiryo", "Hiragino Kaku Gothic ProN",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
svg,
picture {
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
ul {
  list-style: none;
  font-size: 1.2rem;
}
ol {
  font-size: 1.2rem;
}
a {
  color: black;
  text-decoration: none;
}
/* Utility */
.text-xxl {
  font-size: 2.5rem;
  line-height: 1.4;
  font-weight: normal;
}
.text-xl {
  font-size: 2rem;
  line-height: 1.4;
  font-weight: normal;
}
.text-lg {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: normal;
}
.text-md {
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: normal;
}
.text-sm {
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: normal;
}
.text-bold {
  font-weight: bold;
}

.btn {
  display: inline-block;
  padding: 0.75rem 3rem;
  background: var(--clr-tertiary);
  border-radius: 1rem;
  border: 1px solid var(--clr-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 500;
  transition: 0.5s;
  text-align: center;
  a {
    display: inline-block;
  }
}

.btn:hover {
  opacity: 0.6;
}

.uline {
  text-decoration: underline;
  text-decoration-color: var(--clr-underline);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.5em;
  margin-bottom: 1em;
}

.uline2 {
  text-decoration: underline;
  text-decoration-color: var(--clr-quaternary);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.5em;
  margin-bottom: 1em;
}

.merit-item h3::before,
.logo a::before {
  content: "";
  display: inline-block;
  mask: url("images/hat3.png");
  background-color: var(--clr-quaternary);
  height: 1.6rem;
  width: 1.6rem;
  vertical-align: text-bottom;
  mask-size: cover;
  margin-right: 0.5rem;
}

.wrapper {
  width: 90vw;
  margin: 0 auto;
  max-width: 1080px;
}
.wrapper-sm {
  width: 90vw;
  margin: 0 auto;
  max-width: 740px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.main-menu ul {
  display: flex;
  gap: 1rem;
  a {
    color: var(--clr-white);
  }
}
.hero-wrapper {
  background: var(--clr-primary);
  max-width: 98svw;
  margin: 0 auto;
  border-radius: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.hero {
  min-height: 80svh;
  width: 90vw;
  margin: 0 auto;
  max-width: 1080px;
  h1 {
    color: var(--clr-secondary);
    margin-bottom: 2rem;
  }
  p {
    margin-bottom: 1rem;
  }
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
.inside-img {
  background: url(images/hero.jpg) center/cover no-repeat;
  height: 50svh;
  border-radius: 2rem;
}
.header-info {
  background: var(--clr-primary);
  padding: 2rem;
  border-radius: 2rem;
}

p.header-date {
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.info {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-top: 2rem;
}

.info-item {
  h3 {
    font-weight: 500;
    color: var(--clr-quaternary);
  }
}
.info-item:nth-of-type(1) {
  grid-column: 1/3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.info-item:nth-of-type(even) {
  justify-self: end;
}

.info-btn {
  margin-top: 2rem;
}
.info2-header {
  margin-top: 2rem;
  text-align: center;
}
.info2-table {
  max-width: 780px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-top: 1px solid var(--clr-secondary);
  border-right: 1px solid var(--clr-secondary);
  margin: 0 auto;
}

.info2-item {
  padding: 1rem;
  border-left: 1px solid var(--clr-secondary);
  border-bottom: 1px solid var(--clr-secondary);
}

.info2-item ol {
  margin-left: 1rem;
}

.info2-item:nth-of-type(1),
.info2-item:nth-of-type(2) {
  background: var(--clr-underline);
}
.info2-item:nth-of-type(3),
.info2-item:nth-of-type(4),
.info2-item:nth-of-type(7),
.info2-item:nth-of-type(8) {
  background: var(--clr-tertiary);
}
.info2-item:nth-of-type(5),
.info2-item:nth-of-type(6),
.info2-item:nth-of-type(9),
.info2-item:nth-of-type(10) {
  background: var(--clr-extra);
}

.belowtable .wrapper-sm {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--clr-primary);
  border-radius: 2rem;
  padding: 2rem;
  margin-top: 2rem;
}
.merit-wrapper {
  background: var(--clr-light);
  max-width: 98svw;
  margin: 2rem auto;
  border-radius: 2rem;
  padding: 2rem 0;
}

.merit {
  width: 90vw;
  margin: 0 auto;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 10% 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
  h3 {
    font-weight: 500;
    color: var(--clr-quaternary);
  }
}

.merit-item {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--clr-secondary);
}

.merit-item:nth-of-type(1) {
  border: none;
  grid-column: 1/3;
  justify-self: center;
}

.gift {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  column-gap: 2.4rem;
  margin-bottom: 2rem;
  justify-content: center;
  align-items: center;
}

.gift-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--clr-primary);
  padding: 2rem;
  border-radius: 1rem;
  border: 3px solid var(--clr-secondary);
  h3 {
    color: var(--clr-secondary);
  }
}
.gift-item:nth-of-type(1) {
  background: none;
  border: none;
  grid-column: 1/4;
  justify-self: center;
}
.tleft {
  text-align: left;
}

.school-wrapper {
  max-width: 98svw;
  margin: 2rem auto;
  border-radius: 2rem;
  padding: 2rem 0;
}
.school {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.school-box {
  display: flex;
  justify-content: baseline;
  align-items: baseline;
}
.school-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}
.school-logo {
  width: 100px;
  height: 75px;
  aspect-ratio: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}
.school-logo1 {
  width: 120px;
  height: 75px;
  aspect-ratio: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}
.school-logo2 {
  width: 180px;
  height: 75px;
  aspect-ratio: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}
.school-logo3 {
  width: 80px;
  height: 75px;
  aspect-ratio: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}
.school-logo4 {
  width: 120px;
  height: 75px;
  aspect-ratio: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}
.register .wrapper-sm {
  background: var(--clr-primary);
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  h2,
  h3 {
    text-align: center;
    margin-bottom: 1rem;
  }
}
.contact p {
  text-align: center;
  line-height: 1rem;
}
.btn-register {
  width: 200px;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.company {
  max-width: 90svw;
  margin: 1rem auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.company-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  p {
    line-height: 1.2rem;
  }
}
.company-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.company-box img {
  width: 70px;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  margin-right: 1rem;
  margin-bottom: 1rem;
}
.tropical a {
  color: var(--clr-quaternary);
}
.supporter {
  max-width: 98svw;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.supporter-box {
  display: flex;
  justify-content: baseline;
  align-items: baseline;
}
.supporter p {
  text-align: center;
  font-size: 0.9rem;
}
footer {
  background: var(--clr-primary);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Media Queries */

@media (max-width: 670px) {
  p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  ul,
  ol {
    font-size: 0.9rem;
  }
  .text-xxl {
    font-size: 2rem;
  }
  .text-xl {
    font-size: 1.3rem;
  }
  .text-lg {
    font-size: 1.1rem;
  }
  .text-md {
    font-size: 1rem;
  }
  .text-sm {
    font-size: 0.8rem;
  }
  .btn {
    padding: 0.75rem 1.5rem;
  }
  .wrapper {
    width: 90vw;
  }
  .logo a {
    font-size: 0.9rem;
  }
  .btn-nav {
    padding: 0.3rem;
    a {
      font-size: 0.8rem;
    }
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    height: 120svh;
  }
  .header-info {
    padding: 0.5rem;
  }
  .info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  p.header-date {
    font-size: 1.3rem;
  }

  .info-item:nth-of-type(1) {
    grid-column: 1;
  }
  .info-item:nth-of-type(even) {
    justify-self: start;
  }
  .info2-table {
    margin: 0 1rem;
  }

  .info-btn {
    display: block;
    text-align: center;
    margin: 2rem auto 0;
    width: 50%;
    font-size: 1rem;
  }

  .info-item {
    padding: 0 1.8rem;
  }
  .info2-table {
    grid-template-columns: 1fr 3fr;
  }
  .merit {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0;
  }
  .merit-item {
    padding: 0.6rem 1rem;
  }
  .merit-item:nth-of-type(1) {
    grid-column: 1;
  }
  .gift {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .gift-item {
    padding: 0.6rem 1rem;
  }
  .gift-item:nth-of-type(1) {
    grid-column: 1;
    justify-self: center;
  }
  .supporter-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-content: center;
    align-items: center;
  }
  .school-item p {
    font-size: 0.7rem;
  }
  .school-logo {
    width: 65px;
    height: 50px;
  }
  .school-logo1 {
    width: 80px;
    height: 50px;
  }
  .school-logo2 {
    width: 150px;
    height: 50px;
  }
  .school-logo3 {
    width: 50px;
    height: 50px;
  }
  .school-logo4 {
    width: 85px;
    height: 50px;
  }
  .supporter {
    margin: 0;
  }
}
