@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: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  height: 100%;
}

body#about {
  background: #EEE;
}

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

/* header */

header {
  position: relative;
}

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

header h1 a {
  color: #333;
}

#navBtn {
  display: none;
}

.open {
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  display: block;
  z-index: 100;
  width: 40px;
  height: 40px;
  border: 1px solid #CCC;
  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(0, 0, 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%;
}

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

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

.circle img {
  border-radius: 50%;
  width: 300px;
}

/*タブレット用*/
@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;
  }

  #contact .insta-img {
    width: 400px;     /* 横幅を200pxに */
    height: auto;     /* 高さは自動で比率維持 */
    display: block;
  }

/* ABOUTページの画像と文字を横並びにする */
.about-flex {
  display: flex;
  align-items: center;
  justify-content: center; /* ← これが中央にするカギ！ */
  gap: 30px; /* 画像と文字の間隔 */
  flex-wrap: wrap; /* 画面が狭いときは縦に折り返す */
}

.about-flex .circle img {
  width: 250px; /* 必要に応じてサイズ調整 */
  border-radius: 50%;
}

.about-text {
  max-width: 500px;
}

}