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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* 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 body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

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

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

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

@font-face {
  font-family: Ferrari-Sans;
  src: url("../font/Ferrari-SansLight.otf");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: Ferrari-Sans;
  src: url("../font/Ferrari-SansLightItalic.otf");
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: Ferrari-Sans;
  src: url("../font/Ferrari-SansRegular.otf");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: Ferrari-Sans;
  src: url("../font/Ferrari-SansRegularItalic.otf");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: Ferrari-Sans;
  src: url("../font/Ferrari-SansBold.otf");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: Ferrari-Sans;
  src: url("../font/Ferrari-SansBoldItalic.otf");
  font-weight: 600;
  font-style: italic;
}
:root {
  --color-red: #ed1c24;
  --color-light-gray: #d0d3dd;
  --color-dark-gray: #22232b;
  --color-main-bg: #16171b;
  --font-size: 1.5rem;
  --font-size-small: 1rem;
  --font-size-large: 1.8rem;
  --inner-padding: 50px;
}
@media (max-width: 850px) {
  :root {
    --inner-padding: 30px;
  }
}

html {
  background: var(--color-main-bg);
  font-size: 62.5%;
  touch-action: manipulation;
}

body {
  margin: 0;
  color: #fff;
  font-family: Ferrari-Sans, sans-serif;
  font-weight: 400;
  position: relative;
  word-break: break-word;
  font-size: var(--font-size);
  line-height: 1.8;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  line-height: 1.6;
}

.contents-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--inner-padding);
}

.container {
  padding: 0 0 var(--inner-padding);
}

.button {
  --color: inherit;
  --background: transparent;
  display: inline-block;
  text-align: center;
  font-size: var(--font-size);
  text-decoration: none;
  padding: 1em 4rem;
  color: var(--color);
  background: var(--background);
  border: none;
  border-radius: 3.6rem;
  cursor: pointer;
}
.button--primary {
  --background: var(--color-red);
  --color: #fff;
}
@media (min-width: 851px) {
  .button--primary {
    transition: background-color 0.1s linear 0s, color 0.1s linear 0s;
  }
}
.button--line {
  border: 1px solid currentColor;
}
@media (min-width: 851px) {
  .button--line {
    transition: background-color 0.1s linear 0s, border-color 0.1s linear 0s;
  }
}
.button.icon {
  display: flex;
  gap: 0.8em;
  align-items: center;
  justify-content: center;
}
@media (min-width: 851px) {
  .button.icon::before {
    transition: background-color 0.1s linear 0s;
  }
}
@media (min-width: 851px) {
  .button--primary:hover {
    background-color: #fff;
    color: var(--color-dark-gray);
  }
  .button--primary.icon:hover::before {
    background-color: var(--color-dark-gray);
  }
  .button--line:hover {
    background-color: var(--color-red);
    border-color: var(--color-red);
  }
  .button--line.icon:hover::before {
    background-color: #fff;
  }
}

.button-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

header.common {
  margin: 0 0 50px;
  width: 100%;
  background: linear-gradient(180deg, #871015 0%, #ed1c24 70%, #ff777a 100%);
  z-index: 10;
  -webkit-user-select: none;
  user-select: none;
  padding: 20px 0;
}
header.common .header-logo {
  width: 60px;
  margin: 0 auto;
}

footer.common {
  margin: 50px 0 0;
}
footer.common hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid var(--color-dark-gray);
}
footer.common .copyright {
  text-align: center;
  margin-top: 20px;
  font-size: var(--font-size-small);
}

.contents-title {
  font-size: 3rem;
  margin-bottom: 50px;
}

.contents-main h2 {
  font-size: 2.2rem;
  margin-bottom: 1em;
  border-left: 2px solid var(--color-red);
  padding-left: 1em;
}
.contents-main * + h2 {
  margin-top: 2.5em;
}
.contents-main h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.contents-main h4 {
  font-size: 1.6rem;
  margin: 0 0 10px;
}
.contents-main h2 + h3 {
  margin-top: 30px;
}
.contents-main * + h4 {
  margin-top: 30px;
}
.contents-main p {
  margin-bottom: 20px;
}
.contents-main p:last-child {
  margin-bottom: 0;
}
.contents-main p + h4 {
  margin-top: 30px;
}
.contents-main hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid var(--color-dark-gray);
}
.contents-main .note {
  background: var(--color-dark-gray);
  padding: 2em;
  margin: 40px 0 0;
}
.contents-main ul {
  list-style: none;
  padding: 0;
}
.contents-main ul li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1em;
}
.contents-main ul li::before {
  content: "";
  display: block;
  margin-top: calc(1em - 3px);
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
}
