@charset "utf-8";

* {
    box-sizing: border-box;
}

/* 基本サイズになってるので、変更するときはレイアウト崩れる→検討必要 */
html  {
    font-feature-settings: "palt";
    height: 100%;
    width: 100%;
    font-size: 62.5%;
    color: #666666;
}

body {
    font-family: 'NotoSansJP',sans-serif;
    font-weight: 400;
    font-style: normal;
    min-height: 100%;
    font-size: clamp(1.2rem,1.25vw,2rem);
    line-height:1.5;
}
  

img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.wrapper {
    position: relative;
    height: auto !important;
    height: 100%;
    min-height: 100vh;
    padding: 0 1rem 0 1rem;
    padding-bottom: 50px;
}


/* ヘッダー下の線 */
hr {
    display: none;
    text-align: center;
    margin: auto;
    max-width: 1200px;
}





ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/*----------------------------------------ここから上部タグデザイン*/
input[type="radio"] {/*ラジオボタン非表示*/
    position: absolute;
    left: -9999px;
}
 
[value="All"]:checked ~ .filters [for="All"],
[value="tag-a"]:checked ~ .filters [for="tag-a"],
[value="tag-b"]:checked ~ .filters [for="tag-b"], 
[value="tag-c"]:checked ~ .filters [for="tag-c"], 
[value="tag-d"]:checked ~ .filters [for="tag-d"], 
[value="tag-e"]:checked ~ .filters [for="tag-e"], 
[value="tag-f"]:checked ~ .filters [for="tag-f"], 
[value="tag-g"]:checked ~ .filters [for="tag-g"], 
[value="tag-h"]:checked ~ .filters [for="tag-h"], 
[value="tag-i"]:checked ~ .filters [for="tag-i"], 
[value="tag-j"]:checked ~ .filters [for="tag-j"] {
  background: #666666;
  color: #fff;
  border-radius: 20px;
}




.filters {/* ラベル位置 */
    text-align: center;
    margin:2rem 0;
    padding: 0 3rem;
}

.filters * {
    display: inline-block;
    font-size: clamp(1.2rem,1.25vw,1.4rem);
}
.filters label {/*ラベル設定*/
    text-align: center;
    vertical-align: middle;
    padding: 0.1rem 0.5rem;
    margin: 0 0.1rem 0.5rem ;
    max-width: 100px;
    transition: all 0.1s;
    cursor: pointer;
    border: #666666 1px solid;
    background: #fff;
    border-radius: 20px;
}
.filters label:hover {/*ラベルホバー*/
    background: #666666;
    color: #fff;
    border-radius: 20px;
}

/*---------------------------------------ここからプロジェクトカードの設定*/


.pj {/*プロジェクト１記事*/
    padding: 12px;
    border-radius: 5px;
    box-sizing: border-box;
}
.pjs .pj {/*カードの背景色と縁取り*/
    background: #fafafa;
    border: 0.5px solid #999;
}
.pjs .pj-title {/*プロジェクトタイトル*/
    position: relative;
    font-weight: 500;
    font-size: clamp(1.4rem,1.25vw,1.6rem);
    text-align: justify;
    padding: 0.5rem;
} 

figure {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /*比率*/
}

figure img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

figure none-object-fit img {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.pjs .cap {/*---------キャプション*/
    overflow: hidden;
    display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
    cursor: pointer;
    text-align: justify;
    padding: 1% 1% 0;
    font-size: clamp(1.2rem,1.25vw,1.4rem);
    margin-bottom: 1rem;
    vertical-align: middle;
}






[value="All"]:checked ~ .pjs[data-category] { 
    display: block;
  }

  [value="tag-a"]:checked ~ .pjs .pj:not([data-category~="tag-a"]), 
  [value="tag-b"]:checked ~ .pjs .pj:not([data-category~="tag-b"]), 
  [value="tag-c"]:checked ~ .pjs .pj:not([data-category~="tab-c"]), 
  [value="tag-d"]:checked ~ .pjs .pj:not([data-category~="tag-d"]), 
  [value="tag-e"]:checked ~ .pjs .pj:not([data-category~="tag-e"]), 
  [value="tag-f"]:checked ~ .pjs .pj:not([data-category~="tag-f"]),
  [value="tag-g"]:checked ~ .pjs .pj:not([data-category~="tag-g"]),
  [value="tag-h"]:checked ~ .pjs .pj:not([data-category~="tag-h"]),
  [value="tag-i"]:checked ~ .pjs .pj:not([data-category~="tag-i"]),
  [value="tag-j"]:checked ~ .pjs .pj:not([data-category~="tag-j"]){
    display: none;
  }


/*新しくプロジェクトカードを追加ごとにidの番号＋1にして追加してください。
これはキャプションをクリックすると表示される動作cssです*/

#showcap{
    display: none;
}
#showcap:checked ~ .cap {
    display: block;
}


#showcap2{
    display: none;
}
#showcap2:checked ~ .cap {
    display: block;
}



#showcap3{
    display: none;
}
#showcap3:checked ~ .cap {
    display: block;
}


#showcap4{
    display: none;
}
#showcap4:checked ~ .cap {
    display: block;
}


#showcap5{
    display: none;
}
#showcap5:checked ~ .cap {
    display: block;
}


#showcap6{
    display: none;
}
#showcap6:checked ~ .cap {
    display: block;
}



#showcap7{
    display: none;
}
#showcap7:checked ~ .cap {
    display: block;
}


#showcap8{
    display: none;
}
#showcap8:checked ~ .cap {
    display: block;
}




.pjs .pj-categories {/*--------タグの文字と位置*/
    font-size: clamp(1rem,1.25vw,1.2rem);
    text-align: right;
}


.pjs .pj-categories * {
    display: inline-block;
}

.pjs .pj-categories a {/*タグ*/
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    min-width: 50px;
    text-align: center;
    border-radius: 10px;
    background: #666666;
    color: #fff;
    cursor: default;
}


   
  /* pjカードアニメーション */
  .checked_animation {
    animation: checked_animation 0.7s ease-in-out both;
  }
   
  @keyframes checked_animation {
    0% {
    transform: translate(0, 0);
    opacity: 0;
    }
    100% {
    transform: translate(0, 0);
    opacity: 1;
    }
  }






/* ==============
.....汎用クラス
=============== */

.inner {
    max-width: 940px;
    width: 96%;
    margin-right: auto;
    margin-left: auto;
}

.flex {
    display: flex;
}

.is-align-flexend {
    align-items: flex-end;
}



.grid {
    max-width: 1200px;
    width: 94%;
    margin-left: auto;
    margin-right: auto;
    padding-top: auto;
    padding-bottom: 50px; /*フッターと重ならないように下に余白をとっています*/
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
}

.flex-container {
    flex-direction: column-reverse;
}

/* ---bodyはこのフォントで　headerはヒラギノ角ゴ */
.notosans {
    font-family: 'Noto Sans JP', sans-serif;
}



/* ==============
.....ヘッダー 
================*/
.header {
    top: 0;
    height: 80px;
    display: flex;
    padding: 1.5rem 1.5rem;
    width: 100%;
    align-items: center;
    background-color: #ffffff;
    position: fixed;
    z-index: 9999;
}

#logo {
    align-items: flex-start;
    margin-right: auto;
    cursor: pointer;
}

#logo img {
    max-width:250px;
    width: 100%; 
    height: auto;
}

#logo span {
    display: none;
}

.jwu_logo {
    list-style: none;
}

.jwu_logo img{
    text-align: center;
    max-width: 20px;
    width: auto;
    height: auto;
}

.jwu_logo2 {
    list-style: none;
}

.jwu_logo2 img{
    text-align: center;
    max-width: 20px;
    width: auto;
    height: auto;
}


.gnav ul {
    display: flex;
}


.gnav-flex li {
    font-size: clamp(1.4rem,1.5vw,2rem); 
    font-weight: bold;
    margin-left: clamp(1.4rem,1.5vw,2rem);
}


/* ==============
.....フッター 
================*/

footer{
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 0 1rem 0 1rem;
    margin-top: auto;
    font-size: clamp(1rem,1.25vw,1.2rem);
    text-align: center;
    line-height:30px;
    width: 100%;
    height: 30px;
    background-color: #ffffff;
    z-index: 1;
}


/* ======================
スクロールボタン（↑）
========================= */
.back-to-top {
    display: none;
    position: fixed;
    right: 5%;
    bottom: 3%;
    color: #fff;
    padding: 2rem;
    border-radius: 50%;
    display: inline-block;
    text-decoration: none;
    opacity: 0.8;
    z-index: 3;
  }
  
  .back-to-top::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    text-align: end;
    background-color: #cccccc;
    border-radius: 50%;
    z-index: -1;
  }
    



/* ======================
ナビのホバーアニメーション（にゅっと線）
========================= */


.gnav li a {
    position: relative;
    display: inline-block;
}

.gnav li a::after {/* 下線 */
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    background-color: #cccccc;
    width: 0;
    height: 1px;
    transition: .4s;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

/* ホバー */
.gnav li a:hover::after {
    width: 100%;
}

.gnav li a:hover {
    color: #cccccc;
}



/* =============
スマホ・タブレット記述01
===============*/
/*スクロールするページには必ずつける！*/
@media screen and (max-width: 428px){ /*428px以下*/
    #logo img {
        max-width:180px;
        width: 100%; 
        height: auto;
    }
}
@media screen and (max-width: 366px){ /*366px以下*/
    footer {
        height: 30px;
        line-height:15px;
    }
}

@media screen and (min-width: 601px){ /*601px以上*/
    .filters br {
        display: none;
    }
}

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

/* =============
スマホ・タブレット記述02
===============*/
@media screen and (max-width:767px) {/*767px以下*/
    .gnav-flex {
        display: none;
    }

    .jwu_logo {
        display: none;
    }



/* ==============
>>スマホナビ
================ */

/* >>ハンバーガーメニュー*/
/* 背景ボックス */
.gnavbtn {
    position: fixed;
    z-index: 1;
    top: 20.5px;
    right: 26px;
    width: 40px;
    height: 40px;
    padding-top: 7px;
    border-radius: 7px;
    background-color:#cccccc;
    cursor: pointer;
}

/* ハンバーガー（三本線 */
.gnavbtn .sp {
    display: block;
    position: relative;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    margin-top: 5px;
    background: white;  
    transition: 0.6s;  
}

/* >>ハンバーガー（バツ印 */
.close .sp{
    left: 0px;        
}   
.close .sp:nth-of-type(1){
    transform: rotate(45deg);
    width: 60%;
    top: 7px;
    transition: 0.6s;
}
.close .sp:nth-of-type(2){
    opacity: 0;
}
.close .sp:nth-of-type(3){
    transform: rotate(-45deg);
    width: 60%;
    top: -7px;
    transition: 0.6s;
}


/* >>ドロワーメニュー //ハンバーガーメニューの出てきて止まる位置*/
.gnav ul {
    display: block;
    width: 100%;
    height: 100%;
    padding-top: 80px;
    position: fixed;
    top: 0;
    right: 0;
    background:rgba(255,255,255,0.9);
    right: -767px;
    transition: 0.7s;
    overflow:hidden;
    
}

/* ハンバーがメニューを閉じる際の動きに必要クラス */
.show .gnav ul {
    right: 0;
    transition: 0.7s;
}

.gnav li {
    width: 100%;
    margin-bottom: 30px;
    margin-left: 0;
    text-align: center;
}



}