body,
html {
  height: 100vh;
  padding: 0;
  margin: 0;
}

:root {
  --background: #f4f4f4;
  --font: #1E2327;
  --highlight: #4f9e92;
  --grass: #fefefe;
  --shadow: #e7e7e7;
  --light: white;
  --popup: rgba(255, 255, 255, .4);
  --backshadow: rgba(255, 255, 255, .5);
}

@media (prefers-color-scheme: dark) {
  html {
    transition: .5s;
  }

  :root {
    --background: #1E2327;
    --font: #D7D7D7;
    --highlight: #4f9e92;
    --grass: #293035;
    --shadow: rgba(0, 0, 0, .3);
    --light: rgba(37, 41, 44, .8);
    --popup: rgba(37, 44, 49, .7);
    --backshadow: rgba(44, 51, 57, .5);
  }
}

.zen-maru gothic-light {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 300;
  font-style: normal;
}

.zen-maru gothic-regular {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 400;
  font-style: normal;
}

.zen-maru gothic-medium {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 500;
  font-style: normal;
}

.zen-maru gothic-bold {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 700;
  font-style: normal;
}

.zen-maru gothic-black {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 900;
  font-style: normal;
}

body {
  max-width: 700px;
  height: auto;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Apple SD Gothic Neo", "游ゴシック体", "YuGothic", "游ゴシック Medium", "Yu Gothic Medium", sans-serif;
  color: var(--font);
  background-color: var(--background);
}

@media screen and (max-width: 821px) {
  body {
    margin: 0 1rem;
    padding-top: 1rem;
  }
}

@media screen and (max-width: 499px) {
  body {
    margin: 0 0.5rem;
  }
}

h2 {
  font-family: "Zen Maru Gothic";
  color: var(--highlight);
  font-size: 1.3em;
}

h3 {
  display: inline-block;
  font-family: "Zen Maru Gothic";
  color: var(--font);
  font-size: 1em;
  padding: 1em 0;
  margin: 0;
}

p {
  font-size: 1em;
  line-height: 1.6em;
}

a {
  font-family: "Zen Maru Gothic";
  color: var(--highlight);
  text-decoration: none;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1em;
}

h1 {
  margin: 0;
}

nav {
  position: relative;
}

nav details[open] ul {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  padding: 1.5em;
  border-radius: 7px;
  background-color: var(--grass);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

nav details ul {
  list-style: none;
  padding: 0;
  margin: 0.7em 0;
}

nav details ul li {
  margin-bottom: 10px;
}

nav details ul li:last-child {
  margin-bottom: 0;
}

nav summary {
  display: block;
}

nav summary::-webkit-details-marker {
  display: none;
}

nav details ul li a {
  color: var(--font);
}

details ul li a:hover {
  color: var(--highlight);
}

.article-wrapper {
  padding-left: 0;
}

.item {
  list-style: none;
}

.card {
  border-radius: 10px;
  margin: 1em 0 1.5em 0;
  box-shadow: 13px 13px 30px var(--shadow),
    -13px -13px 30px var(--light);
}

.heading {
  background-color: var(--grass);
  font-family: "Zen Maru Gothic";
  border-radius: 10px 10px 0 0;
  padding: 1em 2em;
}

.content {
  border: 0.05em solid var(--backshadow);
}

.label {
  padding: 0.05em 0.5em;
  margin-right: 0.5em;
  border-radius: 7px;
  font-size: 0.9em;
  font-weight: normal;
  color: var(--background);
  background-color: var(--highlight);
}

.heading h3 {
  padding: 0;
  margin: 0.5em 0 0 0;
}

.card details {
  padding: 1em 2em;
  cursor: pointer;
}

.card summary {
  list-style: none;
  line-height: 2em;
}

.content summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.content summary::-webkit-details-marker {
  display: none;
}

.content summary::after {
  transform: translateY(-25%) rotate(45deg);
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-bottom: 3px solid var(--highlight);
  border-right: 3px solid var(--highlight);
  content: '';
  transition: transform .3s;
}

.content[open] summary::after {
  transform: rotate(225deg);
}

.content strong {
  color: var(--highlight);
}

h4 {
  font-family: "Zen Maru Gothic";
}

.content ul {
  padding-left: 1em;
}

.content a {
  text-decoration: underline;
  font-weight: bold;
}

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

.images-wrapper {
  height: 0;
  padding-bottom: 100%;
  position: relative;
}

.images-wrapper:first-child {
  margin-right: 5px;
}

.images-wrapper img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.image-container {
  display: -webkit-flex;
  display: flex;
  width: 100%;
  max-height: 40vh;
}

.image-wrapper {
  display: inline-block;
  text-align: center;
  height: auto;
  width: 100vw;
}

.image-wrapper img {
  object-fit: cover;
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  border-radius: 5px;
}

@media (orientation: landscape) {
  .image-container {
    width: 100%;
    max-height: 50vh;
  }

  .image-wrapper {
    height: auto;
    width: 100vw;
  }
}

footer {
  display: flex;
  flex-flow: column;
  align-items: center;
  height: auto;
}

.copyright {
  font-size: 1em;
}