/* fonts */

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 100;
  src: url("/assets/fonts/Lato/Lato-ThinItalic.ttf") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 300;
  src: url("/assets/fonts/Lato/Lato-LightItalic.ttf") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  src: url("/assets/fonts/Lato/Lato-Italic.ttf") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 700;
  src: url("/assets/fonts/Lato/Lato-BoldItalic.ttf") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 900;
  src: url("/assets/fonts/Lato/Lato-BlackItalic.ttf") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 100;
  src: url("/assets/fonts/Lato/Lato-Thin.ttf") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  src: url("/assets/fonts/Lato/Lato-Light.ttf") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/Lato/Lato-Regular.ttf") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  src: url("/assets/fonts/Lato/Lato-Bold.ttf") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 900;
  src: url("/assets/fonts/Lato/Lato-Black.ttf") format("woff2");
}

:root {
  color-scheme: light dark;
  --highlight-bg: #416868;
  --backdrop-bg: rgba(255, 255, 255, 0.72);
  --bg-color: white;
  --text-color: black;
  --shadow-color: rgba(100, 100, 100, 0.4);
  --footer-bg: gainsboro;
  --footer-text: rgb(59, 59, 59);
  --footer-text-hover: black;
  --header-height: 64px;
  --footer-height: 64px;
  --main-padding: 80px;
  --main-padding-top: 240px;
  --main-gap: 96px;
  --header-padding: 40px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-color: white;
    --backdrop-bg: rgba(255, 255, 255, 0.72);
    --text-color: black;
    --shadow-color: rgba(100, 100, 100, 0.4);
    --footer-bg: gainsboro;
    --footer-text: rgb(59, 59, 59);
    --footer-text-hover: black;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: black;
    --backdrop-bg: rgba(0, 0, 0, 0.72);
    --text-color: white;
    --shadow-color: rgba(100, 100, 100, 0);
    --footer-text: gainsboro;
    --footer-bg: rgb(28, 28, 28);
    --footer-text-hover: white;
    --header-padding: 40px;
  }
}

body {
  font-family: "Lato";
  font-size: 16px;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
}

dialog {
  border-radius: 16px;
  border-width: 1px;
  padding: 16px;
  border-color: var(--footer-bg);
  animation: fade-out 0.5s ease-out;
}

dialog:open {
  animation: fade-in 0.5s ease-out;
}

dialog:open::backdrop {
  background: var(--backdrop-bg);

  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6.3px);
  -webkit-backdrop-filter: blur(6.3px);

  animation: backdrop-fade-in 0.5s ease-out forwards;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-text {
  font-size: 1.3em;
  text-decoration: none;
  color: var(--text-color);
  margin: 0;
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 8px;
  transition: background-color 150ms ease-in-out;
  transition: color 150ms ease-in-out;
}

.modal-svg {
  fill: var(--text-color);
}

.modal-text:hover {
  background-color: var(--highlight-bg);
  color: white;
  transition: all 150ms ease-in-out;
}

.modal-text:hover > .modal-svg > path {
  fill: white;
}

.modal-text:focus > .modal-svg > path {
  fill: white;
}

.modal-text:focus {
  background-color: var(--highlight-bg);
  outline: none;
  color: white;
  transition: all 150ms ease-in-out;
}

.menu:hover {
  cursor: pointer;
}

.menu:hover > svg > path {
  fill: var(--highlight-bg);
  transition: all 150ms ease-in-out;
}

.close {
  float: right;
  margin-right: 8px;
}

.footer-text {
  text-decoration: none;
  color: var(--footer-text);
}

.footer-text:hover {
  color: var(--footer-text-hover);
}

h1 {
  margin-block-start: 0;
  margin-block-end: 0;
  font-family: "Lato";
  color: var(--text-color);
  font-size: 0.8em;
  font-weight: 600;
  word-break: break-word;
}

h2 {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-top: 16px;
  font-family: "Lato";
  color: var(--text-color);
  font-size: 3em;
  font-weight: 300;
  word-break: break-word;
  font-style: italic;
}

p {
  margin-top: 32px;
  font-family: "Lato";
  color: var(--text-color);
  font-size: 1.2em;
  line-height: 1.3em;
  font-weight: 400;
  word-break: break-word;
}

.p-width {
  max-width: 44ch;
}

svg > path {
  fill: var(--footer-text);
}

img {
  background-color: transparent;
  margin: 0;
}

.badge {
  height: 60px;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fade-in 600ms ease-in-out;
}

.shadow {
  background-color: transparent;
  box-shadow: 0px 32px 32px 60px var(--bg-color),
    0px 120px 64px 0px var(--shadow-color);
}

header {
  height: var(--header-height);
  position: sticky;
  box-shadow: 0px 2px 5px rgba(100, 100, 100, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  margin: auto;
  max-width: 1920px;
}

.left {
  padding-left: var(--header-padding);
}

.right {
  padding-right: var(--header-padding);
}

main {
  padding: var(--main-padding);
  padding-top: var(--main-padding-top);
  height: calc(
    100vh - var(--header-height) - var(--footer-height) - 80px -
      var(--main-padding-top)
  );
}

.main-container {
  display: flex;
}

.main-outer {
  display: flex;
  width: 100%;
  margin: auto;
  max-width: 1920px;
  height: 100%;
  gap: var(--main-gap);
}

.main-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: min(640px, 100%);
  max-height: 800px;
  height: 60%;
  align-items: end;
}

.hero-text {
  text-align: right;
}

.upper-spacer {
  flex: 1;
}

.main-spacer {
  flex: 1;
}

.badge-box {
  display: flex;
  flex: 3;
  align-items: center;
}

.image-container {
  display: flex;
  flex: 1;
  justify-content: flex-start;
}

.image {
  object-fit: contain;
  min-height: min(640px, 100%);
  max-height: 800px;
  height: 60%;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  margin: auto;
  max-width: 1920px;
}

.max-width {
  width: 100%;
  margin: auto;
  max-width: 1920px;
}

.height100 {
  height: 100%;
}

.space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bgcyan {
  background-color: aqua;
}

.headlinebox {
  gap: 80px;
}

.textbox {
  min-height: 200px;
  padding: 40px;
}

.flex1 {
  flex: 1;
}

.flex2 {
  flex: 2;
}

.flex3 {
  flex: 3;
}

.max-height {
  min-height: min(640px, 100%);
  max-height: 800px;
  height: 60%;
}

.contain {
  object-fit: contain;
}

.df {
  display: flex;
}

.fdc {
  flex-direction: column;
}

.jccenter {
  display: flex;
  justify-content: center;
}

.jcstart {
  justify-content: flex-start;
}

.aie {
  align-items: end;
}

.aic {
  align-items: center;
}

footer {
  height: var(--footer-height);
  background-color: var(--footer-bg);
}

.text-right {
  text-align: right;
}

.reading-width {
  max-width: 96ch;
}

.show-s {
  display: none;
}

@media (max-height: 1380px) {
  :root {
    --main-padding-top: 80px;
  }
}

@media (max-width: 1070px) {
  :root {
    --main-padding-top: 40px;
    --main-padding: 8px;
    --header-padding: 8px;
  }

  main {
    height: auto;
  }

  .main-outer {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding-bottom: 120px;
  }

  .main-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: none;
    max-height: none;
    height: auto;
    align-items: center;
    padding-left: var(--main-padding);
    padding-right: var(--main-padding);
  }

  .hero-text {
    text-align: center;
  }

  .image-container {
    display: flex;
    flex: 1;
    justify-content: center;
  }

  .image {
    object-fit: contain;
    min-height: none;
    max-height: 800px;
    height: auto;
    width: 100%;
  }

  .small-orientation {
    display: flex;
    justify-content: end;
  }

  .badge-box {
    margin-top: 16px;
  }

  .d-none-s {
    display: none;
  }

  .show-s {
    display: inline;
  }
}

@media (max-width: 390px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .right {
    gap: 16px;
  }
}
