@charset "UTF-8";

:root {
  --black: #333;
  --white: #fff;
  --main: #eb6400;
  --orange: #ffc328;
  --red: #c00;
}

*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0 auto;
}
body {
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
a {
  color: inherit;
}
a:hover {
  color: #666;
}
button {
  font: inherit;
}
p {
  margin: 0;
}
p + p {
  margin-top: .5em;
}

html {
  font-size: min(2.2vw, 21px);
}
@media (max-width: 700px) {
  html {
    font-size: min(3.8vw, 18px);
  }
}

body {
  color: var(--black);  
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "palt";
  font-weight: 600;
  font-style: normal;
  text-align: left;
  line-height: 1.8;
  background: var(--orange);
  margin: 0;
}

header {
  background: var(--white);
  border-bottom: 2px solid var(--black);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  height: 80px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
header a {
  height: 60%;
}
header a img{
  width: auto;
  height: 100%;
}
header a div{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  height: 50%;
  padding: 0 1rem;
  border-radius: 8px;
  font-size: 1rem;
  border: 2px solid var(--black);
  background: var(--black);
}
@media (hover: hover) {
    header a div:hover {
      background: var(--main);
    }
}


main {
  position: relative;
  padding-top: 80px;
}
main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../img/bg.png);
  background-size: 400px;
  background-position: center top;
  z-index: -1;
}

section {
  background-color: var(--white);
  max-width: 1024px;
  width: 96%;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem auto;
  border: 2px solid var(--black);
}

.main_img {
  margin: 0 0 1rem;
}

h1 {
  font-size: 1.4rem;
  font-weight: 900;
  border-bottom: 2px solid var(--black);
  margin: 0 0 1rem;
}
h1 span {
  display: block;
  background: #000000;
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  padding: 0 .4rem;
}
h2 {
  background-color: var(--main);
  color: var(--white);
  font-size: 1.2rem;
  margin: 1.4rem 0 .4rem;
  padding: 0 0 0 .4rem;
}
h3 {
  font-size: .8rem;
  font-weight: 600;
  margin: .5rem 0 0;
  display: inline-block;
  border: 1px solid #bbb;
  padding: 0 .8rem;
}

footer {
  position: relative;
  width: 100%;
  margin: 0 auto;
  font-size: .7rem;
  padding: 1rem 0;
  z-index: 1;
}
footer p {
  text-align: center;
  color: var(--black);
}


@media (max-width: 700px) {
  header {
    height: 60px;
  }
  main {
    padding-top: 60px;
  }
  section {
    padding: 1rem 1rem 1.4rem;
    margin: 1rem auto 0;
  }
}