@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

body {
  font-family: "Shippori Mincho", serif;
  line-height: 1.6;
  color: #333;
  height: 100%;
}

body#about {
  background: #ffffff;
}

#wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

/* header */

header {
  position: relative;
}

.center{
  text-align: center;
}

.circle img{
  border-radius: 50%;
  width: 250px;
  margin: auto;
  display: block;
}

header h1 {
  text-align: center;
  padding: 1rem;
  font-size: 2rem;
}

header h1 a {
  color: #000000;
}

#navBtn {
  display: none;
}

.open {
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  display: block;
  z-index: 100;
  width: 40px;
  height: 40px;
  border: 1px solid #8c7d91;
  border-radius: 2px;
}

/*humburger button*/

.open::before,
.open::after {
  content: "";
}

.open span,
.open::before,
.open::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 30%;
  width: 40%;
  border-bottom: 2px solid #333;
  transition: transform .5s;
}

.open::before {
  transform: translateY(-8px);
}

.open::after {
  transform: translateY(8px);
}

/*close button*/
#navBtn:checked + .open {
  background: #555;
}

#navBtn:checked + .open span {
  transform: scaleX(0);
}

#navBtn:checked + .open::before {
  transform: rotate(45deg);
}

#navBtn:checked + .open::after {
  transform: rotate(-45deg);
}

#navBtn:checked + .open span,
#navBtn:checked + .open::before,
#navBtn:checked + .open::after {
  border-bottom-color: #EEE;
}

nav {
  /* display: none; */
  height: 100vh;
  width: 300px;
  position: absolute;
  top: 0;
  right: -300px;
  z-index: 50;
  background-color: rgba(60, 56, 66, 0.5);
  transition: transform .5s;
}

#navBtn:checked ~ nav {
  display: block;
  transform: translateX(-300px);
}

nav ul {
  list-style: none;
  padding-bottom: 1rem;
  text-align: center;
}

nav ul li {
  /* display: inline-block; */
  margin: 0 10px;
  padding: 10px 0;
}

nav ul li a {
  text-decoration: none;
  font-weight: bold;
  color: #333;
  color: #EEE;
}

/* main contents */
main {
  padding: 1rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex-grow: 1;
}

section {
  padding: 20px;
  background: #fff;
  width: 100%;
}

.sec01{
  display: flex;
  justify-content: center;
}

.container{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
  width: 100%;
}

a.pagetop {
  display: block;
  width: 50px;
  height: 50px;
  text-align: center;
  box-sizing: border-box;
  padding-top: 12px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: #333;
  color: #FFF;
  position: fixed;
  bottom: 0;
  right: 20px;
  transition: .3s;
}

a.pagetop:hover {
  background-color: white;
  color: rgb(160, 28, 189);
}

html {
  scroll-behavior: smooth;
}

/*タブレット用*/
@media all and (min-width: 600px) {
  .container {
    grid-template-columns: 1fr 1fr;
  }
}

/*コンピュータ用*/
@media all and (min-width: 1025px) {
  header h1 {
    font-size: 4rem;
  }

  nav {
    display: block;
    height: auto;
    width: 100%;
    position: static;
    background-color: transparent;
  }
  
  nav ul li {
    display: inline-block;
    padding: 0;
  }

  nav ul li a {
    color: #333;
  }

  #navBtn,
  .open {
    display: none;
  }

  .container {
    grid-template-columns: 1fr 1fr 1fr;
  }
}