@charset "utf-8";

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

* {
    font-family: "dnp-shuei-4gob-std", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #444;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    background-color: #f4efed;
    height: 110px;
    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 --- */
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: 700;
    font-size: 38px;
    color: #444;
    text-align: center;
    margin: 50px auto 0px auto;
    padding-bottom: 12px;
    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);
    }
}
.profile {
    text-align: left;
    font-size: 20px;
    background-color: #c291ce;
    margin: 0 auto 30px ;
}
.profile ul{
    list-style: none;
}
.profile p {
    
    width: 80%;
    margin: 50px auto 0;
}
.face{
		width:40%;
		height:auto;
		margin:0 auto;
}    
/* --- カードレイアウト --- */
.work-card {
    width: 100%;
    height: auto;           
    padding-bottom: 30px;   
    margin: 0px auto 20px auto;      
    background-color:  #f4efed; 
    border-radius: 15px;  
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.15), 
                transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.work-card.is-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* 親要素である箱をFlexboxにする */
.image-box {
    display: flex;
    justify-content: center; 
    align-items: center;     
    width: 100%;             
    height: 100%;           
    overflow: hidden;        /* はみ出し防止 */
}
.image-box img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;     /* 比率を維持して中央に配置 */
}
.map { 
    width: 50%; margin: 0 auto;
      margin:20px auto 20px;
}
.picto { 
    width: 90%; margin: 0 auto;
    margin:20px auto 20px;
    padding-left: 30px; 
}
	


.sub-container .image-box a {
    display: flex;
    justify-content: center; 
    align-items: center;    
    width: 100%;             
}
.lp-box {
    height: 600px; 
}
.banner-img {
    max-width: 100%;  
    max-height: auto; 
    margin-top: 100px;
    padding-bottom: -100px;
}

.work-card:hover .image-box img {
    transform: scale(1.05);
}

.work-card p, .comment-box {
    padding: 0 30px;
    line-height: 1.8;
    font-size: 16px;
    color: #444;
}



/* --- カードが登場した瞬間 --- */
.work-card.is-show .image-box img {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

/* --- 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;
    width: 100%;
}

.sub-container {
    background-color: #c291ce;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px 20px 0 20px;
}


.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;
}

/* 2. セクション内のタイトル（h2）を綺麗に中央に配置 */
.sub-container .port-section h2 {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

/* 3. カードを包む行（row）をFlexboxにして中央に寄せる */
.sub-container .port-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 90px; /* カード同士の左右のスキマ */
    width: 100%;
}

/* 4. 外側のレイアウト枠（完全に透明にして元のwork-cardの形を活かす） */
.sub-container .port-card-outer {
    box-sizing: border-box;
    background: transparent;
}
.sub-container .port-card-inner {
    width: 100%;
    height: 100%;
    background: transparent;
}
/*  作品が1個だけの時 */
.sub-container .port-card-outer:first-child:last-child {
    width: 70%;
}

/*  二つ並びの箱の大きさを変える*/
.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%;
}
/* 箱の中の「画像」の大きさを変える*/
.sub-container .port-card-inner .work-card .image-box img {
    max-width: 100%; 
}

/*  作品が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: calc((100% - 60px) / 3);
}

/* 6. 元の「width: 70%」や余白を横並び用に最適化 */
.sub-container .port-row .port-card-inner .work-card {
    width: 100%;
    margin: 0;
    height: 100%; /* 横並びした時にカードの高さをピシッと揃える */
}
/*箱の上のh2（バナー・バナー模写）だけを綺麗に整える */

/* 1. 横並びの箱の直下にあるh2だけに限定してスタイルを適用 */
.sub-container .port-row > .port-card-outer > h2 {
    width: 100%;
    text-align: center;
    margin: 0 auto 15px auto;
    padding-bottom: 12px;
    font-family: "dnp-shuei-4go-std", sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: #444;
    
    /* 他のJSアニメーションなどの影響を受けないようにリセット */
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}
/* 白い箱（work-card）の、画像用ボックスの横幅を100%に広げる */
.sub-container .port-row .port-card-inner .work-card .image-box {
    width: 100%;
}

/* 画像自体の最大の横幅（max-width）を100%にして、箱の横幅ぴったりまで広げる */
.sub-container .port-row .port-card-inner .work-card .image-box img {
    max-width: 100%;
}

/* もし、白い箱の下側にある隙間（パディング）も無くしてさらに画像を大きくしたい場合 */
.sub-container .port-row .port-card-inner .work-card {
    padding-bottom: 0;
}
/* ===================================================
   すべての箱の中の画像を「上下左右ド真ん中」に完全固定する
   =================================================== */

/* 1. 画像の通り道であるリンクタグ（a）を縦横いっぱいに広げてFlexboxにする */
.sub-container .port-row .port-card-inner .work-card .image-box a {
    display: flex;
    justify-content: center; /* 左右中央 */
    align-items: center;     /* 上下中央 */
    width: 100%;
    height: 100%;
}

/* 2. 画像そのものに「真ん中キープ」の命令を確実に効かせる */
.sub-container .port-row .port-card-inner .work-card .image-box img {
    margin: auto;            /* 余ったスペースを上下左右に均等に配分 */
    display: block;
}
/* --- 204行目付近：ここから下をこれに置き換えてみてください --- */
@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: 150px;
    }

    /* 4. 全体の右側の白い余白（横揺れ）を防止 */
    html, body {
        overflow-x: hidden;
    }

    .deco {
        margin-bottom: -3px;
    }

    .deco2 {
        margin-top: -30px;
    }

    .profile p {
        /* 単語の途中でも、必要であれば強制的に改行させる */
        overflow-wrap: break-word;
        word-break: break-all;
    }

    .face {
        width: 70%;
        height: auto;
        margin: 0 auto;
        display: block;
    }    
}