/* --------全体の設定-------- */

/* どんなサイトでも入れとくおまじない */
*,
*::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
}

/* font-family: "Noto Sans", sans-serif; */
/* font-family: "Lora", serif; */
/* ---------おまじない完--------- */

ul,
ol {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  opacity: 0.6;
}

.pc-br {
  display: block;
}

.sp-br {
  display: none;
}

body {
  font-family: "Noto Sans", sans-serif;
  background-color: #DCCFF5;
  font-size: 14px;
  color: #2f3136;
  line-height: 1.7;
}

h1 {
  font-family: "Ole", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 152px;
  color: #f7f5f2;
  border-bottom: 1px solid #f7f5f2;
  line-height: 1;
  text-align: center;
  /* letter-spacing: 0.08em; */
  padding-bottom: 10px;
}

.skill-name,
.banner-name,
.web-name,
.video-name {
  font-size: 16px;
  font-weight: bold;
}

.container {
  max-width: 1144px;
  margin-inline: auto;
}

/* --------全体の設定おわり------- */

/* ----------ヘッダーここから---------- */

header {
  font-family: "Lora", serif;
  font-size: 18px;
  color: #f7f5f2;
  background-color: #7A8CA5;
  height: 48px;
  position: sticky;
  top: 0;
  z-index: 9999;
}

header .pc-nav {
  height: 100%;
  /* background-color: red; */
}

header .pc-nav ul {
  /* background-color: green; */
  width: 50%;
  height: 100%;

  /* 上下左右の真ん中に揃えるお決まりの3つ */
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* --------------------------- */

  margin-inline: auto;
}

/* ----------フッターここから---------- */

footer {
  background-color: #7A8CA5;
  color: #f7f5f2;
  height: 100px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer div p {
  font-size: 10px;
}

/* ----------メインここから---------- */

.top-hero {

  /* バックグラウンドイメージ４行セット */
  background-image: url(../images/hero-img-honmono.webp);
  /* --------ヒーローイメージ変える------ */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  /* ------------------------------- */

  /* ------ポートフォリオ文字たち------ */
  height: 560px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  margin-bottom: 100px;
}

.top-hero p {
  font-family: "Lora", serif;
  font-size: 50px;
  text-align: center;
  line-height: 1;
  padding-top: 10px;
  letter-spacing: 0.05em;
}

#profile,
#skill,
#design,
#banner,
#web,
#video {
  margin-bottom: 100px;
  padding-top: 100px;
  margin-top: -100px;
}

h2 {
  font-family: "Lora", serif;
  font-size: 80px;
  color: #333333;
  text-align: center;
  margin-bottom: 50px;
}

/* ---------プロフィールここから------- */

.profile-box {
  width: 90%;
  height: 100%;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.1), inset 0 0 20px 10px rgba(255, 255, 255, 5);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 30px 30px 30px 30px;
}

/* プロフィール写真によって調整 */
.profile-box p {
  flex-basis: 60%;

  /* padding-top: 70px;
  padding-left: 100px; */
}

.profile-box figure {
  width: 320px;
  vertical-align: bottom;
}

.profile-box p span {
  font-size: 24px;
  margin-right: 1em;
}

/* ---------スキルここから------- */

.skill-box {
  padding-left: 30px;
  padding-right: 30px;
}

.skill-box ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  text-align: justify;
}

.skill-box li {
  flex-basis: calc((100% - 96px) / 4);
  /* background-color: aqua; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-box figure img {
  width: 128px;
}

/* ---------デザインここから------- */

h3 {
  font-family: "Lora", serif;
  font-size: 24px;
  color: #333333;
  text-align: center;
  margin-bottom: 20px;
}

.design-wrapper {
  background-color: #ededed;
  padding-top: 50px;
  padding-bottom: 50px;
}

/* ---------バナーここから------- */

.banner-box {
  margin-bottom: 50px;
}

.banner-box ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  align-items: start;
  text-align: justify;
}

.banner-box li {
  display: grid;
  justify-items: center;
}

.banner-box figure img {
  width: 360px;
}

/* ---------Webここから------- */

.web-box ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: start;
  text-align: justify;
}

.web-box li {
  display: grid;
  justify-items: center;
}

.web-box figure img {
  width: 555px;
}

/* ---------ビデオここから------- */
video {
  width: 70%;
  margin-bottom: 10px;
}

.video-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----------ライクここから--------- */

.like {
  margin-bottom: 100px;
}


/* Swiperの滑らかさを向上させるCSS */
.swiper-wrapper {
  /* transition-timing-functionを線形に設定 */
  transition-timing-function: linear !important;
}

/* ハンバーガーメニューここから */
.pc-nav {
  display: block;
}

.sp-nav {
  position: fixed;
  z-index: 999;
  top: 0;
  right: -120%;
  width: 100%;
  height: 100vh;
  background: #999;
  transition: all 0.6s;
}

.sp-nav.panelactive {
  right: 0;
}


.sp-nav ul {
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sp-nav li {
  list-style: none;
  text-align: center;
}

.sp-nav li a {
  color: #333;
  text-decoration: none;
  padding: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
}

.sp-open-btn {
  position: fixed;
  z-index: 9999;
  top: 0px;
  right: 10px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: none;
}

.sp-open-btn span {
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background-color: #fff;
  width: 45%;
}

.sp-open-btn span:nth-of-type(1) {
  top: 15px;
}

.sp-open-btn span:nth-of-type(2) {
  top: 23px;
}

.sp-open-btn span:nth-of-type(3) {
  top: 31px;
}

.sp-open-btn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.sp-open-btn.active span:nth-of-type(2) {
  opacity: 0;
}

.sp-open-btn.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

body.active {
  height: 100%;
  overflow: hidden;
}

/* コンテンツフェードインここから */
.effect-fade {
  opacity: 0;
  transform: translate(0, 100px);
  transition: all 2000ms;
}

.effect-scroll {
  opacity: 1;
  transform: translate(0, 0);
}


/* -----------------スマートフォン版ここから----------------- */

@media(max-width:768px) {

  .pc-br {
    display: none;
  }

  .sp-br {
    display: block;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    margin-bottom: 10px;
  }

  .container {
    padding-left: 3%;
    padding-right: 3%;
  }

  .top-hero p {
    font-size: 32px;
  }

  /* プロフィールここから */
  .profile-box {
    flex-direction: column-reverse;
  }

  .profile-box figure img {
    width: 100%;
  }

  /* ---------スキルここから------- */

  .skill-box li {
    flex-basis: calc((100% - 32px) / 2);
  }

  .skill-box p {
    margin-right: 20px;
    margin-left: 20px;
  }



  /* ---------デザインここから------- */

  .banner-box figure img {
    width: 100%;
  }

  .web-box figure img {
    width: 100%;
  }

  video {
    width: 100%;
  }

  /* ハンバーガーメニューここから */

  .pc-nav {
    display: none;
  }

  .sp-open-btn {
    display: block;
  }



}

/* ------スマートフォン版ここまで--------- */