/* Basic Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Figtree', sans-serif;
}
/* Header */
header {
    background-color: #11103f;
    padding: 5px;
    position: sticky;
    top: 0;
    max-height: 80px;
    z-index: 999;
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    gap: 10px;
}

.SUSTEC-logo{
    padding: 0px 20px 0px 20px;
}

header .SUSTEC-logo img {
    max-width: 200px; /* Adjust logo size */
    max-height: 100px;
    height: auto;      /* アスペクト比を保ったまま高さを自動調整 */
    transition: opacity 0.3s ease, filter 0.3s ease; /* 滑らかなホバーとフィルターの効果 */
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute; /* 追加 */
    right: 20px; /* 追加 */
    top: 10%; /* 追加 */
}

header nav ul {
    list-style-type: none;
    display: flex;
}

header nav ul li {
    position: relative; /* 親要素にrelativeを指定 */
    margin-right: 20px;
}

header nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}

header nav ul li a:hover {
    color: white;
}
/* Dropdown menu styles */
nav ul li.dropdown:hover > .dropdown-menu {
    display: block;
}

nav ul li a {
    color: #333;
    padding: 10px;
    transition: opacity 0.3s ease, filter 0.3s ease; /* 滑らかなホバーとフィルターの効果 */
}

nav ul li a:hover {
    opacity: 0.7; /* Add hover effect */
}

/* Dropdown submenu (hidden by default) */
.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: black;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    z-index: 1;
}
.dropdown-menu li {
    margin: 0;
}
.dropdown-menu li a {
    padding: 10px;
    color: white;
    display: block;
}
.dropdown-menu li a:hover {
    background-color: #00438f;
}


/*-----------------*/
/*  Main Section   */
/*-----------------*/
/*------------------------------*/
/*  About Us 01 - Tech Section   */
/*------------------------------*/

#aboutus01-Hist {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.aboutus01-cont {
    height: 300px;
    background-image: url("images_aboutus/aboustus02.png");
    background-size: cover;
    background-position: center;
    justify-content:start;
    align-items: center;
    display: flex;
    background-color: white;
    padding: 20px;
}

.aboutus01-cont h2 {
    font-size: 50px;
    color: rgb(32, 57, 126);
    font-weight: bold;
    text-align: left; /* Center align the logos */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.8); /* 背景色を透明に設定 */
    border-radius: 15px; /* 角を丸く設定 */
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aboutus01-Hist {
    display: flex;
    justify-content: center; /* 水平方向に中央寄せ */
    align-items: center; /* 垂直方向に中央寄せ */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: white;
    height: auto;
}
.aboutus01-Hist{
    transition: opacity 3s, transform 3s;
    transform: translateY(0.1px);
    opacity: 0.0;
}
.aboutus01-Hist.visible {
    opacity: 1;
    transform: translateY(0);
    background-color: white;
}
/*
.aboutus01-Hist:nth-child(2n-1){
    flex-direction: row-reverse;
    background-color: #e0e0e0;
}*/

.aboutus01-Hist-cont{
    width: auto;
    height: auto;
}
.aboutus01-Hist-cont h2 {
    font-size: 32px;
    color: rgb(32, 57, 126);
    padding: 50px 0px 20px 20px; /* Add some space between the heading and logos */
    font-weight: bold;
}

.aboutus01-Hist-cont table{
    width: 100%;
    margin: 0 auto;
    text-align: left;
    padding: 0px 50px 0px 100px;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    
}
.aboutus01-Hist-cont table td.wide-column {
    width: 20%; /* 1列目の幅を30%に設定 */
}

.aboutus01-Hist-cont table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.aboutus01-Hist-cont td{
    padding: 10px; 
}


.aboutus01-Hist-cont ul li {
    font-size: 14px;
    color: black;
    padding: 0px 0px 20px 0px; /* Add some space between the heading and logos */
    word-wrap: break-word;
}

.aboutus01-Hist-img img{
    max-width: 150px; /* Adjust logo size */
    height: auto;      /* アスペクト比を保ったまま高さを自動調整 */
    transition: opacity 0.3s ease, filter 0.3s ease; /* 滑らかなホバーとフィルターの効果 */
    border-radius: 3%;
}

 .aboutus01-Hist-img:hover {
    filter: grayscale(0%);  /* ホバー時にカラーに戻す */
    opacity: 0.7; /* Add hover effect */
}

/*------------------------------*/
/*  Overview of SUSTEC Section */
/*------------------------------*/

#Overview {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto; /* テーブルがはみ出さないようにスクロールを追加 */
}

.Overview-cont h2 {
    font-size: 32px;
    color: rgb(32, 57, 126);
    padding: 50px 0px 10px 20px; /* Add some space between the heading and logos */
    font-weight: bold;
}

.Overview-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.Overview-table table th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    word-wrap: break-word; /* テキストの折り返しを有効にする */
}

.Overview-table table th {
    background-color: #f2f2f2;
}

.Overview-table table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.Overview-table table td.wide-column {
    width: 20%; /* 1列目の幅を30%に設定 */
}

.Overview-table table td ul {
    list-style-type: disc; /* デフォルトの箇条書きスタイルを設定 */
    padding-left: 20px; /* 箇条書きのインデントを調整 */
    margin: 0; /* 上下の余白をリセット */
}

.Overview-table table td ul li {
    margin-bottom: 10px; /* 各リストアイテムの間に少し余白を追加 */
}

.Overview-table table td ul li p {
    padding: 10px; /* 各リストアイテムの間に少し余白を追加 */
}

/*------------------------------*/
/*  About Us 02 - Leadership Team   */
/*------------------------------*/

.aboutus02 {
    background-color: #ffffff;
}

.aboutus02-cont h2 {
    font-size: 32px;
    color: rgb(32, 57, 126);
    padding: 50px 0px 20px 50px; /* Add some space between the heading and logos */
    font-weight: bold;
}

.aboutus02-cont p {
    font-size: 14;
    color: #333;
    padding: 0px 100px 0px 100px;
    margin-bottom: 50px; /* Add some space between the heading and logos */
    text-align: center; /* Center align the logos */
}

.aboutus02-container{
    display: flex;
    justify-content: space-around; /* Distribute logos evenly with space between */
    align-items: flex-start; /* Vertically align the logos */
    max-width: 900px;
    gap: 20px;
    margin: 0 auto;
    transition: opacity 3s, transform 3s;
    transform: translateY(0.1px);
    opacity: 0.0;
    position: top;
}
.aboutus02-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.aboutus02-container h2{
    font-size: 18px;
    color: rgb(32, 57, 126);
    margin-top: 30px; /* Add some space between the heading and logos */
    margin-bottom: 10px;
    font-weight: bold;
}
.aboutus02-container h3{
    font-size: 14px;
    color: black;
    margin-bottom: 10px;
    font-weight: bold;
}
.aboutus02-container p{
    font-size: 12px;
    color: #333;
    margin-top: 30px; /* Add some space between the heading and logos */
    margin-bottom: 30px;
    max-width: 200px;
}
.aboutus02-container .btn{
    font-size: 12px;
    color: #5100bb;
}

.aboutus02img img {
    max-width: 200px; /* Adjust logo size */
    max-height: 250px;
    height: auto;      /* アスペクト比を保ったまま高さを自動調整 */
    transition: opacity 0.3s ease, filter 0.3s ease; /* 滑らかなホバーとフィルターの効果 */
    border-radius: 3%;
}

.aboutus02img img:hover {
    filter: grayscale(0%);  /* ホバー時にカラーに戻す */
    opacity: 0.7; /* Add hover effect */  
}

/*----------------------*/
/*  Our Vision Section  */
/*-----------------------*/

.vision {
    margin-top: 100px;
    height: 800px;
    background-image: url("images_aboutus/vision.png");
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    background-size: cover;
}

.vision::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0) 100%, rgba(255, 255, 255, 1));
}

.Vision-h1 h1 {
    font-size: 36px;
    color: white;
    padding: 150px 100px 50px 100px; /* Add some space between the heading and logos */
    font-weight: bold;
    text-align: start; /* Center align the logos */
}

.Vision-h2 h2 {
    font-size: 26px;
    color: white;
    margin: 0px 50px 50px 100px; /* Add some space between the heading and logos */
    font-weight: bold;
    text-wrap: none;
    width:auto;
}

.Vision-p p {
    font-size: 16px;
    color: white;
    padding: 0px 50px 30px 100px;
}

/*-----------------*/
/*  aside Section  */
/*-----------------*/

.about {
    height: 300px;
    width: 100%;
    background-image: url("images/SUSTEC_backgroundimg3.png");
    background-size: cover;
    background-position: center;
    align-items: center;
    position: top;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    
}

.about-logo2 img {
    max-width: 400px;
}

.about-contact {
    max-width: 400px;
}

.about-contact h2 {
    font-size: 32px;
    padding: 10px 0px 10px 0px;
    text-decoration: underline;
}

.about-contact p {
    font-size: 18px;
    color: black;
    padding: 10px 0px 10px 0px;
    /*line-height: 1.6;*/
}
.about-linkedin h2 {
    font-size: 32px;
    padding: 10px 100px 10px 0px;
    text-decoration: underline;
}
.social-media {
    margin-top: 20px;
}

.social-media img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-media img:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #11103f;
    /*background-color: rgb(223, 222, 222);*/
    color: white;
    padding: 20px 0 20px 0;
    text-align: center;
}

/* ----------------------------------- */
/* ----------------------------------- */
/* Media Queries for Responsive Design */
/*------------------------------------ */
/* ----------------------------------- */

@media (max-width: 768px) {
    
    /* Header modification*/
        header {
            background-color: #11103f;
            color: #fff;
            padding: 10px 0 10px 0;
        }
        .menu-icon {
            display: block;
        }
        .dropdown-menu {
            display: none;
          }
        .dropdown:hover .dropdown-menu {
            display: none;
          }
    
        .nav {
            background-color: #11103f;
            height: auto;
        }
        .nav-links {
            display: none;
            flex-direction: column;
            width: auto;
            background-color: #11103f;
            position: absolute;
            top: 45px;
            right: 10px;
            height: 0; /* 追加 */
            overflow: hidden; /* 追加 */
            transition: height 0.3s ease; /* 追加 */
        }
    
        .nav-links li {
            text-align: center;
            margin: 10px 0;
        }
    
        .nav-links a {
            padding: 10px;
        }
    
        .nav-links.active {
            display: flex;
            height: auto; /* 追加：全画面の高さに設定 */
        }
    /* Main part modification*/
    
        .aboutus01-cont h2 {
            font-size: 28px;
            padding: 0px 0px 0px 0px;
        }    
        .aboutus01-Hist-cont {
            padding: 0px 20px 0px 20px;
        }          
        .aboutus01-Hist-cont h2 {
            font-size: 28px;
            padding: 0px 0px 10px 0px;
        }       
        .aboutus01-Hist-cont tr{
            font-size: 14px;
        }

        .Overview-cont h2{
            font-size: 28px;
            padding: 0px 0px 0px 20px;
        }    
        .Overview-table {
            padding: 0px 20px 0px 20px;
        }
        .Overview-table tr{
           font-size: 15px;
        }                 
        .aboutus02-cont h2{
            font-size: 28px;
            text-align: center;
            padding: 0px 0px 20px 0px;
        }
        .aboutus02-cont p{
            font-size: 16;
            padding: 0px 5px 0px 5px;
        }
        .aboutus02-container {
            flex-direction: column;
            justify-content: center; /* 垂直方向に中央揃え */
            align-items: center; /* 水平方向に中央揃え */
        }
        .Vision-h1 h1{
            margin: 0;
            font-size: 28px;
            padding: 100px 100px 30px 50px; 
        }
        .Vision-h2 h2{
            font-size: 20px;
            margin: 0px 50px 30px 50px;
        }
        .Vision-p p{
            padding: 0px 50px 30px 50px;
        }
    
        .about {
            flex-direction: column;
            align-items:start;
            gap: 0px;
        }
        .about-logo2 img{
            width: 200px;
        }
        .about-contact h2{
            font-size: 18px;
            padding: 0px 10px 10px 20px;
        }
        .about-contact p{
            padding: 0px 10px 0 20px;
            font-size: 14px;
        
        }
        .about-linkedin h2{
            font-size: 18px;
            padding: 10px 10px 0 20px;
        }
        
        .social-media img{
             margin: 0px 10px 10px 20px;
        }
    
    }
