@charset "utf-8";

/* 基本レイアウト */
* {
    list-style: none;
    text-decoration: none;
    font-family: "Barlow", "Noto Sans JP", sans-serif;
    font-weight: 300;
    font-style: normal;
    color: #808080;
    margin: 0;
    padding: 0;
}

img {
    position: relative;
    z-index: 20;
    /* ← 画像は前に出る */
}

/* snowの設定 */
.background_01 {
    position: relative;
    height: 100%;
    width: 100%;
    display: block;
    background: #000;
    pointer-events: none;
    /* クリックを邪魔しない */
    /* line-height: 0; */
    z-index: -1;
}

/* 雪用 canvas */
#snow-canvas {
    position: fixed;
    /* 常に最前面に固定 */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* クリックを透過 */
    z-index: 0 !important;
    /* txt_cont（20）より下にする */

}

body {
    background-color: black;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 0;
    /* viewport height = 画面の高さ100% */
    /* overflow: hidden; */
    /* スクロールバーを非表示にする（任意） */
}

/* header================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 900;
    padding-top: 15px;
    padding-bottom: 5px;
    position: relative;
}

/* ← これだけ追加すると完璧 */
.navi ul {
    display: flex;
    /* gap: 1px; */
}

.navi a {
    text-decoration: none;
    color: #808080;
    /* 適宜変更 */
    font-size: 16px;
}

/* =========================
   ハンバーガー初期設定
========================= */
.menu-btn {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 32px;
    height: 25px;
    position: relative;
}

.menu-icon .navicon {
    background: #808080;
    /* 線の色はここで変える */
    width: 100%;
    height: 1px;
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: .3s;
}

.menu-icon .navicon::before,
.menu-icon .navicon::after {
    content: "";
    background: #808080;
    width: 100%;
    height: 1px;
    position: absolute;
    transition: .3s;
}

.menu-icon .navicon::before {
    top: -10px;
}

.menu-icon .navicon::after {
    top: 10px;
}

/* =========================
   sp
========================= */
@media (max-width: 768px) {

    /* ハンバーガー表示 */
    .menu-icon {
        display: block;
        position: absolute;
        right: 20px;
        /* ← 右端からの距離 */
        top: 11px;
        /* ← 上からの距離（ロゴとのバランス調整） */
        cursor: pointer;
        z-index: 1000;

    }

    /* PCメニューを非表示 */
    .navi ul {
        display: none;
        position: absolute;
        right: 20px;
        top: 70px;
        background: rgba(0, 0, 0, 0.8);
        padding: 20px;
        width: 180px;
        /* border-radius: 10px; */
        text-align: right;
        right: 100px;
        top: 60px;
    }

    /* PC の flex を解除 */
    nav.navi ul {
        display: none;
        flex-direction: column;
        background: rgba(14, 14, 14, 0.8);
        position: absolute;
        right: 0;
        top: 60px;
        width: 120px;
        padding: 10px 0;
        z-index: 9999 !important;
    }

    .navi ul li {
        margin-bottom: 15px;
        padding-right: 10px;
    }

    /* チェック入ると表示 */
    .menu-btn:checked~.navi ul {
        display: block !important;
        right: 10px;
        z-index: 1000;
    }

    /* 開くと×に変化 */
    .menu-btn:checked+.menu-icon .navicon {
        background: transparent;
    }

    .menu-btn:checked+.menu-icon .navicon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-btn:checked+.menu-icon .navicon::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

/* spここまで＝＝＝＝＝＝＝＝＝＝＝＝ */

#header a {
    transition: text-shadow 0.5s ease, color 0.5s ease;
}

#header a:hover {
    text-shadow:
        0 0 10px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 80px rgba(255, 255, 255, 0.8);

}

#logo {
    margin: 0 0 0 30px;
    z-index: 10;
}

#logo img {
    height: 30px;
    display: block;
}

.navi {
    margin-right: 30px;
    margin-bottom: 3px;
}

ul {
    display: flex;
    justify-content: flex-end;
}

li {
    display: block;
    font-size: 16px;
    margin-left: 22px;
}

small {
    font-size: 10px;
}

#footer {
    text-align: right;
    padding: 30px;
}


#wrapper {
    max-width: 1400px;
    /* ウィンドウ幅が1400pxより狭くなると縮むようになります */
    width: 100%;
    /* または 100%からpadding分を引いた値など、適当な割合に */
    margin: 0 auto;
    padding: 30px;
    position: relative;
    /* z-indexを効かせるために必須 */
}


h1 {
    font-size: 40px;
    font-weight: 600;
    margin: 10px 0 30px 0;
    z-index: 30;
}

h2 {
    font-weight: 600;
    text-align: left;
    margin: 20px 0 20px 0;
}

p {
    display: block;
    font-size: 14px;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

#page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#page-top a:hover {
    opacity: 0.8;
}

/*リンクを右下に固定*/
#page-top {
    position: fixed;
    right: 30px;
    /* bottom: 160px; */
    z-index: 50;
    /*はじめは非表示*/
    opacity: 0;
    transform: translateY(20px);
    /* ← 少しだけ隠す位置（重要） */
    transition: opacity .3s, transform .3s;
    /* ← なめらかに変化 */
}

/*　上に上がる動き　*/

#page-top.UpMove {
    opacity: 0.35;
    transform: translateY(0);
    /* ← 上に出る */
}

/*　下に下がる動き　*/

#page-top.DownMove {
    opacity: 0;
    transform: translateY(20px);
    /* ← 下に隠れる */
}

/* 基本レイアウトここまで */

/* sp====================== */
@media (max-width: 768px) {
    #page-top {
        right: 10px;
        /* bottom: 160px; */
    }

    small {
        font-size: 7px;
    }
}

/* spここまで＝＝＝＝＝＝＝＝＝＝＝＝ */


/* トップページ */

/* lineが広がるアニメーション */
.line {
    height: 2px;
    position: relative;
}

.line::after {
    background: linear-gradient(to right, #9fa4cf 0%, #848CC8 50%, #9fa4cf 100%);
    content: '';
    display: block;
    height: 2px;
    width: 0;
    transform: translateX(-50%);
    transition: 10s cubic-bezier(0.22, 1, 0.36, 1);
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 99;
}

.line.is-animated::after {
    width: 100%;
}

#index #header {
    display: flex;
    width: 100%;
    justify-content: space-between;
}



/* svgアニメーション */
line {
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 2000px;
    animation: svg 2s ease-in both;
}

@keyframes svg {
    0% {
        fill: transparent;
        stroke-dashoffset: 2000px;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.p {
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 2000px;
    animation: svg 2s ease-in both, svg-color 5s ease-in both;
    animation-delay: 0s, 2.5s;
}

.o {
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 2000px;
    animation: svg 2s ease-in both, svg-color 5s ease-in both;
    animation-delay: 0.3s, 2.5s;
}

.r {
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 2000px;
    animation: svg 2s ease-in both, svg-color 5s ease-in both;
    animation-delay: 0.6s, 2.5s;
}

.t {
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 2000px;
    animation: svg 2s ease-in both, svg-color 5s ease-in both;
    animation-delay: 0.9s, 2.5s;
}

.f {
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 2000px;
    animation: svg 2s ease-in both, svg-color 5s ease-in both;
    animation-delay: 0.9s, 2.5s;
}

.o-1 {
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 2000px;
    animation: svg 2s ease-in both, svg-color 5s ease-in both;
    animation-delay: 0.9s, 2.5s;
}

.l {
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 2000px;
    animation: svg 2s ease-in both, svg-color 5s ease-in both;
    animation-delay: 1.2s, 2.5s;
}

.i {
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 2000px;
    animation: svg 2s ease-in both, svg-color 5s ease-in both;
    animation-delay: 1.5s, 2.5s;
}

.o-2 {
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 2000px;
    animation: svg 2s ease-in both, svg-color 5s ease-in both;
    animation-delay: 1.8s, 2.5s;
}

/* 修正後の@keyframes svg-color */
@keyframes svg-color {
    0% {
        fill: transparent;
        /* ここに追記 */
        stroke: #fff;
    }

    70% {
        fill: #fff;
        /* ここに追記 */
        stroke: #fff;
    }

    100% {
        fill: transparent;
        /* 【重要】100%の時点でstrokeを透明（または背景色と同じ）にする */
        stroke: transparent;
        /* or stroke: rgba(255, 255, 255, 0); */
    }
}

#mainview {
    line-height: 0;
}

#mainview video {
    width: 100%;
    height: 900px;
    object-fit: cover;
    line-height: 0;
    z-index: 1;
}

#mainview .svg_logo {
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    pointer-events: none;
    z-index: 1;
}

#header,
#mainview,
#link,
#wrapper {
    position: relative;
    z-index: 10;
}

#link ul {
    display: flex;
    margin: 0;
}

#link li {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.1 / 1;
    margin: 0;

}

#link p {
    position: absolute;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 500;
    color: #202020;
    background: none;
    z-index: 20;
}

#link img {
    width: 100%;
    transition: transform .6s ease;
    z-index: 1;
}

#link img:hover {
    transform: scale(1.1, 1.1);
}

/* トップページここまで */

/* sp======================= */
@media screen and (max-width: 767px) {
    body {
        min-width: 390px;
    }

    h1 {
        font-size: 25px;
        margin: 10px 0 0 0;
        line-height: 1;
    }

    h2 {
        font-size: 15px;
    }

    #wrapper {
        padding: 20px 10px 0 10px;
        z-index: -1;
    }

    #header {
        margin-bottom: 5px;
    }

    #logo {
        margin-left: 12px;
    }

    p {
        font-size: 10px;
    }

    #logo img {
        height: 25px;
    }

    #wrapper {
        min-width: 390px;
    }

    #footer {
        padding: 10px;
    }

    #mainview video {
        width: 100%;
        max-height: 450px;
        object-fit: cover;
    }

    #mainview .svg_logo {
        width: 100%;
    }

    #link p {
        font-size: 15px;
    }

    #link img {
        transition: transform .6s ease;
    }

    #link img:active {
        transform: scale(1.1, 1.1);
    }
}

/* sp */

/* works */
#works {
    padding-top: 0;
    z-index: 10;
}

#works .web_design {
    padding-top: 40px;
}

#works .web_design p,
#works .industrial_design p {
    text-align: right;
    margin: 10px 0 50px 0;
}

#works .concept_cont .p2 {
    margin: 0 30px 30px 0;
}

#works .proposal {
    flex-wrap: wrap;
    display: flex;
    gap: 5px;
    margin-top: 100px;
}

#works .proposal img {
    width: 33%;

}

#works .concept_sheet {
    width: 700px;
    margin: 0 auto;
}

#works .concept_sheet img {
    width: 700px;

}

#works .design_comp {
    /* margin: 0 30px; */
    display: flex;
}

#works .design_comp .img1 {
    margin-right: 20px;
}

#works .design_comp img {
    width: 100%;
    margin: 0 auto;
}

#works .flier01 {
    display: flex;
    width: 100%;
}

#works .flier01 .front {
    margin-right: 20px;
}

#works .flier img {
    width: 100%;
}

#works .shop img {
    width: 100%;
}

#works .banner {
    display: flex;
    justify-content: center;
    width: 1000px;
    margin: 0 auto;
}

#works .banner1 {
    margin-right: 100px;
}

#works .banner img {
    width: 100%;
}

#works .banner .front {
    margin-right: 10px;
}

#works .concept_cont {
    margin-top: 60px;
}

#works .id_works h2 {
    text-align: left;
}

#works .industrial_design {
    margin: 0;
}

#works .industrial_design img {
    width: 100%;
    height: auto;
}

#works p {
    line-height: 1.2;
}

/* worksここまで */

/* sp============================ */
#works .web_design {
    padding-top: 20px;
}

#works .concept_cont {
    margin-top: 30px;
}

#works .banner {
    width: 100%;
}

#works .banner1 {
    margin-right: 10px;
}

#works .concept_sheet {
    width: 100%;
}

#works .concept_sheet img {
    width: 100%;
}

#works .proposal {
    margin-top: 30px;
}

#works .proposal img {
    width: 49.2%;
}

#works .design_comp .img1 {
    margin-right: 10px;
}

/* spここまで＝＝＝＝＝＝＝＝＝＝＝＝ */


/* skill */
#skill li {
    margin: 0;
}

#skill .group {
    margin-top: 50px;
}

#skill .group img {
    width: 200px;
    border-radius: 25%;
    margin: 20px;

}

#skill .group .solidworks {
    width: 500px;
    border-radius: 30px;

}

#skill .group ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    /* ←折り返し */
    gap: 20px;
    /* 間隔 */
    padding: 0;
}

/* skillここまで */

/* sp====================== */
@media (max-width: 768px) {
    #skill .group img {
        width: 100px;
        margin: 10px;

    }

    #skill li {
        margin: 0;
    }

    #skill .group .solidworks {
        width: 250px;
        border-radius: 15px;
    }
}

/* resume */
#resume {
    position: relative;
    z-index: 100;
}

#resume li {
    margin: 20px;
    line-height: 1.5;
}

/* #resume ul { display: block; } はそのまま */
#resume ul {
    display: block;
    /* Awardリストの左側パディングをリセット (リストが左に寄りすぎる場合は削除してください) */
    padding-left: 0;
}


#resume .company_item {
    margin: 20px;
    display: flex;
}

#resume .year {
    /* 日付の幅を固定または指定 */
    width: 80px;
    /* または flex-basis: 100px; */
    margin-right: 10px;
    /* 日付と内容の間の余白 */
    /* flex-shrink: 0; を追加すると、画面幅が狭まっても日付の幅が縮まらない */
}

#resume .company {
    padding: 30px 0 30px 0;
    display: block;
}

#resume img {
    width: 150px;
}

#resume .company .img_txt {
    position: relative;
    /* または absolute */
    width: 100%;
    /* 左側の余白をなくして中央に配置したい場合は left: 0; auto に調整 */
    left: 0;
    /* 15% の余白を削除 */
    max-width: fit-content;
    /* コンテンツに合わせて幅を調整 */
    margin: 0 10% 0 20%;
    /* 中央寄せ */
}

/* 右側に空間ができる原因となっていたマージンを修正 */
#resume .award .img_txt {
    display: flex;
    align-items: center;
    /* 左15%マージンを削除し、左右中央寄せにする (または均等なマージンを設定) */
    margin: 50px auto;
    /* 上下50px、左右autoで中央寄せ */
    max-width: 1000px;
    /* 必要であれば最大幅を設定 */
}

#resume .txt_cont {
    position: relative;
    /* ← これを必ず追加してください！ */
    margin-left: 50px;
    z-index: 30;
    pointer-events: auto;
}

#resume a {
    position: relative;
    z-index: 50;
    display: inline-block;
    transition: text-shadow 0.5s ease, color 0.5s ease;

    /* 強制的に指マークにする */
}

#resume a:hover {
    text-shadow:
        0 0 20px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 80px rgba(255, 255, 255, 0.8);
}

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

/* resumeここまで */

/* sp====================== */
@media (max-width: 768px) {
    #resume .year {
        width: 100px;
        margin-right: 5px;
    }

    #resume span {
        font-size: 14px;
    }

    #resume .company_item {
        margin: 20px 0 20px 0;
    }

    #resume .company .img_txt {
        margin: 0;
    }


    #resume .award .img_txt {
        display: block;
        text-align: center;
    }

    #resume .txt_cont {
        margin: 0;
    }

    #resume a {
        font-size: 14px;
    }

    #resume ul {
        text-align: left;
    }

    #resume li {
        margin: 20px 0 20px 0;
        display: flex;
    }

    #resume li .year {
        width: 100px;
        margin-right: 5px;
    }
}

/* spここまで=============================== */

/* about */
#about .item {
    display: flex;
    /* 横並びにする */
    justify-content: center;
    /* 子要素（img_contとtxt_cont）を中央に寄せる */
    align-items: stretch;
    /* 垂直方向の配置。高さを揃えたい場合はstretch (デフォルト)、中央寄せならcenterなど */
    margin: 100px 0 100px 0;
    display: flex;
    justify-content: center;
    margin: 20px 0 20px 0;
}

#about img {
    width: 100%;
    height: 100%;
    /* img_contの幅いっぱいにする */
    object-fit: cover;
    display: block;
    /* 余計なマージンを避けるため */
    z-index: 20;
}

#about .img_cont {
    width: 50%;
    flex-shrink: 1;
}

#about .txt_cont {
    width: 50%;
    flex-shrink: 1;
    background-color: #808080;
    text-align: right;
    padding: 50px 80px 50px 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* border: solid 1px red; */
    z-index: 20;
}

/* txt_cont を必ず雪より前面にする（明示） */
#about .txt_cont,
#about .img_cont,
#about img {
    position: relative;
    /* z-index を効かせるため */
    z-index: 20 !important;
    /* 雪より前 */
}


#about p {
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 400;
    color: rgb(223, 223, 223);
    line-height: 1;

}

#about small {
    color: rgb(223, 223, 223);
}

/* aboutここまで */

/* sp=============================== */
@media (max-width: 768px) {

    #about .item {
        display: block;
        /* 縦並びにする */
    }

    #about .img_cont {
        width: 100%;
        flex-shrink: 1;
    }

    #about .txt_cont {
        width: 100%;
        flex-shrink: 1;
        padding: 30px;
    }

    #about p {
        font-size: 12px;
    }
}

/* spここまで=============================== */