/*
Theme Name: matsuo's portfolio
Theme URI: http://mm20250801.stars.ne.jp/
Description: matsuo's portfolio
Version: 1.0.0
Author: Maiko Matsuo
Author URI: http://mm20250801.stars.ne.jp/
*/

body {
    font-family: "Inter", sans-serif;
    font-weight: normal;
    font-size: 16px;
}

a {
    text-decoration: none;
}

header{
    max-width: 100%;
    height: 100vh;
    background: url("images/AdobeStock_873858528.png") no-repeat center center/cover;
    
}

.hamburger {
    display: none;
}


.contents {
    max-width: 1200px;
    margin: 0 auto;
}

#nav-sp {
    display: none;
    
}

@keyframes fadeInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.fv-h2_1,
.fv-h2_2,
.fv-h2_3 {
  opacity: 0; /* ← 最初は透明にしておく */
  animation-name: fadeInFromLeft;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}


h2 {
    font-size: 52px;
    color: #fff;
    font-family: "Kozuka Mincho Pr6N";
}

.fv-h2_1 {
    position: relative;
    top: 15px;
    left: 40%;
    width: 35%;
     animation-delay: 0s;   /* すぐ開始 */
}

.fv-h2_2 {
    position: relative;
    left: 15%;
    width: 45%;
    animation-delay: 1.5s; /* 時間差で開始 */
}

.fv-h2_3 {
    position: relative;
    top: 45px;
    left:50%;
    width: 40%;
    animation-delay: 3s; /* 時間差で開始 */
}

h2 span {
    font-size: 120px;
    font-family: "sictake-kizami", sans-serif;
    font-weight: 400;
    font-style: normal;
}


.header-bottom {
    display: flex;
    align-items: center; /* 縦位置を揃える */
    justify-content: space-between; /* 左右に配置 */
    
}

h1 img {
    max-width: 90%;
    height: auto;
    position: relative;
    top: 100px;

    opacity: 0;                  /* 初期状態は透明 */
    transform: scale(0.95);      /* 少し小さくしておく */
    animation: fadeIn 1.8s ease-out forwards;
    animation-delay: 6s;       /* ページロード後 少し待ってから表示 */
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);   /* 小さめでぼんやり */
  }
  100% {
    opacity: 1;
    transform: scale(1);      /* 本来の大きさでしっかり表示 */
  }
}



.fv-nav {
    display: flex;
    list-style: none;
    position: relative;
    top: 250px;
}

.fv-nav >li {
    color: #550256;
    display: inline-block;
    list-style: none;
}


.fv-nav li a {
     margin: auto 20px;
     color: #550256;
}

h3 {
    font-size: 40px;
    font-weight: normal;
    text-align: center;
    color: #550256;
    margin: 150px auto 50px auto;
}

.h3-w {
    margin-bottom: 100px;
}

.works-website {
    display: flex;
    justify-content: space-around;
    margin: 0 auto 100px auto;
}

.works-website > img {
    width: 50%;
    height: auto;
}

.website-p {
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    margin: auto auto auto 100px;
}


.website-p > a {
    font-size: 18px;
    position: relative; 
    left: 40%; 
    margin-top: 150px;
    width: 30%;
    
}

.website-p  a:hover {
    color: #e8c1e9;
}

.work {
    border-radius: 80px;
}

.works-website.reverse {
  flex-direction: row-reverse;
}

h4 {
    font-size: 15px;
    margin-top: 30px;
}

.maintext {
    font-size: 28px;
    margin-top: 20px ;
    margin-bottom: 15px;
}

.tool {
    font-size: 15px;
}


.morebutton {
    display: inline-block;
    position: relative;
    left: 45%;
    margin: 50px auto 0 auto;
    background-color: #C49EEA;
    border-radius: 50px;
    color: #fff;
    font-size: 18px;
    transition: background-color 0.3s ease;
    padding: 12px 32px;

    display: inline-block;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    background: linear-gradient(to bottom, #ae64f8, #d5abff);
    box-shadow: 0 4px 0 #523075;
    transition: all 0.2s ease;
}

.morebutton:active {
  box-shadow: 0 2px 0 #ae64f8;
  transform: translateY(2px);
}

.morebutton:hover {
  background: linear-gradient(to bottom, #e8c1e9, #f090f1); /* 色が変化 */
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #957c96;
}


.about-wrapper {
    display: flex;
    margin: 50px auto 0 auto;
}

.about-img {
    width: 50%;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.mypicture {
    height: 350px;
    width: 350px;
    margin: 0 auto;
    display: block;

}

.about-img > p {
    text-align: center;
    font-size: 24px;
    margin-top: 20px;
}

.about-maintext {
    width: 50%;
    font-size: 16px;
    line-height: 230%;
    margin: auto auto auto 0;
    text-align: justify;
}

h5 {
    font-size: 16px;
}

.about-ul {
    padding-left: 40px;
}

.contact > p {
    text-align: center;
    font-size: 28px;
    margin-bottom: 200px;
}

footer {
    background-color: #C49EEA;
    height: 500px;
    position: relative;
}

.sp {
    display: none;
}

.footer  p {
    color: #fff;
    font-size: 24px;
    text-align: center;
    padding: 100px 0 0 0;
}

.footer-nav {
    margin-top: 130px;
}

.footer-nav  li  a{
    color: #fff;
    font-size: 18px;
}

.footer-nav li {
    margin-top: 50px;
    margin-left: 100px;
    list-style: none;
}

.footer > img {
    position: absolute;
    right: 150px;
    bottom: 100px;
    width: 300px;
}

@media screen and (max-width: 767px) {

header {
    max-height: 50vh;
}
    
.contents {
    max-width: 96%;
}
.hamburger {
    display: block;
  width: 40px;
  height: 50px;
  float: right;
    padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hamburger_bar {
  display: block;
  width: 100%;
  height: 5px;
  margin-bottom: 9px;
  background: #fff;
}

.hamburger_bar:nth-child(1) {
  top: 0;
}

.hamburger_bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger_bar:nth-child(3) {
  top: 100%;
  transform: translateY(-100%);
}

#close {
    color: #fff;
    width: 40px;
    height: 40px;
    float: right;
    padding: 0;
}

.logo-sp_img {
    width: 50%;
    height: auto;
    margin: 20px 50px 50px auto;
}

#nav-sp {
    background-color: #C49EEA;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: none;
    z-index: 100;
}

#nav-sp a {
    display: block;
    color: #fff;
}

#nav-sp > a:hover {
    color: #550256;
    text-decoration: underline;
  }

 #nav-sp > .menu {
    text-decoration: none;
    display: block;
    margin: 0 auto 30px 20px;
    height: 44px;
    font-size: 16px;
    background-image: url("images/arrow.png");
    background-repeat: no-repeat;
    background-position: right top;
  }

h2 {
    font-size: 20px;
}
.fv-h2_1 {
    position: relative;
    top: 0;
}

h2 span {
    font-size: 44px;
}

h1 img{
    position: relative;
    left: 45px;
    width: 55%;
}

.fv-h2_2 {
    position: relative;
    top: 20px;

}



.fv-nav {
    display: none;
}


h3 {
    font-size: 22px;
    margin-top: 50px;
}

h4 {
    font-size: 12px;
}

.works {
    text-align: center;
}


.works-website {
    display: flex;
    flex-direction: column;
}

.works-website.reverse {
    flex-direction: column; 
  }

.about-wrapper {
    display: flex;
    flex-direction: column;
}

.works-website img {
    width: 100%;
    margin-bottom: 20px;
}

.website-p {
    width: 100%;
    text-align: center;
    margin: auto;
}

.maintext {
    font-size: 20px;
}

.website-p a {
    position: relative;
    left: 65%;
    margin-top: 20px;
    font-size: 15px;
    width: 30%;
}

.website-2 {
    display: flex;
    flex-direction: column-reverse;
}

.tool {
    font-size: 12px;
}

.morebutton {
    display: inline-block;
    position: relative;
    left: 35%;
    bottom: 50px;
    margin-top: 0 auto 0 auto;
    font-size: 15px;
    padding: 8px 20px;
}

.mypicture {
    width: 90%;
    height: auto;
    margin-bottom: 20px;
    text-align: center;
}

.about-img p {
    display: none;
}

.about-maintext {
    width: 90%;
    font-size: 15px;
    margin: 0 auto;
    line-height: 180%;
}

h5 {
    font-size: 13px;
}
.about-ul li {
    font-size: 13px;
}

.contact p {
    font-size: 16px;
    margin-bottom: 50px;
}

.contact h3 {
    margin-bottom: 20px;
}

footer {
    text-align: center;
    height: 400px;
    position: relative;
}

.sp {
    display: block;
}


.footer p {
    font-size: 16px;
    line-height: 2.5;
    padding-top: 50px;
}

.footer nav {
    text-align: center;
}

.footer-nav {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    
    
}

.footer-nav li {
    margin: 0 10px;
}

.footer-nav li a {
    font-size: 12px;
    
}

.footer img {
    max-width: 120px;
    margin-top:  100px;
    display: block;
    position: absolute;
    bottom: 50px;
}
}