@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600&display=swap");
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  line-height: 1.5;
  font-family: system-ui, sans-serif;
}

video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:root {
  --header-height: 80px;
  --hero-height: calc(100vh - var(--header-height));
  --hero-image-column: 8;
  --hero-image-row: 6;
  --hero-logo-column: 2;
  --hero-logo-row: 2;
}

@media (orientation: portrait) {
  :root {
    --hero-image-column: 4;
    --hero-image-row: 6;
    --hero-logo-column: 2;
    --hero-logo-row: 2;
  }
}
body {
  font-family: "Noto Sans JP", sans-serif;
}

a {
  transition: 0.3s;
  color: #ea5405;
}
a:hover {
  text-decoration: none;
}

::selection {
  background: rgba(254, 218, 62, 0.9);
  color: #222;
}

.hidden {
  opacity: 0;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: #333;
  letter-spacing: 0.03em;
  font-feature-settings: "halt";
  line-height: 1.8;
}
@media screen and (max-width: 768px) {
  body {
    font-size: 15px;
  }
}
@media screen and (max-width: 550px) {
  body {
    font-size: 14px;
  }
}

header {
  background-color: #fff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}

#sitetitle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 18px !important;
  margin-left: -18px;
}
#sitetitle .title {
  font-weight: normal;
  font-size: 21px;
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 1.3;
}
#sitetitle .logo {
  width: 65px;
}
#sitetitle .theme {
  font-size: 13.5px;
}
@media screen and (max-width: 768px) {
  #sitetitle {
    padding: 8px 10px !important;
    margin-left: -8px;
  }
  #sitetitle .title {
    font-size: 16px;
  }
  #sitetitle .logo {
    width: 50px;
  }
  #sitetitle .theme {
    font-size: 12px;
  }
}
@media screen and (max-width: 550px) {
  #sitetitle {
    padding: 8px 15px !important;
    margin-left: 0;
  }
}

#main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 40px;
}
#main-nav a {
  text-decoration: none;
  color: #333;
  padding: 5px 15px;
}
#main-nav a:hover {
  background-color: rgba(191, 192, 192, 0.4);
  border-radius: 100px;
}
#main-nav .nav-links {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
}
@media screen and (max-width: 768px) {
  #main-nav {
    padding: 0 20px;
  }
  #main-nav a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
  }
}
@media screen and (max-width: 550px) {
  #main-nav {
    justify-self: center;
  }
  #main-nav .nav-links {
    display: none;
  }
}

section {
  max-width: 980px;
  margin: 0 auto 60px;
  padding: 60px 40px;
}
@media screen and (max-width: 768px) {
  section {
    margin-bottom: 80px;
  }
}
@media screen and (max-width: 550px) {
  section {
    padding: 20px;
    margin-bottom: 20px;
  }
}

.section-title {
  border-left: 8px solid #b963a3;
  padding-left: 12px;
  margin-bottom: 40px;
}
@media screen and (max-width: 550px) {
  .section-title {
    font-size: 20px;
    margin-bottom: 30px;
  }
}

section p {
  text-align: justify;
}
footer {
  background: #13a73b;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 15px;
}
@media screen and (max-width: 550px) {
  footer {
    font-size: 13px;
    padding: 6px 20px;
  }
}

#topagetop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  transition: 0.5s;
}
#topagetop a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  line-height: 50px;
  background-color: #ea5405;
  color: #fff;
  text-align: center;
  font-size: 24px;
  text-decoration: none;
  display: block;
}
#topagetop a:hover {
  opacity: 0.6;
}

#hero {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  margin: 0;
  padding: 0;
  background: url("images/hero005.jpg") no-repeat center center;
  background-size: cover;
  overflow: hidden;
  max-width: none;
}

.hero-images {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.hero-images .imagebox {
  height: calc(var(--hero-height) / var(--hero-image-row));
  width: calc(100% / var(--hero-image-column));
  background-color: #fff;
}
.hero-images img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: 0.3s;
}
.hero-images img.hero-img-wait {
  opacity: 0;
}

#herologo {
  position: absolute;
  width: calc(100% / var(--hero-image-column) * var(--hero-logo-column));
  height: calc(100% / var(--hero-image-row) * var(--hero-logo-row));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
}
#herologo img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 65%;
  max-height: 65%;
}

#about ol {
  padding-left: 1.5em;
}

dl.overview {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: grid;
  width: fit-content;
  grid-template-columns: auto 1fr;
  border-top: 1px solid #ccc;
  align-items: stretch;
}
dl.overview dt,
dl.overview dd {
  padding: 12px 0;
  border-bottom: 1px solid #ccc;
}
dl.overview dt {
  padding-left: 15px;
}
dl.overview dd {
  margin-left: 0;
  padding-left: 40px;
  padding-right: 80px;
}
@media screen and (max-width: 550px) {
  dl.overview {
    width: 100%;
  }
  dl.overview dt {
    padding-left: 0;
  }
  dl.overview dd {
    padding-left: 15px;
    padding-right: 0;
  }
}

.info-items {
  display: grid;
  grid-template-columns: auto 1fr;
  margin-top: 20px;
  border-top: 1px solid #ddd;
}
.info-items dd {
  margin-left: 0;
  padding-left: 40px;
}
.info-items dt,
.info-items dd {
  border-bottom: 1px solid #ddd;
  padding-top: 20px;
  padding-bottom: 20px;
}
@media screen and (max-width: 768px) {
  .info-items dd {
    padding-left: 20px;
  }
}
@media screen and (max-width: 550px) {
  .info-items {
    grid-template-columns: 1fr;
  }
  .info-items dt {
    border: none;
    padding-bottom: 10px;
  }
  .info-items dd {
    padding-left: 0;
    padding-top: 0;
  }
}

.info-files {
  margin-top: 1em;
  padding-left: 0;
}
.info-files li {
  display: grid;
  grid-template-columns: 5px 1fr;
  gap: 5px;
  align-items: center;
}
.info-files li::before {
  content: "";
  width: 5px;
  height: 10px;
  margin-right: 0.5em;
  background-color: #666;
  clip-path: polygon(0% 0%, 0% 100%, 100% 50%);
}
