/* 全体設定 */
body {
  margin: 0;
  padding: 0;
  background-color: #F2F2F2;
}

.company-main {
  padding-top: 0px;
  width: 100%;
  overflow-x: hidden;
  background-color: #F2F2F2;
}



/* メインビジュアルセクション */
.main-visual-section {
  position: relative;
  width: 100%;
  margin-top: 60px;
}

/* イメージセクション */
.company-image {
  width: 100%;
  position: relative;
  z-index: 1;
  height: auto;
}

.company-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* カスタムメニューボタン */
.custom-menu {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.custom-menu-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.menu-left {
  flex: 1;
  max-width: 610px;
}

.menu-right {
  flex: 1;
  max-width: 610px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: 307px;
}

/* ボタン共通スタイル */
.menu-button {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  filter: drop-shadow(2px 4px 12px rgba(51, 51, 51, 0.25));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #FFFFFF;
  position: relative;
}

.menu-button:hover {
  transform: translateX(10px);
  filter: drop-shadow(4px 8px 16px rgba(51, 51, 51, 0.3));
}

.message-button .nav-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.message-button .nav-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* プロフィールと企業理念ボタンのスタイル更新 */
.profile-button,
.mission-button {
    flex: 1;
    height: calc((307px - 25px) / 2);
    display: flex;
    flex-direction: row;
}

@media screen and (max-width: 1200px) {
	.footer{
		margin-top: 0px !important;
	}
	.profile-button,
.mission-button {
    flex-direction: column;
}
	
	.mission-button .nav-image {
		width:100%  !important;
		height:220px !important;
	}
	
	.profile-button .nav-image {
		width:100% !important;
		height:220px  !important;
	}
	
	.profile-button .button-title-group, .mission-button .button-title-group {
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 19px !important;
	}
    .profile-button .button-content, .mission-button .button-content {
        height: 100%;
        padding: 30px 25px !important;
    }
	.profile-button .nav-image img{
		object-fit: contain !important;
	}
	    
}

/* 画像コンテナのスタイル */
.profile-button .nav-image{
    width: 256px;
    height: 100%;
    flex-shrink: 0;
    margin-top: 0px;
    padding-left: 50px;
    padding-right: 50px;
}

.mission-button .nav-image{
width: 256px;
    height: 100%;
    flex-shrink: 0;
    margin-top:0px;
}

.profile-button .nav-image img,
.mission-button .nav-image img {
    width: 100%;
    height: 110%;
    object-fit: cover;
	margin-top: 0px;
}

/* ボタンコンテンツ部分の調整 */
.profile-button .button-content,
.mission-button .button-content {
    flex: 1;
    padding: 0 25px;
    justify-content: space-between;
}

/* ボタンコンテンツ部分 */
.button-content {
  padding: 30px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  transition: padding 0.3s ease;
}

.profile-button .button-content,
.mission-button .button-content {
  height: 100%;
  padding: 15px 30px;
}

/* タイトルグループ */
.button-title-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

/* タイトル */
.button-title {
  color: #333;
  font-family: "BIZ UDGothic", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 27px;
  letter-spacing: 2.8px;
  margin: 0;
}

/* サブタイトル */
.button-subtitle {
  color: #333;
  font-family: "BIZ UDGothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 27px;
  letter-spacing: 1.96px;
  opacity: 0.5;
  margin: 0;
  white-space: nowrap;
}

/* 矢印アイコン */
.arrow-icon {
  width: 24px;
  height: 24px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {

  .company-image {
	height: 1110px;
  }

  .custom-menu {
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    padding: 0 20px;
  }

  .custom-menu-container {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-width: 610px;
    margin: 0 auto;
  }

  .menu-left,
  .menu-right {
    width: 100%;
    max-width: none;
    height: auto;
  }

  .menu-button {
    max-width: 100%;
  }

  .profile-button,
  .mission-button {
    height: 100px;
  }

  .link-button-content {
    top: 60px;
    left: 60px;
  }

  .return-button .move-icon {
    bottom: 30px;
    right: 45px;
    width: 225px;
    height: 24px;
  }

  .recruit-button .move-icon {
    bottom: 30px;
    right: 50px;
    width: 204px;
    height: 24px;
  }

  .profile-button .button-content,
  .mission-button .button-content {
    height: 100%;
    padding: 50px 25px;
  }
}

@media screen and (max-width: 767px) {
  .company-image {
   height: 1010px;
  }

  .custom-menu {
    top: 50%;
    margin-bottom: -450px;
    padding: 0 15px;
  }

  .profile-button,
  .mission-button {
    height: 80px;
  }

  .button-content {
    padding: 20px;
  }

  .button-title {
    font-size: 16px;
    line-height: 21px;
    letter-spacing: 1.96px;
  }

  .button-subtitle {
    font-size: 12px;
    line-height: 21px;
    letter-spacing: 1.5px;
  }

  .link-button-content {
    top: 40px;
    left: 40px;
  }

  .link-button-title {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .link-button-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .link-buttons-container {
    flex-direction: column;
  }

  .link-button {
    width: 100%;
  }

  .message-button .nav-image {
    height: 160px;
  }
	.profile-button .nav-image,
    .mission-button .nav-image {
        width: 100px;
		padding:0;
		height: 160px !important;
    }
    
    .profile-button .button-content,
    .mission-button .button-content {
       padding: 20px !important;
    }
}

@media screen and (max-width: 575px) {
	 .profile-button .nav-image,
    .mission-button .nav-image {
        width: 80px;
		width: 100%;
        height: 160px;
    }
    
    .profile-button .button-content,
    .mission-button .button-content {
        padding: 0 10px;
    }
  .company-image {
        height: 867px;
  }

  .custom-menu {
        top: 50%;
    margin-bottom: -400px;
    padding: 0 25px;
  }

  .button-content {
    padding: 15px;
  }

  .button-title-group {
    gap: 10px;
  }

  .arrow-icon {
    width: 20px;
    height: 20px;
  }

  .recruit-button .move-icon,
  .return-button .move-icon {
    bottom: 23px;
    right: 27px;
    width: 172px;
    height: 20px;
  }

  .link-button-content {
    top: 30px;
    left: 30px;
  }

  .link-button-title {
    font-size: 24px;
    letter-spacing: 3.6px;
  }

  .link-button-subtitle {
    font-size: 12px;
    letter-spacing: 1.8px;
  }
}

@media screen and (max-width: 768px) {
  /* シェイプ関連のクラスをまとめて非表示 */
  .shapes,
  .shapes img,
  .shape-container,
  .shape-container img {
    display: none !important;
    visibility: hidden; /* 念のため */
  }
}

