@charset "utf-8";
*{
    font-family: "dnp-shuei-4gob-std", sans-serif;
    font-weight: 700;
    font-style: normal;
}
header{
    display: flex;
    justify-content:center;
    align-items: center;
    margin:0 auto;
    background-color: #f4efed;
    height:300px;
    width:100%;
}

/* --- メニューボタン --- */
.menu-btn {
    display: block;
    background: #d07c8a url('../images/btn.png') no-repeat center top / 150px;
    position: fixed;    
    z-index: 100;
    width: 150px;
    height: 150px;
    cursor: pointer;
    top: 8px;
    left: 8px;
    background-color: #c291ce;
    border-radius: 58% 42% 61% 39% / 44% 55% 45% 56%;
    box-shadow: 2px 2px 0px 4px #e3cde8;
    transition: 0.2s;
}
.menu-btn:hover { opacity: 0.8; }
.menu-btn.active {
    background-color: #e3cde8; 
    background-position: center bottom;
    transform: scale(0.95);
}
/*---左から出るメニュー---*/
.menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 15%; 
    height: 100vh;
    background: rgba(194, 145, 206, 0.95);
    z-index: 99;
    transition: 0.4s;
    padding-top: 180px;
    padding-left: 40px;
}
.menu.active { left: 0; }
.menu ul { list-style: none; padding: 0; margin: 0; }

/* --- メニューの時間差出現 --- */
.menu ul li {
    color: white; 
     font-size: 20px;
    margin-bottom: 25px; 
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
 .menu ul li a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}
.menu ul li a:hover {
    transform: translateX(5px); 
    opacity: 0.8;
}
.menu ul li.is-fadein {
    opacity: 1;
    transform: translateY(0);
}
/*トップメニュー*/
.menu-top{
    background-color: #c291ce;
}
.menu-top ul{
    display: flex;
    justify-content:center;
    list-style-type: none;
    height: 50px;
}
.menu-top ul li{
    color:#f4efed; 
    font-size: 20px;
    margin-left: 50px;
}
h1 {
    text-align: center;
}

/*---アニメーション---*/
h1.animation {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(30px);
    animation: titleFadeUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}
h1.animation img {
  width: 90%;
  height: auto;
  display: block;

}
@keyframes titleFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*---main---*/
.main-container{
    height:600px;
    background-color: #c291ce;
}
.main-container img{
    max-width:300px;
    width:300px;
    height:auto
}

/*---deco---*/
.deco {
    background-image: url(../images/wave-over.png);
    position: relative;
      background-color:#f4efed;
    height:123px;
    width:100%;
    z-index: 5;       
}
.deco2{
    background-image: url(../images/wave-under.png);
    background-color:#f4efed;
    height:123px;
    width:100%;
} 

/* ---ごあいさつエリア---*/
.sub-container {
    position: relative;
    z-index: 1;        
    padding-top: 30px;
    height: auto;
    background-color: #c291ce;
}
.sub-container img{
    max-width:300px;
      margin:0 auto;
    background-color: #c291ce;
}
.greeting-container {
    text-align: center;
}

h2 {
    font-family: "dnp-shuei-4go-std";
    font-weight: 400;
    font-size: 60px;
    margin: 40px 0 20px 0; 
    text-align: center;    
    opacity: 0 ;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) ;
}

/* --- スクロールが到達して active になった瞬間に動く --- */
h2.is-active {
    opacity: 1 ;
    transform: translateY(0) ;
}
p{
    font-size: 20px;
    text-align: center;
}
.face{
		width:40%;
		height:auto;
		margin:0 auto;
		display: block;
}



/*---Profile---*/
.profile-arrow{
    margin: 100px 100px 0 0;
    padding-bottom: 30px;
    text-align: right;
    height: auto;
     /*background-color: #c291ce;*/
}
.profile-arrow h3{
    margin-right: 100px;
    font-size: 50px;
}
.profile-arrow img{
    width: 200px;
    margin-right: 55px;
    margin-top: 10px;
}
.footer {
  width: 100%;
  padding: 60px 0 30px; /* 上にゆとりを持たせています */
  background-color: #fff; /* サイトに合わせて白に設定 */
  text-align: center;
  border-top: 1px solid #f0f0f0; /* 境界線を薄く入れて区切りを明確に */
  /*margin-top: 80px;*/
  background-color: #f4efed;
}
.footer-logo {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #333;
  margin-bottom: 15px;
}
.copyright {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.05em;
}                        
.pagetop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    width: 50px;
    height: 50px;
    background-color: #c291ce; /* 前回の紫に合わせた可愛い色 */
    color: #fff;
    font-size: 20px;
    line-height: 50px;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    
    /* 最初は透明にして非表示、少し下に下げておく */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background-color 0.3s;
}

/* スクロールして表示されるときのクラス */
.pagetop.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pagetop:hover {
    background-color: #dcb3e7;
}
/* --- 1文字ずつ飛び出すアニメーションのベース --- */
h2.is-active span {
    display: inline-block; /* 👈 必須：文字を動かせる状態にします */
    opacity: 0;
    transform: translateY(30px) scale(0.5); /* 最初は下にいて、小さい状態 */
    animation: letterJump 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* --- 各文字の出現タイミングをずらす（ディレイ設定） --- */
h2.is-active span:nth-child(1) { animation-delay: 0.1s; }
h2.is-active span:nth-child(2) { animation-delay: 0.2s; }
h2.is-active span:nth-child(3) { animation-delay: 0.3s; }
h2.is-active span:nth-child(4) { animation-delay: 0.4s; }
h2.is-active span:nth-child(5) { animation-delay: 0.5s; }

/* --- アニメーションの具体的な動き --- */
@keyframes letterJump {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1); /* 元の位置にポンッと着地 */
    }
}
@media screen and (max-width: 768px) {
    
    /* 1. headerの配置をリセットして横いっぱいに広げる */
    body header {
        display: block;
        height: auto;
        padding: 20px 0;
    }

    /* 2. トップメニューを非表示にする */
    .menu-top {
        display: none;
    }

    /* 3. 見出しのサイズをスマホ用に小さくしてハミ出しを防ぐ */
    h1 {
        font-size: 32px;
        margin-top: 20px;
    }

    /* 4. 全体の右側の白い余白（横揺れ）を防止 */
    html, body {
        overflow-x: hidden;
    }
/* 💡 position: static; を追加して、パソコン用のrelativeを無効化します */
    .deco {
        position: static;           /* 位置設定をリセットしてマージンを確実に効かせます */
        margin-bottom: -3px; 
    }

.deco2 {
    margin-top: -3px;
        
}
h1.animation{
    margin-top: 130px;
}
h2{
    font-size: 40px;
}
p{
    font-size: 15px;
    margin: 0 10px 0 10px;
}
}