@charset "UTF-8";
:root{
    --midbrack:#5F5B5B;
    --brack:#161414;
    --gray:#D9D9D9;
    --white:#FFFFFF;
    --offwhite:#E6E6E6;
    
}
html{
    font-size: 62.5%;
}
body{
  font-family: "Noto Sans JP", sans-serif;
  font-weight:300;
  font-style:normal;
  line-height: 1.5;
  background-color:rgba(22, 20, 20, 0.95);
  color: var(--offwhite);
}
img{
    max-width: 100%;
    height: auto;
}
.btn{
    display: block;
    border-radius: 30px;
    color: #161414;
    padding: 18px 50px;
    transition: 0.4s;
    line-height: 1;
    text-align: center;
    margin: 0 auto;
    width: 200px;
    height: 60px;
    font-size: 24px;
    box-shadow: 0 4px 0 #111;
    background-color: var(--white);
}
.btn:hover{
    opacity:0.8 ;
}
/*header */

.header__top{
    width: 100%;
    height: 70px;
    opacity: 0.8;
    position: relative;
    display: block;
}
.header__btn{
display:flex ;
position: absolute;
bottom: 50%;
right: 10px;
transform: translateY(50%);
} 
.header__title{
    display: flex;
    justify-content: center;
    align-items:center;
    margin-top: 20px;
    font-size: 20px;
    color:var(--offwhite);
}
.mainimg{
    width:50%;
    height: auto;
    display: block;
    margin: 20px auto 0;
    position: relative;
} 

.header__topic{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
}
.header__center1{
    font-size: 18px;
    margin-top: 5px;
}
.header__center2{
    font-size: 30px;
    margin-top: 5px;
}
.header__center3{
    font-size: 24px;
    margin-top: 5px;
}
/* nav */
.nav{
    background-color: rgba(22, 20, 20, 0.8);
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index:100 ;
    transform: translateX(-100%);
    transition: 0.4s;
    position: fixed;
}
.nav__close{
    position: absolute;
    top: 20px;
    right: 20px;
}
.nav__list{
    margin-top: 80px;
}
.nav__item{
    font-size: 16px;
    margin: 50px 20px;
    transition: .4s;
}
.nav__item:hover{
    opacity: .6;
}
.line1,.line2{
    display: none;
}
/* nav active */
.nav.active{
    transform: translateX(0);
}
/* feedin */
.feedIn{
    transform: translate(0, 50px);
    opacity: 0;
    transition: 0.8s;
}
.feedIn.animated{
    transform: translate(0, 0);
    opacity: 1;
}  
/* header pc */
@media screen and (min-width:950px) {
.nav{transform: translateX(0);
    background-color: transparent;
    position: static;
    width: 100px;
    height: auto;
    margin: auto 15px;
}
.nav__list{
    justify-content: center;
    align-items: center;
}
.nav__item{
    font-size: 20px;
}
 .header__btn{
        display: none;
    }
 .nav__close{
        display: none;
    }

    .header__top{
    display: none;
}
.header__title{
    writing-mode: vertical-rl;   
    text-orientation: upright;   
    font-size: 30px;
    color: #fff;
    margin: auto 15px;
    display: flex;
   
}

.article{
    padding: 50px 20px;
    display: flex;
}
.mainimg::after{
    width: 150px;
    height: 180px;
}
.header__center1{
    font-size: 30px;
}
.header__center2{
    font-size:40px;
}
.header__center3{
    font-size: 30px;
}
body{
    line-height: 2.2;
}
}

/* main */
.profile{
    margin: 100px 3px 0;
    padding: 0 15px;
}
.profile__title{
    font-size: 32px;
    display:flex;
    justify-content: center;
    align-items: center;
}
.sagami{
    display: block;
    width: 100%;
    height: auto;
    margin: 20px auto;
}
.profile__name{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 36px;
    margin-top: 30px;
}

.profile__name::after{
    content: "Sagami　Daiki";
    font-size: 24px;
    top: -23px;
    position: absolute;
}
.profile__txt{
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
}
/* profile pc */
@media screen and (min-width:769px) {
    .profile{
        margin-top: 100px;
    }
    .profile__title{
        font-size: 38px;
      
    }
    .profile__group{
        display: flex;
        margin-top: 30px;
        gap: 70px;
        align-items: start;
        justify-content: center;
    }
    .sagami{
        max-width: 405px;
        height: auto;
        display: block;
        margin: 0;
    }
    .profile__name{
        font-size: 34px;
        display: block;
        margin: 0 auto;
        width: 300px;
    }
    .profile__name::after{
        top: 10px;
        right: -50px;
        position: absolute;
    }
    .profile__txt{
        display: block;
        max-width: 400px;
        height: auto;
        line-height: 1.8;
        margin-top: 40px;
        font-size: 20px;
    }

}
/* skill */
.skill{
    margin-top: 50px;
}
.skill__title{
    font-size: 32px;
    text-align: center;
}
.skill__top{
    font-size: 17px;
    text-align: center;
    margin-top: 20px;
}
.skill__topic{
    text-align: center;
    font-size: 24px;
    margin-top: 20px;
}
.skill__img{
width: 60%;
height: auto;
margin: 10px auto;
display: block;
}
.skill__item{
    margin: 0 20px;
}
.skill__txt{
    font-size: 20px;
    text-align: center;
    margin-top: 10px;
}
/* skill pc */
@media screen and (min-width:769px) {
    .skill{
        margin-top: 100px;
    }
    .skill__title{
        font-size: 38px;
    }
    .skill__top{
        font-size: 32px;
    }
    .skill__top br{
        display: none;
    }
    .skill__list{
        display: flex;
    }
    .skill__topic{
        font-size: 32px;
    }
}
/* mind */
.mind{
    margin-top: 50px;
}
.mind__title{
    font-size: 32px;
    text-align: center;
}
.mind__topic{
    font-size: 24px;
    text-align: center;
    margin-top: 30px;
}
.mind__item{
    margin: 0 20px;
}
.mind__img{
    width:60%;
    height: auto;
    margin: 20px auto;
    display: block;
}
.mind__txt{
    font-size: 16px;
    text-align: center;
    margin-top: 20px;
}
/* mind pc */
@media screen and (min-width:769px) {
    .mind{
        margin-top: 100px;
    }
    .mind__title{
        font-size: 38px;
    }
    .mind__topic{
        font-size: 28px;
    }
    .mind__list{
        display: flex;
    }
    .mind__item{
        display: block;
        width: 30%;
        height: auto;
    }
    .mind__img{
        display: block;
        max-height: 200px;
        width: auto;
    }
    .mind__txt{
        font-size: 20px;
    }
}
/* reason */
.reason{
    margin: 50px 10px;
}
.reason__title{
    text-align: center;
    font-size: 32px;
}
.reason__topic{
    font-size: 18px;
}
.reason__txt{
    font-size: 15px;
    margin-top: 20px;
}
.reason__item{
    text-align: center;
    margin-top:40px;
}
/* reason pc */
@media screen and (min-width:769px) {
    .reason{
        margin-top: 100px;
    }
    .reason__title{
        font-size: 38px;
    }
    .reason__topic{
        font-size: 36px;
    }
    .reason__txt{
        font-size: 24px;
    }
    .reason__item{
        margin-top: 60px;
    }
    
}
/* planning */
.planning{
    margin:50px 15px 0;
}
.planning__title{
    text-align: center;
    font-size: 32px;
}
.planning__topic{
    font-size: 28px;
    text-align: center;
    margin-top: 20px;
}
.planning__subtopic{
    font-size: 24px;
    text-align: center;
    margin-top: 15px;
}
.planning__txt{
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}
.planning__txt img{
    width: 18%;
    height: auto;
    display: block;
    margin: 10px auto;
}
/* planning pc */
@media screen and (min-width:769px) {
    .planning__title{
        font-size: 38px;
    }
    .planning__topic{
        font-size: 38px;
    }
    .planning__list{
        display: flex;
       justify-content: space-between;
    }
    .planning__txt{
        display: flex;
   align-items: center;
   font-size: 20px;
    }
    .planning__txt img{
        margin-left:15px;
    width: 100px;
    display: block;
    height: auto;
        }
    .planning__subtopic{
        font-size: 32px;
    }
    
}
/* works */
.works{
    margin: 50px 15px;
}
.works__list a img{
    width: 100%;
    height: auto;
    display: block;
}
.works__list{
    display: flex;
    justify-content: space-between;
    margin: 70px 30px;
}
.works__list a{
    display: block;
    width: 30%;
    height: auto;
}
.works__title{
    font-size: 32px;
    text-align: center;
}
.btn{
    margin-top: 30px;
}
/* works pc */
@media screen and (min-width:769px) {
    .works__title{
        font-size: 38px;
    }
    .works__list{
        margin: 100px 0;
    }
}
/* footer */
.footer{
    background-color: rgba(255, 255, 255, 0.8);
    padding:10px ;
}
.footer__title{
    color: var(--brack);
    font-size: 37px;
}
.footer__nav__item{
color: var(--brack);
font-size: 16px;
margin-top: 36px;
transition: .4s;
}
.footer__nav__item:hover{
    opacity: .6;
}
.copy{
    text-align: center;
    color: var(--brack);
    font-size: 12px;

}
/* footer pc */
@media screen and (min-width:1000px) {
    .footer{
        background-color:transparent;
        margin: 100px 40px 30px;
    }
.footer__group{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer__nav__list{
    display: flex;
    gap: 140px;
   
}
.footer__nav__item{
    margin-top: 0;
    color: var(--white);
}
.footer__title{
    color: var(--white);
}
.copy{
    color: var(--white);
    font-size: 16px;
    margin-top: 40px;
}
.section{
    margin-top: 150px;
}


}
#loading.hide {
    opacity: 0;
    visibility: hidden;
}

/* 全画面ローディング */
#loading {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease, visibility 1s ease;
}

#loading.hide {
    opacity: 0;
    visibility: hidden;
}

/* ====== ローダー登場アニメ ====== */
.loader-wrap {
    opacity: 0;
    transform: scale(0.8);
    animation: loaderShow 0.8s ease forwards 0.3s; /* ← 0.3秒遅れて出てくる */
}

@keyframes loaderShow {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ====== CodePenのネオンローダー（回転速度を遅くして長く魅せる） ====== */

:root {
    --loader-size: 150px;
    --text-color: #CECECE;
    --color-one: #2979FF;
    --color-two: #FF1744;
    --color-three: #FFFB8D;
    --color-four: #B2FF59;
    --light-size: 3px;
}

/* ローダー */
.Loader {
    width: var(--loader-size);
    height: var(--loader-size);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    letter-spacing: 4px;
    font-size: 14px;
}

/* 4色リング */
.Loader__Circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: var(--light-size) solid transparent;
    animation: spin 2.5s linear infinite; /* ← 3秒にして長めに */
}

.Loader__Circle:nth-child(1){ border-top-color: var(--white); }
.Loader__Circle:nth-child(2){ border-right-color: var(--white); animation-delay: -0.75s; }
.Loader__Circle:nth-child(3){ border-bottom-color: var(--white); animation-delay: -1.5s; }
.Loader__Circle:nth-child(4){ border-left-color: var(--white); animation-delay: -2.25s; }

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ====== サイト本体は最初非表示 ====== */
#content {
    opacity: 0;
    transition: opacity 1.5s ease;
}

#content.show {
    opacity: 1;
}

/* ====== 最後にローダーが光るアニメ ====== */
.loader-wrap.flash {
    animation: flashEffect 0.6s ease forwards;
}

@keyframes flashEffect {
    0% { opacity: 1; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(3); }
    100% { opacity: 0; filter: brightness(0); }
}
