@charset "utf-8";

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* 画面の横揺れを防止します */
}

* {
    font-family: "dnp-shuei-4gob-std", sans-serif;
    font-style: normal;
    color: #444;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    background-color: #f4efed;
    height: 180px;
    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-weight: 700; 
    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-weight: 700; 
    font-size: 20px;
    margin-left: 50px;
}
h1 {
    font-family: "dnp-shuei-4gob-std", sans-serif; 
    color: #444;
    font-weight: 700;
    font-size: 70px;
    text-align: center;
    margin-top: 60px;
    animation: h1BurnIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes h1BurnIn {
    0% { opacity: 0; transform: scale(0.5); filter: blur(10px); }
    70% { 
        opacity: 1; 
        transform: scale(1.1); 
        filter: blur(0px); 
    }
    100% { transform: scale(1); } 
}

h2 {
    font-family: "dnp-shuei-4go-std", sans-serif;
    font-weight: 400;
    font-size: 50px;
    color: #444;
    text-align: center;
    display: block;
    width: 100%;
    margin: 50px auto 20px auto;
    padding-bottom: 0px;
    opacity: 0;
    transform: scale(0.5); 
    filter: blur(10px);    
    transition: none;      
}
/* --- スクロールして is-active クラスがついた瞬間に実行 --- */
h2.is-active {
    animation: h2BurnIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes h2BurnIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
        filter: blur(10px);
    }
    70% {
        opacity: 1;
        transform: scale(1.1); 
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}
h3 {
    font-family: "dnp-shuei-4go-std", sans-serif;
    font-weight: 300;
    font-size: 25px;
    color: #444;
    text-align: center;
    margin: -20px auto 20px auto;
    padding-bottom: 0px;
    opacity: 1;
    transform: scale(0.5); 
    filter: blur(10px);    
    transition: none;      
}
/* --- スクロールして is-active クラスがついた瞬間に実行 --- */
h3.is-active {
    animation: h3BurnIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes h3BurnIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
        filter: blur(10px);
    }
    70% {
        opacity: 1;
        transform: scale(1.1); 
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}
p{
    font-size: 20px;
    text-align: center;
}
.face{
		width:40%;
		height:auto;
		margin:0 auto;
		display: block;
}  
/* 名刺の枠自体を少し広げる */
.meishi {
    width: 50%; 
    margin: 0 auto; /* 中央寄せ */
}

/* 名刺の画像が枠いっぱいに広がるようにする */
.meishi .image-box img {
    width: 100%;
}
.image-box{
    width:100%;
    max-width: 100%;
}
.image-box-mock{
    width: 70%;
    margin: 0 auto;
}

.image-box a {
    display: inline-block;
    justify-content: center; 
    align-items: center;    
    width: 100%;
    height: 100%;             
}
/* 画像の通常状態：アニメーションを滑らかにする */
.sub-container .port-row .port-card-inner .image-box a img {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-box img {
    display: block;
    width:100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease; /* ホバー時の動きを滑らかに */
}
.work-card-mosya{
    display: flex;
    justify-content: center;
}
.work-card.is-show .image-box img {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.image-box a:hover img {
    opacity: 0.5;
    transform: scale(1.3); /* 画像だけが少し大きくなります*/
}
.lp-box {
    height: 600px; 
}
.banner-img {
    max-width: 100%;  
    max-height: auto; 
    margin-top: 100px;
    padding-bottom: -100px;
}
.work-card p, .comment-box {
    padding: 0 30px;
    line-height: 1.8;
    font-size: 16px;
    color: #444;
}
/* --- deco --- */
.deco, .deco2 {
    background-color: #f4efed;
    height: 123px;
    width: 100%;
}
.deco { background-image: url(../images/wave-over.png);
		background-repeat:no-repeat;
 }
.deco2 {
    background-image: url(../images/wave-under.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-color: #f4efed;
    height: 123px;
   
}
.sub-container {
    background-color: #c291ce;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px 20px 0 20px;
}
.profile {
    text-align: center;
    font-size: 20px;
    background-color: #c291ce;
    padding-top: 40px;
    margin: 0 auto ;
}
.profile p {
    width: 800px;
    margin: 0 auto;
}
.footer {
  width: 100%;
  padding: 60px 0 30px; 
  background-color: #f4efed; 
  text-align: center;
  border-top: 1px solid #f0f0f0; 
}
.footer-logo {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  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: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background-color: #c291ce; 
    color: #fff;
    font-size: 24px;
    text-align: center;
    line-height: 56px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 2px solid #e3cde8;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s, transform 0.4s, background-color 0.2s;
    pointer-events: none; 
}
.pagetop.is-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.pagetop:hover {
    background-color: #d07c8a; 
}

/* 1. 各作品セクションを横いっぱいに広げ、縦に並べる */
.sub-container .port-section {
    width: 100%;
    margin-bottom: 50px;
}

/* 3. カードを包む行（row）をFlexboxにして中央に寄せる */
.sub-container .port-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 90px; /* カード同士の左右のスキマ */
    width: 100%;
}
.sub-container .port-card-inner {
    width: 100%;
    height: 100%;
    background: transparent;
}
/*  作品が1個だけの時 */
.sub-container .port-card-outer:first-child:last-child {
    width: 50%;
}

/*  二つ並びの箱の大きさを変える*/
.sub-container .port-card-outer:nth-last-child(2):first-child,
.sub-container .port-card-outer:nth-last-child(2):first-child ~ .port-card-outer {
    width: calc((100% - 45px) / 2.5);
    height:70%;
}

/*  作品が3個の時：3列に綺麗にフィットさせる */
.sub-container .port-card-outer:nth-last-child(3):first-child,
.sub-container .port-card-outer:nth-last-child(3):first-child ~ .port-card-outer {
    width: 100%;
}

/* ===================================================
   スマートフォン用のスタイル（画面幅768px以下）
   =================================================== */
@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: 160px;
    }

    /* 4. 全体の右側の白い余白（横揺れ）を防止 */
    html, body {
        overflow-x: hidden;
    }

    .deco {
        margin-bottom: -3px;
    }

    .deco2 {
        margin-top: -30px;
    }
    /*  作品が1個だけの時 */
.sub-container .port-card-outer:first-child:last-child {
    width:100%;
}

    /*  二つ並びの箱の大きさを変える*/
.sub-container .port-card-outer:nth-last-child(2):first-child,
.sub-container .port-card-outer:nth-last-child(2):first-child ~ .port-card-outer {
    width: 100%;
    height:auto;
}
.meishi{
    width: 100%;
}

    
}