@charset "utf-8";

/* ーーーーーーーーーーーーーーーー */
/*全体設定/
/* ーーーーーーーーーーーーーーーー */
:root{
    --gray1: #4d4d4d;
    --gray2: #808080;
    --gray3: #ededec;
    --sub1: #bec1c7;
    --sub2: #001987;
    --trans1: rgba(255, 255, 255, 0.5);
    --trans2: rgba(255, 255, 255, 0.2);
}

body{
    color: var(--gray1);
    font-size: 16px;
    font-family: 'Shippori Mincho','Times New Roman', 'ヒラギノ明朝 ProN W3', 'Hiragino Mincho ProN', serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* 背景画像パララックス */
    background-image: url("../img/bg.webp");
    background-size: cover;
    height: 100vh;
    background-attachment: fixed;
    background-position: center top;
}

main{
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

.sp-only-br{
    display: none;
}

@media (width <= 768px){
    main{
        width: 95%;
    }
    .sp-only-br{
        display: block;
    }
}

.sr-only { /* 文字を画像で置き換え */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;  /* 移動先までするっと移動。基本つけておいてOK */
  scroll-padding-top: 80px;   /* 移動先の着地点をずらせる。 */
}

/* 共通画像 */
img{
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* セクション全体設定 */
.about,
.works,
.skills,
.education,
.works-list{
    margin: 0 auto 160px
}

@media (width <= 768px){
    .about,
    .works,
    .skills,
    .education,
    .works-list{
        margin: 0 auto 80px
    }
}

.common-title{
    font-size: 48px;
    text-align: center;
    line-height: 0.8;
    margin-bottom: 48px;
}

.common-title-sub{
    font-size: 24px;
}

@media (width <= 768px){
    .common-title{
        font-size: 32px;
        margin-bottom: 32px;
    }
    .common-title-sub{
        font-size: 16px;
    }
}

/* ボタン設定 */
.about-btn,
.works-btn,
.work__back-btn{
    display: block;
    max-width: 300px;
    margin: 0 auto;
}

@media (width <= 768px){
    .about-btn,
    .works-btn,
    .work__back-btn{
        width: 60%;
    }
}




/* ーーーーーーーーーーーーーーーー */
/* header */
/* ーーーーーーーーーーーーーーーー */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

/* ハンバーガーメニュー開閉 */
.header__inner{
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    height: 100vh;
    justify-content: flex-start;
    align-items: center;
    padding-top: 20%;
    transition: left 0.3s;
    position: fixed;
    left: -100%;
    background-image: url(../img/bg_header.webp);
    
}

header.open .header__inner{
    left: 0;
}

.is-resize header .header__inner{
    transition: none;
}

.header__logo-link{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.header__logo-img{
    width: 110px;
    height: auto;
    margin-bottom: 20px;
}

header h1 {
    font-size: 16px;
    text-align: center;
}

header nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 24px;
}

header nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

@media (width >= 930px){
    header{
    background: var(--trans2);
    backdrop-filter: blur(3px);
    }
    header .header__inner{
        background: none;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 32px;
        max-width: 1200px;
        margin: 0 auto;
        height: auto;
        position: static;
    }
    
    header nav{
        flex-direction: row;
    }
    header nav ul {
        flex-direction: row;
    }
    .header__logo-link{
        flex-direction: row;
    }
    .header__logo-img{
    width: 40px;
    height: auto;
    margin: 0;
    }
}

header button {
    position: fixed;
    top: 8px;
    right: 10px;
    z-index: 200;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

@media (width >= 930px) {
    header button {
        display: none;
    }
}

header button::before,
header button::after {
    content: "";
}

header button::before,
header button::after,
header button span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--gray1);
    transition: 0.3s;
}

header.open button{ 
    gap: 0;
}

header.open button span {
    opacity: 0;
}

header.open button::before{
    rotate: -45deg;
    translate: 0 3px; 
}

header.open button::after {
    rotate: 45deg;
    translate: 0 -3px;
}



/* ーーーーーーーーーーーーーーーー */
/* TOPページ　MV */
/* ーーーーーーーーーーーーーーーー */
.mv{
    width: 100%;
    height: 720px;
    background-image: url(../img/mv.webp);
    background-size: cover;
    background-position: right 20% center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-right: 30%;
    padding-top: 12%;
}

.mv__container{
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--trans1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--trans2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 60px 80px;
    text-align: left;
}

.mv__name{
    display: block;
    font-size: clamp(24px, 4vw, 32px);
    padding-bottom: 10px;
}

.mv__job{
    display: block;
    font-size: clamp(14px, 2vw, 20px);
    line-height: 1.4;
}

.pc-only-bar{
    display: inline;
}

@media (width <= 930px){
    .mv{
        justify-content: center;
        align-items: flex-start;
        padding-top: 20%;
        padding-right: 0;
    }
    .mv__container{
        width: 90%;
        line-height: 1.1;
    }
    .mv__title{
        text-align: center;
    }

}

@media (width <= 580px){
    .mv{
        padding-top: 30%;
        padding-right: 0;
    }
    .mv__container{
        width: 95%;
        padding: 80px 20px;
    }
    .pc-only-bar{
        display: none;
    }
}

/* ーーーーーーーーーーーーーーーー */
/* aboutセクション*/
/* ーーーーーーーーーーーーーーーー */
.about{
    position: relative;
}

.about__container{
    display: flex;
    flex-direction: row;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
    margin-bottom: 80px;
}

.about__container span{
    font-size: 20px;
}

.about__container p{
    border: 1px solid var(--trans1);
    box-shadow: 2px 2px 3px rgba(190, 190, 190, 0.3);
    background: var(--trans2);
    backdrop-filter: blur(3px);
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    margin: 0 auto;
    line-height: 1.8;
}

.about__profile{
    max-width: 500px;
    object-fit: contain;
    align-self: flex-start;
    filter: drop-shadow(5px 5px 4px #ccc);
}

@media (width <= 768px){
    .about__container{
        flex-direction: column;
        gap: 20px;
    }
    .about__container p{
        width: 100%;
    }
    .about__profile{
       order: -1;
    }
}

/* ーーーーーーーーーーーーーーーー */
/* worksセクション */
/* ーーーーーーーーーーーーーーーー */
.works__list img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0.85;
    transition: transform 0.3s;
}

.works__list a:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.top-page .works__list a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--trans1);
    box-shadow: 2px 2px 3px rgba(190, 190, 190, 0.3);
    background: var(--trans2);
    backdrop-filter: blur(3px);
    border-radius: 10px;
}


.top-page .works__list{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 80px;

    .works__list-item-large{
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (width <= 768px){
    .top-page .works__list{
        grid-template-columns: repeat(3, 1fr);
    }
    .works__list-item:nth-of-type(10),
    .works__list-item:nth-of-type(14),
    .works__list-item:nth-of-type(15),
    .works__list-item:nth-of-type(16){
        order: 1;
    }
}

/* ーーーーーーーーーーーーーーーー */
/* skillsセクション */
/* ーーーーーーーーーーーーーーーー */
.skills__container{
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 10%;
    border: 1px solid var(--trans1);
    box-shadow: 2px 2px 3px rgba(190, 190, 190, 0.5);
    background: var(--trans2);
    backdrop-filter: blur(3px);
    border-radius: 10px;
}

.skills__list{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.skills__item{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.skills__icon-box{
    width: 50px;
    flex-shrink: 0;
}

.skills__content{
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 40px;
    margin-bottom: 20px;
}

.skills__title{
    font-size: 16px;
}

.skills__detail-list{
    font-size: 14px;
}


.skills__detail-list li::before {
    content: "・";
    color: var(--gray2);
    margin-right: 0.5em;

}

@media (width <= 580px){
    .skills__container{
        padding: 10px;
    }
    .skills__list{
    gap: 20px;
    }
    .skills__item{
        flex-direction: column;
        align-items: flex-start;
    }
    .skills__icon-box{
        width: 40px;
        margin: 0 auto;
    }
    .skills__content{
    padding: 0;
    width: 100%;
    }
    .skills__title{
        text-align: center;
        padding: 2px 0 4px;
    }
    .skills__detail-list li::before {
        display: none;
    }
    .skills__detail-list{
        font-size: 12px;
        text-align: center;
    }
}


/* ーーーーーーーーーーーーーーーー */
/* Educationセクション　*/
/* ーーーーーーーーーーーーーーーー */
.education{
    max-width: 800px;
    margin: 0 auto 160px;
}
.education__content{
    background: var(--trans2);
    border: 1px solid var(--trans1);
    box-shadow: 2px 2px 3px rgba(190, 190, 190, 0.5);
    backdrop-filter: blur(3px);
    padding: 50px;
    border-radius: 10px;
}

.education__summary ul {
    margin-bottom: 40px;
}

.education__summary li {
    display: flex;
    gap: 50px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #ccc;
}

.education__detail p {
    margin-bottom: 15px;
}

.education__detail ul li {
    font-size: 14px;
    margin-bottom: 10px;
}

.education__detail ul li::before {
    content: "・";
    color: var(--gray2);
}

@media (width <= 930px){
    .education__content{
        padding: 20px;
    }
    .education__summary ul {
    margin-bottom: 20px;
    }
    .education__summary li{
        flex-direction: column;
        padding-bottom: 10px;
        margin-bottom: 10px;
        gap: 0;
    }
    .education__summary .date{
        font-size: 14px;
        padding-top: 10px;
    }
    .education__summary .school{
        font-size: 16px;
        line-height: 1.2;
    }
}

@media (width <= 768px){
    .education__content{
        padding: 10px;
    }
    .education__detail p{
        text-align: center;
        font-size: 14px;
        margin-bottom: 5px;
        padding: 10px;
    }
    .education__detail ul li{
        font-size: 12px;
    } 
}

/* 下部装飾画像 */
.end-img{
    background-image: url(../img/footer.webp);
    height: 570px;
    background-size: cover;
    background-position: right bottom;
    background-repeat: no-repeat;
    position: relative;
}
@media (width <= 768px){
    .end-img{
        margin-top: -200px;
        z-index: -1;
    }  
}

/* ーーーーーーーーーーーーーーーー */
/* Footer　*/
/* ーーーーーーーーーーーーーーーー */
footer{
    width: 100%;
    background-color: var(--gray1);
    color: white;
    text-align: center;
}

footer small{
    font-size: 14px;
}

@media (width <= 768px){
    footer small{
        font-size: 12px;
    }
}

/* ーーーーーーーーーーーーーーーー */
/* pagetop-btn　*/
/* ーーーーーーーーーーーーーーーー */
.pagetop{
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 10%;
  right: 4%;
  opacity: 0;
  scale: 1.5;
  visibility: hidden;
}

.pagetop.appear {
    opacity: 1;
    scale: 1;
    visibility: visible;
}

.pagetop a img{
  transition: all 0.3s ease; 
}

.pagetop a:hover img{
transform: translateY(-20px); 
filter: 
    brightness(1.2) 
    drop-shadow(0 0 8px #fff)
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.8)); 
}
@media (width <= 768px){
    .pagetop{
        width: 20px;
    }
}


/* ーーーーーーーーーーーーーーーー */
/* TOP　＞　Worksページ、Aboutページ　*/
/* ーーーーーーーーーーーーーーーー */
.works-page__mv,
.about-page__mv{
    background-image: url(../img/mv_sub.webp);
    height: 570px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.works-page__mv h2,
.about-page__mv h2{
    padding-top: 200px;
    font-size: 68px;
}

.works-page .works__list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 20px;
    margin-bottom: 80px;
}

.works-page .works__img-glass{
    display: block;
    overflow: hidden;
    border: 1px solid var(--trans1);
    box-shadow: 2px 2px 3px rgba(190, 190, 190, 0.3);
    background: var(--trans2);
    backdrop-filter: blur(3px);
    border-radius: 10px;
    line-height: 0;
}

.works__list-title{
    font-size: 14px;
    text-align: center;
    padding-top: 5px;
}

@media (width <= 768px){
    .works-page .works__list{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
    }
}
@media (width <= 580px){
    .works-page{
        margin-top: -100px;
    }
    .works-page .works__list{
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    }
}

.back-to-top-btn{
    text-align: center;
    margin: 40px 0;
    z-index: 100;
}

.back-to-top-btn a{
    display: inline-block;
    padding: 8px 20px;
    border: 1.5px solid #333; /* 枠線 */
    border-radius: 20px;
    text-decoration: none;
    color: var(--gray1);
    backdrop-filter: blur(3px);
    font-size: 16px;
    transition: all 0.3s ease;
}
.back-to-top-btn a:hover {
    background-color: var(--gray1);
    color: #fff;
}


/* Worksのフィルター機能 */
.works-filter {
    margin: 60px 0 40px; /* MVとリストの間の余白 */
    text-align: center;
}

.works-filter__list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
}

.works-filter__list li a {
    display: inline-block;
    padding: 8px 20px;
    border: 1.5px solid #333; /* 枠線 */
    border-radius: 10px;
    text-decoration: none;
    color: var(--gray1);
    backdrop-filter: blur(3px);
    font-size: 16px;
    transition: all 0.3s ease;
}
.works-filter__list li a:hover,
.works-filter__list li a.is-active {
    background-color: var(--gray1);
    color: #fff;
}

/* ーーーーーーーーーーーーーーーー */
/* TOP　＞　WORK　＞　About ページ　*/
/* ーーーーーーーーーーーーーーーー */
.artworks{
    margin-bottom: 40px;
}

.artworks__slider img{
    filter: drop-shadow(3px 3px 5px #ccc);
}

.artworks .common-title-sub{
    font-size: 20px;
}

.artworks__slider .slick-track {
    display: flex;
    align-items: center;
}

/* スライド1枚ずつの設定 */
.artworks__slider .slick-slide {
    height: 400px;
    width: auto;
    margin: 0 10px;
}

/* 中の画像が枠いっぱいに広がるようにする */
.artworks__slider .slick-slide img {
    height: 400px;
    width: auto;
    object-fit: contain;
    vertical-align: bottom;
}

/* スマホ版（768px以下）の高さ */
@media (width <= 768px){
    .artworks__slider .slick-slide img {
        height: 200px;
        margin: 0 2px;
    }
    .slick-list{
        height: 200px;
    }
    .artworks .common-title-sub{
        font-size: 12px;
    }
}

/* ーーーーーーーーーーーーーーーー */
/* TOP　＞　WORK　＞　Work個別 ページ 共通　*/
/* ーーーーーーーーーーーーーーーー */
.work-detail img{
    filter: drop-shadow(3px 3px 5px #ccc);
}

.work__mv-img img {
    width: 100%;
    height: auto;
    filter: drop-shadow(3px 3px 5px #ccc); 
}

.work__title{
    padding-top: 140px;
    font-size: clamp(16px, 5vw, 48px);
    text-align: center;
    line-height: 1;
    margin-bottom: 40px;
}

.work__mv-img{
    margin-bottom: 60px;
}

.work__detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.work__detail-img {
    /* 親要素の50%から、gapの半分(10px)を引いた幅にする */
    width: calc(50% - 10px);
}

.work__detail-img img {
    width: 100%;
    height: auto;
}

.work__detail-text{
    /* テキスト側も同じ計算にする */
    width: calc(50% - 10px);
    border: 1px solid var(--trans1);
    box-shadow: 2px 2px 3px rgba(190, 190, 190, 0.3);
    background: var(--trans2);
    backdrop-filter: blur(3px);
    border-radius: 10px;
    padding: 20px;
}

.work__detail-text ul {
    list-style: circle;
    padding-left: 1.5em; /*「・」が出るための隙間を作る */
}

.work__title-link{
    color: blue;
    text-decoration: underline;
    font-size: clamp(14px, 5vw, 24px);

}

.work__detail-url a{
    color: blue;
    text-decoration: underline;
}

/* 追加画像グリッド（work_img3〜10用：2列並び） */
.work__subimg-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
}

.work__subimg-item {
    width: calc(50% - 10px);
}

.work__subimg-item img {
    width: 100%;
    height: auto;
}

@media (width <= 930px){
    .work__mv{
    margin-bottom: 40px;
    }
    .work__title{
        font-size: 36px;
    }
    .work__detail{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    }
    .work__detail-text{
        padding: 10px;
        margin: 0 auto;
        width: 100%;
    }
    .work__detail-img{
        width: 100%;
        margin-bottom: 20px;
    }
    
    .work__detail-text,
    .work__detail-link{
        font-size: 14px;
    }
    .work__subimg-grid{
        justify-content: center;
        align-items: flex-start;
    }
    .nav-prev,
    .nav-next{
        font-size: 16px;
    }

}

/* ーーーーーーーーーーーーーーーー */
/* TOP　＞　WORK　＞　Work1 ページ　*/
/* ーーーーーーーーーーーーーーーー */

@media (width <= 580px){
    .work1  .work__detail-text{
        order: -1;
    }
    
}

/* ーーーーーーーーーーーーーーーー */
/* TOP　＞　WORK　＞　Work2 ページ　*/
/* ーーーーーーーーーーーーーーーー */

/* ーーーーーーーーーーーーーーーー */
/* TOP　＞　WORK　＞　Work個別 ページナビゲーション　*/
/* ーーーーーーーーーーーーーーーー */
.work-navigation{
    display: flex;
    flex-direction: raw;
    align-items: center;
    max-width: 600px;
    margin: 160px auto;
}
.work-navigation a{
    color: var(--gray2);
    text-decoration: underline;
    font-size: 24px;
}

@media (width <= 768px){
    .work__back-btn{
        width: 60%;
    }
    .work-navigation a{
    font-size: 14px;
    }
}

/* JS：フェイドインアニメーション */
.mv, .about-page__mv, .works-page__mv, .work__mv-img{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease; /* 1.2秒かけてじわっと */
}

.mv.is-slidein, 
.about-page__mv.is-slidein, 
.works-page__mv.is-slidein,
.work__mv-img.is-slidein{
    opacity: 1;
    transform: translateY(0);
}
