@charset "UTF-8";
/* CSS Document */

/* ハンバーガーメニューボタン */
.btn-gnavi {
    display: none;
    position: relative;
    width: 35px; /* 幅を狭く調整 */
    height: 30px; /* 高さを小さく調整 */
    cursor: pointer;
    z-index: 2;
}

.btn-gnavi span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #515151;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}

.btn-gnavi span:nth-child(1) {
    top: 0px;
}

.btn-gnavi span:nth-child(2) {
    top: 13px;
}

.btn-gnavi span:nth-child(3) {
    top: 26px;
}

/* メニューの開閉時のスタイル */
.btn-gnavi.open span:nth-child(1) {
    top: 14px;
    transform: rotate(45deg);
    width: 70%; /* 閉じるマークの線の長さを調整 */
}

.btn-gnavi.open span:nth-child(2) {
    opacity: 0;
}

.btn-gnavi.open span:nth-child(3) {
    top: 14px;
    transform: rotate(-45deg);
    width: 70%; /* 閉じるマークの線の長さを調整 */
}


/* main */
html{
    scroll-behavior: smooth;
}

body {
    font-size: 24px;
    line-height: 2em;
    letter-spacing: 0.13em;
    font-family: 'PT Sans', 'Noto Sans JP', sans-serif;
    color: #444444;
    background-color: #fcfcfc;
    overflow-x: hidden;
    text-align: center;
}

html, body, a, li, button {
    cursor: none;
}

#cursor {
    position: fixed; /* 要素を固定位置に配置 */
    width: 10px; /* カーソルの幅 */
    height: 10px; /* カーソルの高さ */
    background-color: rgb(81, 81, 81); /* カーソルの色 */
    border-radius: 50%; /* カーソルを丸くする */
    pointer-events: none; /* カーソルをマウスイベントの対象外にする */
    cursor: none; /* デフォルトのカーソルを非表示にする */
    z-index: 9999; /* カーソルを最前面に配置 */
    transition: width 0.4s ease, height 0.4s ease; /* トランジションの設定 */
}


h2 {
    font-size: 34px;
    letter-spacing: 0.02em;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
}


/* ヘッダー */
header {
    width: 100%;
    height: 80px;
    position: fixed;
    background-color: #fcfcfc;
    z-index: 1000;
}
div.header {
    display: flex;
    padding: 20px 45px;
    align-items: center;
    justify-content: space-between;
}

header div.logo img {
    width: 10%;
    display: block;
}

header nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 右寄せ */
}

header nav ul li{
    margin-left: 40px;
    font-size: 13px;
}

/* トップページ */
main.top {
    overflow: hidden;
    padding-bottom: 70px;
    width: 95%;
    padding: 0 2.5% 0;
    box-sizing: content-box;
}

section.mv {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    max-width: 1440px;
    margin: 0 auto 120px auto;
}

div.mv_title {
    margin-left: 100px;
    z-index: 10;
}

p.site_title {
    font-weight: bold;
    font-size: 48px;
    letter-spacing: 8px;
    line-height: 1.5em;
    text-align: left;
    width: 680px;
}

p.sub_title {
    text-align: left;
}

.typed_wrap p {
    text-align: left;
    /* width: 680px; */
}

div.mv_img {
    margin-left: -240px;
}

div.mv_img img{
    width: 70%;
    border-radius: 60%/80% 40%;
    box-shadow: 20px 40px 50px rgba(122, 120, 120, 0.5);
}

/* About */
section.about {
    position: relative;
    padding: 50px 50px 50px;
    margin: 0 auto 0 auto;
    height: auto;
    max-width: 100%;
    background: linear-gradient(to bottom, transparent, #eae9e9 60%, #ebebeb 60%, transparent);
}

.about_profile h2 {
    margin-top: 50px; /* <h2>ABOUT</h2>をさらに上に配置 */
}

.about_profile h3 {
    margin-top: 100px;
    margin-bottom: 10px; 
}

.about_profile p {
    word-wrap: break-word; /* 単語の途中で改行を許可 */
}

/* SKILLセクション */
.about_skill {
    text-align: center; /* センター揃え */
    margin: 100px auto;
}

.skill-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    justify-content: center; /* 中央揃え */
    margin: 100px auto;
}

.skill-item {
    display: flex; /* Flexbox を使用 */
    align-items: center; /* 縦方向に中央揃え */
    text-align: left; /* テキストを左揃え */
    border-radius: 8px; /* 角丸 */
    padding: 20px; /* 内部余白 */
}

.skill-img {
    width: 100px; /* ロゴの幅 */
    margin-right: 20px; /* ロゴとテキストの間隔 */
    flex-shrink: 0; /* ロゴが縮まないように設定 */
}

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

.skill-body {
    flex-grow: 1; /* テキスト部分を伸縮 */
}

.skill-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.skill-text {
    font-size: 14px;
}

section#contact {
    padding: 50px;
    margin-top: 140px; /* ヘッダーの高さと同じくらいのマージンを追加 */
}

/* Works */


.works-list {
    display: grid; /* Grid Layout を使用 */
    grid-template-columns: repeat(3, 1fr); /* 最大3列に設定 */
    gap: 20px; /* 要素間の余白を設定 */
    justify-content: center; /* 中央揃え */
    padding: 0 10%; /* 両サイドの余白を追加 (SKILLセクションと合わせる) */
}

.works-item {
    text-align: center; /* テキストを中央揃え */
    border-radius: 8px; /* 角丸 */
    padding: 20px; /* 内部余白 */
}

.works-name {
    font-size: 14px; /* フォントサイズを調整 */
    margin-top: 5px; /* 上側の余白を追加 */
    text-align: left; /* 左揃え */
}

.title{
    margin: 100px;

}
.works-img img {
    max-width: 100%; /* 画像を最大幅まで表示 */
    height: auto; /* 高さを自動調整 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* トランジション効果の設定 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 初期のシャドウ設定 */
    width: 100%; /* 画像の幅を100%に設定 */
    height: auto; /* 高さを自動調整 */
    border-radius: 3px; /* 角丸設定 */
    filter: grayscale(80%); /* モノクロテイストに設定 */
}

.works-img img:hover {
    filter: grayscale(0%); /* カラーを表示する */
    transform: translateY(-1px) scale(1.02); /* 画像を少し上に移動し、少し拡大 */
    box-shadow: 0 1px 10px rgba(173, 173, 173, 0.3); /* シャドウを強調 */
}

/* Modal styles */
.modal {
    display: none; /* Initially hide all modals */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(135, 135, 135, 0.8); /* Semi-transparent black background */
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto; /* Center modal vertically and add margin for breathing space */
    padding: 40px;
    border: 1px solid #888;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    text-align: center; /* Center align h3 */
    margin-top: 20px; /* Add top margin to h3 */
    margin-bottom: 20px; /* Add bottom margin to h3 */
}

.modal-content p {
    font-size: 12px; /* Small font size */
    margin: 10px 0; /* Add vertical margin to p */
    text-align: left;
}

.modal-content .detail-label {
    font-weight: bold;
    margin-left: -20px; /* Adjust for the bar positioning */
    padding-left: 20px; /* Distance from the left edge */
    border-left: 3px solid #333; /* Thick left bar */
    margin-top: 10px; /* Space above the label */
    margin-bottom: 5px; /* Space below the label */
}

.modal-content .detail-info {
    margin-left: 20px; /* Indentation for details */
    padding-left: 3px; /* Offset for the text after the bar */
}
  
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #7e7e7e;
    float: right;
    font-size: 28px;
    font-weight: bold;
    z-index: 10;
}

.modal-close:hover,
.modal-close:focus {
    color: #9b9b9b;
    text-decoration: none;
    cursor: pointer;
}


/* CONTACT */
#contact {
    padding: 50px;
    max-width: 100%;
    margin: 200px auto; /* セクション全体を中央に配置 */
    background: linear-gradient(to bottom, transparent, #eae9e9 60%, #ebebeb 60%, transparent);

  }
  
  #contact h2 {
    margin-bottom: 60px; /* CONTACTとお名前の間に余白を入れる */
    text-align: center; /* 見出しを中央揃え */
  }
  
  form {
    display: flex;
    flex-direction: column;
    align-items: center; /* フォーム要素を中央に配置 */
  }
  
  .form-group {
    margin-bottom: 15px;
    width: 100%;
    max-width: 500px; /* フォームの幅を制限 */
    text-align: left; /* お名前、アドレス、メッセージのラベルを左側に寄せる */
  }
  
  label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px; /* お名前、アドレス、メッセージの文字を数作する */
  }
  
  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%; /* フォーム要素を幅いっぱいにする */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px; /* Slightly rounded corners */
    box-sizing: border-box;
    font-size: 14px; /* お名前、アドレス、メッセージの文字を数作する */
  }
  
  textarea {
    resize: vertical; /* Allows vertical resizing only */
  }
  
  .contact_button {
    background-color: #a1a1a1; /* グレーに設定 */
    color: white;
    padding: 10px 40px; /* 横に広がった長方形にするために変更 */
    border: none;
    border-radius: 30px; /* Slightly rounded corners */
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px; /* ボタンと入力フィールドの間に余白を追加 */
  }
  
  .contact_button:hover {
    background-color: #666; /* ホバー時の色を少し暗くする */
  }
  
  .form-group input,
  .form-group textarea {
    margin-right: 0; /* 各入力フィールドの右側の余白を削除 */
  }

  /* Footerセクションのスタイル */
#footer {
    padding: 20px 0; /* 上下の余白を追加 */
    background-color: #f1f1f1; /* フッターの背景色 */
    text-align: center; /* テキストを中央揃え */
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 50px; /* 上部に余白を追加 */
  }
  
  #footer p {
    margin: 0; /* デフォルトのマージンをリセット */
    font-size: 12px; /* 文字を小さく表示 */
    color: #666; /* テキストの色 */
  }
  
  
/* レスポンシブデザイン */
@media (max-width: 768px) {
    section.mv {
        display: flex;
        flex-direction: column; /* 垂直方向に配置 */
        align-items: center;
        position: relative;
    }

    div.mv_title {
        position: relative;
        top: -230px; /* 適切な位置に調整 */
        color: rgba(61, 61, 61, 0.9); /* オフホワイトの色、透明度を調整 */
        font-size: 24px; /* フォントサイズを調整 */
        font-weight: bold; /* 必要に応じてフォントウェイトを調整 */
        z-index: 2; /* 画像より手前に表示するために必要な場合 */
        padding: 10px; /* テキストの周囲の余白を調整 */
        margin-left: 0; /* 左のマージンをなくす */
        text-align: center; /* 中央寄せ */
    }

    p.site_title {
        font-size: 32px; /* フォントサイズを調整 */
        width: 100%; /* 幅を調整 */
    }

    div.mv_img {
        margin: -10px -200px -30px 0; /* マージンを設定 */
        z-index: 1; /* 画像をタイトルの後ろに表示 */
        position: absolute; /* 絶対位置に配置 */
        top: 50%; /* 画像の位置を調整 */
        transform: translateY(-65%); /* 垂直方向の中央揃え */
    }



    .about_profile p {
        word-wrap: break-word;
    }

    .about_skill {
        text-align: center; /* センター揃え */
        margin: 50px auto; /* 上下に余白、左右は自動で調整 */
    }

    .skill-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 最小幅を変更 */
        margin: 50px auto;
    }

    .skill-item {
        flex-direction: column; /* 縦並びに変更 */
        text-align: center;
    }

    .skill-img {
        margin: 0 auto; /* 中央揃え */
    }

    .works-list {
        grid-template-columns: 1fr; /* 幅が狭い場合は1列に変更 */
        padding: 0 5%; /* 両サイドの余白を減らす */
    }

    .works-name{
        font-size: 10px;
    }

    .works-item{
        padding: 0 5%;
    }
    .works-img img {
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* トランジション効果の設定 */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 初期のシャドウ設定 */
        width: 100%; /* 画像の幅を100%に設定 */
        height: auto; /* 高さを自動調整 */
        border-radius: 3px; /* 角丸設定 */
    }
    
    .works-img img:hover {
        filter: grayscale(0%); /* カラーを表示する */
        transform: translateY(-4px) scale(1.02); /* 画像を少し上に移動し、少し拡大 */
        box-shadow: 0 5px 10px rgba(173, 173, 173, 0.3); /* シャドウを強調 */
    }

    .modal-content {
        max-width: 90%;
        margin: 10% auto; /* 上下の余白を調整 */
        padding: 20px;
    }

    .modal-content img {
        max-width: 100%; /* 画像の幅を親要素に合わせる */
        height: auto; /* 縦横比を保つために高さは自動調整 */
        display: block; /* 余分な空白を取り除くために必要 */
        margin: 0 auto; /* 画像を中央に配置 */
    }


    /* スマートフォン用ナビゲーション */
    .btn-gnavi {
        display: block;
    }
    
    .g-navi {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 10px rgba(195, 193, 193, 0.1);
        
    }
    
    .g-navi.active {
        display: flex;
    }
    
    .g-navi ul {
        flex-direction: column;
        margin: 0;
        padding: 0;
        align-items: end;
    }
    
    .g-navi ul li {
        width: 100%;
        text-align: right;
        padding: 10px 20px;
        text-align: center;
    }
    
    .g-navi ul li a {
        display: block;
    }
    
    .nav-bg {
        display: none;
}

    /* カスタムカーソルを非表示にする */
    #cursor {
        display: none;
        cursor: none; /* デフォルトのカーソルを非表示にする */
    }
}

@media (max-width: 480px) {
    .work_item {
        flex-basis: 100%; /* 1列で表示 */
    }
}

@media (min-width: 768px) {
    .btn-gnavi {
        display: flex;
    }
    .skill-list {
        grid-template-columns: repeat(2, 1fr); /* 最大2列に設定 */
    }
    .works-list {
        grid-template-columns: repeat(3, 1fr); /* 768px以上では3列に設定 */
    }
    .g-navi {
        display: flex; /* 768px以上で通常のナビゲーションを表示 */
        justify-content: flex-end;
    }

    .btn-gnavi {
        display: none; /* 768px以上では非表示 */
    }
}