/* --------PC・スマホ共通スタイル-------- */
* {
    box-sizing: border-box;
}

body {
    max-width: 1080px;
    margin: 0 auto 0 auto;
    font-family: "poiret-one", "m-plus-1c", sans-serif;
}


/* --------ヘッダー-------- */
.header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4%;
}

/* --------スマホ用ナビゲーション 開閉ボタン--------*/
.navbtn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    padding: 5px 0;
}

.navbtn span {
    display: block;
    margin: 10px;
    border-bottom: 3px solid #333;
}

/* ボタンをクリックしたときのspanの動作（三本線が×になる） */
.navbtn span .trigger:nth-child(1) {
    transform: translateY(12px) rotate(45deg);/* Y軸方向に12px移動、時計回りに45度回転 */
    transition: .2s;/* 0.2秒の速さで */
}

.navbtn span .trigger:nth-child(2) {
    opacity: 0;/* 真ん中の線は不要なので透明にする */
}

.navbtn span .trigger:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);/* Y軸方向に-13px移動、半時計回りに45度回転 */
    transition: .2s;/* 0.2秒の速さで */
}

/* --------ナビゲーション-------- */
.header-navmenu {
    display: none;
    position: absolute;
    position: fixed;
    top: 50px;
    right: 0;
    width: 50%;
    text-align: right;
    background-color: rgba(255, 255, 255, 0.8);
    list-style: none;
    z-index: 100;
    padding-right: 5%;
    padding-left: 0;
}

.header-navmenu a {
    display: block;
    margin-left: 20px;
    margin-right: 20px;
    padding: 16px 0 17px;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #f5d70e;
}

.header-navmenu a :hover {
    opacity: .9;
    text-decoration: underline;
}


/* --------メイン-------- */

/* --------各コンテナ共通-------- */
.about-container, .works-container,.message-container {
    padding: 50px 4% 0;
}

/* --------タグのデザインと三角の方向-------- */
h2 {
    color: #f5d70e;
    font-size: 1rem;
}

h2 i {
    display: inline-block;
    font-size: 1rem;
    transform: rotate(90deg);
}


/* --------メインタイトル-------- */
/*　こころおどるこころつなぐ */
.main-visual {
    justify-content: center;
}

.portfolio-title p {
    font-size: 2rem;
    color: #ffff;
    -webkit-text-stroke: 1px#f5d70e;
    margin-bottom: 0;
    padding-left: 3%;
}

/* メインタイトル下　minami portfolio */
.portfolio-title h1 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #f5d70e;
    -webkit-text-stroke: 1px #f5d70e;
    padding-left: 10%;
}

/* サブタイトル 右下 心躍る… */
.sab-title {
    text-align: right;
    font-size: 0.8rem;
    color: #61615f;
    padding-right: 1%;
}

/* ---------メイン画像 三角回転--------- */

/* 黄色の三角 */
.top-triangle {
    position: relative;
    margin-left: 15%;
    margin-right: 13%;
}

.top-triangle img {
    max-width: 100%;
}

/* ピンクの三角 */
.transform-triangle {
    top: 0;
    right: 0;
    position: absolute;
    animation: rotate_anime 10s linear infinite;
}

@keyframes rotate_anime {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 青の三角 */
.transform-triangle2{
    top: 0;
    right: 0;
    position: absolute;
    animation: rotate_anime 5s linear infinite;
}

@keyframes rotate_anime {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 


/* --------aboutページ-------- */

/* 名前のデザイン */
.about-name {
    background: url(../images/aboutphoto1.png) top 0 left 0 no-repeat;
    background-size: 25%;
}

/* ひらがなの名前 */
.about-name h3 {
    padding-top: 8%;
    padding-left: 8%;
    font-size: 1.5rem;
    color: #ffffff;
    -webkit-text-stroke: 0.1px#61615f;
    text-decoration: underline 3px solid #f5d70e;
    margin-bottom: 0;
}

/* ローマ字の名前 */
.about-name h4 {
    font-size: 1rem;
    color: #61615f;
    margin-top: 0;
    margin-bottom: 2%;
    text-align: right;
    padding-right: 10%;
}

/* aboutのプロフィール詳細 */
.profile-box {
    display: flex;
    justify-content: center;  
    background: url(../images/aboutphoto2.png) right bottom no-repeat;
    background-size: 20%;
}

.profile-text {
    text-align: center;
}

.profile-text p {
    font-size: 0.7rem;
    font-family: "m-plus-1c", sans-serif;
}

/* aboutの画像 */
.profile-img {
    margin-left: 3%;
    flex: 0 0 100px;
}

.profile-img img {
    max-width: 100%;
}

 /* ボタンの三角の方向 */
.button-border i {
    display: inline-block;
    font-size: 0.7rem;
    transform: rotate(90deg);
}

/* ボタンデザイン */
.button-border {
    border: 1px solid #fff;
    position: relative;
    display: inline-block;
    color: #61615f;
    text-decoration: none;
    padding: 3%;
}
  
  /* 擬似要素の共通スタイル */
.button-border::before,
.button-border::after,
.button-border span::after,
.button-border span::before {
  background-color: #f5d70e;
  content: '';
  display: block;
  position: absolute;
  z-index: 10;
  transition: all .3s ease;
  -webkit-transition: all .3s ease;
}
 /* 左上へ配置 */
.button-border::after {
    width: 0px;
    height: 2px;
    top: -1px;
    left: -1px;
}
 /* 右下へ配置 */
.button-border::before {
    width: 0px;
    height: 2px;
    right: -1px;
    bottom: -1px;
}
 /* 左下へ配置 */
.button-border span::after {
    width: 2px;
    height: 0px;
    left: -1px;
    bottom: -1px;
}
 /* 右上へ配置 */
.button-border span::before {
    width: 2px;
    height: 0px;
    top: -1px;
    right: -1px;
}

 /* hover */
.button-border:hover::after,
.button-border:hover::before {
  width: 100%;
  width: calc(100% + 1px);
}

.button-border:hover span::after,
.button-border:hover span::before {
  height: 100%;
  height: calc(100% + 1px);
}

/* --------work-------- */
/* workのタグ */
.work-sample {
    font-family: "m-plus-1c", sans-serif;
    font-size: 0.85rem;
}

.work-sample i {
    display: inline-block;
    font-size: 0.9rem;
    transform: rotate(90deg);
}

/* workの作品例 */
.work-sample img {
    display: block;
    max-width: 300px;
}

/* work作品例の題目 */
.work-sample ul {
    list-style: none;
    color: #61615f;
}

.work-sample ul li p {
    border-bottom: 3px solid #61615f;
    width: 300px;
    height: 30px;
    margin-top: 10px;
    margin-bottom: 80px;
    letter-spacing: 0.07rem;
}

/* --------フッター-------- */
.footer-continer {
    padding: 20px 4% 20px;
    background: url(../images/contact-photo.png)no-repeat;
    background-size: 15%;
    background-position: 65% 63%;
}

.footer-continer p {
    font-size: 1.5rem;
    text-align: center;

}

.footer-continer a {
    color: #61615f;
    -webkit-text-stroke: 1px#61615f;
    text-decoration: none;
}

.footer-continer a:hover {
    text-decoration: underline;
}


/*　--------aboutの下層ページ---------- */

.about-container2 {
    padding: 10px 4% 0;
}

/* ひらがなの名前 */
.about-name2 h3 {
    font-size: 1.5rem;
    color: #ffffff;
    -webkit-text-stroke: 0.1px#61615f;
    text-decoration: underline 3px solid #f5d70e;
    margin-bottom: 0;
    margin-top: 0;
    padding-left: 3%;
}

/* ローマ字の名前 */
.about-name2 h4 {
    font-size: 1rem;
    color: #61615f;
    margin-bottom: 0;
    text-align: left;
}

/* プロフィールの詳細 */
.profiledetail-box {
    display: flex;
    justify-content: center; 
}

/* 1989年生まれ～デザインについて学ぶ。まで */
.profiledetail-text {
    flex: 2;
    font-family: "m-plus-1c", sans-serif;
}

.profiledetail-text p {
    font-size: 0.5rem;
    text-align: start;
    color: #61615f;
}

/* プロフィール詳細の写真 */
.profiledetail-img {
    margin-left: 7%;
    flex: 1;
}

.profiledetail-img img {
    max-width: 100%;
}

/* 特技と趣味 */
h5 {
    color: #61615f;
    font-weight: normal;
    font-size: 0.5rem;
    margin-bottom: 0;
}

h5 i {
    display: inline-block;
    font-size: 0.5rem;
    transform: rotate(90deg);
}

.profiledetail-text2 {
    margin-top: 10%;
}

.profiledetail-text2 p {
    color: #61615f;
    margin: 0 0 8% 5%;
}

/* --------aboutの下層ページのmessage-------- */

/* タイトル2つ */
h6 {
    width: 350px;
    color: #61615f;
    font-weight: normal;
    font-size: 1rem;
    margin-bottom: 0;
    border-bottom: 3px solid #919389;
    margin-top: 20px;
}

h6 i {
    display: inline-block;
    font-size: 1rem;
    transform: rotate(90deg);
}

/* こころおどるつなぐの意味は？ */
.message-box {
    font-family: "m-plus-1c", sans-serif;
}

.message-text1 p {
    font-size: 0.68rem;
    color: #61615f;
    margin: 1% 5% 7%;
}

/* わたしの強み */
.message-text2 {
    background-image: url(../images/aboutphoto2.png);
    background-position: right bottom ;
    background-repeat: no-repeat;
    background-size: 30% auto;
}
.message-text2 li {
    font-size: 0.7rem;
    list-style-type: decimal;
    color: #61615f;
    margin: 1% 5% 0;
}



/* PC表示のとき */
@media (min-width: 768px) {
/* --------ヘッダー全体-------- */
    .header-container {
        margin: 0 auto;
        max-width: 1000px;
    }

/* --------スマホ用ナビゲーション開閉ボタン-------- */
    .navbtn {
        display: none;
    }

    /* --------ナビゲーション-------- */
    .header-navmenu {
        top: 0;
        right: 0;
        display: flex !important;
        flex-direction: row;
        justify-content: flex-end;
        background: none;
        list-style: none;
    }

/* --------メインタイトル--------*/

    .main-visual {
        display: flex;
    }

    .portfolio-title {
        flex: 1;
    }

    .top-triangle {
        flex: 1;
        margin-right: 0;
    }

    /* こころおどるこころつなぐ*/ 
    .portfolio-title p {
        font-size: 4.25rem;
        margin-top: 50px;
        padding-left: 0;
        -webkit-text-stroke: 1.8px#f5d70e;
    }

    /* メインタイトル下　minami portfolio */
    .portfolio-title h1 {
        font-size: 2rem;
        padding-left: 13%;
    }
    
    /* サブタイトル 右下 心躍る… */
    .sab-title {
        font-size: 1.7rem;
        padding-right: 0;
    }

/* --------各コンテナ共通-------- */
    .about-container, .works-container {
        margin: 0 auto;
        max-width: 1000px;
        padding: 60px 20px 0;
    }
    
/* --------タグのデザインと三角の方向-------- */
    h2 {
        font-size: 2rem;
    }

    h2 i {
        font-size: 1.5rem;
    }


/* --------aboutのプロフィール-------- */

    /* 名前　ひらがな */
    .about-name h3 {
        font-size: 3rem;
    }
    
    /* 名前　英語 */
    .about-name h4 {
        font-size: 2rem;
        text-align: center;
        padding-bottom: 30px;
    }


    /* プロフィール詳細 */
    .profile-text p {
        font-size: 1.5rem;
        margin-top: 50px;
    }

    .profile-box {
        background-size: 18%;
    } 
    
    .button-border {
        font-size: 1.5rem;
    }

    .button-border i {
        font-size: 1.2rem;
    }

    .profile-img {
        flex: 0 0 400px;
        margin-left: 5%;
    }
    
    .profile-img img {
        max-width: 80%;
    }
    
    /* work作品例の題目 */
    .work-sample ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    /* worksの例が3つ以上の場合4つ目から左に配置 */
    .work-sample ul::after{
        content:"";
        display: block;
        width: 30%;
    }

    /* フッター */
    .footer-continer {
        margin: 0 auto;
        max-width: 1000px;
        padding: 60px 20px 55px;
    }
    
    .footer-continer p {
        font-size: 2.8rem;
    }
    
/* --------aboutの下層ページのabout-------- */

    /* 名前　ひらがな */
    .about-name2 h3 {
        font-size: 3rem;
    }
    
    /* 名前　英語 */
    .about-name2 h4 {
        font-size: 2rem;
    }

    .profiledetail-text > p {
        font-size: 1.4rem;
    }

    .profiledetail-text2 > p {
        font-size: 1.5rem;
    }

    h5 {
        font-size: 1.5rem;
    }
    
    h5 i {
        font-size: 1.3rem;
    }
/* --------aboutの下層ページのmessage-------- */
    h6 {
        width: 700px;
    }

    h6, h6 i {
        font-size: 1.9rem;
    }

    /* こころおどるつなぐの意味は？ */
    .message-text1 p {
        font-size: 1.5rem;
    }

    /* わたしの強み */
    .message-text2 li{
        font-size: 1.5rem;
    }

}