@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:100%;
    max-width: 1350px;
    margin:0 auto;
}

.section-title {
  text-align: center;
  color: #33aaff;
  margin:30px 0px;
}

.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;
}

.deco {
  position: absolute;
  top: 50%;
  z-index: -1;
}

.deco-left {
  left: 5%;
}

.deco-right {
  right: 5%;
}

.deco-right img{
    transform: translateY(-50%) rotate(100deg);
}

/* HEADER */
#header{
    background:url("/img/main-img.png") no-repeat center ;
    background-size:cover;
    height: 100vh;
    position:relative;
}

.header-container{
    display: flex;
    justify-content: space-between;
    height:120px;
    align-items: center;
}

.header-container h1{
    font-size:30px;
    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{
    transform: translateY(-5px);
}

.mainvisual-comment h2{
    position:absolute;
    top:20%;
    left:30%;
}

.mainvisual-comment p{
    position:absolute;
    top:34%;
    left:32%;
}

.mainvisual-comment h2 {
    font-size:100px;
}

.mainvisual-comment p {
    font-size:2vw;
    margin-top :20px;
}

.hamburger-menu {
  display: none;
}

.page-portfolio #header {
    background: none; 
    height: auto !important;
    position: static !important;
    min-height: 0 !important;
    background-color: var(--sub-bg-color);
}
/*  ABOUT */
.about-content {
  display: flex;
  align-items: center; 
  justify-content: space-between;
  gap: 40px;
}

.about-text {
  flex: 1;
  line-height: 1.8;
  font-weight:normal;
  padding:100px;
  text-align: center;
}

.about-img {
  flex: 1;
  text-align: left;
  background-color: var(--sub-bg-color);
}

.about-img img {
    width: 255px;
    height: 180px;
    padding:10px;
}

/*  NEWS */
.news-container {
    display:flex;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.news-list{
    margin:30px 50px;
}

.news-item {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.news-date {
  width: 150px;
  font-weight: normal;
}

.news-text {
  flex: 1;
}

/* SERVICE */
#service{
    background:linear-gradient(#2BA7FD , #8ACBF9 70% , #2BA7FD);
}
.service-title-en , .service-title-jp{
    color:#ffffff;
}

.service-container{
    padding-bottom:20px;
}

.service-container ul{
    display:flex;
    justify-content: space-between;
}

.service-card img{
    width:400px;
    height: 400px;
}

.service-card h3{
    text-align:center;
    font-size:20px;
    margin:10px 0px;
    font-weight: bold;
}

.service-card p{
    text-align:left;
    font-size:18px;
    margin:10px 0px;
}

.btn{
    display: inline-block; /* これが重要！横幅を文字に合わせます */
    min-width: 200px;
    padding: 15px 50px;
    background-color:var(--sub-font-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
}

/* 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 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); /* 少し上に浮かせる */
}
.portfolio-img{
    text-align: center;
}

.portfolio-tech h3{
    text-align: center;
    font-size:24px;
    font-weight: bold;
    margin:30px;
}

.portfolio-tech table{
    margin:0 auto;
    font-size: 24px;
}

.portfolio-tech table tr th{
    padding: 20px 0;
    width:200px;
    text-align: center;
}

.portfolio-tech table tr td{
    padding: 20px 0;
    width:200px;
    text-align: center;
}
.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;
}

/* 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-pc-img img{
    width:300px;
}
@media (max-width: 640px) {
    .section-title {
        margin:20px 0px;
    }

    .title-en {
        font-size: 20px;
    }

    .title-jp {
        font-size: 12px;
    }
    /* HEADER */
    #header{
        height: 40vh;
    }
    
    .header-container{
        height: 60px;
    }
    .header-container h1{
        font-size:20px;
        padding:10px;
    }

    .mainvisual-comment h2{
        font-size:30px;
        top:25%;
        left:30%;
    }
    .mainvisual-comment p{
        top:30%;
        left:32%;
    }
    .section-title {
        text-align: center;
        font-size: 20px;
        margin:15px 0px;
    }
    /*  NEWS */
    .dec{
        display: flex;
        align-items: center;
    }
    .dec img{
        width: 50px;
        height: 50px;
    }
    .news-date {
        width: 80px;
    }
    .news-list{
        margin:10px 10px;
    }
    .news-date {
        font-size:14px;
    }
    .news-text {
        font-size:14px;
    }
    /* About */
    .about-text {
        font-size: 12px;
        line-height: 1.5;
        padding:5px;
        text-align: center;
    }
    .about-img{
        width: 50px;
    }
    .about-img img {
        width: 100px;
        height: 100px;
        padding:10px;
    }

    /* SERVICE */
    .service-container ul{
        display:block;
    }
    .service-card p{
        text-align: center;
        font-size:16px;
    }
    .service-card img{
        display: flex;
        margin:0 auto;
    }

    /* テスト*/
    .hamburger-container {
        position: relative;
    }

    .hamburger-menu {
        display: block;
        width: 30px;
        height: 22px;
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
        user-select: none;
        z-index: 1001;
    }

    .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);
    }
    .page-portfolio .overlay{
        height: 300px;
    }

    .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;
        }
    }
    .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: 300px;
        height: auto;
    }
    .portfolio-tech h3{
        font-size:20px;
        margin:20px;
    }
    .portfolio-tech h3{
        font-size:20px;
    }
    .portfolio-tech table{
        font-size: 20px;
    }
    .portfolio-tech table tr th{
        width:100px;
    }
    .portfolio-tech table tr td{
        width:100px;
    }
    .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:100px;

    }
    .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;
    }
}
