@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: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    /* 背景色*/background-color: #cee0ef;
    /* 文字色*/color: #808080;
    height: 100%;
     }

body#profile {
  background: #bccddb;
}

#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: #808080;
}

#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 #808080;
  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: #808080;
}

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

h3{text-align: center;
}


.youtube-row {
  display: flex;
  justify-content: center;      /* 横方向中央に寄せる */
  gap: 20px;                    /* 動画間のすき間 */
  flex-wrap: wrap;              /* スマホで折り返し対応 */
  padding: 20px;
}

.youtube-row iframe {
  width: 320px;
  height: 180px; /* 16:9の比率 */
  border: none;
}



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




/*写真の飾り方*/
.container{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}


/*worksの写真*/
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.photo-item {
  position: relative;
  width: 100%;
  padding-top: 66.66%; /* 3:2の比率（高さ） */
  overflow: hidden;
  background: #ccc;
}

.photo-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}












.profile-section{
  display: flex;
  justify-content: center;
  gap: 50px;
}





/* footer（一番下の部分） */
footer {
  background: #fff;
  color: #bccddb;
  text-align: center;
  padding: 1rem;
  width: 100%;
}

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

  #navBtn,
  .open {
    display: none;
  }

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






.profile-image {
  width: 200px;   /* profile写真の大きさ */
  height: auto;
  border-radius: 100px;  /* 角丸にしたい場合 */
}
