
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
  }

  a{
    color: white !important;
    text-decoration: none !important;
  }
  
  header {
    background-image: url(../img/company-photo.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 20px;
    height: 600px;
  }

  .header-content {
    position: relative;
    font-family: "Shippori Mincho B1", serif;
  }
  
  .header-text {
    position: absolute;
    top: 300px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 55px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .header-text span{
    font-size: 30px;
  }

  

  
  .navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;  /* 追従させるためにfixedに変更 */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 2, 0.7); /* 濃いめの青 + 透明度 */
    z-index: 100;
    font-family: "Shippori Mincho B1", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .navigation.scroll .logo-link,.navigation.scroll .menu-link{
    color: black;
  }


  .navigation.scroll .menu-toggle .hamburger {
    background-color: #000; /* スクロール時にハンバーガーメニューアイコンの色を黒に変更 */
  }


  .logo-link {
    color: white;
    font-size: 20px;
    text-decoration: none;
    font-family: "Shippori Mincho B1", serif !important;
    font-weight: 400;
    font-style: normal;
  }
  .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .menu-item {
    margin: 0 10px;
  }
  .menu-link {
    color: white;
    text-decoration: none;
  }
  
  .logo {
    flex-grow: 1;
  }
  
  .logo-link {
    font-family: 'Your Font Name', sans-serif;
    font-size:40px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
  }
  
  .menu {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
    justify-content: space-between;
    align-items: center;
  }
  
  .menu-item {
    margin-left: 80px;
  }
  
  .menu-link {
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
  }
  
  .menu-link:hover {
    color: white;
  }
  
  /* 追加のホバーエフェクト */
  
  .menu-item-hover {
    position: relative;
  }
  
  .menu-item-hover::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #ffc506;
    transition: width 0.5s ease;
    z-index: 1;
  }
  
  .menu-item-hover:hover::before {
    width: 100%;
  }
  
  .menu-item-hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: #ffc506;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: -1;
  }
  
  .menu-item-hover:hover::after {
    transform: scaleX(1);
    background-color: transparent; /* 覆いかぶさる部分の背景を透明にする */
  }
  
  
/* ハンバーガーメニューのスタイル */
.menu-toggle {
    display: none;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.hamburger {
    display: block;
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin-bottom: 5px;
    transition: background-color 0.3s;
  }

  .menu-toggle .hamburger {
    display: block;
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin-bottom: 5px;
    transition: transform 0.3s, opacity 0.3s;
  }

  /* バツアイコンのスタイル */
.menu-toggle .close-icon {
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
  }


.menu-toggle .close-icon::before,
.menu-toggle .close-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #fff;
  transition: transform 0.3s;
}

.menu-toggle .close-icon::before {
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle .close-icon::after {
  transform: translateY(-50%) rotate(-45deg);
}

  
  .menu-toggle span {
    display: block;
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin-bottom: 5px;
    transition: background-color 0.3s;
  }
  
  .menu-toggle.active .hamburger:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  @media (max-width: 1024px) {
    .header-text {
      font-size: 45px;
      width: 80%;
      top: 290px;
    }
  
    .navigation {
      flex-direction: row;
      justify-content: space-between;
    }
  
    .menu {
      margin-top: 0;
    }
  
    .menu-item {
      margin-left: 20px;
      margin-right: 20px;
      margin-bottom: 0;
    }
  
    .menu-link {
      font-size: 16px;
    }


  .navigation.scroll .menu-link {
    color: black;
  }
  
    header {
      padding: 20px 40px;
      height: 600px;
    }
  }


  
  /* レスポンシブデザインにおけるメニューの表示スタイル */
  @media screen and (max-width: 768px) {

    header {
        padding: 10px;
        height: 400px;
    }

    .header-text {
      font-size: 30px;
      width: 90%;
      top: 200px;
    }

    .logo-link{
      font-size: 25px;
    }

    .menu {
        list-style-type: none;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 20px;
        transition: top 5s; /* トランジション時間を0.5秒に設定 */
        z-index: 2;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease; /* メニューの開閉のアニメーション */
      }

  
    .menu.active {
      top: 0;
      display: flex;
      flex-direction: column;
      max-height: 500px; /* メニューの最大の高さ */
      transition: max-height 0.5s ease; /* メニューの開く際のアニメーション */
    }
  

    .menu.closing {
        max-height: 500px; /* メニューの最大の高さ */
        transition: max-height 0.5s ease; /* メニューの閉じる際のアニメーション */
      }


.menu.closing.active {
    max-height: 0;
  }

    /* メニューの表示スタイル */

  
  .menu.active .menu-item {
    margin: 10px 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    position: relative;
    z-index: 3;
  }

  
  .menu.active .menu-item:nth-child(1) {
    transition-delay: 0.1s;
  }
  
  .menu.active .menu-item:nth-child(2) {
    transition-delay: 0.2s;
  }
  
  .menu.active .menu-item:nth-child(3) {
    transition-delay: 0.3s;
  }
  
  .menu.active .menu-item:nth-child(4) {
    transition-delay: 0.4s;
  }
  
  .menu.active .menu-item:last-child {
    transition-delay: 0.5s;
  }
  
  .menu.active .menu-item {
    opacity: 1;
    transform: translateY(0);
  }
  }  






  /*ヘッダーレスポンシブーーーーーーーーーーーーーーーーーー*/
  @media screen and (max-width: 1024px) {
    header {
      height: 300px;
    }
    
    .header-text {
      top: 150px;
      font-size: 30px;
    }
    
    .header-text span {
      font-size: 20px;
    }
  }




  @media screen and (max-width: 768px) {
    header {
      height: 200px;
    }
    
    .header-text {
      top: 100px;
      
      font-size: 30px;
    }
    
    .header-text span {
      font-size: 20px;
    }
  }








/*メッセージーーーーーーーーーーーーーーーーーーーー*/

.message h2{
    text-align: center;
    padding: 30px 0px;
}

.message h2 span{
    font-size: 20px;
}

.message-all{
    max-width: 100%;
    width: 95%;
    margin: 0 auto;
}

.message-detail{
    display: flex;
}

.message-text{
  width: 50%;
  padding-left: 20px;
}

.message-text h3{
    font-weight:bold;
    font-size: 30px;
}

.message-text p{
  width: 95%;
  padding-top: 20px;
}

.message-detail img{
    width: 50%;
    height: auto;
}




.message-detail-2{
    display: flex;
    margin-top: 50px;
}

.message-text-2{
  width: 50%;
  padding-left: 20px;
}

.message-text-2 h3{
    font-weight:bold;
    font-size: 30px;
}

.message-text-2 p{
  width: 95%;
  padding-top: 20px;
}

.message-detail-2 img{
    width: 50%;
    height: auto;
}


@media screen and (max-width: 1024px){
    .message-detail{
        display: block;
        margin-left: 0px;
    }
    
    
    .message-text{
        width: 100%;
        padding-top: 50px;
        text-align: center;
        padding-left: 90px;
    }
    
    
    .message-text h3{
        font-weight:bold;
        font-size: 25px;
        padding-bottom: 40px;
        width: 90%;
    }
    
    .message-text p{
        width: 85%;
        text-align: left;
        padding-left: 10px;
        font-size: 13px;
    }
    
    
    .message-detail img{
        width: 90%;
        height: 200px;
        padding-left: 100px;
    }


.message-photo2{
    display: none;
    width: 45%;
    height: 700px;
}

.message-photo{
    display: block;
}


.message-detail-2{
    display: block;
    margin-left: 0px;
}


.message-text-2{
    width: 100%;
    padding-top: 50px;
    text-align: center;
    padding-left: 90px;
}


.message-text-2 h3{
    font-weight:bold;
    font-size: 25px;
    padding-bottom: 40px;
    width: 90%;
}

.message-text-2 p{
    width: 85%;
    text-align: left;
    padding-left: 10px;
    font-size: 13px;
}


.message-detail-2 img{
    width: 90%;
    height: 200px;
    padding-left: 100px;
}

}



@media screen and (max-width: 768px){
    
.message-detail{
    display: block;
    margin-left: 0px;
}



.message-text{
    width: 100%;
    padding-top: 50px;
    text-align: center;
    padding-left: 30px;
}


.message-text h3{
    font-weight:bold;
    font-size: 25px;
    padding-bottom: 40px;
    width: 90%;
}

.message-text p{
    width: 90%;
    text-align: left;
    padding-left: 0px;
    font-size: 13px;
}


.message-detail img{
    width: 95%;
    height: 200px;
    padding-left: 20px;
}

.message-photo2{
    display: none;
    width: 45%;
    height: 700px;
}

.message-photo{
    display: block;

}


/*2---------------------------*/



.message-detail-2{
    display: block;
    margin-left: 0px;
}


.message-text-2{
    width: 100%;
    padding-top: 50px;
    text-align: center;
    padding-left: 0px;
}


.message-text-2 h3{
    font-weight:bold;
    font-size: 25px;
    padding-bottom: 40px;
    width: 90%;
}

.message-text-2 p{
    width: 90%;
    text-align: left;
    padding-left: 30px;
    font-size: 13px;
}


.message-detail-2 img{
    width: 95%;
    height: 200px;
    padding-left: 20px;
  }

}




/*テーブルーーーーーーーーーーーーーーーーーーーーー*/
    #company-detail h2{
    text-align: center;
    padding: 50px 0px 10px 0px;
    }



    #company-detail h2 span{
    font-size: 20px;
}






  /* テーブルスタイル */
  .company-table {
    width: 85%;
    border-collapse: collapse;
    margin-left: 120px;
    margin-top: 40px;
}

.company-table th,
.company-table td {
    padding: 10px;
    text-align: left;
}

.company-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

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

.company-table tr:hover {
    background-color: #e6e6e6;
}

@media screen and (max-width: 1024px) {
    .company-table {
      width: 90%;
      margin-left: 40px;
    }
  
    .company-table th,
    .company-table td {
      padding: 8px;
    }
  }

  @media screen and (max-width: 768px) {
    .company-table {
      width: 100%;
      margin-left: 0;
    }
  
    .company-table th,
    .company-table td {
      padding: 6px;
    }
  }
  







/*フッターーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー*/


.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: 30px;
    text-align: center;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  
  .footer p {
    flex: 1 0 100%;
    margin-top: 30px;
  }
  
  .footer-links {
    flex: 1 0 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
  }
  
  .footer-links li {
    margin: 0 10px;
  }
  
  .footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-links a:hover {
    color: #aaa;
  }