* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  font-family: sans-serif;
}

body {
  display: grid;
  grid-template-columns: 60% 40%;
  grid-template-rows: 70px auto;
  height: 100vh;
}

header {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 2;
  display: flex;
  align-items: center;
  margin: auto;
  padding: 10px;
  background-color: #fff;
  height: 70px;

  img {
    margin-right: 10px;
  }
  a:link, a:hover, a:active, a:visited {
    color: black;
    text-decoration: none;
  }
}

.category {
  font-size: 1.2em;
  font-weight: bold;
}

figure {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 3;
  position: relative;
  background-color: #000;
  overflow: hidden;
  height: 100vh;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.nav-left, .nav-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: transparent;
  font-size: 2rem;
  font-weight: bold;
  z-index: 2;
  transition: color 0.2s ease;
}


.nav-left,
.nav-left span {
  position: absolute;
  left: 0;
}

.nav-right,
.nav-right span {
  position: absolute;
  right: 0;
}

.nav-left:hover,
.nav-right:hover {
  color: white;
}
.info-area {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 2;
  grid-row-end: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f9f9f9;
  padding: 20px;
}
main {
  order: 1;
  p {
    text-indent: 1em;
  }
}

h1 {
  background-color: #e0f7ff;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 1.3em;
  a:link, a:hover, a:active, a:visited {
    color: black;
    text-decoration: underline dotted black;
  }
}

dl {
  margin-top: 10px;
  margin-bottom: 30px;
  /*div {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
  }*/
  display: grid;
  gap: 10px;
  grid-template-columns: [key] minmax(120px, min-content) [value] 1fr;

  dt {
    grid-column: key;
    white-space: nowrap;
    width: 120px;
    align-content: center;
    font-weight: bold;
    margin: 0;
  }

  dd {
    grid-column: value;
    align-content: center;
    margin-left: 0;
    margin: 0;
  }
}

.button {
  display: inline-block;
  padding: 6px 12px;
  background: #ddd;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #aaa;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.button:hover,
.button:active {
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.25);
}

nav {
  order: 2;
  margin-top: 20px;
}
.disclaimer, #disclaimer {
  margin: 1em 0;
  padding: 0.5em ;
  border-style: dashed;
  border-width: 1px;
  border-radius: 5px;
  border-color: black;
  img {
    width: 1.1em;
    height: 1.1em;
    margin: 0 0.5em 0 0;
  }
  ul {
    margin: 0.5em 1em 0.5em 2em;
    li {
      margin: 0.5em 0;
      a:link, a:hover a:active, a:visited {
        color: black;
        text-decoration: underline dotted gray;
      }
    }
  }
}
footer {
  order: 3;
  text-align: center;
  font-size: 0.9em;
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  nav {
    width: 100%
  }
}

/* スマホ表示用 */
@media (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  figure {
    order: 2;
    width: 100%;
    height: auto;
  }

  .info-area {
    order: 3;
    width: 100%;
  }

  header {
    order: 1;
    margin-bottom: 10px;
  }


  nav {
    order: 3;
  }

  footer {
    order: 4;
  }
}
