@charset "utf-8";

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  top: 0;
  left: 0;
  overflow: hidden;
}

[inert] {
  opacity: 0.3;
  z-index: 0;
  height: calc(20vw + 8px);
  max-height: calc(100px + 8px);
  overflow: hidden;
}

html {
  font-size: 100%;
}

body,button {
  font-size: 1rem;
  font-family: "BIZ UDGothic", sans-serif;
  line-height: 1.5;
  letter-spacing: 0.15rem;
}

body {
  background-color: white;
  color: #333;
  margin: 0 auto;
}

.break {
  word-break: break-all;
}

div.contentWrapper,main {
  background-color: white;
}

nav,h1,h2 {
  font-weight: bold;
}

h1 {
  font-size: 120%;
  color: #036;
}

nav {
  display: none;
}

nav,h2 {
  font-size: 105%;
}

p {
  max-width: 45rem;
}

main p + p {
  padding-top: 16px;
}

h2 {
  margin: 16px 0;
  color: #036;
  text-decoration-line: underline;
  text-decoration-color: #eef;
  text-decoration-thickness: 4px;
  text-underline-offset: -2px;
}

a {
  color: #048;
  text-decoration-line: underline;
  text-underline-offset: 6px;
  font-weight: bold;
  
  transition: opacity .3s;
}

a.link {
  background-color: white;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-bottom: 0;
  border: none;
}

a:hover, a:active {
  opacity: .5;
}

a.link img, h2 img {
  width: 1.3rem;
  height: 1.3rem;
}

a.link span {
  display: inline-block;
}

h2 {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

h2 {
  padding: 0 16px;
}

div.topWrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  background-color: white;
}

hgroup {
  width: 70vw;
  background-color: white;
  padding: 16px;
}

button#menuBtn {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20vw;
  height: 20vw;
  max-width: 100px;
  max-height: 100px;
  color: white;
  background-color: #036;
  border-radius: 4px;
  box-shadow: 0 0 4px white;
  margin: 4px;
  transition: background-color .3s;
  z-index: 100;
}

button#menuBtn:focus-visible,a.link:focus-visible {
  outline: 4px solid #69c;
  border-radius: 2px;
}

button#menuBtn.open {
  background-color: #369;
}

button#menuBtn span {
  line-height: 1;
}

button#menuBtn img {
  width: 75%;
  height: 75%;
}

div.kv {
  height: 45svh;
  max-height: 250px;
  /*
  background-image: linear-gradient(to right, black 0 50%, rgb(0,0,0,.7) 0 50%), linear-gradient(to bottom, black 0 50%, rgba(0,0,0,.7) 0 50%);
  background-size: 4px 4px;
  */
}

div.kv img {
  width: 100%;
  height: 100%;
  /*
  mix-blend-mode: screen;
  */
  object-fit: cover;
} 

section {
  box-shadow: 0 0 4px #abc;
  border-radius: 8px;
  padding-bottom: 16px; 
  margin: 16px;
}

/*
hr {
  width: 90%;
  height: 2px;
  color: #ccc;
  margin: 0 auto;
}
*/

main p,footer p {
  margin: 0 16px 0px 32px;
}

iframe {
  padding-top: 16px;
  width: 100%;
}

footer address {
  margin-bottom: 16px;
}

footer small {
  display: block;
  text-align: center;
}

@media screen and (max-width: 1023px){

h2 {
  padding-top: calc(min(100px,5rem) + 16px);
  margin-top: calc(min(100px,5rem) * -1)
}

br.sp{
display: inline;
}

div.topWrapper{
  min-height: min(calc(20vw + 8px),108px);
  display: flex;
  align-items: center;
}

hgroup p:last-of-type{
display: none;
}

nav#navi {
  position: fixed;
  display: flex;
  justify-content: center;
  top: min(calc(20vw + 8px),108px);
  right: 0;
  background-color: white;
  border-radius: 4px;
  opacity: 0;
  width: 100%;
  height: 0;
  overflow-y: hidden;
  margin: 0 auto;
  transition: opacity .3s;
  /* box-shadow: 0 0 4px rgba(0,0,0,.2); */
}

nav#navi.open {
  opacity: 1;
  height: calc(100svh - 20vw - 8px);
  overflow-y: scroll;
  z-index: 100;
}

nav#navi ul {
  width: 12rem;
  max-width: 90%;
  margin: 32px 0;
}

nav#navi ul li + li {
  margin-top: 16px;
}
}

@media screen and (min-width: 1024px), (scripting: none){

  br.sp {
  display: none;
  }

  hgroup.title {
    display: flex;
    justify-content: space-between;
  }

  button#menuBtn {
  display: none;
  }

  nav.pcNavi {
  background-color: white;
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  padding-left: 16px;
  margin-bottom: 16px;
  z-index: 100;
  }

  nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  }

  header.header div {
    width: auto;
  }

  div.kv {
    display: none;
  }

  body {
    display: flex;
  }

  div.contentWrapper {
    max-width: calc(45rem + 64px);
    z-index: 10;
    box-shadow: 0 0 8px rgba(0,0,0,.5);
    min-height: 100svh;
  }

  div.background {
    position: fixed;
    top:0;
    right: 0;
    width: calc(100vw - 45rem - 64px);
    height: 100svh;
    background-color: white;
    background-image: url("kv.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  iframe {
    padding: 16px;
    height: 50svh;
    max-height: 400px;
  }

}
