html {
  box-sizing: border-box;

  font-size: 100%;
  background: linear-gradient(to bottom, #f7f7ff, #e9e9f7);
  background-color: #f7f7ff;
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
}
body {
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0;
  background-color: #f4b942;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.fukidashi01 {
  position: relative;
  width: fit-content;
  padding: 12px 16px;
  border-bottom: 2px solid #333333;
}
.fukidashi01::before {
  content: '';
  position: absolute;
  left: -24px;
  bottom: -13px;
  width: 30px;
  height: 2px;
  transform: rotate(-50deg);
  box-sizing: border-box;
  background-color: #333333;
}
.fukidashi01::after {
  content: '';
  position: absolute;
  left: -23px;
  bottom: -28px;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border: 1px solid #f4b942;
  border-radius: 50%;
  background-color: #333333;
}
.mobile-break {
  display: none;
}
/* js */
/* フェードイン */
.clear {
  transform: translateY(30px);
  opacity: 0;
  visibility: hidden;
  transition: 1s;
}
.fadein {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
/* 戻るボタン */
#top-btn {
  position: fixed;
  display: block;
  width: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: rgba(51, 51, 51, 0.85);
  color: #f4b942;
  font-size: 20px;
  right: 20px;
  bottom: 20px;
  transition: 0.5s;
  text-align: center;
  text-decoration: none;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
}
.top-page {
  visibility: visible;
  opacity: 1;
}
#top-btn.top-page {
  visibility: visible;
  opacity: 1;
}
/* ここからヘッダー */
header {
  background-color: #f7f7ff;
  width: 100%;
  height: 100px;
  margin: 0;
  padding: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: 0.4em;
}
#pc-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
#pc-nav ul li {
  margin: 0;
  padding: 0 30px;
}
#pc-nav ul li a {
  text-align: center;
  display: block;
  color: #333;
  text-decoration: none;
  border-radius: 20px;
  padding: 10px 15px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
#pc-nav ul li.current a {
  background-color: #4059ad;
  border-radius: 20px;
  transition: 0.2s;
  color: #f7f7ff;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
#pc-nav ul li a:hover {
  background-color: #f4b942;
  border-radius: 20px;
}
#pc-nav {
  display: block;
}
#mobile-nav {
  display: none;
}
/* ヘッダーここまで */
#sub {
  max-width: 1200px;
  margin: 0 auto 90px;
  padding: 0;
  display: block;
  flex-grow: 1;
}
footer {
  width: 100%;
  height: 100px;
  background-color: #e9e9f7;
  margin-top: auto;
  display: flex;
}
/* ここからコンテンツの中身 */
#wrap {
  margin: auto;
  padding: 0;
  display: flex;
  justify-content: center;
}
section#logo {
  display: flex;
  align-items: center;
}
main section {
  width: 500px;
  margin: 0 30px;
}
main section {
  padding: 30px;
}
section h2 {
  padding-bottom: 10px;
  font-size: 28px;
  letter-spacing: 0.3em;
  border-bottom: #333 1px dashed;
  text-align: center;
}
section h3 {
  font-size: 22px;
}
/* indexの内容 */
#index-page p {
  text-align: center;
  margin: 30px 0;
}
article#news {
  background-color: #f7f7ff;
  border-radius: 20px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
article#news h2 {
  padding-bottom: 0;
  border: 1px solid #333;
  border-top: 8px solid #333;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
section#form h2 {
  margin: 0 0 30px;
}
section#form form {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin: 60px 0 60px;
}
#form-left {
  width: 45%;
  justify-content: left;
}
input {
  margin-bottom: 10px;
}
#form-right {
  width: 45%;
}
textarea {
  margin-bottom: 10px;
}
#form-left input[type='text'],
#form-left input[type='email'],
#form-right textarea {
  width: 50%;
  box-sizing: border-box;
}
#form-right input[type='submit'] {
  width: auto;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #4059ad;
  color: #f7f7ff;
  border: none;
  border-radius: 5px;
}
#form-right textarea {
  width: 80%;
  box-sizing: border-box;
}
#form-right input[type='submit'] {
  width: auto;
}
/* ここから自己紹介ページ */
main,
#sub {
  flex-shrink: 0;
}
#sub {
  margin-top: 30px;
}
#skill {
  width: 100%;
  font-size: 100%;
  background-color: #333;
  color: #f7f7ff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 0;
  margin-bottom: 120px;
  padding: 0 30px;
}
#skill-mobile {
  display: flex;
}
.skill-all {
  padding: 20px;
}
#skill a {
  text-decoration: none;
  color: #f7f7ff;
  border-bottom: 1px solid #f7f7ff;
  padding: 0 10px;
}
#skill a:hover {
  background-color: #f7f7ff;
  color: #333;
}
#sub h2 {
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 20px;
}
#sub h2 img {
  width: 120px;
  height: 120px;
  margin-bottom: 15px;
}
.skill-boxes {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
}
.box {
  width: 25%;
  min-height: 150px;
  background-color: #f7f7ff;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.box p {
  color: #777;
  text-align: left;
}
span {
  color: #333;
  background: linear-gradient(transparent 65%, #f4b942 30%);
}
/* ここからギャラリ－ */
.gallery-title {
  margin: 30px 0;
  padding: 10px 30px;
  border-bottom: 20px double #f4b942;
  background-color: #333;
  color: #f7f7ff;
}
.gallery-boxes {
  margin: 90px;
  display: flex;
  align-items: center;
}
.gallery-left {
  width: 50%;
  display: flex;
  align-items: center;
}
.gallery-left img {
  width: 100%;
  flex-shrink: 0;
}
.gallery-right {
  align-items: center;
  width: 450px;
  height: auto;
  margin-left: 25px;
  padding: 30px;
}
.gallery-right a {
  color: #333;
}
.gallery-right a:hover {
  background-color: #333;
  color: #f7f7ff;
}
.gallery-right h3 {
  margin: 0;
  padding: 0;
  width: 150px;
}
.gallery-right p:first-of-type {
  margin-top: 60px;
}
section#thanks {
  text-align: center;
}
/* レスポンシブ対応 */
@media (max-width: 767px) {
  html {
    background: none;
    background-color: #f4b942;
  }
  body {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  footer {
    background-color: #f7f7ff;
    width: 100%;
  }
  main {
    margin: 0;
    padding: 0;
    width: 100%;
  }
  main section {
    padding: 0;
    margin: 0 auto;
    width: 80%;
  }
  #wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 20px 0;
  }
  .mobile-break {
    display: block;
    align-items: left;
  }
  /* スマホ用ナビの設定 */
  #pc-nav {
    display: none;
  }
  #mobile-nav {
    display: block;
  }
  header .container {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
  }
  .menu-btn {
    position: fixed;
    display: block;
    right: 20px;
    top: 30px;
    z-index: 100;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px 0 10px;
    background-color: rgba(51, 51, 51, 0.85);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
  }
  .menu-btn .line {
    display: block;
    height: 3px;
    background-color: #f4b942;
    margin-bottom: 5px;
    transition: transform 0.3s, opacity 0.3s;
  }
  #mobile-nav ul#menu {
    display: block;
    position: fixed;
    top: 0;
    right: -30vw;
    width: 30vw;
    height: auto;
    background-color: rgba(51, 51, 51, 0.85);
    margin-top: 100px;
    padding: 0;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px 0 0 10px;
    transition: right 0.4s ease;
    z-index: 90;
  }
  #mobile-nav ul#menu.is-open {
    right: 0;
  }
  #mobile-nav ul#menu li {
    list-style: none;
    text-align: center;
    padding: 15px 0;
    margin: 0;
    border-bottom: #333 1px solid;
    text-align: left;
  }
  #mobile-nav ul#menu li a {
    padding-left: 20px;
    text-decoration: none;
    color: #e9e9f7;
  }
  #mobile-nav ul#menu li:last-child {
    border: none;
  }
  #mobile-nav ul#menu li a:hover {
    color: #f4b942;
  }
  /* ナビここまで */
  section#logo {
    max-width: 50%;
  }
  img {
    width: 100%;
  }
  article#news {
    margin: 60px auto;
  }
  section#form form {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    margin: 30px auto;
  }
  #form-left,
  #form-right {
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
  }
  #form-left input[type='text'],
  #form-left input[type='email'],
  #form-right textarea {
    width: 80% !important;
    display: block;
    padding: 10px;
    margin: 0 auto 10px;
  }
  #form-left label,
  #form-right label {
    padding-left: 10%;
    display: block;
    text-align: left;
  }
  #form-right input[type='submit'] {
    width: 80%;
    display: block;
    padding: 15px 0;
    margin: 20px auto;
    font-size: 1.1rem;
  }
  #skill {
    display: block;
    width: 100%;
    font-size: 100%;
    background-color: #333;
    color: #f7f7ff;
    align-items: center;
    margin-top: 0;
    margin-bottom: 120px;
    padding: 10px;
  }
  #skill h2 {
    margin: 30px auto;
    width: 50%;
    border-bottom: 10px double #f4b942;
  }
  #skill-mobile {
    display: flex;
    padding-bottom: 30px;
    flex-direction: column;
    text-align: center;
  }
  .skill-all {
    width: 100%;
    padding: 20px;
  }
  .skill-boxes .box {
    width: 65%;
    margin-bottom: 20px;
  }
  h1 {
    margin: 10px 10px 10px 70px;
    font-size: 20px;
    padding: 10px;
  }
  section h2 {
    font-size: 20px;
  }
  .box img {
    width: 20%;
  }
  .gallery-boxes {
    display: block;
  }
  .gallery-boxes h2 {
    margin: 0;
    padding: 0;
  }
  .gallery-left {
    width: 100%;
  }
  .gallery-right {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .fukidashi01 {
    position: relative;
    width: fit-content;
    padding: 12px 16px;
    border-bottom: 2px solid #333333;
  }
  .fukidashi01::before {
    content: '';
    position: absolute;
    left: 176px;
    bottom: 9px;
    width: 30px;
    height: 2px;
    transform: rotate(-50deg);
    box-sizing: border-box;
    background-color: #333333;
  }
  .fukidashi01::after {
    content: '';
    position: absolute;
    left: 201px;
    bottom: 25px;
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    border: 1px solid #f4b942;
    border-radius: 50%;
    background-color: #333333;
  }
}
