@charset "utf-8";

/* ＝＝＝＝＝　リセット　CSS ＝＝＝＝＝　*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Zen Old Mincho", serif;
    line-height: 1.8;
    overflow-x: hidden;
    background-color: #f5f5f5;
    color: #333;


    background-color: #f8f8f8; /* 背景色を薄いグレーに */
    color: #333; /* 文字色を濃いグレーに */
}

main {
    overflow: hidden;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
}

/* ＝＝＝＝＝　共通 css ＝＝＝＝＝　*/


.container {
    width: min(1440px, 90%);
    margin: 0 auto;
    padding: 2rem 0;
}

.grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows:1fr;
    margin: 100px auto;
    gap: 4rem;
}

.container .right-box {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    text-align: center;
}

.right-box .info{
    height: auto;
    padding: 2rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #3232322f;
}

.right-box .info p{
    padding: 0 2rem;
    margin-bottom: 32px;
}

.container .left-box {
    height: 100%;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #004aad;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

p {
    color: #333;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #edba37; /* メインカラーをボタンに適用 */
    color: #333; /* ボタンの文字色を濃いグレーに */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease; /* ホバー効果を滑らかに */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: darken(#edba37, 10%); /* ホバー時にメインカラーを少し暗くする */
    transform: scale(1.05);
    animation: hurueru .1s  infinite;
}


/* ＝＝＝＝＝　ボタンアニメーション ＝＝＝＝＝　*/

@keyframes hurueru {
    0% {transform: translate(0px, 0px) rotateZ(0deg)}
    25% {transform: translate(2px, 2px) rotateZ(1deg)}
    50% {transform: translate(0px, 2px) rotateZ(0deg)}
    75% {transform: translate(2px, 0px) rotateZ(-1deg)}
    100% {transform: translate(0px, 0px) rotateZ(0deg)}
}

/* ＝＝＝＝＝　共通 css　レスポンシブ対応 ＝＝＝＝＝　*/
@media screen and (max-width: 768px) {
    section {
        margin-bottom: 10px; 
    }

    .grid {
      grid-template-columns: 1fr;
      gap: 2rem; 
      margin: 0 auto 32px;
    }

    .web-list,
    .bnr-list {
      grid-template-columns: repeat(3, 1fr);
    }

    h3 {
        margin-bottom: 8px;
    }

    .right-box .info {
        height: 320px;
    }
}

  /* ブレークポイント2: 412px */
  @media screen and (max-width: 412px) {

    .container {
        padding: 0;
    }
    h2 {
      font-size: 2rem; /* フォントサイズを小さく */
    }
  
    h3 {
      font-size: 1.5rem; /* フォントサイズを小さく */
    }

    
    .grid {
        display: block;
        gap: 2rem; 
        margin: 0 auto 32px;
      }
  
    .web-list,
    .bnr-list {
        width: 100%;
        /* grid-template-columns: repeat(1, 1fr); */
    }
  
    .right-box .info p {
      font-size: 0.9rem; /* フォントサイズを小さく */
    }
  }

/* ＝＝＝＝＝　メニュバー ＝＝＝＝＝　*/


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 8vh;
    padding: 0.5rem 2rem; /* 左右のパディングを追加 */
    background-color: #edba37;
}

header h1 a{
    color: #333;
}

.hamburger {
    display: none;
    position: fixed;
    top: 12px;
    right: 5px;
    z-index: 11;
}
 
header nav {
    width: 38%;
}

header .nav-links {
    display: flex;
    justify-content: space-around;
}

.nav-links a {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    display: block;
    transition: opacity 0.3s ease;
}

.nav-links a:hover{
    border-bottom: 3px solid #ffffff;
}

.nav-links li:hover > a { /* .bnr-list div の直接の子要素である p に :hover を適用 */
    border-bottom: 3px solid #ffffff;
    transform: scale(1.3);
  }

  header .sns-links {
    display: none;
  }

    /* カレント表示 */
    .nav-links li.current a {
        border-bottom: 3px solid #ffffff;
        transform: scale(1.1);
      }

  @media (max-width: 768px){
    header nav {
        width: 56%;
    }

    .nav-links li:hover > a { /* .bnr-list div の直接の子要素である p に :hover を適用 */
        transform: scale(1.1);
      }
  }

  @media (max-width: 412px){
    .hamburger {
        display: block;
    }

        header nav {
            position: fixed;
            /* ブラウザのトップで、navが、positionのfixedに変換する →　sticky */
                width: 100%;
                height: 100%;
                top: 0;
                left: 100%;
            /*ボタンを押した時に背景*/
                padding-top: 100px;
                background-color: rgba(237, 237, 237, 0.899);
                /* 背景色設定 */
                transition: 0.3s;
                z-index: 10;
        }

        header .nav-links {
            display: block;
            text-align: center;
            line-height: 60px;
            margin-bottom: 40px;
        }

        header .sns-links {
            display: flex;
            justify-content: space-around;
            text-align: center;
            align-items: center;
        }

        nav.active {
            left: 0%;
        /*ボタンを押した時に背景*/
        }

        nav ul a:hover{
            background-color: #444;
            color: #fff;   
            /* 適宜設定 */
        }


            /* カレント表示 */
    .nav-links li.current a {
        border: none;
        /* transform: scale(1.3); */
      }

  }

/* ＝＝＝＝＝　サイド　アイコン ＝＝＝＝＝　*/
  .side-nav{
    position: fixed;
    top: 30%;
    right: 1%;
    z-index: 100;
    text-align: center;

    i {
        font-size: 32px;
    }

    p {
        font-size: 10px;
    }
  }

  .side-nav .return {
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 100%;
    margin-top: 100px;
    border: 2px solid #000;
    background-color: rgba(0, 0, 0, 0.051);
  }
  .side-nav .icon {
    margin-bottom: 32px;
  }

  @media (max-width: 768px){
    .side-nav {
        top: 45%;
    }
  }


  @media (max-width: 412px){
    .side-nav {
        display: none;
    }
  }


/* ＝＝＝＝＝　フッター ＝＝＝＝＝　*/

footer {
    width: 100%;
    height: 80px;
    padding: 16px;
    text-align: center;
    background-color: #edba37;
}

footer p {
    color: #333;
}



/* ＝＝＝＝＝　トップ画面 ＝＝＝＝＝　*/

.key-visual {
    position: relative;
}

.key-visual .slider {
    width: 100%;
    height: 100vh;

    img {
        top: 50%;
        left: 30%;
        transform: translate(-50%, -50%);
        position: absolute;
        width: 100%;
        height: 100%;
    }
}

.caption {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 100%;
}

.caption h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px #000;
}

.caption p {
    font-size: 3rem;
    text-shadow: 1px 1px 2px #000;
}

/* ＝＝＝＝＝　トップ画面 レスポンシブ対応 ＝＝＝＝＝　*/

@media screen and (max-width: 768px) {
    .key-visual .slider {
        /* height: 40vh; */
    }

    .caption {
        top: 15%;
        left: 50%;
    }

    .key-visual .slider {
    
        img {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            position: absolute;
            width: 100%;
            height: 100%;
        }
    }

}

@media screen and (max-width: 412px) {

.key-visual .slider {
    /* height: 30vh; */
}
.caption {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 100%;
}

.caption h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px #000;
}

.caption p {
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px #000;
}
}


/* ＝＝＝＝＝　WEBサイト ＝＝＝＝＝　*/


.gallery .container {
    position: relative;
}

/* ＝＝＝＝＝　透かし文字 ＝＝＝＝＝　*/
.gallery .container .backStr {
    position: absolute; 
/* 親要素からの相対位置 */
    display: inline-block;
    white-space: nowrap;
    font-size: 400pt;
    font-weight: bold;
    color: #007b8b55;
    top: 15%;
    left: 55%;
    transform: translate(-50%, -50%) rotate(20deg);
    z-index: -1;
  }


.web-list {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 20px;
    cursor: pointer;
    background-color: #32323213;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.web-list img {
    padding: 8px;
    width: 320px;
    height: 500px;
    border-radius: 8px;
    object-fit: contain;
    transition: transform .6s ease;
  }

.web-list div {
    position: relative;
    overflow: hidden;
}


.web-list p {
    position: absolute;
    top: 56%;
    left: 25%;
    padding: 15px;
    background-color: #007a8b;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* 初期状態では非表示 */
    transition: opacity 0.3s ease; /* ホバー効果を滑らかに */

    a {
        color: #fff;
    }
}

.web-list div:hover p {
    opacity: 1; /* ホバー時に表示 */
}
.web-list :hover img {
    transform: scale(1.1); /* 拡大 */
  }

/* ＝＝＝＝＝　WEBサイト レスポンシブ対応 ＝＝＝＝＝　*/

@media screen and (max-width: 768px) {
    .web-list .right-box .info {
        height: 320px;
    }

    .web-list img {
        width: 220px;
    }

    .web-list p {
        top: 48%;
        left: 13%;
    }

}

@media (max-width: 412px){
    .gallery .container {
        position: relative;
        /* overflow: hidden; */
    }

    .gallery .left-box  {
    overflow: scroll
}

    .web-list {
        display: flex;
        flex-wrap: nowrap;
        border: none;
        background-color: #32323200;
        width: 1000px;
        height: 400px;
    }

    .right-box .info {
        /* width: 100%; */
        height: auto;
        padding: 1rem 2rem;
        margin-bottom: 54px;

        p {
            margin-bottom: 16px;
        }
    }
    
.web-list img {
    padding: 8px;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* ＝＝＝＝＝　バナーサイト ＝＝＝＝＝*/

#section1-1 .container {
    position: relative;
}

/* ＝＝＝＝＝　透かし文字 ＝＝＝＝＝　*/
#section1-1 .container .backStr {
    position: absolute; 
/* 親要素からの相対位置 */
    display: inline-block;
    white-space: nowrap;
    font-size: 400pt;
    font-weight: bold;
    color: #fe4a4955;
    top: 15%;
    left: 55%;
    transform: translate(-50%, -50%) rotate(20deg);
    z-index: -1;
  }


.bnr-list {
    /* display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: auto 200px;
    gap: 20px;
    background-color: #32323213;
    border: 1px solid #ddd;
    border-radius: 8px; */

    
    img {
        transition: transform .6s ease; /* ゆっくり変化させる */
        border-radius: 8px;
        object-fit: cover;
        padding: 8px;
    }
}

.content-1, .content-2 {
    display: grid;
    grid-template-columns: repeat(3, auto);
    /* grid-template-rows: auto 200px; */
    gap: 20px;
    background-color: #32323213;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.content-1 {
    margin-bottom: 32px;
}

.bnr-list div {
    overflow: hidden;
    position: relative;
}

.bnr-list p {
    position: absolute;
    bottom: 20%;
    left: 25%;
    padding: 15px;
    background-color: #007a8b;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* 初期状態では非表示 */
    transition: opacity 0.3s ease; /* ホバー効果を滑らかに */
    a {
        color: #fff;
    }
}


.bnr-list div:hover > p { /* .bnr-list div の直接の子要素である p に :hover を適用 */
    opacity: 1;
  }

  .bnr-list div:hover > img {
    transform: scale(1.1); /* 拡大 */
  }

/* レスポンシブ対応 */

/* ブレークポイント1: 768px */
@media screen and (max-width: 768px) {
  .bnr-list p {
    position: absolute;
    bottom: 40%;
    left: 15%;
  }
}

@media screen and (max-width: 412px) {
    #section1-1 .gallery .left-box  {
        overflow: scroll
    }

    #section1-1 .bnr-list{
        display: block;
        border: none;
        background-color: #32323200;
        width: 1000px;
        height: 100%;
    }

    .content-1 {
        display: flex;
        flex-wrap: nowrap;
    }

    .content-2 {
        display: flex;
        flex-wrap: nowrap;
    }

    .bnr-list p {
        position: absolute;
        bottom: 40%;
        left: 20%;
      }
  }
/*　＝＝＝＝＝　スキルエリア ＝＝＝＝＝　*/

/* ＝＝＝＝＝　透かし文字 ＝＝＝＝＝　*/
.Skill .container {
    position: relative;
}


.Skill .container .backStr {
    position: absolute; 
/* 親要素からの相対位置 */
    display: inline-block;
    white-space: nowrap;
    font-size: 400pt;
    font-weight: bold;
    color: #007b8b55;
    top: 15%;
    left: 55%;
    transform: translate(-50%, -50%) rotate(20deg);
    z-index: -1;
  }



.Skill .grid {
    display: grid;
    grid-auto-columns: repeat(auto-fit, minmax(480px, 1fr));
    grid-template-rows: 1fr;
    margin-bottom: 4rem;
    gap: 2rem;
    color: #fff;
}

/* ===== 左のボックス　写真 ===== */

.Skill .right-box {
    position: relative;
    background-color: #6666660a;
    backdrop-filter: blur(3px);
}


.Skill .right-box .pulse-btn {
    transform: scale(-1, 1);
    position: absolute;
    top: 45%;
    left: 42%;
    border: 3px solid #fff;
    border-radius: 50%;
    text-align: center;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #fe4a49; /* 赤をボタンに適用 */
    box-shadow: 0 0 10px #fe4a49, 0 0 40px #fe4a49, 0 0 80px #fe4a49;
}
.Skill .right-box .pulse-btn:hover{
    background: #0ff;
    box-shadow: 0 0 10px #0ff, 0 0 40px #0ff, 0 0 80px #0ff;
}


.pulse-btn::before,
.pulse-btn::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    border: 1px solid #1da1f2;
    border-radius: 50%;
    box-sizing: border-box;
    animation: pulsate 2s linear infinite;
}

.pulse-btn::after {
    animation-delay: 1s;
}
  
  @keyframes pulsate {
    0% {
      transform: scale(1);
      opacity: 1;
    }
  
    100% {
      transform: scale(2);
      opacity: 0;
    }
  }

  /* ✖ボタン */

.right-box button { 
    display: inline-block;
    padding: 1rem 2rem;
    background: #0ff;
    color: #121212;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: box-shadow 0.3s;
    border: none;
}

.right-box .close-btn {
    position: absolute;
    top: 45%;
    left: 16%;
    z-index: 2;
    padding: 10px 20px;
    background: #0ff;
    color: #fff;
    box-shadow: 0 0 10px #0ff, 0 0 40px #0ff, 0 0 80px #0ff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 32px;
}


.Skill .right-box .circle {
    display: block;
    width: 100%;
    height: 60px;
    border: 1px solid #1da1f2;
    box-shadow: 0 0 10px #0ff, 0 0 40px #0ff, 0 0 80px #0ff;
    border-radius: 50%;

    border: 1px solid #4ad7d1; /* 青緑をボーダーに適用 */
    box-shadow: 0 0 10px #4ad7d1, 0 0 40px #4ad7d1, 0 0 80px #4ad7d1;
}

.Skill .right-box .circle:nth-child(1) {
    animation: 2s linear 0s infinite alternate UpDown;
}

.Skill .right-box .circle:nth-child(4){
    animation: 2s linear 0s infinite alternate Downup;
}

@keyframes UpDown{
    /* 開始地点 */
    0%{
    /* Y軸0px */
    transform: translateY(0%);
    }
    /* 終了地点 */
    100%{
    /* Y軸50px */
    transform: translateY(100%);
    }
}

@keyframes Downup{
    /* 開始地点 */
    0%{
    /* Y軸0px */
    transform: translateY(0%);
    }
    /* 終了地点 */
    100%{
    /* Y軸50px */
    transform: translateY(-100%);
    }
}


.right-box .icon {
    color: #fff;
    padding: 1rem;
    width: 80px;
    height: 80px;
    animation: hurueru .1s  infinite;
}


/* 隠しボックス */
.right-box__close {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    margin: 0 calc(50% - 17vw);
    display: none;
    background-color: #000000;
    border: 1px solid #1da1f2;
    box-shadow: 0 0 10px #0ff, 0 0 40px #0ff, 0 0 80px #0ff;
    animation: 1s infinite open__txt;
    z-index: 1;
}

.right-box__close p{
    color: #fff;
    font-size: 24px;
    margin-bottom: 16px;

}

.right-box__close .head {
    top: 24%;
    left: 32%;
    transform: translate(-50%, -50%);
    position: absolute;
    z-index: 2;
}

.right-box__close .foot{
    top: 72%;
    left: 80%;
    transform: translate(-50%, -50%);
    position: absolute;
    z-index: 2;
}

.right-box__close img {
    top: 50%;
    left: 57%;
    transform: translate(-50%, -50%);
    position: absolute;
}

.right-box__close.box__open {
    z-index: 1;
    display: block;
    
}


/* ===== 右のボックス　スキル ===== */

.Skill .left-box .info{
    height: 600px;
    padding: 2rem;
    background-color: #3232322f;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    justify-content: space-around;
    flex-flow: column;
    align-items: center;
    gap: 30px;
}

.Skill .left-box .info h3{
    padding: 0;
    display: block;
}

.Skill .left-box .info p{
    margin-bottom: 16px;
}

.Skill .left-box img {
    background-color: #fff;
    object-fit: cover;
}

.left-box .Skill-box h3 {
    font-size: 24px;
}

.left-box .Skill-box ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
}

.left-box .Skill-box  li{
    display: flex;
    flex-wrap: wrap;
    flex-flow: column;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-left: 30px;
}
.left-box .Skill-box  li:hover{
    animation: hurueru .1s  infinite;
}


.left-box .Skill-box .icon{
    width: 72px;
    height: 72px;
    color: #333;
}

@media (max-width: 768px) {
    .Skill .left-box .info{
        gap: 0;
    }

    .left-box .Skill-box .icon {
        width: 60px;
        height: 60px;
    }

    
.right-box__close .foot {
    top: 80%;
    left: 60%;
}
}


/* ===== おまけ　エリア ===== */

.hobby .ai-grid {
    height: 100%;
    display: flex;  
    justify-content: space-around;
    text-align: center;
    background-color: #32323213;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px 0;
    position: relative;
}


.hobby .ai-grid div {
    width: 320px;
    height: 400px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: #fff; /* 背景色を白に */

    h4 {
        text-align-last: left;
        margin: 8px auto;
        margin-left: 8px;
        color: #333;
    }

    p {
        color: #333;
        padding: 0 12px;
    }
}

.hobby .ai-grid img {
    width: 100%;
    height: 50%;
    background-color: #fff;
    object-fit: cover;
}

.hobby .ai-grid ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.hobby .ai-grid  video{
    width: 100%;
    height: 50%;
}


/* レスポンシブ対応 */

/* ブレークポイント1: 768px */
@media screen and (max-width: 768px) {

    .right-box__close {
        margin: 0 calc(50% - 26vw);
    }

    .right-box__close img {
        left: 50%;
    }
    
  
    .Skill .grid {
        display: grid;
        gap: 0;
        grid-template-columns: repeat(auto-fit, minmax(345px, 1fr));
        height: 100%;
    }

    .Skill .left-box{
       width: 100%;
    }

    .Skill .right-box{
        width: 100%;
    }

    .Skill .right-box .info {
        padding: 1rem;
    }

    .Skill .right-box .info p{
        padding: 0;

    }
  
    .hobby .ai-grid {
      display: grid;
      grid-template-columns: repeat(2, auto);
      align-items: center; /* 中央揃え */
      justify-content: inherit;
      grid-gap: 20px;
      padding: 8px;
    }
  
    .hobby .ai-grid div {
      width: 100%; /* 幅を調整 */
    }
  }

  @media screen and (max-width: 412px) {
    .Skill .right-box {
        background-color: #fff;
        margin-bottom: 32px;
    }

    .ai-grid__scroll {
        overflow: scroll;
    }
    .hobby .ai-grid {
        display: flex;
        flex-wrap: nowrap;
        border: none;
        background-color: #32323200;
        width: 1000px;
        height: 400px;
    }

    .right-box__close {
        margin: 0 calc(50% - 50vw);
    }

    .right-box__close .head {
        width: 380px;
        top: 15%;
        left: 50%;
    }

    .right-box__close .foot {
        width: 380px;
        top: 85%;
        left: 50%;
    }

    .right-box__close p {
        margin: 0.5rem;
    }

    .right-box .close-btn {
        left: 42%;
    }

    .hobby .container {
        margin-bottom: 32px;
    }

  }
  
