@media screen and (max-width:768px) {
body{
    background-color: #FFFDF8;
    font-family: 'Alyamama', serif;
}
body h1,h2,h3,h4,p,a{
    color: #7C6A6A;
}
/* モバイル用基本設定 */
img{
  display: block;
  width: 100%;
  height: auto;
}
.hidden-sp{
  display: none !important;
}
/* ----------------------*
 * ヘッダー
 * ----------------------*/
header{
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
 }
#logo{
    display: block;
    margin: 10px;
    margin-top: 20px;
    text-align: left;
 }
 #logo a{
   font-size: 24px;
 }

  #global-nav{
    background-color: #9F8F8F;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    text-align: center;
    transform: translateY(-100vh);
    transition: 0.5s;
 }

 .open #global-nav{
    transform: translateY(0);
 }

 #global-nav ul{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}
#global-nav li a{
  color: #fff;
}
 /*　ハンバーガーメニュー */
 #hamburger{
        display: block;
        cursor: pointer;
        position: fixed;
        width: 50px;
        height: 50px;
        right: 10px;
        top: 10px;
        z-index: 1000;       
 }
 #hamburger span{
        display: block;
        width: 35px;
        height: 3px;
        background-color: #7C6A6A;
        margin-bottom: 3px;
        transition: transform 0.3s, opacity 0.3s;
        transform-origin: center;
 }
 #hamburger span:last-child{
        margin-bottom: 0;
}
/* ×アニメーション */
.open #hamburger span:nth-child(1){
        transform: translateY(7px) rotate(45deg);
}
.open #hamburger span:nth-child(2){
        opacity: 0;
}
.open #hamburger span:nth-child(3){
        transform: translateY(-19px) rotate(-45deg);
}
/* ----------------------*
 * トップ
 * ----------------------*/
.fv{
    display: flex;
    flex-direction: column; /* h1とspanを縦並び */
    align-items: center; /* 横中央 */
    width: 100%;
    height: 90vh;
}
main h1{
    font-size:40px;
    letter-spacing: 0.2em;
    margin-top: 80px;
    
}
span {
  font-size: 24px;
  letter-spacing: 0.3em;
  margin-top: 10px;
  color: #7C6A6A;
}
/* シャボン玉 */
.fv{
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.fv-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 35vh;
}

.bubble {
  position: absolute;
  bottom: -100px;
  border-radius: 50%;

 background: rgba(255, 182, 193, 0.25); /* ほんのりピンク */
  border: 1px solid rgba(255, 255, 255, 0.6);

  backdrop-filter: blur(6px);

  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.6),
    0 0 15px rgba(255, 182, 193, 0.3);

  animation: floatUp linear infinite;
  z-index: 1;
}

.bubbles{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}
@keyframes floatUp {
  from {
    transform: translateY(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  to {
    transform: translateY(-120vh);
    opacity: 0;
  }
}
/* ----------------------*
 * アバウト
 * ----------------------*/
 section{
  width: 100%;
  margin: 80px auto;
}
section h2{
  font-size: 28px;
  margin-left: 35px;
}

#about-me{
  align-items: center;
  justify-content: space-between;
}
#about-img{
    width: 50%;
    margin: 30px auto;
}
#about-text{
    width: 80%;
    margin: 0 auto;
}
#about-text h3{
  font-size: 24px;
  letter-spacing: 0.4em;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-top: 40px;
}
#about-text h3 span{
  font-size: 12px;
  color: #E8B7C8;
  margin-top: 0;
  margin-bottom: 20px;
}
#about-text p{
  margin-top: 15px;
  font-size: 14px;
}

/* ----------------------*
 * スキル
 * ----------------------*/
 #skill-area{
  width: 80%;
  margin: 0 auto;
 }
#skill-area img{
  width: 20%;
  margin: 0 auto;
}
#skill-area span{
  display: block;
  text-align: center;
  margin: 10px;
}
#skill-area p{
  font-size: 14px;
}
#skill-area li{
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin: 30px;
}
/* ----------------------*
 * ワークス
 * ----------------------*/
 /* Webサイト */
section h3{
  font-size: 20px;
  color: #9F8F8F;
  margin-left: 35px;
  margin-top: 10px;
}
.works{
  justify-content: center;
  align-items: center;
  width: 80%;
  margin: 0 auto;
}
.img-area img{
  width: 80%;
  margin: 0 auto;
}
.title{
  margin-top: 10px;
  font-size: 20px;
  font-weight: bold;
}
.small-text{
  font-size: 12px;
}
.text-area h4{
    margin-top: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}
.text-area p{
  font-size: 14px;
  margin-bottom: 20px;
}
.btn{
  text-align: center;
  margin-bottom: 40px;
}
.btn a{
  background-color: #E8B7C8;
  color: #fff;
  font-weight: bold;
  padding: 12px 24px 6px; 
  border-radius: 25px;
  box-shadow: 2px 4px 0 #ba97a4;
}
/* バナー */
#banner-area{
    width: 80%;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}
#banner-area img{
    width: 100%;
}

/* ----------------------*
 * コンタクト
 * ----------------------*/
#contact-btn{
  margin-top: 60px;
  text-align: center;
}
#contact-btn a{
  background-color: #E8B7C8;
  color: #fff;
  font-size: 20px;
  padding: 24px 64px 12px; 
  border-radius: 50px;
  box-shadow: 2px 4px 0 #ba97a4;
}

/* ----------------------*
 * フッター
 * ----------------------*/
 footer small{
    text-align: center;
    display: block;
 }
/* ----------------------*
 * h2の下線
 * ----------------------*/
section h2{
  position: relative;
  display: inline-block;
  width: 80%;
}

section h2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;
  background-color: #7C6A6A;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2s ease;
}

section h2.active::after{
  transform: scaleX(1);
}

/* ----------------------*
 * フェードイン
 * ----------------------*/
.fadein{
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 2s ease,transform 2s ease;
}

.fadein.show{
  opacity: 1;
  transform: translateY(0);
}
}