@charset "utf-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}
html {
  scroll-behavior: smooth;
}
body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.2em;
 background: linear-gradient(
        120deg,
        /* パステル紫ゾーン */ #e9e3f7 0%,
        #eee9fa 12%,
        #f2effc 24%,

        /* 白に寄せるゾーン */ #f6f7fb 40%,
        #fafbfc 50%,
        #f6f7fb 60%,

        /* ピンクゾーン */ #f6e6ec 65%,
        #f4dbe4 86%,
        #f2d3df 100%
    );
 
}
a {
    color: black;
}
img {
    width: 100%;
    vertical-align: bottom;
}

/* ハンバーガーメニュー */
.ham {
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: fixed;
    top: 15px;
    right: 10px;
    z-index: 9999;
    padding: 10px;
}
.ham span {
    width: 80%;
    height: 1.1px;
    margin: 0 auto;
    background-color: #980000;
    display: block;
    transition: 0.7s;
}
/* click後のスタイル */
.ham.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.ham.active span:nth-child(2) {
    opacity: 0;
}
.ham.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
/* nav */
nav.sp {
    width: 100%;
    height: 132vh;
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #fff5f5 40%,
        #ffe2e2 100%
    );
    position: fixed;
    top: -10vh;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
    opacity: 0;
    transition: 0.7s;
    pointer-events: none;
}
nav.sp ul {
    list-style: none;
}
nav.sp ul a {
    display: block;
    color: #555555;
    font-weight: bold;
    font-size: 18px;
    transition: 0.5s;
    border-bottom: 2px dotted #980000;
    width: fit-content;
    margin: 50px 0;
    padding: 0 10px 5px;
}
nav.sp ul a:hover {
    opacity: 0.5;
}
nav.sp.active {
    opacity: 1;
    z-index: 9998;
    pointer-events: all;
}
@media (min-width: 768px) {
    .ham {
        display: none;
    }
}
/* ヘッダー */
#home img {
    display: block;
    width: 38%;
    padding: 3% 0 3% 0;
}
.pc-hero {
    display: none;
}
.kotei{
        position: fixed;
        top: 0;
        display: flex;
        align-items: center;
        justify-content:space-around;
        width: 100%;
      background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0)
  );
  z-index: 2;
}
.sp-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 768px) {
    .pc-hero {
        display: block;
    }
    .kotei{
        position: fixed;
        top: 0;
        display: flex;
        align-items: center;
        justify-content:space-around;
        width: 100%;
      background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0)
  );
  z-index: 2;
    }
    /* スクロール時のnav */
body.scrolled .kotei {
     background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.99),
    rgba(255,255,255,0));
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
    .kotei h1{
        width: 25%;
        margin: 0;
        flex-shrink: 0;
        padding: 5px 0 2px 0;
        margin-right: 150px;
    }
    .kotei nav ul{
        display: flex;
        justify-content: space-between;
        gap: 50px;
        margin-right: 30px;
    }
    .kotei nav ul li a{
        display: block;
        color: #980000;
        font-size: 1.1em;
        font-weight: 500;
    }  
    .kotei nav ul li a:hover{
        opacity: 0.5;
        transition: 0.5s;
    }
    .pc-hero-img{
        width: 100%;
        object-fit: cover;
    }
    .sp-hero {
        display: none;
    }
}
/* main */
/* works section */
.h2-wrap{
    text-align: center;
    margin: 50px 0 30px;
}
h2 {
    font-size: 30px;
	font-weight: bold;
	position: relative;
	display: inline-block;
	letter-spacing: 6px;
}
h2::before {
	content: "";
	width: 1px;
	height: calc(100% + 40px);
	transform: rotate(34deg);
	display: block;
	position: absolute;
	background: #6f7d80;
	left: 0;
	right: 0;
	top: -20px;
	margin: auto;
	z-index: -1;
}
h2::first-letter {
    font-size: 1.2em;
    color: #980000;
}
#works .sub {
    padding-left: 120px;
}
@media screen and (min-width: 768px){
    .h2-wrap{
        margin: 80px 0 50px;
    }
}
/* works */
.flex-item .kakudai-img a{
    display: block;
    width: 85%;
    overflow: hidden; 
    border-radius: 15px;
    margin: 0 auto;
}
#works img.works-top {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.detail {
    /* border: 1px solid red; */
    width: 85%;
    margin: 0 auto;
    padding: 0 50px 0 10px;
    margin-bottom: 10%;
}
.detail p:first-of-type {
    color: #fd7979;
    padding: 20px 0 5px;
}
.detail h4 {
    font-size: 1.5em;
}
.detail p:nth-of-type(2) {
    padding: 10px 0;
}
.detail p:nth-of-type(3) {
    width: 85%;
    color: #8785a2;
}
.detail a.works-btn img {
    display: block;
     width: 60%;
     padding-top: 5%;
     object-fit: cover;
}
.js-fadeUp {
  opacity: 0; /* 最初は非表示 */
  transform: translateY(30px); /* 下に30pxの位置から */
  transition: opacity .8s, transform .5s; /* 透過率と縦方向の移動を0.8秒 */
}
/* フェードイン(スクロールした後) */
.js-fadeUp.is-inview {
  opacity: 1; /* 表示領域に入ったら表示 */
  transform: translateY(0); /* 30px上に移動する */
  transition-delay: .2s; /* フェード開始を0.5秒遅らせる */
}
@media screen and (min-width: 768px) {
    .flex-box {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 85%;
        margin: 0 auto;
    }
    .flex-item {
        width: 45%;
    }
    .detail {
        margin-left: 0;
    }
    .flex-item:nth-of-type(2),
    .flex-item:nth-of-type(4),
    .flex-item:nth-of-type(6) {
        margin-top: 80px;
    }
    .detail {
        width: 100%;
    }  
     .detail a.works-btn img {
     width: 50%;
    }
    .detail a.works-btn img:hover{
        opacity: 0.5;
        transition: 0.6s;
    }
    .flex-item .kakudai-img a{
    display: block;
    width: 100%;
    overflow: hidden; 
    border-radius: 15px;
    margin: 0 auto;
}
#works img.works-top {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin: 0;
    transition: transform .6s ease; 
}
.flex-item a:hover img.works-top {
    transform: scale(1.04);
}
}
/* rotate */
.rotate-text {
    width: 300px;
    overflow: hidden;  
     position: absolute;
    top: -150px;
    right: 0px;
}
.rotate-text img {
    width: 100%;
    height: auto;
    animation: rotate 20s linear infinite;
}
.profile-wrap {
    position: relative;
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@media screen and (min-width: 768px){
    .rotate-text {
    width: 350px;
}
.rotate-text {
    top: -170px;
    right: -150px;
}
}
/* profile */
#about .h2-wrap{
    margin: 100px 0;
}
#about h3 {
    width: fit-content;
    font-size: 1.8em;
    padding-bottom: 20px;
    font-weight: lighter;
}
#about .sub {
    text-align: center;
    margin-bottom: 90px;
    padding-left: 120px;
}
img.myphoto {
    display: block;
    width: 55%;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.out-aboutme {
    width: 80%;
    margin: 50px auto;
}
#about p.aboutme {
    width: 100%;
    text-align: justify;
    padding: 10px 0;
    line-height: 1.8;
}
@media screen and (min-width: 768px){
    .profile-flex{
        display: flex;
        justify-content: space-between;
        width: 60%;
        margin: 0 auto;
    }
    .profile-wrap{
        width: 40%;
    }
    img.myphoto {
    width: 90%;
    height: 380px;
    object-fit: cover;
    }
    .out-aboutme{
        width: 43%;
        padding-top: 80px;
    }
}

/* WEBサイトスキル */
.skil h5 {
    font-size: 1.5em;
    margin-bottom: 5%;
    color: #666666;
    border-bottom: 1px dotted #666666;
}
.skil-web {
    position: relative;
    height: 600px;
    overflow: hidden;
}
.skil-web img.top {
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    right: -25px;
    
}
.web-setumei {
    position: absolute;
    top: 35%;
    left: 10%;
    width: 80%;
}
.web-setumei p.bunnsyou {
    line-height: 1.8;
    text-align: justify;
}

/* ウェブデザインアイコン */
/* ↓アイコン３つのまとまり */
.flex-web-icon {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 20px auto 0;
}
/* ↑ */
/* ↓アイコン１つずつの箱 */
.flex-web-icon div {
    width: 35%;
}
.flex-web-icon img {
    display: block;
    width: 50%;
    margin: 0 auto;
}
.flex-web-icon p {
    text-align: center;
}
/* ↑ */
/* グラフィックスキル */
.skil-graphic h5 {
    text-align: right;
}
.skil-graphic {
    position: relative;
    height: 600px;
    overflow: hidden;
}
.skil-graphic img.top {
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    left: -25px;
    
}
/* graphic アイコン*/
/* ↓アイコン３つのまとまり */
.flex-graphic-icon {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 20px auto 0;
    gap: 10px;
}
/* ↑ */
/* ↓アイコン１つずつの箱 */
.flex-graphic-icon div {
    width: 30%;
}
.flex-graphic-icon img {
    display: block;
    width: 60%;
    margin: 0 auto;
}
.flex-graphic-icon {
    text-align: center;
}
/* ↑ */
/* profileすべてのレスポンシブ */
@media screen and (min-width: 768px){
    .skil-web,
    .skil-graphic {
        position: relative;
        min-height: 640px;  
      width: 85%;
    margin: 0 auto 80px;
    }
    .skil-web .web-setumei {
        top: 40%;
        left: 10%;
        width: 45%;
    }
    .skil-graphic .web-setumei {
        top: 40%;
        left: auto;
        right: 10%;
        width: 45%;
    }
    .skil h5{
        font-size: 1.8em;
        padding-bottom: 10px;
    }

    /* アイコンの余白を広めに */
    .flex-web-icon,
    .flex-graphic-icon {
        margin-top: 30px;
    }

    .flex-web-icon img {
        width: 50%;
    }
    .flex-graphic-icon img {
        width: 60%;
    }
    .skil-web img.top,
    .skil-graphic img.top{
        width: 60%;
    }
}
/* slider */
.slider {
    padding: 8% 0;
}
.slider img {
    display: block;
    width: 120%;
    height: 170px;
    object-fit: cover;
    padding: 0 30px;
}
@media screen and (min-width: 768px){
    .slider {
    padding: 5% 0;
}
.slider img {
    display: block;
    width: 110%;
    height: 230px;
    object-fit: cover;
    padding: 0 30px;
}
}
/* 上アーチ */
.contact {
    position: relative;
    height: 120px;
    overflow: hidden;
}
.contact::before {
    content: "";
    position: absolute;
    top: 20px; /* ← 上アーチの核心 */
    left: 50%;
    transform: translateX(-50%);
    width: 260%;
    height: 1400px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
}
@media screen and (min-width: 768px){
.contact {
    height: 120px;
}
.contact::before {
    width: 200%;
    height: 1500px;
}
}
/* contact */
#contact {
    background-color: #fff;
}
#contact .h2-wrap{
    margin: 0;
}
#contact h2::before{
    z-index: 1;
}
#contact .sub {
    padding-left: 120px;
    margin-bottom: 10px;
}
#contact .last {
    text-align: center;
    margin: 30px 0;
     position: relative;
  padding: 4px 8px;
  letter-spacing: 0.1em;
  color: #333;
  font-weight: 400;
  display: block;
  max-width: fit-content;
  text-align: center; 
  margin: 24px;
  margin-inline: auto;
}
 #contact .last::after{
         content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, transparent 25%, #d8bfd8 25%, #d8bfd8 50%, transparent 50%, transparent 75%, #d8bfd8 75%, #d8bfd8);
  background-size: 4px 4px;
  z-index: 0;
    }

@media screen and (min-width: 768px){
    #contact .h2-wrap{
        margin-bottom: 60px;
    }
    #contact .last{
        font-size: 1.2em;
  margin-inline: auto;
    }
}
/* 手紙の画像 */
.btn {
    position: relative;
    width: 70%;
    height: 200px;
    margin: 0 auto;
    display: block;
    overflow: hidden;
    cursor: pointer;
}
.btn img {
    position: absolute;
    bottom: 0;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translateX(-50%);
    width: 100%;
    display: block;
    -webkit-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
}
.contact-box.hana-left{
    display: none;
}
.contact-box.hana-right{
    display: none;
}
@media screen and (min-width: 768px){
.btn {
    width: 40%;
    height: 350px;
}
.btn img {
    position: absolute;
    bottom: 0;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translateX(-50%);
    width: 100%;
    display: block;
    -webkit-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
}
.contact-flex{
    position: relative;
}
.contact-box.hana-left{
    position: absolute;
    display: block;
    width: 18%;
    top: 50px;
    left: 200px;
}
.contact-box.hana-right{
    position: absolute;
    display: block;
    width: 18%;
    top: 50px;
  right: 200px;
}
}
.btn img:nth-of-type(2) {
    opacity: 0;
}
/* hover */
.btn:hover img:nth-of-type(2) {
    opacity: 1;
}
.sp-btn a{
    display: block;
    width: 60%;
    text-align: center;
    margin: 20px auto 0;
    border: 1px solid #FF9494;
    color: #FF9494;
    border-radius: 30px;
    padding: 15px 0;
}

@media screen and (min-width: 768px){
    .sp-btn{
        display: none;
    }
}

/* footer */
footer {
    background-color: #fff;
    padding: 40px 0 15px;
}
footer .copylight {
    text-align: center;
}
