@charset "UTF-8";

:root{
    --sub-font-color:rgba(43,167,253,100%);
    --main-font-color:rgba(34,34,34,34,100%);
    --main-bg-color:rgba(43,167,253,15%);
    --sub-bg-color:rgba(43,167,253,100%);
}

/* COMMON */
body{
    background-color: var(--main-bg-color);
}

.common-inner{
    width: 1350px;
    margin:0 auto;
}

.section-title {
  text-align: center;
  color: #33aaff;
  margin-top:90px;
  margin-bottom:20px;
}

.full-section{
    width: 100%;
}

.title-en {
    color: var(--sub-font-color);
    font-size: 50px;
    font-weight: bold;
}

.title-jp {
    color: var(--main-font-color);
    font-size: 14px;
    margin-top:10px;
    font-weight: bold;
}

.dec {
  position: absolute;
  top: 50%;
  transform: translateY(-40%);
  opacity: 0;
  transition: all 1.2s ease-out;
}
.dec img{
    width: 250px;
    height: auto;
    animation: fukufuku 4s ease-in-out infinite;
}
.dec-left {
  left: -50px;
}
.dec-left.is-show {
    left: 5%;
    opacity: 1;
}

.dec-right {
  right: -50px;
}

.dec-right.is-show {
    right: 5%;
    opacity: 1;
}
.dec-right img{
    transform: rotate(100deg); 
}

/* 浮遊アニメーション */
@keyframes fukufuku {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -20px; }
}

.js-scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 0.5s
}

/* クラスがついたら表示する */
.js-scroll-reveal.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* HEADER */
.header-main-container{
    display: flex;
    position:relative;
}
.main-comment{
    position: absolute; /* 親要素に対して絶対配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* 画像より上に */
    transform: translateX(50px); /* 初期位置を右に */
    transition: transform 1.2s ease-out, opacity 1.2s ease-out;
}
.main-comment p{
    font-size: 70px;
    position: absolute;
    font-weight: bold;
    color: #333; /* 文字色はお好みで */
}

.main-comment.is-active {
    transform: translateX(0);
    opacity: 1;
}
.main-comment p:nth-of-type(1) { top: 10%; left: 20%; }
.main-comment p:nth-of-type(2) { top: 30%; left: 20%; }
.main-comment p:nth-of-type(3) { top: 50%; left: 20%; }
.main-comment p:nth-of-type(4) { top: 70%; left: 20%; }

.header-menu-container{
    display: flex;
    justify-content: space-between;
    height:120px;
    align-items: center;
}
.header-menu-container h1{
    font-size:28px;
    font-weight: bold;
    padding:10px 50px;
}
.nav-menu{
    display: flex;
}

.nav-menu li{
    padding:20px;
    font-size:18px;
    font-weight: bold;
}
.nav-menu li:hover{
    color: var(--sub-font-color);
    border-bottom: 2px solid var(--sub-font-color);
    transform: translateY(-5px);
    transition: transform 0.5s;
}

.hamburger-menu {
display: none;
}

/* NEWS */
.news-container {
    display:flex;
    position: relative;
    overflow: hidden;
    justify-content: center;
}
.news-list{
    position: relative;
    z-index: 10;
}

.news-item {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.news-date {
    width: 150px;
    font-size:16px;
    font-weight:normal;

}

.news-text {
    flex: 1;
    font-size:16px;
    font-weight:normal;
}

/*  ABOUT */
.about-container {
    display: flex;
    align-items: center; 
    justify-content: space-between;
}

.about-text {
    font-size: 16px;
    flex: 1;
    line-height: 1.8;
    font-weight:normal;
    text-align: center;
}

.main-left-image .main-right-image{
    display: flex;
    justify-content: center;
    z-index: 1;
}
.main-left-image img, .main-right-image img {
    width:200px;
    animation: fukufuku 4s ease-in-out infinite;
    margin: 5px;
}
/*
.main-right-image img:nth-of-type(1){
    transform: translateY(40px);
}

.main-right-image img:nth-of-type(2){
    transform: translateY(-40px);
}

.main-left-image img:nth-of-type(1){
    transform: translateY(40px);
}

.main-left-image img:nth-of-type(2){
    transform: translateY(-40px);
}
*/
/* SERVICE */
.service-container{
    padding-bottom:20px;
    
    
}
.service-list li{
    display:flex;
    align-items: center;
    justify-content: center;
    margin-top:20px;
}
.service-card-info{
    margin-left:20px;
}
.service-card-info h3{
    font-size:24px;
    font-weight: bold;
    margin-bottom:20px;
    text-align: center;
}
.service-card-info p{
    font-size:16px;
    font-weight: normal;
}
.service-card-info span{
    display: block;
    margin-top:20px;
    background-color: var(--main-bg-color);
    border-radius: 10px;
    width: 150px;
    height: auto;
    text-align: center;
}
.service-card-info span a{
    display: block;
    padding:10px;
    position: relative;
    display: inline-block;
    padding: 10px 30px;
    color: #333; /* 文字色 */
    text-decoration: none;
    border: 1px solid #333; /* 枠線 */
    z-index: 1;
    overflow: hidden; /* はみ出た背景を隠す */
    transition: color 0.3s ease;
}
.service-card-info span a:hover{
    color: #fff;
}
.service-card-info span a:hover::before{
    left: -10%;
}
.service-card-info span a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%; /* 最初は左側に隠しておく */
    width: 120%;
    height: 100%;
    background-color: #333; /* ホバー時の背景色 */
    transform: skewX(-25deg); /* ここで斜めにする */
    transition: left 0.4s ease;
    z-index: -1; /* 文字の下に配置 */
}
.service-card-img img{
    width:400px;
    height: 400px;
}
/* Fotter */
.footer-container{
    display: flex;
    justify-content: space-between;
    height:120px;
    align-items: center;
}

.copyright{
    font-size:30px;
    font-weight: bold;
    padding:10px 50px;
}

.footer-container ul{
    display: flex;
    align-items: center;
}

.footer-container ul li{
    padding:20px;
    font-size:18px;
    font-weight: bold;
}

.footer-container li:hover{
    color: var(--sub-font-color);
    border-bottom: 2px solid var(--sub-font-color);
    transform: translateY(-5px);
}

.footer-container ul li:hover{
    transform: translateY(-5px);
}

/* portfolio */
.filter-container{
    margin:50px;
    font-size:20px;
}

.filter-nav{
    display: flex;
    justify-content: space-between;
}

.filter-nav li{
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s ease; /* 変化をなめらかにする */
    border-bottom: 2px solid transparent; /* ホバー時の下線を予約しておく */
    color: var(--main-font-color);
}
.filter-nav li:hover{
    color: var(--sub-font-color); /* 文字色をメインカラー（水色）に変更 */
    background-color: rgba(43, 167, 253, 0.1); /* ほんのり背景色をつける */
    border-bottom: 2px solid var(--sub-font-color); /* 下線を表示 */
    transform: translateY(-3px); /* 少し上に浮かせる */
    transition: transform 0.5s;
}
.portfolio-img{
    text-align: center;
}

.portfolio-container h3{
    text-align: center;
    font-size:24px;
    font-weight: bold;
    margin:30px;
}

.portfolio-specs-brief{
    display: flex;
    justify-content: center; /* 中央寄せ */
    flex-wrap: wrap;
    font-size: 14px;
    
}
.portfolio-specs-brief span{
    padding:10px;
    margin:10px;
    background-color:#b6dd89 ;
    border-radius: 20px;
}
.portfolio-tech table{
    margin:0 auto;
}

.portfolio-tech table tr th{
    font-size: 20px;
    padding: 20px 0;
    width:120px;
    text-align: left;
}

.portfolio-tech table tr td{
    font-size: 18px;
    padding: 20px 0;
    width:auto;
    text-align: left;
}
.portfolio-tech table tr {
    border-bottom: 1px solid #ddd;
}

.portfolio-info{
    text-align: center;
    width:100%;
    padding:20px 0;
}
.portfolio-info h3{
    text-align: center;
    margin:30px;
    font-size:24px;
}

.portfolio-info {
    max-width:850px;
    text-align: left;
    margin:0 auto 30px;
    padding:0 20px;
}

.portfolio-info p:first-child{
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 8px;
}

.portfolio-info p{
    margin-bottom:10px;
    line-height:1.6;
}

.portfolio-controls{
    text-align:center;
    margin:30px;
}
.portfolio-container {
    display: none;
}
.portfolio-tech table tr td a{
    color: var(--sub-font-color);
    border-bottom: 2px solid var(--sub-font-color);
    transition: transform 0.5s;
}
.portfolio-tech table tr td a:hover{
    display: inline-block;
    transform: translateY(-10px); 
}
/* activeクラスがついたものだけ表示 */
.portfolio-container.active {
    display: block; /* 元のデザインに合わせてblockかflexか調整してください */
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-btn {
    padding: 10px 20px;
    cursor: pointer;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin: 0 10px;
}

.mk-img img{
    width: 300px; /* 親要素の幅を超えないようにする */
    height: auto;    /* 縦横比を維持する */
}

.portfolio-info-inner{
    display: flex;
    margin-bottom:30px;
}

.portfolio-comment{
    margin-left: 30px;
}

.portfolio-web-img img{
    width:300px;
}

@media (max-width: 640px) {
    .section-title {
        margin-top:10px;
        margin-bottom:10px;
        text-align: center;
        font-size: 20px;
    }

    .title-en {
        font-size: 20px;
    }

    .title-jp {
        font-size: 12px;
    }
    
    .common-inner {
        width: 100% ;
        box-sizing: border-box;
    }
    /* HEADER */
    .page-home #header{
        height: 40vh;
    }
    .page-portfolio #header{
        height: 5vh;
    }

    .hamburger-container {
        position: relative;
    }

    .hamburger-menu {
        display: block!important;
        width: 30px;
        height: 22px;
        position: fixed;
        top: 20px;
        right: 20px;
        cursor: pointer;
        user-select: none;
        z-index: 1001;
    }
    .header-main-container img{
        width: 100%;      /* 親要素の幅いっぱいに広げる */
        height: auto;     /* 縦横比を維持 */
        max-width: 100%;  /* 画面からはみ出さないようにする */
        object-fit: cover; /* 枠に合わせてきれいに収める（必要に応じて） */
    }

    .hamburger-menu .line {
        background-color: #333;
        height: 4px;
        width: 100%;
        position: absolute;
        transition: all 0.3s;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    .hamburger-menu .line:nth-of-type(1) {
        top: 0;
    }

    .hamburger-menu .line:nth-of-type(2) {
        top: 50%;
        transform:
        translateY(-50%);
    }

    .hamburger-menu .line:nth-of-type(3) {
        bottom: 0;
    }

    .hamburger-menu.active > .line:nth-of-type(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .hamburger-menu.active > .line:nth-of-type(2) {
        display: none;
    }

    .hamburger-menu.active > .line:nth-of-type(3) {
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }
    
    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color:rgba(43,167,253); 
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    @keyframes fadeIn {
        0% {
            top: 45%;
            opacity: 0;
        }

        100% {
            top: 50%;
            opacity: 1;
        }
    }
    .header-menu-container{
        height: 60px;
    }
    .header-menu-container h1{
        font-size:12px;
        padding:10px;
    }
    .main-comment p{
        font-size: 16px;
    }
    .main-comment p:nth-of-type(1) { top: 10%; left: 30%; }
    .main-comment p:nth-of-type(2) { top: 30%; left: 30%; }
    .main-comment p:nth-of-type(3) { top: 50%; left: 30%; }
    .main-comment p:nth-of-type(4) { top: 70%; left: 30%; }

    /*  NEWS */
    .news-container{
        justify-content: center;
    }
    .dec img{
        width: 50px;
        height: 50px;
    }
    .news-list{
        margin:5px;
    }
    .news-list .news-item .news-date {
        width: 80px;
        font-size:12px;
    }
    .news-list .news-item .news-text {
        width: 200px;
        font-size:12px;
    }

    .news-list .news-item{
        padding:10px 0px;
    }

    /* About */
    .about-container{
        display: block;
    }
    .about-text {
        font-size: 12px;
        line-height: 1.5;
        margin: 20px 0;
        position: relative;
        z-index: 2;
    }
    .main-left-image img .main-right-image img{
        width: 100px!important;
    }
    .main-left-image .main-right-image{
        display: flex;
        justify-content: center;
        position: relative;
        z-index: 1;
    }
    .main-left-image img, .main-right-image img {
        margin: 5px;
    }

    /* SERVICE */
    .service-container ul{
        display:block;
    }
    .service-card-img img{
        width: 200px;
        height: auto;
    }
    .service-card-info h3{
        margin-bottom:5px;
        font-size:16px;
    }
    .service-card-info p{
        font-size:12px;
    }
    .page-portfolio .nav-menu{
        transform: translate(-50%, -180%);   
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        align-items: center;
        padding: 10px;
        width: 200px;
        opacity: 0;
        z-index: 1000;
        max-height: 80%;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: block;
        animation: fadeIn 0.6s forwards;
    }

    .nav-menu a {
        text-decoration: none;
        color: white;
        padding: 15px 25px;
        margin: 8px;
        border-radius: 25px;
        transition: all 0.3s;
        font-weight: 500;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
    }

    .nav-menu a.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-menu a:hover {
        background: rgba(255,255,255,0.2);
        transform: translateX(10px);
    }
    /* PortFolio*/
    .filter-container{
    margin:10px;
    font-size:14px;
    }
    .filter-nav li {
        padding:5px;
    }
    .portfolio-img img{
        width: 200px;
        height: auto;
    }
    .portfolio-img{
        margin:0 auto;
    }
    .portfolio-tech h3{
        font-size:20px;
        margin:20px;
    }
    .portfolio-tech h3{
        font-size:20px;
    }
    .portfolio-tech table tr th{
        font-size: 14px;
        width:100px;
    }
    .portfolio-tech table tr td{
        font-size: 12px;
        width:300px;
    }
    .portfolio-info{
        padding:5px;
    }
    .portfolio-info h3{
        font-size:20px;
        margin:20px;
        font-weight: bold;
    }
    .portfolio-info p:nth-of-type(1){
        font-size: 16px;
    }
    .portfolio-info p:nth-of-type(2){
        font-size: 14px;
    }

    .footer-container ul{
        display: block;
    }
    .footer-container ul li{
        font-size:14px;
        padding:10px;
    }
    .copyright{
        font-size:20px;
        padding:10px;
    }
    .portfolio-lp-img img{
        width:150px;
    }
    .portfolio-web-img img{
        width:150px;
    }
    .portfolio-comment{
        margin-left:15px;
    }
    .portfolio-comment-info p:nth-of-type(1){
        font-size:14px;
    }
    .portfolio-comment-info p:nth-of-type(2){
        font-size:12px;
    }
    .portfolio-specs-brief span{
        font-size:10px;
    }
    .portfolio-container h3{
        margin:10px;
    }
}
